]> git.saurik.com Git - apple/xnu.git/blob - bsd/kern/syscalls.master
xnu-1228.tar.gz
[apple/xnu.git] / bsd / kern / syscalls.master
1 ; derived from: FreeBSD @(#)syscalls.master 8.2 (Berkeley) 1/13/94
2 ;
3 ; System call name/number master file.
4 ; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates:
5 ; .../xnu/bsd/kern/init_sysent.c
6 ; .../xnu/bsd/kern/syscalls.c
7 ; .../xnu/bsd/sys/syscall.h
8 ; .../xnu/bsd/sys/sysproto.h
9
10 ; Columns -> | Number Files | { Name and Args } | { Comments }
11 ; Number: system call number, must be in order
12 ; Files: with files to generate - "ALL" or any combo of:
13 ; "T" for syscall table (in init_sysent.c)
14 ; "N" for syscall names (in syscalls.c)
15 ; "H" for syscall headers (in syscall.h)
16 ; "P" for syscall prototypes (in sysproto.h)
17 ; Name and Args: function prototype, optionally followed by
18 ; NO_SYSCALL_STUB (which mean no system call stub will
19 ; be generated in libSystem) and ending with a semicolon.
20 ; (Note: functions prefixed by double-underbar are
21 ; automatically given the NO_SYSCALL_STUB attribute.)
22 ; Comments: additional comments about the sys call copied to output files
23
24 ; #ifdef's, #include's, #if's etc. are copied to all output files.
25 ; N.B.: makesyscalls.sh and createsyscalls.pl must be updated to account
26 ; for any new argument types.
27
28 #include <sys/appleapiopts.h>
29 #include <sys/param.h>
30 #include <sys/systm.h>
31 #include <sys/types.h>
32 #include <sys/sysent.h>
33 #include <sys/sysproto.h>
34
35 0 ALL { int nosys(void); } { indirect syscall }
36 1 ALL { void exit(int rval); }
37 2 ALL { int fork(void); }
38 3 ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
39 4 ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
40 5 ALL { int open(user_addr_t path, int flags, int mode); }
41 6 ALL { int close(int fd); }
42 7 ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
43 8 ALL { int nosys(void); } { old creat }
44 9 ALL { int link(user_addr_t path, user_addr_t link); }
45 10 ALL { int unlink(user_addr_t path); }
46 11 ALL { int nosys(void); } { old execv }
47 12 ALL { int chdir(user_addr_t path); }
48 13 ALL { int fchdir(int fd); }
49 14 ALL { int mknod(user_addr_t path, int mode, int dev); }
50 15 ALL { int chmod(user_addr_t path, int mode); }
51 16 ALL { int chown(user_addr_t path, int uid, int gid); }
52 17 UALL { int obreak(char *nsize) NO_SYSCALL_STUB; } { old break }
53
54 #if COMPAT_GETFSSTAT
55 18 ALL { int ogetfsstat(user_addr_t buf, int bufsize, int flags); }
56 #else
57 18 ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
58 #endif
59
60 19 ALL { int nosys(void); } { old lseek }
61 20 ALL { int getpid(void); }
62 21 ALL { int nosys(void); } { old mount }
63 22 ALL { int nosys(void); } { old umount }
64 23 ALL { int setuid(uid_t uid); }
65 24 ALL { int getuid(void); }
66 25 ALL { int geteuid(void); }
67 26 ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
68 #if SOCKETS
69 27 ALL { int recvmsg(int s, struct msghdr *msg, int flags); }
70 28 ALL { int sendmsg(int s, caddr_t msg, int flags); }
71 29 ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
72 30 ALL { int accept(int s, caddr_t name, socklen_t *anamelen); }
73 31 ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
74 32 ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
75 #else
76 27 ALL { int nosys(void); }
77 28 ALL { int nosys(void); }
78 29 ALL { int nosys(void); }
79 30 ALL { int nosys(void); }
80 31 ALL { int nosys(void); }
81 32 ALL { int nosys(void); }
82 #endif /* SOCKETS */
83 33 ALL { int access(user_addr_t path, int flags); }
84 34 ALL { int chflags(char *path, int flags); }
85 35 ALL { int fchflags(int fd, int flags); }
86 36 ALL { int sync(void); }
87 37 ALL { int kill(int pid, int signum, int posix); }
88 38 ALL { int nosys(void); } { old stat }
89 39 ALL { int getppid(void); }
90 40 ALL { int nosys(void); } { old lstat }
91 41 ALL { int dup(u_int fd); }
92 42 ALL { int pipe(void); }
93 43 ALL { int getegid(void); }
94 44 ALL { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
95 45 ALL { int nosys(void); } { old ktrace }
96 46 ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
97 47 ALL { int getgid(void); }
98 48 ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
99 49 ALL { int getlogin(char *namebuf, u_int namelen); }
100 50 ALL { int setlogin(char *namebuf); }
101 51 ALL { int acct(char *path); }
102 52 ALL { int sigpending(struct sigvec *osv); }
103 53 ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
104 54 ALL { int ioctl(int fd, u_long com, caddr_t data); }
105 55 ALL { int reboot(int opt, char *command); }
106 56 ALL { int revoke(char *path); }
107 57 ALL { int symlink(char *path, char *link); }
108 58 ALL { int readlink(char *path, char *buf, int count); }
109 59 ALL { int execve(char *fname, char **argp, char **envp); }
110 60 ALL { int umask(int newmask); }
111 61 ALL { int chroot(user_addr_t path); }
112 62 ALL { int nosys(void); } { old fstat }
113 63 ALL { int nosys(void); } { used internally, reserved }
114 64 ALL { int nosys(void); } { old getpagesize }
115 65 ALL { int msync(caddr_t addr, size_t len, int flags); }
116 66 ALL { int vfork(void); }
117 67 ALL { int nosys(void); } { old vread }
118 68 ALL { int nosys(void); } { old vwrite }
119 69 ALL { int sbrk(int incr) NO_SYSCALL_STUB; }
120 70 ALL { int sstk(int incr) NO_SYSCALL_STUB; }
121 71 ALL { int nosys(void); } { old mmap }
122 72 ALL { int ovadvise(void) NO_SYSCALL_STUB; } { old vadvise }
123 73 ALL { int munmap(caddr_t addr, size_t len); }
124 74 ALL { int mprotect(caddr_t addr, size_t len, int prot); }
125 75 ALL { int madvise(caddr_t addr, size_t len, int behav); }
126 76 ALL { int nosys(void); } { old vhangup }
127 77 ALL { int nosys(void); } { old vlimit }
128 78 ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
129 79 ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
130 80 ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
131 81 ALL { int getpgrp(void); }
132 82 ALL { int setpgid(int pid, int pgid); }
133 83 ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
134 84 ALL { int nosys(void); } { old wait }
135 85 ALL { int swapon(void); }
136 86 ALL { int getitimer(u_int which, struct itimerval *itv); }
137 87 ALL { int nosys(void); } { old gethostname }
138 88 ALL { int nosys(void); } { old sethostname }
139 89 ALL { int getdtablesize(void); }
140 90 ALL { int dup2(u_int from, u_int to); }
141 91 ALL { int nosys(void); } { old getdopt }
142 92 ALL { int fcntl(int fd, int cmd, long arg); }
143 93 ALL { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
144 94 ALL { int nosys(void); } { old setdopt }
145 95 ALL { int fsync(int fd); }
146 96 ALL { int setpriority(int which, id_t who, int prio); }
147 #if SOCKETS
148 97 ALL { int socket(int domain, int type, int protocol); }
149 98 ALL { int connect(int s, caddr_t name, socklen_t namelen); }
150 #else
151 97 ALL { int nosys(void); }
152 98 ALL { int nosys(void); }
153 #endif /* SOCKETS */
154 99 ALL { int nosys(void); } { old accept }
155 100 ALL { int getpriority(int which, id_t who); }
156 101 ALL { int nosys(void); } { old send }
157 102 ALL { int nosys(void); } { old recv }
158 103 ALL { int nosys(void); } { old sigreturn }
159 #if SOCKETS
160 104 ALL { int bind(int s, caddr_t name, socklen_t namelen); }
161 105 ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
162 106 ALL { int listen(int s, int backlog); }
163 #else
164 104 ALL { int nosys(void); }
165 105 ALL { int nosys(void); }
166 106 ALL { int nosys(void); }
167 #endif /* SOCKETS */
168 107 ALL { int nosys(void); } { old vtimes }
169 108 ALL { int nosys(void); } { old sigvec }
170 109 ALL { int nosys(void); } { old sigblock }
171 110 ALL { int nosys(void); } { old sigsetmask }
172 111 ALL { int sigsuspend(sigset_t mask); }
173 112 ALL { int nosys(void); } { old sigstack }
174 #if SOCKETS
175 113 ALL { int nosys(void); } { old recvmsg }
176 114 ALL { int nosys(void); } { old sendmsg }
177 #else
178 113 ALL { int nosys(void); }
179 114 ALL { int nosys(void); }
180 #endif /* SOCKETS */
181 115 ALL { int nosys(void); } { old vtrace }
182 116 ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
183 117 ALL { int getrusage(int who, struct rusage *rusage); }
184 #if SOCKETS
185 118 ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
186 #else
187 118 ALL { int nosys(void); }
188 #endif /* SOCKETS */
189 119 ALL { int nosys(void); } { old resuba }
190 120 ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
191 121 ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
192 122 ALL { int settimeofday(struct timeval *tv, struct timezone *tzp); }
193 123 ALL { int fchown(int fd, int uid, int gid); }
194 124 ALL { int fchmod(int fd, int mode); }
195 125 ALL { int nosys(void); } { old recvfrom }
196 126 ALL { int setreuid(uid_t ruid, uid_t euid); }
197 127 ALL { int setregid(gid_t rgid, gid_t egid); }
198 128 ALL { int rename(char *from, char *to); }
199 129 ALL { int nosys(void); } { old truncate }
200 130 ALL { int nosys(void); } { old ftruncate }
201 131 ALL { int flock(int fd, int how); }
202 132 ALL { int mkfifo(user_addr_t path, int mode); }
203 #if SOCKETS
204 133 ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
205 134 ALL { int shutdown(int s, int how); }
206 135 ALL { int socketpair(int domain, int type, int protocol, int *rsv); }
207 #else
208 133 ALL { int nosys(void); }
209 134 ALL { int nosys(void); }
210 135 ALL { int nosys(void); }
211 #endif /* SOCKETS */
212 136 ALL { int mkdir(user_addr_t path, int mode); }
213 137 ALL { int rmdir(char *path); }
214 138 ALL { int utimes(char *path, struct timeval *tptr); }
215 139 ALL { int futimes(int fd, struct timeval *tptr); }
216 140 ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
217 141 ALL { int nosys(void); } { old getpeername }
218 142 ALL { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp); }
219 143 ALL { int nosys(void); } { old sethostid }
220 144 ALL { int nosys(void); } { old getrlimit }
221 145 ALL { int nosys(void); } { old setrlimit }
222 146 ALL { int nosys(void); } { old killpg }
223 147 ALL { int setsid(void); }
224 148 ALL { int nosys(void); } { old setquota }
225 149 ALL { int nosys(void); } { old qquota }
226 150 ALL { int nosys(void); } { old getsockname }
227 151 ALL { int getpgid(pid_t pid); }
228 152 ALL { int setprivexec(int flag); }
229 153 ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
230 154 ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
231
232 #if NFSSERVER
233 155 ALL { int nfssvc(int flag, caddr_t argp); }
234 #else
235 155 ALL { int nosys(void); }
236 #endif
237
238 156 ALL { int nosys(void); } { old getdirentries }
239 157 ALL { int statfs(char *path, struct statfs *buf); }
240 158 ALL { int fstatfs(int fd, struct statfs *buf); }
241 159 ALL { int unmount(user_addr_t path, int flags); }
242 160 ALL { int nosys(void); } { old async_daemon }
243
244 #if NFSSERVER
245 161 ALL { int getfh(char *fname, fhandle_t *fhp); }
246 #else
247 161 ALL { int nosys(void); }
248 #endif
249
250 162 ALL { int nosys(void); } { old getdomainname }
251 163 ALL { int nosys(void); } { old setdomainname }
252 164 ALL { int nosys(void); }
253 165 ALL { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
254 166 ALL { int nosys(void); } { old exportfs }
255 167 ALL { int mount(char *type, char *path, int flags, caddr_t data); }
256 168 ALL { int nosys(void); } { old ustat }
257 169 ALL { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
258 170 HN { int table(void); } { old table }
259 171 ALL { int nosys(void); } { old wait3 }
260 172 ALL { int nosys(void); } { old rpause }
261 173 ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
262 174 ALL { int nosys(void); } { old getdents }
263 175 ALL { int nosys(void); } { old gc_control }
264 176 ALL { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
265 177 ALL { int nosys(void); }
266 178 ALL { int nosys(void); }
267 179 ALL { int nosys(void); }
268 180 ALL { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; }
269 181 ALL { int setgid(gid_t gid); }
270 182 ALL { int setegid(gid_t egid); }
271 183 ALL { int seteuid(uid_t euid); }
272 184 ALL { int sigreturn(struct ucontext *uctx, int infostyle); }
273 185 UALL { int chud(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; }
274 186 ALL { int nosys(void); }
275 187 ALL { int nosys(void); }
276 188 ALL { int stat(user_addr_t path, user_addr_t ub); }
277 189 ALL { int fstat(int fd, user_addr_t ub); }
278 190 ALL { int lstat(user_addr_t path, user_addr_t ub); }
279 191 ALL { int pathconf(char *path, int name); }
280 192 ALL { int fpathconf(int fd, int name); }
281 193 ALL { int nosys(void); }
282 194 ALL { int getrlimit(u_int which, struct rlimit *rlp); }
283 195 ALL { int setrlimit(u_int which, struct rlimit *rlp); }
284 196 ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
285 197 ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
286 198 ALL { int nosys(void); } { __syscall }
287 199 ALL { off_t lseek(int fd, off_t offset, int whence); }
288 200 ALL { int truncate(char *path, off_t length); }
289 201 ALL { int ftruncate(int fd, off_t length); }
290 202 ALL { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
291 203 ALL { int mlock(caddr_t addr, size_t len); }
292 204 ALL { int munlock(caddr_t addr, size_t len); }
293 205 ALL { int undelete(user_addr_t path); }
294
295 #if NETAT
296 206 ALL { int ATsocket(int proto); }
297 207 UALL { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
298 208 UALL { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
299 209 UALL { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
300 210 UALL { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
301 211 UALL { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
302 212 UALL { int ATPgetrsp(int fd, unsigned char *bdsp); }
303 213 ALL { int nosys(void); } { Reserved for AppleTalk }
304 #else
305 206 ALL { int nosys(void); }
306 207 ALL { int nosys(void); }
307 208 ALL { int nosys(void); }
308 209 ALL { int nosys(void); }
309 210 ALL { int nosys(void); }
310 211 ALL { int nosys(void); }
311 212 ALL { int nosys(void); }
312 213 ALL { int nosys(void); } { Reserved for AppleTalk }
313 #endif /* NETAT */
314
315 214 ALL { int kqueue_from_portset_np(int portset); }
316 215 ALL { int kqueue_portset_np(int fd); }
317
318 ; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
319 ; file system semantics. Currently, we only use 215-227. The rest is
320 ; for future expansion in anticipation of new MacOS APIs for HFS Plus.
321 ; These calls are not conditionalized because while they are specific
322 ; to HFS semantics, they are not specific to the HFS filesystem.
323 ; We expect all filesystems to recognize the call and report that it is
324 ; not supported or to actually implement it.
325 216 UHN { int mkcomplex(const char *path, mode_t mode, u_long type); } { soon to be obsolete }
326 217 UHN { int statv(const char *path, struct vstat *vsb); } { soon to be obsolete }
327 218 UHN { int lstatv(const char *path, struct vstat *vsb); } { soon to be obsolete }
328 219 UHN { int fstatv(int fd, struct vstat *vsb); } { soon to be obsolete }
329 220 ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
330 221 ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
331 222 ALL { int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); }
332 223 ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
333 224 ALL { int nosys(void); } { was checkuseraccess }
334 225 ALL { int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); }
335 226 ALL { int delete(user_addr_t path) NO_SYSCALL_STUB; } { private delete (Carbon semantics) }
336 227 ALL { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
337 228 ALL { int nosys(void); }
338 229 ALL { int nosys(void); }
339 230 ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
340 231 ALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
341 232 ALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
342 233 ALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
343 234 ALL { user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
344 235 ALL { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
345 236 ALL { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
346 237 ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
347 238 ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
348 239 ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
349 240 ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
350 241 ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
351 242 ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); }
352 243 ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
353 244 ALL { int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp); }
354 245 ALL { int nosys(void); }
355 246 ALL { int nosys(void); }
356
357 #if NFSCLIENT
358 247 ALL { int nfsclnt(int flag, caddr_t argp); }
359 #else
360 247 ALL { int nosys(void); }
361 #endif
362 #if NFSSERVER
363 248 ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
364 #else
365 248 ALL { int nosys(void); }
366 #endif
367
368 249 ALL { int nosys(void); }
369 250 ALL { int minherit(void *addr, size_t len, int inherit); }
370 #if SYSV_SEM
371 251 ALL { int semsys(u_int which, int a2, int a3, int a4, int a5); }
372 #else
373 251 ALL { int nosys(void); }
374 #endif
375 #if SYSV_MSG
376 252 ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
377 #else
378 252 ALL { int nosys(void); }
379 #endif
380 #if SYSV_SHM
381 253 ALL { int shmsys(u_int which, int a2, int a3, int a4); }
382 #else
383 253 ALL { int nosys(void); }
384 #endif
385 #if SYSV_SEM
386 254 ALL { int semctl(int semid, int semnum, int cmd, semun_t arg); }
387 255 ALL { int semget(key_t key, int nsems, int semflg); }
388 256 ALL { int semop(int semid, struct sembuf *sops, int nsops); }
389 257 ALL { int nosys(void); }
390 #else
391 254 ALL { int nosys(void); }
392 255 ALL { int nosys(void); }
393 256 ALL { int nosys(void); }
394 257 ALL { int nosys(void); }
395 #endif
396 #if SYSV_MSG
397 258 ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
398 259 ALL { int msgget(key_t key, int msgflg); }
399 260 ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
400 261 ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
401 #else
402 258 ALL { int nosys(void); }
403 259 ALL { int nosys(void); }
404 260 ALL { int nosys(void); }
405 261 ALL { int nosys(void); }
406 #endif
407 #if SYSV_SHM
408 262 ALL { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
409 263 ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
410 264 ALL { int shmdt(void *shmaddr); }
411 265 ALL { int shmget(key_t key, size_t size, int shmflg); }
412 #else
413 262 ALL { int nosys(void); }
414 263 ALL { int nosys(void); }
415 264 ALL { int nosys(void); }
416 265 ALL { int nosys(void); }
417 #endif
418 266 ALL { int shm_open(const char *name, int oflag, int mode); }
419 267 ALL { int shm_unlink(const char *name); }
420 268 ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
421 269 ALL { int sem_close(sem_t *sem); }
422 270 ALL { int sem_unlink(const char *name); }
423 271 ALL { int sem_wait(sem_t *sem); }
424 272 ALL { int sem_trywait(sem_t *sem); }
425 273 ALL { int sem_post(sem_t *sem); }
426 274 ALL { int sem_getvalue(sem_t *sem, int *sval); }
427 275 ALL { int sem_init(sem_t *sem, int phsared, u_int value); }
428 276 ALL { int sem_destroy(sem_t *sem); }
429 277 ALL { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
430 278 ALL { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
431 279 ALL { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
432 280 ALL { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
433 281 ALL { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
434 282 ALL { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
435 283 ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
436 284 ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
437 285 ALL { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
438 286 ALL { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
439 287 ALL { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
440 288 ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
441 289 ALL { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
442 290 ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
443 291 ALL { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
444 292 ALL { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
445 293 ALL { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
446 294 ALL { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
447 295 ALL { int shared_region_map_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings) NO_SYSCALL_STUB; }
448 296 ALL { int nosys(void); } { old load_shared_file }
449 297 ALL { int nosys(void); } { old reset_shared_file }
450 298 ALL { int nosys(void); } { old new_system_shared_regions }
451 299 ALL { int enosys(void); } { old shared_region_map_file_np }
452 300 ALL { int enosys(void); } { old shared_region_make_private_np }
453 301 ALL { int __pthread_mutex_destroy(int mutexid); }
454 302 ALL { int __pthread_mutex_init(user_addr_t mutex, user_addr_t attr); }
455 303 ALL { int __pthread_mutex_lock(int mutexid); }
456 304 ALL { int __pthread_mutex_trylock(int mutexid); }
457 305 ALL { int __pthread_mutex_unlock(int mutexid); }
458 306 ALL { int __pthread_cond_init(user_addr_t cond, user_addr_t attr); }
459 307 ALL { int __pthread_cond_destroy(int condid); }
460 308 ALL { int __pthread_cond_broadcast(int condid); }
461 309 ALL { int __pthread_cond_signal(int condid); }
462 310 ALL { int getsid(pid_t pid); }
463 311 ALL { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
464 312 ALL { int __pthread_cond_timedwait(int condid, int mutexid, user_addr_t abstime); }
465 313 ALL { int aio_fsync(int op, user_addr_t aiocbp); }
466 314 ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
467 315 ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
468 316 ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
469 317 ALL { int aio_error(user_addr_t aiocbp); }
470 318 ALL { int aio_read(user_addr_t aiocbp); }
471 319 ALL { int aio_write(user_addr_t aiocbp); }
472 320 ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
473 321 ALL { int __pthread_cond_wait(int condid, int mutexid); }
474 322 ALL { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
475 323 ALL { int nosys(void); }
476 324 ALL { int mlockall(int how); }
477 325 ALL { int munlockall(int how); }
478 326 ALL { int nosys(void); }
479 327 ALL { int issetugid(void); }
480 328 ALL { int __pthread_kill(int thread_port, int sig); }
481 329 ALL { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
482 330 ALL { int __sigwait(user_addr_t set, user_addr_t sig); }
483 331 ALL { int __disable_threadsignal(int value); }
484 332 ALL { int __pthread_markcancel(int thread_port); }
485 333 ALL { int __pthread_canceled(int action); }
486 334 ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); }
487 335 ALL { int nosys(void); } { old utrace }
488 336 ALL { 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; }
489 #if SENDFILE
490 337 ALL { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
491 #else /* !SENDFILE */
492 337 ALL { int nosys(void); }
493 #endif /* SENDFILE */
494 338 ALL { int stat64(user_addr_t path, user_addr_t ub); }
495 339 ALL { int fstat64(int fd, user_addr_t ub); }
496 340 ALL { int lstat64(user_addr_t path, user_addr_t ub); }
497 341 ALL { int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
498 342 ALL { int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
499 343 ALL { int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
500 344 ALL { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
501 345 ALL { int statfs64(char *path, struct statfs64 *buf); }
502 346 ALL { int fstatfs64(int fd, struct statfs64 *buf); }
503 347 ALL { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
504 348 ALL { int __pthread_chdir(user_addr_t path); }
505 349 ALL { int __pthread_fchdir(int fd); }
506
507 #if AUDIT
508 350 ALL { int audit(void *record, int length); }
509 351 ALL { int auditon(int cmd, void *data, int length); }
510 352 ALL { int nosys(void); }
511 353 ALL { int getauid(au_id_t *auid); }
512 354 ALL { int setauid(au_id_t *auid); }
513 355 ALL { int getaudit(struct auditinfo *auditinfo); }
514 356 ALL { int setaudit(struct auditinfo *auditinfo); }
515 357 ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
516 358 ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
517 359 ALL { int auditctl(char *path); }
518 #else
519 350 ALL { int nosys(void); }
520 351 ALL { int nosys(void); }
521 352 ALL { int nosys(void); }
522 353 ALL { int nosys(void); }
523 354 ALL { int nosys(void); }
524 355 ALL { int nosys(void); }
525 356 ALL { int nosys(void); }
526 357 ALL { int nosys(void); }
527 358 ALL { int nosys(void); }
528 359 ALL { int nosys(void); }
529 #endif
530
531 360 ALL { 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; }
532 361 ALL { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
533 362 ALL { int kqueue(void); }
534 363 ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
535 364 ALL { int lchown(user_addr_t path, uid_t owner, gid_t group); }
536 365 ALL { int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t options) NO_SYSCALL_STUB; }
537 366 ALL { int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, int pthsize) NO_SYSCALL_STUB; }
538 367 ALL { int workq_open(void) NO_SYSCALL_STUB; }
539 368 ALL { int workq_ops(int options, user_addr_t item, int prio) NO_SYSCALL_STUB; }
540 369 ALL { int nosys(void); }
541 370 ALL { int nosys(void); }
542 371 ALL { int nosys(void); }
543 372 ALL { int nosys(void); }
544 373 ALL { int nosys(void); }
545 374 ALL { int nosys(void); }
546 375 ALL { int nosys(void); }
547 376 ALL { int nosys(void); }
548 377 ALL { int nosys(void); }
549 378 ALL { int nosys(void); }
550 379 ALL { int nosys(void); }
551 380 ALL { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
552 381 ALL { int __mac_syscall(char *policy, int call, user_addr_t arg); }
553 382 ALL { int __mac_get_file(char *path_p, struct mac *mac_p); }
554 383 ALL { int __mac_set_file(char *path_p, struct mac *mac_p); }
555 384 ALL { int __mac_get_link(char *path_p, struct mac *mac_p); }
556 385 ALL { int __mac_set_link(char *path_p, struct mac *mac_p); }
557 386 ALL { int __mac_get_proc(struct mac *mac_p); }
558 387 ALL { int __mac_set_proc(struct mac *mac_p); }
559 388 ALL { int __mac_get_fd(int fd, struct mac *mac_p); }
560 389 ALL { int __mac_set_fd(int fd, struct mac *mac_p); }
561 390 ALL { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
562 391 ALL { int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
563 392 ALL { int __mac_get_lctx(struct mac *mac_p); }
564 393 ALL { int __mac_set_lctx(struct mac *mac_p); }
565 394 ALL { int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
566 395 ALL { int getlcid(pid_t pid) NO_SYSCALL_STUB; }
567 396 ALL { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
568 397 ALL { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
569 398 ALL { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
570 399 ALL { int close_nocancel(int fd) NO_SYSCALL_STUB; }
571 400 ALL { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
572 #if SOCKETS
573 401 ALL { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
574 402 ALL { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
575 403 ALL { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
576 404 ALL { int accept_nocancel(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; }
577 #else
578 401 ALL { int nosys(void); }
579 402 ALL { int nosys(void); }
580 403 ALL { int nosys(void); }
581 404 ALL { int nosys(void); }
582 #endif /* SOCKETS */
583 405 ALL { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
584 406 ALL { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
585 407 ALL { int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; }
586 408 ALL { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
587 #if SOCKETS
588 409 ALL { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
589 #else
590 409 ALL { int nosys(void); }
591 #endif /* SOCKETS */
592 410 ALL { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
593 411 ALL { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
594 412 ALL { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
595 #if SOCKETS
596 413 ALL { int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
597 #else
598 413 ALL { int nosys(void); }
599 #endif /* SOCKETS */
600 414 ALL { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
601 415 ALL { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
602 416 ALL { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
603 417 ALL { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
604 #if SYSV_MSG
605 418 ALL { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
606 419 ALL { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
607 #else
608 418 ALL { int nosys(void); }
609 419 ALL { int nosys(void); }
610 #endif
611 420 ALL { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
612 421 ALL { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
613 422 ALL { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
614 423 ALL { 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; }
615 424 ALL { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
616 425 ALL { int __mac_get_mount(char *path, struct mac *mac_p); }
617 426 ALL { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
618