|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LibC
Import common functions variables and constants from libc.
Nested Class Summary | |
---|---|
static class |
LibC.stat
C struct stat // struct stat { // dev_t st_dev; /* [XSI] ID of device containing file 4 0 // ino_t st_ino; /* [XSI] File serial number 4 4 // mode_t st_mode; /* [XSI] Mode of file (see below) 2 8 // nlink_t st_nlink; /* [XSI] Number of hard links 2 10 // uid_t st_uid; /* [XSI] User ID of the file 4 12 // gid_t st_gid; /* [XSI] Group ID of the file 4 16 // dev_t st_rdev; /* [XSI] Device ID 4 20 // time_t st_atime; /* [XSI] Time of last access 4 24 // long st_atimensec; /* nsec of last access 4 28 // time_t st_mtime; /* [XSI] Last data modification time 4 32 // long st_mtimensec; /* last data modification nsec 4 36 // time_t st_ctime; /* [XSI] Time of last status change 4 40 // long st_ctimensec; /* nsec of last status change 4 44 // off_t st_size; /* [XSI] file size, in bytes 8 48 // blkcnt_t st_blocks; /* [XSI] blocks allocated for file 8 // blksize_t st_blksize; /* [XSI] optimal blocksize for I/O 4 // __uint32_t st_flags; /* user defined flags for file 4 // __uint32_t st_gen; /* file generation number 4 // __int32_t st_lspare; /* RESERVED: DO NOT USE! 4 // __int64_t st_qspare[2]; /* RESERVED: DO NOT USE! 16 // }; |
Field Summary | |
---|---|
static int |
E2BIG
|
static int |
EACCES
|
static int |
EADDRINUSE
|
static int |
EADDRNOTAVAIL
|
static int |
EAFNOSUPPORT
|
static int |
EAGAIN
|
static int |
EALREADY
|
static int |
EBADF
|
static int |
EBADMSG
|
static int |
EBUSY
|
static int |
ECANCELED
|
static int |
ECHILD
|
static int |
ECONNABORTED
|
static int |
ECONNREFUSED
|
static int |
ECONNRESET
|
static int |
EDEADLK
|
static int |
EDESTADDRREQ
|
static int |
EDOM
|
static int |
EDQUOT
|
static int |
EEXIST
|
static int |
EFAULT
|
static int |
EFBIG
|
static int |
EHOSTUNREACH
|
static int |
EIDRM
|
static int |
EILSEQ
|
static int |
EINPROGRESS
|
static int |
EINTR
|
static int |
EINVAL
|
static int |
EIO
|
static int |
EISCONN
|
static int |
EISDIR
|
static int |
ELOOP
|
static int |
EMFILE
|
static int |
EMLINK
|
static int |
EMSGSIZE
|
static int |
EMULTIHOP
|
static int |
ENAMETOOLONG
|
static int |
ENETDOWN
|
static int |
ENETRESET
|
static int |
ENETUNREACH
|
static int |
ENFILE
|
static int |
ENOBUFS
|
static int |
ENODATA
|
static int |
ENODEV
|
static int |
ENOENT
|
static int |
ENOEXEC
|
static int |
ENOLCK
|
static int |
ENOLINK
|
static int |
ENOMEM
|
static int |
ENOMSG
|
static int |
ENOPROTOOPT
|
static int |
ENOSPC
|
static int |
ENOSR
|
static int |
ENOSTR
|
static int |
ENOSYS
|
static int |
ENOTCONN
|
static int |
ENOTDIR
|
static int |
ENOTEMPTY
|
static int |
ENOTSOCK
|
static int |
ENOTSUP
|
static int |
ENOTTY
|
static int |
ENXIO
|
static int |
EOVERFLOW
|
static int |
EPERM
|
static int |
EPIPE
|
static int |
EPROTO
|
static int |
EPROTONOSUPPORT
|
static int |
EPROTOTYPE
|
static int |
ERANGE
|
static int |
EROFS
|
static int |
ESPIPE
|
static int |
ESRCH
|
static int |
ETIME
|
static int |
ETIMEDOUT
|
static int |
ETXTBSY
|
static int |
EWOULDBLOCK
|
static int |
EXDEV
|
static int |
F_DUPFD
|
static int |
F_GETFD
|
static int |
F_GETFL
|
static int |
F_SETFD
|
static int |
F_SETFL
|
static LibC |
INSTANCE
|
static int |
O_ACCMODE
|
static int |
O_APPEND
|
static int |
O_CREAT
|
static int |
O_EXCL
|
static int |
O_NONBLOCK
|
static int |
O_RDONLY
|
static int |
O_RDWR
|
static int |
O_SYNC
|
static int |
O_TRUNC
|
static int |
O_WRONLY
|
static int |
S_IFBLK
|
static int |
S_IFCHR
|
static int |
S_IFDIR
|
static int |
S_IFIFO
|
static int |
S_IFLNK
|
static int |
S_IFMT
|
static int |
S_IFREG
|
static int |
S_IFSOCK
|
static int |
S_IRGRP
|
static int |
S_IROTH
|
static int |
S_IRUSR
|
static int |
S_IRWXG
|
static int |
S_IRWXO
|
static int |
S_IRWXU
|
static int |
S_ISGID
|
static int |
S_ISUID
|
static int |
S_ISVTX
|
static int |
S_IWGRP
|
static int |
S_IWOTH
|
static int |
S_IWUSR
|
static int |
S_IXGRP
|
static int |
S_IXOTH
|
static int |
S_IXUSR
|
static int |
SEEK_CUR
|
static int |
SEEK_END
|
static int |
SEEK_SET
|
Method Summary | |
---|---|
int |
close(int fd)
delete a descriptor |
int |
fcntl(int fd,
int cmd,
int arg)
provides for control over descriptors. |
int |
fstat(int fd,
LibC.stat stat)
Get information on the open file with file descriptor "fd". |
int |
fsync(int fd)
Flush output on a descriptor |
int |
lseek(int fd,
long offset,
int whence)
reposition read/write file offset |
int |
open(String name,
int oflag,
int mode)
open or create a file for reading or writing |
int |
read(int fd,
byte[] buf,
int nbyte)
read input |
int |
stat(String name,
LibC.stat stat)
Get information on the named "name". |
int |
unlink(String name)
Remove the directory entry for name (may delete the file) |
int |
write(int fd,
byte[] buf,
int nbyte)
write output |
Methods inherited from interface com.sun.cldc.jna.Library |
---|
initConstInt |
Field Detail |
---|
static final LibC INSTANCE
static final int EPERM
static final int ENOENT
static final int ESRCH
static final int EINTR
static final int EIO
static final int ENXIO
static final int E2BIG
static final int ENOEXEC
static final int EBADF
static final int ECHILD
static final int EDEADLK
static final int ENOMEM
static final int EACCES
static final int EFAULT
static final int EBUSY
static final int EEXIST
static final int EXDEV
static final int ENODEV
static final int ENOTDIR
static final int EISDIR
static final int EINVAL
static final int ENFILE
static final int EMFILE
static final int ENOTTY
static final int ETXTBSY
static final int EFBIG
static final int ENOSPC
static final int ESPIPE
static final int EROFS
static final int EMLINK
static final int EPIPE
static final int EDOM
static final int ERANGE
static final int EAGAIN
static final int EWOULDBLOCK
static final int EINPROGRESS
static final int EALREADY
static final int ENOTSOCK
static final int EDESTADDRREQ
static final int EMSGSIZE
static final int EPROTOTYPE
static final int ENOPROTOOPT
static final int EPROTONOSUPPORT
static final int ENOTSUP
static final int EAFNOSUPPORT
static final int EADDRINUSE
static final int EADDRNOTAVAIL
static final int ENETDOWN
static final int ENETUNREACH
static final int ENETRESET
static final int ECONNABORTED
static final int ECONNRESET
static final int ENOBUFS
static final int EISCONN
static final int ENOTCONN
static final int ETIMEDOUT
static final int ECONNREFUSED
static final int ELOOP
static final int ENAMETOOLONG
static final int EHOSTUNREACH
static final int ENOTEMPTY
static final int EDQUOT
static final int ENOLCK
static final int ENOSYS
static final int EOVERFLOW
static final int ECANCELED
static final int EIDRM
static final int ENOMSG
static final int EILSEQ
static final int EBADMSG
static final int EMULTIHOP
static final int ENODATA
static final int ENOLINK
static final int ENOSR
static final int ENOSTR
static final int EPROTO
static final int ETIME
static final int F_DUPFD
static final int F_GETFD
static final int F_SETFD
static final int F_GETFL
static final int F_SETFL
static final int O_RDONLY
static final int O_WRONLY
static final int O_RDWR
static final int O_ACCMODE
static final int O_NONBLOCK
static final int O_APPEND
static final int O_SYNC
static final int O_CREAT
static final int O_TRUNC
static final int O_EXCL
static final int S_IFBLK
static final int S_IFCHR
static final int S_IFDIR
static final int S_IFIFO
static final int S_IFLNK
static final int S_IFMT
static final int S_IFREG
static final int S_IFSOCK
static final int S_IRGRP
static final int S_IROTH
static final int S_IRUSR
static final int S_IRWXG
static final int S_IRWXO
static final int S_IRWXU
static final int S_ISGID
static final int S_ISUID
static final int S_ISVTX
static final int S_IWGRP
static final int S_IWOTH
static final int S_IWUSR
static final int S_IXGRP
static final int S_IXOTH
static final int S_IXUSR
static final int SEEK_SET
static final int SEEK_CUR
static final int SEEK_END
Method Detail |
---|
int fcntl(int fd, int cmd, int arg)
fd
- a descriptor to be operated on by cmdcmd
- one of the cmd constantsarg
-
int open(String name, int oflag, int mode)
name
- Stringoflag
- std libc open flagsmode
- the mode for any created file
int close(int fd)
fd
- a descriptor to be operated on by cmd
int fsync(int fd)
fd
- a descriptor to be flushed
int lseek(int fd, long offset, int whence)
fd
- file descriptoroffset
- the offset to seek towhence
- the kind of offset (SEEK_SET, SEEK_CUR, or SEEK_END)
int read(int fd, byte[] buf, int nbyte)
fd
- file descriptorbuf
- data buffer to read intonbyte
- number of bytes to read
int write(int fd, byte[] buf, int nbyte)
fd
- file descriptorbuf
- data buffer to writenbyte
- number of bytes to read
int fstat(int fd, LibC.stat stat)
fd
- file descriptorstat
- Stat structure that will be filled with the current values
int stat(String name, LibC.stat stat)
name
- Stringstat
- Stat structure that will be filled with the current values
int unlink(String name)
name
- String
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |