1 $FreeBSD$
2 ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
3 ; from: src/sys/kern/syscalls.master 1.107
4 ;
5 ; System call name/number master file.
6 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
7
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
25
26 ; types:
27 ; STD always included
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.
47
48 ; #ifdef's, etc. may be included, and are copied to the output files.
49
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>
57
58 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
59 #define PAD64_REQUIRED
60 #endif
61
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.
67
68 0 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int
69 1 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \
70 sys_exit_args void
71 2 AUE_FORK NOPROTO { int fork(void); }
72 3 AUE_READ NOPROTO { ssize_t read(int fd, void *buf, \
73 size_t nbyte); }
74 4 AUE_WRITE NOPROTO { ssize_t write(int fd, const void *buf, \
75 size_t nbyte); }
76 5 AUE_OPEN_RWTC NOPROTO { int open(const char *path, int flags, \
77 mode_t mode); }
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, \
83 const char *link); }
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, \
95 int mode); }
96 19 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int offset, \
97 int whence); }
98 20 AUE_GETPID NOPROTO { pid_t getpid(void); }
99 21 AUE_MOUNT NOPROTO { int mount(const char *type, \
100 const char *path, \
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 STD { int freebsd32_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, \
109 int flags); }
110 28 AUE_SENDMSG STD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
111 int flags); }
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, \
117 int *anamelen); }
118 31 AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, \
119 struct sockaddr *asa, \
120 int *alen); }
121 32 AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, \
122 struct sockaddr *asa, \
123 int *alen); }
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, \
133 struct ostat *ub); }
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, \
146 osigset_t mask); }
147 49 AUE_GETLOGIN NOPROTO { int getlogin(char *namebuf, \
148 u_int namelen); }
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, \
160 const char *link); }
161 58 AUE_READLINK NOPROTO { ssize_t readlink(const char *path, char *buf, \
162 size_t count); }
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( \
171 int32_t dummy); }
172 65 AUE_MSYNC NOPROTO { int msync(void *addr, size_t len, \
173 int flags); }
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, \
186 int behav); }
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, \
190 char *vec); }
191 79 AUE_GETGROUPS NOPROTO { int getgroups(u_int gidsetsize, \
192 gid_t *gidset); }
193 80 AUE_SETGROUPS NOPROTO { int setgroups(u_int gidsetsize, \
194 gid_t *gidset); }
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
201 ; XXX implement
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, \
211 int arg); }
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, \
218 int prio); }
219 97 AUE_SOCKET NOPROTO { int socket(int domain, int type, \
220 int protocol); }
221 98 AUE_CONNECT NOPROTO { int connect(int s, \
222 const struct sockaddr *name, \
223 int namelen); }
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, \
231 int namelen); }
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, \
269 const char *to); }
270 129 AUE_TRUNCATE COMPAT|NOPROTO { int truncate(const char *path, \
271 int length); }
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, \
278 int tolen); }
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
301
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 STD { int freebsd32_ntp_adjtime( \
347 struct timex32 *tp); }
348 177 AUE_NULL UNIMPL sfork (BSD/OS 2.x)
349 178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x)
350 179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x)
351 180 AUE_NULL UNIMPL nosys
352
353 ; Syscalls 181-199 are used by/reserved for BSD
354 181 AUE_SETGID NOPROTO { int setgid(gid_t gid); }
355 182 AUE_SETEGID NOPROTO { int setegid(gid_t egid); }
356 183 AUE_SETEUID NOPROTO { int seteuid(uid_t euid); }
357 184 AUE_NULL OBSOL lfs_bmapv
358 185 AUE_NULL OBSOL lfs_markv
359 186 AUE_NULL OBSOL lfs_segclean
360 187 AUE_NULL OBSOL lfs_segwait
361 188 AUE_STAT COMPAT11 { int freebsd32_stat(const char *path, \
362 struct freebsd11_stat32 *ub); }
363 189 AUE_FSTAT COMPAT11 { int freebsd32_fstat(int fd, \
364 struct freebsd11_stat32 *ub); }
365 190 AUE_LSTAT COMPAT11 { int freebsd32_lstat(const char *path, \
366 struct freebsd11_stat32 *ub); }
367 191 AUE_PATHCONF NOPROTO { int pathconf(const char *path, int name); }
368 192 AUE_FPATHCONF NOPROTO { int fpathconf(int fd, int name); }
369 193 AUE_NULL UNIMPL nosys
370 194 AUE_GETRLIMIT NOPROTO { int getrlimit(u_int which, \
371 struct rlimit *rlp); } getrlimit \
372 __getrlimit_args int
373 195 AUE_SETRLIMIT NOPROTO { int setrlimit(u_int which, \
374 struct rlimit *rlp); } setrlimit \
375 __setrlimit_args int
376 196 AUE_GETDIRENTRIES COMPAT11 { int freebsd32_getdirentries(int fd, \
377 char *buf, u_int count, int32_t *basep); }
378 197 AUE_MMAP COMPAT6 { void *freebsd32_mmap(void *addr, \
379 size_t len, int prot, int flags, int fd, \
380 int pad, uint32_t pos1, uint32_t pos2); }
381 198 AUE_NULL NOPROTO { int nosys(void); } __syscall \
382 __syscall_args int
383 199 AUE_LSEEK COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \
384 uint32_t offset1, uint32_t offset2, \
385 int whence); }
386 200 AUE_TRUNCATE COMPAT6 { int freebsd32_truncate(const char *path, \
387 int pad, uint32_t length1, \
388 uint32_t length2); }
389 201 AUE_FTRUNCATE COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \
390 uint32_t length1, uint32_t length2); }
391 202 AUE_SYSCTL STD { int freebsd32___sysctl(int *name, \
392 u_int namelen, void *old, \
393 uint32_t *oldlenp, const void *new, \
394 uint32_t newlen); }
395 203 AUE_MLOCK NOPROTO { int mlock(const void *addr, \
396 size_t len); }
397 204 AUE_MUNLOCK NOPROTO { int munlock(const void *addr, \
398 size_t len); }
399 205 AUE_UNDELETE NOPROTO { int undelete(const char *path); }
400 206 AUE_FUTIMES STD { int freebsd32_futimes(int fd, \
401 struct timeval32 *tptr); }
402 207 AUE_GETPGID NOPROTO { int getpgid(pid_t pid); }
403 208 AUE_NULL UNIMPL nosys
404 209 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \
405 int timeout); }
406
407 ;
408 ; The following are reserved for loadable syscalls
409 ;
410 210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
411 211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
412 212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
413 213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
414 214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
415 215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
416 216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
417 217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
418 218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
419 219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
420
421 220 AUE_SEMCTL COMPAT7|NOSTD { int freebsd32_semctl( \
422 int semid, int semnum, \
423 int cmd, union semun32 *arg); }
424 221 AUE_SEMGET NOSTD|NOPROTO { int semget(key_t key, int nsems, \
425 int semflg); }
426 222 AUE_SEMOP NOSTD|NOPROTO { int semop(int semid, \
427 struct sembuf *sops, u_int nsops); }
428 223 AUE_NULL OBSOL semconfig
429 224 AUE_MSGCTL COMPAT7|NOSTD { int freebsd32_msgctl( \
430 int msqid, int cmd, \
431 struct msqid_ds32_old *buf); }
432 225 AUE_MSGGET NOSTD|NOPROTO { int msgget(key_t key, int msgflg); }
433 226 AUE_MSGSND NOSTD { int freebsd32_msgsnd(int msqid, void *msgp, \
434 size_t msgsz, int msgflg); }
435 227 AUE_MSGRCV NOSTD { int freebsd32_msgrcv(int msqid, void *msgp, \
436 size_t msgsz, long msgtyp, int msgflg); }
437 228 AUE_SHMAT NOSTD|NOPROTO { void *shmat(int shmid, void *shmaddr, \
438 int shmflg); }
439 229 AUE_SHMCTL COMPAT7|NOSTD { int freebsd32_shmctl( \
440 int shmid, int cmd, \
441 struct shmid_ds32_old *buf); }
442 230 AUE_SHMDT NOSTD|NOPROTO { int shmdt(void *shmaddr); }
443 231 AUE_SHMGET NOSTD|NOPROTO { int shmget(key_t key, int size, \
444 int shmflg); }
445 ;
446 232 AUE_NULL STD { int freebsd32_clock_gettime(clockid_t clock_id, \
447 struct timespec32 *tp); }
448 233 AUE_CLOCK_SETTIME STD { int freebsd32_clock_settime(clockid_t clock_id, \
449 const struct timespec32 *tp); }
450 234 AUE_NULL STD { int freebsd32_clock_getres(clockid_t clock_id, \
451 struct timespec32 *tp); }
452 235 AUE_NULL STD { int freebsd32_ktimer_create(\
453 clockid_t clock_id, \
454 struct sigevent32 *evp, int *timerid); }
455 236 AUE_NULL NOPROTO { int ktimer_delete(int timerid); }
456 237 AUE_NULL STD { int freebsd32_ktimer_settime(int timerid,\
457 int flags, \
458 const struct itimerspec32 *value, \
459 struct itimerspec32 *ovalue); }
460 238 AUE_NULL STD { int freebsd32_ktimer_gettime(int timerid,\
461 struct itimerspec32 *value); }
462 239 AUE_NULL NOPROTO { int ktimer_getoverrun(int timerid); }
463 240 AUE_NULL STD { int freebsd32_nanosleep( \
464 const struct timespec32 *rqtp, \
465 struct timespec32 *rmtp); }
466 241 AUE_NULL NOPROTO { int ffclock_getcounter(ffcounter *ffcount); }
467 242 AUE_NULL NOPROTO { int ffclock_setestimate( \
468 struct ffclock_estimate *cest); }
469 243 AUE_NULL NOPROTO { int ffclock_getestimate( \
470 struct ffclock_estimate *cest); }
471 244 AUE_NULL STD { int freebsd32_clock_nanosleep( \
472 clockid_t clock_id, int flags, \
473 const struct timespec32 *rqtp, \
474 struct timespec32 *rmtp); }
475 245 AUE_NULL UNIMPL nosys
476 246 AUE_NULL UNIMPL nosys
477 247 AUE_NULL STD { int freebsd32_clock_getcpuclockid2(\
478 uint32_t id1, uint32_t id2,\
479 int which, clockid_t *clock_id); }
480 248 AUE_NULL UNIMPL ntp_gettime
481 249 AUE_NULL UNIMPL nosys
482 250 AUE_MINHERIT NOPROTO { int minherit(void *addr, size_t len, \
483 int inherit); }
484 251 AUE_RFORK NOPROTO { int rfork(int flags); }
485 252 AUE_POLL OBSOL openbsd_poll
486 253 AUE_ISSETUGID NOPROTO { int issetugid(void); }
487 254 AUE_LCHOWN NOPROTO { int lchown(const char *path, int uid, \
488 int gid); }
489 255 AUE_AIO_READ STD { int freebsd32_aio_read( \
490 struct aiocb32 *aiocbp); }
491 256 AUE_AIO_WRITE STD { int freebsd32_aio_write( \
492 struct aiocb32 *aiocbp); }
493 257 AUE_LIO_LISTIO STD { int freebsd32_lio_listio(int mode, \
494 struct aiocb32 * const *acb_list, \
495 int nent, struct sigevent32 *sig); }
496 258 AUE_NULL UNIMPL nosys
497 259 AUE_NULL UNIMPL nosys
498 260 AUE_NULL UNIMPL nosys
499 261 AUE_NULL UNIMPL nosys
500 262 AUE_NULL UNIMPL nosys
501 263 AUE_NULL UNIMPL nosys
502 264 AUE_NULL UNIMPL nosys
503 265 AUE_NULL UNIMPL nosys
504 266 AUE_NULL UNIMPL nosys
505 267 AUE_NULL UNIMPL nosys
506 268 AUE_NULL UNIMPL nosys
507 269 AUE_NULL UNIMPL nosys
508 270 AUE_NULL UNIMPL nosys
509 271 AUE_NULL UNIMPL nosys
510 272 AUE_O_GETDENTS COMPAT11 { int freebsd32_getdents(int fd, char *buf, \
511 int count); }
512 273 AUE_NULL UNIMPL nosys
513 274 AUE_LCHMOD NOPROTO { int lchmod(const char *path, mode_t mode); }
514 275 AUE_NULL OBSOL netbsd_lchown
515 276 AUE_LUTIMES STD { int freebsd32_lutimes(const char *path, \
516 struct timeval32 *tptr); }
517 277 AUE_NULL OBSOL netbsd_msync
518 278 AUE_STAT COMPAT11|NOPROTO { int nstat(const char *path, \
519 struct nstat *ub); }
520 279 AUE_FSTAT COMPAT11|NOPROTO { int nfstat(int fd, struct nstat *sb); }
521 280 AUE_LSTAT COMPAT11|NOPROTO { int nlstat(const char *path, \
522 struct nstat *ub); }
523 281 AUE_NULL UNIMPL nosys
524 282 AUE_NULL UNIMPL nosys
525 283 AUE_NULL UNIMPL nosys
526 284 AUE_NULL UNIMPL nosys
527 285 AUE_NULL UNIMPL nosys
528 286 AUE_NULL UNIMPL nosys
529 287 AUE_NULL UNIMPL nosys
530 288 AUE_NULL UNIMPL nosys
531 289 AUE_PREADV STD { ssize_t freebsd32_preadv(int fd, \
532 struct iovec32 *iovp, \
533 u_int iovcnt, \
534 uint32_t offset1, uint32_t offset2); }
535 290 AUE_PWRITEV STD { ssize_t freebsd32_pwritev(int fd, \
536 struct iovec32 *iovp, \
537 u_int iovcnt, \
538 uint32_t offset1, uint32_t offset2); }
539 291 AUE_NULL UNIMPL nosys
540 292 AUE_NULL UNIMPL nosys
541 293 AUE_NULL UNIMPL nosys
542 294 AUE_NULL UNIMPL nosys
543 295 AUE_NULL UNIMPL nosys
544 296 AUE_NULL UNIMPL nosys
545 297 AUE_FHSTATFS COMPAT4 { int freebsd32_fhstatfs( \
546 const struct fhandle *u_fhp, \
547 struct statfs32 *buf); }
548 298 AUE_FHOPEN NOPROTO { int fhopen(const struct fhandle *u_fhp, \
549 int flags); }
550 299 AUE_FHSTAT COMPAT11 { int freebsd32_fhstat( \
551 const struct fhandle *u_fhp, \
552 struct freebsd11_stat32 *sb); }
553 ; syscall numbers for FreeBSD
554 300 AUE_NULL NOPROTO { int modnext(int modid); }
555 301 AUE_NULL STD { int freebsd32_modstat(int modid, \
556 struct module_stat32 *stat); }
557 302 AUE_NULL NOPROTO { int modfnext(int modid); }
558 303 AUE_NULL NOPROTO { int modfind(const char *name); }
559 304 AUE_MODLOAD NOPROTO { int kldload(const char *file); }
560 305 AUE_MODUNLOAD NOPROTO { int kldunload(int fileid); }
561 306 AUE_NULL NOPROTO { int kldfind(const char *file); }
562 307 AUE_NULL NOPROTO { int kldnext(int fileid); }
563 308 AUE_NULL STD { int freebsd32_kldstat(int fileid, \
564 struct kld32_file_stat *stat); }
565 309 AUE_NULL NOPROTO { int kldfirstmod(int fileid); }
566 310 AUE_GETSID NOPROTO { int getsid(pid_t pid); }
567 311 AUE_SETRESUID NOPROTO { int setresuid(uid_t ruid, uid_t euid, \
568 uid_t suid); }
569 312 AUE_SETRESGID NOPROTO { int setresgid(gid_t rgid, gid_t egid, \
570 gid_t sgid); }
571 313 AUE_NULL OBSOL signanosleep
572 314 AUE_AIO_RETURN STD { int freebsd32_aio_return( \
573 struct aiocb32 *aiocbp); }
574 315 AUE_AIO_SUSPEND STD { int freebsd32_aio_suspend( \
575 struct aiocb32 * const * aiocbp, int nent, \
576 const struct timespec32 *timeout); }
577 316 AUE_AIO_CANCEL NOPROTO { int aio_cancel(int fd, \
578 struct aiocb *aiocbp); }
579 317 AUE_AIO_ERROR STD { int freebsd32_aio_error( \
580 struct aiocb32 *aiocbp); }
581 318 AUE_AIO_READ COMPAT6 { int freebsd32_aio_read( \
582 struct oaiocb32 *aiocbp); }
583 319 AUE_AIO_WRITE COMPAT6 { int freebsd32_aio_write( \
584 struct oaiocb32 *aiocbp); }
585 320 AUE_LIO_LISTIO COMPAT6 { int freebsd32_lio_listio(int mode, \
586 struct oaiocb32 * const *acb_list, \
587 int nent, struct osigevent32 *sig); }
588 321 AUE_NULL NOPROTO { int yield(void); }
589 322 AUE_NULL OBSOL thr_sleep
590 323 AUE_NULL OBSOL thr_wakeup
591 324 AUE_MLOCKALL NOPROTO { int mlockall(int how); }
592 325 AUE_MUNLOCKALL NOPROTO { int munlockall(void); }
593 326 AUE_GETCWD NOPROTO { int __getcwd(char *buf, size_t buflen); }
594
595 327 AUE_NULL NOPROTO { int sched_setparam (pid_t pid, \
596 const struct sched_param *param); }
597 328 AUE_NULL NOPROTO { int sched_getparam (pid_t pid, \
598 struct sched_param *param); }
599
600 329 AUE_NULL NOPROTO { int sched_setscheduler (pid_t pid, \
601 int policy, \
602 const struct sched_param *param); }
603 330 AUE_NULL NOPROTO { int sched_getscheduler (pid_t pid); }
604
605 331 AUE_NULL NOPROTO { int sched_yield (void); }
606 332 AUE_NULL NOPROTO { int sched_get_priority_max (int policy); }
607 333 AUE_NULL NOPROTO { int sched_get_priority_min (int policy); }
608 334 AUE_NULL STD { int freebsd32_sched_rr_get_interval ( \
609 pid_t pid, \
610 struct timespec32 *interval); }
611 335 AUE_NULL NOPROTO { int utrace(const void *addr, size_t len); }
612 336 AUE_SENDFILE COMPAT4 { int freebsd32_sendfile(int fd, int s, \
613 uint32_t offset1, uint32_t offset2, \
614 size_t nbytes, struct sf_hdtr32 *hdtr, \
615 off_t *sbytes, int flags); }
616 337 AUE_NULL NOPROTO { int kldsym(int fileid, int cmd, \
617 void *data); }
618 338 AUE_JAIL STD { int freebsd32_jail(struct jail32 *jail); }
619 339 AUE_NULL UNIMPL pioctl
620 340 AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \
621 const sigset_t *set, sigset_t *oset); }
622 341 AUE_SIGSUSPEND NOPROTO { int sigsuspend(const sigset_t *sigmask); }
623 342 AUE_SIGACTION COMPAT4 { int freebsd32_sigaction(int sig, \
624 struct sigaction32 *act, \
625 struct sigaction32 *oact); }
626 343 AUE_SIGPENDING NOPROTO { int sigpending(sigset_t *set); }
627 344 AUE_SIGRETURN COMPAT4 { int freebsd32_sigreturn( \
628 const struct freebsd4_freebsd32_ucontext *sigcntxp); }
629 345 AUE_SIGWAIT STD { int freebsd32_sigtimedwait(const sigset_t *set, \
630 siginfo_t *info, \
631 const struct timespec *timeout); }
632 346 AUE_NULL STD { int freebsd32_sigwaitinfo(const sigset_t *set, \
633 siginfo_t *info); }
634 347 AUE_ACL_GET_FILE NOPROTO { int __acl_get_file(const char *path, \
635 acl_type_t type, struct acl *aclp); }
636 348 AUE_ACL_SET_FILE NOPROTO { int __acl_set_file(const char *path, \
637 acl_type_t type, struct acl *aclp); }
638 349 AUE_ACL_GET_FD NOPROTO { int __acl_get_fd(int filedes, \
639 acl_type_t type, struct acl *aclp); }
640 350 AUE_ACL_SET_FD NOPROTO { int __acl_set_fd(int filedes, \
641 acl_type_t type, struct acl *aclp); }
642 351 AUE_ACL_DELETE_FILE NOPROTO { int __acl_delete_file(const char *path, \
643 acl_type_t type); }
644 352 AUE_ACL_DELETE_FD NOPROTO { int __acl_delete_fd(int filedes, \
645 acl_type_t type); }
646 353 AUE_ACL_CHECK_FILE NOPROTO { int __acl_aclcheck_file(const char *path, \
647 acl_type_t type, struct acl *aclp); }
648 354 AUE_ACL_CHECK_FD NOPROTO { int __acl_aclcheck_fd(int filedes, \
649 acl_type_t type, struct acl *aclp); }
650 355 AUE_EXTATTRCTL NOPROTO { int extattrctl(const char *path, int cmd, \
651 const char *filename, int attrnamespace, \
652 const char *attrname); }
653 356 AUE_EXTATTR_SET_FILE NOPROTO { ssize_t extattr_set_file( \
654 const char *path, int attrnamespace, \
655 const char *attrname, void *data, \
656 size_t nbytes); }
657 357 AUE_EXTATTR_GET_FILE NOPROTO { ssize_t extattr_get_file( \
658 const char *path, int attrnamespace, \
659 const char *attrname, void *data, \
660 size_t nbytes); }
661 358 AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \
662 const char *path, int attrnamespace, \
663 const char *attrname); }
664 359 AUE_AIO_WAITCOMPLETE STD { int freebsd32_aio_waitcomplete( \
665 struct aiocb32 **aiocbp, \
666 struct timespec32 *timeout); }
667 360 AUE_GETRESUID NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \
668 uid_t *suid); }
669 361 AUE_GETRESGID NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \
670 gid_t *sgid); }
671 362 AUE_KQUEUE NOPROTO { int kqueue(void); }
672 363 AUE_KEVENT COMPAT11 { int freebsd32_kevent(int fd, \
673 const struct kevent32_freebsd11 * \
674 changelist, \
675 int nchanges, \
676 struct kevent32_freebsd11 *eventlist, \
677 int nevents, \
678 const struct timespec32 *timeout); }
679 364 AUE_NULL OBSOL __cap_get_proc
680 365 AUE_NULL OBSOL __cap_set_proc
681 366 AUE_NULL OBSOL __cap_get_fd
682 367 AUE_NULL OBSOL __cap_get_file
683 368 AUE_NULL OBSOL __cap_set_fd
684 369 AUE_NULL OBSOL __cap_set_file
685 370 AUE_NULL UNIMPL nosys
686 371 AUE_EXTATTR_SET_FD NOPROTO { ssize_t extattr_set_fd(int fd, \
687 int attrnamespace, const char *attrname, \
688 void *data, size_t nbytes); }
689 372 AUE_EXTATTR_GET_FD NOPROTO { ssize_t extattr_get_fd(int fd, \
690 int attrnamespace, const char *attrname, \
691 void *data, size_t nbytes); }
692 373 AUE_EXTATTR_DELETE_FD NOPROTO { int extattr_delete_fd(int fd, \
693 int attrnamespace, \
694 const char *attrname); }
695 374 AUE_SETUGID NOPROTO { int __setugid(int flag); }
696 375 AUE_NULL OBSOL nfsclnt
697 376 AUE_EACCESS NOPROTO { int eaccess(const char *path, int amode); }
698 377 AUE_NULL UNIMPL afs_syscall
699 378 AUE_NMOUNT STD { int freebsd32_nmount(struct iovec32 *iovp, \
700 unsigned int iovcnt, int flags); }
701 379 AUE_NULL OBSOL kse_exit
702 380 AUE_NULL OBSOL kse_wakeup
703 381 AUE_NULL OBSOL kse_create
704 382 AUE_NULL OBSOL kse_thr_interrupt
705 383 AUE_NULL OBSOL kse_release
706 384 AUE_NULL UNIMPL __mac_get_proc
707 385 AUE_NULL UNIMPL __mac_set_proc
708 386 AUE_NULL UNIMPL __mac_get_fd
709 387 AUE_NULL UNIMPL __mac_get_file
710 388 AUE_NULL UNIMPL __mac_set_fd
711 389 AUE_NULL UNIMPL __mac_set_file
712 390 AUE_NULL NOPROTO { int kenv(int what, const char *name, \
713 char *value, int len); }
714 391 AUE_LCHFLAGS NOPROTO { int lchflags(const char *path, \
715 u_long flags); }
716 392 AUE_NULL NOPROTO { int uuidgen(struct uuid *store, \
717 int count); }
718 393 AUE_SENDFILE STD { int freebsd32_sendfile(int fd, int s, \
719 uint32_t offset1, uint32_t offset2, \
720 size_t nbytes, struct sf_hdtr32 *hdtr, \
721 off_t *sbytes, int flags); }
722 394 AUE_NULL UNIMPL mac_syscall
723 395 AUE_GETFSSTAT COMPAT11|NOPROTO { int getfsstat( \
724 struct freebsd11_statfs *buf, \
725 long bufsize, int mode); }
726 396 AUE_STATFS COMPAT11|NOPROTO { int statfs(const char *path, \
727 struct statfs *buf); }
728 397 AUE_FSTATFS COMPAT11|NOPROTO { int fstatfs(int fd, \
729 struct freebsd11_statfs *buf); }
730 398 AUE_FHSTATFS COMPAT11|NOPROTO { int fhstatfs( \
731 const struct fhandle *u_fhp, \
732 struct freebsd11_statfs *buf); }
733 399 AUE_NULL UNIMPL nosys
734 400 AUE_SEMCLOSE NOSTD|NOPROTO { int ksem_close(semid_t id); }
735 401 AUE_SEMPOST NOSTD|NOPROTO { int ksem_post(semid_t id); }
736 402 AUE_SEMWAIT NOSTD|NOPROTO { int ksem_wait(semid_t id); }
737 403 AUE_SEMTRYWAIT NOSTD|NOPROTO { int ksem_trywait(semid_t id); }
738 404 AUE_SEMINIT NOSTD { int freebsd32_ksem_init(semid_t *idp, \
739 unsigned int value); }
740 405 AUE_SEMOPEN NOSTD { int freebsd32_ksem_open(semid_t *idp, \
741 const char *name, int oflag, \
742 mode_t mode, unsigned int value); }
743 406 AUE_SEMUNLINK NOSTD|NOPROTO { int ksem_unlink(const char *name); }
744 407 AUE_SEMGETVALUE NOSTD|NOPROTO { int ksem_getvalue(semid_t id, \
745 int *val); }
746 408 AUE_SEMDESTROY NOSTD|NOPROTO { int ksem_destroy(semid_t id); }
747 409 AUE_NULL UNIMPL __mac_get_pid
748 410 AUE_NULL UNIMPL __mac_get_link
749 411 AUE_NULL UNIMPL __mac_set_link
750 412 AUE_EXTATTR_SET_LINK NOPROTO { ssize_t extattr_set_link( \
751 const char *path, int attrnamespace, \
752 const char *attrname, void *data, \
753 size_t nbytes); }
754 413 AUE_EXTATTR_GET_LINK NOPROTO { ssize_t extattr_get_link( \
755 const char *path, int attrnamespace, \
756 const char *attrname, void *data, \
757 size_t nbytes); }
758 414 AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \
759 const char *path, int attrnamespace, \
760 const char *attrname); }
761 415 AUE_NULL UNIMPL __mac_execve
762 416 AUE_SIGACTION STD { int freebsd32_sigaction(int sig, \
763 struct sigaction32 *act, \
764 struct sigaction32 *oact); }
765 417 AUE_SIGRETURN STD { int freebsd32_sigreturn( \
766 const struct freebsd32_ucontext *sigcntxp); }
767 418 AUE_NULL UNIMPL __xstat
768 419 AUE_NULL UNIMPL __xfstat
769 420 AUE_NULL UNIMPL __xlstat
770 421 AUE_NULL STD { int freebsd32_getcontext( \
771 struct freebsd32_ucontext *ucp); }
772 422 AUE_NULL STD { int freebsd32_setcontext( \
773 const struct freebsd32_ucontext *ucp); }
774 423 AUE_NULL STD { int freebsd32_swapcontext( \
775 struct freebsd32_ucontext *oucp, \
776 const struct freebsd32_ucontext *ucp); }
777 424 AUE_SWAPOFF UNIMPL freebsd13_swapoff
778 425 AUE_ACL_GET_LINK NOPROTO { int __acl_get_link(const char *path, \
779 acl_type_t type, struct acl *aclp); }
780 426 AUE_ACL_SET_LINK NOPROTO { int __acl_set_link(const char *path, \
781 acl_type_t type, struct acl *aclp); }
782 427 AUE_ACL_DELETE_LINK NOPROTO { int __acl_delete_link(const char *path, \
783 acl_type_t type); }
784 428 AUE_ACL_CHECK_LINK NOPROTO { int __acl_aclcheck_link(const char *path, \
785 acl_type_t type, struct acl *aclp); }
786 429 AUE_SIGWAIT NOPROTO { int sigwait(const sigset_t *set, \
787 int *sig); }
788 430 AUE_THR_CREATE UNIMPL thr_create;
789 431 AUE_THR_EXIT NOPROTO { void thr_exit(long *state); }
790 432 AUE_NULL NOPROTO { int thr_self(long *id); }
791 433 AUE_THR_KILL NOPROTO { int thr_kill(long id, int sig); }
792 434 AUE_NULL COMPAT10 { int freebsd32_umtx_lock( \
793 struct umtx *umtx); }
794 435 AUE_NULL COMPAT10 { int freebsd32_umtx_unlock( \
795 struct umtx *umtx); }
796 436 AUE_JAIL_ATTACH NOPROTO { int jail_attach(int jid); }
797 437 AUE_EXTATTR_LIST_FD NOPROTO { ssize_t extattr_list_fd(int fd, \
798 int attrnamespace, void *data, \
799 size_t nbytes); }
800 438 AUE_EXTATTR_LIST_FILE NOPROTO { ssize_t extattr_list_file( \
801 const char *path, int attrnamespace, \
802 void *data, size_t nbytes); }
803 439 AUE_EXTATTR_LIST_LINK NOPROTO { ssize_t extattr_list_link( \
804 const char *path, int attrnamespace, \
805 void *data, size_t nbytes); }
806 440 AUE_NULL OBSOL kse_switchin
807 441 AUE_SEMWAIT NOSTD { int freebsd32_ksem_timedwait(semid_t id, \
808 const struct timespec32 *abstime); }
809 442 AUE_NULL STD { int freebsd32_thr_suspend( \
810 const struct timespec32 *timeout); }
811 443 AUE_NULL NOPROTO { int thr_wake(long id); }
812 444 AUE_MODUNLOAD NOPROTO { int kldunloadf(int fileid, int flags); }
813 445 AUE_AUDIT NOPROTO { int audit(const void *record, \
814 u_int length); }
815 446 AUE_AUDITON NOPROTO { int auditon(int cmd, void *data, \
816 u_int length); }
817 447 AUE_GETAUID NOPROTO { int getauid(uid_t *auid); }
818 448 AUE_SETAUID NOPROTO { int setauid(uid_t *auid); }
819 449 AUE_GETAUDIT NOPROTO { int getaudit(struct auditinfo *auditinfo); }
820 450 AUE_SETAUDIT NOPROTO { int setaudit(struct auditinfo *auditinfo); }
821 451 AUE_GETAUDIT_ADDR NOPROTO { int getaudit_addr( \
822 struct auditinfo_addr *auditinfo_addr, \
823 u_int length); }
824 452 AUE_SETAUDIT_ADDR NOPROTO { int setaudit_addr( \
825 struct auditinfo_addr *auditinfo_addr, \
826 u_int length); }
827 453 AUE_AUDITCTL NOPROTO { int auditctl(const char *path); }
828 454 AUE_NULL STD { int freebsd32__umtx_op(void *obj, int op,\
829 u_long val, void *uaddr, \
830 void *uaddr2); }
831 455 AUE_THR_NEW STD { int freebsd32_thr_new( \
832 struct thr_param32 *param, \
833 int param_size); }
834 456 AUE_NULL STD { int freebsd32_sigqueue(pid_t pid, \
835 int signum, int value); }
836 457 AUE_MQ_OPEN NOSTD { int freebsd32_kmq_open( \
837 const char *path, int flags, mode_t mode, \
838 const struct mq_attr32 *attr); }
839 458 AUE_MQ_SETATTR NOSTD { int freebsd32_kmq_setattr(int mqd, \
840 const struct mq_attr32 *attr, \
841 struct mq_attr32 *oattr); }
842 459 AUE_MQ_TIMEDRECEIVE NOSTD { int freebsd32_kmq_timedreceive(int mqd, \
843 char *msg_ptr, size_t msg_len, \
844 unsigned *msg_prio, \
845 const struct timespec32 *abs_timeout); }
846 460 AUE_MQ_TIMEDSEND NOSTD { int freebsd32_kmq_timedsend(int mqd, \
847 const char *msg_ptr, size_t msg_len,\
848 unsigned msg_prio, \
849 const struct timespec32 *abs_timeout);}
850 461 AUE_MQ_NOTIFY NOSTD { int freebsd32_kmq_notify(int mqd, \
851 const struct sigevent32 *sigev); }
852 462 AUE_MQ_UNLINK NOPROTO|NOSTD { int kmq_unlink(const char *path); }
853 463 AUE_NULL NOPROTO { int abort2(const char *why, int nargs, void **args); }
854 464 AUE_NULL NOPROTO { int thr_set_name(long id, const char *name); }
855 465 AUE_AIO_FSYNC STD { int freebsd32_aio_fsync(int op, \
856 struct aiocb32 *aiocbp); }
857 466 AUE_RTPRIO NOPROTO { int rtprio_thread(int function, \
858 lwpid_t lwpid, struct rtprio *rtp); }
859 467 AUE_NULL UNIMPL nosys
860 468 AUE_NULL UNIMPL nosys
861 469 AUE_NULL UNIMPL __getpath_fromfd
862 470 AUE_NULL UNIMPL __getpath_fromaddr
863 471 AUE_SCTP_PEELOFF NOPROTO|NOSTD { int sctp_peeloff(int sd, uint32_t name); }
864 472 AUE_SCTP_GENERIC_SENDMSG NOPROTO|NOSTD { int sctp_generic_sendmsg( \
865 int sd, void *msg, int mlen, \
866 struct sockaddr *to, __socklen_t tolen, \
867 struct sctp_sndrcvinfo *sinfo, int flags); }
868 473 AUE_SCTP_GENERIC_SENDMSG_IOV NOPROTO|NOSTD { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
869 struct sockaddr *to, __socklen_t tolen, \
870 struct sctp_sndrcvinfo *sinfo, int flags); }
871 474 AUE_SCTP_GENERIC_RECVMSG NOPROTO|NOSTD { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
872 struct sockaddr * from, __socklen_t *fromlenaddr, \
873 struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
874 #ifdef PAD64_REQUIRED
875 475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \
876 void *buf,size_t nbyte, \
877 int pad, \
878 uint32_t offset1, uint32_t offset2); }
879 476 AUE_PWRITE STD { ssize_t freebsd32_pwrite(int fd, \
880 const void *buf, size_t nbyte, \
881 int pad, \
882 uint32_t offset1, uint32_t offset2); }
883 477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \
884 size_t len, int prot, int flags, int fd, \
885 int pad, \
886 uint32_t pos1, uint32_t pos2); }
887 478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \
888 int pad, \
889 uint32_t offset1, uint32_t offset2, \
890 int whence); }
891 479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \
892 int pad, \
893 uint32_t length1, uint32_t length2); }
894 480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \
895 int pad, \
896 uint32_t length1, uint32_t length2); }
897 #else
898 475 AUE_PREAD STD { ssize_t freebsd32_pread(int fd, \
899 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, \
903 uint32_t offset1, uint32_t offset2); }
904 477 AUE_MMAP STD { void *freebsd32_mmap(void *addr, \
905 size_t len, int prot, int flags, int fd, \
906 uint32_t pos1, uint32_t pos2); }
907 478 AUE_LSEEK STD { off_t freebsd32_lseek(int fd, \
908 uint32_t offset1, uint32_t offset2, \
909 int whence); }
910 479 AUE_TRUNCATE STD { int freebsd32_truncate(const char *path, \
911 uint32_t length1, uint32_t length2); }
912 480 AUE_FTRUNCATE STD { int freebsd32_ftruncate(int fd, \
913 uint32_t length1, uint32_t length2); }
914 #endif
915 481 AUE_THR_KILL2 NOPROTO { int thr_kill2(pid_t pid, long id, int sig); }
916 482 AUE_SHMOPEN COMPAT12|NOPROTO { int shm_open( \
917 const char *path, int flags, mode_t mode); }
918 483 AUE_SHMUNLINK NOPROTO { int shm_unlink(const char *path); }
919 484 AUE_NULL NOPROTO { int cpuset(cpusetid_t *setid); }
920 #ifdef PAD64_REQUIRED
921 485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \
922 int pad, \
923 uint32_t id1, uint32_t id2, \
924 cpusetid_t setid); }
925 #else
926 485 AUE_NULL STD { int freebsd32_cpuset_setid(cpuwhich_t which, \
927 uint32_t id1, uint32_t id2, \
928 cpusetid_t setid); }
929 #endif
930 486 AUE_NULL STD { int freebsd32_cpuset_getid(cpulevel_t level, \
931 cpuwhich_t which, \
932 uint32_t id1, uint32_t id2, \
933 cpusetid_t *setid); }
934 487 AUE_NULL STD { int freebsd32_cpuset_getaffinity( \
935 cpulevel_t level, cpuwhich_t which, \
936 uint32_t id1, uint32_t id2, \
937 size_t cpusetsize, \
938 cpuset_t *mask); }
939 488 AUE_NULL STD { int freebsd32_cpuset_setaffinity( \
940 cpulevel_t level, cpuwhich_t which, \
941 uint32_t id1, uint32_t id2, \
942 size_t cpusetsize, \
943 const cpuset_t *mask); }
944 489 AUE_FACCESSAT NOPROTO { int faccessat(int fd, const char *path, \
945 int amode, int flag); }
946 490 AUE_FCHMODAT NOPROTO { int fchmodat(int fd, const char *path, \
947 mode_t mode, int flag); }
948 491 AUE_FCHOWNAT NOPROTO { int fchownat(int fd, const char *path, \
949 uid_t uid, gid_t gid, int flag); }
950 492 AUE_FEXECVE STD { int freebsd32_fexecve(int fd, \
951 uint32_t *argv, uint32_t *envv); }
952 493 AUE_FSTATAT COMPAT11 { int freebsd32_fstatat(int fd, \
953 const char *path, \
954 struct freebsd11_stat32 *buf, \
955 int flag); }
956 494 AUE_FUTIMESAT STD { int freebsd32_futimesat(int fd, \
957 const char *path, \
958 struct timeval *times); }
959 495 AUE_LINKAT NOPROTO { int linkat(int fd1, const char *path1, \
960 int fd2, const char *path2, int flag); }
961 496 AUE_MKDIRAT NOPROTO { int mkdirat(int fd, const char *path, \
962 mode_t mode); }
963 497 AUE_MKFIFOAT NOPROTO { int mkfifoat(int fd, const char *path, \
964 mode_t mode); }
965 498 AUE_MKNODAT COMPAT11|NOPROTO { int mknodat(int fd, \
966 const char *path, mode_t mode, \
967 uint32_t dev); }
968 499 AUE_OPENAT_RWTC NOPROTO { int openat(int fd, const char *path, \
969 int flag, mode_t mode); }
970 500 AUE_READLINKAT NOPROTO { ssize_t readlinkat(int fd, const char *path, \
971 char *buf, size_t bufsize); }
972 501 AUE_RENAMEAT NOPROTO { int renameat(int oldfd, const char *old, \
973 int newfd, const char *new); }
974 502 AUE_SYMLINKAT NOPROTO { int symlinkat(const char *path1, int fd, \
975 const char *path2); }
976 503 AUE_UNLINKAT NOPROTO { int unlinkat(int fd, const char *path, \
977 int flag); }
978 504 AUE_POSIX_OPENPT NOPROTO { int posix_openpt(int flags); }
979 ; 505 is initialised by the kgssapi code, if present.
980 505 AUE_NULL UNIMPL gssd_syscall
981 506 AUE_JAIL_GET STD { int freebsd32_jail_get(struct iovec32 *iovp, \
982 unsigned int iovcnt, int flags); }
983 507 AUE_JAIL_SET STD { int freebsd32_jail_set(struct iovec32 *iovp, \
984 unsigned int iovcnt, int flags); }
985 508 AUE_JAIL_REMOVE NOPROTO { int jail_remove(int jid); }
986 509 AUE_CLOSEFROM COMPAT12|NOPROTO { int closefrom(int lowfd); }
987 510 AUE_SEMCTL NOSTD { int freebsd32_semctl(int semid, int semnum, \
988 int cmd, union semun32 *arg); }
989 511 AUE_MSGCTL NOSTD { int freebsd32_msgctl(int msqid, int cmd, \
990 struct msqid_ds32 *buf); }
991 512 AUE_SHMCTL NOSTD { int freebsd32_shmctl(int shmid, int cmd, \
992 struct shmid_ds32 *buf); }
993 513 AUE_LPATHCONF NOPROTO { int lpathconf(const char *path, int name); }
994 514 AUE_NULL OBSOL cap_new
995 515 AUE_CAP_RIGHTS_GET NOPROTO { int __cap_rights_get(int version, \
996 int fd, cap_rights_t *rightsp); }
997 516 AUE_CAP_ENTER NOPROTO { int cap_enter(void); }
998 517 AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); }
999 518 AUE_PDFORK NOPROTO { int pdfork(int *fdp, int flags); }
1000 519 AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); }
1001 520 AUE_PDGETPID NOPROTO { int pdgetpid(int fd, pid_t *pidp); }
1002 521 AUE_PDWAIT UNIMPL pdwait4
1003 522 AUE_SELECT STD { int freebsd32_pselect(int nd, fd_set *in, \
1004 fd_set *ou, fd_set *ex, \
1005 const struct timespec32 *ts, \
1006 const sigset_t *sm); }
1007 523 AUE_GETLOGINCLASS NOPROTO { int getloginclass(char *namebuf, \
1008 size_t namelen); }
1009 524 AUE_SETLOGINCLASS NOPROTO { int setloginclass(const char *namebuf); }
1010 525 AUE_NULL NOPROTO { int rctl_get_racct(const void *inbufp, \
1011 size_t inbuflen, void *outbufp, \
1012 size_t outbuflen); }
1013 526 AUE_NULL NOPROTO { int rctl_get_rules(const void *inbufp, \
1014 size_t inbuflen, void *outbufp, \
1015 size_t outbuflen); }
1016 527 AUE_NULL NOPROTO { int rctl_get_limits(const void *inbufp, \
1017 size_t inbuflen, void *outbufp, \
1018 size_t outbuflen); }
1019 528 AUE_NULL NOPROTO { int rctl_add_rule(const void *inbufp, \
1020 size_t inbuflen, void *outbufp, \
1021 size_t outbuflen); }
1022 529 AUE_NULL NOPROTO { int rctl_remove_rule(const void *inbufp, \
1023 size_t inbuflen, void *outbufp, \
1024 size_t outbuflen); }
1025 #ifdef PAD64_REQUIRED
1026 530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd, \
1027 int pad, \
1028 uint32_t offset1, uint32_t offset2,\
1029 uint32_t len1, uint32_t len2); }
1030 531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \
1031 int pad, \
1032 uint32_t offset1, uint32_t offset2,\
1033 uint32_t len1, uint32_t len2, \
1034 int advice); }
1035 532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, int pad, \
1036 uint32_t id1, uint32_t id2, \
1037 int *status, int options, \
1038 struct wrusage32 *wrusage, \
1039 siginfo_t *info); }
1040 #else
1041 530 AUE_POSIX_FALLOCATE STD { int freebsd32_posix_fallocate(int fd,\
1042 uint32_t offset1, uint32_t offset2,\
1043 uint32_t len1, uint32_t len2); }
1044 531 AUE_POSIX_FADVISE STD { int freebsd32_posix_fadvise(int fd, \
1045 uint32_t offset1, uint32_t offset2,\
1046 uint32_t len1, uint32_t len2, \
1047 int advice); }
1048 532 AUE_WAIT6 STD { int freebsd32_wait6(int idtype, \
1049 uint32_t id1, uint32_t id2, \
1050 int *status, int options, \
1051 struct wrusage32 *wrusage, \
1052 siginfo_t *info); }
1053 #endif
1054 533 AUE_CAP_RIGHTS_LIMIT NOPROTO { \
1055 int cap_rights_limit(int fd, \
1056 cap_rights_t *rightsp); }
1057 534 AUE_CAP_IOCTLS_LIMIT STD { \
1058 int freebsd32_cap_ioctls_limit(int fd, \
1059 const uint32_t *cmds, size_t ncmds); }
1060 535 AUE_CAP_IOCTLS_GET STD { \
1061 ssize_t freebsd32_cap_ioctls_get(int fd, \
1062 uint32_t *cmds, size_t maxcmds); }
1063 536 AUE_CAP_FCNTLS_LIMIT NOPROTO { int cap_fcntls_limit(int fd, \
1064 uint32_t fcntlrights); }
1065 537 AUE_CAP_FCNTLS_GET NOPROTO { int cap_fcntls_get(int fd, \
1066 uint32_t *fcntlrightsp); }
1067 538 AUE_BINDAT NOPROTO { int bindat(int fd, int s, \
1068 const struct sockaddr *name, \
1069 int namelen); }
1070 539 AUE_CONNECTAT NOPROTO { int connectat(int fd, int s, \
1071 const struct sockaddr *name, \
1072 int namelen); }
1073 540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \
1074 u_long flags, int atflag); }
1075 541 AUE_ACCEPT NOPROTO { int accept4(int s, \
1076 struct sockaddr *name, \
1077 __socklen_t *anamelen, \
1078 int flags); }
1079 542 AUE_PIPE NOPROTO { int pipe2(int *fildes, int flags); }
1080 543 AUE_AIO_MLOCK STD { int freebsd32_aio_mlock( \
1081 struct aiocb32 *aiocbp); }
1082 #ifdef PAD64_REQUIRED
1083 544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, int pad, \
1084 uint32_t id1, uint32_t id2, int com, \
1085 void *data); }
1086 #else
1087 544 AUE_PROCCTL STD { int freebsd32_procctl(int idtype, \
1088 uint32_t id1, uint32_t id2, int com, \
1089 void *data); }
1090 #endif
1091 545 AUE_POLL STD { int freebsd32_ppoll(struct pollfd *fds, \
1092 u_int nfds, const struct timespec32 *ts, \
1093 const sigset_t *set); }
1094 546 AUE_FUTIMES STD { int freebsd32_futimens(int fd, \
1095 struct timespec *times); }
1096 547 AUE_FUTIMESAT STD { int freebsd32_utimensat(int fd, \
1097 const char *path, \
1098 struct timespec *times, int flag); }
1099 548 AUE_NULL OBSOL numa_getaffinity
1100 549 AUE_NULL OBSOL numa_setaffinity
1101 550 AUE_FSYNC NOPROTO { int fdatasync(int fd); }
1102 551 AUE_FSTAT STD { int freebsd32_fstat(int fd, \
1103 struct stat32 *ub); }
1104 552 AUE_FSTATAT STD { int freebsd32_fstatat(int fd, \
1105 const char *path, struct stat32 *buf, \
1106 int flag); }
1107 553 AUE_FHSTAT STD { int freebsd32_fhstat( \
1108 const struct fhandle *u_fhp, \
1109 struct stat32 *sb); }
1110 554 AUE_GETDIRENTRIES NOPROTO { ssize_t getdirentries( \
1111 int fd, char *buf, size_t count, \
1112 off_t *basep); }
1113 555 AUE_STATFS NOPROTO { int statfs(const char *path, \
1114 struct statfs32 *buf); }
1115 556 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs32 *buf); }
1116 557 AUE_GETFSSTAT NOPROTO { int getfsstat(struct statfs32 *buf, \
1117 long bufsize, int mode); }
1118 558 AUE_FHSTATFS NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \
1119 struct statfs32 *buf); }
1120 #ifdef PAD64_REQUIRED
1121 559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \
1122 const char *path, mode_t mode, \
1123 int pad, uint32_t dev1, uint32_t dev2); }
1124 #else
1125 559 AUE_MKNODAT STD { int freebsd32_mknodat(int fd, \
1126 const char *path, mode_t mode, \
1127 uint32_t dev1, uint32_t dev2); }
1128 #endif
1129 560 AUE_KEVENT STD { int freebsd32_kevent(int fd, \
1130 const struct kevent32 *changelist, \
1131 int nchanges, \
1132 struct kevent32 *eventlist, \
1133 int nevents, \
1134 const struct timespec32 *timeout); }
1135 561 AUE_NULL STD { int freebsd32_cpuset_getdomain(cpulevel_t level, \
1136 cpuwhich_t which, uint32_t id1, uint32_t id2, \
1137 size_t domainsetsize, domainset_t *mask, \
1138 int *policy); }
1139 562 AUE_NULL STD { int freebsd32_cpuset_setdomain(cpulevel_t level, \
1140 cpuwhich_t which, uint32_t id1, uint32_t id2, \
1141 size_t domainsetsize, domainset_t *mask, \
1142 int policy); }
1143 563 AUE_NULL NOPROTO { int getrandom(void *buf, size_t buflen, \
1144 unsigned int flags); }
1145 564 AUE_NULL NOPROTO { int getfhat( int fd, char *path, \
1146 struct fhandle *fhp, int flags); }
1147 565 AUE_NULL NOPROTO { int fhlink( struct fhandle *fhp, const char *to ); }
1148 566 AUE_NULL NOPROTO { int fhlinkat( struct fhandle *fhp, int tofd, \
1149 const char *to); }
1150 567 AUE_NULL NOPROTO { int fhreadlink( struct fhandle *fhp, char *buf, \
1151 size_t bufsize); }
1152 568 AUE_UNLINKAT NOPROTO { int funlinkat(int dfd, const char *path, int fd, \
1153 int flag); }
1154 569 AUE_NULL NOPROTO { ssize_t copy_file_range(int infd, \
1155 off_t *inoffp, int outfd, off_t *outoffp, \
1156 size_t len, unsigned int flags); }
1157 570 AUE_SYSCTL STD { int freebsd32___sysctlbyname(const char *name, \
1158 size_t namelen, void *old, uint32_t *oldlenp, \
1159 void *new, size_t newlen); }
1160 571 AUE_SHMOPEN NOPROTO { int shm_open2( \
1161 const char *path, int flags, mode_t mode, \
1162 int shmflags, const char *name); }
1163 572 AUE_SHMRENAME NOPROTO { int shm_rename(const char *path_from, \
1164 const char *path_to, int flags); }
1165 573 AUE_NULL NOPROTO { int sigfastblock(int cmd, uint32_t *ptr); }
1166 574 AUE_REALPATHAT NOPROTO { int __realpathat(int fd, const char *path, \
1167 char *buf, size_t size, int flags); }
1168 575 AUE_CLOSERANGE NOPROTO { int close_range(u_int lowfd, u_int highfd, \
1169 int flags); }
1170 ; 576 is initialised by the krpc code, if present.
1171 576 AUE_NULL NOSTD|NOPROTO { int rpctls_syscall(int op, \
1172 const char *path); }
1173 577 AUE_SPECIALFD NOPROTO { int __specialfd(int type, const void *req, \
1174 size_t len); }
1175 578 AUE_AIO_WRITEV STD { int freebsd32_aio_writev( \
1176 struct aiocb32 *aiocbp); }
1177 579 AUE_AIO_READV STD { int freebsd32_aio_readv( \
1178 struct aiocb32 *aiocbp); }
1179 580 AUE_NULL UNIMPL fspacectl
1180 581 AUE_NULL NOPROTO { int sched_getcpu(void); }
1181 582 AUE_NULL UNIMPL swapoff
1182 ; vim: syntax=off
Cache object: 76de3320e5e5c7af3e1c2ffbd6707d24
|