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
350	ALL	{ int nosys(void); }   { indirect syscall }
361	ALL	{ void exit(int rval); } 
372	ALL	{ int fork(void); } 
383	ALL	{ user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); } 
394	ALL	{ user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); } 
405	ALL	{ int open(user_addr_t path, int flags, int mode); } 
416	ALL	{ int close(int fd); } 
427	ALL	{ int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); } 
438	ALL	{ int nosys(void); }   { old creat }
449	ALL	{ int link(user_addr_t path, user_addr_t link); } 
4510	ALL	{ int unlink(user_addr_t path); } 
4611	ALL	{ int nosys(void); }   { old execv }
4712	ALL	{ int chdir(user_addr_t path); } 
4813	ALL	{ int fchdir(int fd); } 
4914	ALL	{ int mknod(user_addr_t path, int mode, int dev); } 
5015	ALL	{ int chmod(user_addr_t path, int mode); } 
5116	ALL	{ int chown(user_addr_t path, int uid, int gid); } 
5217	UALL	{ int obreak(char *nsize) NO_SYSCALL_STUB; }   { old break }
53
54#if COMPAT_GETFSSTAT
5518	ALL	{ int ogetfsstat(user_addr_t buf, int bufsize, int flags); } 
56#else
5718	ALL	{ int getfsstat(user_addr_t buf, int bufsize, int flags); } 
58#endif
59
6019	ALL	{ int nosys(void); }   { old lseek }
6120	ALL	{ int getpid(void); } 
6221	ALL	{ int nosys(void); }   { old mount }
6322	ALL	{ int nosys(void); }   { old umount }
6423	ALL	{ int setuid(uid_t uid); } 
6524	ALL	{ int getuid(void); } 
6625	ALL	{ int geteuid(void); } 
6726	ALL	{ int ptrace(int req, pid_t pid, caddr_t addr, int data); } 
68#if SOCKETS
6927	ALL	{ int recvmsg(int s, struct msghdr *msg, int flags); } 
7028	ALL	{ int sendmsg(int s, caddr_t msg, int flags); } 
7129	ALL	{ int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); } 
7230	ALL	{ int accept(int s, caddr_t name, socklen_t	*anamelen); } 
7331	ALL	{ int getpeername(int fdes, caddr_t asa, socklen_t *alen); } 
7432	ALL	{ int getsockname(int fdes, caddr_t asa, socklen_t *alen); } 
75#else
7627	ALL	{ int nosys(void); }
7728	ALL	{ int nosys(void); }
7829	ALL	{ int nosys(void); }
7930	ALL	{ int nosys(void); }
8031	ALL	{ int nosys(void); }
8132	ALL	{ int nosys(void); }
82#endif /* SOCKETS */
8333	ALL	{ int access(user_addr_t path, int flags); } 
8434	ALL	{ int chflags(char *path, int flags); } 
8535	ALL	{ int fchflags(int fd, int flags); } 
8636	ALL	{ int sync(void); } 
8737	ALL	{ int kill(int pid, int signum, int posix); } 
8838	ALL	{ int nosys(void); }   { old stat  }
8939	ALL	{ int getppid(void); } 
9040	ALL	{ int nosys(void); }   { old lstat }
9141	ALL	{ int dup(u_int fd); } 
9242	ALL	{ int pipe(void); } 
9343	ALL	{ int getegid(void); } 
9444	ALL	{ int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); } 
9545	ALL	{ int nosys(void); } { old ktrace }
9646	ALL	{ int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); } 
9747	ALL	{ int getgid(void); } 
9848	ALL	{ int sigprocmask(int how, user_addr_t mask, user_addr_t omask); } 
9949	ALL	{ int getlogin(char *namebuf, u_int namelen); } 
10050	ALL	{ int setlogin(char *namebuf); } 
10151	ALL	{ int acct(char *path); } 
10252	ALL	{ int sigpending(struct sigvec *osv); } 
10353	ALL	{ int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); } 
10454	ALL	{ int ioctl(int fd, u_long com, caddr_t data); } 
10555	ALL	{ int reboot(int opt, char *command); } 
10656	ALL	{ int revoke(char *path); } 
10757	ALL	{ int symlink(char *path, char *link); } 
10858	ALL	{ int readlink(char *path, char *buf, int count); } 
10959	ALL	{ int execve(char *fname, char **argp, char **envp); } 
11060	ALL	{ int umask(int newmask); } 
11161	ALL	{ int chroot(user_addr_t path); } 
11262	ALL	{ int nosys(void); }   { old fstat }
11363	ALL	{ int nosys(void); }   { used internally, reserved }
11464	ALL	{ int nosys(void); }   { old getpagesize }
11565	ALL	{ int msync(caddr_t addr, size_t len, int flags); } 
11666	ALL	{ int vfork(void); } 
11767	ALL	{ int nosys(void); }   { old vread }
11868	ALL	{ int nosys(void); }   { old vwrite }
11969	ALL	{ int sbrk(int incr) NO_SYSCALL_STUB; } 
12070	ALL	{ int sstk(int incr) NO_SYSCALL_STUB; } 
12171	ALL	{ int nosys(void); }   { old mmap }
12272	ALL	{ int ovadvise(void) NO_SYSCALL_STUB; }   { old vadvise }
12373	ALL	{ int munmap(caddr_t addr, size_t len); } 
12474	ALL	{ int mprotect(caddr_t addr, size_t len, int prot); } 
12575	ALL	{ int madvise(caddr_t addr, size_t len, int behav); } 
12676	ALL	{ int nosys(void); }   { old vhangup }
12777	ALL	{ int nosys(void); }   { old vlimit }
12878	ALL	{ int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); } 
12979	ALL	{ int getgroups(u_int gidsetsize, gid_t *gidset); } 
13080	ALL	{ int setgroups(u_int gidsetsize, gid_t *gidset); } 
13181	ALL	{ int getpgrp(void); } 
13282	ALL	{ int setpgid(int pid, int pgid); } 
13383	ALL	{ int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } 
13484	ALL	{ int nosys(void); }   { old wait }
13585	ALL	{ int swapon(void); } 
13686	ALL	{ int getitimer(u_int which, struct itimerval *itv); } 
13787	ALL	{ int nosys(void); }   { old gethostname }
13888	ALL	{ int nosys(void); }   { old sethostname }
13989	ALL	{ int getdtablesize(void); } 
14090	ALL	{ int dup2(u_int from, u_int to); } 
14191	ALL	{ int nosys(void); }   { old getdopt }
14292	ALL	{ int fcntl(int fd, int cmd, long arg); } 
14393	ALL	{ int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); } 
14494	ALL	{ int nosys(void); }   { old setdopt }
14595	ALL	{ int fsync(int fd); } 
14696	ALL	{ int setpriority(int which, id_t who, int prio); } 
147#if SOCKETS
14897	ALL	{ int socket(int domain, int type, int protocol); } 
14998	ALL	{ int connect(int s, caddr_t name, socklen_t namelen); } 
150#else
15197	ALL	{ int nosys(void); }
15298	ALL	{ int nosys(void); }
153#endif /* SOCKETS */
15499	ALL	{ int nosys(void); }   { old accept }
155100	ALL	{ int getpriority(int which, id_t who); } 
156101	ALL	{ int nosys(void); }   { old send }
157102	ALL	{ int nosys(void); }   { old recv }
158103	ALL	{ int nosys(void); }   { old sigreturn }
159#if SOCKETS
160104	ALL	{ int bind(int s, caddr_t name, socklen_t namelen); } 
161105	ALL	{ int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); } 
162106	ALL	{ int listen(int s, int backlog); } 
163#else
164104	ALL	{ int nosys(void); }
165105	ALL	{ int nosys(void); }
166106	ALL	{ int nosys(void); }
167#endif /* SOCKETS */
168107	ALL	{ int nosys(void); }   { old vtimes }
169108	ALL	{ int nosys(void); }   { old sigvec }
170109	ALL	{ int nosys(void); }   { old sigblock }
171110	ALL	{ int nosys(void); }   { old sigsetmask }
172111	ALL	{ int sigsuspend(sigset_t mask); } 
173112	ALL	{ int nosys(void); }   { old sigstack }
174#if SOCKETS
175113	ALL	{ int nosys(void); }   { old recvmsg }
176114	ALL	{ int nosys(void); }   { old sendmsg }	
177#else
178113	ALL	{ int nosys(void); }
179114	ALL	{ int nosys(void); }
180#endif /* SOCKETS */
181115	ALL	{ int nosys(void); }   { old vtrace }
182116	ALL	{ int gettimeofday(struct timeval *tp, struct timezone *tzp); } 
183117	ALL	{ int getrusage(int who, struct rusage *rusage); } 
184#if SOCKETS
185118	ALL	{ int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); } 
186#else
187118	ALL	{ int nosys(void); }
188#endif /* SOCKETS */
189119	ALL	{ int nosys(void); }   { old resuba }
190120	ALL	{ user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); } 
191121	ALL	{ user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); } 
192122	ALL	{ int settimeofday(struct timeval *tv, struct timezone *tzp); } 
193123	ALL	{ int fchown(int fd, int uid, int gid); } 
194124	ALL	{ int fchmod(int fd, int mode); } 
195125	ALL	{ int nosys(void); }   { old recvfrom }
196126	ALL	{ int setreuid(uid_t ruid, uid_t euid); }
197127	ALL	{ int setregid(gid_t rgid, gid_t egid); }
198128	ALL	{ int rename(char *from, char *to); } 
199129	ALL	{ int nosys(void); }   { old truncate }
200130	ALL	{ int nosys(void); }   { old ftruncate }
201131	ALL	{ int flock(int fd, int how); } 
202132	ALL	{ int mkfifo(user_addr_t path, int mode); } 
203#if SOCKETS
204133	ALL	{ int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); } 
205134	ALL	{ int shutdown(int s, int how); } 
206135	ALL	{ int socketpair(int domain, int type, int protocol, int *rsv); } 
207#else
208133	ALL	{ int nosys(void); }
209134	ALL	{ int nosys(void); }
210135	ALL	{ int nosys(void); }
211#endif /* SOCKETS */
212136	ALL	{ int mkdir(user_addr_t path, int mode); } 
213137	ALL	{ int rmdir(char *path); } 
214138	ALL	{ int utimes(char *path, struct timeval *tptr); } 
215139	ALL	{ int futimes(int fd, struct timeval *tptr); } 
216140	ALL	{ int adjtime(struct timeval *delta, struct timeval *olddelta); } 
217141	ALL	{ int nosys(void); }   { old getpeername }
218142	ALL	{ int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp); }
219143	ALL	{ int nosys(void); }   { old sethostid 	}
220144	ALL	{ int nosys(void); }   { old getrlimit }
221145	ALL	{ int nosys(void); }   { old setrlimit }
222146	ALL	{ int nosys(void); }   { old killpg }
223147	ALL	{ int setsid(void); } 
224148	ALL	{ int nosys(void); }   { old setquota }
225149	ALL	{ int nosys(void); }   { old qquota }
226150	ALL	{ int nosys(void); }   { old getsockname }
227151	ALL	{ int getpgid(pid_t pid); } 
228152	ALL	{ int setprivexec(int flag); } 
229153	ALL	{ user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); } 
230154	ALL	{ user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); } 
231
232#if NFSSERVER
233155	ALL	{ int nfssvc(int flag, caddr_t argp); } 
234#else
235155	ALL	{ int nosys(void); } 
236#endif
237
238156	ALL	{ int nosys(void); }   { old getdirentries }
239157	ALL	{ int statfs(char *path, struct statfs *buf); } 
240158	ALL	{ int fstatfs(int fd, struct statfs *buf); } 
241159	ALL	{ int unmount(user_addr_t path, int flags); } 
242160	ALL	{ int nosys(void); }   { old async_daemon }
243
244#if NFSSERVER
245161	ALL	{ int getfh(char *fname, fhandle_t *fhp); } 
246#else
247161	ALL	{ int nosys(void); } 
248#endif
249
250162	ALL	{ int nosys(void); }   { old getdomainname }
251163	ALL	{ int nosys(void); }   { old setdomainname }
252164	ALL	{ int nosys(void); } 
253165	ALL	{ int quotactl(const char *path, int cmd, int uid, caddr_t arg); } 
254166	ALL	{ int nosys(void); }   { old exportfs }
255167	ALL	{ int mount(char *type, char *path, int flags, caddr_t data); } 
256168	ALL	{ int nosys(void); }   { old ustat }
257169	ALL	{ int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); } 
258170	HN	{ int table(void); }   { old table }
259171	ALL	{ int nosys(void); }   { old wait3 }
260172	ALL	{ int nosys(void); }   { old rpause	}	
261173	ALL	{ int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); } 
262174	ALL	{ int nosys(void); }   { old getdents }
263175	ALL	{ int nosys(void); }   { old gc_control }
264176	ALL	{ int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); } 
265177	ALL	{ int nosys(void); } 
266178	ALL	{ int nosys(void); } 
267179	ALL	{ int nosys(void); } 
268180	ALL 	{ int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; } 
269181	ALL	{ int setgid(gid_t gid); } 
270182	ALL	{ int setegid(gid_t egid); } 
271183	ALL	{ int seteuid(uid_t euid); } 
272184	ALL	{ int sigreturn(struct ucontext *uctx, int infostyle); } 
273185	UALL 	{ int chud(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; } 
274186	ALL	{ int nosys(void); } 
275187	ALL	{ int nosys(void); } 
276188	ALL	{ int stat(user_addr_t path, user_addr_t ub); } 
277189	ALL	{ int fstat(int fd, user_addr_t ub); } 
278190	ALL	{ int lstat(user_addr_t path, user_addr_t ub); } 
279191	ALL	{ int pathconf(char *path, int name); } 
280192	ALL	{ int fpathconf(int fd, int name); } 
281193	ALL	{ int nosys(void); } 
282194	ALL	{ int getrlimit(u_int which, struct rlimit *rlp); } 
283195	ALL	{ int setrlimit(u_int which, struct rlimit *rlp); } 
284196	ALL	{ int getdirentries(int fd, char *buf, u_int count, long *basep); } 
285197	ALL	{ user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); } 
286198	ALL	{ int nosys(void); } 	{ __syscall }
287199	ALL	{ off_t lseek(int fd, off_t offset, int whence); } 
288200	ALL	{ int truncate(char *path, off_t length); } 
289201	ALL	{ int ftruncate(int fd, off_t length); } 
290202	ALL 	{ int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } 
291203	ALL	{ int mlock(caddr_t addr, size_t len); } 
292204	ALL	{ int munlock(caddr_t addr, size_t len); } 
293205	ALL	{ int undelete(user_addr_t path); } 
294
295#if NETAT
296206	ALL	{ int ATsocket(int proto); } 
297207	UALL	{ int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); } 
298208	UALL	{ int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); } 
299209	UALL	{ int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); } 
300210	UALL	{ int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); } 
301211	UALL	{ int ATPgetreq(int fd, unsigned char *buf, int buflen); } 
302212	UALL	{ int ATPgetrsp(int fd, unsigned char *bdsp); } 
303213	ALL	{ int nosys(void); } 	{ Reserved for AppleTalk }
304#else
305206	ALL	{ int nosys(void); }
306207	ALL	{ int nosys(void); }
307208	ALL	{ int nosys(void); }
308209	ALL	{ int nosys(void); }
309210	ALL	{ int nosys(void); }
310211	ALL	{ int nosys(void); }
311212	ALL	{ int nosys(void); }
312213	ALL	{ int nosys(void); } 	{ Reserved for AppleTalk }
313#endif /* NETAT */
314
315214	ALL	{ int kqueue_from_portset_np(int portset); } 
316215	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.
325216	UHN	{ int mkcomplex(const char *path, mode_t mode, u_long type); } 	{ soon to be obsolete }
326217	UHN	{ int statv(const char *path, struct vstat *vsb); } 	{ soon to be obsolete }
327218	UHN	{ int lstatv(const char *path, struct vstat *vsb); } 	{ soon to be obsolete }
328219	UHN	{ int fstatv(int fd, struct vstat *vsb); } 	{ soon to be obsolete }
329220	ALL	{ int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); } 
330221	ALL	{ int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); } 
331222	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); } 
332223	ALL	{ int exchangedata(const char *path1, const char *path2, u_long options); } 
333224	ALL	{ int nosys(void); } { was checkuseraccess }
334225	ALL	{ int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); } 
335226	ALL	{ int delete(user_addr_t path) NO_SYSCALL_STUB; }       { private delete (Carbon semantics) }
336227	ALL	{ int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; } 
337228	ALL	{ int nosys(void); } 
338229	ALL	{ int nosys(void); } 
339230	ALL	{ int poll(struct pollfd *fds, u_int nfds, int timeout); } 
340231	ALL	{ int watchevent(struct eventreq *u_req, int u_eventmask); } 
341232	ALL	{ int waitevent(struct eventreq *u_req, struct timeval *tv); } 
342233	ALL	{ int modwatch(struct eventreq *u_req, int u_eventmask); } 
343234	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); } 
344235	ALL	{ user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); } 
345236	ALL	{ int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); } 
346237	ALL	{ int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); } 
347238	ALL	{ int removexattr(user_addr_t path, user_addr_t attrname, int options); } 
348239	ALL	{ int fremovexattr(int fd, user_addr_t attrname, int options); } 
349240	ALL	{ user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); } 
350241	ALL	{ user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); } 
351242	ALL	{ int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); } 
352243	ALL	{ int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); } 
353244	ALL	{ int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp); } 
354245	ALL	{ int nosys(void); } 
355246	ALL	{ int nosys(void); } 
356
357#if NFSCLIENT
358247	ALL	{ int nfsclnt(int flag, caddr_t argp); } 
359#else
360247	ALL	{ int nosys(void); } 
361#endif
362#if NFSSERVER
363248	ALL	{ int fhopen(const struct fhandle *u_fhp, int flags); } 
364#else
365248	ALL	{ int nosys(void); } 
366#endif
367
368249	ALL	{ int nosys(void); } 
369250	ALL	{ int minherit(void *addr, size_t len, int inherit); } 
370#if SYSV_SEM
371251	ALL	{ int semsys(u_int which, int a2, int a3, int a4, int a5); } 
372#else
373251	ALL	{ int nosys(void); } 
374#endif
375#if SYSV_MSG
376252	ALL	{ int msgsys(u_int which, int a2, int a3, int a4, int a5); }
377#else
378252	ALL	{ int nosys(void); } 
379#endif
380#if SYSV_SHM
381253	ALL	{ int shmsys(u_int which, int a2, int a3, int a4); } 
382#else
383253	ALL	{ int nosys(void); } 
384#endif
385#if SYSV_SEM
386254	ALL	{ int semctl(int semid, int semnum, int cmd, semun_t arg); } 
387255	ALL	{ int semget(key_t key, int	nsems, int semflg); } 
388256	ALL	{ int semop(int semid, struct sembuf *sops, int nsops); } 
389257	ALL	{ int nosys(void); } 
390#else
391254	ALL	{ int nosys(void); } 
392255	ALL	{ int nosys(void); } 
393256	ALL	{ int nosys(void); } 
394257	ALL	{ int nosys(void); } 
395#endif
396#if SYSV_MSG
397258	ALL	{ int msgctl(int msqid, int cmd, struct	msqid_ds *buf); } 
398259	ALL	{ int msgget(key_t key, int msgflg); } 
399260	ALL	{ int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); } 
400261	ALL	{ user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } 
401#else
402258	ALL	{ int nosys(void); } 
403259	ALL	{ int nosys(void); } 
404260	ALL	{ int nosys(void); } 
405261	ALL	{ int nosys(void); } 
406#endif
407#if SYSV_SHM
408262	ALL	{ user_addr_t shmat(int shmid, void *shmaddr, int shmflg); } 
409263	ALL	{ int shmctl(int shmid, int cmd, struct shmid_ds *buf); } 
410264	ALL	{ int shmdt(void *shmaddr); } 
411265	ALL	{ int shmget(key_t key, size_t size, int shmflg); } 
412#else
413262	ALL	{ int nosys(void); } 
414263	ALL	{ int nosys(void); } 
415264	ALL	{ int nosys(void); } 
416265	ALL	{ int nosys(void); } 
417#endif
418266	ALL	{ int shm_open(const char *name, int oflag, int mode); } 
419267	ALL	{ int shm_unlink(const char *name); } 
420268	ALL	{ user_addr_t sem_open(const char *name, int oflag, int mode, int value); } 
421269	ALL	{ int sem_close(sem_t *sem); } 
422270	ALL	{ int sem_unlink(const char *name); } 
423271	ALL	{ int sem_wait(sem_t *sem); } 
424272	ALL	{ int sem_trywait(sem_t *sem); } 
425273	ALL	{ int sem_post(sem_t *sem); } 
426274	ALL	{ int sem_getvalue(sem_t *sem, int *sval); } 
427275	ALL	{ int sem_init(sem_t *sem, int phsared, u_int value); } 
428276	ALL	{ int sem_destroy(sem_t *sem); } 
429277	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; } 
430278	ALL	{ int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; } 
431279	ALL	{ int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 
432280	ALL	{ int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 
433281	ALL	{ int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 
434282	ALL	{ int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 
435283	ALL	{ int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 
436284	ALL	{ int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; } 
437285	ALL	{ int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; } 
438286	ALL	{ int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; } 
439287	ALL	{ int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; } 
440288	ALL	{ int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; } 
441289	ALL	{ int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; } 
442290	ALL	{ int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
443291	ALL	{ int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 
444292	ALL	{ int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 
445293	ALL	{ int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; } 
446294	ALL	{ int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
447295	ALL	{ int shared_region_map_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings) NO_SYSCALL_STUB; }
448296	ALL	{ int nosys(void); } { old load_shared_file }
449297	ALL	{ int nosys(void); } { old reset_shared_file }
450298	ALL	{ int nosys(void); } { old new_system_shared_regions }
451299	ALL	{ int enosys(void); } { old shared_region_map_file_np }
452300	ALL	{ int enosys(void); } { old shared_region_make_private_np }
453301	ALL	{ int __pthread_mutex_destroy(int mutexid); } 
454302	ALL	{ int __pthread_mutex_init(user_addr_t  mutex, user_addr_t attr); } 
455303	ALL	{ int __pthread_mutex_lock(int mutexid); } 
456304	ALL	{ int __pthread_mutex_trylock(int mutexid); } 
457305	ALL	{ int __pthread_mutex_unlock(int mutexid); } 
458306	ALL	{ int __pthread_cond_init(user_addr_t cond, user_addr_t attr); } 
459307	ALL	{ int __pthread_cond_destroy(int condid); } 
460308	ALL	{ int __pthread_cond_broadcast(int condid); } 
461309	ALL	{ int __pthread_cond_signal(int condid); } 
462310	ALL	{ int getsid(pid_t pid); } 
463311	ALL	{ int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; } 
464312	ALL	{ int __pthread_cond_timedwait(int condid, int mutexid, user_addr_t abstime); } 
465313	ALL	{ int aio_fsync(int op, user_addr_t aiocbp); } 
466314 	ALL	{ user_ssize_t aio_return(user_addr_t aiocbp); } 
467315	ALL	{ int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); } 
468316	ALL	{ int aio_cancel(int fd, user_addr_t aiocbp); } 
469317	ALL	{ int aio_error(user_addr_t aiocbp); } 
470318	ALL	{ int aio_read(user_addr_t aiocbp); } 
471319	ALL	{ int aio_write(user_addr_t aiocbp); } 
472320	ALL	{ int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); } 
473321	ALL	{ int __pthread_cond_wait(int condid, int mutexid); } 
474322	ALL	{ int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; } 
475323	ALL	{ int nosys(void); } 
476324	ALL	{ int mlockall(int how); } 
477325	ALL	{ int munlockall(int how); } 
478326	ALL	{ int nosys(void); } 
479327	ALL	{ int issetugid(void); } 
480328	ALL	{ int __pthread_kill(int thread_port, int sig); } 
481329	ALL	{ int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); } 
482330	ALL	{ int __sigwait(user_addr_t set, user_addr_t sig); } 
483331	ALL	{ int __disable_threadsignal(int value); } 
484332	ALL	{ int __pthread_markcancel(int thread_port); } 
485333	ALL	{ int __pthread_canceled(int  action); } 
486334	ALL	{ int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); } 
487335	ALL	{ int nosys(void); }   { old utrace }
488336	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
490337	ALL	{ int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); } 
491#else /* !SENDFILE */
492337	ALL	{ int nosys(void); }
493#endif /* SENDFILE */
494338	ALL	{ int stat64(user_addr_t path, user_addr_t ub); } 
495339	ALL	{ int fstat64(int fd, user_addr_t ub); } 
496340	ALL	{ int lstat64(user_addr_t path, user_addr_t ub); } 
497341	ALL	{ int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 
498342	ALL	{ int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 
499343	ALL	{ int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 
500344	ALL	{ user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; } 
501345	ALL	{ int statfs64(char *path, struct statfs64 *buf); } 
502346	ALL	{ int fstatfs64(int fd, struct statfs64 *buf); } 
503347	ALL	{ int getfsstat64(user_addr_t buf, int bufsize, int flags); } 
504348	ALL	{ int __pthread_chdir(user_addr_t path); } 
505349	ALL	{ int __pthread_fchdir(int fd); } 
506
507#if AUDIT
508350	ALL	{ int audit(void *record, int length); } 
509351	ALL	{ int auditon(int cmd, void *data, int length); } 
510352	ALL	{ int nosys(void); } 
511353	ALL	{ int getauid(au_id_t *auid); } 
512354	ALL	{ int setauid(au_id_t *auid); } 
513355	ALL	{ int getaudit(struct auditinfo *auditinfo); } 
514356	ALL	{ int setaudit(struct auditinfo *auditinfo); } 
515357	ALL	{ int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); } 
516358	ALL	{ int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); } 
517359	ALL	{ int auditctl(char *path); } 
518#else
519350	ALL	{ int nosys(void); } 
520351	ALL	{ int nosys(void); } 
521352	ALL	{ int nosys(void); } 
522353	ALL	{ int nosys(void); } 
523354	ALL	{ int nosys(void); } 
524355	ALL	{ int nosys(void); } 
525356	ALL	{ int nosys(void); } 
526357	ALL	{ int nosys(void); } 
527358	ALL	{ int nosys(void); } 
528359	ALL	{ int nosys(void); } 
529#endif
530
531#if CONFIG_WORKQUEUE
532360	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; } 
533361	ALL	{ int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; } 
534#else
535360	ALL	{ int nosys(void); } 
536361	ALL	{ int nosys(void); } 
537#endif
538
539362	ALL	{ int kqueue(void); } 
540363	ALL	{ int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } 
541364	ALL	{ int lchown(user_addr_t path, uid_t owner, gid_t group); }
542365	ALL	{ int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t options) NO_SYSCALL_STUB; }
543
544#if CONFIG_WORKQUEUE
545366	ALL	{ int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, int pthsize) NO_SYSCALL_STUB; } 
546367	ALL	{ int workq_open(void) NO_SYSCALL_STUB; }
547368	ALL	{ int workq_ops(int options, user_addr_t item, int prio) NO_SYSCALL_STUB; }
548#else
549366	ALL	{ int nosys(void); } 
550367	ALL	{ int nosys(void); } 
551368	ALL	{ int nosys(void); } 
552#endif
553
554369	ALL	{ int nosys(void); } 
555370	ALL	{ int nosys(void); } 
556371	ALL	{ int nosys(void); } 
557372	ALL	{ int nosys(void); } 
558373	ALL	{ int nosys(void); } 
559374	ALL	{ int nosys(void); } 
560375	ALL	{ int nosys(void); } 
561376	ALL	{ int nosys(void); } 
562377	ALL	{ int nosys(void); } 
563378	ALL	{ int nosys(void); } 
564379	ALL	{ int nosys(void); } 
565380	ALL	{ int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); } 
566381	ALL	{ int __mac_syscall(char *policy, int call, user_addr_t arg); } 
567382	ALL	{ int __mac_get_file(char *path_p, struct mac *mac_p); } 
568383	ALL	{ int __mac_set_file(char *path_p, struct mac *mac_p); } 
569384	ALL	{ int __mac_get_link(char *path_p, struct mac *mac_p); } 
570385	ALL	{ int __mac_set_link(char *path_p, struct mac *mac_p); } 
571386	ALL	{ int __mac_get_proc(struct mac *mac_p); } 
572387	ALL	{ int __mac_set_proc(struct mac *mac_p); } 
573388	ALL	{ int __mac_get_fd(int fd, struct mac *mac_p); } 
574389	ALL	{ int __mac_set_fd(int fd, struct mac *mac_p); } 
575390	ALL	{ int __mac_get_pid(pid_t pid, struct mac *mac_p); } 
576391	ALL	{ int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
577392	ALL	{ int __mac_get_lctx(struct mac *mac_p); }
578393	ALL	{ int __mac_set_lctx(struct mac *mac_p); }
579394	ALL	{ int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
580395	ALL	{ int getlcid(pid_t pid) NO_SYSCALL_STUB; }
581396	ALL	{ user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; } 
582397	ALL	{ user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; } 
583398	ALL	{ int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; } 
584399	ALL	{ int close_nocancel(int fd) NO_SYSCALL_STUB; } 
585400	ALL	{ int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; } 
586#if SOCKETS
587401	ALL	{ int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; } 
588402	ALL	{ int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; } 
589403	ALL	{ int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; } 
590404	ALL	{ int accept_nocancel(int s, caddr_t name, socklen_t	*anamelen) NO_SYSCALL_STUB; } 
591#else
592401	ALL	{ int nosys(void); }
593402	ALL	{ int nosys(void); }
594403	ALL	{ int nosys(void); }
595404	ALL	{ int nosys(void); }
596#endif /* SOCKETS */
597405	ALL	{ int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; } 
598406	ALL	{ int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; } 
599407	ALL	{ int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; } 
600408	ALL	{ int fsync_nocancel(int fd) NO_SYSCALL_STUB; } 
601#if SOCKETS
602409	ALL	{ int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; } 
603#else
604409	ALL	{ int nosys(void); }
605#endif /* SOCKETS */
606410	ALL	{ int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; } 
607411	ALL	{ user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; } 
608412	ALL	{ user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; } 
609#if SOCKETS
610413	ALL	{ int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; } 
611#else
612413	ALL	{ int nosys(void); }
613#endif /* SOCKETS */
614414	ALL	{ user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; } 
615415	ALL	{ user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; } 
616416	ALL	{ int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; } 
617417	ALL	{ int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; } 
618#if SYSV_MSG
619418	ALL	{ int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; } 
620419	ALL	{ user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; } 
621#else
622418	ALL	{ int nosys(void); } 
623419	ALL	{ int nosys(void); } 
624#endif
625420	ALL	{ int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; } 
626421	ALL	{ int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; } 
627422	ALL	{ int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; } 
628423	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; } 
629424	ALL	{ int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); } 
630425	ALL	{ int __mac_get_mount(char *path, struct mac *mac_p); } 
631426	ALL	{ int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); } 
632
633