blob: c1cfbd4fc568ebd03fc7257b748934a1283cabc2 [file] [log] [blame]
Rob Pikecd324982009-08-13 13:22:37 -07001// mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master
Russ Coxe11f8332009-06-01 22:15:08 -07002// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
Russ Cox6201a962008-09-26 14:11:26 -07003
4package syscall
5
Russ Cox839a6842009-01-20 14:40:40 -08006const (
Russ Cox6201a962008-09-26 14:11:26 -07007 // SYS_NOSYS = 0; // { int nosys(void); } { indirect syscall }
Russ Cox6faacd22009-10-06 19:38:30 -07008 SYS_EXIT = 1; // { void exit(int rval); }
9 SYS_FORK = 2; // { int fork(void); }
10 SYS_READ = 3; // { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
11 SYS_WRITE = 4; // { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
12 SYS_OPEN = 5; // { int open(user_addr_t path, int flags, int mode); }
13 SYS_CLOSE = 6; // { int close(int fd); }
14 SYS_WAIT4 = 7; // { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
Russ Cox6201a962008-09-26 14:11:26 -070015 // SYS_NOSYS = 8; // { int nosys(void); } { old creat }
Russ Cox6faacd22009-10-06 19:38:30 -070016 SYS_LINK = 9; // { int link(user_addr_t path, user_addr_t link); }
17 SYS_UNLINK = 10; // { int unlink(user_addr_t path); }
Russ Cox6201a962008-09-26 14:11:26 -070018 // SYS_NOSYS = 11; // { int nosys(void); } { old execv }
Russ Cox6faacd22009-10-06 19:38:30 -070019 SYS_CHDIR = 12; // { int chdir(user_addr_t path); }
20 SYS_FCHDIR = 13; // { int fchdir(int fd); }
21 SYS_MKNOD = 14; // { int mknod(user_addr_t path, int mode, int dev); }
22 SYS_CHMOD = 15; // { int chmod(user_addr_t path, int mode); }
23 SYS_CHOWN = 16; // { int chown(user_addr_t path, int uid, int gid); }
24 SYS_OGETFSSTAT = 18; // { int ogetfsstat(user_addr_t buf, int bufsize, int flags); }
25 SYS_GETFSSTAT = 18; // { int getfsstat(user_addr_t buf, int bufsize, int flags); }
Russ Cox6201a962008-09-26 14:11:26 -070026 // SYS_NOSYS = 19; // { int nosys(void); } { old lseek }
Russ Cox6faacd22009-10-06 19:38:30 -070027 SYS_GETPID = 20; // { int getpid(void); }
Russ Cox6201a962008-09-26 14:11:26 -070028 // SYS_NOSYS = 21; // { int nosys(void); } { old mount }
29 // SYS_NOSYS = 22; // { int nosys(void); } { old umount }
Russ Cox6faacd22009-10-06 19:38:30 -070030 SYS_SETUID = 23; // { int setuid(uid_t uid); }
31 SYS_GETUID = 24; // { int getuid(void); }
32 SYS_GETEUID = 25; // { int geteuid(void); }
33 SYS_PTRACE = 26; // { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
34 SYS_RECVMSG = 27; // { int recvmsg(int s, struct msghdr *msg, int flags); }
35 SYS_SENDMSG = 28; // { int sendmsg(int s, caddr_t msg, int flags); }
36 SYS_RECVFROM = 29; // { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
37 SYS_ACCEPT = 30; // { int accept(int s, caddr_t name, socklen_t *anamelen); }
38 SYS_GETPEERNAME = 31; // { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
39 SYS_GETSOCKNAME = 32; // { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
Russ Cox6201a962008-09-26 14:11:26 -070040 // SYS_NOSYS = 27; // { int nosys(void); }
41 // SYS_NOSYS = 28; // { int nosys(void); }
42 // SYS_NOSYS = 29; // { int nosys(void); }
43 // SYS_NOSYS = 30; // { int nosys(void); }
44 // SYS_NOSYS = 31; // { int nosys(void); }
45 // SYS_NOSYS = 32; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -070046 SYS_ACCESS = 33; // { int access(user_addr_t path, int flags); }
47 SYS_CHFLAGS = 34; // { int chflags(char *path, int flags); }
48 SYS_FCHFLAGS = 35; // { int fchflags(int fd, int flags); }
49 SYS_SYNC = 36; // { int sync(void); }
50 SYS_KILL = 37; // { int kill(int pid, int signum, int posix); }
Russ Cox6201a962008-09-26 14:11:26 -070051 // SYS_NOSYS = 38; // { int nosys(void); } { old stat }
Russ Cox6faacd22009-10-06 19:38:30 -070052 SYS_GETPPID = 39; // { int getppid(void); }
Russ Cox6201a962008-09-26 14:11:26 -070053 // SYS_NOSYS = 40; // { int nosys(void); } { old lstat }
Russ Cox6faacd22009-10-06 19:38:30 -070054 SYS_DUP = 41; // { int dup(u_int fd); }
55 SYS_PIPE = 42; // { int pipe(void); }
56 SYS_GETEGID = 43; // { int getegid(void); }
57 SYS_PROFIL = 44; // { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
Russ Cox6201a962008-09-26 14:11:26 -070058 // SYS_NOSYS = 45; // { int nosys(void); } { old ktrace }
Russ Cox6faacd22009-10-06 19:38:30 -070059 SYS_SIGACTION = 46; // { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
60 SYS_GETGID = 47; // { int getgid(void); }
61 SYS_SIGPROCMASK = 48; // { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
62 SYS_GETLOGIN = 49; // { int getlogin(char *namebuf, u_int namelen); }
63 SYS_SETLOGIN = 50; // { int setlogin(char *namebuf); }
64 SYS_ACCT = 51; // { int acct(char *path); }
65 SYS_SIGPENDING = 52; // { int sigpending(struct sigvec *osv); }
66 SYS_SIGALTSTACK = 53; // { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
67 SYS_IOCTL = 54; // { int ioctl(int fd, u_long com, caddr_t data); }
68 SYS_REBOOT = 55; // { int reboot(int opt, char *command); }
69 SYS_REVOKE = 56; // { int revoke(char *path); }
70 SYS_SYMLINK = 57; // { int symlink(char *path, char *link); }
71 SYS_READLINK = 58; // { int readlink(char *path, char *buf, int count); }
72 SYS_EXECVE = 59; // { int execve(char *fname, char **argp, char **envp); }
73 SYS_UMASK = 60; // { int umask(int newmask); }
74 SYS_CHROOT = 61; // { int chroot(user_addr_t path); }
Russ Cox6201a962008-09-26 14:11:26 -070075 // SYS_NOSYS = 62; // { int nosys(void); } { old fstat }
76 // SYS_NOSYS = 63; // { int nosys(void); } { used internally, reserved }
77 // SYS_NOSYS = 64; // { int nosys(void); } { old getpagesize }
Russ Cox6faacd22009-10-06 19:38:30 -070078 SYS_MSYNC = 65; // { int msync(caddr_t addr, size_t len, int flags); }
79 SYS_VFORK = 66; // { int vfork(void); }
Russ Cox6201a962008-09-26 14:11:26 -070080 // SYS_NOSYS = 67; // { int nosys(void); } { old vread }
81 // SYS_NOSYS = 68; // { int nosys(void); } { old vwrite }
Russ Cox6faacd22009-10-06 19:38:30 -070082 SYS_SBRK = 69; // { int sbrk(int incr) NO_SYSCALL_STUB; }
83 SYS_SSTK = 70; // { int sstk(int incr) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -070084 // SYS_NOSYS = 71; // { int nosys(void); } { old mmap }
Russ Cox6faacd22009-10-06 19:38:30 -070085 SYS_OVADVISE = 72; // { int ovadvise(void) NO_SYSCALL_STUB; } { old vadvise }
86 SYS_MUNMAP = 73; // { int munmap(caddr_t addr, size_t len); }
87 SYS_MPROTECT = 74; // { int mprotect(caddr_t addr, size_t len, int prot); }
88 SYS_MADVISE = 75; // { int madvise(caddr_t addr, size_t len, int behav); }
Russ Cox6201a962008-09-26 14:11:26 -070089 // SYS_NOSYS = 76; // { int nosys(void); } { old vhangup }
90 // SYS_NOSYS = 77; // { int nosys(void); } { old vlimit }
Russ Cox6faacd22009-10-06 19:38:30 -070091 SYS_MINCORE = 78; // { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
92 SYS_GETGROUPS = 79; // { int getgroups(u_int gidsetsize, gid_t *gidset); }
93 SYS_SETGROUPS = 80; // { int setgroups(u_int gidsetsize, gid_t *gidset); }
94 SYS_GETPGRP = 81; // { int getpgrp(void); }
95 SYS_SETPGID = 82; // { int setpgid(int pid, int pgid); }
96 SYS_SETITIMER = 83; // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
Russ Cox6201a962008-09-26 14:11:26 -070097 // SYS_NOSYS = 84; // { int nosys(void); } { old wait }
Russ Cox6faacd22009-10-06 19:38:30 -070098 SYS_SWAPON = 85; // { int swapon(void); }
99 SYS_GETITIMER = 86; // { int getitimer(u_int which, struct itimerval *itv); }
Russ Cox6201a962008-09-26 14:11:26 -0700100 // SYS_NOSYS = 87; // { int nosys(void); } { old gethostname }
101 // SYS_NOSYS = 88; // { int nosys(void); } { old sethostname }
Russ Cox6faacd22009-10-06 19:38:30 -0700102 SYS_GETDTABLESIZE = 89; // { int getdtablesize(void); }
103 SYS_DUP2 = 90; // { int dup2(u_int from, u_int to); }
Russ Cox6201a962008-09-26 14:11:26 -0700104 // SYS_NOSYS = 91; // { int nosys(void); } { old getdopt }
Russ Cox6faacd22009-10-06 19:38:30 -0700105 SYS_FCNTL = 92; // { int fcntl(int fd, int cmd, long arg); }
106 SYS_SELECT = 93; // { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
Russ Cox6201a962008-09-26 14:11:26 -0700107 // SYS_NOSYS = 94; // { int nosys(void); } { old setdopt }
Russ Cox6faacd22009-10-06 19:38:30 -0700108 SYS_FSYNC = 95; // { int fsync(int fd); }
109 SYS_SETPRIORITY = 96; // { int setpriority(int which, id_t who, int prio); }
110 SYS_SOCKET = 97; // { int socket(int domain, int type, int protocol); }
111 SYS_CONNECT = 98; // { int connect(int s, caddr_t name, socklen_t namelen); }
Russ Cox6201a962008-09-26 14:11:26 -0700112 // SYS_NOSYS = 97; // { int nosys(void); }
113 // SYS_NOSYS = 98; // { int nosys(void); }
114 // SYS_NOSYS = 99; // { int nosys(void); } { old accept }
Russ Cox6faacd22009-10-06 19:38:30 -0700115 SYS_GETPRIORITY = 100; // { int getpriority(int which, id_t who); }
Russ Cox6201a962008-09-26 14:11:26 -0700116 // SYS_NOSYS = 101; // { int nosys(void); } { old send }
117 // SYS_NOSYS = 102; // { int nosys(void); } { old recv }
118 // SYS_NOSYS = 103; // { int nosys(void); } { old sigreturn }
Russ Cox6faacd22009-10-06 19:38:30 -0700119 SYS_BIND = 104; // { int bind(int s, caddr_t name, socklen_t namelen); }
120 SYS_SETSOCKOPT = 105; // { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
121 SYS_LISTEN = 106; // { int listen(int s, int backlog); }
Russ Cox6201a962008-09-26 14:11:26 -0700122 // SYS_NOSYS = 104; // { int nosys(void); }
123 // SYS_NOSYS = 105; // { int nosys(void); }
124 // SYS_NOSYS = 106; // { int nosys(void); }
125 // SYS_NOSYS = 107; // { int nosys(void); } { old vtimes }
126 // SYS_NOSYS = 108; // { int nosys(void); } { old sigvec }
127 // SYS_NOSYS = 109; // { int nosys(void); } { old sigblock }
128 // SYS_NOSYS = 110; // { int nosys(void); } { old sigsetmask }
Russ Cox6faacd22009-10-06 19:38:30 -0700129 SYS_SIGSUSPEND = 111; // { int sigsuspend(sigset_t mask); }
Russ Cox6201a962008-09-26 14:11:26 -0700130 // SYS_NOSYS = 112; // { int nosys(void); } { old sigstack }
131 // SYS_NOSYS = 113; // { int nosys(void); } { old recvmsg }
132 // SYS_NOSYS = 114; // { int nosys(void); } { old sendmsg }
133 // SYS_NOSYS = 113; // { int nosys(void); }
134 // SYS_NOSYS = 114; // { int nosys(void); }
135 // SYS_NOSYS = 115; // { int nosys(void); } { old vtrace }
Russ Cox6faacd22009-10-06 19:38:30 -0700136 SYS_GETTIMEOFDAY = 116; // { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
137 SYS_GETRUSAGE = 117; // { int getrusage(int who, struct rusage *rusage); }
138 SYS_GETSOCKOPT = 118; // { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
Russ Cox6201a962008-09-26 14:11:26 -0700139 // SYS_NOSYS = 118; // { int nosys(void); }
140 // SYS_NOSYS = 119; // { int nosys(void); } { old resuba }
Russ Cox6faacd22009-10-06 19:38:30 -0700141 SYS_READV = 120; // { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
142 SYS_WRITEV = 121; // { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
143 SYS_SETTIMEOFDAY = 122; // { int settimeofday(struct timeval *tv, struct timezone *tzp); }
144 SYS_FCHOWN = 123; // { int fchown(int fd, int uid, int gid); }
145 SYS_FCHMOD = 124; // { int fchmod(int fd, int mode); }
Russ Cox6201a962008-09-26 14:11:26 -0700146 // SYS_NOSYS = 125; // { int nosys(void); } { old recvfrom }
Russ Cox6faacd22009-10-06 19:38:30 -0700147 SYS_SETREUID = 126; // { int setreuid(uid_t ruid, uid_t euid); }
148 SYS_SETREGID = 127; // { int setregid(gid_t rgid, gid_t egid); }
149 SYS_RENAME = 128; // { int rename(char *from, char *to); }
Russ Cox6201a962008-09-26 14:11:26 -0700150 // SYS_NOSYS = 129; // { int nosys(void); } { old truncate }
151 // SYS_NOSYS = 130; // { int nosys(void); } { old ftruncate }
Russ Cox6faacd22009-10-06 19:38:30 -0700152 SYS_FLOCK = 131; // { int flock(int fd, int how); }
153 SYS_MKFIFO = 132; // { int mkfifo(user_addr_t path, int mode); }
154 SYS_SENDTO = 133; // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
155 SYS_SHUTDOWN = 134; // { int shutdown(int s, int how); }
156 SYS_SOCKETPAIR = 135; // { int socketpair(int domain, int type, int protocol, int *rsv); }
Russ Cox6201a962008-09-26 14:11:26 -0700157 // SYS_NOSYS = 133; // { int nosys(void); }
158 // SYS_NOSYS = 134; // { int nosys(void); }
159 // SYS_NOSYS = 135; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700160 SYS_MKDIR = 136; // { int mkdir(user_addr_t path, int mode); }
161 SYS_RMDIR = 137; // { int rmdir(char *path); }
162 SYS_UTIMES = 138; // { int utimes(char *path, struct timeval *tptr); }
163 SYS_FUTIMES = 139; // { int futimes(int fd, struct timeval *tptr); }
164 SYS_ADJTIME = 140; // { int adjtime(struct timeval *delta, struct timeval *olddelta); }
Russ Cox6201a962008-09-26 14:11:26 -0700165 // SYS_NOSYS = 141; // { int nosys(void); } { old getpeername }
Russ Coxfd1add22009-11-01 11:13:27 -0800166 SYS_GETHOSTUUID = 142; // { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp); }
Russ Cox6201a962008-09-26 14:11:26 -0700167 // SYS_NOSYS = 143; // { int nosys(void); } { old sethostid }
168 // SYS_NOSYS = 144; // { int nosys(void); } { old getrlimit }
169 // SYS_NOSYS = 145; // { int nosys(void); } { old setrlimit }
170 // SYS_NOSYS = 146; // { int nosys(void); } { old killpg }
Russ Cox6faacd22009-10-06 19:38:30 -0700171 SYS_SETSID = 147; // { int setsid(void); }
Russ Cox6201a962008-09-26 14:11:26 -0700172 // SYS_NOSYS = 148; // { int nosys(void); } { old setquota }
173 // SYS_NOSYS = 149; // { int nosys(void); } { old qquota }
174 // SYS_NOSYS = 150; // { int nosys(void); } { old getsockname }
Russ Cox6faacd22009-10-06 19:38:30 -0700175 SYS_GETPGID = 151; // { int getpgid(pid_t pid); }
176 SYS_SETPRIVEXEC = 152; // { int setprivexec(int flag); }
177 SYS_PREAD = 153; // { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
178 SYS_PWRITE = 154; // { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
179 SYS_NFSSVC = 155; // { int nfssvc(int flag, caddr_t argp); }
Russ Cox6201a962008-09-26 14:11:26 -0700180 // SYS_NOSYS = 155; // { int nosys(void); }
181 // SYS_NOSYS = 156; // { int nosys(void); } { old getdirentries }
Russ Cox6faacd22009-10-06 19:38:30 -0700182 SYS_STATFS = 157; // { int statfs(char *path, struct statfs *buf); }
183 SYS_FSTATFS = 158; // { int fstatfs(int fd, struct statfs *buf); }
184 SYS_UNMOUNT = 159; // { int unmount(user_addr_t path, int flags); }
Russ Cox6201a962008-09-26 14:11:26 -0700185 // SYS_NOSYS = 160; // { int nosys(void); } { old async_daemon }
Russ Cox6faacd22009-10-06 19:38:30 -0700186 SYS_GETFH = 161; // { int getfh(char *fname, fhandle_t *fhp); }
Russ Cox6201a962008-09-26 14:11:26 -0700187 // SYS_NOSYS = 161; // { int nosys(void); }
188 // SYS_NOSYS = 162; // { int nosys(void); } { old getdomainname }
189 // SYS_NOSYS = 163; // { int nosys(void); } { old setdomainname }
190 // SYS_NOSYS = 164; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700191 SYS_QUOTACTL = 165; // { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
Russ Cox6201a962008-09-26 14:11:26 -0700192 // SYS_NOSYS = 166; // { int nosys(void); } { old exportfs }
Russ Cox6faacd22009-10-06 19:38:30 -0700193 SYS_MOUNT = 167; // { int mount(char *type, char *path, int flags, caddr_t data); }
Russ Cox6201a962008-09-26 14:11:26 -0700194 // SYS_NOSYS = 168; // { int nosys(void); } { old ustat }
Russ Cox6faacd22009-10-06 19:38:30 -0700195 SYS_CSOPS = 169; // { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
Russ Cox6201a962008-09-26 14:11:26 -0700196 // SYS_NOSYS = 171; // { int nosys(void); } { old wait3 }
197 // SYS_NOSYS = 172; // { int nosys(void); } { old rpause }
Russ Cox6faacd22009-10-06 19:38:30 -0700198 SYS_WAITID = 173; // { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
Russ Cox6201a962008-09-26 14:11:26 -0700199 // SYS_NOSYS = 174; // { int nosys(void); } { old getdents }
200 // SYS_NOSYS = 175; // { int nosys(void); } { old gc_control }
Russ Cox6faacd22009-10-06 19:38:30 -0700201 SYS_ADD_PROFIL = 176; // { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
Russ Cox6201a962008-09-26 14:11:26 -0700202 // SYS_NOSYS = 177; // { int nosys(void); }
203 // SYS_NOSYS = 178; // { int nosys(void); }
204 // SYS_NOSYS = 179; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700205 SYS_KDEBUG_TRACE = 180; // { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; }
206 SYS_SETGID = 181; // { int setgid(gid_t gid); }
207 SYS_SETEGID = 182; // { int setegid(gid_t egid); }
208 SYS_SETEUID = 183; // { int seteuid(uid_t euid); }
209 SYS_SIGRETURN = 184; // { int sigreturn(struct ucontext *uctx, int infostyle); }
Russ Cox6201a962008-09-26 14:11:26 -0700210 // SYS_NOSYS = 186; // { int nosys(void); }
211 // SYS_NOSYS = 187; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700212 SYS_STAT = 188; // { int stat(user_addr_t path, user_addr_t ub); }
213 SYS_FSTAT = 189; // { int fstat(int fd, user_addr_t ub); }
214 SYS_LSTAT = 190; // { int lstat(user_addr_t path, user_addr_t ub); }
215 SYS_PATHCONF = 191; // { int pathconf(char *path, int name); }
216 SYS_FPATHCONF = 192; // { int fpathconf(int fd, int name); }
Russ Cox6201a962008-09-26 14:11:26 -0700217 // SYS_NOSYS = 193; // { int nosys(void); }
Russ Coxfd1add22009-11-01 11:13:27 -0800218 SYS_GETRLIMIT = 194; // { int getrlimit(u_int which, struct rlimit *rlp); }
219 SYS_SETRLIMIT = 195; // { int setrlimit(u_int which, struct rlimit *rlp); }
220 SYS_GETDIRENTRIES = 196; // { int getdirentries(int fd, char *buf, u_int count, long *basep); }
221 SYS_MMAP = 197; // { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
Russ Cox6201a962008-09-26 14:11:26 -0700222 // SYS_NOSYS = 198; // { int nosys(void); } { __syscall }
Russ Coxfd1add22009-11-01 11:13:27 -0800223 SYS_LSEEK = 199; // { off_t lseek(int fd, off_t offset, int whence); }
224 SYS_TRUNCATE = 200; // { int truncate(char *path, off_t length); }
225 SYS_FTRUNCATE = 201; // { int ftruncate(int fd, off_t length); }
226 SYS___SYSCTL = 202; // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
227 SYS_MLOCK = 203; // { int mlock(caddr_t addr, size_t len); }
228 SYS_MUNLOCK = 204; // { int munlock(caddr_t addr, size_t len); }
229 SYS_UNDELETE = 205; // { int undelete(user_addr_t path); }
230 SYS_ATSOCKET = 206; // { int ATsocket(int proto); }
Russ Cox6201a962008-09-26 14:11:26 -0700231 // SYS_NOSYS = 213; // { int nosys(void); } { Reserved for AppleTalk }
232 // SYS_NOSYS = 206; // { int nosys(void); }
233 // SYS_NOSYS = 207; // { int nosys(void); }
234 // SYS_NOSYS = 208; // { int nosys(void); }
235 // SYS_NOSYS = 209; // { int nosys(void); }
236 // SYS_NOSYS = 210; // { int nosys(void); }
237 // SYS_NOSYS = 211; // { int nosys(void); }
238 // SYS_NOSYS = 212; // { int nosys(void); }
239 // SYS_NOSYS = 213; // { int nosys(void); } { Reserved for AppleTalk }
Russ Cox6faacd22009-10-06 19:38:30 -0700240 SYS_KQUEUE_FROM_PORTSET_NP = 214; // { int kqueue_from_portset_np(int portset); }
241 SYS_KQUEUE_PORTSET_NP = 215; // { int kqueue_portset_np(int fd); }
242 SYS_GETATTRLIST = 220; // { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
243 SYS_SETATTRLIST = 221; // { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
244 SYS_GETDIRENTRIESATTR = 222; // { int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); }
245 SYS_EXCHANGEDATA = 223; // { int exchangedata(const char *path1, const char *path2, u_long options); }
Russ Cox6201a962008-09-26 14:11:26 -0700246 // SYS_NOSYS = 224; // { int nosys(void); } { was checkuseraccess }
Russ Cox6faacd22009-10-06 19:38:30 -0700247 SYS_SEARCHFS = 225; // { int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); }
248 SYS_DELETE = 226; // { int delete(user_addr_t path) NO_SYSCALL_STUB; } { private delete (Carbon semantics) }
249 SYS_COPYFILE = 227; // { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700250 // SYS_NOSYS = 228; // { int nosys(void); }
251 // SYS_NOSYS = 229; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700252 SYS_POLL = 230; // { int poll(struct pollfd *fds, u_int nfds, int timeout); }
253 SYS_WATCHEVENT = 231; // { int watchevent(struct eventreq *u_req, int u_eventmask); }
254 SYS_WAITEVENT = 232; // { int waitevent(struct eventreq *u_req, struct timeval *tv); }
255 SYS_MODWATCH = 233; // { int modwatch(struct eventreq *u_req, int u_eventmask); }
256 SYS_GETXATTR = 234; // { user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
257 SYS_FGETXATTR = 235; // { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
258 SYS_SETXATTR = 236; // { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
259 SYS_FSETXATTR = 237; // { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
260 SYS_REMOVEXATTR = 238; // { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
261 SYS_FREMOVEXATTR = 239; // { int fremovexattr(int fd, user_addr_t attrname, int options); }
262 SYS_LISTXATTR = 240; // { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
263 SYS_FLISTXATTR = 241; // { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
264 SYS_FSCTL = 242; // { int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); }
265 SYS_INITGROUPS = 243; // { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
266 SYS_POSIX_SPAWN = 244; // { int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp); }
Russ Cox6201a962008-09-26 14:11:26 -0700267 // SYS_NOSYS = 245; // { int nosys(void); }
268 // SYS_NOSYS = 246; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700269 SYS_NFSCLNT = 247; // { int nfsclnt(int flag, caddr_t argp); }
Russ Cox6201a962008-09-26 14:11:26 -0700270 // SYS_NOSYS = 247; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700271 SYS_FHOPEN = 248; // { int fhopen(const struct fhandle *u_fhp, int flags); }
Russ Cox6201a962008-09-26 14:11:26 -0700272 // SYS_NOSYS = 248; // { int nosys(void); }
273 // SYS_NOSYS = 249; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700274 SYS_MINHERIT = 250; // { int minherit(void *addr, size_t len, int inherit); }
275 SYS_SEMSYS = 251; // { int semsys(u_int which, int a2, int a3, int a4, int a5); }
Russ Cox6201a962008-09-26 14:11:26 -0700276 // SYS_NOSYS = 251; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700277 SYS_MSGSYS = 252; // { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
Russ Cox6201a962008-09-26 14:11:26 -0700278 // SYS_NOSYS = 252; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700279 SYS_SHMSYS = 253; // { int shmsys(u_int which, int a2, int a3, int a4); }
Russ Cox6201a962008-09-26 14:11:26 -0700280 // SYS_NOSYS = 253; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700281 SYS_SEMCTL = 254; // { int semctl(int semid, int semnum, int cmd, semun_t arg); }
282 SYS_SEMGET = 255; // { int semget(key_t key, int nsems, int semflg); }
283 SYS_SEMOP = 256; // { int semop(int semid, struct sembuf *sops, int nsops); }
Russ Cox6201a962008-09-26 14:11:26 -0700284 // SYS_NOSYS = 257; // { int nosys(void); }
285 // SYS_NOSYS = 254; // { int nosys(void); }
286 // SYS_NOSYS = 255; // { int nosys(void); }
287 // SYS_NOSYS = 256; // { int nosys(void); }
288 // SYS_NOSYS = 257; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700289 SYS_MSGCTL = 258; // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
290 SYS_MSGGET = 259; // { int msgget(key_t key, int msgflg); }
291 SYS_MSGSND = 260; // { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
292 SYS_MSGRCV = 261; // { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
Russ Cox6201a962008-09-26 14:11:26 -0700293 // SYS_NOSYS = 258; // { int nosys(void); }
294 // SYS_NOSYS = 259; // { int nosys(void); }
295 // SYS_NOSYS = 260; // { int nosys(void); }
296 // SYS_NOSYS = 261; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700297 SYS_SHMAT = 262; // { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
298 SYS_SHMCTL = 263; // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
299 SYS_SHMDT = 264; // { int shmdt(void *shmaddr); }
300 SYS_SHMGET = 265; // { int shmget(key_t key, size_t size, int shmflg); }
Russ Cox6201a962008-09-26 14:11:26 -0700301 // SYS_NOSYS = 262; // { int nosys(void); }
302 // SYS_NOSYS = 263; // { int nosys(void); }
303 // SYS_NOSYS = 264; // { int nosys(void); }
304 // SYS_NOSYS = 265; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700305 SYS_SHM_OPEN = 266; // { int shm_open(const char *name, int oflag, int mode); }
306 SYS_SHM_UNLINK = 267; // { int shm_unlink(const char *name); }
307 SYS_SEM_OPEN = 268; // { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
308 SYS_SEM_CLOSE = 269; // { int sem_close(sem_t *sem); }
309 SYS_SEM_UNLINK = 270; // { int sem_unlink(const char *name); }
310 SYS_SEM_WAIT = 271; // { int sem_wait(sem_t *sem); }
311 SYS_SEM_TRYWAIT = 272; // { int sem_trywait(sem_t *sem); }
312 SYS_SEM_POST = 273; // { int sem_post(sem_t *sem); }
313 SYS_SEM_GETVALUE = 274; // { int sem_getvalue(sem_t *sem, int *sval); }
314 SYS_SEM_INIT = 275; // { int sem_init(sem_t *sem, int phsared, u_int value); }
315 SYS_SEM_DESTROY = 276; // { int sem_destroy(sem_t *sem); }
316 SYS_OPEN_EXTENDED = 277; // { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
317 SYS_UMASK_EXTENDED = 278; // { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
318 SYS_STAT_EXTENDED = 279; // { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
319 SYS_LSTAT_EXTENDED = 280; // { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
320 SYS_FSTAT_EXTENDED = 281; // { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
321 SYS_CHMOD_EXTENDED = 282; // { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
322 SYS_FCHMOD_EXTENDED = 283; // { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
323 SYS_ACCESS_EXTENDED = 284; // { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
324 SYS_SETTID = 285; // { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
325 SYS_GETTID = 286; // { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
326 SYS_SETSGROUPS = 287; // { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
327 SYS_GETSGROUPS = 288; // { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
328 SYS_SETWGROUPS = 289; // { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
329 SYS_GETWGROUPS = 290; // { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
330 SYS_MKFIFO_EXTENDED = 291; // { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
331 SYS_MKDIR_EXTENDED = 292; // { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
332 SYS_IDENTITYSVC = 293; // { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
333 SYS_SHARED_REGION_CHECK_NP = 294; // { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
334 SYS_SHARED_REGION_MAP_NP = 295; // { int shared_region_map_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700335 // SYS_NOSYS = 296; // { int nosys(void); } { old load_shared_file }
336 // SYS_NOSYS = 297; // { int nosys(void); } { old reset_shared_file }
337 // SYS_NOSYS = 298; // { int nosys(void); } { old new_system_shared_regions }
Ken Thompson57bd0da2008-12-09 18:31:31 -0800338 // SYS_ENOSYS = 299; // { int enosys(void); } { old shared_region_map_file_np }
Russ Coxe11f8332009-06-01 22:15:08 -0700339 // SYS_ENOSYS = 300; // { int enosys(void); } { old shared_region_make_private_np }
Russ Cox6faacd22009-10-06 19:38:30 -0700340 SYS___PTHREAD_MUTEX_DESTROY = 301; // { int __pthread_mutex_destroy(int mutexid); }
341 SYS___PTHREAD_MUTEX_INIT = 302; // { int __pthread_mutex_init(user_addr_t mutex, user_addr_t attr); }
342 SYS___PTHREAD_MUTEX_LOCK = 303; // { int __pthread_mutex_lock(int mutexid); }
343 SYS___PTHREAD_MUTEX_TRYLOCK = 304; // { int __pthread_mutex_trylock(int mutexid); }
344 SYS___PTHREAD_MUTEX_UNLOCK = 305; // { int __pthread_mutex_unlock(int mutexid); }
345 SYS___PTHREAD_COND_INIT = 306; // { int __pthread_cond_init(user_addr_t cond, user_addr_t attr); }
346 SYS___PTHREAD_COND_DESTROY = 307; // { int __pthread_cond_destroy(int condid); }
347 SYS___PTHREAD_COND_BROADCAST = 308; // { int __pthread_cond_broadcast(int condid); }
348 SYS___PTHREAD_COND_SIGNAL = 309; // { int __pthread_cond_signal(int condid); }
349 SYS_GETSID = 310; // { int getsid(pid_t pid); }
350 SYS_SETTID_WITH_PID = 311; // { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
351 SYS___PTHREAD_COND_TIMEDWAIT = 312; // { int __pthread_cond_timedwait(int condid, int mutexid, user_addr_t abstime); }
352 SYS_AIO_FSYNC = 313; // { int aio_fsync(int op, user_addr_t aiocbp); }
353 SYS_AIO_RETURN = 314; // { user_ssize_t aio_return(user_addr_t aiocbp); }
354 SYS_AIO_SUSPEND = 315; // { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
355 SYS_AIO_CANCEL = 316; // { int aio_cancel(int fd, user_addr_t aiocbp); }
356 SYS_AIO_ERROR = 317; // { int aio_error(user_addr_t aiocbp); }
357 SYS_AIO_READ = 318; // { int aio_read(user_addr_t aiocbp); }
358 SYS_AIO_WRITE = 319; // { int aio_write(user_addr_t aiocbp); }
359 SYS_LIO_LISTIO = 320; // { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
360 SYS___PTHREAD_COND_WAIT = 321; // { int __pthread_cond_wait(int condid, int mutexid); }
361 SYS_IOPOLICYSYS = 322; // { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700362 // SYS_NOSYS = 323; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700363 SYS_MLOCKALL = 324; // { int mlockall(int how); }
364 SYS_MUNLOCKALL = 325; // { int munlockall(int how); }
Russ Cox6201a962008-09-26 14:11:26 -0700365 // SYS_NOSYS = 326; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700366 SYS_ISSETUGID = 327; // { int issetugid(void); }
367 SYS___PTHREAD_KILL = 328; // { int __pthread_kill(int thread_port, int sig); }
368 SYS___PTHREAD_SIGMASK = 329; // { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
369 SYS___SIGWAIT = 330; // { int __sigwait(user_addr_t set, user_addr_t sig); }
370 SYS___DISABLE_THREADSIGNAL = 331; // { int __disable_threadsignal(int value); }
371 SYS___PTHREAD_MARKCANCEL = 332; // { int __pthread_markcancel(int thread_port); }
372 SYS___PTHREAD_CANCELED = 333; // { int __pthread_canceled(int action); }
373 SYS___SEMWAIT_SIGNAL = 334; // { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); }
Russ Cox6201a962008-09-26 14:11:26 -0700374 // SYS_NOSYS = 335; // { int nosys(void); } { old utrace }
Russ Cox6faacd22009-10-06 19:38:30 -0700375 SYS_PROC_INFO = 336; // { int proc_info(int32_t callnum,int32_t pid,uint32_t flavor, uint64_t arg,user_addr_t buffer,int32_t buffersize) NO_SYSCALL_STUB; }
376 SYS_SENDFILE = 337; // { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
Russ Cox6201a962008-09-26 14:11:26 -0700377 // SYS_NOSYS = 337; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700378 SYS_STAT64 = 338; // { int stat64(user_addr_t path, user_addr_t ub); }
379 SYS_FSTAT64 = 339; // { int fstat64(int fd, user_addr_t ub); }
380 SYS_LSTAT64 = 340; // { int lstat64(user_addr_t path, user_addr_t ub); }
381 SYS_STAT64_EXTENDED = 341; // { int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
382 SYS_LSTAT64_EXTENDED = 342; // { int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
383 SYS_FSTAT64_EXTENDED = 343; // { int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
384 SYS_GETDIRENTRIES64 = 344; // { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
385 SYS_STATFS64 = 345; // { int statfs64(char *path, struct statfs64 *buf); }
386 SYS_FSTATFS64 = 346; // { int fstatfs64(int fd, struct statfs64 *buf); }
387 SYS_GETFSSTAT64 = 347; // { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
388 SYS___PTHREAD_CHDIR = 348; // { int __pthread_chdir(user_addr_t path); }
389 SYS___PTHREAD_FCHDIR = 349; // { int __pthread_fchdir(int fd); }
390 SYS_AUDIT = 350; // { int audit(void *record, int length); }
391 SYS_AUDITON = 351; // { int auditon(int cmd, void *data, int length); }
Russ Cox6201a962008-09-26 14:11:26 -0700392 // SYS_NOSYS = 352; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700393 SYS_GETAUID = 353; // { int getauid(au_id_t *auid); }
394 SYS_SETAUID = 354; // { int setauid(au_id_t *auid); }
395 SYS_GETAUDIT = 355; // { int getaudit(struct auditinfo *auditinfo); }
396 SYS_SETAUDIT = 356; // { int setaudit(struct auditinfo *auditinfo); }
397 SYS_GETAUDIT_ADDR = 357; // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
398 SYS_SETAUDIT_ADDR = 358; // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
399 SYS_AUDITCTL = 359; // { int auditctl(char *path); }
Russ Cox6201a962008-09-26 14:11:26 -0700400 // SYS_NOSYS = 350; // { int nosys(void); }
401 // SYS_NOSYS = 351; // { int nosys(void); }
402 // SYS_NOSYS = 352; // { int nosys(void); }
403 // SYS_NOSYS = 353; // { int nosys(void); }
404 // SYS_NOSYS = 354; // { int nosys(void); }
405 // SYS_NOSYS = 355; // { int nosys(void); }
406 // SYS_NOSYS = 356; // { int nosys(void); }
407 // SYS_NOSYS = 357; // { int nosys(void); }
408 // SYS_NOSYS = 358; // { int nosys(void); }
409 // SYS_NOSYS = 359; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700410 SYS_BSDTHREAD_CREATE = 360; // { user_addr_t bsdthread_create(user_addr_t func, user_addr_t func_arg, user_addr_t stack, user_addr_t pthread, uint32_t flags) NO_SYSCALL_STUB; }
411 SYS_BSDTHREAD_TERMINATE = 361; // { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
412 SYS_KQUEUE = 362; // { int kqueue(void); }
413 SYS_KEVENT = 363; // { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
414 SYS_LCHOWN = 364; // { int lchown(user_addr_t path, uid_t owner, gid_t group); }
415 SYS_STACK_SNAPSHOT = 365; // { int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t options) NO_SYSCALL_STUB; }
416 SYS_BSDTHREAD_REGISTER = 366; // { int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, int pthsize) NO_SYSCALL_STUB; }
417 SYS_WORKQ_OPEN = 367; // { int workq_open(void) NO_SYSCALL_STUB; }
418 SYS_WORKQ_OPS = 368; // { int workq_ops(int options, user_addr_t item, int prio) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700419 // SYS_NOSYS = 369; // { int nosys(void); }
420 // SYS_NOSYS = 370; // { int nosys(void); }
421 // SYS_NOSYS = 371; // { int nosys(void); }
422 // SYS_NOSYS = 372; // { int nosys(void); }
423 // SYS_NOSYS = 373; // { int nosys(void); }
424 // SYS_NOSYS = 374; // { int nosys(void); }
425 // SYS_NOSYS = 375; // { int nosys(void); }
426 // SYS_NOSYS = 376; // { int nosys(void); }
427 // SYS_NOSYS = 377; // { int nosys(void); }
428 // SYS_NOSYS = 378; // { int nosys(void); }
429 // SYS_NOSYS = 379; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700430 SYS___MAC_EXECVE = 380; // { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
431 SYS___MAC_SYSCALL = 381; // { int __mac_syscall(char *policy, int call, user_addr_t arg); }
432 SYS___MAC_GET_FILE = 382; // { int __mac_get_file(char *path_p, struct mac *mac_p); }
433 SYS___MAC_SET_FILE = 383; // { int __mac_set_file(char *path_p, struct mac *mac_p); }
434 SYS___MAC_GET_LINK = 384; // { int __mac_get_link(char *path_p, struct mac *mac_p); }
435 SYS___MAC_SET_LINK = 385; // { int __mac_set_link(char *path_p, struct mac *mac_p); }
436 SYS___MAC_GET_PROC = 386; // { int __mac_get_proc(struct mac *mac_p); }
437 SYS___MAC_SET_PROC = 387; // { int __mac_set_proc(struct mac *mac_p); }
438 SYS___MAC_GET_FD = 388; // { int __mac_get_fd(int fd, struct mac *mac_p); }
439 SYS___MAC_SET_FD = 389; // { int __mac_set_fd(int fd, struct mac *mac_p); }
440 SYS___MAC_GET_PID = 390; // { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
441 SYS___MAC_GET_LCID = 391; // { int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
442 SYS___MAC_GET_LCTX = 392; // { int __mac_get_lctx(struct mac *mac_p); }
443 SYS___MAC_SET_LCTX = 393; // { int __mac_set_lctx(struct mac *mac_p); }
444 SYS_SETLCID = 394; // { int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
445 SYS_GETLCID = 395; // { int getlcid(pid_t pid) NO_SYSCALL_STUB; }
446 SYS_READ_NOCANCEL = 396; // { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
447 SYS_WRITE_NOCANCEL = 397; // { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
448 SYS_OPEN_NOCANCEL = 398; // { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
449 SYS_CLOSE_NOCANCEL = 399; // { int close_nocancel(int fd) NO_SYSCALL_STUB; }
450 SYS_WAIT4_NOCANCEL = 400; // { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
451 SYS_RECVMSG_NOCANCEL = 401; // { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
452 SYS_SENDMSG_NOCANCEL = 402; // { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
453 SYS_RECVFROM_NOCANCEL = 403; // { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
454 SYS_ACCEPT_NOCANCEL = 404; // { int accept_nocancel(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700455 // SYS_NOSYS = 401; // { int nosys(void); }
456 // SYS_NOSYS = 402; // { int nosys(void); }
457 // SYS_NOSYS = 403; // { int nosys(void); }
458 // SYS_NOSYS = 404; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700459 SYS_MSYNC_NOCANCEL = 405; // { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
460 SYS_FCNTL_NOCANCEL = 406; // { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
461 SYS_SELECT_NOCANCEL = 407; // { int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; }
462 SYS_FSYNC_NOCANCEL = 408; // { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
463 SYS_CONNECT_NOCANCEL = 409; // { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700464 // SYS_NOSYS = 409; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700465 SYS_SIGSUSPEND_NOCANCEL = 410; // { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
466 SYS_READV_NOCANCEL = 411; // { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
467 SYS_WRITEV_NOCANCEL = 412; // { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
468 SYS_SENDTO_NOCANCEL = 413; // { int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700469 // SYS_NOSYS = 413; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700470 SYS_PREAD_NOCANCEL = 414; // { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
471 SYS_PWRITE_NOCANCEL = 415; // { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
472 SYS_WAITID_NOCANCEL = 416; // { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
473 SYS_POLL_NOCANCEL = 417; // { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
474 SYS_MSGSND_NOCANCEL = 418; // { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
475 SYS_MSGRCV_NOCANCEL = 419; // { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
Russ Cox6201a962008-09-26 14:11:26 -0700476 // SYS_NOSYS = 418; // { int nosys(void); }
477 // SYS_NOSYS = 419; // { int nosys(void); }
Russ Cox6faacd22009-10-06 19:38:30 -0700478 SYS_SEM_WAIT_NOCANCEL = 420; // { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
479 SYS_AIO_SUSPEND_NOCANCEL = 421; // { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
480 SYS___SIGWAIT_NOCANCEL = 422; // { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
481 SYS___SEMWAIT_SIGNAL_NOCANCEL = 423; // { int __semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec) NO_SYSCALL_STUB; }
482 SYS___MAC_MOUNT = 424; // { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
483 SYS___MAC_GET_MOUNT = 425; // { int __mac_get_mount(char *path, struct mac *mac_p); }
484 SYS___MAC_GETFSSTAT = 426; // { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
Russ Cox6201a962008-09-26 14:11:26 -0700485)