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, int32_t bufsize, \
97 19 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int32_t 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 { ssize_t freebsd32_recvmsg(int s, struct msghdr32 *msg, \
111 28 AUE_SENDMSG STD { ssize_t freebsd32_sendmsg(int s, \
112 const struct msghdr32 *msg, int flags); }
113 29 AUE_RECVFROM NOPROTO { ssize_t 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, \
118 __socklen_t *anamelen); }
119 31 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, \
120 struct sockaddr *asa, \
121 __socklen_t *alen); }
122 32 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, \
123 struct sockaddr *asa, \
124 __socklen_t *alen); }
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 { mode_t 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_WAIT4 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_SYSCTL COMPAT|NOPROTO { int gethostname( \
205 char *hostname, u_int len); }
206 88 AUE_SYSCTL 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); }
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); }
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, \
224 __socklen_t namelen); }
225 99 AUE_ACCEPT 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_SEND COMPAT|NOPROTO { int send(int s, const void *buf, \
230 int len, int flags); }
231 102 AUE_RECV 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, \
236 __socklen_t namelen); }
237 105 AUE_SETSOCKOPT NOPROTO { int setsockopt(int s, int level, \
238 int name, const void *val, __socklen_t valsize); }
239 106 AUE_LISTEN NOPROTO { int listen(int s, int backlog); }
240 107 AUE_NULL OBSOL vtimes
241 108 AUE_NULL 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_NULL 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, __socklen_t *avalsize); }
262 119 AUE_NULL RESERVED
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 { int freebsd32_truncate(const char *path, \
279 130 AUE_FTRUNCATE COMPAT { int freebsd32_ftruncate(int fd, \
281 131 AUE_FLOCK NOPROTO { int flock(int fd, int how); }
282 132 AUE_MKFIFO NOPROTO { int mkfifo(const char *path, mode_t mode); }
283 133 AUE_SENDTO NOPROTO { ssize_t sendto(int s, const void *buf, \
284 size_t len, int flags, \
285 const struct sockaddr *to, \
286 __socklen_t tolen); }
287 134 AUE_SHUTDOWN NOPROTO { int shutdown(int s, int how); }
288 135 AUE_SOCKETPAIR NOPROTO { int socketpair(int domain, int type, \
289 int protocol, int *rsv); }
290 136 AUE_MKDIR NOPROTO { int mkdir(const char *path, mode_t mode); }
291 137 AUE_RMDIR NOPROTO { int rmdir(const char *path); }
292 138 AUE_UTIMES STD { int freebsd32_utimes(const char *path, \
293 const struct timeval32 *tptr); }
294 139 AUE_NULL OBSOL 4.2 sigreturn
295 140 AUE_ADJTIME STD { int freebsd32_adjtime( \
296 const struct timeval32 *delta, \
297 struct timeval32 *olddelta); }
298 141 AUE_GETPEERNAME COMPAT|NOPROTO { int getpeername(int fdes, \
299 struct sockaddr *asa, \
300 __socklen_t *alen); }
301 142 AUE_SYSCTL COMPAT|NOPROTO { long gethostid(void); }
302 143 AUE_SYSCTL COMPAT { int freebsd32_sethostid(int32_t hostid); }
303 144 AUE_GETRLIMIT COMPAT|NOPROTO { int getrlimit(u_int which, \
304 struct orlimit *rlp); }
305 145 AUE_SETRLIMIT COMPAT|NOPROTO { int setrlimit(u_int which, \
306 struct orlimit *rlp); }
307 146 AUE_KILLPG COMPAT|NOPROTO { int killpg(int pgid, int signum); }
308 147 AUE_SETSID NOPROTO { int setsid(void); }
309 148 AUE_QUOTACTL NOPROTO { int quotactl(const char *path, int cmd, \
310 int uid, void *arg); }
311 149 AUE_O_QUOTA COMPAT|NOPROTO { int quota(void); }
312 150 AUE_GETSOCKNAME COMPAT|NOPROTO getsockname
314 151 AUE_NULL RESERVED
315 152 AUE_NULL RESERVED
316 153 AUE_NULL RESERVED
317 ; 154 is initialised by the NLM code, if present.
318 154 AUE_NULL UNIMPL nlm_syscall
319 ; 155 is initialized by the NFS code, if present.
320 ; XXX this is a problem!!!
321 155 AUE_NFS_SVC UNIMPL nfssvc
322 156 AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \
323 char *buf, u_int count, int32_t *basep); }
324 157 AUE_STATFS COMPAT4 { int freebsd32_statfs(const char *path, \
325 struct ostatfs32 *buf); }
326 158 AUE_FSTATFS COMPAT4 { int freebsd32_fstatfs(int fd, \
327 struct ostatfs32 *buf); }
328 159 AUE_NULL RESERVED
329 160 AUE_LGETFH UNIMPL lgetfh
330 161 AUE_NFS_GETFH NOPROTO { int getfh(const char *fname, \
331 struct fhandle *fhp); }
332 162 AUE_SYSCTL COMPAT4|NOPROTO { int getdomainname(char *domainname, \
334 163 AUE_SYSCTL COMPAT4|NOPROTO { int setdomainname(char *domainname, \
336 164 AUE_NULL COMPAT4|NOPROTO { int uname(struct utsname *name); }
337 165 AUE_SYSARCH STD { int freebsd32_sysarch(int op, char *parms); }
338 166 AUE_RTPRIO NOPROTO { int rtprio(int function, pid_t pid, \
339 struct rtprio *rtp); }
340 167 AUE_NULL RESERVED
341 168 AUE_NULL RESERVED
342 169 AUE_SEMSYS NOSTD { int freebsd32_semsys(int which, int a2, \
343 int a3, int a4, int a5); }
344 170 AUE_MSGSYS NOSTD { int freebsd32_msgsys(int which, int a2, \
345 int a3, int a4, int a5, int a6); }
346 171 AUE_SHMSYS NOSTD { int freebsd32_shmsys(uint32_t which, uint32_t a2, \
347 uint32_t a3, uint32_t a4); }
348 172 AUE_NULL RESERVED
349 173 AUE_PREAD COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \
350 size_t nbyte, int pad, \
351 uint32_t offset1, uint32_t offset2); }
352 174 AUE_PWRITE COMPAT6 { ssize_t freebsd32_pwrite(int fd, \
353 const void *buf, size_t nbyte, int pad, \
354 uint32_t offset1, uint32_t offset2); }
355 175 AUE_SETFIB NOPROTO { int setfib(int fibnum); }
356 176 AUE_NTP_ADJTIME STD { int freebsd32_ntp_adjtime( \
357 struct timex32 *tp); }
358 177 AUE_NULL RESERVED
359 178 AUE_NULL RESERVED
360 179 AUE_NULL RESERVED
361 180 AUE_NULL RESERVED
363 ; Syscalls 181-199 are used by/reserved for BSD
364 181 AUE_SETGID NOPROTO { int setgid(gid_t gid); }
365 182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); }
366 183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); }
367 184 AUE_NULL OBSOL lfs_bmapv
368 185 AUE_NULL OBSOL lfs_markv
369 186 AUE_NULL OBSOL lfs_segclean
370 187 AUE_NULL OBSOL lfs_segwait
371 188 AUE_STAT COMPAT11 { int freebsd32_stat(const char *path, \
372 struct freebsd11_stat32 *ub); }
373 189 AUE_FSTAT COMPAT11 { int freebsd32_fstat(int fd, \
374 struct freebsd11_stat32 *sb); }
375 190 AUE_LSTAT COMPAT11 { int freebsd32_lstat(const char *path, \
376 struct freebsd11_stat32 *ub); }
377 191 AUE_PATHCONF NOPROTO { int pathconf(const char *path, int name); }
378 192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); }
379 193 AUE_NULL RESERVED
380 194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \
381 struct rlimit *rlp); } getrlimit \
383 195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \
384 struct rlimit *rlp); } setrlimit \
386 196 AUE_GETDIRENTRIES COMPAT11 { int freebsd32_getdirentries(int fd, \
387 char *buf, u_int count, int32_t *basep); }
388 197 AUE_MMAP COMPAT6 { void *freebsd32_mmap(void *addr, \
389 size_t len, int prot, int flags, int fd, \
390 int pad, uint32_t pos1, uint32_t pos2); }
391 198 AUE_NULL NOPROTO { int nosys(void); } __syscall \
393 199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \
394 uint32_t offset1, uint32_t offset2, \
396 200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(const char *path, \
397 int pad, uint32_t length1, \
399 201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \
400 uint32_t length1, uint32_t length2); }
401 202 AUE_SYSCTL STD { int freebsd32___sysctl(int *name, \
402 u_int namelen, void *old, \
403 uint32_t *oldlenp, const void *new, \
405 203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \
407 204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \
409 205 AUE_UNDELETE NOPROTO { int undelete(const char *path); }
410 206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \
411 const struct timeval32 *tptr); }
412 207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); }
413 208 AUE_NULL RESERVED
414 209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \
418 ; The following are reserved for loadable syscalls
420 210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
421 211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
422 212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
423 213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
424 214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
425 215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
426 216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
427 217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
428 218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
429 219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
431 220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32___semctl( \
432 int semid, int semnum, \
433 int cmd, union semun_old32 *arg); }
434 221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \
436 222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \
437 struct sembuf *sops, size_t nsops); }
438 223 AUE_NULL OBSOL semconfig
439 224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \
440 int msqid, int cmd, \
441 struct msqid_ds_old32 *buf); }
442 225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); }
443 226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, const void *msgp, \
444 size_t msgsz, int msgflg); }
445 227 AUE_MSGRCV NOSTD { ssize_t freebsd32_msgrcv(int msqid, void *msgp, \
446 size_t msgsz, int32_t msgtyp, int msgflg); }
447 228 AUE_SHMAT NOSTD|NOPROTO { void *shmat(int shmid, const void *shmaddr, \
449 229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \
450 int shmid, int cmd, \
451 struct shmid_ds_old32 *buf); }
452 230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(const void *shmaddr); }
453 231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, size_t size, \
456 232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \
457 struct timespec32 *tp); }
458 233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \
459 const struct timespec32 *tp); }
460 234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \
461 struct timespec32 *tp); }
462 235 AUE_NULL STD { int freebsd32_ktimer_create(\
463 clockid_t clock_id, \
464 struct sigevent32 *evp, int *timerid); }
465 236 AUE_NULL NOPROTO { int ktimer_delete(int timerid); }
466 237 AUE_NULL STD { int freebsd32_ktimer_settime(int timerid,\
468 const struct itimerspec32 *value, \
469 struct itimerspec32 *ovalue); }
470 238 AUE_NULL STD { int freebsd32_ktimer_gettime(int timerid,\
471 struct itimerspec32 *value); }
472 239 AUE_NULL NOPROTO { int ktimer_getoverrun(int timerid); }
473 240 AUE_NULL STD { int freebsd32_nanosleep( \
474 const struct timespec32 *rqtp, \
475 struct timespec32 *rmtp); }
476 241 AUE_NULL NOPROTO { int ffclock_getcounter(ffcounter *ffcount); }
477 242 AUE_NULL STD { int freebsd32_ffclock_setestimate( \
478 struct ffclock_estimate32 *cest); }
479 243 AUE_NULL STD { int freebsd32_ffclock_getestimate( \
480 struct ffclock_estimate32 *cest); }
481 244 AUE_NULL STD { int freebsd32_clock_nanosleep( \
482 clockid_t clock_id, int flags, \
483 const struct timespec32 *rqtp, \
484 struct timespec32 *rmtp); }
485 245 AUE_NULL RESERVED
486 246 AUE_NULL RESERVED
487 247 AUE_NULL STD { int freebsd32_clock_getcpuclockid2(\
488 uint32_t id1, uint32_t id2,\
489 int which, clockid_t *clock_id); }
490 248 AUE_NULL UNIMPL ntp_gettime
491 249 AUE_NULL RESERVED
492 250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \
494 251 AUE_RFORK NOPROTO { int rfork(int flags); }
495 252 AUE_POLL OBSOL openbsd_poll
496 253 AUE_ISSETUGID NOPROTO { int issetugid(void); }
497 254 AUE_LCHOWN NOPROTO { int lchown(const char *path, int uid, \
499 255 AUE_AIO_READ STD { int freebsd32_aio_read( \
500 struct aiocb32 *aiocbp); }
501 256 AUE_AIO_WRITE STD { int freebsd32_aio_write( \
502 struct aiocb32 *aiocbp); }
503 257 AUE_LIO_LISTIO STD { int freebsd32_lio_listio(int mode, \
504 uint32_t *acb_list, \
505 int nent, struct sigevent32 *sig); }
506 258 AUE_NULL RESERVED
507 259 AUE_NULL RESERVED
508 260 AUE_NULL RESERVED
509 261 AUE_NULL RESERVED
510 262 AUE_NULL RESERVED
511 263 AUE_NULL RESERVED
512 264 AUE_NULL RESERVED
513 265 AUE_NULL RESERVED
514 266 AUE_NULL RESERVED
515 267 AUE_NULL RESERVED
516 268 AUE_NULL RESERVED
517 269 AUE_NULL RESERVED
518 270 AUE_NULL RESERVED
519 271 AUE_NULL RESERVED
520 272 AUE_O_GETDENTS COMPAT11|NOPROTO { int getdents(int fd, char *buf, \
522 273 AUE_NULL RESERVED
523 274 AUE_LCHMOD NOPROTO { int lchmod(const char *path, mode_t mode); }
524 275 AUE_NULL OBSOL netbsd_lchown
525 276 AUE_LUTIMES STD { int freebsd32_lutimes(const char *path, \
526 const struct timeval32 *tptr); }
527 277 AUE_NULL OBSOL netbsd_msync
528 278 AUE_STAT COMPAT11|NOPROTO { int nstat(const char *path, \
530 279 AUE_FSTAT COMPAT11|NOPROTO { int nfstat(int fd, struct nstat *sb); }
531 280 AUE_LSTAT COMPAT11|NOPROTO { int nlstat(const char *path, \
533 281 AUE_NULL RESERVED
534 282 AUE_NULL RESERVED
535 283 AUE_NULL RESERVED
536 284 AUE_NULL RESERVED
537 285 AUE_NULL RESERVED
538 286 AUE_NULL RESERVED
539 287 AUE_NULL RESERVED
540 288 AUE_NULL RESERVED
541 #ifdef PAD64_REQUIRED
542 289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \
543 struct iovec32 *iovp, \
546 uint32_t offset1, uint32_t offset2); }
547 290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \
548 struct iovec32 *iovp, \
551 uint32_t offset1, uint32_t offset2); }
553 289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \
554 struct iovec32 *iovp, \
556 uint32_t offset1, uint32_t offset2); }
557 290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \
558 struct iovec32 *iovp, \
560 uint32_t offset1, uint32_t offset2); }
562 291 AUE_NULL RESERVED
563 292 AUE_NULL RESERVED
564 293 AUE_NULL RESERVED
565 294 AUE_NULL RESERVED
566 295 AUE_NULL RESERVED
567 296 AUE_NULL RESERVED
568 297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \
569 const struct fhandle *u_fhp, \
570 struct ostatfs32 *buf); }
571 298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \
573 299 AUE_FHSTAT COMPAT11 { int freebsd32_fhstat( \
574 const struct fhandle *u_fhp, \
575 struct freebsd11_stat32 *sb); }
576 ; syscall numbers for FreeBSD
577 300 AUE_NULL NOPROTO { int modnext(int modid); }
578 301 AUE_NULL STD { int freebsd32_modstat(int modid, \
579 struct module_stat32 *stat); }
580 302 AUE_NULL NOPROTO { int modfnext(int modid); }
581 303 AUE_NULL NOPROTO { int modfind(const char *name); }
582 304 AUE_MODLOAD NOPROTO { int kldload(const char *file); }
583 305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); }
584 306 AUE_NULL NOPROTO { int kldfind(const char *file); }
585 307 AUE_NULL NOPROTO { int kldnext(int fileid); }
586 308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \
587 struct kld_file_stat32 *stat); }
588 309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); }
589 310 AUE_GETSID NOPROTO { int getsid(pid_t pid); }
590 311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \
592 312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \
594 313 AUE_NULL OBSOL signanosleep
595 314 AUE_AIO_RETURN STD { ssize_t freebsd32_aio_return( \
596 struct aiocb32 *aiocbp); }
597 315 AUE_AIO_SUSPEND STD { int freebsd32_aio_suspend( \
598 uint32_t * aiocbp, int nent, \
599 const struct timespec32 *timeout); }
600 316 AUE_AIO_CANCEL NOPROTO { int aio_cancel(int fd, \
601 struct aiocb *aiocbp); }
602 317 AUE_AIO_ERROR STD { int freebsd32_aio_error( \
603 struct aiocb32 *aiocbp); }
604 318 AUE_AIO_READ COMPAT6 { int freebsd32_aio_read( \
605 struct oaiocb32 *aiocbp); }
606 319 AUE_AIO_WRITE COMPAT6 { int freebsd32_aio_write( \
607 struct oaiocb32 *aiocbp); }
608 320 AUE_LIO_LISTIO COMPAT6 { int freebsd32_lio_listio(int mode, \
609 uint32_t *acb_list, \
610 int nent, struct osigevent32 *sig); }
611 321 AUE_NULL NOPROTO { int yield(void); }
612 322 AUE_NULL OBSOL thr_sleep
613 323 AUE_NULL OBSOL thr_wakeup
614 324 AUE_MLOCKALL NOPROTO { int mlockall(int how); }
615 325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); }
616 326 AUE_GETCWD NOPROTO { int __getcwd(char *buf, size_t buflen); }
618 327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \
619 const struct sched_param *param); }
620 328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \
621 struct sched_param *param); }
623 329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \
625 const struct sched_param *param); }
626 330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); }
628 331 AUE_NULL NOPROTO { int sched_yield (void); }
629 332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); }
630 333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); }
631 334 AUE_NULL STD { int freebsd32_sched_rr_get_interval ( \
633 struct timespec32 *interval); }
634 335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); }
635 336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \
636 uint32_t offset1, uint32_t offset2, \
637 size_t nbytes, struct sf_hdtr32 *hdtr, \
638 off_t *sbytes, int flags); }
639 337 AUE_NULL UNIMPL kldsym
640 338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); }
641 339 AUE_NULL UNIMPL nnpfs_syscall
642 340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \
643 const sigset_t *set, sigset_t *oset); }
644 341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); }
645 342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \
646 const struct sigaction32 *act, \
647 struct sigaction32 *oact); }
648 343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); }
649 344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \
650 const struct freebsd4_ucontext32 *sigcntxp); }
651 345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \
652 struct siginfo32 *info, \
653 const struct timespec32 *timeout); }
654 346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \
655 struct siginfo32 *info); }
656 347 AUE_ACL_GET_FILE NOPROTO { int __acl_get_file(const char *path, \
657 acl_type_t type, struct acl *aclp); }
658 348 AUE_ACL_SET_FILE NOPROTO { int __acl_set_file(const char *path, \
659 acl_type_t type, struct acl *aclp); }
660 349 AUE_ACL_GET_FD NOPROTO { int __acl_get_fd(int filedes, \
661 acl_type_t type, struct acl *aclp); }
662 350 AUE_ACL_SET_FD NOPROTO { int __acl_set_fd(int filedes, \
663 acl_type_t type, struct acl *aclp); }
664 351 AUE_ACL_DELETE_FILE NOPROTO { int __acl_delete_file(const char *path, \
666 352 AUE_ACL_DELETE_FD NOPROTO { int __acl_delete_fd(int filedes, \
668 353 AUE_ACL_CHECK_FILE NOPROTO { int __acl_aclcheck_file(const char *path, \
669 acl_type_t type, struct acl *aclp); }
670 354 AUE_ACL_CHECK_FD NOPROTO { int __acl_aclcheck_fd(int filedes, \
671 acl_type_t type, struct acl *aclp); }
672 355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \
673 const char *filename, int attrnamespace, \
674 const char *attrname); }
675 356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \
676 const char *path, int attrnamespace, \
677 const char *attrname, void *data, \
679 357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \
680 const char *path, int attrnamespace, \
681 const char *attrname, void *data, \
683 358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \
684 const char *path, int attrnamespace, \
685 const char *attrname); }
686 359 AUE_AIO_WAITCOMPLETE STD { ssize_t freebsd32_aio_waitcomplete( \
688 struct timespec32 *timeout); }
689 360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \
691 361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \
693 362 AUE_KQUEUE NOPROTO { int kqueue(void); }
694 363 AUE_KEVENT COMPAT11 { int freebsd32_kevent(int fd, \
695 const struct freebsd11_kevent32 * \
698 struct freebsd11_kevent32 *eventlist, \
700 const struct timespec32 *timeout); }
701 364 AUE_NULL OBSOL __cap_get_proc
702 365 AUE_NULL OBSOL __cap_set_proc
703 366 AUE_NULL OBSOL __cap_get_fd
704 367 AUE_NULL OBSOL __cap_get_file
705 368 AUE_NULL OBSOL __cap_set_fd
706 369 AUE_NULL OBSOL __cap_set_file
707 370 AUE_NULL RESERVED
708 371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \
709 int attrnamespace, const char *attrname, \
710 void *data, size_t nbytes); }
711 372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \
712 int attrnamespace, const char *attrname, \
713 void *data, size_t nbytes); }
714 373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \
716 const char *attrname); }
717 374 AUE_SETUGID NOPROTO { int __setugid(int flag); }
718 375 AUE_NULL OBSOL nfsclnt
719 376 AUE_EACCESS NOPROTO { int eaccess(const char *path, int amode); }
720 377 AUE_NULL UNIMPL afs3_syscall
721 378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \
722 unsigned int iovcnt, int flags); }
723 379 AUE_NULL OBSOL kse_exit
724 380 AUE_NULL OBSOL kse_wakeup
725 381 AUE_NULL OBSOL kse_create
726 382 AUE_NULL OBSOL kse_thr_interrupt
727 383 AUE_NULL OBSOL kse_release
728 384 AUE_NULL UNIMPL __mac_get_proc
729 385 AUE_NULL UNIMPL __mac_set_proc
730 386 AUE_NULL UNIMPL __mac_get_fd
731 387 AUE_NULL UNIMPL __mac_get_file
732 388 AUE_NULL UNIMPL __mac_set_fd
733 389 AUE_NULL UNIMPL __mac_set_file
734 390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \
735 char *value, int len); }
736 391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, \
738 392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \
740 393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \
741 uint32_t offset1, uint32_t offset2, \
742 size_t nbytes, struct sf_hdtr32 *hdtr, \
743 off_t *sbytes, int flags); }
744 394 AUE_NULL UNIMPL mac_syscall
745 395 AUE_GETFSSTAT COMPAT11 { int freebsd32_getfsstat( \
746 struct freebsd11_statfs *buf, \
747 int32_t bufsize, int mode); }
748 396 AUE_STATFS COMPAT11|NOPROTO { int statfs(const char *path, \
749 struct statfs *buf); }
750 397 AUE_FSTATFS COMPAT11|NOPROTO { int fstatfs(int fd, \
751 struct freebsd11_statfs *buf); }
752 398 AUE_FHSTATFS COMPAT11|NOPROTO { int fhstatfs( \
753 const struct fhandle *u_fhp, \
754 struct freebsd11_statfs *buf); }
755 399 AUE_NULL RESERVED
756 400 AUE_SEMCLOSE NOSTD|NOPROTO { int ksem_close(int32_t id); }
757 401 AUE_SEMPOST NOSTD|NOPROTO { int ksem_post(int32_t id); }
758 402 AUE_SEMWAIT NOSTD|NOPROTO { int ksem_wait(int32_t id); }
759 403 AUE_SEMTRYWAIT NOSTD|NOPROTO { int ksem_trywait(int32_t id); }
760 404 AUE_SEMINIT NOSTD { int freebsd32_ksem_init(int32_t *idp, \
761 unsigned int value); }
762 405 AUE_SEMOPEN NOSTD { int freebsd32_ksem_open(int32_t *idp, \
763 const char *name, int oflag, \
764 mode_t mode, unsigned int value); }
765 406 AUE_SEMUNLINK NOSTD|NOPROTO { int ksem_unlink(const char *name); }
766 407 AUE_SEMGETVALUE NOSTD|NOPROTO { int ksem_getvalue(int32_t id, \
768 408 AUE_SEMDESTROY NOSTD|NOPROTO { int ksem_destroy(int32_t id); }
769 409 AUE_NULL UNIMPL __mac_get_pid
770 410 AUE_NULL UNIMPL __mac_get_link
771 411 AUE_NULL UNIMPL __mac_set_link
772 412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \
773 const char *path, int attrnamespace, \
774 const char *attrname, void *data, \
776 413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \
777 const char *path, int attrnamespace, \
778 const char *attrname, void *data, \
780 414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \
781 const char *path, int attrnamespace, \
782 const char *attrname); }
783 415 AUE_NULL UNIMPL __mac_execve
784 416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \
785 const struct sigaction32 *act, \
786 struct sigaction32 *oact); }
787 417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \
788 const struct __ucontext32 *sigcntxp); }
789 418 AUE_NULL RESERVED
790 419 AUE_NULL RESERVED
791 420 AUE_NULL RESERVED
792 421 AUE_NULL STD { int freebsd32_getcontext( \
793 struct __ucontext32 *ucp); }
794 422 AUE_NULL STD { int freebsd32_setcontext( \
795 const struct __ucontext32 *ucp); }
796 423 AUE_NULL STD { int freebsd32_swapcontext( \
797 struct __ucontext32 *oucp, \
798 const struct __ucontext32 *ucp); }
799 424 AUE_SWAPOFF NOPROTO { int swapoff(const char *name); }
800 425 AUE_ACL_GET_LINK NOPROTO { int __acl_get_link(const char *path, \
801 acl_type_t type, struct acl *aclp); }
802 426 AUE_ACL_SET_LINK NOPROTO { int __acl_set_link(const char *path, \
803 acl_type_t type, struct acl *aclp); }
804 427 AUE_ACL_DELETE_LINK NOPROTO { int __acl_delete_link(const char *path, \
806 428 AUE_ACL_CHECK_LINK NOPROTO { int __acl_aclcheck_link(const char *path, \
807 acl_type_t type, struct acl *aclp); }
808 429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \
810 430 AUE_THR_CREATE UNIMPL thr_create
811 431 AUE_THR_EXIT NOPROTO { void thr_exit(int32_t *state); }
812 432 AUE_NULL NOPROTO { int thr_self(int32_t *id); }
813 433 AUE_THR_KILL NOPROTO { int thr_kill(int32_t id, int sig); }
814 434 AUE_NULL COMPAT10 { int freebsd32_umtx_lock( \
815 struct umtx *umtx); }
816 435 AUE_NULL COMPAT10 { int freebsd32_umtx_unlock( \
817 struct umtx *umtx); }
818 436 AUE_JAIL_ATTACH NOPROTO { int jail_attach(int jid); }
819 437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \
820 int attrnamespace, void *data, \
822 438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \
823 const char *path, int attrnamespace, \
824 void *data, size_t nbytes); }
825 439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \
826 const char *path, int attrnamespace, \
827 void *data, size_t nbytes); }
828 440 AUE_NULL OBSOL kse_switchin
829 441 AUE_SEMWAIT NOSTD { int freebsd32_ksem_timedwait(int32_t id, \
830 const struct timespec32 *abstime); }
831 442 AUE_NULL STD { int freebsd32_thr_suspend( \
832 const struct timespec32 *timeout); }
833 443 AUE_NULL NOPROTO { int thr_wake(int32_t id); }
834 444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); }
835 445 AUE_AUDIT NOPROTO { int audit(const void *record, \
837 446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \
839 447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); }
840 448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); }
841 449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); }
842 450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); }
843 451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \
844 struct auditinfo_addr *auditinfo_addr, \
846 452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \
847 struct auditinfo_addr *auditinfo_addr, \
849 453 AUE_AUDITCTL NOPROTO { int auditctl(const char *path); }
850 454 AUE_NULL STD { int freebsd32__umtx_op(void *obj, int op,\
851 u_long val, void *uaddr1, \
853 455 AUE_THR_NEW STD { int freebsd32_thr_new( \
854 struct thr_param32 *param, \
856 456 AUE_NULL STD { int freebsd32_sigqueue(pid_t pid, \
857 int signum, void *value); }
858 457 AUE_MQ_OPEN NOSTD { int freebsd32_kmq_open( \
859 const char *path, int flags, mode_t mode, \
860 const struct mq_attr32 *attr); }
861 458 AUE_MQ_SETATTR NOSTD { int freebsd32_kmq_setattr(int mqd, \
862 const struct mq_attr32 *attr, \
863 struct mq_attr32 *oattr); }
864 459 AUE_MQ_TIMEDRECEIVE NOSTD { int freebsd32_kmq_timedreceive(int mqd, \
865 char *msg_ptr, size_t msg_len, \
866 unsigned *msg_prio, \
867 const struct timespec32 *abs_timeout); }
868 460 AUE_MQ_TIMEDSEND NOSTD { int freebsd32_kmq_timedsend(int mqd, \
869 const char *msg_ptr, size_t msg_len,\
871 const struct timespec32 *abs_timeout);}
872 461 AUE_MQ_NOTIFY NOSTD { int freebsd32_kmq_notify(int mqd, \
873 const struct sigevent32 *sigev); }
874 462 AUE_MQ_UNLINK NOPROTO|NOSTD { int kmq_unlink(const char *path); }
875 463 AUE_NULL STD { void freebsd32_abort2(const char *why, int nargs, uint32_t *args); }
876 464 AUE_NULL NOPROTO { int thr_set_name(int32_t id, const char *name); }
877 465 AUE_AIO_FSYNC STD { int freebsd32_aio_fsync(int op, \
878 struct aiocb32 *aiocbp); }
879 466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \
880 lwpid_t lwpid, struct rtprio *rtp); }
881 467 AUE_NULL RESERVED
882 468 AUE_NULL RESERVED
883 469 AUE_NULL RESERVED
884 470 AUE_NULL RESERVED
885 471 AUE_SCTP_PEELOFF NOPROTO|NOSTD { int sctp_peeloff(int sd, uint32_t name); }
886 472 AUE_SCTP_GENERIC_SENDMSG NOPROTO|NOSTD { int sctp_generic_sendmsg( \
887 int sd, void *msg, int mlen, \
888 const struct sockaddr *to, __socklen_t tolen, \
889 struct sctp_sndrcvinfo *sinfo, int flags); }
890 473 AUE_SCTP_GENERIC_SENDMSG_IOV NOPROTO|NOSTD { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
891 const struct sockaddr *to, __socklen_t tolen, \
892 struct sctp_sndrcvinfo *sinfo, int flags); }
893 474 AUE_SCTP_GENERIC_RECVMSG NOPROTO|NOSTD { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
894 struct sockaddr * from, __socklen_t *fromlenaddr, \
895 struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
896 #ifdef PAD64_REQUIRED
897 475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \
898 void *buf,size_t nbyte, \
900 uint32_t offset1, uint32_t offset2); }
901 476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \
902 const void *buf, size_t nbyte, \
904 uint32_t offset1, uint32_t offset2); }
905 477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \
906 size_t len, int prot, int flags, int fd, \
908 uint32_t pos1, uint32_t pos2); }
909 478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \
911 uint32_t offset1, uint32_t offset2, \
913 479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \
915 uint32_t length1, uint32_t length2); }
916 480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \
918 uint32_t length1, uint32_t length2); }
920 475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \
921 void *buf,size_t nbyte, \
922 uint32_t offset1, uint32_t offset2); }
923 476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \
924 const void *buf, size_t nbyte, \
925 uint32_t offset1, uint32_t offset2); }
926 477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \
927 size_t len, int prot, int flags, int fd, \
928 uint32_t pos1, uint32_t pos2); }
929 478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \
930 uint32_t offset1, uint32_t offset2, \
932 479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \
933 uint32_t length1, uint32_t length2); }
934 480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \
935 uint32_t length1, uint32_t length2); }
937 481 AUE_THR_KILL2 NOPROTO { int thr_kill2(pid_t pid, int32_t id, int sig); }
938 482 AUE_SHMOPEN COMPAT12|NOPROTO { int shm_open( \
939 const char *path, int flags, mode_t mode); }
940 483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); }
941 484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); }
942 #ifdef PAD64_REQUIRED
943 485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \
945 uint32_t id1, uint32_t id2, \
948 485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \
949 uint32_t id1, uint32_t id2, \
952 486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \
954 uint32_t id1, uint32_t id2, \
955 cpusetid_t *setid); }
956 487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \
957 cpulevel_t level, cpuwhich_t which, \
958 uint32_t id1, uint32_t id2, \
961 488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \
962 cpulevel_t level, cpuwhich_t which, \
963 uint32_t id1, uint32_t id2, \
965 const cpuset_t *mask); }
966 489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, const char *path, \
967 int amode, int flag); }
968 490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \
969 mode_t mode, int flag); }
970 491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, const char *path, \
971 uid_t uid, gid_t gid, int flag); }
972 492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \
973 uint32_t *argv, uint32_t *envv); }
974 493 AUE_FSTATAT COMPAT11 { int freebsd32_fstatat(int fd, \
976 struct freebsd11_stat32 *buf, \
978 494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, \
980 const struct timeval32 *times); }
981 495 AUE_LINKAT NOPROTO { int linkat(int fd1, const char *path1, \
982 int fd2, const char *path2, int flag); }
983 496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, const char *path, \
985 497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, const char *path, \
987 498 AUE_MKNODAT COMPAT11|NOPROTO { int mknodat(int fd, \
988 const char *path, mode_t mode, \
990 499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, const char *path, \
991 int flag, mode_t mode); }
992 500 AUE_READLINKAT NOPROTO { ssize_t readlinkat(int fd, const char *path, \
993 char *buf, size_t bufsize); }
994 501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, const char *old, \
995 int newfd, const char *new); }
996 502 AUE_SYMLINKAT NOPROTO { int symlinkat(const char *path1, int fd, \
997 const char *path2); }
998 503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, const char *path, \
1000 504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); }
1001 ; 505 is initialised by the kgssapi code, if present.
1002 505 AUE_NULL NOPROTO|NOSTD { int gssd_syscall(const char *path); }
1003 506 AUE_JAIL_GET STD { int freebsd32_jail_get(struct iovec32 *iovp, \
1004 unsigned int iovcnt, int flags); }
1005 507 AUE_JAIL_SET STD { int freebsd32_jail_set(struct iovec32 *iovp, \
1006 unsigned int iovcnt, int flags); }
1007 508 AUE_JAIL_REMOVE NOPROTO { int jail_remove(int jid); }
1008 509 AUE_CLOSEFROM COMPAT12|NOPROTO { int closefrom(int lowfd); }
1009 510 AUE_SEMCTL NOSTD { int freebsd32___semctl(int semid, int semnum, \
1010 int cmd, union semun32 *arg); }
1011 511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \
1012 struct msqid_ds32 *buf); }
1013 512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \
1014 struct shmid_ds32 *buf); }
1015 513 AUE_LPATHCONF NOPROTO { int lpathconf(const char *path, int name); }
1016 514 AUE_NULL OBSOL cap_new
1017 515 AUE_CAP_RIGHTS_GET NOPROTO { int __cap_rights_get(int version, \
1018 int fd, cap_rights_t *rightsp); }
1019 516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); }
1020 517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); }
1021 518 AUE_PDFORK NOPROTO { int pdfork(int *fdp, int flags); }
1022 519 AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); }
1023 520 AUE_PDGETPID NOPROTO { int pdgetpid(int fd, pid_t *pidp); }
1024 521 AUE_PDWAIT RESERVED
1025 522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \
1026 fd_set *ou, fd_set *ex, \
1027 const struct timespec32 *ts, \
1028 const sigset_t *sm); }
1029 523 AUE_GETLOGINCLASS NOPROTO { int getloginclass(char *namebuf, \
1031 524 AUE_SETLOGINCLASS NOPROTO { int setloginclass(const char *namebuf); }
1032 525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \
1033 size_t inbuflen, void *outbufp, \
1034 size_t outbuflen); }
1035 526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \
1036 size_t inbuflen, void *outbufp, \
1037 size_t outbuflen); }
1038 527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \
1039 size_t inbuflen, void *outbufp, \
1040 size_t outbuflen); }
1041 528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \
1042 size_t inbuflen, void *outbufp, \
1043 size_t outbuflen); }
1044 529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \
1045 size_t inbuflen, void *outbufp, \
1046 size_t outbuflen); }
1047 #ifdef PAD64_REQUIRED
1048 530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd, \
1050 uint32_t offset1, uint32_t offset2,\
1051 uint32_t len1, uint32_t len2); }
1052 531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \
1054 uint32_t offset1, uint32_t offset2,\
1055 uint32_t len1, uint32_t len2, \
1057 532 AUE_WAIT6 STD { int freebsd32_wait6(idtype_t idtype, int _pad, \
1058 uint32_t id1, uint32_t id2, \
1059 int *status, int options, \
1060 struct __wrusage32 *wrusage, \
1061 struct siginfo32 *info); }
1063 530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd,\
1064 uint32_t offset1, uint32_t offset2,\
1065 uint32_t len1, uint32_t len2); }
1066 531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \
1067 uint32_t offset1, uint32_t offset2,\
1068 uint32_t len1, uint32_t len2, \
1070 532 AUE_WAIT6 STD { int freebsd32_wait6(idtype_t idtype, \
1071 uint32_t id1, uint32_t id2, \
1072 int *status, int options, \
1073 struct __wrusage32 *wrusage, \
1074 struct siginfo32 *info); }
1076 533 AUE_CAP_RIGHTS_LIMIT NOPROTO { \
1077 int cap_rights_limit(int fd, \
1078 cap_rights_t *rightsp); }
1079 534 AUE_CAP_IOCTLS_LIMIT STD { \
1080 int freebsd32_cap_ioctls_limit(int fd, \
1081 const uint32_t *cmds, size_t ncmds); }
1082 535 AUE_CAP_IOCTLS_GET STD { \
1083 ssize_t freebsd32_cap_ioctls_get(int fd, \
1084 uint32_t *cmds, size_t maxcmds); }
1085 536 AUE_CAP_FCNTLS_LIMIT NOPROTO { int cap_fcntls_limit(int fd, \
1086 uint32_t fcntlrights); }
1087 537 AUE_CAP_FCNTLS_GET NOPROTO { int cap_fcntls_get(int fd, \
1088 uint32_t *fcntlrightsp); }
1089 538 AUE_BINDAT NOPROTO { int bindat(int fd, int s, \
1090 const struct sockaddr *name, \
1091 __socklen_t namelen); }
1092 539 AUE_CONNECTAT NOPROTO { int connectat(int fd, int s, \
1093 const struct sockaddr *name, \
1094 __socklen_t namelen); }
1095 540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \
1096 u_long flags, int atflag); }
1097 541 AUE_ACCEPT NOPROTO { int accept4(int s, \
1098 struct sockaddr *name, \
1099 __socklen_t *anamelen, \
1101 542 AUE_PIPE NOPROTO { int pipe2(int *fildes, int flags); }
1102 543 AUE_AIO_MLOCK STD { int freebsd32_aio_mlock( \
1103 struct aiocb32 *aiocbp); }
1104 #ifdef PAD64_REQUIRED
1105 544 AUE_PROCCTL STD { int freebsd32_procctl(idtype_t idtype, int _pad, \
1106 uint32_t id1, uint32_t id2, int com, \
1109 544 AUE_PROCCTL STD { int freebsd32_procctl(idtype_t idtype, \
1110 uint32_t id1, uint32_t id2, int com, \
1113 545 AUE_POLL STD { int freebsd32_ppoll(struct pollfd *fds, \
1114 u_int nfds, const struct timespec32 *ts, \
1115 const sigset_t *set); }
1116 546 AUE_FUTIMES STD { int freebsd32_futimens(int fd, \
1117 const struct timespec32 *times); }
1118 547 AUE_FUTIMESAT STD { int freebsd32_utimensat(int fd, \
1120 const struct timespec32 *times, \
1122 548 AUE_NULL OBSOL numa_getaffinity
1123 549 AUE_NULL OBSOL numa_setaffinity
1124 550 AUE_FSYNC NOPROTO { int fdatasync(int fd); }
1125 551 AUE_FSTAT STD { int freebsd32_fstat(int fd, \
1126 struct stat32 *sb); }
1127 552 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, \
1128 const char *path, struct stat32 *buf, \
1130 553 AUE_FHSTAT STD { int freebsd32_fhstat( \
1131 const struct fhandle *u_fhp, \
1132 struct stat32 *sb); }
1133 554 AUE_GETDIRENTRIES NOPROTO { ssize_t getdirentries( \
1134 int fd, char *buf, size_t count, \
1136 555 AUE_STATFS NOPROTO { int statfs(const char *path, \
1137 struct statfs *buf); }
1138 556 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs *buf); }
1139 557 AUE_GETFSSTAT STD { int freebsd32_getfsstat(struct statfs *buf, \
1140 int32_t bufsize, int mode); }
1141 558 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \
1142 struct statfs *buf); }
1143 #ifdef PAD64_REQUIRED
1144 559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \
1145 const char *path, mode_t mode, \
1146 int _pad, uint32_t dev1, uint32_t dev2); }
1148 559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \
1149 const char *path, mode_t mode, \
1150 uint32_t dev1, uint32_t dev2); }
1152 560 AUE_KEVENT STD { int freebsd32_kevent(int fd, \
1153 const struct kevent32 *changelist, \
1155 struct kevent32 *eventlist, \
1157 const struct timespec32 *timeout); }
1158 561 AUE_NULL STD { int freebsd32_cpuset_getdomain(cpulevel_t level, \
1159 cpuwhich_t which, uint32_t id1, uint32_t id2, \
1160 size_t domainsetsize, domainset_t *mask, \
1162 562 AUE_NULL STD { int freebsd32_cpuset_setdomain(cpulevel_t level, \
1163 cpuwhich_t which, uint32_t id1, uint32_t id2, \
1164 size_t domainsetsize, domainset_t *mask, \
1166 563 AUE_NULL NOPROTO { int getrandom(void *buf, size_t buflen, \
1167 unsigned int flags); }
1168 564 AUE_NULL NOPROTO { int getfhat( int fd, char *path, \
1169 struct fhandle *fhp, int flags); }
1170 565 AUE_NULL NOPROTO { int fhlink( struct fhandle *fhp, const char *to ); }
1171 566 AUE_NULL NOPROTO { int fhlinkat( struct fhandle *fhp, int tofd, \
1173 567 AUE_NULL NOPROTO { int fhreadlink( struct fhandle *fhp, char *buf, \
1175 568 AUE_UNLINKAT NOPROTO { int funlinkat(int dfd, const char *path, int fd, \
1177 569 AUE_NULL NOPROTO { ssize_t copy_file_range(int infd, \
1178 off_t *inoffp, int outfd, off_t *outoffp, \
1179 size_t len, unsigned int flags); }
1180 570 AUE_SYSCTL STD { int freebsd32___sysctlbyname(const char *name, \
1181 size_t namelen, void *old, uint32_t *oldlenp, \
1182 void *new, size_t newlen); }
1183 571 AUE_SHMOPEN NOPROTO { int shm_open2( \
1184 const char *path, int flags, mode_t mode, \
1185 int shmflags, const char *name); }
1186 572 AUE_SHMRENAME NOPROTO { int shm_rename(const char *path_from, \
1187 const char *path_to, int flags); }
1188 573 AUE_NULL NOPROTO { int sigfastblock(int cmd, uint32_t *ptr); }
1189 574 AUE_REALPATHAT NOPROTO { int __realpathat(int fd, const char *path, \
1190 char *buf, size_t size, int flags); }
1191 575 AUE_CLOSERANGE NOPROTO { int close_range(u_int lowfd, u_int highfd, \
1193 ; 576 is initialised by the krpc code, if present.
1194 576 AUE_NULL NOSTD|NOPROTO { int rpctls_syscall(int op, \
1195 const char *path); }
1196 577 AUE_SPECIALFD NOPROTO { int __specialfd(int type, const void *req, \
1198 578 AUE_AIO_WRITEV STD { int freebsd32_aio_writev( \
1199 struct aiocb32 *aiocbp); }
1200 579 AUE_AIO_READV STD { int freebsd32_aio_readv( \
1201 struct aiocb32 *aiocbp); }
1202 580 AUE_FSPACECTL STD { int freebsd32_fspacectl(int fd, \
1204 const struct spacectl_range32 *rqsr, \
1206 struct spacectl_range32 *rmsr); }
1207 581 AUE_NULL NOPROTO { int sched_getcpu(void); }