syscalls.master revision 152845
150477Speter $FreeBSD: head/sys/kern/syscalls.master 152845 2005-11-27 01:13:00Z davidxu $
21817Sdg;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
31817Sdg;
41541Srgrimes; System call name/number master file.
51541Srgrimes; Processed to created init_sysent.c, syscalls.c and syscall.h.
61541Srgrimes
7123750Speter; Columns: number [M]type nargs name alt{name,tag,rtyp}/comments
81541Srgrimes;	number	system call number, must be in order
9146806Srwatson;	audit	the audit event associated with the system call
10146806Srwatson;		A value of AUE_NULL means no auditing, but it also means that
11146806Srwatson;		there is no audit event for the call at this time. For the
12146806Srwatson;		case where the event exists, but we don't want auditing, the
13146806Srwatson;		event should be #defined to AUE_NULL in audit_kevents.h.
1482585Sdillon;	type	one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
15146783Srwatson;		[M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
1699855Salfred;		[M]NOSTD, [M]COMPAT4
1711294Sswallace;	name	psuedo-prototype of syscall routine
1810905Sbde;		If one of the following alts is different, then all appear:
191541Srgrimes;	altname	name of system call if different
2010905Sbde;	alttag	name of args struct tag if different from [o]`name'"_args"
2110905Sbde;	altrtyp	return type if not int (bogus - syscalls always return int)
221541Srgrimes;		for UNIMPL/OBSOL, name continues with comments
231541Srgrimes
241541Srgrimes; types:
2582585Sdillon;	[M]	e.g. like MSTD -- means the system call is MP-safe.  If no
2682585Sdillon;		M prefix is used, the syscall wrapper will obtain the Giant
2782585Sdillon;		lock for the syscall.
281541Srgrimes;	STD	always included
291541Srgrimes;	COMPAT	included on COMPAT #ifdef
3099855Salfred;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
311541Srgrimes;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
321541Srgrimes;	OBSOL	obsolete, not included in system, only specifies name
331541Srgrimes;	UNIMPL	not implemented, placeholder only
3469449Salfred;	NOSTD	implemented but as a lkm that can be statically
3569449Salfred;			compiled in sysent entry will be filled with lkmsys
3669449Salfred;			so the SYSCALL_MODULE macro works
37104747Srwatson;
38104747Srwatson; Please copy any additions and changes to the following compatability tables:
39123408Speter; sys/compat/freebsd32/syscalls.master
40123408Speter
411541Srgrimes; #ifdef's, etc. may be included, and are copied to the output files.
421541Srgrimes
4311294Sswallace#include <sys/param.h>
4411294Sswallace#include <sys/sysent.h>
4511294Sswallace#include <sys/sysproto.h>
4611294Sswallace
471541Srgrimes; Reserved/unimplemented system calls in the range 0-150 inclusive
481541Srgrimes; are reserved for use in future Berkeley releases.
491541Srgrimes; Additional system calls implemented in vendor and other
501541Srgrimes; redistributions should be placed in the reserved range at the end
511541Srgrimes; of the current calls.
521541Srgrimes
53146806Srwatson0	AUE_NULL	MSTD	{ int nosys(void); } syscall nosys_args int
54146806Srwatson1	AUE_NULL	MSTD	{ void sys_exit(int rval); } exit \
55146806Srwatson				    sys_exit_args void
56146806Srwatson2	AUE_NULL	MSTD	{ int fork(void); }
57146806Srwatson3	AUE_NULL	MSTD	{ ssize_t read(int fd, void *buf, \
58146806Srwatson				    size_t nbyte); }
59146806Srwatson4	AUE_NULL	MSTD	{ ssize_t write(int fd, const void *buf, \
60146806Srwatson				    size_t nbyte); }
61146806Srwatson5	AUE_NULL	MSTD	{ int open(char *path, int flags, int mode); }
6212216Sbde; XXX should be		{ int open(const char *path, int flags, ...); }
6312216Sbde; but we're not ready for `const' or varargs.
6412216Sbde; XXX man page says `mode_t mode'.
65146806Srwatson6	AUE_NULL	MSTD	{ int close(int fd); }
66146806Srwatson7	AUE_NULL	MSTD	{ int wait4(int pid, int *status, \
67146806Srwatson				    int options, struct rusage *rusage); } \
68146806Srwatson				    wait4 wait_args int
69146806Srwatson8	AUE_NULL	MCOMPAT	{ int creat(char *path, int mode); }
70146806Srwatson9	AUE_NULL	MSTD	{ int link(char *path, char *link); }
71146806Srwatson10	AUE_NULL	MSTD	{ int unlink(char *path); }
72146806Srwatson11	AUE_NULL	OBSOL	execv
73146806Srwatson12	AUE_NULL	MSTD	{ int chdir(char *path); }
74146806Srwatson13	AUE_NULL	MSTD	{ int fchdir(int fd); }
75146806Srwatson14	AUE_NULL	MSTD	{ int mknod(char *path, int mode, int dev); }
76146806Srwatson15	AUE_NULL	MSTD	{ int chmod(char *path, int mode); }
77146806Srwatson16	AUE_NULL	MSTD	{ int chown(char *path, int uid, int gid); }
78146806Srwatson17	AUE_NULL	MSTD	{ int obreak(char *nsize); } break \
79146806Srwatson				    obreak_args int
80146806Srwatson18	AUE_NULL	MCOMPAT4	{ int getfsstat(struct ostatfs *buf, \
81146806Srwatson				    long bufsize, int flags); }
82146806Srwatson19	AUE_NULL	MCOMPAT	{ long lseek(int fd, long offset, \
83146806Srwatson				    int whence); }
84146806Srwatson20	AUE_NULL	MSTD	{ pid_t getpid(void); }
85146806Srwatson21	AUE_NULL	STD	{ int mount(char *type, char *path, \
86146806Srwatson				    int flags, caddr_t data); }
8712216Sbde; XXX `path' should have type `const char *' but we're not ready for that.
88146806Srwatson22	AUE_NULL	STD	{ int unmount(char *path, int flags); }
89146806Srwatson23	AUE_NULL	MSTD	{ int setuid(uid_t uid); }
90146806Srwatson24	AUE_NULL	MSTD	{ uid_t getuid(void); }
91146806Srwatson25	AUE_NULL	MSTD	{ uid_t geteuid(void); }
92146806Srwatson26	AUE_NULL	MSTD	{ int ptrace(int req, pid_t pid, \
93146806Srwatson				    caddr_t addr, int data); }
94146806Srwatson27	AUE_NULL	MSTD	{ int recvmsg(int s, struct msghdr *msg, \
95146806Srwatson				    int flags); }
96146806Srwatson28	AUE_NULL	MSTD	{ int sendmsg(int s, struct msghdr *msg, \
97146806Srwatson				    int flags); }
98146806Srwatson29	AUE_NULL	MSTD	{ int recvfrom(int s, caddr_t buf, \
99146806Srwatson				    size_t len, int flags, \
100146806Srwatson				    struct sockaddr * __restrict from, \
101146806Srwatson				    __socklen_t * __restrict fromlenaddr); }
102146806Srwatson30	AUE_NULL	MSTD	{ int accept(int s, \
103146806Srwatson				    struct sockaddr * __restrict name, \
104146806Srwatson				    __socklen_t * __restrict anamelen); }
105146806Srwatson31	AUE_NULL	MSTD	{ int getpeername(int fdes, \
106146806Srwatson				    struct sockaddr * __restrict asa, \
107146806Srwatson				    __socklen_t * __restrict alen); }
108146806Srwatson32	AUE_NULL	MSTD	{ int getsockname(int fdes, \
109146806Srwatson				    struct sockaddr * __restrict asa, \
110146806Srwatson				    __socklen_t * __restrict alen); }
111146806Srwatson33	AUE_NULL	MSTD	{ int access(char *path, int flags); }
112146806Srwatson34	AUE_NULL	MSTD	{ int chflags(char *path, int flags); }
113146806Srwatson35	AUE_NULL	MSTD	{ int fchflags(int fd, int flags); }
114146806Srwatson36	AUE_NULL	MSTD	{ int sync(void); }
115146806Srwatson37	AUE_NULL	MSTD	{ int kill(int pid, int signum); }
116146806Srwatson38	AUE_NULL	MCOMPAT	{ int stat(char *path, struct ostat *ub); }
117146806Srwatson39	AUE_NULL	MSTD	{ pid_t getppid(void); }
118146806Srwatson40	AUE_NULL	MCOMPAT	{ int lstat(char *path, struct ostat *ub); }
119146806Srwatson41	AUE_NULL	MSTD	{ int dup(u_int fd); }
120146806Srwatson42	AUE_NULL	MSTD	{ int pipe(void); }
121146806Srwatson43	AUE_NULL	MSTD	{ gid_t getegid(void); }
122146806Srwatson44	AUE_NULL	MSTD	{ int profil(caddr_t samples, size_t size, \
123146806Srwatson				    size_t offset, u_int scale); }
124146806Srwatson45	AUE_NULL	MSTD	{ int ktrace(const char *fname, int ops, \
125146806Srwatson				    int facs, int pid); }
126146806Srwatson46	AUE_NULL	MCOMPAT	{ int sigaction(int signum, \
127146806Srwatson				    struct osigaction *nsa, \
128146806Srwatson				    struct osigaction *osa); }
129146806Srwatson47	AUE_NULL	MSTD	{ gid_t getgid(void); }
130146806Srwatson48	AUE_NULL	MCOMPAT	{ int sigprocmask(int how, osigset_t mask); }
13121776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes
13221776Sbde; us the mask, not a pointer to it, and we return the old mask as the
13321776Sbde; (int) return value.
134146806Srwatson49	AUE_NULL	MSTD	{ int getlogin(char *namebuf, u_int \
135146806Srwatson				    namelen); }
136146806Srwatson50	AUE_NULL	MSTD	{ int setlogin(char *namebuf); }
137146806Srwatson51	AUE_NULL	MSTD	{ int acct(char *path); }
138146806Srwatson52	AUE_NULL	MCOMPAT	{ int sigpending(void); }
139146806Srwatson53	AUE_NULL	MSTD	{ int sigaltstack(stack_t *ss, \
140146806Srwatson				    stack_t *oss); }
141146806Srwatson54	AUE_NULL	MSTD	{ int ioctl(int fd, u_long com, \
142146806Srwatson				    caddr_t data); }
143146806Srwatson55	AUE_NULL	MSTD	{ int reboot(int opt); }
144146806Srwatson56	AUE_NULL	MSTD	{ int revoke(char *path); }
145146806Srwatson57	AUE_NULL	MSTD	{ int symlink(char *path, char *link); }
146146806Srwatson58	AUE_NULL	MSTD	{ int readlink(char *path, char *buf, \
147146806Srwatson				    int count); }
148146806Srwatson59	AUE_NULL	MSTD	{ int execve(char *fname, char **argv, \
149146806Srwatson				    char **envv); }
150146806Srwatson60	AUE_NULL	MSTD	{ int umask(int newmask); } umask umask_args \
151146806Srwatson				    int
152146806Srwatson61	AUE_NULL	MSTD	{ int chroot(char *path); }
153146806Srwatson62	AUE_NULL	MCOMPAT	{ int fstat(int fd, struct ostat *sb); }
154146806Srwatson63	AUE_NULL	MCOMPAT	{ int getkerninfo(int op, char *where, \
155146806Srwatson				    size_t *size, int arg); } getkerninfo \
156146806Srwatson				    getkerninfo_args int
157146806Srwatson64	AUE_NULL	MCOMPAT	{ int getpagesize(void); } getpagesize \
158146806Srwatson				    getpagesize_args int
159146806Srwatson65	AUE_NULL	MSTD	{ int msync(void *addr, size_t len, \
160146806Srwatson				    int flags); }
161146806Srwatson66	AUE_NULL	MSTD	{ int vfork(void); }
162146806Srwatson67	AUE_NULL	OBSOL	vread
163146806Srwatson68	AUE_NULL	OBSOL	vwrite
164146806Srwatson69	AUE_NULL	MSTD	{ int sbrk(int incr); }
165146806Srwatson70	AUE_NULL	MSTD	{ int sstk(int incr); }
166146806Srwatson71	AUE_NULL	MCOMPAT	{ int mmap(void *addr, int len, int prot, \
167146806Srwatson				    int flags, int fd, long pos); }
168146806Srwatson72	AUE_NULL	MSTD	{ int ovadvise(int anom); } vadvise \
169146806Srwatson				    ovadvise_args int
170146806Srwatson73	AUE_NULL	MSTD	{ int munmap(void *addr, size_t len); }
171146806Srwatson74	AUE_NULL	MSTD	{ int mprotect(const void *addr, size_t len, \
172146806Srwatson				    int prot); }
173146806Srwatson75	AUE_NULL	MSTD	{ int madvise(void *addr, size_t len, \
174146806Srwatson				    int behav); }
175146806Srwatson76	AUE_NULL	OBSOL	vhangup
176146806Srwatson77	AUE_NULL	OBSOL	vlimit
177146806Srwatson78	AUE_NULL	MSTD	{ int mincore(const void *addr, size_t len, \
178146806Srwatson				    char *vec); }
179146806Srwatson79	AUE_NULL	MSTD	{ int getgroups(u_int gidsetsize, \
180146806Srwatson				    gid_t *gidset); }
181146806Srwatson80	AUE_NULL	MSTD	{ int setgroups(u_int gidsetsize, \
182146806Srwatson				    gid_t *gidset); }
183146806Srwatson81	AUE_NULL	MSTD	{ int getpgrp(void); }
184146806Srwatson82	AUE_NULL	MSTD	{ int setpgid(int pid, int pgid); }
185146806Srwatson83	AUE_NULL	MSTD	{ int setitimer(u_int which, struct \
186146806Srwatson				    itimerval *itv, struct itimerval *oitv); }
187146806Srwatson84	AUE_NULL	MCOMPAT	{ int wait(void); }
188146806Srwatson85	AUE_NULL	MSTD	{ int swapon(char *name); }
189146806Srwatson86	AUE_NULL	MSTD	{ int getitimer(u_int which, \
190146806Srwatson				    struct itimerval *itv); }
191146806Srwatson87	AUE_NULL	MCOMPAT	{ int gethostname(char *hostname, \
192146806Srwatson				    u_int len); } gethostname \
193146806Srwatson				    gethostname_args int
194146806Srwatson88	AUE_NULL	MCOMPAT	{ int sethostname(char *hostname, \
195146806Srwatson				    u_int len); } sethostname \
196146806Srwatson				    sethostname_args int
197146806Srwatson89	AUE_NULL	MSTD	{ int getdtablesize(void); }
198146806Srwatson90	AUE_NULL	MSTD	{ int dup2(u_int from, u_int to); }
199146806Srwatson91	AUE_NULL	UNIMPL	getdopt
200146806Srwatson92	AUE_NULL	MSTD	{ int fcntl(int fd, int cmd, long arg); }
201123750Speter; XXX should be	{ int fcntl(int fd, int cmd, ...); }
20212216Sbde; but we're not ready for varargs.
203146806Srwatson93	AUE_NULL	MSTD	{ int select(int nd, fd_set *in, fd_set *ou, \
204146806Srwatson				    fd_set *ex, struct timeval *tv); }
205146806Srwatson94	AUE_NULL	UNIMPL	setdopt
206146806Srwatson95	AUE_NULL	MSTD	{ int fsync(int fd); }
207146806Srwatson96	AUE_NULL	MSTD	{ int setpriority(int which, int who, \
208146806Srwatson				    int prio); }
209146806Srwatson97	AUE_NULL	MSTD	{ int socket(int domain, int type, \
210146806Srwatson				    int protocol); }
211146806Srwatson98	AUE_NULL	MSTD	{ int connect(int s, caddr_t name, \
212146806Srwatson				    int namelen); }
213146806Srwatson99	AUE_NULL	MCPT_NOA { int accept(int s, caddr_t name, \
214146806Srwatson				    int *anamelen); } accept accept_args int
215146806Srwatson100	AUE_NULL	MSTD	{ int getpriority(int which, int who); }
216146806Srwatson101	AUE_NULL	MCOMPAT	{ int send(int s, caddr_t buf, int len, \
217146806Srwatson				    int flags); }
218146806Srwatson102	AUE_NULL	MCOMPAT	{ int recv(int s, caddr_t buf, int len, \
219146806Srwatson				    int flags); }
220146806Srwatson103	AUE_NULL	MCOMPAT	{ int sigreturn( \
221146806Srwatson				    struct osigcontext *sigcntxp); }
222146806Srwatson104	AUE_NULL	MSTD	{ int bind(int s, caddr_t name, \
223146806Srwatson				    int namelen); }
224146806Srwatson105	AUE_NULL	MSTD	{ int setsockopt(int s, int level, int name, \
225146806Srwatson				    caddr_t val, int valsize); }
226146806Srwatson106	AUE_NULL	MSTD	{ int listen(int s, int backlog); }
227146806Srwatson107	AUE_NULL	OBSOL	vtimes
228146806Srwatson108	AUE_NULL	MCOMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
229146806Srwatson				    struct sigvec *osv); }
230146806Srwatson109	AUE_NULL	MCOMPAT	{ int sigblock(int mask); }
231146806Srwatson110	AUE_NULL	MCOMPAT	{ int sigsetmask(int mask); }
232146806Srwatson111	AUE_NULL	MCOMPAT	{ int sigsuspend(osigset_t mask); }
23321776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes
23421776Sbde; us the mask, not a pointer to it.
235146806Srwatson112	AUE_NULL	MCOMPAT	{ int sigstack(struct sigstack *nss, \
236146806Srwatson				    struct sigstack *oss); }
237146806Srwatson113	AUE_NULL	MCOMPAT	{ int recvmsg(int s, struct omsghdr *msg, \
238146806Srwatson				    int flags); }
239146806Srwatson114	AUE_NULL	MCOMPAT	{ int sendmsg(int s, caddr_t msg, \
240146806Srwatson				    int flags); }
241146806Srwatson115	AUE_NULL	OBSOL	vtrace
242146806Srwatson116	AUE_NULL	MSTD	{ int gettimeofday(struct timeval *tp, \
243146806Srwatson				    struct timezone *tzp); }
244146806Srwatson117	AUE_NULL	MSTD	{ int getrusage(int who, \
245146806Srwatson				    struct rusage *rusage); }
246146806Srwatson118	AUE_NULL	MSTD	{ int getsockopt(int s, int level, int name, \
247146806Srwatson				    caddr_t val, int *avalsize); }
248146806Srwatson119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
249146806Srwatson120	AUE_NULL	MSTD	{ int readv(int fd, struct iovec *iovp, \
250146806Srwatson				    u_int iovcnt); }
251146806Srwatson121	AUE_NULL	MSTD	{ int writev(int fd, struct iovec *iovp, \
252146806Srwatson				    u_int iovcnt); }
253146806Srwatson122	AUE_NULL	MSTD	{ int settimeofday(struct timeval *tv, \
254146806Srwatson				    struct timezone *tzp); }
255146806Srwatson123	AUE_NULL	MSTD	{ int fchown(int fd, int uid, int gid); }
256146806Srwatson124	AUE_NULL	MSTD	{ int fchmod(int fd, int mode); }
257146806Srwatson125	AUE_NULL	MCPT_NOA { int recvfrom(int s, caddr_t buf, \
258146806Srwatson				    size_t len, int flags, caddr_t from, int \
259146806Srwatson				    *fromlenaddr); } recvfrom recvfrom_args \
260146806Srwatson				    int
261146806Srwatson126	AUE_NULL	MSTD	{ int setreuid(int ruid, int euid); }
262146806Srwatson127	AUE_NULL	MSTD	{ int setregid(int rgid, int egid); }
263146806Srwatson128	AUE_NULL	MSTD	{ int rename(char *from, char *to); }
264146806Srwatson129	AUE_NULL	MCOMPAT	{ int truncate(char *path, long length); }
265146806Srwatson130	AUE_NULL	MCOMPAT	{ int ftruncate(int fd, long length); }
266146806Srwatson131	AUE_NULL	MSTD	{ int flock(int fd, int how); }
267146806Srwatson132	AUE_NULL	MSTD	{ int mkfifo(char *path, int mode); }
268146806Srwatson133	AUE_NULL	MSTD	{ int sendto(int s, caddr_t buf, size_t len, \
269146806Srwatson				    int flags, caddr_t to, int tolen); }
270146806Srwatson134	AUE_NULL	MSTD	{ int shutdown(int s, int how); }
271146806Srwatson135	AUE_NULL	MSTD	{ int socketpair(int domain, int type, \
272146806Srwatson				    int protocol, int *rsv); }
273146806Srwatson136	AUE_NULL	MSTD	{ int mkdir(char *path, int mode); }
274146806Srwatson137	AUE_NULL	MSTD	{ int rmdir(char *path); }
275146806Srwatson138	AUE_NULL	MSTD	{ int utimes(char *path, \
276146806Srwatson				    struct timeval *tptr); }
277146806Srwatson139	AUE_NULL	OBSOL	4.2 sigreturn
278146806Srwatson140	AUE_NULL	MSTD	{ int adjtime(struct timeval *delta, \
279146806Srwatson				    struct timeval *olddelta); }
280146806Srwatson141	AUE_NULL	MCOMPAT	{ int getpeername(int fdes, caddr_t asa, \
281146806Srwatson				    int *alen); }
282146806Srwatson142	AUE_NULL	MCOMPAT	{ long gethostid(void); }
283146806Srwatson143	AUE_NULL	MCOMPAT	{ int sethostid(long hostid); }
284146806Srwatson144	AUE_NULL	MCOMPAT	{ int getrlimit(u_int which, struct \
285146806Srwatson				    orlimit *rlp); }
286146806Srwatson145	AUE_NULL	MCOMPAT	{ int setrlimit(u_int which, \
287146806Srwatson				    struct orlimit *rlp); }
288146806Srwatson146	AUE_NULL	MCOMPAT	{ int killpg(int pgid, int signum); }
289146806Srwatson147	AUE_NULL	MSTD	{ int setsid(void); }
290146806Srwatson148	AUE_NULL	MSTD	{ int quotactl(char *path, int cmd, int uid, \
291146806Srwatson				    caddr_t arg); }
292146806Srwatson149	AUE_NULL	MCOMPAT	{ int quota(void); }
293146806Srwatson150	AUE_NULL	MCPT_NOA	{ int getsockname(int fdec, \
294146806Srwatson				    caddr_t asa, int *alen); } getsockname \
295146806Srwatson				    getsockname_args int
2961541Srgrimes
2971541Srgrimes; Syscalls 151-180 inclusive are reserved for vendor-specific
2981541Srgrimes; system calls.  (This includes various calls added for compatibity
2991541Srgrimes; with other Unix variants.)
3001541Srgrimes; Some of these calls are now supported by BSD...
301146806Srwatson151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
302146806Srwatson152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
303146806Srwatson153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
304146806Srwatson154	AUE_NULL	UNIMPL	nosys
30530740Sphk; 155 is initialized by the NFS code, if present.
306146806Srwatson155	AUE_NULL	MNOIMPL	{ int nfssvc(int flag, caddr_t argp); }
307146806Srwatson156	AUE_NULL	COMPAT	{ int getdirentries(int fd, char *buf, \
308146806Srwatson				    u_int count, long *basep); }
309146806Srwatson157	AUE_NULL	MCOMPAT4	{ int statfs(char *path, \
310146806Srwatson				    struct ostatfs *buf); }
311146806Srwatson158	AUE_NULL	MCOMPAT4	{ int fstatfs(int fd, \
312146806Srwatson				    struct ostatfs *buf); }
313146806Srwatson159	AUE_NULL	UNIMPL	nosys
314146806Srwatson160	AUE_NULL	MSTD	{ int lgetfh(char *fname, \
315146806Srwatson				    struct fhandle *fhp); }
316146806Srwatson161	AUE_NULL	MSTD	{ int getfh(char *fname, \
317146806Srwatson				    struct fhandle *fhp); }
318146806Srwatson162	AUE_NULL	MSTD	{ int getdomainname(char *domainname, \
319146806Srwatson				    int len); }
320146806Srwatson163	AUE_NULL	MSTD	{ int setdomainname(char *domainname, \
321146806Srwatson				    int len); }
322146806Srwatson164	AUE_NULL	MSTD	{ int uname(struct utsname *name); }
323146806Srwatson165	AUE_NULL	MSTD	{ int sysarch(int op, char *parms); }
324146806Srwatson166	AUE_NULL	MSTD	{ int rtprio(int function, pid_t pid, \
325146806Srwatson				    struct rtprio *rtp); }
326146806Srwatson167	AUE_NULL	UNIMPL	nosys
327146806Srwatson168	AUE_NULL	UNIMPL	nosys
32869449Salfred; 169 is initialized by the SYSVSEM code if present or loaded
329146806Srwatson169	AUE_NULL	MNOSTD	{ int semsys(int which, int a2, int a3, \
330146806Srwatson				    int a4, int a5); }
33169449Salfred; 169 is initialized by the SYSVMSG code if present or loaded
332123750Speter; XXX should be	{ int semsys(int which, ...); }
333146806Srwatson170	AUE_NULL	MNOSTD	{ int msgsys(int which, int a2, int a3, \
334146806Srwatson				    int a4, int a5, int a6); }
33569449Salfred; 169 is initialized by the SYSVSHM code if present or loaded
336123750Speter; XXX should be	{ int msgsys(int which, ...); }
337146806Srwatson171	AUE_NULL	MNOSTD	{ int shmsys(int which, int a2, int a3, \
338146806Srwatson				    int a4); }
339123750Speter; XXX should be	{ int shmsys(int which, ...); }
340146806Srwatson172	AUE_NULL	UNIMPL	nosys
341146806Srwatson173	AUE_NULL	MSTD	{ ssize_t pread(int fd, void *buf, \
342146806Srwatson				    size_t nbyte, int pad, off_t offset); }
343146806Srwatson174	AUE_NULL	MSTD	{ ssize_t pwrite(int fd, const void *buf, \
344146806Srwatson				    size_t nbyte, int pad, off_t offset); }
345146806Srwatson175	AUE_NULL	UNIMPL	nosys
346146806Srwatson176	AUE_NULL	MSTD	{ int ntp_adjtime(struct timex *tp); }
347146806Srwatson177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
348146806Srwatson178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
349146806Srwatson179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
350146806Srwatson180	AUE_NULL	UNIMPL	nosys
3511541Srgrimes
35249428Sjkh; Syscalls 181-199 are used by/reserved for BSD
353146806Srwatson181	AUE_NULL	MSTD	{ int setgid(gid_t gid); }
354146806Srwatson182	AUE_NULL	MSTD	{ int setegid(gid_t egid); }
355146806Srwatson183	AUE_NULL	MSTD	{ int seteuid(uid_t euid); }
356146806Srwatson184	AUE_NULL	UNIMPL	lfs_bmapv
357146806Srwatson185	AUE_NULL	UNIMPL	lfs_markv
358146806Srwatson186	AUE_NULL	UNIMPL	lfs_segclean
359146806Srwatson187	AUE_NULL	UNIMPL	lfs_segwait
360146806Srwatson188	AUE_NULL	MSTD	{ int stat(char *path, struct stat *ub); }
361146806Srwatson189	AUE_NULL	MSTD	{ int fstat(int fd, struct stat *sb); }
362146806Srwatson190	AUE_NULL	MSTD	{ int lstat(char *path, struct stat *ub); }
363146806Srwatson191	AUE_NULL	MSTD	{ int pathconf(char *path, int name); }
364146806Srwatson192	AUE_NULL	MSTD	{ int fpathconf(int fd, int name); }
365146806Srwatson193	AUE_NULL	UNIMPL	nosys
366146806Srwatson194	AUE_NULL	MSTD	{ int getrlimit(u_int which, \
367146806Srwatson				    struct rlimit *rlp); } getrlimit \
368146806Srwatson				    __getrlimit_args int
369146806Srwatson195	AUE_NULL	MSTD	{ int setrlimit(u_int which, \
370146806Srwatson				    struct rlimit *rlp); } setrlimit \
371146806Srwatson				    __setrlimit_args int
372146806Srwatson196	AUE_NULL	MSTD	{ int getdirentries(int fd, char *buf, \
373146806Srwatson				    u_int count, long *basep); }
374146806Srwatson197	AUE_NULL	MSTD	{ caddr_t mmap(caddr_t addr, size_t len, \
375146806Srwatson				    int prot, int flags, int fd, int pad, \
376146806Srwatson				    off_t pos); }
377146806Srwatson198	AUE_NULL	MSTD	{ int nosys(void); } __syscall \
378146806Srwatson				    __syscall_args int
379146806Srwatson199	AUE_NULL	MSTD	{ off_t lseek(int fd, int pad, off_t offset, \
380146806Srwatson				    int whence); }
381146806Srwatson200	AUE_NULL	MSTD	{ int truncate(char *path, int pad, \
382146806Srwatson				    off_t length); }
383146806Srwatson201	AUE_NULL	MSTD	{ int ftruncate(int fd, int pad, \
384146806Srwatson				    off_t length); }
385146806Srwatson202	AUE_NULL	MSTD	{ int __sysctl(int *name, u_int namelen, \
386146806Srwatson				    void *old, size_t *oldlenp, void *new, \
387146806Srwatson				    size_t newlen); } __sysctl sysctl_args int
388146806Srwatson203	AUE_NULL	MSTD	{ int mlock(const void *addr, size_t len); }
389146806Srwatson204	AUE_NULL	MSTD	{ int munlock(const void *addr, size_t len); }
390146806Srwatson205	AUE_NULL	MSTD	{ int undelete(char *path); }
391146806Srwatson206	AUE_NULL	MSTD	{ int futimes(int fd, struct timeval *tptr); }
392146806Srwatson207	AUE_NULL	MSTD	{ int getpgid(pid_t pid); }
393146806Srwatson208	AUE_NULL	UNIMPL	newreboot (NetBSD)
394146806Srwatson209	AUE_NULL	MSTD	{ int poll(struct pollfd *fds, u_int nfds, \
395146806Srwatson				    int timeout); }
3962124Sdg
3972124Sdg;
3982124Sdg; The following are reserved for loadable syscalls
3992124Sdg;
400146806Srwatson210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
401146806Srwatson211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
402146806Srwatson212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
403146806Srwatson213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
404146806Srwatson214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
405146806Srwatson215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
406146806Srwatson216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
407146806Srwatson217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
408146806Srwatson218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
409146806Srwatson219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41012864Speter
41112864Speter;
41214215Speter; The following were introduced with NetBSD/4.4Lite-2
413143317Sstefanf; They are initialized by their respective modules/sysinits
414146806Srwatson220	AUE_NULL	MNOSTD	{ int __semctl(int semid, int semnum, \
415146806Srwatson				    int cmd, union semun *arg); }
416146806Srwatson221	AUE_NULL	MNOSTD	{ int semget(key_t key, int nsems, \
417146806Srwatson				    int semflg); }
418146806Srwatson222	AUE_NULL	MNOSTD	{ int semop(int semid, struct sembuf *sops, \
419146806Srwatson				    size_t nsops); }
420146806Srwatson223	AUE_NULL	UNIMPL	semconfig
421146806Srwatson224	AUE_NULL	MNOSTD	{ int msgctl(int msqid, int cmd, \
422146806Srwatson				    struct msqid_ds *buf); }
423146806Srwatson225	AUE_NULL	MNOSTD	{ int msgget(key_t key, int msgflg); }
424146806Srwatson226	AUE_NULL	MNOSTD	{ int msgsnd(int msqid, const void *msgp, \
425146806Srwatson				    size_t msgsz, int msgflg); }
426146806Srwatson227	AUE_NULL	MNOSTD	{ int msgrcv(int msqid, void *msgp, \
427146806Srwatson				    size_t msgsz, long msgtyp, int msgflg); }
428146806Srwatson228	AUE_NULL	MNOSTD	{ int shmat(int shmid, const void *shmaddr, \
429146806Srwatson				    int shmflg); }
430146806Srwatson229	AUE_NULL	MNOSTD	{ int shmctl(int shmid, int cmd, \
431146806Srwatson				    struct shmid_ds *buf); }
432146806Srwatson230	AUE_NULL	MNOSTD	{ int shmdt(const void *shmaddr); }
433146806Srwatson231	AUE_NULL	MNOSTD	{ int shmget(key_t key, size_t size, \
434146806Srwatson				    int shmflg); }
43514219Speter;
436146806Srwatson232	AUE_NULL	MSTD	{ int clock_gettime(clockid_t clock_id, \
437146806Srwatson				    struct timespec *tp); }
438146806Srwatson233	AUE_NULL	MSTD	{ int clock_settime(clockid_t clock_id, \
439146806Srwatson				    const struct timespec *tp); }
440146806Srwatson234	AUE_NULL	MSTD	{ int clock_getres(clockid_t clock_id, \
441146806Srwatson				    struct timespec *tp); }
442151576Sdavidxu235	AUE_NULL	MSTD	{ int timer_create(clockid_t clock_id, \
443151576Sdavidxu				    struct sigevent *evp, timer_t *timerid); }
444151576Sdavidxu236	AUE_NULL	MSTD	{ int timer_delete(timer_t timerid); }
445151576Sdavidxu237	AUE_NULL	MSTD	{ int timer_settime(timer_t timerid, int flags, \
446151576Sdavidxu				    const struct itimerspec *value, \
447151576Sdavidxu				    struct itimerspec *ovalue); }
448151576Sdavidxu238	AUE_NULL	MSTD	{ int timer_gettime(timer_t timerid, struct \
449151576Sdavidxu				    itimerspec *value); }
450151576Sdavidxu239	AUE_NULL	MSTD	{ int timer_getoverrun(timer_t timerid); }
451146806Srwatson240	AUE_NULL	MSTD	{ int nanosleep(const struct timespec *rqtp, \
452146806Srwatson				    struct timespec *rmtp); }
453146806Srwatson241	AUE_NULL	UNIMPL	nosys
454146806Srwatson242	AUE_NULL	UNIMPL	nosys
455146806Srwatson243	AUE_NULL	UNIMPL	nosys
456146806Srwatson244	AUE_NULL	UNIMPL	nosys
457146806Srwatson245	AUE_NULL	UNIMPL	nosys
458146806Srwatson246	AUE_NULL	UNIMPL	nosys
459146806Srwatson247	AUE_NULL	UNIMPL	nosys
460146806Srwatson248	AUE_NULL	MSTD	{ int ntp_gettime(struct ntptimeval *ntvp); }
461146806Srwatson249	AUE_NULL	UNIMPL	nosys
46214219Speter; syscall numbers initially used in OpenBSD
463146806Srwatson250	AUE_NULL	MSTD	{ int minherit(void *addr, size_t len, \
464146806Srwatson				    int inherit); }
465146806Srwatson251	AUE_NULL	MSTD	{ int rfork(int flags); }
466146806Srwatson252	AUE_NULL	MSTD	{ int openbsd_poll(struct pollfd *fds, \
467146806Srwatson				    u_int nfds, int timeout); }
468146806Srwatson253	AUE_NULL	MSTD	{ int issetugid(void); }
469146806Srwatson254	AUE_NULL	MSTD	{ int lchown(char *path, int uid, int gid); }
470151867Sdavidxu255	AUE_NULL	NOSTD	{ int aio_read(struct aiocb *aiocbp); }
471151867Sdavidxu256	AUE_NULL	NOSTD	{ int aio_write(struct aiocb *aiocbp); }
472151867Sdavidxu257	AUE_NULL	NOSTD	{ int lio_listio(int mode, \
473151867Sdavidxu				    struct aiocb * const *acb_list, \
474151867Sdavidxu				    int nent, struct sigevent *sig); }
475152845Sdavidxu258	AUE_NULL	UNIMPL	nosys
476152845Sdavidxu259	AUE_NULL	UNIMPL	nosys
477152845Sdavidxu260	AUE_NULL	UNIMPL	nosys
478152845Sdavidxu261	AUE_NULL	UNIMPL	nosys
479152845Sdavidxu262	AUE_NULL	UNIMPL	nosys
480152845Sdavidxu263	AUE_NULL	UNIMPL	nosys
481146806Srwatson264	AUE_NULL	UNIMPL	nosys
482146806Srwatson265	AUE_NULL	UNIMPL	nosys
483146806Srwatson266	AUE_NULL	UNIMPL	nosys
484146806Srwatson267	AUE_NULL	UNIMPL	nosys
485146806Srwatson268	AUE_NULL	UNIMPL	nosys
486146806Srwatson269	AUE_NULL	UNIMPL	nosys
487146806Srwatson270	AUE_NULL	UNIMPL	nosys
488146806Srwatson271	AUE_NULL	UNIMPL	nosys
489146806Srwatson272	AUE_NULL	MSTD	{ int getdents(int fd, char *buf, \
490146806Srwatson				    size_t count); }
491146806Srwatson273	AUE_NULL	UNIMPL	nosys
492146806Srwatson274	AUE_NULL	MSTD	{ int lchmod(char *path, mode_t mode); }
493147831Sjhb275	AUE_NULL	MNOPROTO { int lchown(char *path, uid_t uid, \
494146806Srwatson				    gid_t gid); } netbsd_lchown lchown_args \
495146806Srwatson				    int
496146806Srwatson276	AUE_NULL	MSTD	{ int lutimes(char *path, \
497146806Srwatson				    struct timeval *tptr); }
498146806Srwatson277	AUE_NULL	MNOPROTO	{ int msync(void *addr, size_t len, \
499146806Srwatson				    int flags); } netbsd_msync msync_args int
500146806Srwatson278	AUE_NULL	MSTD	{ int nstat(char *path, struct nstat *ub); }
501146806Srwatson279	AUE_NULL	MSTD	{ int nfstat(int fd, struct nstat *sb); }
502146806Srwatson280	AUE_NULL	MSTD	{ int nlstat(char *path, struct nstat *ub); }
503146806Srwatson281	AUE_NULL	UNIMPL	nosys
504146806Srwatson282	AUE_NULL	UNIMPL	nosys
505146806Srwatson283	AUE_NULL	UNIMPL	nosys
506146806Srwatson284	AUE_NULL	UNIMPL	nosys
507146806Srwatson285	AUE_NULL	UNIMPL	nosys
508146806Srwatson286	AUE_NULL	UNIMPL	nosys
509146806Srwatson287	AUE_NULL	UNIMPL	nosys
510146806Srwatson288	AUE_NULL	UNIMPL	nosys
511147813Sjhb; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
512147813Sjhb289	AUE_NULL	MSTD	{ ssize_t preadv(int fd, struct iovec *iovp, \
513147813Sjhb					u_int iovcnt, off_t offset); }
514147813Sjhb290	AUE_NULL	MSTD	{ ssize_t pwritev(int fd, struct iovec *iovp, \
515147813Sjhb					u_int iovcnt, off_t offset); }
516146806Srwatson291	AUE_NULL	UNIMPL	nosys
517146806Srwatson292	AUE_NULL	UNIMPL	nosys
518146806Srwatson293	AUE_NULL	UNIMPL	nosys
519146806Srwatson294	AUE_NULL	UNIMPL	nosys
520146806Srwatson295	AUE_NULL	UNIMPL	nosys
521146806Srwatson296	AUE_NULL	UNIMPL	nosys
52251138Salfred; XXX 297 is 300 in NetBSD 
523146806Srwatson297	AUE_NULL	MCOMPAT4	{ int fhstatfs( \
524146806Srwatson				    const struct fhandle *u_fhp, \
525146806Srwatson				    struct ostatfs *buf); }
526146806Srwatson298	AUE_NULL	MSTD	{ int fhopen(const struct fhandle *u_fhp, \
527146806Srwatson				    int flags); }
528146806Srwatson299	AUE_NULL	MSTD	{ int fhstat(const struct fhandle *u_fhp, \
529146806Srwatson				    struct stat *sb); }
53025537Sdfr; syscall numbers for FreeBSD
531146806Srwatson300	AUE_NULL	MSTD	{ int modnext(int modid); }
532146806Srwatson301	AUE_NULL	MSTD	{ int modstat(int modid, \
533146806Srwatson				    struct module_stat *stat); }
534146806Srwatson302	AUE_NULL	MSTD	{ int modfnext(int modid); }
535146806Srwatson303	AUE_NULL	MSTD	{ int modfind(const char *name); }
536146806Srwatson304	AUE_NULL	MSTD	{ int kldload(const char *file); }
537146806Srwatson305	AUE_NULL	MSTD	{ int kldunload(int fileid); }
538146806Srwatson306	AUE_NULL	MSTD	{ int kldfind(const char *file); }
539146806Srwatson307	AUE_NULL	MSTD	{ int kldnext(int fileid); }
540146806Srwatson308	AUE_NULL	MSTD	{ int kldstat(int fileid, struct \
541146806Srwatson				    kld_file_stat* stat); }
542146806Srwatson309	AUE_NULL	MSTD	{ int kldfirstmod(int fileid); }
543146806Srwatson310	AUE_NULL	MSTD	{ int getsid(pid_t pid); }
544146806Srwatson311	AUE_NULL	MSTD	{ int setresuid(uid_t ruid, uid_t euid, \
545146806Srwatson				    uid_t suid); }
546146806Srwatson312	AUE_NULL	MSTD	{ int setresgid(gid_t rgid, gid_t egid, \
547146806Srwatson				    gid_t sgid); }
548146806Srwatson313	AUE_NULL	OBSOL	signanosleep
549146806Srwatson314	AUE_NULL	NOSTD	{ int aio_return(struct aiocb *aiocbp); }
550146806Srwatson315	AUE_NULL	NOSTD	{ int aio_suspend( \
551146806Srwatson				    struct aiocb * const * aiocbp, int nent, \
552146806Srwatson				    const struct timespec *timeout); }
553146806Srwatson316	AUE_NULL	NOSTD	{ int aio_cancel(int fd, \
554146806Srwatson				    struct aiocb *aiocbp); }
555146806Srwatson317	AUE_NULL	NOSTD	{ int aio_error(struct aiocb *aiocbp); }
556151867Sdavidxu318	AUE_NULL	NOSTD	{ int oaio_read(struct oaiocb *aiocbp); }
557151867Sdavidxu319	AUE_NULL	NOSTD	{ int oaio_write(struct oaiocb *aiocbp); }
558151867Sdavidxu320	AUE_NULL	NOSTD	{ int olio_listio(int mode, \
559151867Sdavidxu				    struct oaiocb * const *acb_list, \
560151867Sdavidxu				    int nent, struct osigevent *sig); }
561146806Srwatson321	AUE_NULL	MSTD	{ int yield(void); }
562146806Srwatson322	AUE_NULL	OBSOL	thr_sleep
563146806Srwatson323	AUE_NULL	OBSOL	thr_wakeup
564146806Srwatson324	AUE_NULL	MSTD	{ int mlockall(int how); }
565146806Srwatson325	AUE_NULL	MSTD	{ int munlockall(void); }
566146806Srwatson326	AUE_NULL	MSTD	{ int __getcwd(u_char *buf, u_int buflen); }
56734925Sdufault
568146806Srwatson327	AUE_NULL	MSTD	{ int sched_setparam (pid_t pid, \
569146806Srwatson				    const struct sched_param *param); }
570146806Srwatson328	AUE_NULL	MSTD	{ int sched_getparam (pid_t pid, struct \
571146806Srwatson				    sched_param *param); }
57234925Sdufault
573146806Srwatson329	AUE_NULL	MSTD	{ int sched_setscheduler (pid_t pid, int \
574146806Srwatson				    policy, const struct sched_param \
575146806Srwatson				    *param); }
576146806Srwatson330	AUE_NULL	MSTD	{ int sched_getscheduler (pid_t pid); }
57734925Sdufault
578146806Srwatson331	AUE_NULL	MSTD	{ int sched_yield (void); }
579146806Srwatson332	AUE_NULL	MSTD	{ int sched_get_priority_max (int policy); }
580146806Srwatson333	AUE_NULL	MSTD	{ int sched_get_priority_min (int policy); }
581146806Srwatson334	AUE_NULL	MSTD	{ int sched_rr_get_interval (pid_t pid, \
582146806Srwatson				    struct timespec *interval); }
583146806Srwatson335	AUE_NULL	MSTD	{ int utrace(const void *addr, size_t len); }
584146806Srwatson336	AUE_NULL	MCOMPAT4	{ int sendfile(int fd, int s, \
585146806Srwatson				    off_t offset, size_t nbytes, \
586146806Srwatson				    struct sf_hdtr *hdtr, off_t *sbytes, \
587146806Srwatson				    int flags); }
588146806Srwatson337	AUE_NULL	MSTD	{ int kldsym(int fileid, int cmd, \
589146806Srwatson				    void *data); }
590146806Srwatson338	AUE_NULL	MSTD	{ int jail(struct jail *jail); }
591146806Srwatson339	AUE_NULL	UNIMPL	pioctl
592146806Srwatson340	AUE_NULL	MSTD	{ int sigprocmask(int how, \
593146806Srwatson				    const sigset_t *set, sigset_t *oset); }
594146806Srwatson341	AUE_NULL	MSTD	{ int sigsuspend(const sigset_t *sigmask); }
595146806Srwatson342	AUE_NULL	MCOMPAT4	{ int sigaction(int sig, const \
596146806Srwatson				    struct sigaction *act, \
597146806Srwatson				    struct sigaction *oact); }
598146806Srwatson343	AUE_NULL	MSTD	{ int sigpending(sigset_t *set); }
599146806Srwatson344	AUE_NULL	MCOMPAT4	{ int sigreturn( \
600146806Srwatson				    const struct ucontext4 *sigcntxp); }
601146806Srwatson345	AUE_NULL	MSTD	{ int sigtimedwait(const sigset_t *set, \
602146806Srwatson				    siginfo_t *info, \
603146806Srwatson				    const struct timespec *timeout); }
604146806Srwatson346	AUE_NULL	MSTD	{ int sigwaitinfo(const sigset_t *set, \
605146806Srwatson				    siginfo_t *info); }
606146806Srwatson347	AUE_NULL	MSTD	{ int __acl_get_file(const char *path, \
607146806Srwatson				    acl_type_t type, struct acl *aclp); }
608146806Srwatson348	AUE_NULL	MSTD	{ int __acl_set_file(const char *path, \
609146806Srwatson				    acl_type_t type, struct acl *aclp); }
610146806Srwatson349	AUE_NULL	MSTD	{ int __acl_get_fd(int filedes, \
611146806Srwatson				    acl_type_t type, struct acl *aclp); }
612146806Srwatson350	AUE_NULL	MSTD	{ int __acl_set_fd(int filedes, \
613146806Srwatson				    acl_type_t type, struct acl *aclp); }
614146806Srwatson351	AUE_NULL	MSTD	{ int __acl_delete_file(const char *path, \
615146806Srwatson				    acl_type_t type); }
616146806Srwatson352	AUE_NULL	MSTD	{ int __acl_delete_fd(int filedes, \
617146806Srwatson				    acl_type_t type); }
618146806Srwatson353	AUE_NULL	MSTD	{ int __acl_aclcheck_file(const char *path, \
619146806Srwatson				    acl_type_t type, struct acl *aclp); }
620146806Srwatson354	AUE_NULL	MSTD	{ int __acl_aclcheck_fd(int filedes, \
621146806Srwatson				    acl_type_t type, struct acl *aclp); }
622150619Scsjp355	AUE_NULL	MSTD	{ int extattrctl(const char *path, int cmd, \
623146806Srwatson				    const char *filename, int attrnamespace, \
624146806Srwatson				    const char *attrname); }
625150619Scsjp356	AUE_NULL	MSTD	{ int extattr_set_file(const char *path, \
626146806Srwatson				    int attrnamespace, const char *attrname, \
627146806Srwatson				    void *data, size_t nbytes); }
628150619Scsjp357	AUE_NULL	MSTD	{ ssize_t extattr_get_file(const char *path, \
629146806Srwatson				    int attrnamespace, const char *attrname, \
630146806Srwatson				    void *data, size_t nbytes); }
631150619Scsjp358	AUE_NULL	MSTD	{ int extattr_delete_file(const char *path, \
632146806Srwatson				    int attrnamespace, \
633146806Srwatson				    const char *attrname); }
634146806Srwatson359	AUE_NULL	NOSTD	{ int aio_waitcomplete( \
635146806Srwatson				    struct aiocb **aiocbp, \
636146806Srwatson				    struct timespec *timeout); }
637146806Srwatson360	AUE_NULL	MSTD	{ int getresuid(uid_t *ruid, uid_t *euid, \
638146806Srwatson				    uid_t *suid); }
639146806Srwatson361	AUE_NULL	MSTD	{ int getresgid(gid_t *rgid, gid_t *egid, \
640146806Srwatson				    gid_t *sgid); }
641146806Srwatson362	AUE_NULL	MSTD	{ int kqueue(void); }
642146806Srwatson363	AUE_NULL	MSTD	{ int kevent(int fd, \
643146806Srwatson				    struct kevent *changelist, int nchanges, \
644146806Srwatson				    struct kevent *eventlist, int nevents, \
645146806Srwatson				    const struct timespec *timeout); }
646146806Srwatson364	AUE_NULL	UNIMPL	__cap_get_proc
647146806Srwatson365	AUE_NULL	UNIMPL	__cap_set_proc
648146806Srwatson366	AUE_NULL	UNIMPL	__cap_get_fd
649146806Srwatson367	AUE_NULL	UNIMPL	__cap_get_file
650146806Srwatson368	AUE_NULL	UNIMPL	__cap_set_fd
651146806Srwatson369	AUE_NULL	UNIMPL	__cap_set_file
652146806Srwatson370	AUE_NULL	NODEF	lkmressys lkmressys nosys_args int
653150619Scsjp371	AUE_NULL	MSTD	{ int extattr_set_fd(int fd, \
654146806Srwatson				    int attrnamespace, const char *attrname, \
655146806Srwatson				    void *data, size_t nbytes); }
656150619Scsjp372	AUE_NULL	MSTD	{ ssize_t extattr_get_fd(int fd, \
657146806Srwatson				    int attrnamespace, const char *attrname, \
658146806Srwatson				    void *data, size_t nbytes); }
659150619Scsjp373	AUE_NULL	MSTD	{ int extattr_delete_fd(int fd, \
660146806Srwatson				    int attrnamespace, \
661146806Srwatson				    const char *attrname); }
662146806Srwatson374	AUE_NULL	MSTD	{ int __setugid(int flag); }
663146806Srwatson375	AUE_NULL	NOIMPL	{ int nfsclnt(int flag, caddr_t argp); }
664146806Srwatson376	AUE_NULL	MSTD	{ int eaccess(char *path, int flags); }
665146806Srwatson377	AUE_NULL	UNIMPL	afs_syscall
666146806Srwatson378	AUE_NULL	STD	{ int nmount(struct iovec *iovp, \
667146806Srwatson				    unsigned int iovcnt, int flags); }
668146806Srwatson379	AUE_NULL	MSTD	{ int kse_exit(void); }
669146806Srwatson380	AUE_NULL	MSTD	{ int kse_wakeup(struct kse_mailbox *mbx); }
670146806Srwatson381	AUE_NULL	MSTD	{ int kse_create(struct kse_mailbox *mbx, \
671146806Srwatson				    int newgroup); }
672146806Srwatson382	AUE_NULL	MSTD	{ int kse_thr_interrupt( \
673146806Srwatson				    struct kse_thr_mailbox *tmbx, int cmd, \
674146806Srwatson				    long data); }
675146806Srwatson383	AUE_NULL	MSTD	{ int kse_release(struct timespec *timeout); }
676146806Srwatson384	AUE_NULL	MSTD	{ int __mac_get_proc(struct mac *mac_p); }
677146806Srwatson385	AUE_NULL	MSTD	{ int __mac_set_proc(struct mac *mac_p); }
678146806Srwatson386	AUE_NULL	MSTD	{ int __mac_get_fd(int fd, \
679146806Srwatson				    struct mac *mac_p); }
680146806Srwatson387	AUE_NULL	MSTD	{ int __mac_get_file(const char *path_p, \
681146806Srwatson				    struct mac *mac_p); }
682146806Srwatson388	AUE_NULL	MSTD	{ int __mac_set_fd(int fd, \
683146806Srwatson				    struct mac *mac_p); }
684146806Srwatson389	AUE_NULL	MSTD	{ int __mac_set_file(const char *path_p, \
685146806Srwatson				    struct mac *mac_p); }
686146806Srwatson390	AUE_NULL	MSTD	{ int kenv(int what, const char *name, \
687146806Srwatson				    char *value, int len); }
688146806Srwatson391	AUE_NULL	MSTD	{ int lchflags(const char *path, int flags); }
689146806Srwatson392	AUE_NULL	MSTD	{ int uuidgen(struct uuid *store, \
690146806Srwatson				    int count); }
691146806Srwatson393	AUE_NULL	MSTD	{ int sendfile(int fd, int s, off_t offset, \
692146806Srwatson				    size_t nbytes, struct sf_hdtr *hdtr, \
693146806Srwatson				    off_t *sbytes, int flags); }
694146806Srwatson394	AUE_NULL	MSTD	{ int mac_syscall(const char *policy, \
695146806Srwatson				    int call, void *arg); }
696146806Srwatson395	AUE_NULL	MSTD	{ int getfsstat(struct statfs *buf, \
697146806Srwatson				    long bufsize, int flags); }
698146806Srwatson396	AUE_NULL	MSTD	{ int statfs(char *path, \
699146806Srwatson				    struct statfs *buf); }
700146806Srwatson397	AUE_NULL	MSTD	{ int fstatfs(int fd, struct statfs *buf); }
701146806Srwatson398	AUE_NULL	MSTD	{ int fhstatfs(const struct fhandle *u_fhp, \
702146806Srwatson				    struct statfs *buf); }
703146806Srwatson399	AUE_NULL	UNIMPL	nosys
704146806Srwatson400	AUE_NULL	MNOSTD	{ int ksem_close(semid_t id); }
705146806Srwatson401	AUE_NULL	MNOSTD	{ int ksem_post(semid_t id); }
706146806Srwatson402	AUE_NULL	MNOSTD	{ int ksem_wait(semid_t id); }
707146806Srwatson403	AUE_NULL	MNOSTD	{ int ksem_trywait(semid_t id); }
708146806Srwatson404	AUE_NULL	MNOSTD	{ int ksem_init(semid_t *idp, \
709146806Srwatson				    unsigned int value); }
710146806Srwatson405	AUE_NULL	MNOSTD	{ int ksem_open(semid_t *idp, \
711146806Srwatson				    const char *name, int oflag, \
712146806Srwatson				    mode_t mode, unsigned int value); }
713146806Srwatson406	AUE_NULL	MNOSTD	{ int ksem_unlink(const char *name); }
714146806Srwatson407	AUE_NULL	MNOSTD	{ int ksem_getvalue(semid_t id, int *val); }
715146806Srwatson408	AUE_NULL	MNOSTD	{ int ksem_destroy(semid_t id); }
716146806Srwatson409	AUE_NULL	MSTD	{ int __mac_get_pid(pid_t pid, \
717146806Srwatson				    struct mac *mac_p); }
718146806Srwatson410	AUE_NULL	MSTD	{ int __mac_get_link(const char *path_p, \
719146806Srwatson				    struct mac *mac_p); }
720146806Srwatson411	AUE_NULL	MSTD	{ int __mac_set_link(const char *path_p, \
721146806Srwatson				    struct mac *mac_p); }
722150619Scsjp412	AUE_NULL	MSTD	{ int extattr_set_link(const char *path, \
723146806Srwatson				    int attrnamespace, const char *attrname, \
724146806Srwatson				    void *data, size_t nbytes); }
725150619Scsjp413	AUE_NULL	MSTD	{ ssize_t extattr_get_link(const char *path, \
726146806Srwatson				    int attrnamespace, const char *attrname, \
727146806Srwatson				    void *data, size_t nbytes); }
728150619Scsjp414	AUE_NULL	MSTD	{ int extattr_delete_link(const char *path, \
729146806Srwatson				    int attrnamespace, \
730146806Srwatson				    const char *attrname); }
731146806Srwatson415	AUE_NULL	MSTD	{ int __mac_execve(char *fname, char **argv, \
732146806Srwatson				    char **envv, struct mac *mac_p); }
733146806Srwatson416	AUE_NULL	MSTD	{ int sigaction(int sig, \
734146806Srwatson				    const struct sigaction *act, \
735146806Srwatson				    struct sigaction *oact); }
736146806Srwatson417	AUE_NULL	MSTD	{ int sigreturn( \
737146806Srwatson				    const struct __ucontext *sigcntxp); }
738146806Srwatson418	AUE_NULL	UNIMPL	__xstat
739146806Srwatson419	AUE_NULL	UNIMPL	__xfstat
740146806Srwatson420	AUE_NULL	UNIMPL	__xlstat
741146806Srwatson421	AUE_NULL	MSTD	{ int getcontext(struct __ucontext *ucp); }
742146806Srwatson422	AUE_NULL	MSTD	{ int setcontext( \
743146806Srwatson				    const struct __ucontext *ucp); }
744146806Srwatson423	AUE_NULL	MSTD	{ int swapcontext(struct __ucontext *oucp, \
745146806Srwatson				    const struct __ucontext *ucp); }
746146806Srwatson424	AUE_NULL	MSTD	{ int swapoff(const char *name); }
747146806Srwatson425	AUE_NULL	MSTD	{ int __acl_get_link(const char *path, \
748146806Srwatson				    acl_type_t type, struct acl *aclp); }
749146806Srwatson426	AUE_NULL	MSTD	{ int __acl_set_link(const char *path, \
750146806Srwatson				    acl_type_t type, struct acl *aclp); }
751146806Srwatson427	AUE_NULL	MSTD	{ int __acl_delete_link(const char *path, \
752146806Srwatson				    acl_type_t type); }
753146806Srwatson428	AUE_NULL	MSTD	{ int __acl_aclcheck_link(const char *path, \
754146806Srwatson				    acl_type_t type, struct acl *aclp); }
755146806Srwatson429	AUE_NULL	MSTD	{ int sigwait(const sigset_t *set, \
756146806Srwatson				    int *sig); }
757146806Srwatson430	AUE_NULL	MSTD	{ int thr_create(ucontext_t *ctx, long *id, \
758146806Srwatson				    int flags); }
759146806Srwatson431	AUE_NULL	MSTD	{ void thr_exit(long *state); }
760146806Srwatson432	AUE_NULL	MSTD	{ int thr_self(long *id); }
761146806Srwatson433	AUE_NULL	MSTD	{ int thr_kill(long id, int sig); }
762146806Srwatson434	AUE_NULL	MSTD	{ int _umtx_lock(struct umtx *umtx); }
763146806Srwatson435	AUE_NULL	MSTD	{ int _umtx_unlock(struct umtx *umtx); }
764146806Srwatson436	AUE_NULL	MSTD	{ int jail_attach(int jid); }
765150619Scsjp437	AUE_NULL	MSTD	{ ssize_t extattr_list_fd(int fd, \
766146806Srwatson				    int attrnamespace, void *data, \
767146806Srwatson				    size_t nbytes); }
768150619Scsjp438	AUE_NULL	MSTD	{ ssize_t extattr_list_file( \
769146806Srwatson				    const char *path, int attrnamespace, \
770146806Srwatson				    void *data, size_t nbytes); }
771150619Scsjp439	AUE_NULL	MSTD	{ ssize_t extattr_list_link( \
772146806Srwatson				    const char *path, int attrnamespace, \
773146806Srwatson				    void *data, size_t nbytes); }
774146806Srwatson440	AUE_NULL	MSTD	{ int kse_switchin( \
775146806Srwatson				    struct kse_thr_mailbox *tmbx, \
776146806Srwatson				    int flags); }
777146806Srwatson441	AUE_NULL	MNOSTD	{ int ksem_timedwait(semid_t id, \
778151445Sstefanf				    const struct timespec *abstime); }
779146806Srwatson442	AUE_NULL	MSTD	{ int thr_suspend( \
780146806Srwatson				    const struct timespec *timeout); }
781146806Srwatson443	AUE_NULL	MSTD	{ int thr_wake(long id); }
782146806Srwatson444	AUE_NULL	MSTD	{ int kldunloadf(int fileid, int flags); }
783146806Srwatson445	AUE_NULL	MNOSTD	{ int audit(const void *record, \
784146806Srwatson				    u_int length); }
785146806Srwatson446	AUE_NULL	MNOSTD	{ int auditon(int cmd, void *data, \
786146806Srwatson				    u_int length); }
787146806Srwatson447	AUE_NULL	MNOSTD	{ int getauid(uid_t *auid); }
788146806Srwatson448	AUE_NULL	MNOSTD	{ int setauid(uid_t *auid); }
789146806Srwatson449	AUE_NULL	MNOSTD	{ int getaudit(struct auditinfo *auditinfo); }
790146806Srwatson450	AUE_NULL	MNOSTD	{ int setaudit(struct auditinfo *auditinfo); }
791146806Srwatson451	AUE_NULL	MNOSTD	{ int getaudit_addr( \
792146806Srwatson				    struct auditinfo_addr *auditinfo_addr, \
793146806Srwatson				    u_int length); }
794146806Srwatson452	AUE_NULL	MNOSTD	{ int setaudit_addr( \
795146806Srwatson				    struct auditinfo_addr *auditinfo_addr, \
796146806Srwatson				    u_int length); }
797146806Srwatson453	AUE_NULL	MNOSTD	{ int auditctl(int cmd, char *path); }
798146806Srwatson454	AUE_NULL	MSTD	{ int _umtx_op(struct umtx *umtx, int op, \
799146806Srwatson				    long id, void *uaddr, void *uaddr2); }
800146806Srwatson455	AUE_NULL	MSTD	{ int thr_new(struct thr_param *param, \
801146806Srwatson				    int param_size); }
802151316Sdavidxu456	AUE_NULL	MSTD	{ int sigqueue(pid_t pid, int signum, void *value); }
803152845Sdavidxu457	AUE_NULL	MNOSTD	{ int mq_open(const char *path, int flags, \
804152845Sdavidxu				    mode_t mode, const struct mq_attr *attr); }
805152845Sdavidxu458	AUE_NULL	MNOSTD	{ int mq_setattr(mqd_t mqd,		\
806152845Sdavidxu				    const struct mq_attr *attr,		\
807152845Sdavidxu				    struct mq_attr *oattr); }
808152845Sdavidxu459	AUE_NULL	MNOSTD	{ int mq_timedreceive(mqd_t mqd,	\
809152845Sdavidxu				    char *msg_ptr, size_t msg_len,	\
810152845Sdavidxu				    unsigned *msg_prio,			\
811152845Sdavidxu				    const struct timespec *abs_timeout); }
812152845Sdavidxu460	AUE_NULL	MNOSTD  { int mq_timedsend(mqd_t mqd,		\
813152845Sdavidxu				    const char *msg_ptr, size_t msg_len,\
814152845Sdavidxu				    unsigned msg_prio,			\
815152845Sdavidxu				    const struct timespec *abs_timeout);}
816152845Sdavidxu461	AUE_NULL	MNOSTD	{ int mq_notify(mqd_t mqd,		\
817152845Sdavidxu				    const struct sigevent *sigev); }
818152845Sdavidxu462	AUE_NULL	MNOSTD	{ int mq_unlink(const char *path); }
819105144Speter; Please copy any additions and changes to the following compatability tables:
820123408Speter; sys/compat/freebsd32/syscalls.master
821