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