|
Data Structures |
struct | s_sys_fd_lseek_args |
struct | s_sys_fd_mount_args |
struct | utimbuf |
struct | flock |
struct | fd_set |
struct | pollfd |
struct | s_pollrec |
struct | stat |
Defines |
#define | __SYSINTERF_FD_H__ 1 |
#define | SYSFD_ACCESS 128 |
#define | SYSFD_CHDIR 129 |
#define | SYSFD_CHMOD 130 |
#define | SYSFD_CHOWN 131 |
#define | SYSFD_CHROOT 132 |
#define | SYSFD_CLOSE 133 |
#define | SYSFD_MKFS 134 |
#define | SYSFD_FCHDIR 135 |
#define | SYSFD_FCHMOD 136 |
#define | SYSFD_FCHOWN 137 |
#define | SYSFD_FCNTL 138 |
#define | SYSFD_FSTAT 139 |
#define | SYSFD_FSTATFS 140 |
#define | SYSFD_FSYNC 141 |
#define | SYSFD_FTIME 142 |
#define | SYSFD_FTRUNCATE 143 |
#define | SYSFD_GETCWD 144 |
#define | SYSFD_GETDENTS 145 |
#define | SYSFD_LCHOWN 145 |
#define | SYSFD_LINK 146 |
#define | SYSFD_LSEEK 147 |
#define | SYSFD_LSTAT 148 |
#define | SYSFD_MKDIR 149 |
#define | SYSFD_MKNOD 150 |
#define | SYSFD_MOUNT 151 |
#define | SYSFD_OPEN 152 |
#define | SYSFD_READDIR 153 |
#define | SYSFD_READLINK 154 |
#define | SYSFD_READ 155 |
#define | SYSFD_RENAME 156 |
#define | SYSFD_RMDIR 157 |
#define | SYSFD_STAT 158 |
#define | SYSFD_STATFS 159 |
#define | SYSFD_TRUNCATE 160 |
#define | SYSFD_UMOUNT 161 |
#define | SYSFD_UNLINK 162 |
#define | SYSFD_WRITE 163 |
#define | SYSFD_IOCTL 164 |
#define | SYSFD_DUMP 165 |
#define | SYSFD_POLL 166 |
#define | SYSFD_SUBMOUNT 167 |
#define | SYSFD_SUBUMOUNT 168 |
#define | SYSFD_CHMBR 169 |
#define | SYSFD_SYMLINK 170 |
#define | SYSFD_GETERR 171 |
#define | FIOATTACH _IOW('f', 42, pid_t) |
#define | FIODETACH _IOW('f', 43, pid_t) |
#define | O_RDONLY 0x00000000 |
#define | O_WRONLY 0x00000001 |
#define | O_RDWR 0x00000002 |
#define | O_ACCMODE 0x00000003 |
#define | FREAD 0x00000001 |
#define | FWRITE 0x00000002 |
#define | O_NONBLOCK 0x00000004 |
#define | O_APPEND 0x00000008 |
#define | O_SHLOCK 0x00000010 |
#define | O_EXLOCK 0x00000020 |
#define | O_ASYNC 0x00000040 |
#define | O_SYNC 0x00000080 |
#define | O_CREAT 0x00000200 |
#define | O_TRUNC 0x00000400 |
#define | O_EXCL 0x00000800 |
#define | O_DSYNC 0x00010000 |
#define | O_RSYNC 0x00020000 |
#define | O_ALT_IO 0x00040000 |
#define | O_NOCTTY 0x008000 |
#define | FAPPEND O_APPEND |
#define | FASYNC O_ASYNC |
#define | O_FSYNC O_SYNC |
#define | FNDELAY O_NONBLOCK |
#define | O_NDELAY O_NONBLOCK |
#define | F_DUPFD 0 |
#define | F_GETFD 1 |
#define | F_SETFD 2 |
#define | F_GETFL 3 |
#define | F_SETFL 4 |
#define | F_GETOWN 5 |
#define | F_SETOWN 6 |
#define | F_GETLK 7 |
#define | F_SETLK 8 |
#define | F_SETLKW 9 |
#define | FD_CLOEXEC 1 |
#define | F_RDLCK 1 |
#define | F_UNLCK 2 |
#define | F_WRLCK 3 |
#define | F_PARAM_MASK 0xfff |
#define | F_PARAM_LEN(x) (((x) >> 16) & F_PARAM_MASK) |
#define | F_PARAM_MAX 4095 |
#define | F_FSCTL (int)0x80000000 |
#define | F_FSVOID (int)0x40000000 |
#define | F_FSOUT (int)0x20000000 |
#define | F_FSIN (int)0x10000000 |
#define | F_FSINOUT (F_FSIN | F_FSOUT) |
#define | F_FSDIRMASK (int)0x70000000 |
#define | F_FSPRIV (int)0x00008000 |
#define | _FCN(inout, num, len) (F_FSCTL | inout | ((len & F_PARAM_MASK) << 16) | (num)) |
#define | _FCNO(c) _FCN(F_FSVOID, (c), 0) |
#define | _FCNR(c, t) _FCN(F_FSIN, (c), (int)sizeof(t)) |
#define | _FCNW(c, t) _FCN(F_FSOUT, (c), (int)sizeof(t)) |
#define | _FCNRW(c, t) _FCN(F_FSINOUT, (c), (int)sizeof(t)) |
#define | _FCN_FSPRIV(inout, num, len) (F_FSCTL | F_FSPRIV | inout | ((len & F_PARAM_MASK) << 16) | (num)) |
#define | _FCNO_FSPRIV(c) _FCN_FSPRIV(F_FSVOID, (c), 0) |
#define | _FCNR_FSPRIV(c, t) _FCN_FSPRIV(F_FSIN, (c), (int)sizeof(t)) |
#define | _FCNW_FSPRIV(c, t) _FCN_FSPRIV(F_FSOUT, (c), (int)sizeof(t)) |
#define | _FCNRW_FSPRIV(c, t) _FCN_FSPRIV(F_FSINOUT, (c), (int)sizeof(t)) |
#define | LOCK_SH 0x01 |
#define | LOCK_EX 0x02 |
#define | LOCK_NB 0x04 |
#define | LOCK_UN 0x08 |
#define | SEEK_SET 0 |
#define | SEEK_CUR 1 |
#define | SEEK_END 2 |
#define | __NBBY 8 |
#define | __NFDBITS (sizeof(__fd_mask) * __NBBY) |
#define | __howmany(x, y) (((x) + ((y) - 1)) / (y)) |
#define | FD_SETSIZE 256 |
#define | FD_SET(n, p) ((p)->fds_bits[(n)/__NFDBITS] |= (1 << ((n) % __NFDBITS))) |
#define | FD_CLR(n, p) ((p)->fds_bits[(n)/__NFDBITS] &= ~(1 << ((n) % __NFDBITS))) |
#define | FD_ISSET(n, p) ((p)->fds_bits[(n)/__NFDBITS] & (1 << ((n) % __NFDBITS))) |
#define | FD_ZERO(p) (void)memset((p), 0, sizeof(*(p))) |
#define | POLLIN 0x0001 |
#define | POLLPRI 0x0002 |
#define | POLLOUT 0x0004 |
#define | POLLRDNORM 0x0040 |
#define | POLLWRNORM POLLOUT |
#define | POLLRDBAND 0x0080 |
#define | POLLWRBAND 0x0100 |
#define | POLLERR 0x0008 |
#define | POLLHUP 0x0010 |
#define | POLLNVAL 0x0020 |
#define | INFTIM -1 |
#define | IOCPARM_MASK 0x1fff |
#define | IOCPARM_LEN(x) (((x) >> 16) & IOCPARM_MASK) |
#define | IOCBASECMD(x) ((x) & ~(IOCPARM_MASK << 16)) |
#define | IOCGROUP(x) (((x) >> 8) & 0xff) |
#define | IOCPARM_MAX NBPG |
#define | IOC_VOID (unsigned long)0x20000000 |
#define | IOC_OUT (unsigned long)0x40000000 |
#define | IOC_IN (unsigned long)0x80000000 |
#define | IOC_INOUT (IOC_IN|IOC_OUT) |
#define | IOC_DIRMASK (unsigned long)0xe0000000 |
#define | _IOC(inout, group, num, len) (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num)) |
#define | _IO(g, n) _IOC(IOC_VOID, (g), (n), 0) |
#define | _IOR(g, n, t) _IOC(IOC_OUT, (g), (n), sizeof(t)) |
#define | _IOW(g, n, t) _IOC(IOC_IN, (g), (n), sizeof(t)) |
#define | _IOWR(g, n, t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) |
#define | S_ISUID 0004000 |
#define | S_ISGID 0002000 |
#define | S_ISTXT 0001000 |
#define | S_IRWXU 0000700 |
#define | S_IRUSR 0000400 |
#define | S_IWUSR 0000200 |
#define | S_IXUSR 0000100 |
#define | S_IREAD S_IRUSR |
#define | S_IWRITE S_IWUSR |
#define | S_IEXEC S_IXUSR |
#define | S_IRWXG 0000070 |
#define | S_IRGRP 0000040 |
#define | S_IWGRP 0000020 |
#define | S_IXGRP 0000010 |
#define | S_IRWXO 0000007 |
#define | S_IROTH 0000004 |
#define | S_IWOTH 0000002 |
#define | S_IXOTH 0000001 |
#define | _S_IFMT 0170000 |
#define | _S_IFIFO 0010000 |
#define | _S_IFCHR 0020000 |
#define | _S_IFDIR 0040000 |
#define | _S_IFBLK 0060000 |
#define | _S_IFREG 0100000 |
#define | _S_IFLNK 0120000 |
#define | _S_ISVTX 0001000 |
#define | _S_IFSOCK 0140000 |
#define | _S_IFWHT 0160000 |
#define | _S_ARCH1 0200000 |
#define | _S_ARCH2 0400000 |
#define | S_IFMT _S_IFMT |
#define | S_IFIFO _S_IFIFO |
#define | S_IFCHR _S_IFCHR |
#define | S_IFDIR _S_IFDIR |
#define | S_IFBLK _S_IFBLK |
#define | S_IFREG _S_IFREG |
#define | S_IFLNK _S_IFLNK |
#define | S_ISVTX _S_ISVTX |
#define | S_IFSOCK _S_IFSOCK |
#define | S_IFWHT _S_IFWHT |
#define | S_ARCH1 _S_ARCH1 |
#define | S_ARCH2 _S_ARCH2 |
#define | S_ISDIR(m) ((m & _S_IFMT) == _S_IFDIR) |
#define | S_ISCHR(m) ((m & _S_IFMT) == _S_IFCHR) |
#define | S_ISBLK(m) ((m & _S_IFMT) == _S_IFBLK) |
#define | S_ISREG(m) ((m & _S_IFMT) == _S_IFREG) |
#define | S_ISFIFO(m) ((m & _S_IFMT) == _S_IFIFO) |
#define | S_ISLNK(m) ((m & _S_IFMT) == _S_IFLNK) |
#define | S_ISSOCK(m) ((m & _S_IFMT) == _S_IFSOCK) |
#define | S_ISWHT(m) ((m & _S_IFMT) == _S_IFWHT) |
#define | ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) |
#define | ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO) |
#define | DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) |
#define | S_BLKSIZE 512 |
#define | UF_SETTABLE 0x0000ffff |
#define | UF_NODUMP 0x00000001 |
#define | UF_IMMUTABLE 0x00000002 |
#define | UF_APPEND 0x00000004 |
#define | UF_OPAQUE 0x00000008 |
#define | SF_SETTABLE 0xffff0000 |
#define | SF_ARCHIVED 0x00010000 |
#define | SF_IMMUTABLE 0x00020000 |
#define | SF_APPEND 0x00040000 |
#define | MAXPATHLEN PATH_MAX |
#define | MAXFSTYPELEN 32 |
#define | MAXSYMLINKS 32 |
Typedefs |
typedef s_sys_fd_lseek_args | t_sys_fd_lseek_args |
typedef s_sys_fd_mount_args | t_sys_fd_mount_args |
typedef int32_t | __fd_mask |
typedef unsigned int | nfds_t |
typedef s_pollrec | t_pollrec |
Functions |
int | gate_ftruncate (int gate, int gate_id, off_t length, pid_t pid) |
int | gate_truncate (int gate, const char *path, off_t length, pid_t pid) |
ssize_t | gate_write (int gate, int gate_id, const void *buf, size_t len, pid_t pid) |
ssize_t | gate_read (int gate, int gate_id, void *buf, size_t len, pid_t pid) |
int | gate_open (int gate, const char *path, int flags, mode_t mode, pid_t pid) |
int | gate_close (int gate, int gate_id, pid_t pid) |
int | gate_access (int gate, const char *path, int mode, pid_t pid) |
int | gate_chmod (int gate, const char *path, mode_t mode, pid_t pid) |
int | gate_getdents (int gate, int gate_id, char *buf, size_t nbytes, pid_t pid) |
int | gate_chdir (int gate, const char *path, pid_t pid) |
int | gate_mkdir (int gate, const char *path, mode_t mode, pid_t pid) |
int | gate_rmdir (int gate, const char *path, pid_t pid) |
int | gate_poll (int gate, t_pollrec *pollrecs, nfds_t npollrecs, pid_t pid) |
int | gate_link (int gate, const char *path1, const char *path2, pid_t pid) |
int | gate_symlink (int gate, const char *path1, const char *path2, pid_t pid) |
int | gate_unlink (int gate, const char *path, pid_t pid) |
int | gate_readlink (int gate, const char *path, char *buf, size_t bufsiz, pid_t pid) |
off_t | gate_lseek (int gate, int gate_id, off_t offset, int whence, pid_t pid) |
int | gate_mount (int gate, const char *type, const char *dir, int flags, void *data, pid_t pid) |
int | gate_umount (int gate, const char *dir, pid_t pid) |
int | gate_rename (int gate, char *path1, char *path2, pid_t pid) |
int | gate_fstat (int gate, int gate_id, struct stat *sb, pid_t pid) |
int | gate_stat (int gate, const char *path, struct stat *sb, pid_t pid) |
int | gate_lstat (int gate, const char *path, struct stat *sb, pid_t pid) |
int | gate_ioctl (int gate, int gate_id, unsigned long request, void *argp, pid_t pid) |
int | gate_mkfs (int gate, int pdev, pid_t pid) |
int | gate_writembr (int gate, int pdev, pid_t pid) |