syscalls.master revision 184588
184059Swpaul $FreeBSD: head/sys/kern/syscalls.master 184588 2008-11-03 10:38:00Z dfr $
284059Swpaul;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
384059Swpaul;
484059Swpaul; System call name/number master file.
584059Swpaul; Processed to created init_sysent.c, syscalls.c and syscall.h.
684059Swpaul
784059Swpaul; Columns: number audit type name alt{name,tag,rtyp}/comments
884059Swpaul;	number	system call number, must be in order
984059Swpaul;	audit	the audit event associated with the system call
1084059Swpaul;		A value of AUE_NULL means no auditing, but it also means that
1184059Swpaul;		there is no audit event for the call at this time. For the
1284059Swpaul;		case where the event exists, but we don't want auditing, the
1384059Swpaul;		event should be #defined to AUE_NULL in audit_kevents.h.
1484059Swpaul;	type	one of STD, OBSOL, UNIMPL, COMPAT, CPT_NOA, LIBCOMPAT,
1584059Swpaul;		NODEF, NOARGS, NOPROTO, NOIMPL, NOSTD, COMPAT4
1684059Swpaul;	name	psuedo-prototype of syscall routine
1784059Swpaul;		If one of the following alts is different, then all appear:
1884059Swpaul;	altname	name of system call if different
1984059Swpaul;	alttag	name of args struct tag if different from [o]`name'"_args"
2084059Swpaul;	altrtyp	return type if not int (bogus - syscalls always return int)
2184059Swpaul;		for UNIMPL/OBSOL, name continues with comments
2284059Swpaul
2384059Swpaul; types:
2484059Swpaul;	STD	always included
2584059Swpaul;	COMPAT	included on COMPAT #ifdef
2684059Swpaul;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
2784059Swpaul;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
2884059Swpaul;	OBSOL	obsolete, not included in system, only specifies name
2984059Swpaul;	UNIMPL	not implemented, placeholder only
3084059Swpaul;	NOSTD	implemented but as a lkm that can be statically
3184059Swpaul;		compiled in; sysent entry will be filled with lkmsys
3284059Swpaul;		so the SYSCALL_MODULE macro works
3384059Swpaul;	NOARGS	same as STD except do not create structure in sys/sysproto.h
3484059Swpaul;	NODEF	same as STD except only have the entry in the syscall table
3584059Swpaul;		added.  Meaning - do not create structure or function
3684059Swpaul;		prototype in sys/sysproto.h
3784059Swpaul;	NOPROTO	same as STD except do not create structure or
3884059Swpaul;		function prototype in sys/sysproto.h.  Does add a
3984059Swpaul;		definition to syscall.h besides adding a sysent.
4084059Swpaul
4184059Swpaul;
4284059Swpaul; Please copy any additions and changes to the following compatability tables:
4384059Swpaul; sys/compat/freebsd32/syscalls.master
4484059Swpaul
4584059Swpaul; #ifdef's, etc. may be included, and are copied to the output files.
4684059Swpaul
4784059Swpaul#include <sys/param.h>
4884059Swpaul#include <sys/sysent.h>
4984059Swpaul#include <sys/sysproto.h>
5084059Swpaul
5184059Swpaul; Reserved/unimplemented system calls in the range 0-150 inclusive
5284059Swpaul; are reserved for use in future Berkeley releases.
5384059Swpaul; Additional system calls implemented in vendor and other
5484059Swpaul; redistributions should be placed in the reserved range at the end
5584059Swpaul; of the current calls.
5684059Swpaul
5784059Swpaul0	AUE_NULL	STD	{ int nosys(void); } syscall nosys_args int
5884059Swpaul1	AUE_EXIT	STD	{ void sys_exit(int rval); } exit \
5984059Swpaul				    sys_exit_args void
6084059Swpaul2	AUE_FORK	STD	{ int fork(void); }
6184059Swpaul3	AUE_NULL	STD	{ ssize_t read(int fd, void *buf, \
6284059Swpaul				    size_t nbyte); }
6384059Swpaul4	AUE_NULL	STD	{ ssize_t write(int fd, const void *buf, \
6484059Swpaul				    size_t nbyte); }
6584059Swpaul5	AUE_OPEN_RWTC	STD	{ int open(char *path, int flags, int mode); }
6684059Swpaul; XXX should be		{ int open(const char *path, int flags, ...); }
6784059Swpaul; but we're not ready for `const' or varargs.
6884059Swpaul; XXX man page says `mode_t mode'.
6984059Swpaul6	AUE_CLOSE	STD	{ int close(int fd); }
7084059Swpaul7	AUE_WAIT4	STD	{ int wait4(int pid, int *status, \
7184059Swpaul				    int options, struct rusage *rusage); } \
7284059Swpaul				    wait4 wait_args int
7384059Swpaul8	AUE_CREAT	COMPAT	{ int creat(char *path, int mode); }
7484059Swpaul9	AUE_LINK	STD	{ int link(char *path, char *link); }
75110367Sps10	AUE_UNLINK	STD	{ int unlink(char *path); }
76110367Sps11	AUE_NULL	OBSOL	execv
7784059Swpaul12	AUE_CHDIR	STD	{ int chdir(char *path); }
7884059Swpaul13	AUE_FCHDIR	STD	{ int fchdir(int fd); }
7984059Swpaul14	AUE_MKNOD	STD	{ int mknod(char *path, int mode, int dev); }
8084059Swpaul15	AUE_CHMOD	STD	{ int chmod(char *path, int mode); }
8184059Swpaul16	AUE_CHOWN	STD	{ int chown(char *path, int uid, int gid); }
8284059Swpaul17	AUE_NULL	STD	{ int obreak(char *nsize); } break \
8384059Swpaul				    obreak_args int
8484059Swpaul18	AUE_GETFSSTAT	COMPAT4	{ int getfsstat(struct ostatfs *buf, \
8584059Swpaul				    long bufsize, int flags); }
8684059Swpaul19	AUE_LSEEK	COMPAT	{ long lseek(int fd, long offset, \
8784059Swpaul				    int whence); }
8884059Swpaul20	AUE_GETPID	STD	{ pid_t getpid(void); }
8984059Swpaul21	AUE_MOUNT	STD	{ int mount(char *type, char *path, \
9084059Swpaul				    int flags, caddr_t data); }
9184059Swpaul; XXX `path' should have type `const char *' but we're not ready for that.
9284059Swpaul22	AUE_UMOUNT	STD	{ int unmount(char *path, int flags); }
9384059Swpaul23	AUE_SETUID	STD	{ int setuid(uid_t uid); }
9484059Swpaul24	AUE_GETUID	STD	{ uid_t getuid(void); }
9584059Swpaul25	AUE_GETEUID	STD	{ uid_t geteuid(void); }
9684059Swpaul26	AUE_PTRACE	STD	{ int ptrace(int req, pid_t pid, \
9784059Swpaul				    caddr_t addr, int data); }
9884059Swpaul27	AUE_RECVMSG	STD	{ int recvmsg(int s, struct msghdr *msg, \
9984059Swpaul				    int flags); }
10084059Swpaul28	AUE_SENDMSG	STD	{ int sendmsg(int s, struct msghdr *msg, \
10184059Swpaul				    int flags); }
10284059Swpaul29	AUE_RECVFROM	STD	{ int recvfrom(int s, caddr_t buf, \
10384059Swpaul				    size_t len, int flags, \
10484059Swpaul				    struct sockaddr * __restrict from, \
10584059Swpaul				    __socklen_t * __restrict fromlenaddr); }
10684059Swpaul30	AUE_ACCEPT	STD	{ int accept(int s, \
10784059Swpaul				    struct sockaddr * __restrict name, \
10884059Swpaul				    __socklen_t * __restrict anamelen); }
10984059Swpaul31	AUE_GETPEERNAME	STD	{ int getpeername(int fdes, \
11084059Swpaul				    struct sockaddr * __restrict asa, \
11184059Swpaul				    __socklen_t * __restrict alen); }
11284059Swpaul32	AUE_GETSOCKNAME	STD	{ int getsockname(int fdes, \
11384059Swpaul				    struct sockaddr * __restrict asa, \
11484059Swpaul				    __socklen_t * __restrict alen); }
11584059Swpaul33	AUE_ACCESS	STD	{ int access(char *path, int flags); }
11684059Swpaul34	AUE_CHFLAGS	STD	{ int chflags(char *path, int flags); }
11784059Swpaul35	AUE_FCHFLAGS	STD	{ int fchflags(int fd, int flags); }
11884059Swpaul36	AUE_SYNC	STD	{ int sync(void); }
11984059Swpaul37	AUE_KILL	STD	{ int kill(int pid, int signum); }
12084059Swpaul38	AUE_STAT	COMPAT	{ int stat(char *path, struct ostat *ub); }
12184059Swpaul39	AUE_GETPPID	STD	{ pid_t getppid(void); }
12284059Swpaul40	AUE_LSTAT	COMPAT	{ int lstat(char *path, struct ostat *ub); }
12384059Swpaul41	AUE_DUP		STD	{ int dup(u_int fd); }
12484059Swpaul42	AUE_PIPE	STD	{ int pipe(void); }
12584059Swpaul43	AUE_GETEGID	STD	{ gid_t getegid(void); }
12684059Swpaul44	AUE_PROFILE	STD	{ int profil(caddr_t samples, size_t size, \
12784059Swpaul				    size_t offset, u_int scale); }
12884059Swpaul45	AUE_KTRACE	STD	{ int ktrace(const char *fname, int ops, \
12984059Swpaul				    int facs, int pid); }
13084059Swpaul46	AUE_SIGACTION	COMPAT	{ int sigaction(int signum, \
13184059Swpaul				    struct osigaction *nsa, \
13284059Swpaul				    struct osigaction *osa); }
13384059Swpaul47	AUE_GETGID	STD	{ gid_t getgid(void); }
13484059Swpaul48	AUE_SIGPROCMASK	COMPAT	{ int sigprocmask(int how, osigset_t mask); }
13584059Swpaul; XXX note nonstandard (bogus) calling convention - the libc stub passes
13684059Swpaul; us the mask, not a pointer to it, and we return the old mask as the
13784059Swpaul; (int) return value.
13884059Swpaul49	AUE_GETLOGIN	STD	{ int getlogin(char *namebuf, u_int \
13984059Swpaul				    namelen); }
14084059Swpaul50	AUE_SETLOGIN	STD	{ int setlogin(char *namebuf); }
14184059Swpaul51	AUE_ACCT	STD	{ int acct(char *path); }
14284059Swpaul52	AUE_SIGPENDING	COMPAT	{ int sigpending(void); }
14384059Swpaul53	AUE_SIGALTSTACK	STD	{ int sigaltstack(stack_t *ss, \
14484059Swpaul				    stack_t *oss); }
14584059Swpaul54	AUE_IOCTL	STD	{ int ioctl(int fd, u_long com, \
14684059Swpaul				    caddr_t data); }
14784059Swpaul55	AUE_REBOOT	STD	{ int reboot(int opt); }
14884059Swpaul56	AUE_REVOKE	STD	{ int revoke(char *path); }
14984059Swpaul57	AUE_SYMLINK	STD	{ int symlink(char *path, char *link); }
15084059Swpaul58	AUE_READLINK	STD	{ ssize_t readlink(char *path, char *buf, \
15184059Swpaul				    size_t count); }
15284059Swpaul59	AUE_EXECVE	STD	{ int execve(char *fname, char **argv, \
15384059Swpaul				    char **envv); }
15484059Swpaul60	AUE_UMASK	STD	{ int umask(int newmask); } umask umask_args \
15584059Swpaul				    int
15684059Swpaul61	AUE_CHROOT	STD	{ int chroot(char *path); }
15784059Swpaul62	AUE_FSTAT	COMPAT	{ int fstat(int fd, struct ostat *sb); }
15884059Swpaul63	AUE_NULL	COMPAT	{ int getkerninfo(int op, char *where, \
15984059Swpaul				    size_t *size, int arg); } getkerninfo \
16084059Swpaul				    getkerninfo_args int
16184059Swpaul64	AUE_NULL	COMPAT	{ int getpagesize(void); } getpagesize \
16284059Swpaul				    getpagesize_args int
16384059Swpaul65	AUE_MSYNC	STD	{ int msync(void *addr, size_t len, \
16484059Swpaul				    int flags); }
16584059Swpaul66	AUE_VFORK	STD	{ int vfork(void); }
16684059Swpaul67	AUE_NULL	OBSOL	vread
16784059Swpaul68	AUE_NULL	OBSOL	vwrite
16884059Swpaul69	AUE_SBRK	STD	{ int sbrk(int incr); }
16984059Swpaul70	AUE_SSTK	STD	{ int sstk(int incr); }
17084059Swpaul71	AUE_MMAP	COMPAT	{ int mmap(void *addr, int len, int prot, \
17184059Swpaul				    int flags, int fd, long pos); }
17284059Swpaul72	AUE_O_VADVISE	STD	{ int ovadvise(int anom); } vadvise \
17384059Swpaul				    ovadvise_args int
17484059Swpaul73	AUE_MUNMAP	STD	{ int munmap(void *addr, size_t len); }
17584059Swpaul74	AUE_MPROTECT	STD	{ int mprotect(const void *addr, size_t len, \
17684059Swpaul				    int prot); }
17784059Swpaul75	AUE_MADVISE	STD	{ int madvise(void *addr, size_t len, \
17884059Swpaul				    int behav); }
17984059Swpaul76	AUE_NULL	OBSOL	vhangup
18084059Swpaul77	AUE_NULL	OBSOL	vlimit
18184059Swpaul78	AUE_MINCORE	STD	{ int mincore(const void *addr, size_t len, \
18284059Swpaul				    char *vec); }
18384059Swpaul79	AUE_GETGROUPS	STD	{ int getgroups(u_int gidsetsize, \
18484059Swpaul				    gid_t *gidset); }
18584059Swpaul80	AUE_SETGROUPS	STD	{ int setgroups(u_int gidsetsize, \
18684059Swpaul				    gid_t *gidset); }
18784059Swpaul81	AUE_GETPGRP	STD	{ int getpgrp(void); }
18884059Swpaul82	AUE_SETPGRP	STD	{ int setpgid(int pid, int pgid); }
18984059Swpaul83	AUE_SETITIMER	STD	{ int setitimer(u_int which, struct \
19084059Swpaul				    itimerval *itv, struct itimerval *oitv); }
19184059Swpaul84	AUE_WAIT4	COMPAT	{ int wait(void); }
19284059Swpaul85	AUE_SWAPON	STD	{ int swapon(char *name); }
19384059Swpaul86	AUE_GETITIMER	STD	{ int getitimer(u_int which, \
19484059Swpaul				    struct itimerval *itv); }
19584059Swpaul87	AUE_SYSCTL	COMPAT	{ int gethostname(char *hostname, \
19684059Swpaul				    u_int len); } gethostname \
19784059Swpaul				    gethostname_args int
19884059Swpaul88	AUE_SYSCTL	COMPAT	{ int sethostname(char *hostname, \
19984059Swpaul				    u_int len); } sethostname \
20084059Swpaul				    sethostname_args int
20184059Swpaul89	AUE_GETDTABLESIZE	STD	{ int getdtablesize(void); }
20284059Swpaul90	AUE_DUP2	STD	{ int dup2(u_int from, u_int to); }
20384059Swpaul91	AUE_NULL	UNIMPL	getdopt
20484059Swpaul92	AUE_FCNTL	STD	{ int fcntl(int fd, int cmd, long arg); }
20584059Swpaul; XXX should be	{ int fcntl(int fd, int cmd, ...); }
20684059Swpaul; but we're not ready for varargs.
207104325Sjake93	AUE_SELECT	STD	{ int select(int nd, fd_set *in, fd_set *ou, \
20884059Swpaul				    fd_set *ex, struct timeval *tv); }
209104325Sjake94	AUE_NULL	UNIMPL	setdopt
21084059Swpaul95	AUE_FSYNC	STD	{ int fsync(int fd); }
21184059Swpaul96	AUE_SETPRIORITY	STD	{ int setpriority(int which, int who, \
21284059Swpaul				    int prio); }
21384059Swpaul97	AUE_SOCKET	STD	{ int socket(int domain, int type, \
21484059Swpaul				    int protocol); }
215114813Sps98	AUE_CONNECT	STD	{ int connect(int s, caddr_t name, \
216114813Sps				    int namelen); }
217114813Sps99	AUE_ACCEPT	CPT_NOA	{ int accept(int s, caddr_t name, \
218114813Sps				    int *anamelen); } accept accept_args int
219114813Sps100	AUE_GETPRIORITY	STD	{ int getpriority(int which, int who); }
220114813Sps101	AUE_SEND	COMPAT	{ int send(int s, caddr_t buf, int len, \
221114813Sps				    int flags); }
222114813Sps102	AUE_RECV	COMPAT	{ int recv(int s, caddr_t buf, int len, \
223114813Sps				    int flags); }
224114813Sps103	AUE_SIGRETURN	COMPAT	{ int sigreturn( \
225114813Sps				    struct osigcontext *sigcntxp); }
226114813Sps104	AUE_BIND	STD	{ int bind(int s, caddr_t name, \
227114813Sps				    int namelen); }
228114813Sps105	AUE_SETSOCKOPT	STD	{ int setsockopt(int s, int level, int name, \
229114813Sps				    caddr_t val, int valsize); }
230114813Sps106	AUE_LISTEN	STD	{ int listen(int s, int backlog); }
231114813Sps107	AUE_NULL	OBSOL	vtimes
23284059Swpaul108	AUE_NULL	COMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
23393751Swpaul				    struct sigvec *osv); }
234114615Sps109	AUE_NULL	COMPAT	{ int sigblock(int mask); }
235114615Sps110	AUE_NULL	COMPAT	{ int sigsetmask(int mask); }
236114615Sps111	AUE_NULL	COMPAT	{ int sigsuspend(osigset_t mask); }
237114615Sps; XXX note nonstandard (bogus) calling convention - the libc stub passes
238114615Sps; us the mask, not a pointer to it.
23993751Swpaul112	AUE_NULL	COMPAT	{ int sigstack(struct sigstack *nss, \
240114813Sps				    struct sigstack *oss); }
241114813Sps113	AUE_RECVMSG	COMPAT	{ int recvmsg(int s, struct omsghdr *msg, \
242114813Sps				    int flags); }
243114813Sps114	AUE_SENDMSG	COMPAT	{ int sendmsg(int s, caddr_t msg, \
244114813Sps				    int flags); }
245114813Sps115	AUE_NULL	OBSOL	vtrace
246114813Sps116	AUE_GETTIMEOFDAY	STD	{ int gettimeofday(struct timeval *tp, \
24784059Swpaul				    struct timezone *tzp); }
24884059Swpaul117	AUE_GETRUSAGE	STD	{ int getrusage(int who, \
24984059Swpaul				    struct rusage *rusage); }
25084059Swpaul118	AUE_GETSOCKOPT	STD	{ int getsockopt(int s, int level, int name, \
25184059Swpaul				    caddr_t val, int *avalsize); }
25284059Swpaul119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
253114615Sps120	AUE_READV	STD	{ int readv(int fd, struct iovec *iovp, \
25484059Swpaul				    u_int iovcnt); }
255114615Sps121	AUE_WRITEV	STD	{ int writev(int fd, struct iovec *iovp, \
25684059Swpaul				    u_int iovcnt); }
25784059Swpaul122	AUE_SETTIMEOFDAY	STD	{ int settimeofday(struct timeval *tv, \
25884059Swpaul				    struct timezone *tzp); }
259114615Sps123	AUE_FCHOWN	STD	{ int fchown(int fd, int uid, int gid); }
26084059Swpaul124	AUE_FCHMOD	STD	{ int fchmod(int fd, int mode); }
261114615Sps125	AUE_RECVFROM	CPT_NOA	{ int recvfrom(int s, caddr_t buf, \
26284059Swpaul				    size_t len, int flags, caddr_t from, int \
26384059Swpaul				    *fromlenaddr); } recvfrom recvfrom_args \
26484059Swpaul				    int
26584059Swpaul126	AUE_SETREUID	STD	{ int setreuid(int ruid, int euid); }
26684059Swpaul127	AUE_SETREGID	STD	{ int setregid(int rgid, int egid); }
26784059Swpaul128	AUE_RENAME	STD	{ int rename(char *from, char *to); }
26884059Swpaul129	AUE_TRUNCATE	COMPAT	{ int truncate(char *path, long length); }
26984059Swpaul130	AUE_FTRUNCATE	COMPAT	{ int ftruncate(int fd, long length); }
27084059Swpaul131	AUE_FLOCK	STD	{ int flock(int fd, int how); }
27184059Swpaul132	AUE_MKFIFO	STD	{ int mkfifo(char *path, int mode); }
27284059Swpaul133	AUE_SENDTO	STD	{ int sendto(int s, caddr_t buf, size_t len, \
27384059Swpaul				    int flags, caddr_t to, int tolen); }
27484059Swpaul134	AUE_SHUTDOWN	STD	{ int shutdown(int s, int how); }
27584059Swpaul135	AUE_SOCKETPAIR	STD	{ int socketpair(int domain, int type, \
27684059Swpaul				    int protocol, int *rsv); }
27784059Swpaul136	AUE_MKDIR	STD	{ int mkdir(char *path, int mode); }
27884059Swpaul137	AUE_RMDIR	STD	{ int rmdir(char *path); }
27984059Swpaul138	AUE_UTIMES	STD	{ int utimes(char *path, \
28084059Swpaul				    struct timeval *tptr); }
28184059Swpaul139	AUE_NULL	OBSOL	4.2 sigreturn
28284059Swpaul140	AUE_ADJTIME	STD	{ int adjtime(struct timeval *delta, \
28384059Swpaul				    struct timeval *olddelta); }
28484059Swpaul141	AUE_GETPEERNAME	COMPAT	{ int getpeername(int fdes, caddr_t asa, \
28584059Swpaul				    int *alen); }
28684059Swpaul142	AUE_SYSCTL	COMPAT	{ long gethostid(void); }
28784059Swpaul143	AUE_SYSCTL	COMPAT	{ int sethostid(long hostid); }
28884059Swpaul144	AUE_GETRLIMIT	COMPAT	{ int getrlimit(u_int which, struct \
28984059Swpaul				    orlimit *rlp); }
29084059Swpaul145	AUE_SETRLIMIT	COMPAT	{ int setrlimit(u_int which, \
29184059Swpaul				    struct orlimit *rlp); }
29284059Swpaul146	AUE_KILLPG	COMPAT	{ int killpg(int pgid, int signum); }
29384059Swpaul147	AUE_SETSID	STD	{ int setsid(void); }
29484059Swpaul148	AUE_QUOTACTL	STD	{ int quotactl(char *path, int cmd, int uid, \
29584059Swpaul				    caddr_t arg); }
29684059Swpaul149	AUE_O_QUOTA	COMPAT	{ int quota(void); }
29784059Swpaul150	AUE_GETSOCKNAME	CPT_NOA	{ int getsockname(int fdec, \
29884059Swpaul				    caddr_t asa, int *alen); } getsockname \
29984059Swpaul				    getsockname_args int
30084059Swpaul
30184059Swpaul; Syscalls 151-180 inclusive are reserved for vendor-specific
30284059Swpaul; system calls.  (This includes various calls added for compatibity
30384059Swpaul; with other Unix variants.)
30484059Swpaul; Some of these calls are now supported by BSD...
30584059Swpaul151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
30684059Swpaul152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
30784059Swpaul153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
30884059Swpaul; 154 is initialised by the NLM code, if present.
30984059Swpaul154	AUE_NULL	NOSTD	{ int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
31084059Swpaul; 155 is initialized by the NFS code, if present.
31184059Swpaul155	AUE_NFS_SVC	NOSTD	{ int nfssvc(int flag, caddr_t argp); }
31284059Swpaul156	AUE_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, char *buf, \
31384059Swpaul				    u_int count, long *basep); }
31484059Swpaul157	AUE_STATFS	COMPAT4	{ int statfs(char *path, \
31584059Swpaul				    struct ostatfs *buf); }
31684059Swpaul158	AUE_FSTATFS	COMPAT4	{ int fstatfs(int fd, \
31784059Swpaul				    struct ostatfs *buf); }
31884059Swpaul159	AUE_NULL	UNIMPL	nosys
31984059Swpaul160	AUE_LGETFH	STD	{ int lgetfh(char *fname, \
32084059Swpaul				    struct fhandle *fhp); }
32184059Swpaul161	AUE_NFS_GETFH	STD	{ int getfh(char *fname, \
32284059Swpaul				    struct fhandle *fhp); }
32384059Swpaul162	AUE_SYSCTL	STD	{ int getdomainname(char *domainname, \
32484059Swpaul				    int len); }
32584059Swpaul163	AUE_SYSCTL	STD	{ int setdomainname(char *domainname, \
32684059Swpaul				    int len); }
32784059Swpaul164	AUE_NULL	STD	{ int uname(struct utsname *name); }
32884059Swpaul165	AUE_SYSARCH	STD	{ int sysarch(int op, char *parms); }
32984059Swpaul166	AUE_RTPRIO	STD	{ int rtprio(int function, pid_t pid, \
33084059Swpaul				    struct rtprio *rtp); }
33184059Swpaul167	AUE_NULL	UNIMPL	nosys
33284059Swpaul168	AUE_NULL	UNIMPL	nosys
33384059Swpaul; 169 is initialized by the SYSVSEM code if present or loaded
33484059Swpaul169	AUE_SEMSYS	NOSTD	{ int semsys(int which, int a2, int a3, \
33584059Swpaul				    int a4, int a5); }
33684059Swpaul; XXX should be	{ int semsys(int which, ...); }
33784059Swpaul; 170 is initialized by the SYSVMSG code if present or loaded
33884059Swpaul170	AUE_MSGSYS	NOSTD	{ int msgsys(int which, int a2, int a3, \
33984059Swpaul				    int a4, int a5, int a6); }
34084059Swpaul; XXX should be	{ int msgsys(int which, ...); }
34184059Swpaul; 171 is initialized by the SYSVSHM code if present or loaded
34284059Swpaul171	AUE_SHMSYS	NOSTD	{ int shmsys(int which, int a2, int a3, \
34384059Swpaul				    int a4); }
34484059Swpaul; XXX should be	{ int shmsys(int which, ...); }
34584059Swpaul172	AUE_NULL	UNIMPL	nosys
34684059Swpaul173	AUE_PREAD	STD	{ ssize_t freebsd6_pread(int fd, void *buf, \
34784059Swpaul				    size_t nbyte, int pad, off_t offset); }
34884059Swpaul174	AUE_PWRITE	STD	{ ssize_t freebsd6_pwrite(int fd, \
34984059Swpaul				    const void *buf, \
35084059Swpaul				    size_t nbyte, int pad, off_t offset); }
35184059Swpaul175	AUE_NULL	STD	{ int setfib(int fibnum); }
35284059Swpaul176	AUE_NTP_ADJTIME	STD	{ int ntp_adjtime(struct timex *tp); }
35384059Swpaul177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
35484059Swpaul178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
35584059Swpaul179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
35684059Swpaul180	AUE_NULL	UNIMPL	nosys
35784059Swpaul
35884059Swpaul; Syscalls 181-199 are used by/reserved for BSD
35984059Swpaul181	AUE_SETGID	STD	{ int setgid(gid_t gid); }
36084059Swpaul182	AUE_SETEGID	STD	{ int setegid(gid_t egid); }
36184059Swpaul183	AUE_SETEUID	STD	{ int seteuid(uid_t euid); }
36284059Swpaul184	AUE_NULL	UNIMPL	lfs_bmapv
36384059Swpaul185	AUE_NULL	UNIMPL	lfs_markv
36484059Swpaul186	AUE_NULL	UNIMPL	lfs_segclean
36584059Swpaul187	AUE_NULL	UNIMPL	lfs_segwait
36684059Swpaul188	AUE_STAT	STD	{ int stat(char *path, struct stat *ub); }
36784059Swpaul189	AUE_FSTAT	STD	{ int fstat(int fd, struct stat *sb); }
36884059Swpaul190	AUE_LSTAT	STD	{ int lstat(char *path, struct stat *ub); }
36984059Swpaul191	AUE_PATHCONF	STD	{ int pathconf(char *path, int name); }
37084059Swpaul192	AUE_FPATHCONF	STD	{ int fpathconf(int fd, int name); }
37184059Swpaul193	AUE_NULL	UNIMPL	nosys
37284059Swpaul194	AUE_GETRLIMIT	STD	{ int getrlimit(u_int which, \
37384059Swpaul				    struct rlimit *rlp); } getrlimit \
37484059Swpaul				    __getrlimit_args int
37584059Swpaul195	AUE_SETRLIMIT	STD	{ int setrlimit(u_int which, \
37684059Swpaul				    struct rlimit *rlp); } setrlimit \
37784059Swpaul				    __setrlimit_args int
37884059Swpaul196	AUE_GETDIRENTRIES	STD	{ int getdirentries(int fd, char *buf, \
37984059Swpaul				    u_int count, long *basep); }
38084059Swpaul197	AUE_MMAP	STD	{ caddr_t freebsd6_mmap(caddr_t addr, \
38184059Swpaul				    size_t len, int prot, int flags, int fd, \
38284059Swpaul				    int pad, off_t pos); }
38384059Swpaul198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
38484059Swpaul				    __syscall_args int
38584059Swpaul199	AUE_LSEEK	STD	{ off_t freebsd6_lseek(int fd, int pad, \
38684059Swpaul				    off_t offset, int whence); }
38784059Swpaul200	AUE_TRUNCATE	STD	{ int freebsd6_truncate(char *path, int pad, \
38884059Swpaul				    off_t length); }
38984059Swpaul201	AUE_FTRUNCATE	STD	{ int freebsd6_ftruncate(int fd, int pad, \
39084059Swpaul				    off_t length); }
39184059Swpaul202	AUE_SYSCTL	STD	{ int __sysctl(int *name, u_int namelen, \
39284059Swpaul				    void *old, size_t *oldlenp, void *new, \
39384059Swpaul				    size_t newlen); } __sysctl sysctl_args int
39484059Swpaul203	AUE_MLOCK	STD	{ int mlock(const void *addr, size_t len); }
39584059Swpaul204	AUE_MUNLOCK	STD	{ int munlock(const void *addr, size_t len); }
39684059Swpaul205	AUE_UNDELETE	STD	{ int undelete(char *path); }
39784059Swpaul206	AUE_FUTIMES	STD	{ int futimes(int fd, struct timeval *tptr); }
39884059Swpaul207	AUE_GETPGID	STD	{ int getpgid(pid_t pid); }
39984059Swpaul208	AUE_NULL	UNIMPL	newreboot (NetBSD)
40084059Swpaul209	AUE_POLL	STD	{ int poll(struct pollfd *fds, u_int nfds, \
40184059Swpaul				    int timeout); }
40284059Swpaul
40384059Swpaul;
40484059Swpaul; The following are reserved for loadable syscalls
40584059Swpaul;
40684059Swpaul210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
40784059Swpaul211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
40884059Swpaul212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
40984059Swpaul213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41084059Swpaul214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41184059Swpaul215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41284059Swpaul216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41384059Swpaul217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41484059Swpaul218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41584059Swpaul219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41684059Swpaul
41784059Swpaul;
41884059Swpaul; The following were introduced with NetBSD/4.4Lite-2
41984059Swpaul220	AUE_SEMCTL	NOSTD	{ int __semctl(int semid, int semnum, \
42084059Swpaul				    int cmd, union semun *arg); }
42184059Swpaul221	AUE_SEMGET	NOSTD	{ int semget(key_t key, int nsems, \
42284059Swpaul				    int semflg); }
42384059Swpaul222	AUE_SEMOP	NOSTD	{ int semop(int semid, struct sembuf *sops, \
42484059Swpaul				    size_t nsops); }
42584059Swpaul223	AUE_NULL	UNIMPL	semconfig
42684059Swpaul224	AUE_MSGCTL	NOSTD	{ int msgctl(int msqid, int cmd, \
42784059Swpaul				    struct msqid_ds *buf); }
42884059Swpaul225	AUE_MSGGET	NOSTD	{ int msgget(key_t key, int msgflg); }
42984059Swpaul226	AUE_MSGSND	NOSTD	{ int msgsnd(int msqid, const void *msgp, \
43084059Swpaul				    size_t msgsz, int msgflg); }
43184059Swpaul227	AUE_MSGRCV	NOSTD	{ int msgrcv(int msqid, void *msgp, \
43284059Swpaul				    size_t msgsz, long msgtyp, int msgflg); }
43384059Swpaul228	AUE_SHMAT	NOSTD	{ int shmat(int shmid, const void *shmaddr, \
43484059Swpaul				    int shmflg); }
43584059Swpaul229	AUE_SHMCTL	NOSTD	{ int shmctl(int shmid, int cmd, \
43684059Swpaul				    struct shmid_ds *buf); }
43784059Swpaul230	AUE_SHMDT	NOSTD	{ int shmdt(const void *shmaddr); }
43884059Swpaul231	AUE_SHMGET	NOSTD	{ int shmget(key_t key, size_t size, \
43984059Swpaul				    int shmflg); }
44084059Swpaul;
44184059Swpaul232	AUE_NULL	STD	{ int clock_gettime(clockid_t clock_id, \
44284059Swpaul				    struct timespec *tp); }
44384059Swpaul233	AUE_CLOCK_SETTIME	STD	{ int clock_settime( \
44484059Swpaul				    clockid_t clock_id, \
44584059Swpaul				    const struct timespec *tp); }
44684059Swpaul234	AUE_NULL	STD	{ int clock_getres(clockid_t clock_id, \
44784059Swpaul				    struct timespec *tp); }
44884059Swpaul235	AUE_NULL	STD	{ int ktimer_create(clockid_t clock_id, \
44984059Swpaul				    struct sigevent *evp, int *timerid); }
45084059Swpaul236	AUE_NULL	STD	{ int ktimer_delete(int timerid); }
45184059Swpaul237	AUE_NULL	STD	{ int ktimer_settime(int timerid, int flags, \
45284059Swpaul				    const struct itimerspec *value, \
45384059Swpaul				    struct itimerspec *ovalue); }
45484059Swpaul238	AUE_NULL	STD	{ int ktimer_gettime(int timerid, struct \
45584059Swpaul				    itimerspec *value); }
45684059Swpaul239	AUE_NULL	STD	{ int ktimer_getoverrun(int timerid); }
45784059Swpaul240	AUE_NULL	STD	{ int nanosleep(const struct timespec *rqtp, \
45884059Swpaul				    struct timespec *rmtp); }
45984059Swpaul241	AUE_NULL	UNIMPL	nosys
46084059Swpaul242	AUE_NULL	UNIMPL	nosys
46184059Swpaul243	AUE_NULL	UNIMPL	nosys
46284059Swpaul244	AUE_NULL	UNIMPL	nosys
46384059Swpaul245	AUE_NULL	UNIMPL	nosys
46484059Swpaul246	AUE_NULL	UNIMPL	nosys
46584059Swpaul247	AUE_NULL	UNIMPL	nosys
46684059Swpaul248	AUE_NULL	STD	{ int ntp_gettime(struct ntptimeval *ntvp); }
46784059Swpaul249	AUE_NULL	UNIMPL	nosys
46884059Swpaul; syscall numbers initially used in OpenBSD
46984059Swpaul250	AUE_MINHERIT	STD	{ int minherit(void *addr, size_t len, \
47084059Swpaul				    int inherit); }
47184059Swpaul251	AUE_RFORK	STD	{ int rfork(int flags); }
47284059Swpaul252	AUE_POLL	STD	{ int openbsd_poll(struct pollfd *fds, \
47384059Swpaul				    u_int nfds, int timeout); }
47484059Swpaul253	AUE_ISSETUGID	STD	{ int issetugid(void); }
47584059Swpaul254	AUE_LCHOWN	STD	{ int lchown(char *path, int uid, int gid); }
47684059Swpaul255	AUE_NULL	NOSTD	{ int aio_read(struct aiocb *aiocbp); }
47784059Swpaul256	AUE_NULL	NOSTD	{ int aio_write(struct aiocb *aiocbp); }
47884059Swpaul257	AUE_NULL	NOSTD	{ int lio_listio(int mode, \
47984059Swpaul				    struct aiocb * const *acb_list, \
48084059Swpaul				    int nent, struct sigevent *sig); }
48184059Swpaul258	AUE_NULL	UNIMPL	nosys
48284059Swpaul259	AUE_NULL	UNIMPL	nosys
48384059Swpaul260	AUE_NULL	UNIMPL	nosys
48484059Swpaul261	AUE_NULL	UNIMPL	nosys
48584059Swpaul262	AUE_NULL	UNIMPL	nosys
48684059Swpaul263	AUE_NULL	UNIMPL	nosys
48784059Swpaul264	AUE_NULL	UNIMPL	nosys
48884059Swpaul265	AUE_NULL	UNIMPL	nosys
48984059Swpaul266	AUE_NULL	UNIMPL	nosys
49084059Swpaul267	AUE_NULL	UNIMPL	nosys
49184059Swpaul268	AUE_NULL	UNIMPL	nosys
49284059Swpaul269	AUE_NULL	UNIMPL	nosys
49384059Swpaul270	AUE_NULL	UNIMPL	nosys
49484059Swpaul271	AUE_NULL	UNIMPL	nosys
49584059Swpaul272	AUE_O_GETDENTS	STD	{ int getdents(int fd, char *buf, \
49684059Swpaul				    size_t count); }
49784059Swpaul273	AUE_NULL	UNIMPL	nosys
49884059Swpaul274	AUE_LCHMOD	STD	{ int lchmod(char *path, mode_t mode); }
49984059Swpaul275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
50084059Swpaul				    gid_t gid); } netbsd_lchown lchown_args \
50184059Swpaul				    int
50284059Swpaul276	AUE_LUTIMES	STD	{ int lutimes(char *path, \
50384059Swpaul				    struct timeval *tptr); }
50484059Swpaul277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
50584059Swpaul				    int flags); } netbsd_msync msync_args int
50684059Swpaul278	AUE_STAT	STD	{ int nstat(char *path, struct nstat *ub); }
50784059Swpaul279	AUE_FSTAT	STD	{ int nfstat(int fd, struct nstat *sb); }
50884059Swpaul280	AUE_LSTAT	STD	{ int nlstat(char *path, struct nstat *ub); }
50984059Swpaul281	AUE_NULL	UNIMPL	nosys
51084059Swpaul282	AUE_NULL	UNIMPL	nosys
51184059Swpaul283	AUE_NULL	UNIMPL	nosys
51284059Swpaul284	AUE_NULL	UNIMPL	nosys
51384059Swpaul285	AUE_NULL	UNIMPL	nosys
51484059Swpaul286	AUE_NULL	UNIMPL	nosys
51584059Swpaul287	AUE_NULL	UNIMPL	nosys
51684059Swpaul288	AUE_NULL	UNIMPL	nosys
51784059Swpaul; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
51884059Swpaul289	AUE_PREADV	STD	{ ssize_t preadv(int fd, struct iovec *iovp, \
51984059Swpaul					u_int iovcnt, off_t offset); }
52084059Swpaul290	AUE_PWRITEV	STD	{ ssize_t pwritev(int fd, struct iovec *iovp, \
52184059Swpaul					u_int iovcnt, off_t offset); }
52284059Swpaul291	AUE_NULL	UNIMPL	nosys
52384059Swpaul292	AUE_NULL	UNIMPL	nosys
52484059Swpaul293	AUE_NULL	UNIMPL	nosys
52584059Swpaul294	AUE_NULL	UNIMPL	nosys
52684059Swpaul295	AUE_NULL	UNIMPL	nosys
52784059Swpaul296	AUE_NULL	UNIMPL	nosys
52884059Swpaul; XXX 297 is 300 in NetBSD 
52984059Swpaul297	AUE_FHSTATFS	COMPAT4	{ int fhstatfs( \
53084059Swpaul				    const struct fhandle *u_fhp, \
53184059Swpaul				    struct ostatfs *buf); }
53284059Swpaul298	AUE_FHOPEN	STD	{ int fhopen(const struct fhandle *u_fhp, \
53384059Swpaul				    int flags); }
53484059Swpaul299	AUE_FHSTAT	STD	{ int fhstat(const struct fhandle *u_fhp, \
53584059Swpaul				    struct stat *sb); }
53684059Swpaul; syscall numbers for FreeBSD
53784059Swpaul300	AUE_NULL	STD	{ int modnext(int modid); }
53884059Swpaul301	AUE_NULL	STD	{ int modstat(int modid, \
53984059Swpaul				    struct module_stat *stat); }
54084059Swpaul302	AUE_NULL	STD	{ int modfnext(int modid); }
54184059Swpaul303	AUE_NULL	STD	{ int modfind(const char *name); }
54284059Swpaul304	AUE_MODLOAD	STD	{ int kldload(const char *file); }
54384059Swpaul305	AUE_MODUNLOAD	STD	{ int kldunload(int fileid); }
54484059Swpaul306	AUE_NULL	STD	{ int kldfind(const char *file); }
54584059Swpaul307	AUE_NULL	STD	{ int kldnext(int fileid); }
54684059Swpaul308	AUE_NULL	STD	{ int kldstat(int fileid, struct \
54784059Swpaul				    kld_file_stat* stat); }
54884059Swpaul309	AUE_NULL	STD	{ int kldfirstmod(int fileid); }
54984059Swpaul310	AUE_GETSID	STD	{ int getsid(pid_t pid); }
55084059Swpaul311	AUE_SETRESUID	STD	{ int setresuid(uid_t ruid, uid_t euid, \
55184059Swpaul				    uid_t suid); }
55284059Swpaul312	AUE_SETRESGID	STD	{ int setresgid(gid_t rgid, gid_t egid, \
55384059Swpaul				    gid_t sgid); }
55484059Swpaul313	AUE_NULL	OBSOL	signanosleep
55584059Swpaul314	AUE_NULL	NOSTD	{ int aio_return(struct aiocb *aiocbp); }
55684059Swpaul315	AUE_NULL	NOSTD	{ int aio_suspend( \
55784059Swpaul				    struct aiocb * const * aiocbp, int nent, \
55884059Swpaul				    const struct timespec *timeout); }
55984059Swpaul316	AUE_NULL	NOSTD	{ int aio_cancel(int fd, \
56084059Swpaul				    struct aiocb *aiocbp); }
56184059Swpaul317	AUE_NULL	NOSTD	{ int aio_error(struct aiocb *aiocbp); }
56284059Swpaul318	AUE_NULL	NOSTD	{ int oaio_read(struct oaiocb *aiocbp); }
56384059Swpaul319	AUE_NULL	NOSTD	{ int oaio_write(struct oaiocb *aiocbp); }
56484059Swpaul320	AUE_NULL	NOSTD	{ int olio_listio(int mode, \
56584059Swpaul				    struct oaiocb * const *acb_list, \
56684059Swpaul				    int nent, struct osigevent *sig); }
56784059Swpaul321	AUE_NULL	STD	{ int yield(void); }
56884059Swpaul322	AUE_NULL	OBSOL	thr_sleep
56984059Swpaul323	AUE_NULL	OBSOL	thr_wakeup
57084059Swpaul324	AUE_MLOCKALL	STD	{ int mlockall(int how); }
57184059Swpaul325	AUE_MUNLOCKALL	STD	{ int munlockall(void); }
57284059Swpaul326	AUE_GETCWD	STD	{ int __getcwd(u_char *buf, u_int buflen); }
57384059Swpaul
57484059Swpaul327	AUE_NULL	STD	{ int sched_setparam (pid_t pid, \
57584059Swpaul				    const struct sched_param *param); }
57684059Swpaul328	AUE_NULL	STD	{ int sched_getparam (pid_t pid, struct \
57784059Swpaul				    sched_param *param); }
57884059Swpaul
57984059Swpaul329	AUE_NULL	STD	{ int sched_setscheduler (pid_t pid, int \
58084059Swpaul				    policy, const struct sched_param \
58184059Swpaul				    *param); }
58284059Swpaul330	AUE_NULL	STD	{ int sched_getscheduler (pid_t pid); }
58384059Swpaul
58484059Swpaul331	AUE_NULL	STD	{ int sched_yield (void); }
58584059Swpaul332	AUE_NULL	STD	{ int sched_get_priority_max (int policy); }
58684059Swpaul333	AUE_NULL	STD	{ int sched_get_priority_min (int policy); }
58784059Swpaul334	AUE_NULL	STD	{ int sched_rr_get_interval (pid_t pid, \
58884059Swpaul				    struct timespec *interval); }
58984059Swpaul335	AUE_NULL	STD	{ int utrace(const void *addr, size_t len); }
59084059Swpaul336	AUE_SENDFILE	COMPAT4	{ int sendfile(int fd, int s, \
59184059Swpaul				    off_t offset, size_t nbytes, \
59284059Swpaul				    struct sf_hdtr *hdtr, off_t *sbytes, \
59384059Swpaul				    int flags); }
59484059Swpaul337	AUE_NULL	STD	{ int kldsym(int fileid, int cmd, \
59584059Swpaul				    void *data); }
59684059Swpaul338	AUE_JAIL	STD	{ int jail(struct jail *jail); }
59784059Swpaul339	AUE_NULL	UNIMPL	pioctl
59884059Swpaul340	AUE_SIGPROCMASK	STD	{ int sigprocmask(int how, \
59984059Swpaul				    const sigset_t *set, sigset_t *oset); }
60084059Swpaul341	AUE_SIGSUSPEND	STD	{ int sigsuspend(const sigset_t *sigmask); }
60184059Swpaul342	AUE_SIGACTION	COMPAT4	{ int sigaction(int sig, const \
60284059Swpaul				    struct sigaction *act, \
60384059Swpaul				    struct sigaction *oact); }
60484059Swpaul343	AUE_SIGPENDING	STD	{ int sigpending(sigset_t *set); }
60584059Swpaul344	AUE_SIGRETURN	COMPAT4	{ int sigreturn( \
60684059Swpaul				    const struct ucontext4 *sigcntxp); }
60784059Swpaul345	AUE_SIGWAIT	STD	{ int sigtimedwait(const sigset_t *set, \
60884059Swpaul				    siginfo_t *info, \
60984059Swpaul				    const struct timespec *timeout); }
61084059Swpaul346	AUE_NULL	STD	{ int sigwaitinfo(const sigset_t *set, \
61184059Swpaul				    siginfo_t *info); }
61284059Swpaul347	AUE_NULL	STD	{ int __acl_get_file(const char *path, \
61384059Swpaul				    acl_type_t type, struct acl *aclp); }
61484059Swpaul348	AUE_NULL	STD	{ int __acl_set_file(const char *path, \
61584059Swpaul				    acl_type_t type, struct acl *aclp); }
61684059Swpaul349	AUE_NULL	STD	{ int __acl_get_fd(int filedes, \
61784059Swpaul				    acl_type_t type, struct acl *aclp); }
61884059Swpaul350	AUE_NULL	STD	{ int __acl_set_fd(int filedes, \
61984059Swpaul				    acl_type_t type, struct acl *aclp); }
62084059Swpaul351	AUE_NULL	STD	{ int __acl_delete_file(const char *path, \
62184059Swpaul				    acl_type_t type); }
62284059Swpaul352	AUE_NULL	STD	{ int __acl_delete_fd(int filedes, \
62384059Swpaul				    acl_type_t type); }
62484059Swpaul353	AUE_NULL	STD	{ int __acl_aclcheck_file(const char *path, \
62584059Swpaul				    acl_type_t type, struct acl *aclp); }
62684059Swpaul354	AUE_NULL	STD	{ int __acl_aclcheck_fd(int filedes, \
62784059Swpaul				    acl_type_t type, struct acl *aclp); }
62884059Swpaul355	AUE_EXTATTRCTL	STD	{ int extattrctl(const char *path, int cmd, \
62984059Swpaul				    const char *filename, int attrnamespace, \
63084059Swpaul				    const char *attrname); }
63184059Swpaul356	AUE_EXTATTR_SET_FILE	STD	{ int extattr_set_file( \
63284059Swpaul				    const char *path, int attrnamespace, \
63384059Swpaul				    const char *attrname, void *data, \
63484059Swpaul				    size_t nbytes); }
63584059Swpaul357	AUE_EXTATTR_GET_FILE	STD	{ ssize_t extattr_get_file( \
63684059Swpaul				    const char *path, int attrnamespace, \
63784059Swpaul				    const char *attrname, void *data, \
63884059Swpaul				    size_t nbytes); }
63984059Swpaul358	AUE_EXTATTR_DELETE_FILE	STD	{ int extattr_delete_file(const char *path, \
64084059Swpaul				    int attrnamespace, \
64184059Swpaul				    const char *attrname); }
64284059Swpaul359	AUE_NULL	NOSTD	{ int aio_waitcomplete( \
64384059Swpaul				    struct aiocb **aiocbp, \
64484059Swpaul				    struct timespec *timeout); }
64584059Swpaul360	AUE_GETRESUID	STD	{ int getresuid(uid_t *ruid, uid_t *euid, \
64684059Swpaul				    uid_t *suid); }
64784059Swpaul361	AUE_GETRESGID	STD	{ int getresgid(gid_t *rgid, gid_t *egid, \
64884059Swpaul				    gid_t *sgid); }
64984059Swpaul362	AUE_KQUEUE	STD	{ int kqueue(void); }
65084059Swpaul363	AUE_NULL	STD	{ int kevent(int fd, \
65184059Swpaul				    struct kevent *changelist, int nchanges, \
65284059Swpaul				    struct kevent *eventlist, int nevents, \
65384059Swpaul				    const struct timespec *timeout); }
65484059Swpaul364	AUE_NULL	UNIMPL	__cap_get_proc
65584059Swpaul365	AUE_NULL	UNIMPL	__cap_set_proc
65684059Swpaul366	AUE_NULL	UNIMPL	__cap_get_fd
65784059Swpaul367	AUE_NULL	UNIMPL	__cap_get_file
65884059Swpaul368	AUE_NULL	UNIMPL	__cap_set_fd
65984059Swpaul369	AUE_NULL	UNIMPL	__cap_set_file
66084059Swpaul370	AUE_NULL	UNIMPL	nosys
66184059Swpaul371	AUE_EXTATTR_SET_FD	STD	{ int extattr_set_fd(int fd, \
66284059Swpaul				    int attrnamespace, const char *attrname, \
66384059Swpaul				    void *data, size_t nbytes); }
66484059Swpaul372	AUE_EXTATTR_GET_FD	STD	{ ssize_t extattr_get_fd(int fd, \
66584059Swpaul				    int attrnamespace, const char *attrname, \
66684059Swpaul				    void *data, size_t nbytes); }
66784059Swpaul373	AUE_EXTATTR_DELETE_FD	STD	{ int extattr_delete_fd(int fd, \
66884059Swpaul				    int attrnamespace, \
66984059Swpaul				    const char *attrname); }
67084059Swpaul374	AUE_NULL	STD	{ int __setugid(int flag); }
67184059Swpaul375	AUE_NULL	NOIMPL	{ int nfsclnt(int flag, caddr_t argp); }
67284059Swpaul376	AUE_EACCESS	STD	{ int eaccess(char *path, int flags); }
67384059Swpaul377	AUE_NULL	UNIMPL	afs_syscall
67484059Swpaul378	AUE_NMOUNT	STD	{ int nmount(struct iovec *iovp, \
67584059Swpaul				    unsigned int iovcnt, int flags); }
67684059Swpaul379	AUE_NULL	UNIMPL	kse_exit
67784059Swpaul380	AUE_NULL	UNIMPL	kse_wakeup
67884059Swpaul381	AUE_NULL	UNIMPL	kse_create
67984059Swpaul382	AUE_NULL	UNIMPL	kse_thr_interrupt
68084059Swpaul383	AUE_NULL	UNIMPL	kse_release
68184059Swpaul384	AUE_NULL	STD	{ int __mac_get_proc(struct mac *mac_p); }
68284059Swpaul385	AUE_NULL	STD	{ int __mac_set_proc(struct mac *mac_p); }
68384059Swpaul386	AUE_NULL	STD	{ int __mac_get_fd(int fd, \
68484059Swpaul				    struct mac *mac_p); }
68584059Swpaul387	AUE_NULL	STD	{ int __mac_get_file(const char *path_p, \
68684059Swpaul				    struct mac *mac_p); }
68784059Swpaul388	AUE_NULL	STD	{ int __mac_set_fd(int fd, \
68884059Swpaul				    struct mac *mac_p); }
68984059Swpaul389	AUE_NULL	STD	{ int __mac_set_file(const char *path_p, \
69084059Swpaul				    struct mac *mac_p); }
69184059Swpaul390	AUE_NULL	STD	{ int kenv(int what, const char *name, \
69284059Swpaul				    char *value, int len); }
69384059Swpaul391	AUE_LCHFLAGS	STD	{ int lchflags(const char *path, int flags); }
69484059Swpaul392	AUE_NULL	STD	{ int uuidgen(struct uuid *store, \
69584059Swpaul				    int count); }
69684059Swpaul393	AUE_SENDFILE	STD	{ int sendfile(int fd, int s, off_t offset, \
69784059Swpaul				    size_t nbytes, struct sf_hdtr *hdtr, \
69884059Swpaul				    off_t *sbytes, int flags); }
69984059Swpaul394	AUE_NULL	STD	{ int mac_syscall(const char *policy, \
70084059Swpaul				    int call, void *arg); }
70184059Swpaul395	AUE_GETFSSTAT	STD	{ int getfsstat(struct statfs *buf, \
70284059Swpaul				    long bufsize, int flags); }
70384059Swpaul396	AUE_STATFS	STD	{ int statfs(char *path, \
70484059Swpaul				    struct statfs *buf); }
70584059Swpaul397	AUE_FSTATFS	STD	{ int fstatfs(int fd, struct statfs *buf); }
70684059Swpaul398	AUE_FHSTATFS	STD	{ int fhstatfs(const struct fhandle *u_fhp, \
70784059Swpaul				    struct statfs *buf); }
70884059Swpaul399	AUE_NULL	UNIMPL	nosys
70984059Swpaul400	AUE_NULL	NOSTD	{ int ksem_close(semid_t id); }
71084059Swpaul401	AUE_NULL	NOSTD	{ int ksem_post(semid_t id); }
71184059Swpaul402	AUE_NULL	NOSTD	{ int ksem_wait(semid_t id); }
71284059Swpaul403	AUE_NULL	NOSTD	{ int ksem_trywait(semid_t id); }
71384059Swpaul404	AUE_NULL	NOSTD	{ int ksem_init(semid_t *idp, \
71484059Swpaul				    unsigned int value); }
71584059Swpaul405	AUE_NULL	NOSTD	{ int ksem_open(semid_t *idp, \
71684059Swpaul				    const char *name, int oflag, \
71784059Swpaul				    mode_t mode, unsigned int value); }
71884059Swpaul406	AUE_NULL	NOSTD	{ int ksem_unlink(const char *name); }
71984059Swpaul407	AUE_NULL	NOSTD	{ int ksem_getvalue(semid_t id, int *val); }
72084059Swpaul408	AUE_NULL	NOSTD	{ int ksem_destroy(semid_t id); }
72184059Swpaul409	AUE_NULL	STD	{ int __mac_get_pid(pid_t pid, \
72284059Swpaul				    struct mac *mac_p); }
72384059Swpaul410	AUE_NULL	STD	{ int __mac_get_link(const char *path_p, \
72484059Swpaul				    struct mac *mac_p); }
72584059Swpaul411	AUE_NULL	STD	{ int __mac_set_link(const char *path_p, \
72684059Swpaul				    struct mac *mac_p); }
72784059Swpaul412	AUE_EXTATTR_SET_LINK	STD	{ int extattr_set_link( \
72884059Swpaul				    const char *path, int attrnamespace, \
72984059Swpaul				    const char *attrname, void *data, \
73084059Swpaul				    size_t nbytes); }
73184059Swpaul413	AUE_EXTATTR_GET_LINK	STD	{ ssize_t extattr_get_link( \
73284059Swpaul				    const char *path, int attrnamespace, \
73384059Swpaul				    const char *attrname, void *data, \
73484059Swpaul				    size_t nbytes); }
73584059Swpaul414	AUE_EXTATTR_DELETE_LINK	STD	{ int extattr_delete_link( \
73684059Swpaul				    const char *path, int attrnamespace, \
73784059Swpaul				    const char *attrname); }
73884059Swpaul415	AUE_NULL	STD	{ int __mac_execve(char *fname, char **argv, \
73984059Swpaul				    char **envv, struct mac *mac_p); }
74084059Swpaul416	AUE_SIGACTION	STD	{ int sigaction(int sig, \
74184059Swpaul				    const struct sigaction *act, \
74284059Swpaul				    struct sigaction *oact); }
74384059Swpaul417	AUE_SIGRETURN	STD	{ int sigreturn( \
74484059Swpaul				    const struct __ucontext *sigcntxp); }
74584059Swpaul418	AUE_NULL	UNIMPL	__xstat
74684059Swpaul419	AUE_NULL	UNIMPL	__xfstat
74784059Swpaul420	AUE_NULL	UNIMPL	__xlstat
74884059Swpaul421	AUE_NULL	STD	{ int getcontext(struct __ucontext *ucp); }
74984059Swpaul422	AUE_NULL	STD	{ int setcontext( \
75084059Swpaul				    const struct __ucontext *ucp); }
75184059Swpaul423	AUE_NULL	STD	{ int swapcontext(struct __ucontext *oucp, \
75284059Swpaul				    const struct __ucontext *ucp); }
75384059Swpaul424	AUE_SWAPOFF	STD	{ int swapoff(const char *name); }
75484059Swpaul425	AUE_NULL	STD	{ int __acl_get_link(const char *path, \
75584059Swpaul				    acl_type_t type, struct acl *aclp); }
75684059Swpaul426	AUE_NULL	STD	{ int __acl_set_link(const char *path, \
75784059Swpaul				    acl_type_t type, struct acl *aclp); }
75884059Swpaul427	AUE_NULL	STD	{ int __acl_delete_link(const char *path, \
75984059Swpaul				    acl_type_t type); }
76084059Swpaul428	AUE_NULL	STD	{ int __acl_aclcheck_link(const char *path, \
76184059Swpaul				    acl_type_t type, struct acl *aclp); }
76284059Swpaul429	AUE_SIGWAIT	STD	{ int sigwait(const sigset_t *set, \
76384059Swpaul				    int *sig); }
76484059Swpaul430	AUE_NULL	STD	{ int thr_create(ucontext_t *ctx, long *id, \
76584059Swpaul				    int flags); }
76684059Swpaul431	AUE_NULL	STD	{ void thr_exit(long *state); }
76784059Swpaul432	AUE_NULL	STD	{ int thr_self(long *id); }
76884059Swpaul433	AUE_NULL	STD	{ int thr_kill(long id, int sig); }
76984059Swpaul434	AUE_NULL	STD	{ int _umtx_lock(struct umtx *umtx); }
77084059Swpaul435	AUE_NULL	STD	{ int _umtx_unlock(struct umtx *umtx); }
77184059Swpaul436	AUE_NULL	STD	{ int jail_attach(int jid); }
77284059Swpaul437	AUE_EXTATTR_LIST_FD	STD	{ ssize_t extattr_list_fd(int fd, \
77384059Swpaul				    int attrnamespace, void *data, \
77484059Swpaul				    size_t nbytes); }
77584059Swpaul438	AUE_EXTATTR_LIST_FILE	STD	{ ssize_t extattr_list_file( \
77684059Swpaul				    const char *path, int attrnamespace, \
77784059Swpaul				    void *data, size_t nbytes); }
77884059Swpaul439	AUE_EXTATTR_LIST_LINK	STD	{ ssize_t extattr_list_link( \
77984059Swpaul				    const char *path, int attrnamespace, \
78084059Swpaul				    void *data, size_t nbytes); }
78184059Swpaul440	AUE_NULL	UNIMPL	kse_switchin
78284059Swpaul441	AUE_NULL	NOSTD	{ int ksem_timedwait(semid_t id, \
78384059Swpaul				    const struct timespec *abstime); }
78484059Swpaul442	AUE_NULL	STD	{ int thr_suspend( \
78584059Swpaul				    const struct timespec *timeout); }
78684059Swpaul443	AUE_NULL	STD	{ int thr_wake(long id); }
78784059Swpaul444	AUE_MODUNLOAD	STD	{ int kldunloadf(int fileid, int flags); }
78884059Swpaul445	AUE_AUDIT	STD	{ int audit(const void *record, \
78984059Swpaul				    u_int length); }
79084059Swpaul446	AUE_AUDITON	STD	{ int auditon(int cmd, void *data, \
79184059Swpaul				    u_int length); }
79284059Swpaul447	AUE_GETAUID	STD	{ int getauid(uid_t *auid); }
79384059Swpaul448	AUE_SETAUID	STD	{ int setauid(uid_t *auid); }
79484059Swpaul449	AUE_GETAUDIT	STD	{ int getaudit(struct auditinfo *auditinfo); }
79584059Swpaul450	AUE_SETAUDIT	STD	{ int setaudit(struct auditinfo *auditinfo); }
79684059Swpaul451	AUE_GETAUDIT_ADDR	STD	{ int getaudit_addr( \
79784059Swpaul				    struct auditinfo_addr *auditinfo_addr, \
79884059Swpaul				    u_int length); }
79984059Swpaul452	AUE_SETAUDIT_ADDR	STD	{ int setaudit_addr( \
80084059Swpaul				    struct auditinfo_addr *auditinfo_addr, \
80184059Swpaul				    u_int length); }
80284059Swpaul453	AUE_AUDITCTL	STD	{ int auditctl(char *path); }
80384059Swpaul454	AUE_NULL	STD	{ int _umtx_op(void *obj, int op, \
80484059Swpaul				    u_long val, void *uaddr1, void *uaddr2); }
80584059Swpaul455	AUE_NULL	STD	{ int thr_new(struct thr_param *param, \
80684059Swpaul				    int param_size); }
80784059Swpaul456	AUE_NULL	STD	{ int sigqueue(pid_t pid, int signum, void *value); }
80884059Swpaul457	AUE_NULL	NOSTD	{ int kmq_open(const char *path, int flags, \
80984059Swpaul				    mode_t mode, const struct mq_attr *attr); }
81084059Swpaul458	AUE_NULL	NOSTD	{ int kmq_setattr(int mqd,		\
81184059Swpaul				    const struct mq_attr *attr,		\
81284059Swpaul				    struct mq_attr *oattr); }
81384059Swpaul459	AUE_NULL	NOSTD	{ int kmq_timedreceive(int mqd,	\
81484059Swpaul				    char *msg_ptr, size_t msg_len,	\
81584059Swpaul				    unsigned *msg_prio,			\
81684059Swpaul				    const struct timespec *abs_timeout); }
81784059Swpaul460	AUE_NULL	NOSTD	{ int kmq_timedsend(int mqd,		\
81884059Swpaul				    const char *msg_ptr, size_t msg_len,\
81984059Swpaul				    unsigned msg_prio,			\
82084059Swpaul				    const struct timespec *abs_timeout);}
82184059Swpaul461	AUE_NULL	NOSTD	{ int kmq_notify(int mqd,		\
82284059Swpaul				    const struct sigevent *sigev); }
82384059Swpaul462	AUE_NULL	NOSTD	{ int kmq_unlink(const char *path); }
82484059Swpaul463	AUE_NULL	STD	{ int abort2(const char *why, int nargs, void **args); }
82584059Swpaul464	AUE_NULL	STD	{ int thr_set_name(long id, const char *name); }
82684059Swpaul465	AUE_NULL	NOSTD	{ int aio_fsync(int op, struct aiocb *aiocbp); }
82784059Swpaul466	AUE_RTPRIO	STD	{ int rtprio_thread(int function, \
82884059Swpaul				    lwpid_t lwpid, struct rtprio *rtp); }
82984059Swpaul467	AUE_NULL	UNIMPL	nosys
83084059Swpaul468	AUE_NULL	UNIMPL	nosys
83184059Swpaul469	AUE_NULL	UNIMPL	__getpath_fromfd
83284059Swpaul470	AUE_NULL	UNIMPL	__getpath_fromaddr
83384059Swpaul471	AUE_NULL	STD	{ int sctp_peeloff(int sd, uint32_t name); }
83484059Swpaul472     AUE_NULL        STD    { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
83584059Swpaul	                            caddr_t to, __socklen_t tolen, \
83684059Swpaul				    struct sctp_sndrcvinfo *sinfo, int flags); }
83784059Swpaul473     AUE_NULL        STD    { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
83884059Swpaul	                            caddr_t to, __socklen_t tolen, \
83984059Swpaul				    struct sctp_sndrcvinfo *sinfo, int flags); }
84084059Swpaul474     AUE_NULL        STD    { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
84184059Swpaul				    struct sockaddr * from, __socklen_t *fromlenaddr, \
84284059Swpaul				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
84384059Swpaul475	AUE_PREAD	STD	{ ssize_t pread(int fd, void *buf, \
84484059Swpaul				    size_t nbyte, off_t offset); }
84584059Swpaul476	AUE_PWRITE	STD	{ ssize_t pwrite(int fd, const void *buf, \
84684059Swpaul				    size_t nbyte, off_t offset); }
84784059Swpaul477	AUE_MMAP	STD	{ caddr_t mmap(caddr_t addr, size_t len, \
84884059Swpaul				    int prot, int flags, int fd, off_t pos); }
84984059Swpaul478	AUE_LSEEK	STD	{ off_t lseek(int fd, off_t offset, \
85084059Swpaul				    int whence); }
85184059Swpaul479	AUE_TRUNCATE	STD	{ int truncate(char *path, off_t length); }
85284059Swpaul480	AUE_FTRUNCATE	STD	{ int ftruncate(int fd, off_t length); }
85384059Swpaul481	AUE_KILL	STD	{ int thr_kill2(pid_t pid, long id, int sig); }
85484059Swpaul482	AUE_SHMOPEN	STD	{ int shm_open(const char *path, int flags, \
85584059Swpaul				    mode_t mode); }
85684059Swpaul483	AUE_SHMUNLINK	STD	{ int shm_unlink(const char *path); }
85784059Swpaul484	AUE_NULL	STD	{ int cpuset(cpusetid_t *setid); }
85884059Swpaul485	AUE_NULL	STD	{ int cpuset_setid(cpuwhich_t which, id_t id, \
85984059Swpaul				    cpusetid_t setid); }
86084059Swpaul486	AUE_NULL	STD	{ int cpuset_getid(cpulevel_t level, \
86184059Swpaul				    cpuwhich_t which, id_t id, \
86284059Swpaul				    cpusetid_t *setid); }
86384059Swpaul487	AUE_NULL	STD	{ int cpuset_getaffinity(cpulevel_t level, \
86484059Swpaul				    cpuwhich_t which, id_t id, size_t cpusetsize, \
86584059Swpaul				    cpuset_t *mask); }
86684059Swpaul488	AUE_NULL	STD	{ int cpuset_setaffinity(cpulevel_t level, \
86784059Swpaul				    cpuwhich_t which, id_t id, size_t cpusetsize, \
86884059Swpaul				    const cpuset_t *mask); }
86984059Swpaul489	AUE_FACCESSAT	STD	{ int faccessat(int fd, char *path, int mode, \
87084059Swpaul				    int flag); }
87184059Swpaul490	AUE_FCHMODAT	STD	{ int fchmodat(int fd, char *path, mode_t mode, \
87284059Swpaul				    int flag); }
87384059Swpaul491	AUE_FCHOWNAT	STD	{ int fchownat(int fd, char *path, uid_t uid, \
87484059Swpaul				    gid_t gid, int flag); }
87584059Swpaul492	AUE_FEXECVE	STD	{ int fexecve(int fd, char **argv, \
87684059Swpaul				    char **envv); }
87784059Swpaul493	AUE_FSTATAT	STD	{ int fstatat(int fd, char *path, \
87884059Swpaul				    struct stat *buf, int flag); }
87984059Swpaul494	AUE_FUTIMESAT	STD	{ int futimesat(int fd, char *path, \
88084059Swpaul				    struct timeval *times); }
88184059Swpaul495	AUE_LINKAT	STD	{ int linkat(int fd1, char *path1, int fd2, \
88284059Swpaul				    char *path2, int flag); }
88384059Swpaul496	AUE_MKDIRAT	STD	{ int mkdirat(int fd, char *path, mode_t mode); }
88484059Swpaul497	AUE_MKFIFOAT	STD	{ int mkfifoat(int fd, char *path, mode_t mode); }
88584059Swpaul498	AUE_MKNODAT	STD	{ int mknodat(int fd, char *path, mode_t mode, \
88684059Swpaul				    dev_t dev); }
88784059Swpaul; XXX: see the comment for open
88884059Swpaul499	AUE_OPENAT_RWTC	STD	{ int openat(int fd, char *path, int flag, \
88984059Swpaul				    mode_t mode); }
89084059Swpaul500	AUE_READLINKAT	STD	{ int readlinkat(int fd, char *path, char *buf, \
89184059Swpaul				    size_t bufsize); }
89284059Swpaul501	AUE_RENAMEAT	STD	{ int renameat(int oldfd, char *old, int newfd, \
89384059Swpaul				     char *new); }
89484059Swpaul502	AUE_SYMLINKAT	STD	{ int symlinkat(char *path1, int fd, \
89584059Swpaul				     char *path2); }
89684059Swpaul503	AUE_UNLINKAT	STD	{ int unlinkat(int fd, char *path, int flag); }
89784059Swpaul504	AUE_POSIX_OPENPT	STD	{ int posix_openpt(int flags); }
89884059Swpaul; 505 is initialised by the kgssapi code, if present.
89984059Swpaul505	AUE_NULL	NOSTD	{ int gssd_syscall(char *path); }
90084059Swpaul; Please copy any additions and changes to the following compatability tables:
90184059Swpaul; sys/compat/freebsd32/syscalls.master
90284059Swpaul