]> git.saurik.com Git - apple/xnu.git/blame - bsd/kern/syscalls.master
xnu-1504.9.17.tar.gz
[apple/xnu.git] / bsd / kern / syscalls.master
CommitLineData
91447636
A
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
b0d623f7 9; .../xnu/bsd/security/audit_syscalls.c
91447636 10
b0d623f7 11; Columns -> | Number Audit Files | { Name and Args } | { Comments }
91447636 12; Number: system call number, must be in order
b0d623f7
A
13; Audit: the audit event associated with the system call
14; A value of AUE_NULL means no auditing, but it also means that
15; there is no audit event for the call at this time. For the
16; case where the event exists, but we don't want auditing, the
17; event should be #defined to AUE_NULL in audit_kevents.h.
91447636
A
18; Files: with files to generate - "ALL" or any combo of:
19; "T" for syscall table (in init_sysent.c)
20; "N" for syscall names (in syscalls.c)
21; "H" for syscall headers (in syscall.h)
22; "P" for syscall prototypes (in sysproto.h)
2d21ac55
A
23; Name and Args: function prototype, optionally followed by
24; NO_SYSCALL_STUB (which mean no system call stub will
25; be generated in libSystem) and ending with a semicolon.
26; (Note: functions prefixed by double-underbar are
27; automatically given the NO_SYSCALL_STUB attribute.)
91447636
A
28; Comments: additional comments about the sys call copied to output files
29
30; #ifdef's, #include's, #if's etc. are copied to all output files.
2d21ac55
A
31; N.B.: makesyscalls.sh and createsyscalls.pl must be updated to account
32; for any new argument types.
91447636
A
33
34#include <sys/appleapiopts.h>
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/types.h>
38#include <sys/sysent.h>
39#include <sys/sysproto.h>
40
b0d623f7
A
410 AUE_NULL ALL { int nosys(void); } { indirect syscall }
421 AUE_EXIT ALL { void exit(int rval); }
432 AUE_FORK ALL { int fork(void); }
443 AUE_NULL ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
454 AUE_NULL ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
465 AUE_OPEN_RWTC ALL { int open(user_addr_t path, int flags, int mode); }
476 AUE_CLOSE ALL { int close(int fd); }
487 AUE_WAIT4 ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
498 AUE_NULL ALL { int nosys(void); } { old creat }
509 AUE_LINK ALL { int link(user_addr_t path, user_addr_t link); }
5110 AUE_UNLINK ALL { int unlink(user_addr_t path); }
5211 AUE_NULL ALL { int nosys(void); } { old execv }
5312 AUE_CHDIR ALL { int chdir(user_addr_t path); }
5413 AUE_FCHDIR ALL { int fchdir(int fd); }
5514 AUE_MKNOD ALL { int mknod(user_addr_t path, int mode, int dev); }
5615 AUE_CHMOD ALL { int chmod(user_addr_t path, int mode); }
5716 AUE_CHOWN ALL { int chown(user_addr_t path, int uid, int gid); }
5817 AUE_NULL ALL { int nosys(void); } { old break }
5918 AUE_GETFSSTAT ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
6019 AUE_NULL ALL { int nosys(void); } { old lseek }
6120 AUE_GETPID ALL { int getpid(void); }
6221 AUE_NULL ALL { int nosys(void); } { old mount }
6322 AUE_NULL ALL { int nosys(void); } { old umount }
6423 AUE_SETUID ALL { int setuid(uid_t uid); }
6524 AUE_GETUID ALL { int getuid(void); }
6625 AUE_GETEUID ALL { int geteuid(void); }
6726 AUE_PTRACE ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
2d21ac55 68#if SOCKETS
b0d623f7
A
6927 AUE_RECVMSG ALL { int recvmsg(int s, struct msghdr *msg, int flags); }
7028 AUE_SENDMSG ALL { int sendmsg(int s, caddr_t msg, int flags); }
7129 AUE_RECVFROM ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
7230 AUE_ACCEPT ALL { int accept(int s, caddr_t name, socklen_t *anamelen); }
7331 AUE_GETPEERNAME ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
7432 AUE_GETSOCKNAME ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
2d21ac55 75#else
b0d623f7
A
7627 AUE_NULL ALL { int nosys(void); }
7728 AUE_NULL ALL { int nosys(void); }
7829 AUE_NULL ALL { int nosys(void); }
7930 AUE_NULL ALL { int nosys(void); }
8031 AUE_NULL ALL { int nosys(void); }
8132 AUE_NULL ALL { int nosys(void); }
2d21ac55 82#endif /* SOCKETS */
b0d623f7
A
8333 AUE_ACCESS ALL { int access(user_addr_t path, int flags); }
8434 AUE_CHFLAGS ALL { int chflags(char *path, int flags); }
8535 AUE_FCHFLAGS ALL { int fchflags(int fd, int flags); }
8636 AUE_SYNC ALL { int sync(void); }
8737 AUE_KILL ALL { int kill(int pid, int signum, int posix); }
8838 AUE_NULL ALL { int nosys(void); } { old stat }
8939 AUE_GETPPID ALL { int getppid(void); }
9040 AUE_NULL ALL { int nosys(void); } { old lstat }
9141 AUE_DUP ALL { int dup(u_int fd); }
9242 AUE_PIPE ALL { int pipe(void); }
9343 AUE_GETEGID ALL { int getegid(void); }
9444 AUE_PROFILE ALL { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
9545 AUE_NULL ALL { int nosys(void); } { old ktrace }
9646 AUE_SIGACTION ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
9747 AUE_GETGID ALL { int getgid(void); }
9848 AUE_SIGPROCMASK ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
9949 AUE_GETLOGIN ALL { int getlogin(char *namebuf, u_int namelen); }
10050 AUE_SETLOGIN ALL { int setlogin(char *namebuf); }
10151 AUE_ACCT ALL { int acct(char *path); }
10252 AUE_SIGPENDING ALL { int sigpending(struct sigvec *osv); }
10353 AUE_SIGALTSTACK ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
10454 AUE_IOCTL ALL { int ioctl(int fd, u_long com, caddr_t data); }
10555 AUE_REBOOT ALL { int reboot(int opt, char *command); }
10656 AUE_REVOKE ALL { int revoke(char *path); }
10757 AUE_SYMLINK ALL { int symlink(char *path, char *link); }
10858 AUE_READLINK ALL { int readlink(char *path, char *buf, int count); }
10959 AUE_EXECVE ALL { int execve(char *fname, char **argp, char **envp); }
11060 AUE_UMASK ALL { int umask(int newmask); }
11161 AUE_CHROOT ALL { int chroot(user_addr_t path); }
11262 AUE_NULL ALL { int nosys(void); } { old fstat }
11363 AUE_NULL ALL { int nosys(void); } { used internally, reserved }
11464 AUE_NULL ALL { int nosys(void); } { old getpagesize }
11565 AUE_MSYNC ALL { int msync(caddr_t addr, size_t len, int flags); }
11666 AUE_VFORK ALL { int vfork(void); }
11767 AUE_NULL ALL { int nosys(void); } { old vread }
11868 AUE_NULL ALL { int nosys(void); } { old vwrite }
11969 AUE_NULL ALL { int nosys(void); } { old sbrk }
12070 AUE_NULL ALL { int nosys(void); } { old sstk }
12171 AUE_NULL ALL { int nosys(void); } { old mmap }
12272 AUE_NULL ALL { int nosys(void); } { old vadvise }
12373 AUE_MUNMAP ALL { int munmap(caddr_t addr, size_t len); }
12474 AUE_MPROTECT ALL { int mprotect(caddr_t addr, size_t len, int prot); }
12575 AUE_MADVISE ALL { int madvise(caddr_t addr, size_t len, int behav); }
12676 AUE_NULL ALL { int nosys(void); } { old vhangup }
12777 AUE_NULL ALL { int nosys(void); } { old vlimit }
12878 AUE_MINCORE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
12979 AUE_GETGROUPS ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
13080 AUE_SETGROUPS ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
13181 AUE_GETPGRP ALL { int getpgrp(void); }
13282 AUE_SETPGRP ALL { int setpgid(int pid, int pgid); }
13383 AUE_SETITIMER ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
13484 AUE_NULL ALL { int nosys(void); } { old wait }
13585 AUE_SWAPON ALL { int swapon(void); }
13686 AUE_GETITIMER ALL { int getitimer(u_int which, struct itimerval *itv); }
13787 AUE_NULL ALL { int nosys(void); } { old gethostname }
13888 AUE_NULL ALL { int nosys(void); } { old sethostname }
13989 AUE_GETDTABLESIZE ALL { int getdtablesize(void); }
14090 AUE_DUP2 ALL { int dup2(u_int from, u_int to); }
14191 AUE_NULL ALL { int nosys(void); } { old getdopt }
14292 AUE_FCNTL ALL { int fcntl(int fd, int cmd, long arg); }
14393 AUE_SELECT ALL { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
14494 AUE_NULL ALL { int nosys(void); } { old setdopt }
14595 AUE_FSYNC ALL { int fsync(int fd); }
14696 AUE_SETPRIORITY ALL { int setpriority(int which, id_t who, int prio); }
2d21ac55 147#if SOCKETS
b0d623f7
A
14897 AUE_SOCKET ALL { int socket(int domain, int type, int protocol); }
14998 AUE_CONNECT ALL { int connect(int s, caddr_t name, socklen_t namelen); }
2d21ac55 150#else
b0d623f7
A
15197 AUE_NULL ALL { int nosys(void); }
15298 AUE_NULL ALL { int nosys(void); }
2d21ac55 153#endif /* SOCKETS */
b0d623f7
A
15499 AUE_NULL ALL { int nosys(void); } { old accept }
155100 AUE_GETPRIORITY ALL { int getpriority(int which, id_t who); }
156101 AUE_NULL ALL { int nosys(void); } { old send }
157102 AUE_NULL ALL { int nosys(void); } { old recv }
158103 AUE_NULL ALL { int nosys(void); } { old sigreturn }
2d21ac55 159#if SOCKETS
b0d623f7
A
160104 AUE_BIND ALL { int bind(int s, caddr_t name, socklen_t namelen); }
161105 AUE_SETSOCKOPT ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
162106 AUE_LISTEN ALL { int listen(int s, int backlog); }
2d21ac55 163#else
b0d623f7
A
164104 AUE_NULL ALL { int nosys(void); }
165105 AUE_NULL ALL { int nosys(void); }
166106 AUE_NULL ALL { int nosys(void); }
2d21ac55 167#endif /* SOCKETS */
b0d623f7
A
168107 AUE_NULL ALL { int nosys(void); } { old vtimes }
169108 AUE_NULL ALL { int nosys(void); } { old sigvec }
170109 AUE_NULL ALL { int nosys(void); } { old sigblock }
171110 AUE_NULL ALL { int nosys(void); } { old sigsetmask }
172111 AUE_NULL ALL { int sigsuspend(sigset_t mask); }
173112 AUE_NULL ALL { int nosys(void); } { old sigstack }
2d21ac55 174#if SOCKETS
b0d623f7
A
175113 AUE_NULL ALL { int nosys(void); } { old recvmsg }
176114 AUE_NULL ALL { int nosys(void); } { old sendmsg }
2d21ac55 177#else
b0d623f7
A
178113 AUE_NULL ALL { int nosys(void); }
179114 AUE_NULL ALL { int nosys(void); }
2d21ac55 180#endif /* SOCKETS */
b0d623f7
A
181115 AUE_NULL ALL { int nosys(void); } { old vtrace }
182116 AUE_GETTIMEOFDAY ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
183117 AUE_GETRUSAGE ALL { int getrusage(int who, struct rusage *rusage); }
2d21ac55 184#if SOCKETS
b0d623f7 185118 AUE_GETSOCKOPT ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
2d21ac55 186#else
b0d623f7 187118 AUE_NULL ALL { int nosys(void); }
2d21ac55 188#endif /* SOCKETS */
b0d623f7
A
189119 AUE_NULL ALL { int nosys(void); } { old resuba }
190120 AUE_READV ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
191121 AUE_WRITEV ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
192122 AUE_SETTIMEOFDAY ALL { int settimeofday(struct timeval *tv, struct timezone *tzp); }
193123 AUE_FCHOWN ALL { int fchown(int fd, int uid, int gid); }
194124 AUE_FCHMOD ALL { int fchmod(int fd, int mode); }
195125 AUE_NULL ALL { int nosys(void); } { old recvfrom }
196126 AUE_SETREUID ALL { int setreuid(uid_t ruid, uid_t euid); }
197127 AUE_SETREGID ALL { int setregid(gid_t rgid, gid_t egid); }
198128 AUE_RENAME ALL { int rename(char *from, char *to); }
199129 AUE_NULL ALL { int nosys(void); } { old truncate }
200130 AUE_NULL ALL { int nosys(void); } { old ftruncate }
201131 AUE_FLOCK ALL { int flock(int fd, int how); }
202132 AUE_MKFIFO ALL { int mkfifo(user_addr_t path, int mode); }
2d21ac55 203#if SOCKETS
b0d623f7
A
204133 AUE_SENDTO ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
205134 AUE_SHUTDOWN ALL { int shutdown(int s, int how); }
206135 AUE_SOCKETPAIR ALL { int socketpair(int domain, int type, int protocol, int *rsv); }
2d21ac55 207#else
b0d623f7
A
208133 AUE_NULL ALL { int nosys(void); }
209134 AUE_NULL ALL { int nosys(void); }
210135 AUE_NULL ALL { int nosys(void); }
2d21ac55 211#endif /* SOCKETS */
b0d623f7
A
212136 AUE_MKDIR ALL { int mkdir(user_addr_t path, int mode); }
213137 AUE_RMDIR ALL { int rmdir(char *path); }
214138 AUE_UTIMES ALL { int utimes(char *path, struct timeval *tptr); }
215139 AUE_FUTIMES ALL { int futimes(int fd, struct timeval *tptr); }
216140 AUE_ADJTIME ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
217141 AUE_NULL ALL { int nosys(void); } { old getpeername }
218142 AUE_SYSCTL ALL { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp); }
219143 AUE_NULL ALL { int nosys(void); } { old sethostid }
220144 AUE_NULL ALL { int nosys(void); } { old getrlimit }
221145 AUE_NULL ALL { int nosys(void); } { old setrlimit }
222146 AUE_NULL ALL { int nosys(void); } { old killpg }
223147 AUE_SETSID ALL { int setsid(void); }
224148 AUE_NULL ALL { int nosys(void); } { old setquota }
225149 AUE_NULL ALL { int nosys(void); } { old qquota }
226150 AUE_NULL ALL { int nosys(void); } { old getsockname }
227151 AUE_GETPGID ALL { int getpgid(pid_t pid); }
228152 AUE_SETPRIVEXEC ALL { int setprivexec(int flag); }
229153 AUE_PREAD ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
230154 AUE_PWRITE ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
91447636
A
231
232#if NFSSERVER
b0d623f7 233155 AUE_NFS_SVC ALL { int nfssvc(int flag, caddr_t argp); }
91447636 234#else
b0d623f7 235155 AUE_NULL ALL { int nosys(void); }
91447636
A
236#endif
237
b0d623f7
A
238156 AUE_NULL ALL { int nosys(void); } { old getdirentries }
239157 AUE_STATFS ALL { int statfs(char *path, struct statfs *buf); }
240158 AUE_FSTATFS ALL { int fstatfs(int fd, struct statfs *buf); }
241159 AUE_UNMOUNT ALL { int unmount(user_addr_t path, int flags); }
242160 AUE_NULL ALL { int nosys(void); } { old async_daemon }
91447636 243
2d21ac55 244#if NFSSERVER
b0d623f7 245161 AUE_NFS_GETFH ALL { int getfh(char *fname, fhandle_t *fhp); }
91447636 246#else
b0d623f7 247161 AUE_NULL ALL { int nosys(void); }
91447636
A
248#endif
249
b0d623f7
A
250162 AUE_NULL ALL { int nosys(void); } { old getdomainname }
251163 AUE_NULL ALL { int nosys(void); } { old setdomainname }
252164 AUE_NULL ALL { int nosys(void); }
253165 AUE_QUOTACTL ALL { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
254166 AUE_NULL ALL { int nosys(void); } { old exportfs }
255167 AUE_MOUNT ALL { int mount(char *type, char *path, int flags, caddr_t data); }
256168 AUE_NULL ALL { int nosys(void); } { old ustat }
257169 AUE_CSOPS ALL { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
258170 AUE_NULL HN { int nosys(void); } { old table }
259171 AUE_NULL ALL { int nosys(void); } { old wait3 }
260172 AUE_NULL ALL { int nosys(void); } { old rpause }
261173 AUE_WAITID ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
262174 AUE_NULL ALL { int nosys(void); } { old getdents }
263175 AUE_NULL ALL { int nosys(void); } { old gc_control }
264176 AUE_ADDPROFILE ALL { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
265177 AUE_NULL ALL { int nosys(void); }
266178 AUE_NULL ALL { int nosys(void); }
267179 AUE_NULL ALL { int nosys(void); }
268180 AUE_KDEBUGTRACE ALL { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; }
269181 AUE_SETGID ALL { int setgid(gid_t gid); }
270182 AUE_SETEGID ALL { int setegid(gid_t egid); }
271183 AUE_SETEUID ALL { int seteuid(uid_t euid); }
272184 AUE_SIGRETURN ALL { int sigreturn(struct ucontext *uctx, int infostyle) NO_SYSCALL_STUB; }
273185 AUE_CHUD ALL { int chud(uint64_t code, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5) NO_SYSCALL_STUB; }
274186 AUE_NULL ALL { int nosys(void); }
275187 AUE_FDATASYNC ALL { int fdatasync(int fd); }
276188 AUE_STAT ALL { int stat(user_addr_t path, user_addr_t ub); }
277189 AUE_FSTAT ALL { int fstat(int fd, user_addr_t ub); }
278190 AUE_LSTAT ALL { int lstat(user_addr_t path, user_addr_t ub); }
279191 AUE_PATHCONF ALL { int pathconf(char *path, int name); }
280192 AUE_FPATHCONF ALL { int fpathconf(int fd, int name); }
281193 AUE_NULL ALL { int nosys(void); }
282194 AUE_GETRLIMIT ALL { int getrlimit(u_int which, struct rlimit *rlp); }
283195 AUE_SETRLIMIT ALL { int setrlimit(u_int which, struct rlimit *rlp); }
284196 AUE_GETDIRENTRIES ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
285197 AUE_MMAP ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
286198 AUE_NULL ALL { int nosys(void); } { __syscall }
287199 AUE_LSEEK ALL { off_t lseek(int fd, off_t offset, int whence); }
288200 AUE_TRUNCATE ALL { int truncate(char *path, off_t length); }
289201 AUE_FTRUNCATE ALL { int ftruncate(int fd, off_t length); }
290202 AUE_SYSCTL ALL { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
291203 AUE_MLOCK ALL { int mlock(caddr_t addr, size_t len); }
292204 AUE_MUNLOCK ALL { int munlock(caddr_t addr, size_t len); }
293205 AUE_UNDELETE ALL { int undelete(user_addr_t path); }
91447636 294
2d21ac55 295#if NETAT
b0d623f7
A
296206 AUE_ATSOCKET ALL { int ATsocket(int proto); }
297207 AUE_ATGETMSG UALL { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
298208 AUE_ATPUTMSG UALL { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
299209 AUE_ATPSNDREQ UALL { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
300210 AUE_ATPSNDRSP UALL { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
301211 AUE_ATPGETREQ UALL { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
302212 AUE_ATPGETRSP UALL { int ATPgetrsp(int fd, unsigned char *bdsp); }
303213 AUE_NULL ALL { int nosys(void); } { Reserved for AppleTalk }
91447636 304#else
b0d623f7
A
305206 AUE_NULL ALL { int nosys(void); }
306207 AUE_NULL ALL { int nosys(void); }
307208 AUE_NULL ALL { int nosys(void); }
308209 AUE_NULL ALL { int nosys(void); }
309210 AUE_NULL ALL { int nosys(void); }
310211 AUE_NULL ALL { int nosys(void); }
311212 AUE_NULL ALL { int nosys(void); }
312213 AUE_NULL ALL { int nosys(void); } { Reserved for AppleTalk }
2d21ac55 313#endif /* NETAT */
91447636 314
b0d623f7
A
315214 AUE_NULL ALL { int nosys(void); }
316215 AUE_NULL ALL { int nosys(void); }
91447636
A
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.
2d21ac55 321; These calls are not conditionalized because while they are specific
91447636
A
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.
b0d623f7
A
325216 AUE_MKCOMPLEX UHN { int mkcomplex(const char *path, mode_t mode, u_long type); } { soon to be obsolete }
326217 AUE_STATV UHN { int statv(const char *path, struct vstat *vsb); } { soon to be obsolete }
327218 AUE_LSTATV UHN { int lstatv(const char *path, struct vstat *vsb); } { soon to be obsolete }
328219 AUE_FSTATV UHN { int fstatv(int fd, struct vstat *vsb); } { soon to be obsolete }
329220 AUE_GETATTRLIST ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
330221 AUE_SETATTRLIST ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
331222 AUE_GETDIRENTRIESATTR 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 AUE_EXCHANGEDATA ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
333224 AUE_NULL ALL { int nosys(void); } { old checkuseraccess / fsgetpath (which moved to 427) }
334225 AUE_SEARCHFS ALL { int searchfs(const char *path, struct fssearchblock *searchblock, uint32_t *nummatches, uint32_t scriptcode, uint32_t options, struct searchstate *state); }
335226 AUE_DELETE ALL { int delete(user_addr_t path) NO_SYSCALL_STUB; } { private delete (Carbon semantics) }
336227 AUE_COPYFILE ALL { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
337228 AUE_FGETATTRLIST ALL { int fgetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
338229 AUE_FSETATTRLIST ALL { int fsetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
339230 AUE_POLL ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
340231 AUE_WATCHEVENT ALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
341232 AUE_WAITEVENT ALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
342233 AUE_MODWATCH ALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
343234 AUE_GETXATTR 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 AUE_FGETXATTR ALL { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
345236 AUE_SETXATTR ALL { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
346237 AUE_FSETXATTR ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
347238 AUE_REMOVEXATTR ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
348239 AUE_FREMOVEXATTR ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
349240 AUE_LISTXATTR ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
350241 AUE_FLISTXATTR ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
351242 AUE_FSCTL ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_int options); }
352243 AUE_INITGROUPS ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
353244 AUE_POSIX_SPAWN ALL { int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp); }
354245 AUE_FFSCTL ALL { int ffsctl(int fd, u_long cmd, caddr_t data, u_int options); }
355246 AUE_NULL ALL { int nosys(void); }
91447636 356
2d21ac55 357#if NFSCLIENT
b0d623f7 358247 AUE_NULL ALL { int nfsclnt(int flag, caddr_t argp); }
91447636 359#else
b0d623f7 360247 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
361#endif
362#if NFSSERVER
b0d623f7 363248 AUE_FHOPEN ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
2d21ac55 364#else
b0d623f7 365248 AUE_NULL ALL { int nosys(void); }
2d21ac55 366#endif
91447636 367
b0d623f7
A
368249 AUE_NULL ALL { int nosys(void); }
369250 AUE_MINHERIT ALL { int minherit(void *addr, size_t len, int inherit); }
2d21ac55 370#if SYSV_SEM
b0d623f7 371251 AUE_SEMSYS ALL { int semsys(u_int which, int a2, int a3, int a4, int a5); }
2d21ac55 372#else
b0d623f7 373251 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
374#endif
375#if SYSV_MSG
b0d623f7 376252 AUE_MSGSYS ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
2d21ac55 377#else
b0d623f7 378252 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
379#endif
380#if SYSV_SHM
b0d623f7 381253 AUE_SHMSYS ALL { int shmsys(u_int which, int a2, int a3, int a4); }
2d21ac55 382#else
b0d623f7 383253 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
384#endif
385#if SYSV_SEM
b0d623f7
A
386254 AUE_SEMCTL ALL { int semctl(int semid, int semnum, int cmd, semun_t arg); }
387255 AUE_SEMGET ALL { int semget(key_t key, int nsems, int semflg); }
388256 AUE_SEMOP ALL { int semop(int semid, struct sembuf *sops, int nsops); }
389257 AUE_NULL ALL { int nosys(void); }
2d21ac55 390#else
b0d623f7
A
391254 AUE_NULL ALL { int nosys(void); }
392255 AUE_NULL ALL { int nosys(void); }
393256 AUE_NULL ALL { int nosys(void); }
394257 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
395#endif
396#if SYSV_MSG
b0d623f7
A
397258 AUE_MSGCTL ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
398259 AUE_MSGGET ALL { int msgget(key_t key, int msgflg); }
399260 AUE_MSGSND ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
400261 AUE_MSGRCV ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
2d21ac55 401#else
b0d623f7
A
402258 AUE_NULL ALL { int nosys(void); }
403259 AUE_NULL ALL { int nosys(void); }
404260 AUE_NULL ALL { int nosys(void); }
405261 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
406#endif
407#if SYSV_SHM
b0d623f7
A
408262 AUE_SHMAT ALL { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
409263 AUE_SHMCTL ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
410264 AUE_SHMDT ALL { int shmdt(void *shmaddr); }
411265 AUE_SHMGET ALL { int shmget(key_t key, size_t size, int shmflg); }
2d21ac55 412#else
b0d623f7
A
413262 AUE_NULL ALL { int nosys(void); }
414263 AUE_NULL ALL { int nosys(void); }
415264 AUE_NULL ALL { int nosys(void); }
416265 AUE_NULL ALL { int nosys(void); }
2d21ac55 417#endif
b0d623f7
A
418266 AUE_SHMOPEN ALL { int shm_open(const char *name, int oflag, int mode); }
419267 AUE_SHMUNLINK ALL { int shm_unlink(const char *name); }
420268 AUE_SEMOPEN ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
421269 AUE_SEMCLOSE ALL { int sem_close(sem_t *sem); }
422270 AUE_SEMUNLINK ALL { int sem_unlink(const char *name); }
423271 AUE_SEMWAIT ALL { int sem_wait(sem_t *sem); }
424272 AUE_SEMTRYWAIT ALL { int sem_trywait(sem_t *sem); }
425273 AUE_SEMPOST ALL { int sem_post(sem_t *sem); }
426274 AUE_SEMGETVALUE ALL { int sem_getvalue(sem_t *sem, int *sval); }
427275 AUE_SEMINIT ALL { int sem_init(sem_t *sem, int phsared, u_int value); }
428276 AUE_SEMDESTROY ALL { int sem_destroy(sem_t *sem); }
429277 AUE_OPEN_EXTENDED_RWTC 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 AUE_UMASK_EXTENDED ALL { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
431279 AUE_STAT_EXTENDED 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 AUE_LSTAT_EXTENDED 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 AUE_FSTAT_EXTENDED ALL { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
434282 AUE_CHMOD_EXTENDED ALL { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
435283 AUE_FCHMOD_EXTENDED ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
436284 AUE_ACCESS_EXTENDED ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
437285 AUE_SETTID ALL { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
438286 AUE_GETTID ALL { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
439287 AUE_SETSGROUPS ALL { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
440288 AUE_GETSGROUPS ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
441289 AUE_SETWGROUPS ALL { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
442290 AUE_GETWGROUPS ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
443291 AUE_MKFIFO_EXTENDED ALL { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
444292 AUE_MKDIR_EXTENDED ALL { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
445293 AUE_IDENTITYSVC ALL { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
446294 AUE_NULL ALL { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
447295 AUE_NULL ALL { int shared_region_map_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings) NO_SYSCALL_STUB; }
448296 AUE_NULL ALL { int vm_pressure_monitor(int wait_for_pressure, int nsecs_monitored, uint32_t *pages_reclaimed); }
449#if PSYNCH
450297 AUE_NULL ALL { uint32_t psynch_rw_longrdlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
451298 AUE_NULL ALL { uint32_t psynch_rw_yieldwrlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
452299 AUE_NULL ALL { int psynch_rw_downgrade(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
453300 AUE_NULL ALL { uint32_t psynch_rw_upgrade(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
454301 AUE_NULL ALL { uint32_t psynch_mutexwait(user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; }
455302 AUE_NULL ALL { uint32_t psynch_mutexdrop(user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; }
456303 AUE_NULL ALL { int psynch_cvbroad(user_addr_t cv, uint32_t cvgen, uint32_t diffgen, user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; }
457304 AUE_NULL ALL { int psynch_cvsignal(user_addr_t cv, uint32_t cvgen, uint32_t cvugen, user_addr_t mutex, uint32_t mgen, uint32_t ugen, int thread_port, uint32_t flags) NO_SYSCALL_STUB; }
458305 AUE_NULL ALL { uint32_t psynch_cvwait(user_addr_t cv, uint32_t cvgen, uint32_t cvugen, user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t sec, uint64_t usec) NO_SYSCALL_STUB; }
459306 AUE_NULL ALL { uint32_t psynch_rw_rdlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
460307 AUE_NULL ALL { uint32_t psynch_rw_wrlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
461308 AUE_NULL ALL { uint32_t psynch_rw_unlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
462309 AUE_NULL ALL { uint32_t psynch_rw_unlock2(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; }
2d21ac55 463#else
b0d623f7
A
464297 AUE_NULL ALL { int nosys(void); } { old reset_shared_file }
465298 AUE_NULL ALL { int nosys(void); } { old new_system_shared_regions }
466299 AUE_NULL ALL { int enosys(void); } { old shared_region_map_file_np }
467300 AUE_NULL ALL { int enosys(void); } { old shared_region_make_private_np }
468301 AUE_NULL ALL { int nosys(void); }
469302 AUE_NULL ALL { int nosys(void); }
470303 AUE_NULL ALL { int nosys(void); }
471304 AUE_NULL ALL { int nosys(void); }
472305 AUE_NULL ALL { int nosys(void); }
473306 AUE_NULL ALL { int nosys(void); }
474307 AUE_NULL ALL { int nosys(void); }
475308 AUE_NULL ALL { int nosys(void); }
476309 AUE_NULL ALL { int nosys(void); }
2d21ac55 477#endif
b0d623f7
A
478310 AUE_GETSID ALL { int getsid(pid_t pid); }
479311 AUE_SETTIDWITHPID ALL { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
480312 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_timedwait }
481313 AUE_NULL ALL { int aio_fsync(int op, user_addr_t aiocbp); }
482314 AUE_NULL ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
483315 AUE_NULL ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
484316 AUE_NULL ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
485317 AUE_NULL ALL { int aio_error(user_addr_t aiocbp); }
486318 AUE_NULL ALL { int aio_read(user_addr_t aiocbp); }
487319 AUE_NULL ALL { int aio_write(user_addr_t aiocbp); }
488320 AUE_LIOLISTIO ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
489321 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_wait }
490322 AUE_IOPOLICYSYS ALL { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
491323 AUE_NULL ALL { int nosys(void); }
492324 AUE_MLOCKALL ALL { int mlockall(int how); }
493325 AUE_MUNLOCKALL ALL { int munlockall(int how); }
494326 AUE_NULL ALL { int nosys(void); }
495327 AUE_ISSETUGID ALL { int issetugid(void); }
496328 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); }
497329 AUE_PTHREADSIGMASK ALL { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
498330 AUE_SIGWAIT ALL { int __sigwait(user_addr_t set, user_addr_t sig); }
499331 AUE_NULL ALL { int __disable_threadsignal(int value); }
500332 AUE_NULL ALL { int __pthread_markcancel(int thread_port); }
501333 AUE_NULL ALL { int __pthread_canceled(int action); }
502
503;#if OLD_SEMWAIT_SIGNAL
504;334 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
505;#else
506334 AUE_SEMWAITSIGNAL ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); }
507;#endif
2d21ac55 508
b0d623f7
A
509335 AUE_NULL ALL { int nosys(void); } { old utrace }
510336 AUE_PROCINFO 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; }
511#if SENDFILE
512337 AUE_SENDFILE ALL { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
513#else /* !SENDFILE */
514337 AUE_NULL ALL { int nosys(void); }
515#endif /* SENDFILE */
516338 AUE_STAT64 ALL { int stat64(user_addr_t path, user_addr_t ub); }
517339 AUE_FSTAT64 ALL { int fstat64(int fd, user_addr_t ub); }
518340 AUE_LSTAT64 ALL { int lstat64(user_addr_t path, user_addr_t ub); }
519341 AUE_STAT64_EXTENDED ALL { int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
520342 AUE_LSTAT64_EXTENDED ALL { int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
521343 AUE_FSTAT64_EXTENDED ALL { int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
522344 AUE_GETDIRENTRIES64 ALL { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
523345 AUE_STATFS64 ALL { int statfs64(char *path, struct statfs64 *buf); }
524346 AUE_FSTATFS64 ALL { int fstatfs64(int fd, struct statfs64 *buf); }
525347 AUE_GETFSSTAT64 ALL { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
526348 AUE_NULL ALL { int __pthread_chdir(user_addr_t path); }
527349 AUE_NULL ALL { int __pthread_fchdir(int fd); }
528350 AUE_AUDIT ALL { int audit(void *record, int length); }
529351 AUE_AUDITON ALL { int auditon(int cmd, void *data, int length); }
530352 AUE_NULL ALL { int nosys(void); }
531353 AUE_GETAUID ALL { int getauid(au_id_t *auid); }
532354 AUE_SETAUID ALL { int setauid(au_id_t *auid); }
533355 AUE_GETAUDIT ALL { int getaudit(struct auditinfo *auditinfo); }
534356 AUE_SETAUDIT ALL { int setaudit(struct auditinfo *auditinfo); }
535357 AUE_GETAUDIT_ADDR ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
536358 AUE_SETAUDIT_ADDR ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
537359 AUE_AUDITCTL ALL { int auditctl(char *path); }
593a1d5f 538#if CONFIG_WORKQUEUE
b0d623f7
A
539360 AUE_NULL 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; }
540361 AUE_NULL ALL { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
593a1d5f 541#else
b0d623f7
A
542360 AUE_NULL ALL { int nosys(void); }
543361 AUE_NULL ALL { int nosys(void); }
544#endif /* CONFIG_WORKQUEUE */
545362 AUE_KQUEUE ALL { int kqueue(void); }
546363 AUE_NULL ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
547364 AUE_LCHOWN ALL { int lchown(user_addr_t path, uid_t owner, gid_t group); }
b7266188 548365 AUE_STACKSNAPSHOT ALL { int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t flags, uint32_t dispatch_offset) NO_SYSCALL_STUB; }
593a1d5f 549#if CONFIG_WORKQUEUE
b0d623f7
A
550366 AUE_NULL ALL { int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, int pthsize,user_addr_t dummy_value, user_addr_t targetconc_ptr, uint64_t dispatchqueue_offset) NO_SYSCALL_STUB; }
551367 AUE_WORKQOPEN ALL { int workq_open(void) NO_SYSCALL_STUB; }
552368 AUE_WORKQOPS ALL { int workq_kernreturn(int options, user_addr_t item, int affinity, int prio) NO_SYSCALL_STUB; }
553#else
554366 AUE_NULL ALL { int nosys(void); }
555367 AUE_NULL ALL { int nosys(void); }
556368 AUE_NULL ALL { int nosys(void); }
557#endif /* CONFIG_WORKQUEUE */
558369 AUE_NULL ALL { int kevent64(int fd, const struct kevent64_s *changelist, int nchanges, struct kevent64_s *eventlist, int nevents, unsigned int flags, const struct timespec *timeout); }
559#if OLD_SEMWAIT_SIGNAL
560370 AUE_SEMWAITSIGNAL ALL { int __old_semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts); }
561371 AUE_SEMWAITSIGNAL ALL { int __old_semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts) NO_SYSCALL_STUB; }
593a1d5f 562#else
b0d623f7
A
563370 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
564371 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
593a1d5f 565#endif
d1ecb069 566372 AUE_NULL ALL { uint64_t thread_selfid (void) NO_SYSCALL_STUB; }
b0d623f7
A
567373 AUE_NULL ALL { int nosys(void); }
568374 AUE_NULL ALL { int nosys(void); }
569375 AUE_NULL ALL { int nosys(void); }
570376 AUE_NULL ALL { int nosys(void); }
571377 AUE_NULL ALL { int nosys(void); }
572378 AUE_NULL ALL { int nosys(void); }
573379 AUE_NULL ALL { int nosys(void); }
574380 AUE_MAC_EXECVE ALL { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
575381 AUE_MAC_SYSCALL ALL { int __mac_syscall(char *policy, int call, user_addr_t arg); }
576382 AUE_MAC_GET_FILE ALL { int __mac_get_file(char *path_p, struct mac *mac_p); }
577383 AUE_MAC_SET_FILE ALL { int __mac_set_file(char *path_p, struct mac *mac_p); }
578384 AUE_MAC_GET_LINK ALL { int __mac_get_link(char *path_p, struct mac *mac_p); }
579385 AUE_MAC_SET_LINK ALL { int __mac_set_link(char *path_p, struct mac *mac_p); }
580386 AUE_MAC_GET_PROC ALL { int __mac_get_proc(struct mac *mac_p); }
581387 AUE_MAC_SET_PROC ALL { int __mac_set_proc(struct mac *mac_p); }
582388 AUE_MAC_GET_FD ALL { int __mac_get_fd(int fd, struct mac *mac_p); }
583389 AUE_MAC_SET_FD ALL { int __mac_set_fd(int fd, struct mac *mac_p); }
584390 AUE_MAC_GET_PID ALL { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
585391 AUE_MAC_GET_LCID ALL { int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
586392 AUE_MAC_GET_LCTX ALL { int __mac_get_lctx(struct mac *mac_p); }
587393 AUE_MAC_SET_LCTX ALL { int __mac_set_lctx(struct mac *mac_p); }
588394 AUE_SETLCID ALL { int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
589395 AUE_GETLCID ALL { int getlcid(pid_t pid) NO_SYSCALL_STUB; }
590396 AUE_NULL ALL { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
591397 AUE_NULL ALL { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
592398 AUE_OPEN_RWTC ALL { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
593399 AUE_CLOSE ALL { int close_nocancel(int fd) NO_SYSCALL_STUB; }
594400 AUE_WAIT4 ALL { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
2d21ac55 595#if SOCKETS
b0d623f7
A
596401 AUE_RECVMSG ALL { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
597402 AUE_SENDMSG ALL { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
598403 AUE_RECVFROM ALL { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
599404 AUE_ACCEPT ALL { int accept_nocancel(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; }
2d21ac55 600#else
b0d623f7
A
601401 AUE_NULL ALL { int nosys(void); }
602402 AUE_NULL ALL { int nosys(void); }
603403 AUE_NULL ALL { int nosys(void); }
604404 AUE_NULL ALL { int nosys(void); }
2d21ac55 605#endif /* SOCKETS */
b0d623f7
A
606405 AUE_MSYNC ALL { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
607406 AUE_FCNTL ALL { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
608407 AUE_SELECT ALL { int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; }
609408 AUE_FSYNC ALL { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
2d21ac55 610#if SOCKETS
b0d623f7 611409 AUE_CONNECT ALL { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
2d21ac55 612#else
b0d623f7 613409 AUE_NULL ALL { int nosys(void); }
2d21ac55 614#endif /* SOCKETS */
b0d623f7
A
615410 AUE_NULL ALL { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
616411 AUE_READV ALL { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
617412 AUE_WRITEV ALL { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
2d21ac55 618#if SOCKETS
b0d623f7 619413 AUE_SENDTO ALL { int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
2d21ac55 620#else
b0d623f7 621413 AUE_NULL ALL { int nosys(void); }
2d21ac55 622#endif /* SOCKETS */
b0d623f7
A
623414 AUE_PREAD ALL { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
624415 AUE_PWRITE ALL { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
625416 AUE_WAITID ALL { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
626417 AUE_POLL ALL { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
2d21ac55 627#if SYSV_MSG
b0d623f7
A
628418 AUE_MSGSND ALL { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
629419 AUE_MSGRCV ALL { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
91447636 630#else
b0d623f7
A
631418 AUE_NULL ALL { int nosys(void); }
632419 AUE_NULL ALL { int nosys(void); }
91447636 633#endif
b0d623f7
A
634420 AUE_SEMWAIT ALL { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
635421 AUE_NULL ALL { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
636422 AUE_SIGWAIT ALL { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
637;#if OLD_SEMWAIT_SIGNAL
638;423 AUE_NULL ALL { int nosys(void); } { old __semwait_signal_nocancel }
639;#else
640423 AUE_SEMWAITSIGNAL ALL { int __semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec) NO_SYSCALL_STUB;}
641;#endif
642424 AUE_MAC_MOUNT ALL { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
643425 AUE_MAC_GET_MOUNT ALL { int __mac_get_mount(char *path, struct mac *mac_p); }
644426 AUE_MAC_GETFSSTAT ALL { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
645427 AUE_FSGETPATH ALL { user_ssize_t fsgetpath(user_addr_t buf, size_t bufsize, user_addr_t fsid, uint64_t objid) NO_SYSCALL_STUB; } { private fsgetpath (File Manager SPI) }
646428 AUE_NULL ALL { mach_port_name_t audit_session_self(void); }
647429 AUE_NULL ALL { int audit_session_join(mach_port_name_t port); }
d1ecb069
A
648430 AUE_NULL ALL { int pid_suspend(int pid); }
649431 AUE_NULL ALL { int pid_resume(int pid); }
650#if CONFIG_EMBEDDED
651432 AUE_NULL ALL { int fileport_makeport(int fd, user_addr_t portnamep); }
652433 AUE_NULL ALL { int fileport_makefd(mach_port_name_t port); }
653#else
654432 AUE_NULL ALL { int nosys(void); }
655433 AUE_NULL ALL { int nosys(void); }
656#endif