2 ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
3 ; from: src/sys/kern/syscalls.master 1.107
5 ; System call name/number master file.
6 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
8 ; Columns: number audit type name alt{name,tag,rtyp}/comments
9 ; number system call number, must be in order
10 ; audit the audit event associated with the system call
11 ; A value of AUE_NULL means no auditing, but it also means that
12 ; there is no audit event for the call at this time. For the
13 ; case where the event exists, but we don't want auditing, the
14 ; event should be #defined to AUE_NULL in audit_kevents.h.
15 ; type one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
16 ; COMPAT7, NODEF, NOARGS, NOPROTO, NOSTD
17 ; The COMPAT* options may be combined with one or more NO*
18 ; options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
19 ; name psuedo-prototype of syscall routine
20 ; If one of the following alts is different, then all appear:
21 ; altname name of system call if different
22 ; alttag name of args struct tag if different from [o]`name'"_args"
23 ; altrtyp return type if not int (bogus - syscalls always return int)
24 ; for UNIMPL/OBSOL, name continues with comments
28 ; COMPAT included on COMPAT #ifdef
29 ; COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat)
30 ; COMPAT6 included on COMPAT6 #ifdef (FreeBSD 6 compat)
31 ; COMPAT7 included on COMPAT7 #ifdef (FreeBSD 7 compat)
32 ; COMPAT10 included on COMPAT10 #ifdef (FreeBSD 10 compat)
33 ; OBSOL obsolete, not included in system, only specifies name
34 ; UNIMPL not implemented, placeholder only
35 ; NOSTD implemented but as a lkm that can be statically
36 ; compiled in; sysent entry will be filled with lkmressys
37 ; so the SYSCALL_MODULE macro works
38 ; NOARGS same as STD except do not create structure in sys/sysproto.h
39 ; NODEF same as STD except only have the entry in the syscall table
40 ; added. Meaning - do not create structure or function
41 ; prototype in sys/sysproto.h
42 ; NOPROTO same as STD except do not create structure or
43 ; function prototype in sys/sysproto.h. Does add a
44 ; definition to syscall.h besides adding a sysent.
46 ; #ifdef's, etc. may be included, and are copied to the output files.
48 #include <sys/param.h>
49 #include <sys/sysent.h>
50 #include <sys/sysproto.h>
51 #include <sys/mount.h>
52 #include <sys/socket.h>
53 #include <compat/freebsd32/freebsd32.h>
54 #include <compat/freebsd32/freebsd32_proto.h>
56 #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
57 #define PAD64_REQUIRED
60 ; Reserved/unimplemented system calls in the range 0-150 inclusive
61 ; are reserved for use in future Berkeley releases.
62 ; Additional system calls implemented in vendor and other
63 ; redistributions should be placed in the reserved range at the end
64 ; of the current calls.
66 0 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int
67 1 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \
69 2 AUE_FORK NOPROTO { int fork(void); }
70 3 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \
72 4 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \
74 5 AUE_OPEN_RWTC NOPROTO { int open(char *path, int flags, \
76 6 AUE_CLOSE NOPROTO { int close(int fd); }
77 7 AUE_WAIT4 STD { int freebsd32_wait4(int pid, int *status, \
78 int options, struct rusage32 *rusage); }
79 8 AUE_CREAT OBSOL old creat
80 9 AUE_LINK NOPROTO { int link(char *path, char *link); }
81 10 AUE_UNLINK NOPROTO { int unlink(char *path); }
82 11 AUE_NULL OBSOL execv
83 12 AUE_CHDIR NOPROTO { int chdir(char *path); }
84 13 AUE_FCHDIR NOPROTO { int fchdir(int fd); }
85 14 AUE_MKNOD NOPROTO { int mknod(char *path, int mode, int dev); }
86 15 AUE_CHMOD NOPROTO { int chmod(char *path, int mode); }
87 16 AUE_CHOWN NOPROTO { int chown(char *path, int uid, int gid); }
88 17 AUE_NULL NOPROTO { int obreak(char *nsize); } break \
90 18 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \
91 struct statfs32 *buf, long bufsize, \
93 19 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int offset, \
95 20 AUE_GETPID NOPROTO { pid_t getpid(void); }
96 21 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \
97 int flags, caddr_t data); }
98 22 AUE_UMOUNT NOPROTO { int unmount(char *path, int flags); }
99 23 AUE_SETUID NOPROTO { int setuid(uid_t uid); }
100 24 AUE_GETUID NOPROTO { uid_t getuid(void); }
101 25 AUE_GETEUID NOPROTO { uid_t geteuid(void); }
102 26 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \
103 caddr_t addr, int data); }
104 27 AUE_RECVMSG STD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
106 28 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
108 29 AUE_RECVFROM STD { int freebsd32_recvfrom(int s, uint32_t buf, \
109 uint32_t len, int flags, uint32_t from, \
110 uint32_t fromlenaddr); }
111 30 AUE_ACCEPT NOPROTO { int accept(int s, caddr_t name, \
113 31 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, caddr_t asa, \
115 32 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, caddr_t asa, \
117 33 AUE_ACCESS NOPROTO { int access(char *path, int amode); }
118 34 AUE_CHFLAGS NOPROTO { int chflags(const char *path, u_long flags); }
119 35 AUE_FCHFLAGS NOPROTO { int fchflags(int fd, u_long flags); }
120 36 AUE_SYNC NOPROTO { int sync(void); }
121 37 AUE_KILL NOPROTO { int kill(int pid, int signum); }
122 38 AUE_STAT COMPAT { int freebsd32_stat(char *path, \
123 struct ostat32 *ub); }
124 39 AUE_GETPPID NOPROTO { pid_t getppid(void); }
125 40 AUE_LSTAT COMPAT { int freebsd32_lstat(char *path, \
127 41 AUE_DUP NOPROTO { int dup(u_int fd); }
128 42 AUE_PIPE COMPAT10 { int freebsd32_pipe(void); }
129 43 AUE_GETEGID NOPROTO { gid_t getegid(void); }
130 44 AUE_PROFILE NOPROTO { int profil(caddr_t samples, size_t size, \
131 size_t offset, u_int scale); }
132 45 AUE_KTRACE NOPROTO { int ktrace(const char *fname, int ops, \
133 int facs, int pid); }
134 46 AUE_SIGACTION COMPAT { int freebsd32_sigaction( int signum, \
135 struct osigaction32 *nsa, \
136 struct osigaction32 *osa); }
137 47 AUE_GETGID NOPROTO { gid_t getgid(void); }
138 48 AUE_SIGPROCMASK COMPAT { int freebsd32_sigprocmask(int how, \
140 49 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \
142 50 AUE_SETLOGIN NOPROTO { int setlogin(char *namebuf); }
143 51 AUE_ACCT NOPROTO { int acct(char *path); }
144 52 AUE_SIGPENDING COMPAT { int freebsd32_sigpending(void); }
145 53 AUE_SIGALTSTACK STD { int freebsd32_sigaltstack( \
146 struct sigaltstack32 *ss, \
147 struct sigaltstack32 *oss); }
148 54 AUE_IOCTL STD { int freebsd32_ioctl(int fd, uint32_t com, \
149 struct md_ioctl32 *data); }
150 55 AUE_REBOOT NOPROTO { int reboot(int opt); }
151 56 AUE_REVOKE NOPROTO { int revoke(char *path); }
152 57 AUE_SYMLINK NOPROTO { int symlink(char *path, char *link); }
153 58 AUE_READLINK NOPROTO { ssize_t readlink(char *path, char *buf, \
155 59 AUE_EXECVE STD { int freebsd32_execve(char *fname, \
156 uint32_t *argv, uint32_t *envv); }
157 60 AUE_UMASK NOPROTO { int umask(int newmask); } umask \
159 61 AUE_CHROOT NOPROTO { int chroot(char *path); }
160 62 AUE_FSTAT COMPAT { int freebsd32_fstat(int fd, \
161 struct ostat32 *ub); }
162 63 AUE_NULL OBSOL ogetkerninfo
163 64 AUE_NULL COMPAT { int freebsd32_getpagesize( \
165 65 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \
167 66 AUE_VFORK NOPROTO { int vfork(void); }
168 67 AUE_NULL OBSOL vread
169 68 AUE_NULL OBSOL vwrite
170 69 AUE_SBRK NOPROTO { int sbrk(int incr); }
171 70 AUE_SSTK NOPROTO { int sstk(int incr); }
172 71 AUE_MMAP COMPAT|NOPROTO { int mmap(void *addr, int len, \
173 int prot, int flags, int fd, int pos); }
174 72 AUE_O_VADVISE NOPROTO { int ovadvise(int anom); } vadvise \
176 73 AUE_MUNMAP NOPROTO { int munmap(void *addr, size_t len); }
177 74 AUE_MPROTECT STD { int freebsd32_mprotect(void *addr, \
178 size_t len, int prot); }
179 75 AUE_MADVISE NOPROTO { int madvise(void *addr, size_t len, \
181 76 AUE_NULL OBSOL vhangup
182 77 AUE_NULL OBSOL vlimit
183 78 AUE_MINCORE NOPROTO { int mincore(const void *addr, size_t len, \
185 79 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \
187 80 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \
189 81 AUE_GETPGRP NOPROTO { int getpgrp(void); }
190 82 AUE_SETPGRP NOPROTO { int setpgid(int pid, int pgid); }
191 83 AUE_SETITIMER STD { int freebsd32_setitimer(u_int which, \
192 struct itimerval32 *itv, \
193 struct itimerval32 *oitv); }
194 84 AUE_NULL OBSOL owait
196 85 AUE_SWAPON NOPROTO { int swapon(char *name); }
197 86 AUE_GETITIMER STD { int freebsd32_getitimer(u_int which, \
198 struct itimerval32 *itv); }
199 87 AUE_O_GETHOSTNAME OBSOL ogethostname
200 88 AUE_O_SETHOSTNAME OBSOL osethostname
201 89 AUE_GETDTABLESIZE NOPROTO { int getdtablesize(void); }
202 90 AUE_DUP2 NOPROTO { int dup2(u_int from, u_int to); }
203 91 AUE_NULL UNIMPL getdopt
204 92 AUE_FCNTL STD { int freebsd32_fcntl(int fd, int cmd, \
206 93 AUE_SELECT STD { int freebsd32_select(int nd, fd_set *in, \
207 fd_set *ou, fd_set *ex, \
208 struct timeval32 *tv); }
209 94 AUE_NULL UNIMPL setdopt
210 95 AUE_FSYNC NOPROTO { int fsync(int fd); }
211 96 AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \
213 97 AUE_SOCKET NOPROTO { int socket(int domain, int type, \
215 98 AUE_CONNECT NOPROTO { int connect(int s, caddr_t name, \
217 99 AUE_NULL OBSOL oaccept
218 100 AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); }
219 101 AUE_NULL OBSOL osend
220 102 AUE_NULL OBSOL orecv
221 103 AUE_SIGRETURN COMPAT { int freebsd32_sigreturn( \
222 struct ia32_sigcontext3 *sigcntxp); }
223 104 AUE_BIND NOPROTO { int bind(int s, caddr_t name, \
225 105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \
226 int name, caddr_t val, int valsize); }
227 106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); }
228 107 AUE_NULL OBSOL vtimes
229 108 AUE_O_SIGVEC COMPAT { int freebsd32_sigvec(int signum, \
230 struct sigvec32 *nsv, \
231 struct sigvec32 *osv); }
232 109 AUE_O_SIGBLOCK COMPAT { int freebsd32_sigblock(int mask); }
233 110 AUE_O_SIGSETMASK COMPAT { int freebsd32_sigsetmask( int mask); }
234 111 AUE_SIGSUSPEND COMPAT { int freebsd32_sigsuspend( int mask); }
235 112 AUE_O_SIGSTACK COMPAT { int freebsd32_sigstack( \
236 struct sigstack32 *nss, \
237 struct sigstack32 *oss); }
238 113 AUE_NULL OBSOL orecvmsg
239 114 AUE_NULL OBSOL osendmsg
240 115 AUE_NULL OBSOL vtrace
241 116 AUE_GETTIMEOFDAY STD { int freebsd32_gettimeofday( \
242 struct timeval32 *tp, \
243 struct timezone *tzp); }
244 117 AUE_GETRUSAGE STD { int freebsd32_getrusage(int who, \
245 struct rusage32 *rusage); }
246 118 AUE_GETSOCKOPT NOPROTO { int getsockopt(int s, int level, \
247 int name, caddr_t val, int *avalsize); }
248 119 AUE_NULL UNIMPL resuba (BSD/OS 2.x)
249 120 AUE_READV STD { int freebsd32_readv(int fd, \
250 struct iovec32 *iovp, u_int iovcnt); }
251 121 AUE_WRITEV STD { int freebsd32_writev(int fd, \
252 struct iovec32 *iovp, u_int iovcnt); }
253 122 AUE_SETTIMEOFDAY STD { int freebsd32_settimeofday( \
254 struct timeval32 *tv, \
255 struct timezone *tzp); }
256 123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); }
257 124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); }
258 125 AUE_RECVFROM OBSOL orecvfrom
259 126 AUE_SETREUID NOPROTO { int setreuid(int ruid, int euid); }
260 127 AUE_SETREGID NOPROTO { int setregid(int rgid, int egid); }
261 128 AUE_RENAME NOPROTO { int rename(char *from, char *to); }
262 129 AUE_TRUNCATE COMPAT|NOPROTO { int truncate(char *path, \
264 130 AUE_FTRUNCATE COMPAT|NOPROTO { int ftruncate(int fd, int length); }
265 131 AUE_FLOCK NOPROTO { int flock(int fd, int how); }
266 132 AUE_MKFIFO NOPROTO { int mkfifo(char *path, int mode); }
267 133 AUE_SENDTO NOPROTO { int sendto(int s, caddr_t buf, \
268 size_t len, int flags, caddr_t to, \
270 134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); }
271 135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \
272 int protocol, int *rsv); }
273 136 AUE_MKDIR NOPROTO { int mkdir(char *path, int mode); }
274 137 AUE_RMDIR NOPROTO { int rmdir(char *path); }
275 138 AUE_UTIMES STD { int freebsd32_utimes(char *path, \
276 struct timeval32 *tptr); }
277 139 AUE_NULL OBSOL 4.2 sigreturn
278 140 AUE_ADJTIME STD { int freebsd32_adjtime( \
279 struct timeval32 *delta, \
280 struct timeval32 *olddelta); }
281 141 AUE_GETPEERNAME OBSOL ogetpeername
282 142 AUE_SYSCTL OBSOL ogethostid
283 143 AUE_SYSCTL OBSOL sethostid
284 144 AUE_GETRLIMIT OBSOL getrlimit
285 145 AUE_SETRLIMIT OBSOL setrlimit
286 146 AUE_KILLPG OBSOL killpg
287 147 AUE_SETSID NOPROTO { int setsid(void); }
288 148 AUE_QUOTACTL NOPROTO { int quotactl(char *path, int cmd, int uid, \
290 149 AUE_O_QUOTA OBSOL oquota
291 150 AUE_GETSOCKNAME OBSOL ogetsockname
293 ; Syscalls 151-180 inclusive are reserved for vendor-specific
294 ; system calls. (This includes various calls added for compatibity
295 ; with other Unix variants.)
296 ; Some of these calls are now supported by BSD...
297 151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x)
298 152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x)
299 153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x)
300 ; 154 is initialised by the NLM code, if present.
301 154 AUE_NULL UNIMPL nlm_syscall
302 ; 155 is initialized by the NFS code, if present.
303 ; XXX this is a problem!!!
304 155 AUE_NFS_SVC UNIMPL nfssvc
305 156 AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \
306 char *buf, u_int count, uint32_t *basep); }
307 157 AUE_STATFS COMPAT4 { int freebsd32_statfs(char *path, \
308 struct statfs32 *buf); }
309 158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \
310 struct statfs32 *buf); }
311 159 AUE_NULL UNIMPL nosys
312 160 AUE_LGETFH UNIMPL lgetfh
313 161 AUE_NFS_GETFH NOPROTO { int getfh(char *fname, \
314 struct fhandle *fhp); }
315 162 AUE_SYSCTL OBSOL getdomainname
316 163 AUE_SYSCTL OBSOL setdomainname
317 164 AUE_NULL OBSOL uname
318 165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); }
319 166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \
320 struct rtprio *rtp); }
321 167 AUE_NULL UNIMPL nosys
322 168 AUE_NULL UNIMPL nosys
323 169 AUE_SEMSYS NOSTD { int freebsd32_semsys(int which, int a2, \
324 int a3, int a4, int a5); }
325 170 AUE_MSGSYS NOSTD { int freebsd32_msgsys(int which, int a2, \
326 int a3, int a4, int a5, int a6); }
327 171 AUE_SHMSYS NOSTD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \
328 uint32_t a3, uint32_t a4); }
329 172 AUE_NULL UNIMPL nosys
330 173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \
331 size_t nbyte, int pad, \
332 uint32_t offset1, uint32_t offset2); }
333 174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \
334 const void *buf, size_t nbyte, int pad, \
335 uint32_t offset1, uint32_t offset2); }
336 175 AUE_NULL UNIMPL nosys
337 176 AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); }
338 177 AUE_NULL UNIMPL sfork (BSD/OS 2.x)
339 178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x)
340 179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x)
341 180 AUE_NULL UNIMPL nosys
343 ; Syscalls 181-199 are used by/reserved for BSD
344 181 AUE_SETGID NOPROTO { int setgid(gid_t gid); }
345 182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); }
346 183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); }
347 184 AUE_NULL UNIMPL lfs_bmapv
348 185 AUE_NULL UNIMPL lfs_markv
349 186 AUE_NULL UNIMPL lfs_segclean
350 187 AUE_NULL UNIMPL lfs_segwait
351 188 AUE_STAT STD { int freebsd32_stat(char *path, \
352 struct stat32 *ub); }
353 189 AUE_FSTAT STD { int freebsd32_fstat(int fd, \
354 struct stat32 *ub); }
355 190 AUE_LSTAT STD { int freebsd32_lstat(char *path, \
356 struct stat32 *ub); }
357 191 AUE_PATHCONF NOPROTO { int pathconf(char *path, int name); }
358 192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); }
359 193 AUE_NULL UNIMPL nosys
360 194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \
361 struct rlimit *rlp); } getrlimit \
363 195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \
364 struct rlimit *rlp); } setrlimit \
366 196 AUE_GETDIRENTRIES STD { int freebsd32_getdirentries(int fd, \
367 char *buf, u_int count, int32_t *basep); }
368 197 AUE_MMAP COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \
369 size_t len, int prot, int flags, int fd, \
370 int pad, uint32_t pos1, uint32_t pos2); }
371 198 AUE_NULL NOPROTO { int nosys(void); } __syscall \
373 199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \
374 uint32_t offset1, uint32_t offset2, \
376 200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(char *path, \
377 int pad, uint32_t length1, \
379 201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \
380 uint32_t length1, uint32_t length2); }
381 202 AUE_SYSCTL STD { int freebsd32_sysctl(int *name, \
382 u_int namelen, void *old, \
383 uint32_t *oldlenp, void *new, \
385 203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \
387 204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \
389 205 AUE_UNDELETE NOPROTO { int undelete(char *path); }
390 206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \
391 struct timeval32 *tptr); }
392 207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); }
393 208 AUE_NULL UNIMPL newreboot (NetBSD)
394 209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \
398 ; The following are reserved for loadable syscalls
400 210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
401 211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
402 212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
403 213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
404 214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
405 215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
406 216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
407 217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
408 218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
409 219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
412 ; The following were introduced with NetBSD/4.4Lite-2
413 ; They are initialized by their respective modules/sysinits
415 220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32_semctl( \
416 int semid, int semnum, \
417 int cmd, union semun32 *arg); }
418 221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \
420 222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \
421 struct sembuf *sops, u_int nsops); }
422 223 AUE_NULL UNIMPL semconfig
423 224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \
424 int msqid, int cmd, \
425 struct msqid_ds32_old *buf); }
426 225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); }
427 226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, void *msgp, \
428 size_t msgsz, int msgflg); }
429 227 AUE_MSGRCV NOSTD { int freebsd32_msgrcv(int msqid, void *msgp, \
430 size_t msgsz, long msgtyp, int msgflg); }
431 228 AUE_SHMAT NOSTD|NOPROTO { int shmat(int shmid, void *shmaddr, \
433 229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \
434 int shmid, int cmd, \
435 struct shmid_ds32_old *buf); }
436 230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(void *shmaddr); }
437 231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \
440 232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \
441 struct timespec32 *tp); }
442 233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \
443 const struct timespec32 *tp); }
444 234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \
445 struct timespec32 *tp); }
446 235 AUE_NULL STD { int freebsd32_ktimer_create(\
447 clockid_t clock_id, \
448 struct sigevent32 *evp, int *timerid); }
449 236 AUE_NULL NOPROTO { int ktimer_delete(int timerid); }
450 237 AUE_NULL STD { int freebsd32_ktimer_settime(int timerid,\
452 const struct itimerspec32 *value, \
453 struct itimerspec32 *ovalue); }
454 238 AUE_NULL STD { int freebsd32_ktimer_gettime(int timerid,\
455 struct itimerspec32 *value); }
456 239 AUE_NULL NOPROTO { int ktimer_getoverrun(int timerid); }
457 240 AUE_NULL STD { int freebsd32_nanosleep( \
458 const struct timespec32 *rqtp, \
459 struct timespec32 *rmtp); }
460 241 AUE_NULL NOPROTO { int ffclock_getcounter(ffcounter *ffcount); }
461 242 AUE_NULL NOPROTO { int ffclock_setestimate( \
462 struct ffclock_estimate *cest); }
463 243 AUE_NULL NOPROTO { int ffclock_getestimate( \
464 struct ffclock_estimate *cest); }
465 244 AUE_NULL STD { int freebsd32_clock_nanosleep( \
466 clockid_t clock_id, int flags, \
467 const struct timespec32 *rqtp, \
468 struct timespec32 *rmtp); }
469 245 AUE_NULL UNIMPL nosys
470 246 AUE_NULL UNIMPL nosys
471 247 AUE_NULL STD { int freebsd32_clock_getcpuclockid2(\
472 uint32_t id1, uint32_t id2,\
473 int which, clockid_t *clock_id); }
474 248 AUE_NULL UNIMPL ntp_gettime
475 249 AUE_NULL UNIMPL nosys
476 ; syscall numbers initially used in OpenBSD
477 250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \
479 251 AUE_RFORK NOPROTO { int rfork(int flags); }
480 252 AUE_POLL OBSOL openbsd_poll
481 253 AUE_ISSETUGID NOPROTO { int issetugid(void); }
482 254 AUE_LCHOWN NOPROTO { int lchown(char *path, int uid, int gid); }
483 255 AUE_AIO_READ STD { int freebsd32_aio_read( \
484 struct aiocb32 *aiocbp); }
485 256 AUE_AIO_WRITE STD { int freebsd32_aio_write( \
486 struct aiocb32 *aiocbp); }
487 257 AUE_LIO_LISTIO STD { int freebsd32_lio_listio(int mode, \
488 struct aiocb32 * const *acb_list, \
489 int nent, struct sigevent32 *sig); }
490 258 AUE_NULL UNIMPL nosys
491 259 AUE_NULL UNIMPL nosys
492 260 AUE_NULL UNIMPL nosys
493 261 AUE_NULL UNIMPL nosys
494 262 AUE_NULL UNIMPL nosys
495 263 AUE_NULL UNIMPL nosys
496 264 AUE_NULL UNIMPL nosys
497 265 AUE_NULL UNIMPL nosys
498 266 AUE_NULL UNIMPL nosys
499 267 AUE_NULL UNIMPL nosys
500 268 AUE_NULL UNIMPL nosys
501 269 AUE_NULL UNIMPL nosys
502 270 AUE_NULL UNIMPL nosys
503 271 AUE_NULL UNIMPL nosys
504 272 AUE_O_GETDENTS NOPROTO { int getdents(int fd, char *buf, \
506 273 AUE_NULL UNIMPL nosys
507 274 AUE_LCHMOD NOPROTO { int lchmod(char *path, mode_t mode); }
508 275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \
509 gid_t gid); } netbsd_lchown \
511 276 AUE_LUTIMES STD { int freebsd32_lutimes(char *path, \
512 struct timeval32 *tptr); }
513 277 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \
514 int flags); } netbsd_msync msync_args int
515 278 AUE_STAT NOPROTO { int nstat(char *path, struct nstat *ub); }
516 279 AUE_FSTAT NOPROTO { int nfstat(int fd, struct nstat *sb); }
517 280 AUE_LSTAT NOPROTO { int nlstat(char *path, struct nstat *ub); }
518 281 AUE_NULL UNIMPL nosys
519 282 AUE_NULL UNIMPL nosys
520 283 AUE_NULL UNIMPL nosys
521 284 AUE_NULL UNIMPL nosys
522 285 AUE_NULL UNIMPL nosys
523 286 AUE_NULL UNIMPL nosys
524 287 AUE_NULL UNIMPL nosys
525 288 AUE_NULL UNIMPL nosys
526 ; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
527 289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \
528 struct iovec32 *iovp, \
530 uint32_t offset1, uint32_t offset2); }
531 290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \
532 struct iovec32 *iovp, \
534 uint32_t offset1, uint32_t offset2); }
535 291 AUE_NULL UNIMPL nosys
536 292 AUE_NULL UNIMPL nosys
537 293 AUE_NULL UNIMPL nosys
538 294 AUE_NULL UNIMPL nosys
539 295 AUE_NULL UNIMPL nosys
540 296 AUE_NULL UNIMPL nosys
541 ; XXX 297 is 300 in NetBSD
542 297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \
543 const struct fhandle *u_fhp, \
544 struct statfs32 *buf); }
545 298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \
547 299 AUE_FHSTAT NOPROTO { int fhstat(const struct fhandle *u_fhp, \
549 ; syscall numbers for FreeBSD
550 300 AUE_NULL NOPROTO { int modnext(int modid); }
551 301 AUE_NULL STD { int freebsd32_modstat(int modid, \
552 struct module_stat32* stat); }
553 302 AUE_NULL NOPROTO { int modfnext(int modid); }
554 303 AUE_NULL NOPROTO { int modfind(const char *name); }
555 304 AUE_MODLOAD NOPROTO { int kldload(const char *file); }
556 305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); }
557 306 AUE_NULL NOPROTO { int kldfind(const char *file); }
558 307 AUE_NULL NOPROTO { int kldnext(int fileid); }
559 308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \
560 struct kld32_file_stat* stat); }
561 309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); }
562 310 AUE_GETSID NOPROTO { int getsid(pid_t pid); }
563 311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \
565 312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \
567 313 AUE_NULL OBSOL signanosleep
568 314 AUE_AIO_RETURN STD { int freebsd32_aio_return( \
569 struct aiocb32 *aiocbp); }
570 315 AUE_AIO_SUSPEND STD { int freebsd32_aio_suspend( \
571 struct aiocb32 * const * aiocbp, int nent, \
572 const struct timespec32 *timeout); }
573 316 AUE_AIO_CANCEL NOPROTO { int aio_cancel(int fd, \
574 struct aiocb *aiocbp); }
575 317 AUE_AIO_ERROR STD { int freebsd32_aio_error( \
576 struct aiocb32 *aiocbp); }
577 318 AUE_AIO_READ COMPAT6 { int freebsd32_aio_read( \
578 struct oaiocb32 *aiocbp); }
579 319 AUE_AIO_WRITE COMPAT6 { int freebsd32_aio_write( \
580 struct oaiocb32 *aiocbp); }
581 320 AUE_LIO_LISTIO COMPAT6 { int freebsd32_lio_listio(int mode, \
582 struct oaiocb32 * const *acb_list, \
583 int nent, struct osigevent32 *sig); }
584 321 AUE_NULL NOPROTO { int yield(void); }
585 322 AUE_NULL OBSOL thr_sleep
586 323 AUE_NULL OBSOL thr_wakeup
587 324 AUE_MLOCKALL NOPROTO { int mlockall(int how); }
588 325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); }
589 326 AUE_GETCWD NOPROTO { int __getcwd(char *buf, size_t buflen); }
591 327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \
592 const struct sched_param *param); }
593 328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \
594 struct sched_param *param); }
596 329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \
598 const struct sched_param *param); }
599 330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); }
601 331 AUE_NULL NOPROTO { int sched_yield (void); }
602 332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); }
603 333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); }
604 334 AUE_NULL NOPROTO { int sched_rr_get_interval (pid_t pid, \
605 struct timespec *interval); }
606 335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); }
607 336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \
608 uint32_t offset1, uint32_t offset2, \
609 size_t nbytes, struct sf_hdtr32 *hdtr, \
610 off_t *sbytes, int flags); }
611 337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \
613 338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); }
614 339 AUE_NULL UNIMPL pioctl
615 340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \
616 const sigset_t *set, sigset_t *oset); }
617 341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); }
618 342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \
619 struct sigaction32 *act, \
620 struct sigaction32 *oact); }
621 343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); }
622 344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \
623 const struct freebsd4_freebsd32_ucontext *sigcntxp); }
624 345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \
626 const struct timespec *timeout); }
627 346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \
629 347 AUE_ACL_GET_FILE NOPROTO { int __acl_get_file(const char *path, \
630 acl_type_t type, struct acl *aclp); }
631 348 AUE_ACL_SET_FILE NOPROTO { int __acl_set_file(const char *path, \
632 acl_type_t type, struct acl *aclp); }
633 349 AUE_ACL_GET_FD NOPROTO { int __acl_get_fd(int filedes, \
634 acl_type_t type, struct acl *aclp); }
635 350 AUE_ACL_SET_FD NOPROTO { int __acl_set_fd(int filedes, \
636 acl_type_t type, struct acl *aclp); }
637 351 AUE_ACL_DELETE_FILE NOPROTO { int __acl_delete_file(const char *path, \
639 352 AUE_ACL_DELETE_FD NOPROTO { int __acl_delete_fd(int filedes, \
641 353 AUE_ACL_CHECK_FILE NOPROTO { int __acl_aclcheck_file(const char *path, \
642 acl_type_t type, struct acl *aclp); }
643 354 AUE_ACL_CHECK_FD NOPROTO { int __acl_aclcheck_fd(int filedes, \
644 acl_type_t type, struct acl *aclp); }
645 355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \
646 const char *filename, int attrnamespace, \
647 const char *attrname); }
648 356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \
649 const char *path, int attrnamespace, \
650 const char *attrname, void *data, \
652 357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \
653 const char *path, int attrnamespace, \
654 const char *attrname, void *data, \
656 358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \
657 const char *path, int attrnamespace, \
658 const char *attrname); }
659 359 AUE_AIO_WAITCOMPLETE STD { int freebsd32_aio_waitcomplete( \
660 struct aiocb32 **aiocbp, \
661 struct timespec32 *timeout); }
662 360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \
664 361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \
666 362 AUE_KQUEUE NOPROTO { int kqueue(void); }
667 363 AUE_KEVENT STD { int freebsd32_kevent(int fd, \
668 const struct kevent32 *changelist, \
670 struct kevent32 *eventlist, int nevents, \
671 const struct timespec32 *timeout); }
672 364 AUE_NULL UNIMPL __cap_get_proc
673 365 AUE_NULL UNIMPL __cap_set_proc
674 366 AUE_NULL UNIMPL __cap_get_fd
675 367 AUE_NULL UNIMPL __cap_get_file
676 368 AUE_NULL UNIMPL __cap_set_fd
677 369 AUE_NULL UNIMPL __cap_set_file
678 370 AUE_NULL UNIMPL nosys
679 371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \
680 int attrnamespace, const char *attrname, \
681 void *data, size_t nbytes); }
682 372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \
683 int attrnamespace, const char *attrname, \
684 void *data, size_t nbytes); }
685 373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \
687 const char *attrname); }
688 374 AUE_SETUGID NOPROTO { int __setugid(int flag); }
689 375 AUE_NULL UNIMPL nfsclnt
690 376 AUE_EACCESS NOPROTO { int eaccess(char *path, int amode); }
691 377 AUE_NULL UNIMPL afs_syscall
692 378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \
693 unsigned int iovcnt, int flags); }
694 379 AUE_NULL UNIMPL kse_exit
695 380 AUE_NULL UNIMPL kse_wakeup
696 381 AUE_NULL UNIMPL kse_create
697 382 AUE_NULL UNIMPL kse_thr_interrupt
698 383 AUE_NULL UNIMPL kse_release
699 384 AUE_NULL UNIMPL __mac_get_proc
700 385 AUE_NULL UNIMPL __mac_set_proc
701 386 AUE_NULL UNIMPL __mac_get_fd
702 387 AUE_NULL UNIMPL __mac_get_file
703 388 AUE_NULL UNIMPL __mac_set_fd
704 389 AUE_NULL UNIMPL __mac_set_file
705 390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \
706 char *value, int len); }
707 391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, \
709 392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \
711 393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \
712 uint32_t offset1, uint32_t offset2, \
713 size_t nbytes, struct sf_hdtr32 *hdtr, \
714 off_t *sbytes, int flags); }
715 394 AUE_NULL UNIMPL mac_syscall
716 395 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs *buf, \
717 long bufsize, int mode); }
718 396 AUE_STATFS NOPROTO { int statfs(char *path, \
719 struct statfs *buf); }
720 397 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs *buf); }
721 398 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \
722 struct statfs *buf); }
723 399 AUE_NULL UNIMPL nosys
724 400 AUE_SEMCLOSE NOSTD|NOPROTO { int ksem_close(semid_t id); }
725 401 AUE_SEMPOST NOSTD|NOPROTO { int ksem_post(semid_t id); }
726 402 AUE_SEMWAIT NOSTD|NOPROTO { int ksem_wait(semid_t id); }
727 403 AUE_SEMTRYWAIT NOSTD|NOPROTO { int ksem_trywait(semid_t id); }
728 404 AUE_SEMINIT NOSTD { int freebsd32_ksem_init(semid_t *idp, \
729 unsigned int value); }
730 405 AUE_SEMOPEN NOSTD { int freebsd32_ksem_open(semid_t *idp, \
731 const char *name, int oflag, \
732 mode_t mode, unsigned int value); }
733 406 AUE_SEMUNLINK NOSTD|NOPROTO { int ksem_unlink(const char *name); }
734 407 AUE_SEMGETVALUE NOSTD|NOPROTO { int ksem_getvalue(semid_t id, \
736 408 AUE_SEMDESTROY NOSTD|NOPROTO { int ksem_destroy(semid_t id); }
737 409 AUE_NULL UNIMPL __mac_get_pid
738 410 AUE_NULL UNIMPL __mac_get_link
739 411 AUE_NULL UNIMPL __mac_set_link
740 412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \
741 const char *path, int attrnamespace, \
742 const char *attrname, void *data, \
744 413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \
745 const char *path, int attrnamespace, \
746 const char *attrname, void *data, \
748 414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \
749 const char *path, int attrnamespace, \
750 const char *attrname); }
751 415 AUE_NULL UNIMPL __mac_execve
752 416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \
753 struct sigaction32 *act, \
754 struct sigaction32 *oact); }
755 417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \
756 const struct freebsd32_ucontext *sigcntxp); }
757 418 AUE_NULL UNIMPL __xstat
758 419 AUE_NULL UNIMPL __xfstat
759 420 AUE_NULL UNIMPL __xlstat
760 421 AUE_NULL STD { int freebsd32_getcontext( \
761 struct freebsd32_ucontext *ucp); }
762 422 AUE_NULL STD { int freebsd32_setcontext( \
763 const struct freebsd32_ucontext *ucp); }
764 423 AUE_NULL STD { int freebsd32_swapcontext( \
765 struct freebsd32_ucontext *oucp, \
766 const struct freebsd32_ucontext *ucp); }
767 424 AUE_SWAPOFF UNIMPL swapoff
768 425 AUE_ACL_GET_LINK NOPROTO { int __acl_get_link(const char *path, \
769 acl_type_t type, struct acl *aclp); }
770 426 AUE_ACL_SET_LINK NOPROTO { int __acl_set_link(const char *path, \
771 acl_type_t type, struct acl *aclp); }
772 427 AUE_ACL_DELETE_LINK NOPROTO { int __acl_delete_link(const char *path, \
774 428 AUE_ACL_CHECK_LINK NOPROTO { int __acl_aclcheck_link(const char *path, \
775 acl_type_t type, struct acl *aclp); }
776 429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \
778 430 AUE_THR_CREATE UNIMPL thr_create;
779 431 AUE_THR_EXIT NOPROTO { void thr_exit(long *state); }
780 432 AUE_NULL NOPROTO { int thr_self(long *id); }
781 433 AUE_THR_KILL NOPROTO { int thr_kill(long id, int sig); }
782 434 AUE_NULL UNIMPL nosys
783 435 AUE_NULL UNIMPL nosys
784 436 AUE_JAIL_ATTACH NOPROTO { int jail_attach(int jid); }
785 437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \
786 int attrnamespace, void *data, \
788 438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \
789 const char *path, int attrnamespace, \
790 void *data, size_t nbytes); }
791 439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \
792 const char *path, int attrnamespace, \
793 void *data, size_t nbytes); }
794 440 AUE_NULL UNIMPL kse_switchin
795 441 AUE_SEMWAIT NOSTD { int freebsd32_ksem_timedwait(semid_t id, \
796 const struct timespec32 *abstime); }
797 442 AUE_NULL STD { int freebsd32_thr_suspend( \
798 const struct timespec32 *timeout); }
799 443 AUE_NULL NOPROTO { int thr_wake(long id); }
800 444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); }
801 445 AUE_AUDIT NOPROTO { int audit(const void *record, \
803 446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \
805 447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); }
806 448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); }
807 449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); }
808 450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); }
809 451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \
810 struct auditinfo_addr *auditinfo_addr, \
812 452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \
813 struct auditinfo_addr *auditinfo_addr, \
815 453 AUE_AUDITCTL NOPROTO { int auditctl(char *path); }
816 454 AUE_NULL STD { int freebsd32_umtx_op(void *obj, int op,\
817 u_long val, void *uaddr, \
819 455 AUE_THR_NEW STD { int freebsd32_thr_new( \
820 struct thr_param32 *param, \
822 456 AUE_NULL NOPROTO { int sigqueue(pid_t pid, int signum, \
824 457 AUE_MQ_OPEN NOSTD { int freebsd32_kmq_open( \
825 const char *path, int flags, mode_t mode, \
826 const struct mq_attr32 *attr); }
827 458 AUE_MQ_SETATTR NOSTD { int freebsd32_kmq_setattr(int mqd, \
828 const struct mq_attr32 *attr, \
829 struct mq_attr32 *oattr); }
830 459 AUE_MQ_TIMEDRECEIVE NOSTD { int freebsd32_kmq_timedreceive(int mqd, \
831 char *msg_ptr, size_t msg_len, \
832 unsigned *msg_prio, \
833 const struct timespec32 *abs_timeout); }
834 460 AUE_MQ_TIMEDSEND NOSTD { int freebsd32_kmq_timedsend(int mqd, \
835 const char *msg_ptr, size_t msg_len,\
837 const struct timespec32 *abs_timeout);}
838 461 AUE_MQ_NOTIFY NOSTD { int freebsd32_kmq_notify(int mqd, \
839 const struct sigevent32 *sigev); }
840 462 AUE_MQ_UNLINK NOPROTO|NOSTD { int kmq_unlink(const char *path); }
841 463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); }
842 464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); }
843 465 AUE_AIO_FSYNC STD { int freebsd32_aio_fsync(int op, \
844 struct aiocb32 *aiocbp); }
845 466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \
846 lwpid_t lwpid, struct rtprio *rtp); }
847 467 AUE_NULL UNIMPL nosys
848 468 AUE_NULL UNIMPL nosys
849 469 AUE_NULL UNIMPL __getpath_fromfd
850 470 AUE_NULL UNIMPL __getpath_fromaddr
851 471 AUE_SCTP_PEELOFF NOPROTO|NOSTD { int sctp_peeloff(int sd, uint32_t name); }
852 472 AUE_SCTP_GENERIC_SENDMSG NOPROTO|NOSTD { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
853 caddr_t to, __socklen_t tolen, \
854 struct sctp_sndrcvinfo *sinfo, int flags); }
855 473 AUE_SCTP_GENERIC_SENDMSG_IOV NOPROTO|NOSTD { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
856 caddr_t to, __socklen_t tolen, \
857 struct sctp_sndrcvinfo *sinfo, int flags); }
858 474 AUE_SCTP_GENERIC_RECVMSG NOPROTO|NOSTD { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
859 struct sockaddr * from, __socklen_t *fromlenaddr, \
860 struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
861 #ifdef PAD64_REQUIRED
862 475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \
863 void *buf,size_t nbyte, \
865 uint32_t offset1, uint32_t offset2); }
866 476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \
867 const void *buf, size_t nbyte, \
869 uint32_t offset1, uint32_t offset2); }
870 477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \
871 size_t len, int prot, int flags, int fd, \
873 uint32_t pos1, uint32_t pos2); }
874 478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \
876 uint32_t offset1, uint32_t offset2, \
878 479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \
880 uint32_t length1, uint32_t length2); }
881 480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \
883 uint32_t length1, uint32_t length2); }
885 475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \
886 void *buf,size_t nbyte, \
887 uint32_t offset1, uint32_t offset2); }
888 476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \
889 const void *buf, size_t nbyte, \
890 uint32_t offset1, uint32_t offset2); }
891 477 AUE_MMAP STD { caddr_t freebsd32_mmap(caddr_t addr, \
892 size_t len, int prot, int flags, int fd, \
893 uint32_t pos1, uint32_t pos2); }
894 478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \
895 uint32_t offset1, uint32_t offset2, \
897 479 AUE_TRUNCATE STD { int freebsd32_truncate(char *path, \
898 uint32_t length1, uint32_t length2); }
899 480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \
900 uint32_t length1, uint32_t length2); }
902 481 AUE_THR_KILL2 NOPROTO { int thr_kill2(pid_t pid, long id, int sig); }
903 482 AUE_SHMOPEN NOPROTO { int shm_open(const char *path, int flags, \
905 483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); }
906 484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); }
907 #ifdef PAD64_REQUIRED
908 485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \
910 uint32_t id1, uint32_t id2, \
913 485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \
914 uint32_t id1, uint32_t id2, \
917 486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \
919 uint32_t id1, uint32_t id2, \
920 cpusetid_t *setid); }
921 487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \
922 cpulevel_t level, cpuwhich_t which, \
923 uint32_t id1, uint32_t id2, \
926 488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \
927 cpulevel_t level, cpuwhich_t which, \
928 uint32_t id1, uint32_t id2, \
930 const cpuset_t *mask); }
931 489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, char *path, int amode, \
933 490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \
934 mode_t mode, int flag); }
935 491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, char *path, uid_t uid, \
936 gid_t gid, int flag); }
937 492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \
938 uint32_t *argv, uint32_t *envv); }
939 493 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, char *path, \
940 struct stat *buf, int flag); }
941 494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, char *path, \
942 struct timeval *times); }
943 495 AUE_LINKAT NOPROTO { int linkat(int fd1, char *path1, int fd2, \
944 char *path2, int flag); }
945 496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, char *path, \
947 497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, char *path, \
949 498 AUE_MKNODAT NOPROTO { int mknodat(int fd, char *path, \
950 mode_t mode, dev_t dev); }
951 499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \
953 500 AUE_READLINKAT NOPROTO { int readlinkat(int fd, char *path, char *buf, \
955 501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, char *old, int newfd, \
957 502 AUE_SYMLINKAT NOPROTO { int symlinkat(char *path1, int fd, \
959 503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, char *path, \
961 504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); }
962 ; 505 is initialised by the kgssapi code, if present.
963 505 AUE_NULL UNIMPL gssd_syscall
964 506 AUE_JAIL_GET STD { int freebsd32_jail_get(struct iovec32 *iovp, \
965 unsigned int iovcnt, int flags); }
966 507 AUE_JAIL_SET STD { int freebsd32_jail_set(struct iovec32 *iovp, \
967 unsigned int iovcnt, int flags); }
968 508 AUE_JAIL_REMOVE NOPROTO { int jail_remove(int jid); }
969 509 AUE_CLOSEFROM NOPROTO { int closefrom(int lowfd); }
970 510 AUE_SEMCTL NOSTD { int freebsd32_semctl(int semid, int semnum, \
971 int cmd, union semun32 *arg); }
972 511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \
973 struct msqid_ds32 *buf); }
974 512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \
975 struct shmid_ds32 *buf); }
976 513 AUE_LPATHCONF NOPROTO { int lpathconf(char *path, int name); }
977 514 AUE_NULL OBSOL cap_new
978 515 AUE_CAP_RIGHTS_GET NOPROTO { int __cap_rights_get(int version, \
979 int fd, cap_rights_t *rightsp); }
980 516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); }
981 517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); }
982 518 AUE_PDFORK NOPROTO { int pdfork(int *fdp, int flags); }
983 519 AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); }
984 520 AUE_PDGETPID NOPROTO { int pdgetpid(int fd, pid_t *pidp); }
985 521 AUE_PDWAIT UNIMPL pdwait4
986 522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \
987 fd_set *ou, fd_set *ex, \
988 const struct timespec32 *ts, \
989 const sigset_t *sm); }
990 523 AUE_GETLOGINCLASS NOPROTO { int getloginclass(char *namebuf, \
992 524 AUE_SETLOGINCLASS NOPROTO { int setloginclass(const char *namebuf); }
993 525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \
994 size_t inbuflen, void *outbufp, \
996 526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \
997 size_t inbuflen, void *outbufp, \
999 527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \
1000 size_t inbuflen, void *outbufp, \
1001 size_t outbuflen); }
1002 528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \
1003 size_t inbuflen, void *outbufp, \
1004 size_t outbuflen); }
1005 529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \
1006 size_t inbuflen, void *outbufp, \
1007 size_t outbuflen); }
1008 #ifdef PAD64_REQUIRED
1009 530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd, \
1011 uint32_t offset1, uint32_t offset2,\
1012 uint32_t len1, uint32_t len2); }
1013 531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \
1015 uint32_t offset1, uint32_t offset2,\
1016 uint32_t len1, uint32_t len2, \
1018 532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, int pad, \
1019 uint32_t id1, uint32_t id2, \
1020 int *status, int options, \
1021 struct wrusage32 *wrusage, \
1024 530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd,\
1025 uint32_t offset1, uint32_t offset2,\
1026 uint32_t len1, uint32_t len2); }
1027 531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \
1028 uint32_t offset1, uint32_t offset2,\
1029 uint32_t len1, uint32_t len2, \
1031 532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, \
1032 uint32_t id1, uint32_t id2, \
1033 int *status, int options, \
1034 struct wrusage32 *wrusage, \
1037 533 AUE_CAP_RIGHTS_LIMIT NOPROTO { \
1038 int cap_rights_limit(int fd, \
1039 cap_rights_t *rightsp); }
1040 534 AUE_CAP_IOCTLS_LIMIT STD { \
1041 int freebsd32_cap_ioctls_limit(int fd, \
1042 const uint32_t *cmds, size_t ncmds); }
1043 535 AUE_CAP_IOCTLS_GET STD { \
1044 ssize_t freebsd32_cap_ioctls_get(int fd, \
1045 uint32_t *cmds, size_t maxcmds); }
1046 536 AUE_CAP_FCNTLS_LIMIT NOPROTO { int cap_fcntls_limit(int fd, \
1047 uint32_t fcntlrights); }
1048 537 AUE_CAP_FCNTLS_GET NOPROTO { int cap_fcntls_get(int fd, \
1049 uint32_t *fcntlrightsp); }
1050 538 AUE_BINDAT NOPROTO { int bindat(int fd, int s, caddr_t name, \
1052 539 AUE_CONNECTAT NOPROTO { int connectat(int fd, int s, caddr_t name, \
1054 540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \
1055 u_long flags, int atflag); }
1056 541 AUE_ACCEPT NOPROTO { int accept4(int s, \
1057 struct sockaddr * __restrict name, \
1058 __socklen_t * __restrict anamelen, \
1060 542 AUE_PIPE NOPROTO { int pipe2(int *fildes, int flags); }
1061 543 AUE_AIO_MLOCK STD { int freebsd32_aio_mlock( \
1062 struct aiocb32 *aiocbp); }
1063 #ifdef PAD64_REQUIRED
1064 544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, int pad, \
1065 uint32_t id1, uint32_t id2, int com, \
1068 544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, \
1069 uint32_t id1, uint32_t id2, int com, \
1072 545 AUE_POLL STD { int freebsd32_ppoll(struct pollfd *fds, \
1073 u_int nfds, const struct timespec32 *ts, \
1074 const sigset_t *set); }
1075 546 AUE_FUTIMES STD { int freebsd32_futimens(int fd, \
1076 struct timespec *times); }
1077 547 AUE_FUTIMESAT STD { int freebsd32_utimensat(int fd, \
1079 struct timespec *times, int flag); }
1080 548 AUE_NULL NOPROTO { int numa_getaffinity(cpuwhich_t which, \
1082 struct vm_domain_policy *policy); }
1083 549 AUE_NULL NOPROTO { int numa_setaffinity(cpuwhich_t which, \
1085 const struct vm_domain_policy *policy); }
1086 550 AUE_FSYNC NOPROTO { int fdatasync(int fd); }