blob: 2cb7fda7764cd7924b9ba03ecacac275fb5f5d3f [file] [log] [blame]
njnd9ab15d2005-08-28 05:10:48 +00001[Master list of Darwin syscalls, courtesy of Greg Parker]
2
3
4xnu-792.2.4:bsd/kern/syscalls.master
5
6; derived from: FreeBSD @(#)syscalls.master 8.2 (Berkeley) 1/13/94
7;
8; System call name/number master file.
9; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates:
10; .../xnu/bsd/kern/init_sysent.c
11; .../xnu/bsd/kern/syscalls.c
12; .../xnu/bsd/sys/syscall.h
13; .../xnu/bsd/sys/sysproto.h
14;
15; Columns -> | Number | Cancel | Funnel | Files | { Name and Args } | { Comments }
16; Number: system call number, must be in order
17; Cancel: type of thread cancel - "PRE", "POST" or "NONE"
18; Funnel: type of funnel - "KERN" or "NONE"
19; Files: with files to generate - "ALL" or any combo of:
20; "T" for syscall table (in init_sysent.c)
21; "N" for syscall names (in syscalls.c)
22; "H" for syscall headers (in syscall.h)
23; "P" for syscall prototypes (in sysproto.h)
24; Comments: additional comments about the sys call copied to output files
25;
26; #ifdef's, #include's, #if's etc. are copied to all output files.
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
35e NONE NONE ALL { int nosys(void); } { indirect syscall }
361 NONE KERN ALL { void exit(int rval); }
372 NONE KERN ALL { int fork(void); }
383 PRE NONE ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
394 PRE NONE ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
405 PRE NONE ALL { int open(user_addr_t path, int flags, int mode); }
416 PRE NONE ALL { int close(int fd); }
427 PRE KERN ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
438 NONE NONE ALL { int nosys(void); } { old creat }
449 NONE NONE ALL { int link(user_addr_t path, user_addr_t link); }
4510 NONE NONE ALL { int unlink(user_addr_t path); }
4611 NONE NONE ALL { int nosys(void); } { old execv }
4712 NONE NONE ALL { int chdir(user_addr_t path); }
4813 NONE NONE ALL { int fchdir(int fd); }
4914 NONE NONE ALL { int mknod(user_addr_t path, int mode, int dev); }
5015 NONE NONE ALL { int chmod(user_addr_t path, int mode); }
5116 NONE NONE ALL { int chown(user_addr_t path, int uid, int gid); }
5217 NONE NONE UALL { int obreak(char *nsize); } { old break }
53
54#if COMPAT_GETFSSTAT
5518 NONE NONE ALL { int ogetfsstat(user_addr_t buf, int bufsize, int flags); }
56#else
5718 NONE NONE ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
58#endif
59
6019 NONE NONE ALL { int nosys(void); } { old lseek }
6120 NONE NONE ALL { int getpid(void); }
6221 NONE NONE ALL { int nosys(void); } { old mount }
6322 NONE NONE ALL { int nosys(void); } { old umount }
6423 NONE KERN ALL { int setuid(uid_t uid); }
6524 NONE KERN ALL { int getuid(void); }
6625 NONE KERN ALL { int geteuid(void); }
6726 NONE KERN ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
6827 PRE NONE ALL { int recvmsg(int s, struct msghdr *msg, int flags); }
6928 PRE NONE ALL { int sendmsg(int s, caddr_t msg, int flags); }
7029 PRE NONE ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
7130 PRE NONE ALL { int accept(int s, caddr_t name, socklen_t *anamelen); }
7231 NONE NONE ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
7332 NONE NONE ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
7433 NONE NONE ALL { int access(user_addr_t path, int flags); }
7534 NONE NONE ALL { int chflags(char *path, int flags); }
7635 NONE NONE ALL { int fchflags(int fd, int flags); }
7736 NONE NONE ALL { int sync(void); }
7837 NONE KERN ALL { int kill(int pid, int signum); }
7938 NONE NONE ALL { int nosys(void); } { old stat }
8039 NONE KERN ALL { int getppid(void); }
8140 NONE NONE ALL { int nosys(void); } { old lstat }
8241 NONE NONE ALL { int dup(u_int fd); }
8342 NONE NONE ALL { int pipe(void); }
8443 NONE KERN ALL { int getegid(void); }
8544 NONE KERN ALL { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
8645 NONE KERN ALL { int ktrace(const char *fname, int ops, int facs, int pid); }
8746 NONE KERN ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
8847 NONE KERN ALL { int getgid(void); }
8948 NONE KERN ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
9049 NONE KERN ALL { int getlogin(char *namebuf, u_int namelen); }
9150 NONE KERN ALL { int setlogin(char *namebuf); }
9251 NONE KERN ALL { int acct(char *path); }
9352 NONE KERN ALL { int sigpending(struct sigvec *osv); }
9453 NONE KERN ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
9554 NONE NONE ALL { int ioctl(int fd, u_long com, caddr_t data); }
9655 NONE KERN ALL { int reboot(int opt, char *command); }
9756 NONE NONE ALL { int revoke(char *path); }
9857 NONE NONE ALL { int symlink(char *path, char *link); }
9958 NONE NONE ALL { int readlink(char *path, char *buf, int count); }
10059 NONE KERN ALL { int execve(char *fname, char **argp, char **envp); }
10160 NONE KERN ALL { int umask(int newmask); }
10261 NONE KERN ALL { int chroot(user_addr_t path); }
10362 NONE NONE ALL { int nosys(void); } { old fstat }
10463 NONE NONE ALL { int nosys(void); } { used internally, reserved }
10564 NONE NONE ALL { int nosys(void); } { old getpagesize }
10665 PRE NONE ALL { int msync(caddr_t addr, size_t len, int flags); }
10766 NONE KERN ALL { int vfork(void); }
10867 NONE NONE ALL { int nosys(void); } { old vread }
10968 NONE NONE ALL { int nosys(void); } { old vwrite }
11069 NONE NONE ALL { int sbrk(int incr); }
11170 NONE NONE ALL { int sstk(int incr); }
11271 NONE NONE ALL { int nosys(void); } { old mmap }
11372 NONE NONE ALL { int ovadvise(void); } { old vadvise }
11473 NONE NONE ALL { int munmap(caddr_t addr, size_t len); }
11574 NONE NONE ALL { int mprotect(caddr_t addr, size_t len, int prot); }
11675 NONE NONE ALL { int madvise(caddr_t addr, size_t len, int behav); }
11776 NONE NONE ALL { int nosys(void); } { old vhangup }
11877 NONE NONE ALL { int nosys(void); } { old vlimit }
11978 NONE NONE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
12079 NONE KERN ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
12180 NONE KERN ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
12281 NONE KERN ALL { int getpgrp(void); }
12382 NONE KERN ALL { int setpgid(int pid, int pgid); }
12483 NONE KERN ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
12584 NONE NONE ALL { int nosys(void); } { old wait }
12685 NONE NONE ALL { int swapon(void); }
12786 NONE KERN ALL { int getitimer(u_int which, struct itimerval *itv); }
12887 NONE NONE ALL { int nosys(void); } { old gethostname }
12988 NONE NONE ALL { int nosys(void); } { old sethostname }
13089 NONE NONE ALL { int getdtablesize(void); }
13190 NONE NONE ALL { int dup2(u_int from, u_int to); }
13291 NONE NONE ALL { int nosys(void); } { old getdopt }
13392 PRE NONE ALL { int fcntl(int fd, int cmd, long arg); }
13493 PRE KERN ALL { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
13594 NONE NONE ALL { int nosys(void); } { old setdopt }
13695 PRE NONE ALL { int fsync(int fd); }
13796 NONE KERN ALL { int setpriority(int which, int who, int prio); }
13897 NONE NONE ALL { int socket(int domain, int type, int protocol); }
13998 PRE NONE ALL { int connect(int s, caddr_t name, socklen_t namelen); }
14099 NONE NONE ALL { int nosys(void); } { old accept }
141100 NONE KERN ALL { int getpriority(int which, int who); }
142101 NONE NONE ALL { int nosys(void); } { old send }
143102 NONE NONE ALL { int nosys(void); } { old recv }
144
145#ifdef __ppc__
146103 NONE NONE ALL { int nosys(void); } { old sigreturn }
147#else
148103 NONE KERN UALL { int sigreturn(struct sigcontext *sigcntxp); }
149#endif
150
151104 NONE NONE ALL { int bind(int s, caddr_t name, socklen_t namelen); }
152105 NONE NONE ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
153106 NONE NONE ALL { int listen(int s, int backlog); }
154107 NONE NONE ALL { int nosys(void); } { old vtimes }
155108 NONE NONE ALL { int nosys(void); } { old sigvec }
156109 NONE NONE ALL { int nosys(void); } { old sigblock }
157110 NONE NONE ALL { int nosys(void); } { old sigsetmask }
158111 PRE KERN ALL { int sigsuspend(sigset_t mask); }
159112 NONE NONE ALL { int nosys(void); } { old sigstack }
160113 NONE NONE ALL { int nosys(void); } { old recvmsg }
161114 NONE NONE ALL { int nosys(void); } { old sendmsg }
162115 NONE NONE ALL { int nosys(void); } { old vtrace }
163
164#ifdef __ppc__
165116 NONE NONE ALL { int ppc_gettimeofday(struct timeval *tp, struct timezone *tzp); }
166#else
167116 NONE NONE ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
168#endif
169
170117 NONE KERN ALL { int getrusage(int who, struct rusage *rusage); }
171118 NONE NONE ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
172119 NONE NONE ALL { int nosys(void); } { old resuba }
173120 PRE NONE ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
174121 PRE NONE ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
175122 NONE KERN ALL { int settimeofday(struct timeval *tv, struct timezone *tzp); }
176123 NONE NONE ALL { int fchown(int fd, int uid, int gid); }
177124 NONE NONE ALL { int fchmod(int fd, int mode); }
178125 NONE NONE ALL { int nosys(void); } { old recvfrom }
179126 NONE NONE ALL { int nosys(void); } { old setreuid }
180127 NONE NONE ALL { int nosys(void); } { old setregid }
181128 NONE NONE ALL { int rename(char *from, char *to); }
182129 NONE NONE ALL { int nosys(void); } { old truncate }
183130 NONE NONE ALL { int nosys(void); } { old ftruncate }
184131 NONE NONE ALL { int flock(int fd, int how); }
185132 NONE NONE ALL { int mkfifo(user_addr_t path, int mode); }
186133 PRE NONE ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
187134 NONE NONE ALL { int shutdown(int s, int how); }
188135 NONE NONE ALL { int socketpair(int domain, int type, int protocol, int *rsv); }
189136 NONE NONE ALL { int mkdir(user_addr_t path, int mode); }
190137 NONE NONE ALL { int rmdir(char *path); }
191138 NONE NONE ALL { int utimes(char *path, struct timeval *tptr); }
192139 NONE NONE ALL { int futimes(int fd, struct timeval *tptr); }
193140 NONE KERN ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
194141 NONE NONE ALL { int nosys(void); } { old getpeername }
195142 NONE NONE ALL { int nosys(void); } { old gethostid }
196143 NONE NONE ALL { int nosys(void); } { old sethostid }
197144 NONE NONE ALL { int nosys(void); } { old getrlimit }
198145 NONE NONE ALL { int nosys(void); } { old setrlimit }
199146 NONE NONE ALL { int nosys(void); } { old killpg }
200147 NONE KERN ALL { int setsid(void); }
201148 NONE NONE ALL { int nosys(void); } { old setquota }
202149 NONE NONE ALL { int nosys(void); } { old qquota }
203150 NONE NONE ALL { int nosys(void); } { old getsockname }
204151 NONE KERN ALL { int getpgid(pid_t pid); }
205152 NONE KERN ALL { int setprivexec(int flag); }
206153 PRE NONE ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
207154 PRE NONE ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
208
209#if NFSSERVER
210155 NONE KERN ALL { int nfssvc(int flag, caddr_t argp); }
211#else
212155 NONE NONE ALL { int nosys(void); }
213#endif
214
215156 NONE NONE ALL { int nosys(void); } { old getdirentries }
216157 NONE NONE ALL { int statfs(char *path, struct statfs *buf); }
217158 NONE NONE ALL { int fstatfs(int fd, struct statfs *buf); }
218159 NONE NONE ALL { int unmount(user_addr_t path, int flags); }
219160 NONE NONE ALL { int nosys(void); } { old async_daemon }
220
221#if NFSCLIENT
222161 NONE KERN ALL { int getfh(char *fname, fhandle_t *fhp); }
223#else
224161 NONE NONE ALL { int nosys(void); }
225#endif
226
227162 NONE NONE ALL { int nosys(void); } { old getdomainname }
228163 NONE NONE ALL { int nosys(void); } { old setdomainname }
229164 NONE NONE ALL { int nosys(void); }
230165 NONE KERN ALL { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
231166 NONE NONE ALL { int nosys(void); } { old exportfs }
232167 NONE NONE ALL { int mount(char *type, char *path, int flags, caddr_t data); }
233168 NONE NONE ALL { int nosys(void); } { old ustat }
234169 NONE NONE ALL { int nosys(void); }
235170 NONE NONE HN { int table(void); } { old table }
236171 NONE NONE ALL { int nosys(void); } { old wait3 }
237172 NONE NONE ALL { int nosys(void); } { old rpause }
238173 PRE KERN ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
239174 NONE NONE ALL { int nosys(void); } { old getdents }
240175 NONE NONE ALL { int nosys(void); } { old gc_control }
241176 NONE KERN ALL { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
242177 NONE NONE ALL { int nosys(void); }
243178 NONE NONE ALL { int nosys(void); }
244179 NONE NONE ALL { int nosys(void); }
245180 NONE NONE UALL { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5); }
246181 NONE KERN ALL { int setgid(gid_t gid); }
247182 NONE KERN ALL { int setegid(gid_t egid); }
248183 NONE KERN ALL { int seteuid(uid_t euid); }
249
250#ifdef __ppc__
251184 NONE KERN ALL { int sigreturn(struct ucontext *uctx, int infostyle); }
252#else
253184 NONE NONE ALL { int nosys(void); }
254#endif
255
256185 NONE NONE ALL { int nosys(void); }
257186 NONE NONE ALL { int nosys(void); }
258187 NONE NONE ALL { int nosys(void); }
259188 NONE NONE ALL { int stat(user_addr_t path, user_addr_t ub); }
260189 NONE NONE ALL { int fstat(int fd, user_addr_t ub); }
261190 NONE NONE ALL { int lstat(user_addr_t path, user_addr_t ub); }
262191 NONE NONE ALL { int pathconf(char *path, int name); }
263192 NONE NONE ALL { int fpathconf(int fd, int name); }
264
265#if COMPAT_GETFSSTAT
266193 NONE NONE ALL { int getfsstat(user_addr_t buf, user_long_t bufsize, int flags); }
267#else
268193 NONE NONE ALL { int nosys(void); }
269#endif
270
271194 NONE KERN ALL { int getrlimit(u_int which, struct rlimit *rlp); }
272195 NONE KERN ALL { int setrlimit(u_int which, struct rlimit *rlp); }
273196 NONE NONE ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
274197 NONE NONE ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
275198 NONE NONE ALL { int nosys(void); } { __syscall }
276199 NONE NONE ALL { off_t lseek(int fd, off_t offset, int whence); }
277200 NONE NONE ALL { int truncate(char *path, off_t length); }
278201 NONE NONE ALL { int ftruncate(int fd, off_t length); }
279202 NONE KERN ALL { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
280203 NONE NONE ALL { int mlock(caddr_t addr, size_t len); }
281204 NONE NONE ALL { int munlock(caddr_t addr, size_t len); }
282205 NONE NONE ALL { int undelete(user_addr_t path); }
283
284#ifdef __ppc__
285206 NONE NONE ALL { int ATsocket(int proto); }
286207 NONE NONE UALL { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
287208 NONE NONE UALL { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
288209 NONE NONE UALL { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
289210 NONE NONE UALL { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
290211 NONE NONE UALL { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
291212 NONE NONE UALL { int ATPgetrsp(int fd, unsigned char *bdsp); }
292213 NONE NONE ALL { int nosys(void); } { Reserved for AppleTalk }
293#else
294206 NONE NONE HN { int ATsocket(int proto); }
295207 NONE NONE UHN { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
296208 NONE NONE UHN { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
297209 NONE NONE UHN { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
298210 NONE NONE UHN { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
299211 NONE NONE UHN { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
300212 NONE NONE UHN { int ATPgetrsp(int fd, unsigned char *bdsp); }
301213 NONE NONE ALL { int nosys(void); } { Reserved for AppleTalk }
302#endif /* __ppc__ */
303
304214 NONE KERN ALL { int kqueue_from_portset_np(int portset); }
305215 NONE KERN ALL { int kqueue_portset_np(int fd); }
306
307; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
308; file system semantics. Currently, we only use 215-227. The rest is
309; for future expansion in anticipation of new MacOS APIs for HFS Plus.
310; These calls are not conditionalized becuase while they are specific
311; to HFS semantics, they are not specific to the HFS filesystem.
312; We expect all filesystems to recognize the call and report that it is
313; not supported or to actually implement it.
314216 NONE NONE UHN { int mkcomplex(const char *path, mode_t mode, u_long type); } { soon to be obsolete }
315217 NONE NONE UHN { int statv(const char *path, struct vstat *vsb); } { soon to be obsolete }
316218 NONE NONE UHN { int lstatv(const char *path, struct vstat *vsb); } { soon to be obsolete }
317219 NONE NONE UHN { int fstatv(int fd, struct vstat *vsb); } { soon to be obsolete }
318220 NONE NONE ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
319221 NONE NONE ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
320222 NONE NONE 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); }
321223 NONE NONE ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
322
323#ifdef __APPLE_API_OBSOLETE
324224 NONE NONE UALL { int checkuseraccess(const char *path, uid_t userid, gid_t *groups, int ngroups, int accessrequired, u_long options); }
325#else
326224 NONE NONE ALL { int nosys(void); } { HFS checkuseraccess check access to a file }
327#endif /* __APPLE_API_OBSOLETE */
328225 NONE KERN ALL { int searchfs(const char *path, struct fssearchblock *searchblock, u_long *nummatches, u_long scriptcode, u_long options, struct searchstate *state); }
329226 NONE NONE ALL { int delete(user_addr_t path); } { private delete (Carbon semantics) }
330227 NONE NONE ALL { int copyfile(char *from, char *to, int mode, int flags); }
331228 NONE NONE ALL { int nosys(void); }
332229 NONE NONE ALL { int nosys(void); }
333230 PRE NONE ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
334231 NONE NONE UALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
335232 NONE NONE UALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
336233 NONE NONE UALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
337234 NONE NONE 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); }
338235 NONE NONE ALL { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
339236 NONE NONE ALL { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
340237 NONE NONE ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
341238 NONE NONE ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
342239 NONE NONE ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
343240 NONE NONE ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
344241 NONE NONE ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
345242 NONE KERN ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_long options); }
346243 NONE KERN ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
347244 NONE NONE ALL { int nosys(void); }
348245 NONE NONE ALL { int nosys(void); }
349246 NONE NONE ALL { int nosys(void); }
350
351#if NFSCLIENT
352247 NONE KERN ALL { int nfsclnt(int flag, caddr_t argp); }
353248 NONE KERN ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
354#else
355247 NONE NONE ALL { int nosys(void); }
356248 NONE NONE ALL { int nosys(void); }
357#endif
358
359249 NONE NONE ALL { int nosys(void); }
360250 NONE NONE ALL { int minherit(void *addr, size_t len, int inherit); }
361251 NONE NONE ALL { int semsys(u_int which, int a2, int a3, int a4, int a5); }
362252 NONE NONE ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
363253 NONE NONE ALL { int shmsys(u_int which, int a2, int a3, int a4); }
364254 NONE NONE ALL { int semctl(int semid, int semnum, int cmd, semun_t arg); }
365255 NONE NONE ALL { int semget(key_t key, int nsems, int semflg); }
366256 NONE NONE ALL { int semop(int semid, struct sembuf *sops, int nsops); }
367257 NONE NONE ALL { int semconfig(semconfig_ctl_t flag); }
368258 NONE NONE ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
369259 NONE NONE ALL { int msgget(key_t key, int msgflg); }
370260 PRE NONE ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
371261 PRE NONE ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
372262 NONE NONE ALL { int shmat(int shmid, void *shmaddr, int shmflg); }
373263 NONE NONE ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
374264 NONE NONE ALL { int shmdt(void *shmaddr); }
375265 NONE NONE ALL { int shmget(key_t key, size_t size, int shmflg); }
376266 NONE NONE ALL { int shm_open(const char *name, int oflag, int mode); }
377267 NONE NONE ALL { int shm_unlink(const char *name); }
378268 NONE NONE ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
379269 NONE NONE ALL { int sem_close(sem_t *sem); }
380270 NONE NONE ALL { int sem_unlink(const char *name); }
381271 PRE NONE ALL { int sem_wait(sem_t *sem); }
382272 NONE NONE ALL { int sem_trywait(sem_t *sem); }
383273 NONE NONE ALL { int sem_post(sem_t *sem); }
384274 NONE NONE ALL { int sem_getvalue(sem_t *sem, int *sval); }
385275 NONE NONE ALL { int sem_init(sem_t *sem, int phsared, u_int value); }
386276 NONE NONE ALL { int sem_destroy(sem_t *sem); }
387277 NONE NONE ALL { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
388278 NONE KERN ALL { int umask_extended(int newmask, user_addr_t xsecurity); }
389279 NONE NONE ALL { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
390280 NONE NONE ALL { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
391281 NONE NONE ALL { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size); }
392282 NONE NONE ALL { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
393283 NONE NONE ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
394284 NONE NONE ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid); }
395285 NONE NONE ALL { int settid(uid_t uid, gid_t gid); }
396286 NONE NONE ALL { int gettid(uid_t *uidp, gid_t *gidp); }
397287 NONE NONE ALL { int setsgroups(int setlen, user_addr_t guidset); }
398288 NONE NONE ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset); }
399289 NONE NONE ALL { int setwgroups(int setlen, user_addr_t guidset); }
400290 NONE NONE ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset); }
401291 NONE NONE ALL { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
402292 NONE NONE ALL { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity); }
403293 NONE NONE ALL { int identitysvc(int opcode, user_addr_t message); }
404294 NONE NONE ALL { int nosys(void); }
405295 NONE NONE ALL { int nosys(void); }
406296 NONE KERN UALL { int load_shared_file(char *filename, caddr_t mfa, u_long mfs, caddr_t *ba, int map_cnt, sf_mapping_t *mappings, int *flags); }
407297 NONE KERN UALL { int reset_shared_file(caddr_t *ba, int map_cnt, sf_mapping_t *mappings); }
408298 NONE KERN ALL { int new_system_shared_regions(void); }
409299 NONE KERN UALL { int shared_region_map_file_np(int fd, uint32_t mappingCount, user_addr_t mappings, user_addr_t slide_p); }
410300 NONE KERN UALL { int shared_region_make_private_np(uint32_t rangeCount, user_addr_t ranges); }
411301 NONE NONE ALL { int nosys(void); }
412302 NONE NONE ALL { int nosys(void); }
413303 NONE NONE ALL { int nosys(void); }
414304 NONE NONE ALL { int nosys(void); }
415305 NONE NONE ALL { int nosys(void); }
416306 NONE NONE ALL { int nosys(void); }
417307 NONE NONE ALL { int nosys(void); }
418308 NONE NONE ALL { int nosys(void); }
419309 NONE NONE ALL { int nosys(void); }
420310 NONE KERN ALL { int getsid(pid_t pid); }
421311 NONE NONE ALL { int settid_with_pid(pid_t pid, int assume); }
422312 NONE NONE ALL { int nosys(void); }
423313 NONE NONE ALL { int aio_fsync(int op, user_addr_t aiocbp); }
424314 NONE NONE ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
425315 PRE NONE ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
426316 NONE NONE ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
427317 NONE NONE ALL { int aio_error(user_addr_t aiocbp); }
428318 NONE NONE ALL { int aio_read(user_addr_t aiocbp); }
429319 NONE NONE ALL { int aio_write(user_addr_t aiocbp); }
430320 NONE NONE ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
431321 NONE NONE ALL { int nosys(void); }
432322 NONE NONE ALL { int nosys(void); }
433323 NONE NONE ALL { int nosys(void); }
434324 NONE NONE ALL { int mlockall(int how); }
435325 NONE NONE ALL { int munlockall(int how); }
436326 NONE NONE ALL { int nosys(void); }
437327 NONE KERN ALL { int issetugid(void); }
438328 NONE KERN ALL { int __pthread_kill(int thread_port, int sig); }
439329 NONE KERN ALL { int pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
440330 PRE KERN ALL { int sigwait(user_addr_t set, user_addr_t sig); }
441331 NONE KERN ALL { int __disable_threadsignal(int value); }
442332 NONE NONE ALL { int __pthread_markcancel(int thread_port); }
443333 NONE NONE ALL { int __pthread_canceled(int action); }
444334 POST NONE ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, time_t tv_sec, int32_t tv_nsec); }
445335 NONE KERN ALL { int utrace(const void *addr, size_t len); }
446336 NONE NONE ALL { int nosys(void); }
447337 NONE NONE ALL { int nosys(void); }
448338 NONE NONE ALL { int nosys(void); }
449339 NONE NONE ALL { int nosys(void); }
450340 NONE NONE ALL { int nosys(void); }
451341 NONE NONE ALL { int nosys(void); }
452342 NONE NONE ALL { int nosys(void); }
453343 NONE NONE ALL { int nosys(void); }
454344 NONE NONE ALL { int nosys(void); }
455345 NONE NONE ALL { int nosys(void); }
456346 NONE NONE ALL { int nosys(void); }
457347 NONE NONE ALL { int nosys(void); }
458348 NONE NONE ALL { int nosys(void); }
459349 NONE NONE ALL { int nosys(void); }
460350 NONE KERN ALL { int audit(void *record, int length); }
461351 NONE KERN ALL { int auditon(int cmd, void *data, int length); }
462352 NONE KERN ALL { int nosys(void); }
463353 NONE KERN ALL { int getauid(au_id_t *auid); }
464354 NONE KERN ALL { int setauid(au_id_t *auid); }
465355 NONE KERN ALL { int getaudit(struct auditinfo *auditinfo); }
466356 NONE KERN ALL { int setaudit(struct auditinfo *auditinfo); }
467357 NONE KERN ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
468358 NONE KERN ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
469359 NONE KERN ALL { int auditctl(char *path); }
470360 NONE NONE ALL { int nosys(void); }
471361 NONE NONE ALL { int nosys(void); }
472362 NONE NONE ALL { int kqueue(void); }
473363 NONE NONE ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
474364 NONE NONE ALL { int lchown(user_addr_t path, uid_t owner, gid_t group); }
475365 NONE NONE ALL { int nosys(void); }
476366 NONE NONE ALL { int nosys(void); }
477367 NONE NONE ALL { int nosys(void); }
478368 NONE NONE ALL { int nosys(void); }
479369 NONE NONE ALL { int nosys(void); }