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