2 ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
4 ; System call name/number master file.
5 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
7 ; Columns: number audit type name alt{name,tag,rtyp}/comments
8 ; number system call number, must be in order
9 ; audit the audit event associated with the system call
10 ; A value of AUE_NULL means no auditing, but it also means that
11 ; there is no audit event for the call at this time. For the
12 ; case where the event exists, but we don't want auditing, the
13 ; event should be #defined to AUE_NULL in audit_kevents.h.
14 ; type one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
15 ; COMPAT7, COMPAT11, NODEF, NOARGS, NOPROTO, NOSTD
16 ; The COMPAT* options may be combined with one or more NO*
17 ; options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
18 ; name pseudo-prototype of syscall routine
19 ; If one of the following alts is different, then all appear:
20 ; altname name of system call if different
21 ; alttag name of args struct tag if different from [o]`name'"_args"
22 ; altrtyp return type if not int (bogus - syscalls always return int)
23 ; for UNIMPL/OBSOL, name continues with comments
27 ; COMPAT included on COMPAT #ifdef
28 ; COMPAT4 included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat)
29 ; COMPAT6 included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat)
30 ; COMPAT7 included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat)
31 ; COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat)
32 ; COMPAT11 included on COMPAT11 #ifdef (FreeBSD 11 compat)
33 ; OBSOL obsolete, not included in system, only specifies name
34 ; UNIMPL not implemented, placeholder only
35 ; NOSTD implemented but as a lkm that can be statically
36 ; compiled in; sysent entry will be filled with lkmressys
37 ; so the SYSCALL_MODULE macro works
38 ; NOARGS same as STD except do not create structure in sys/sysproto.h
39 ; NODEF same as STD except only have the entry in the syscall table
40 ; added. Meaning - do not create structure or function
41 ; prototype in sys/sysproto.h
42 ; NOPROTO same as STD except do not create structure or
43 ; function prototype in sys/sysproto.h. Does add a
44 ; definition to syscall.h besides adding a sysent.
45 ; NOTSTATIC syscall is loadable
48 ; SAL 2.0 annotations are used to specify how system calls treat
49 ; arguments that are passed using pointers. There are three basic
52 ; _In_ Object pointed to will be read and not modified.
53 ; _Out_ Object pointed to will be written and not read.
54 ; _Inout_ Object pointed to will be written and read.
56 ; These annotations are used alone when the pointer refers to a single
57 ; object i.e. scalar types, structs, and pointers, and not NULL. Adding
58 ; the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
61 ; For pointers to arrays, additional suffixes are added:
63 ; _In_z_, _Out_z_, _Inout_z_:
64 ; for a NUL terminated array e.g. a string.
65 ; _In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
66 ; for a NUL terminated array e.g. a string, of known length n bytes.
67 ; _In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
68 ; for an array of n elements.
69 ; _In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
70 ; for a buffer of n-bytes.
72 ; Please copy any additions and changes to the following compatability tables:
73 ; sys/compat/freebsd32/syscalls.master
75 ; #ifdef's, etc. may be included, and are copied to the output files.
77 #include <sys/param.h>
78 #include <sys/sysent.h>
79 #include <sys/sysproto.h>
81 ; Reserved/unimplemented system calls in the range 0-150 inclusive
82 ; are reserved for use in future Berkeley releases.
83 ; Additional system calls implemented in vendor and other
84 ; redistributions should be placed in the reserved range at the end
85 ; of the current calls.
87 0 AUE_NULL STD { int nosys(void); } syscall nosys_args int
88 1 AUE_EXIT STD { void sys_exit(int rval); } exit \
90 2 AUE_FORK STD { int fork(void); }
91 3 AUE_READ STD { ssize_t read(int fd, \
92 _Out_writes_bytes_(nbyte) void *buf, \
94 4 AUE_WRITE STD { ssize_t write(int fd, \
95 _In_reads_bytes_(nbyte) const void *buf, \
97 5 AUE_OPEN_RWTC STD { int open( \
101 ; XXX should be { int open(const char *path, int flags, ...); }
102 ; but we're not ready for `const' or varargs.
103 ; XXX man page says `mode_t mode'.
104 6 AUE_CLOSE STD { int close(int fd); }
105 7 AUE_WAIT4 STD { int wait4(int pid, \
106 _Out_opt_ int *status, \
108 _Out_opt_ struct rusage *rusage); }
109 8 AUE_CREAT COMPAT { int creat(_In_z_ char *path, int mode); }
110 9 AUE_LINK STD { int link(_In_z_ char *path, \
111 _In_z_ char *link); }
112 10 AUE_UNLINK STD { int unlink(_In_z_ char *path); }
113 11 AUE_NULL OBSOL execv
114 12 AUE_CHDIR STD { int chdir(_In_z_ char *path); }
115 13 AUE_FCHDIR STD { int fchdir(int fd); }
116 14 AUE_MKNOD COMPAT11 { int mknod(_In_z_ char *path, int mode, \
118 15 AUE_CHMOD STD { int chmod(_In_z_ char *path, int mode); }
119 16 AUE_CHOWN STD { int chown(_In_z_ char *path, \
121 17 AUE_NULL STD { int obreak(_In_ char *nsize); } break \
123 18 AUE_GETFSSTAT COMPAT4 { int getfsstat( \
124 _Out_writes_bytes_opt_(bufsize) \
125 struct ostatfs *buf, \
126 long bufsize, int mode); }
127 19 AUE_LSEEK COMPAT { long lseek(int fd, long offset, \
129 20 AUE_GETPID STD { pid_t getpid(void); }
130 21 AUE_MOUNT STD { int mount(_In_z_ char *type, \
131 _In_z_ char *path, int flags, \
132 _In_opt_ caddr_t data); }
133 ; XXX `path' should have type `const char *' but we're not ready for that.
134 22 AUE_UMOUNT STD { int unmount(_In_z_ char *path, int flags); }
135 23 AUE_SETUID STD { int setuid(uid_t uid); }
136 24 AUE_GETUID STD { uid_t getuid(void); }
137 25 AUE_GETEUID STD { uid_t geteuid(void); }
138 26 AUE_PTRACE STD { int ptrace(int req, pid_t pid, \
139 _Inout_opt_ caddr_t addr, int data); }
140 27 AUE_RECVMSG STD { int recvmsg(int s, \
141 _Inout_ struct msghdr *msg, int flags); }
142 28 AUE_SENDMSG STD { int sendmsg(int s, _In_ struct msghdr *msg, \
144 29 AUE_RECVFROM STD { int recvfrom(int s, \
145 _Out_writes_bytes_(len) caddr_t buf, \
146 size_t len, int flags, \
147 _Out_writes_bytes_opt_(*fromlenaddr) \
148 struct sockaddr * __restrict from, \
150 __socklen_t * __restrict fromlenaddr); }
151 30 AUE_ACCEPT STD { int accept(int s, \
152 _Out_writes_bytes_opt_(*anamelen) \
153 struct sockaddr * __restrict name, \
155 __socklen_t * __restrict anamelen); }
156 31 AUE_GETPEERNAME STD { int getpeername(int fdes, \
157 _Out_writes_bytes_(*alen) \
158 struct sockaddr * __restrict asa, \
160 __socklen_t * __restrict alen); }
161 32 AUE_GETSOCKNAME STD { int getsockname(int fdes, \
162 _Out_writes_bytes_(*alen) \
163 struct sockaddr * __restrict asa, \
164 _Inout_ __socklen_t * __restrict alen); }
165 33 AUE_ACCESS STD { int access(_In_z_ char *path, int amode); }
166 34 AUE_CHFLAGS STD { int chflags(_In_z_ const char *path, \
168 35 AUE_FCHFLAGS STD { int fchflags(int fd, u_long flags); }
169 36 AUE_SYNC STD { int sync(void); }
170 37 AUE_KILL STD { int kill(int pid, int signum); }
171 38 AUE_STAT COMPAT { int stat(_In_z_ char *path, \
172 _Out_ struct ostat *ub); }
173 39 AUE_GETPPID STD { pid_t getppid(void); }
174 40 AUE_LSTAT COMPAT { int lstat(_In_z_ char *path, \
175 _Out_ struct ostat *ub); }
176 41 AUE_DUP STD { int dup(u_int fd); }
177 42 AUE_PIPE COMPAT10 { int pipe(void); }
178 43 AUE_GETEGID STD { gid_t getegid(void); }
179 44 AUE_PROFILE STD { int profil( \
180 _Out_writes_bytes_(size) caddr_t samples, \
181 size_t size, size_t offset, u_int scale); }
182 45 AUE_KTRACE STD { int ktrace(_In_z_ const char *fname, \
183 int ops, int facs, int pid); }
184 46 AUE_SIGACTION COMPAT { int sigaction(int signum, \
185 _In_opt_ struct osigaction *nsa, \
186 _Out_opt_ struct osigaction *osa); }
187 47 AUE_GETGID STD { gid_t getgid(void); }
188 48 AUE_SIGPROCMASK COMPAT { int sigprocmask(int how, osigset_t mask); }
189 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
190 ; us the mask, not a pointer to it, and we return the old mask as the
191 ; (int) return value.
192 49 AUE_GETLOGIN STD { int getlogin( \
193 _Out_writes_z_(namelen) char *namebuf, \
195 50 AUE_SETLOGIN STD { int setlogin(_In_z_ char *namebuf); }
196 51 AUE_ACCT STD { int acct(_In_z_ char *path); }
197 52 AUE_SIGPENDING COMPAT { int sigpending(void); }
198 53 AUE_SIGALTSTACK STD { int sigaltstack(_In_opt_ stack_t *ss, \
199 _Out_opt_ stack_t *oss); }
200 54 AUE_IOCTL STD { int ioctl(int fd, u_long com, \
201 _Inout_opt_ caddr_t data); }
202 55 AUE_REBOOT STD { int reboot(int opt); }
203 56 AUE_REVOKE STD { int revoke(_In_z_ char *path); }
204 57 AUE_SYMLINK STD { int symlink(_In_z_ char *path, \
205 _In_z_ char *link); }
206 58 AUE_READLINK STD { ssize_t readlink(_In_z_ char *path, \
207 _Out_writes_z_(count) char *buf, \
209 59 AUE_EXECVE STD { int execve( \
210 _In_z_ char *fname, \
211 _In_z_ char **argv, \
212 _In_z_ char **envv); }
213 60 AUE_UMASK STD { int umask(int newmask); } umask umask_args \
215 61 AUE_CHROOT STD { int chroot(_In_z_ char *path); }
216 62 AUE_FSTAT COMPAT { int fstat(int fd, _Out_ struct ostat *sb); }
217 63 AUE_NULL COMPAT { int getkerninfo(int op, \
218 _Out_writes_bytes_opt(*size) char *where, \
219 _Inout_opt_ size_t *size, \
220 int arg); } getkerninfo getkerninfo_args int
221 64 AUE_NULL COMPAT { int getpagesize(void); } getpagesize \
223 65 AUE_MSYNC STD { int msync(_In_ void *addr, size_t len, \
225 66 AUE_VFORK STD { int vfork(void); }
226 67 AUE_NULL OBSOL vread
227 68 AUE_NULL OBSOL vwrite
228 69 AUE_SBRK STD { int sbrk(int incr); }
229 70 AUE_SSTK STD { int sstk(int incr); }
230 71 AUE_MMAP COMPAT { int mmap(_In_ void *addr, int len, int prot, \
231 int flags, int fd, long pos); }
232 72 AUE_O_VADVISE COMPAT11 { int vadvise(int anom); }
233 73 AUE_MUNMAP STD { int munmap(_In_ void *addr, size_t len); }
234 74 AUE_MPROTECT STD { int mprotect(_In_ void *addr, \
235 size_t len, int prot); }
236 75 AUE_MADVISE STD { int madvise(_In_ void *addr, \
237 size_t len, int behav); }
238 76 AUE_NULL OBSOL vhangup
239 77 AUE_NULL OBSOL vlimit
240 78 AUE_MINCORE STD { int mincore( \
241 _In_ const void *addr, \
243 _Out_writes_bytes_(len/PAGE_SIZE) \
245 79 AUE_GETGROUPS STD { int getgroups(u_int gidsetsize, \
246 _Out_writes_opt_(gidsetsize) \
248 80 AUE_SETGROUPS STD { int setgroups(u_int gidsetsize, \
249 _In_reads_(gidsetsize) gid_t *gidset); }
250 81 AUE_GETPGRP STD { int getpgrp(void); }
251 82 AUE_SETPGRP STD { int setpgid(int pid, int pgid); }
252 83 AUE_SETITIMER STD { int setitimer(u_int which, \
253 _In_ struct itimerval *itv, \
254 _Out_opt_ struct itimerval *oitv); }
255 84 AUE_WAIT4 COMPAT { int wait(void); }
256 85 AUE_SWAPON STD { int swapon(_In_z_ char *name); }
257 86 AUE_GETITIMER STD { int getitimer(u_int which, \
258 _Out_ struct itimerval *itv); }
259 87 AUE_SYSCTL COMPAT { int gethostname( \
260 _Out_writes_z_(len) char *hostname, \
261 u_int len); } gethostname \
263 88 AUE_SYSCTL COMPAT { int sethostname( \
264 _In_reads_z_(len) char *hostname, \
265 u_int len); } sethostname \
267 89 AUE_GETDTABLESIZE STD { int getdtablesize(void); }
268 90 AUE_DUP2 STD { int dup2(u_int from, u_int to); }
269 91 AUE_NULL UNIMPL getdopt
270 92 AUE_FCNTL STD { int fcntl(int fd, int cmd, long arg); }
271 ; XXX should be { int fcntl(int fd, int cmd, ...); }
272 ; but we're not ready for varargs.
273 93 AUE_SELECT STD { int select(int nd, \
274 _Inout_opt_ fd_set *in, \
275 _Inout_opt_ fd_set *ou, \
276 _Inout_opt_ fd_set *ex, \
277 _In_opt_ struct timeval *tv); }
278 94 AUE_NULL UNIMPL setdopt
279 95 AUE_FSYNC STD { int fsync(int fd); }
280 96 AUE_SETPRIORITY STD { int setpriority(int which, int who, \
282 97 AUE_SOCKET STD { int socket(int domain, int type, \
284 98 AUE_CONNECT STD { int connect(int s, \
285 _In_reads_bytes_(namelen) caddr_t name, \
287 99 AUE_ACCEPT COMPAT|NOARGS { int accept(int s, \
288 _Out_writes_bytes_opt_(*anamelen) \
289 caddr_t name, int *anamelen); } \
290 accept accept_args int
291 100 AUE_GETPRIORITY STD { int getpriority(int which, int who); }
292 101 AUE_SEND COMPAT { int send(int s, \
293 _In_reads_bytes_(len) caddr_t buf, \
296 102 AUE_RECV COMPAT { int recv(int s, \
297 _Out_writes_bytes_(len) caddr_t buf, \
298 int len, int flags); }
299 103 AUE_SIGRETURN COMPAT { int sigreturn( \
300 _In_ struct osigcontext *sigcntxp); }
301 104 AUE_BIND STD { int bind(int s, \
302 _In_reads_bytes_(namelen) caddr_t name, \
304 105 AUE_SETSOCKOPT STD { int setsockopt(int s, int level, int name, \
305 _In_reads_bytes_opt_(valsize) caddr_t val, \
307 106 AUE_LISTEN STD { int listen(int s, int backlog); }
308 107 AUE_NULL OBSOL vtimes
309 108 AUE_NULL COMPAT { int sigvec(int signum, \
310 _In_opt_ struct sigvec *nsv, \
311 _Out_opt_ struct sigvec *osv); }
312 109 AUE_NULL COMPAT { int sigblock(int mask); }
313 110 AUE_NULL COMPAT { int sigsetmask(int mask); }
314 111 AUE_NULL COMPAT { int sigsuspend(osigset_t mask); }
315 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
316 ; us the mask, not a pointer to it.
317 112 AUE_NULL COMPAT { int sigstack(_In_opt_ struct sigstack *nss, \
318 _Out_opt_ struct sigstack *oss); }
319 113 AUE_RECVMSG COMPAT { int recvmsg(int s, \
320 _Inout_ struct omsghdr *msg, \
322 114 AUE_SENDMSG COMPAT { int sendmsg(int s, _In_ caddr_t msg, \
324 115 AUE_NULL OBSOL vtrace
325 116 AUE_GETTIMEOFDAY STD { int gettimeofday( \
326 _Out_ struct timeval *tp, \
327 _Out_opt_ struct timezone *tzp); }
328 117 AUE_GETRUSAGE STD { int getrusage(int who, \
329 _Out_ struct rusage *rusage); }
330 118 AUE_GETSOCKOPT STD { int getsockopt(int s, int level, int name, \
331 _Out_writes_bytes_opt_(*avalsize) \
332 caddr_t val, _Inout_ int *avalsize); }
333 119 AUE_NULL UNIMPL resuba (BSD/OS 2.x)
334 120 AUE_READV STD { int readv(int fd, \
335 _Inout_updates_(iovcnt) struct iovec *iovp, \
337 121 AUE_WRITEV STD { int writev(int fd, \
338 _In_reads_opt_(iovcnt) struct iovec *iovp, \
340 122 AUE_SETTIMEOFDAY STD { int settimeofday( \
341 _In_ struct timeval *tv, \
342 _In_opt_ struct timezone *tzp); }
343 123 AUE_FCHOWN STD { int fchown(int fd, int uid, int gid); }
344 124 AUE_FCHMOD STD { int fchmod(int fd, int mode); }
345 125 AUE_RECVFROM COMPAT|NOARGS { int recvfrom(int s, \
346 _Out_writes_(len) caddr_t buf, \
347 size_t len, int flags, \
348 _Out_writes_bytes_(*fromlenaddr) \
350 _Inout_ int *fromlenaddr); } \
351 recvfrom recvfrom_args int
352 126 AUE_SETREUID STD { int setreuid(int ruid, int euid); }
353 127 AUE_SETREGID STD { int setregid(int rgid, int egid); }
354 128 AUE_RENAME STD { int rename(_In_z_ char *from, \
356 129 AUE_TRUNCATE COMPAT { int truncate(_In_z_ char *path, \
358 130 AUE_FTRUNCATE COMPAT { int ftruncate(int fd, long length); }
359 131 AUE_FLOCK STD { int flock(int fd, int how); }
360 132 AUE_MKFIFO STD { int mkfifo(_In_z_ char *path, int mode); }
361 133 AUE_SENDTO STD { int sendto(int s, \
362 _In_reads_bytes_(len) caddr_t buf, \
363 size_t len, int flags, \
364 _In_reads_bytes_opt_(tolen) caddr_t to, \
366 134 AUE_SHUTDOWN STD { int shutdown(int s, int how); }
367 135 AUE_SOCKETPAIR STD { int socketpair(int domain, int type, \
368 int protocol, _Out_writes_(2) int *rsv); }
369 136 AUE_MKDIR STD { int mkdir(_In_z_ char *path, int mode); }
370 137 AUE_RMDIR STD { int rmdir(_In_z_ char *path); }
371 138 AUE_UTIMES STD { int utimes(_In_z_ char *path, \
372 _In_ struct timeval *tptr); }
373 139 AUE_NULL OBSOL 4.2 sigreturn
374 140 AUE_ADJTIME STD { int adjtime(_In_ struct timeval *delta, \
375 _Out_opt_ struct timeval *olddelta); }
376 141 AUE_GETPEERNAME COMPAT { int getpeername(int fdes, \
377 _Out_writes_bytes_(*alen) \
379 _Inout_opt_ int *alen); }
380 142 AUE_SYSCTL COMPAT { long gethostid(void); }
381 143 AUE_SYSCTL COMPAT { int sethostid(long hostid); }
382 144 AUE_GETRLIMIT COMPAT { int getrlimit(u_int which, _Out_ struct \
384 145 AUE_SETRLIMIT COMPAT { int setrlimit(u_int which, \
385 _Out_ struct orlimit *rlp); }
386 146 AUE_KILLPG COMPAT { int killpg(int pgid, int signum); }
387 147 AUE_SETSID STD { int setsid(void); }
388 148 AUE_QUOTACTL STD { int quotactl( \
389 _In_z_ char *path, int cmd, int uid, \
391 149 AUE_O_QUOTA COMPAT { int quota(void); }
392 150 AUE_GETSOCKNAME COMPAT|NOARGS { int getsockname(int fdec, \
393 _Out_writes_bytes_(*alen) \
395 _Inout_ int *alen); } getsockname \
398 ; Syscalls 151-180 inclusive are reserved for vendor-specific
399 ; system calls. (This includes various calls added for compatibity
400 ; with other Unix variants.)
401 ; Some of these calls are now supported by BSD...
402 151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x)
403 152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x)
404 153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x)
405 ; 154 is initialised by the NLM code, if present.
406 154 AUE_NULL NOSTD { int nlm_syscall(int debug_level, \
407 int grace_period, int addr_count, \
408 _In_reads_(addr_count) \
410 ; 155 is initialized by the NFS code, if present.
411 155 AUE_NFS_SVC NOSTD { int nfssvc(int flag, _In_ caddr_t argp); }
412 156 AUE_GETDIRENTRIES COMPAT { int getdirentries(int fd, \
413 _Out_writes_bytes_(count) char *buf, \
414 u_int count, _Out_ long *basep); }
415 157 AUE_STATFS COMPAT4 { int statfs(_In_z_ char *path, \
416 _Out_ struct ostatfs *buf); }
417 158 AUE_FSTATFS COMPAT4 { int fstatfs(int fd, \
418 _Out_ struct ostatfs *buf); }
419 159 AUE_NULL UNIMPL nosys
420 160 AUE_LGETFH STD { int lgetfh(_In_z_ char *fname, \
421 _Out_ struct fhandle *fhp); }
422 161 AUE_NFS_GETFH STD { int getfh(_In_z_ char *fname, \
423 _Out_ struct fhandle *fhp); }
424 162 AUE_SYSCTL COMPAT4 { int getdomainname( \
425 _Out_writes_z_(len) char *domainname, \
427 163 AUE_SYSCTL COMPAT4 { int setdomainname( \
428 _In_reads_z_(len) char *domainname, \
430 164 AUE_NULL COMPAT4 { int uname(_Out_ struct utsname *name); }
431 165 AUE_SYSARCH STD { int sysarch(int op, _In_z_ char *parms); }
432 166 AUE_RTPRIO STD { int rtprio(int function, pid_t pid, \
433 _Inout_ struct rtprio *rtp); }
434 167 AUE_NULL UNIMPL nosys
435 168 AUE_NULL UNIMPL nosys
436 169 AUE_SEMSYS NOSTD { int semsys(int which, int a2, int a3, \
438 ; XXX should be { int semsys(int which, ...); }
439 170 AUE_MSGSYS NOSTD { int msgsys(int which, int a2, int a3, \
440 int a4, int a5, int a6); }
441 ; XXX should be { int msgsys(int which, ...); }
442 171 AUE_SHMSYS NOSTD { int shmsys(int which, int a2, int a3, \
444 ; XXX should be { int shmsys(int which, ...); }
445 172 AUE_NULL UNIMPL nosys
446 173 AUE_PREAD COMPAT6 { ssize_t pread(int fd, \
447 _Out_writes_bytes_(nbyte) void *buf, \
448 size_t nbyte, int pad, off_t offset); }
449 174 AUE_PWRITE COMPAT6 { ssize_t pwrite(int fd, \
450 _In_reads_bytes_(nbyte) \
452 size_t nbyte, int pad, off_t offset); }
453 175 AUE_SETFIB STD { int setfib(int fibnum); }
454 176 AUE_NTP_ADJTIME STD { int ntp_adjtime(_Inout_ struct timex *tp); }
455 177 AUE_NULL UNIMPL sfork (BSD/OS 2.x)
456 178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x)
457 179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x)
458 180 AUE_NULL UNIMPL nosys
460 ; Syscalls 181-199 are used by/reserved for BSD
461 181 AUE_SETGID STD { int setgid(gid_t gid); }
462 182 AUE_SETEGID STD { int setegid(gid_t egid); }
463 183 AUE_SETEUID STD { int seteuid(uid_t euid); }
464 184 AUE_NULL UNIMPL lfs_bmapv
465 185 AUE_NULL UNIMPL lfs_markv
466 186 AUE_NULL UNIMPL lfs_segclean
467 187 AUE_NULL UNIMPL lfs_segwait
468 188 AUE_STAT COMPAT11 { int stat(_In_z_ char *path, \
469 _Out_ struct freebsd11_stat *ub); }
470 189 AUE_FSTAT COMPAT11 { int fstat(int fd, \
471 _Out_ struct freebsd11_stat *sb); }
472 190 AUE_LSTAT COMPAT11 { int lstat(_In_z_ char *path, \
473 _Out_ struct freebsd11_stat *ub); }
474 191 AUE_PATHCONF STD { int pathconf(_In_z_ char *path, int name); }
475 192 AUE_FPATHCONF STD { int fpathconf(int fd, int name); }
476 193 AUE_NULL UNIMPL nosys
477 194 AUE_GETRLIMIT STD { int getrlimit(u_int which, \
478 _Out_ struct rlimit *rlp); } getrlimit \
480 195 AUE_SETRLIMIT STD { int setrlimit(u_int which, \
481 _In_ struct rlimit *rlp); } setrlimit \
483 196 AUE_GETDIRENTRIES COMPAT11 { int getdirentries(int fd, \
484 _Out_writes_bytes_(count) char *buf, \
485 u_int count, _Out_ long *basep); }
486 197 AUE_MMAP COMPAT6 { caddr_t mmap(_In_ caddr_t addr, size_t len, \
487 int prot, int flags, int fd, int pad, \
489 198 AUE_NULL NOPROTO { int nosys(void); } __syscall \
491 199 AUE_LSEEK COMPAT6 { off_t lseek(int fd, int pad, \
492 off_t offset, int whence); }
493 200 AUE_TRUNCATE COMPAT6 { int truncate(_In_z_ char *path, int pad, \
495 201 AUE_FTRUNCATE COMPAT6 { int ftruncate(int fd, int pad, \
497 202 AUE_SYSCTL STD { int __sysctl( \
498 _In_reads_(namelen) int *name, \
500 _Out_writes_bytes_opt_(*oldlenp) \
502 _Inout_opt_ size_t *oldlenp, \
503 _In_reads_bytes_opt_(newlen) \
506 __sysctl sysctl_args int
507 203 AUE_MLOCK STD { int mlock(_In_ const void *addr, \
509 204 AUE_MUNLOCK STD { int munlock(_In_ const void *addr, \
511 205 AUE_UNDELETE STD { int undelete(_In_z_ char *path); }
512 206 AUE_FUTIMES STD { int futimes(int fd, \
513 _In_reads_(2) struct timeval *tptr); }
514 207 AUE_GETPGID STD { int getpgid(pid_t pid); }
515 208 AUE_NULL UNIMPL nosys
516 209 AUE_POLL STD { int poll( \
517 _Inout_updates_(nfds) \
518 struct pollfd *fds, \
519 u_int nfds, int timeout); }
521 ; The following are reserved for loadable syscalls
523 210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
524 211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
525 212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
526 213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
527 214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
528 215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
529 216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
530 217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
531 218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
532 219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
534 220 AUE_SEMCTL COMPAT7|NOSTD { int __semctl(int semid, int semnum, \
535 int cmd, union semun_old *arg); }
536 221 AUE_SEMGET NOSTD { int semget(key_t key, int nsems, \
538 222 AUE_SEMOP NOSTD { int semop(int semid, \
539 _In_reads_(nsops) struct sembuf *sops, \
541 223 AUE_NULL UNIMPL semconfig
542 224 AUE_MSGCTL COMPAT7|NOSTD { int msgctl(int msqid, int cmd, \
543 struct msqid_ds_old *buf); }
544 225 AUE_MSGGET NOSTD { int msgget(key_t key, int msgflg); }
545 226 AUE_MSGSND NOSTD { int msgsnd(int msqid, \
546 _In_reads_bytes_(msgsz) const void *msgp, \
547 size_t msgsz, int msgflg); }
548 227 AUE_MSGRCV NOSTD { ssize_t msgrcv(int msqid, \
549 _Out_writes_bytes_(msgsz) void *msgp, \
550 size_t msgsz, long msgtyp, int msgflg); }
551 228 AUE_SHMAT NOSTD { int shmat(int shmid, \
552 _In_ const void *shmaddr, \
554 229 AUE_SHMCTL COMPAT7|NOSTD { int shmctl(int shmid, int cmd, \
555 struct shmid_ds_old *buf); }
556 230 AUE_SHMDT NOSTD { int shmdt(_In_ const void *shmaddr); }
557 231 AUE_SHMGET NOSTD { int shmget(key_t key, size_t size, \
560 232 AUE_NULL STD { int clock_gettime(clockid_t clock_id, \
561 _Out_ struct timespec *tp); }
562 233 AUE_CLOCK_SETTIME STD { int clock_settime(clockid_t clock_id, \
563 _In_ const struct timespec *tp); }
564 234 AUE_NULL STD { int clock_getres(clockid_t clock_id, \
565 _Out_ struct timespec *tp); }
566 235 AUE_NULL STD { int ktimer_create( \
567 clockid_t clock_id, \
568 _In_ struct sigevent *evp, \
569 _Out_ int *timerid); }
570 236 AUE_NULL STD { int ktimer_delete(int timerid); }
571 237 AUE_NULL STD { int ktimer_settime(int timerid, \
573 _In_ const struct itimerspec *value, \
574 _Out_opt_ struct itimerspec *ovalue); }
575 238 AUE_NULL STD { int ktimer_gettime(int timerid, \
576 _Out_ struct itimerspec *value); }
577 239 AUE_NULL STD { int ktimer_getoverrun(int timerid); }
578 240 AUE_NULL STD { int nanosleep( \
579 _In_ const struct timespec *rqtp, \
580 _Out_opt_ struct timespec *rmtp); }
581 241 AUE_NULL STD { int ffclock_getcounter( \
582 _Out_ ffcounter *ffcount); }
583 242 AUE_NULL STD { int ffclock_setestimate( \
584 _In_ struct ffclock_estimate *cest); }
585 243 AUE_NULL STD { int ffclock_getestimate( \
586 _Out_ struct ffclock_estimate *cest); }
587 244 AUE_NULL STD { int clock_nanosleep(clockid_t clock_id, \
589 _In_ const struct timespec *rqtp, \
590 _Out_opt_ struct timespec *rmtp); }
591 245 AUE_NULL UNIMPL nosys
592 246 AUE_NULL UNIMPL nosys
593 247 AUE_NULL STD { int clock_getcpuclockid2(id_t id, \
594 int which, _Out_ clockid_t *clock_id); }
595 248 AUE_NULL STD { int ntp_gettime( \
596 _Out_ struct ntptimeval *ntvp); }
597 249 AUE_NULL UNIMPL nosys
598 ; syscall numbers initially used in OpenBSD
599 250 AUE_MINHERIT STD { int minherit( \
601 size_t len, int inherit); }
602 251 AUE_RFORK STD { int rfork(int flags); }
603 252 AUE_POLL OBSOL openbsd_poll
604 253 AUE_ISSETUGID STD { int issetugid(void); }
605 254 AUE_LCHOWN STD { int lchown(_In_z_ char *path, int uid, \
607 255 AUE_AIO_READ STD { int aio_read( \
608 _Inout_ struct aiocb *aiocbp); }
609 256 AUE_AIO_WRITE STD { int aio_write( \
610 _Inout_ struct aiocb *aiocbp); }
611 257 AUE_LIO_LISTIO STD { int lio_listio(int mode, \
612 _Inout_updates_(nent) \
613 struct aiocb* const *acb_list, \
615 _In_opt_ struct sigevent *sig); }
616 258 AUE_NULL UNIMPL nosys
617 259 AUE_NULL UNIMPL nosys
618 260 AUE_NULL UNIMPL nosys
619 261 AUE_NULL UNIMPL nosys
620 262 AUE_NULL UNIMPL nosys
621 263 AUE_NULL UNIMPL nosys
622 264 AUE_NULL UNIMPL nosys
623 265 AUE_NULL UNIMPL nosys
624 266 AUE_NULL UNIMPL nosys
625 267 AUE_NULL UNIMPL nosys
626 268 AUE_NULL UNIMPL nosys
627 269 AUE_NULL UNIMPL nosys
628 270 AUE_NULL UNIMPL nosys
629 271 AUE_NULL UNIMPL nosys
630 272 AUE_O_GETDENTS COMPAT11 { int getdents(int fd, \
631 _Out_writes_bytes_(count) char *buf, \
633 273 AUE_NULL UNIMPL nosys
634 274 AUE_LCHMOD STD { int lchmod(_In_z_ char *path, mode_t mode); }
635 275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \
636 gid_t gid); } netbsd_lchown lchown_args \
638 276 AUE_LUTIMES STD { int lutimes(_In_z_ char *path, \
639 _In_ struct timeval *tptr); }
640 277 AUE_MSYNC NOPROTO { int msync(_In_ void *addr, size_t len, \
641 int flags); } netbsd_msync msync_args int
642 278 AUE_STAT COMPAT11 { int nstat(_In_z_ char *path, \
643 _Out_ struct nstat *ub); }
644 279 AUE_FSTAT COMPAT11 { int nfstat(int fd, _Out_ struct nstat *sb); }
645 280 AUE_LSTAT COMPAT11 { int nlstat(_In_z_ char *path, \
646 _Out_ struct nstat *ub); }
647 281 AUE_NULL UNIMPL nosys
648 282 AUE_NULL UNIMPL nosys
649 283 AUE_NULL UNIMPL nosys
650 284 AUE_NULL UNIMPL nosys
651 285 AUE_NULL UNIMPL nosys
652 286 AUE_NULL UNIMPL nosys
653 287 AUE_NULL UNIMPL nosys
654 288 AUE_NULL UNIMPL nosys
655 289 AUE_PREADV STD { ssize_t preadv(int fd, \
657 struct iovec *iovp, \
658 u_int iovcnt, off_t offset); }
659 290 AUE_PWRITEV STD { ssize_t pwritev(int fd, \
660 _In_reads_(iovcnt) struct iovec *iovp, \
661 u_int iovcnt, off_t offset); }
662 291 AUE_NULL UNIMPL nosys
663 292 AUE_NULL UNIMPL nosys
664 293 AUE_NULL UNIMPL nosys
665 294 AUE_NULL UNIMPL nosys
666 295 AUE_NULL UNIMPL nosys
667 296 AUE_NULL UNIMPL nosys
668 297 AUE_FHSTATFS COMPAT4 { int fhstatfs( \
669 _In_ const struct fhandle *u_fhp, \
670 _Out_ struct ostatfs *buf); }
671 298 AUE_FHOPEN STD { int fhopen( \
672 _In_ const struct fhandle *u_fhp, \
674 299 AUE_FHSTAT COMPAT11 { int fhstat( \
675 _In_ const struct fhandle *u_fhp, \
676 _Out_ struct freebsd11_stat *sb); }
677 300 AUE_NULL STD { int modnext(int modid); }
678 301 AUE_NULL STD { int modstat(int modid, \
679 _Out_ struct module_stat* stat); }
680 302 AUE_NULL STD { int modfnext(int modid); }
681 303 AUE_NULL STD { int modfind(_In_z_ const char *name); }
682 304 AUE_MODLOAD STD { int kldload(_In_z_ const char *file); }
683 305 AUE_MODUNLOAD STD { int kldunload(int fileid); }
684 306 AUE_NULL STD { int kldfind(_In_z_ const char *file); }
685 307 AUE_NULL STD { int kldnext(int fileid); }
686 308 AUE_NULL STD { int kldstat(int fileid, \
687 _Out_ struct kld_file_stat *stat); }
688 309 AUE_NULL STD { int kldfirstmod(int fileid); }
689 310 AUE_GETSID STD { int getsid(pid_t pid); }
690 311 AUE_SETRESUID STD { int setresuid(uid_t ruid, uid_t euid, \
692 312 AUE_SETRESGID STD { int setresgid(gid_t rgid, gid_t egid, \
694 313 AUE_NULL OBSOL signanosleep
695 314 AUE_AIO_RETURN STD { ssize_t aio_return( \
696 _Inout_ struct aiocb *aiocbp); }
697 315 AUE_AIO_SUSPEND STD { int aio_suspend( \
698 _Inout_updates_(nent) \
699 struct aiocb * const * aiocbp, \
702 const struct timespec *timeout); }
703 316 AUE_AIO_CANCEL STD { int aio_cancel(int fd, \
704 _In_opt_ struct aiocb *aiocbp); }
705 317 AUE_AIO_ERROR STD { int aio_error( \
706 _In_ struct aiocb *aiocbp); }
707 318 AUE_AIO_READ COMPAT6 { int aio_read( \
708 _Inout_ struct oaiocb *aiocbp); }
709 319 AUE_AIO_WRITE COMPAT6 { int aio_write( \
710 _Inout_ struct oaiocb *aiocbp); }
711 320 AUE_LIO_LISTIO COMPAT6 { int lio_listio(int mode, \
712 _Inout_updates_(nent) \
713 struct oaiocb * const *acb_list, \
715 _In_opt_ struct osigevent *sig); }
716 321 AUE_NULL STD { int yield(void); }
717 322 AUE_NULL OBSOL thr_sleep
718 323 AUE_NULL OBSOL thr_wakeup
719 324 AUE_MLOCKALL STD { int mlockall(int how); }
720 325 AUE_MUNLOCKALL STD { int munlockall(void); }
721 326 AUE_GETCWD STD { int __getcwd( \
722 _Out_writes_z_(buflen) char *buf, \
724 327 AUE_NULL STD { int sched_setparam (pid_t pid, \
725 _In_ const struct sched_param *param); }
726 328 AUE_NULL STD { int sched_getparam (pid_t pid, \
727 _Out_ struct sched_param *param); }
728 329 AUE_NULL STD { int sched_setscheduler (pid_t pid, int \
729 policy, _In_ const struct sched_param \
731 330 AUE_NULL STD { int sched_getscheduler (pid_t pid); }
732 331 AUE_NULL STD { int sched_yield (void); }
733 332 AUE_NULL STD { int sched_get_priority_max (int policy); }
734 333 AUE_NULL STD { int sched_get_priority_min (int policy); }
735 334 AUE_NULL STD { int sched_rr_get_interval (pid_t pid, \
736 _Out_ struct timespec *interval); }
737 335 AUE_NULL STD { int utrace( \
738 _In_reads_bytes_(len) const void *addr, \
740 336 AUE_SENDFILE COMPAT4 { int sendfile(int fd, int s, \
741 off_t offset, size_t nbytes, \
742 _In_opt_ struct sf_hdtr *hdtr, \
743 _Out_opt_ off_t *sbytes, int flags); }
744 337 AUE_NULL STD { int kldsym(int fileid, int cmd, \
746 338 AUE_JAIL STD { int jail( \
747 _In_ struct jail *jail); }
749 339 AUE_NULL NOSTD|NOTSTATIC { int nnpfs_syscall(int operation, \
750 char *a_pathP, int a_opcode, \
752 int a_followSymlinks); }
753 340 AUE_SIGPROCMASK STD { int sigprocmask(int how, \
754 _In_opt_ const sigset_t *set, \
755 _Out_opt_ sigset_t *oset); }
756 341 AUE_SIGSUSPEND STD { int sigsuspend( \
757 _In_ const sigset_t *sigmask); }
758 342 AUE_SIGACTION COMPAT4 { int sigaction(int sig, \
759 _In_opt_ const struct sigaction *act, \
760 _Out_opt_ struct sigaction *oact); }
761 343 AUE_SIGPENDING STD { int sigpending(_In_ sigset_t *set); }
762 344 AUE_SIGRETURN COMPAT4 { int sigreturn( \
763 _In_ const struct ucontext4 *sigcntxp); }
764 345 AUE_SIGWAIT STD { int sigtimedwait(_In_ const sigset_t *set, \
765 _Out_opt_ siginfo_t *info, \
766 _In_opt_ const struct timespec *timeout); }
767 346 AUE_NULL STD { int sigwaitinfo(_In_ const sigset_t *set, \
768 _Out_opt_ siginfo_t *info); }
769 347 AUE_ACL_GET_FILE STD { int __acl_get_file( \
770 _In_z_ const char *path, \
772 _Out_ struct acl *aclp); }
773 348 AUE_ACL_SET_FILE STD { int __acl_set_file( \
774 _In_z_ const char *path, \
775 acl_type_t type, _In_ struct acl *aclp); }
776 349 AUE_ACL_GET_FD STD { int __acl_get_fd(int filedes, \
777 acl_type_t type, _Out_ struct acl *aclp); }
778 350 AUE_ACL_SET_FD STD { int __acl_set_fd(int filedes, \
779 acl_type_t type, _In_ struct acl *aclp); }
780 351 AUE_ACL_DELETE_FILE STD { int __acl_delete_file( \
781 _In_z_ const char *path, \
783 352 AUE_ACL_DELETE_FD STD { int __acl_delete_fd(int filedes, \
785 353 AUE_ACL_CHECK_FILE STD { int __acl_aclcheck_file( \
786 _In_z_ const char *path, \
787 acl_type_t type, _In_ struct acl *aclp); }
788 354 AUE_ACL_CHECK_FD STD { int __acl_aclcheck_fd(int filedes, \
789 acl_type_t type, _In_ struct acl *aclp); }
790 355 AUE_EXTATTRCTL STD { int extattrctl(_In_z_ const char *path, \
791 int cmd, _In_z_opt_ const char *filename, \
793 _In_z_ const char *attrname); }
794 356 AUE_EXTATTR_SET_FILE STD { ssize_t extattr_set_file( \
795 _In_z_ const char *path, \
797 _In_z_ const char *attrname, \
798 _In_reads_bytes_(nbytes) void *data, \
800 357 AUE_EXTATTR_GET_FILE STD { ssize_t extattr_get_file( \
801 _In_z_ const char *path, \
803 _In_z_ const char *attrname, \
804 _Out_writes_bytes_(nbytes) void *data, \
806 358 AUE_EXTATTR_DELETE_FILE STD { int extattr_delete_file( \
807 _In_z_ const char *path, \
809 _In_z_ const char *attrname); }
810 359 AUE_AIO_WAITCOMPLETE STD { ssize_t aio_waitcomplete( \
811 _Outptr_result_maybenull_ \
812 struct aiocb **aiocbp, \
813 _In_opt_ struct timespec *timeout); }
814 360 AUE_GETRESUID STD { int getresuid(_Out_opt_ uid_t *ruid, \
815 _Out_opt_ uid_t *euid, \
816 _Out_opt_ uid_t *suid); }
817 361 AUE_GETRESGID STD { int getresgid(_Out_opt_ gid_t *rgid, \
818 _Out_opt_ gid_t *egid, \
819 _Out_opt_ gid_t *sgid); }
820 362 AUE_KQUEUE STD { int kqueue(void); }
821 363 AUE_KEVENT COMPAT11 { int kevent(int fd, \
822 _In_reads_opt_(nchanges) \
823 struct kevent_freebsd11 *changelist, \
825 _Out_writes_opt_(nevents) \
826 struct kevent_freebsd11 *eventlist, \
828 _In_opt_ const struct timespec *timeout); }
829 364 AUE_NULL UNIMPL __cap_get_proc
830 365 AUE_NULL UNIMPL __cap_set_proc
831 366 AUE_NULL UNIMPL __cap_get_fd
832 367 AUE_NULL UNIMPL __cap_get_file
833 368 AUE_NULL UNIMPL __cap_set_fd
834 369 AUE_NULL UNIMPL __cap_set_file
835 370 AUE_NULL UNIMPL nosys
836 371 AUE_EXTATTR_SET_FD STD { ssize_t extattr_set_fd(int fd, \
838 _In_z_ const char *attrname, \
839 _In_reads_bytes_(nbytes) void *data, \
841 372 AUE_EXTATTR_GET_FD STD { ssize_t extattr_get_fd(int fd, \
843 _In_z_ const char *attrname, \
844 _Out_writes_bytes_(nbytes) void *data, \
846 373 AUE_EXTATTR_DELETE_FD STD { int extattr_delete_fd(int fd, \
848 _In_z_ const char *attrname); }
849 374 AUE_SETUGID STD { int __setugid(int flag); }
850 375 AUE_NULL UNIMPL nfsclnt
851 376 AUE_EACCESS STD { int eaccess(_In_z_ char *path, int amode); }
852 377 AUE_NULL NOSTD|NOTSTATIC { int afs3_syscall(long syscall, \
853 long parm1, long parm2, long parm3, \
854 long parm4, long parm5, long parm6); }
855 378 AUE_NMOUNT STD { int nmount( \
856 _In_reads_(iovcnt) struct iovec *iovp, \
857 unsigned int iovcnt, int flags); }
858 379 AUE_NULL UNIMPL kse_exit
859 380 AUE_NULL UNIMPL kse_wakeup
860 381 AUE_NULL UNIMPL kse_create
861 382 AUE_NULL UNIMPL kse_thr_interrupt
862 383 AUE_NULL UNIMPL kse_release
863 384 AUE_NULL STD { int __mac_get_proc( \
864 _In_ struct mac *mac_p); }
865 385 AUE_NULL STD { int __mac_set_proc( \
866 _In_ struct mac *mac_p); }
867 386 AUE_NULL STD { int __mac_get_fd(int fd, \
868 _In_ struct mac *mac_p); }
869 387 AUE_NULL STD { int __mac_get_file( \
870 _In_z_ const char *path_p, \
871 _In_ struct mac *mac_p); }
872 388 AUE_NULL STD { int __mac_set_fd(int fd, \
873 _In_ struct mac *mac_p); }
874 389 AUE_NULL STD { int __mac_set_file( \
875 _In_z_ const char *path_p, \
876 _In_ struct mac *mac_p); }
877 390 AUE_NULL STD { int kenv(int what, \
878 _In_z_opt_ const char *name, \
879 _Inout_updates_opt_(len) \
880 char *value, int len); }
881 391 AUE_LCHFLAGS STD { int lchflags(_In_z_ const char *path, \
883 392 AUE_NULL STD { int uuidgen( \
884 _Out_writes_(count) struct uuid *store, \
886 393 AUE_SENDFILE STD { int sendfile(int fd, int s, \
889 _In_opt_ struct sf_hdtr *hdtr, \
890 _Out_opt_ off_t *sbytes, int flags); }
891 394 AUE_NULL STD { int mac_syscall( \
892 _In_z_ const char *policy, \
894 _In_opt_ void *arg); }
895 395 AUE_GETFSSTAT COMPAT11 { int getfsstat( \
896 _Out_writes_bytes_opt_(bufsize) \
897 struct freebsd11_statfs *buf, \
898 long bufsize, int mode); }
899 396 AUE_STATFS COMPAT11 { int statfs(_In_z_ char *path, \
900 _Out_ struct freebsd11_statfs *buf); }
901 397 AUE_FSTATFS COMPAT11 { int fstatfs(int fd, \
902 _Out_ struct freebsd11_statfs *buf); }
903 398 AUE_FHSTATFS COMPAT11 { int fhstatfs( \
904 _In_ const struct fhandle *u_fhp, \
905 _Out_ struct freebsd11_statfs *buf); }
906 399 AUE_NULL UNIMPL nosys
907 400 AUE_SEMCLOSE NOSTD { int ksem_close(semid_t id); }
908 401 AUE_SEMPOST NOSTD { int ksem_post(semid_t id); }
909 402 AUE_SEMWAIT NOSTD { int ksem_wait(semid_t id); }
910 403 AUE_SEMTRYWAIT NOSTD { int ksem_trywait(semid_t id); }
911 404 AUE_SEMINIT NOSTD { int ksem_init(_Out_ semid_t *idp, \
912 unsigned int value); }
913 405 AUE_SEMOPEN NOSTD { int ksem_open(_Out_ semid_t *idp, \
914 _In_z_ const char *name, int oflag, \
915 mode_t mode, unsigned int value); }
916 406 AUE_SEMUNLINK NOSTD { int ksem_unlink( \
917 _In_z_ const char *name); }
918 407 AUE_SEMGETVALUE NOSTD { int ksem_getvalue(semid_t id, \
920 408 AUE_SEMDESTROY NOSTD { int ksem_destroy(semid_t id); }
921 409 AUE_NULL STD { int __mac_get_pid(pid_t pid, \
922 _In_ struct mac *mac_p); }
923 410 AUE_NULL STD { int __mac_get_link( \
924 _In_z_ const char *path_p, \
925 _In_ struct mac *mac_p); }
926 411 AUE_NULL STD { int __mac_set_link( \
927 _In_z_ const char *path_p, \
928 _In_ struct mac *mac_p); }
929 412 AUE_EXTATTR_SET_LINK STD { ssize_t extattr_set_link( \
930 _In_z_ const char *path, \
932 _In_z_ const char *attrname, \
933 _In_reads_bytes_(nbytes) void *data, \
935 413 AUE_EXTATTR_GET_LINK STD { ssize_t extattr_get_link( \
936 _In_z_ const char *path, \
938 _In_z_ const char *attrname, \
939 _Out_writes_bytes_(nbytes) void *data, \
941 414 AUE_EXTATTR_DELETE_LINK STD { int extattr_delete_link( \
942 _In_z_ const char *path, \
944 _In_z_ const char *attrname); }
945 415 AUE_NULL STD { int __mac_execve(_In_z_ char *fname, \
948 _In_ struct mac *mac_p); }
949 416 AUE_SIGACTION STD { int sigaction(int sig, \
950 _In_opt_ const struct sigaction *act, \
951 _Out_opt_ struct sigaction *oact); }
952 417 AUE_SIGRETURN STD { int sigreturn( \
953 _In_ const struct __ucontext *sigcntxp); }
954 418 AUE_NULL UNIMPL __xstat
955 419 AUE_NULL UNIMPL __xfstat
956 420 AUE_NULL UNIMPL __xlstat
957 421 AUE_NULL STD { int getcontext( \
958 _Out_ struct __ucontext *ucp); }
959 422 AUE_NULL STD { int setcontext( \
960 _In_ const struct __ucontext *ucp); }
961 423 AUE_NULL STD { int swapcontext( \
962 _Out_ struct __ucontext *oucp, \
963 _In_ const struct __ucontext *ucp); }
964 424 AUE_SWAPOFF STD { int swapoff(_In_z_ const char *name); }
965 425 AUE_ACL_GET_LINK STD { int __acl_get_link( \
966 _In_z_ const char *path, acl_type_t type, \
967 _Out_ struct acl *aclp); }
968 426 AUE_ACL_SET_LINK STD { int __acl_set_link( \
969 _In_z_ const char *path, acl_type_t type, \
970 _In_ struct acl *aclp); }
971 427 AUE_ACL_DELETE_LINK STD { int __acl_delete_link( \
972 _In_z_ const char *path, \
974 428 AUE_ACL_CHECK_LINK STD { int __acl_aclcheck_link( \
975 _In_z_ const char *path, acl_type_t type, \
976 _In_ struct acl *aclp); }
977 429 AUE_SIGWAIT STD { int sigwait(_In_ const sigset_t *set, \
979 430 AUE_THR_CREATE STD { int thr_create(_In_ ucontext_t *ctx, \
980 _Out_ long *id, int flags); }
981 431 AUE_THR_EXIT STD { void thr_exit(_Out_opt_ long *state); }
982 432 AUE_NULL STD { int thr_self(_Out_ long *id); }
983 433 AUE_THR_KILL STD { int thr_kill(long id, int sig); }
984 434 AUE_NULL UNIMPL nosys
985 435 AUE_NULL UNIMPL nosys
986 436 AUE_JAIL_ATTACH STD { int jail_attach(int jid); }
987 437 AUE_EXTATTR_LIST_FD STD { ssize_t extattr_list_fd(int fd, \
989 _Out_writes_bytes_opt_(nbytes) \
992 438 AUE_EXTATTR_LIST_FILE STD { ssize_t extattr_list_file( \
993 _In_z_ const char *path, \
995 _Out_writes_bytes_opt_(nbytes) \
996 void *data, size_t nbytes); }
997 439 AUE_EXTATTR_LIST_LINK STD { ssize_t extattr_list_link( \
998 _In_z_ const char *path, \
1000 _Out_writes_bytes_opt_(nbytes) \
1001 void *data, size_t nbytes); }
1002 440 AUE_NULL UNIMPL kse_switchin
1003 441 AUE_SEMWAIT NOSTD { int ksem_timedwait(semid_t id, \
1004 _In_opt_ const struct timespec *abstime); }
1005 442 AUE_NULL STD { int thr_suspend( \
1006 _In_opt_ const struct timespec *timeout); }
1007 443 AUE_NULL STD { int thr_wake(long id); }
1008 444 AUE_MODUNLOAD STD { int kldunloadf(int fileid, int flags); }
1009 445 AUE_AUDIT STD { int audit( \
1010 _In_reads_bytes_(length) \
1011 const void *record, \
1013 446 AUE_AUDITON STD { int auditon(int cmd, \
1014 _In_opt_ void *data, \
1016 447 AUE_GETAUID STD { int getauid(_Out_ uid_t *auid); }
1017 448 AUE_SETAUID STD { int setauid(_In_ uid_t *auid); }
1018 449 AUE_GETAUDIT STD { int getaudit( \
1019 _Out_ struct auditinfo *auditinfo); }
1020 450 AUE_SETAUDIT STD { int setaudit( \
1021 _In_ struct auditinfo *auditinfo); }
1022 451 AUE_GETAUDIT_ADDR STD { int getaudit_addr( \
1023 _Out_writes_bytes_(length) \
1024 struct auditinfo_addr *auditinfo_addr, \
1026 452 AUE_SETAUDIT_ADDR STD { int setaudit_addr( \
1027 _In_reads_bytes_(length) \
1028 struct auditinfo_addr *auditinfo_addr, \
1030 453 AUE_AUDITCTL STD { int auditctl(_In_z_ char *path); }
1031 454 AUE_NULL STD { int _umtx_op(_Inout_ void *obj, int op, \
1032 u_long val, _In_ void *uaddr1, \
1033 _In_ void *uaddr2); }
1034 455 AUE_THR_NEW STD { int thr_new(_In_ struct thr_param *param, \
1036 456 AUE_NULL STD { int sigqueue(pid_t pid, int signum, \
1037 _In_ void *value); }
1039 457 AUE_MQ_OPEN NOSTD { int kmq_open( \
1040 _In_z_ const char *path, \
1043 _In_opt_ const struct mq_attr *attr); }
1044 458 AUE_MQ_SETATTR NOSTD { int kmq_setattr(int mqd, \
1045 _In_opt_ const struct mq_attr *attr, \
1046 _Out_opt_ struct mq_attr *oattr); }
1047 459 AUE_MQ_TIMEDRECEIVE NOSTD { int kmq_timedreceive( \
1049 _Out_writes_bytes_(msg_len) char *msg_ptr, \
1051 _Out_opt_ unsigned *msg_prio, \
1053 const struct timespec *abs_timeout); }
1054 460 AUE_MQ_TIMEDSEND NOSTD { int kmq_timedsend(int mqd, \
1055 _In_reads_bytes_(msg_len) \
1056 const char *msg_ptr, size_t msg_len, \
1057 unsigned msg_prio, \
1059 const struct timespec *abs_timeout); }
1060 461 AUE_MQ_NOTIFY NOSTD { int kmq_notify(int mqd, \
1061 _In_opt_ const struct sigevent *sigev); }
1062 462 AUE_MQ_UNLINK NOSTD { int kmq_unlink(_In_z_ const char *path); }
1063 463 AUE_NULL STD { int abort2(_In_z_ const char *why, \
1065 _In_reads_(nargs) void **args); }
1066 464 AUE_NULL STD { int thr_set_name(long id, \
1067 _In_z_ const char *name); }
1068 465 AUE_AIO_FSYNC STD { int aio_fsync(int op, \
1069 _In_ struct aiocb *aiocbp); }
1070 466 AUE_RTPRIO STD { int rtprio_thread(int function, \
1072 _Inout_ struct rtprio *rtp); }
1073 467 AUE_NULL UNIMPL nosys
1074 468 AUE_NULL UNIMPL nosys
1075 469 AUE_NULL UNIMPL __getpath_fromfd
1076 470 AUE_NULL UNIMPL __getpath_fromaddr
1077 471 AUE_SCTP_PEELOFF NOSTD { int sctp_peeloff(int sd, \
1079 472 AUE_SCTP_GENERIC_SENDMSG NOSTD { int sctp_generic_sendmsg( \
1081 _In_reads_bytes_(mlen) caddr_t msg, \
1083 _In_reads_bytes_(tolen) \
1085 __socklen_t tolen, \
1086 _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1088 473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD { \
1089 int sctp_generic_sendmsg_iov( \
1091 _In_reads_(iovlen) struct iovec *iov, \
1093 _In_reads_bytes_(tolen) \
1095 __socklen_t tolen, \
1096 _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1098 474 AUE_SCTP_GENERIC_RECVMSG NOSTD { int sctp_generic_recvmsg( \
1100 _In_reads_(iovlen) struct iovec *iov, \
1102 _Out_writes_bytes_(*fromlenaddr) \
1103 struct sockaddr *from, \
1104 _Out_ __socklen_t *fromlenaddr, \
1105 _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1106 _Out_opt_ int *msg_flags); }
1107 475 AUE_PREAD STD { ssize_t pread(int fd, \
1108 _Out_writes_bytes_(nbyte) void *buf, \
1109 size_t nbyte, off_t offset); }
1110 476 AUE_PWRITE STD { ssize_t pwrite(int fd, \
1111 _In_reads_bytes_(nbyte) \
1113 size_t nbyte, off_t offset); }
1114 477 AUE_MMAP STD { caddr_t mmap(_In_ caddr_t addr, size_t len, \
1115 int prot, int flags, int fd, off_t pos); }
1116 478 AUE_LSEEK STD { off_t lseek(int fd, off_t offset, \
1118 479 AUE_TRUNCATE STD { int truncate(_In_z_ char *path, \
1120 480 AUE_FTRUNCATE STD { int ftruncate(int fd, off_t length); }
1121 481 AUE_THR_KILL2 STD { int thr_kill2(pid_t pid, long id, int sig); }
1122 482 AUE_SHMOPEN STD { int shm_open( \
1123 _In_z_ const char *path, \
1126 483 AUE_SHMUNLINK STD { int shm_unlink(_In_z_ const char *path); }
1127 484 AUE_NULL STD { int cpuset(_Out_ cpusetid_t *setid); }
1128 485 AUE_NULL STD { int cpuset_setid(cpuwhich_t which, id_t id, \
1129 cpusetid_t setid); }
1130 486 AUE_NULL STD { int cpuset_getid(cpulevel_t level, \
1131 cpuwhich_t which, id_t id, \
1132 _Out_ cpusetid_t *setid); }
1133 487 AUE_NULL STD { int cpuset_getaffinity(cpulevel_t level, \
1134 cpuwhich_t which, id_t id, \
1135 size_t cpusetsize, \
1136 _Out_ cpuset_t *mask); }
1137 488 AUE_NULL STD { int cpuset_setaffinity(cpulevel_t level, \
1138 cpuwhich_t which, id_t id, \
1139 size_t cpusetsize, \
1140 _Out_ const cpuset_t *mask); }
1141 489 AUE_FACCESSAT STD { int faccessat(int fd, _In_z_ char *path, \
1142 int amode, int flag); }
1143 490 AUE_FCHMODAT STD { int fchmodat(int fd, \
1144 _In_z_ char *path, mode_t mode, \
1146 491 AUE_FCHOWNAT STD { int fchownat(int fd, _In_z_ char *path, \
1147 uid_t uid, gid_t gid, int flag); }
1148 492 AUE_FEXECVE STD { int fexecve(int fd, \
1150 _In_ char **envv); }
1151 493 AUE_FSTATAT COMPAT11 { int fstatat(int fd, _In_z_ char *path, \
1152 _Out_ struct freebsd11_stat *buf, \
1154 494 AUE_FUTIMESAT STD { int futimesat(int fd, \
1155 _In_z_ char *path, \
1156 _In_reads_(2) struct timeval *times); }
1157 495 AUE_LINKAT STD { int linkat(int fd1, \
1158 _In_z_ char *path1, \
1160 _In_z_ char *path2, \
1162 496 AUE_MKDIRAT STD { int mkdirat(int fd, _In_z_ char *path, \
1164 497 AUE_MKFIFOAT STD { int mkfifoat(int fd, \
1165 _In_z_ char *path, mode_t mode); }
1166 498 AUE_MKNODAT COMPAT11 { int mknodat(int fd, _In_z_ char *path, \
1169 ; XXX: see the comment for open
1170 499 AUE_OPENAT_RWTC STD { int openat(int fd, _In_z_ char *path, \
1171 int flag, mode_t mode); }
1172 500 AUE_READLINKAT STD { int readlinkat(int fd, \
1173 _In_z_ char *path, \
1174 _Out_writes_bytes_(bufsize) char *buf, \
1176 501 AUE_RENAMEAT STD { int renameat(int oldfd, \
1178 int newfd, _In_z_ char *new); }
1179 502 AUE_SYMLINKAT STD { int symlinkat(_In_z_ char *path1, int fd, \
1180 _In_z_ char *path2); }
1181 503 AUE_UNLINKAT STD { int unlinkat(int fd, _In_z_ char *path, \
1183 504 AUE_POSIX_OPENPT STD { int posix_openpt(int flags); }
1184 ; 505 is initialised by the kgssapi code, if present.
1185 505 AUE_NULL NOSTD { int gssd_syscall(_In_z_ char *path); }
1186 506 AUE_JAIL_GET STD { int jail_get( \
1187 _In_reads_(iovcnt) struct iovec *iovp, \
1188 unsigned int iovcnt, int flags); }
1189 507 AUE_JAIL_SET STD { int jail_set( \
1190 _In_reads_(iovcnt) struct iovec *iovp, \
1191 unsigned int iovcnt, int flags); }
1192 508 AUE_JAIL_REMOVE STD { int jail_remove(int jid); }
1193 509 AUE_CLOSEFROM STD { int closefrom(int lowfd); }
1194 510 AUE_SEMCTL NOSTD { int __semctl(int semid, int semnum, \
1195 int cmd, _Inout_ union semun *arg); }
1196 511 AUE_MSGCTL NOSTD { int msgctl(int msqid, int cmd, \
1197 _Inout_opt_ struct msqid_ds *buf); }
1198 512 AUE_SHMCTL NOSTD { int shmctl(int shmid, int cmd, \
1199 _Inout_opt_ struct shmid_ds *buf); }
1200 513 AUE_LPATHCONF STD { int lpathconf(_In_z_ char *path, \
1202 514 AUE_NULL OBSOL cap_new
1203 515 AUE_CAP_RIGHTS_GET STD { int __cap_rights_get(int version, \
1204 int fd, _Out_ cap_rights_t *rightsp); }
1205 516 AUE_CAP_ENTER STD { int cap_enter(void); }
1206 517 AUE_CAP_GETMODE STD { int cap_getmode(_Out_ u_int *modep); }
1207 518 AUE_PDFORK STD { int pdfork(_Out_ int *fdp, int flags); }
1208 519 AUE_PDKILL STD { int pdkill(int fd, int signum); }
1209 520 AUE_PDGETPID STD { int pdgetpid(int fd, _Out_ pid_t *pidp); }
1210 521 AUE_PDWAIT UNIMPL pdwait4
1211 522 AUE_SELECT STD { int pselect(int nd, \
1212 _Inout_opt_ fd_set *in, \
1213 _Inout_opt_ fd_set *ou, \
1214 _Inout_opt_ fd_set *ex, \
1215 _In_opt_ const struct timespec *ts, \
1216 _In_opt_ const sigset_t *sm); }
1217 523 AUE_GETLOGINCLASS STD { int getloginclass( \
1218 _Out_writes_z_(namelen) char *namebuf, \
1220 524 AUE_SETLOGINCLASS STD { int setloginclass( \
1221 _In_z_ const char *namebuf); }
1222 525 AUE_NULL STD { int rctl_get_racct( \
1223 _In_reads_bytes_(inbuflen) \
1224 const void *inbufp, size_t inbuflen, \
1225 _Out_writes_bytes_(outbuflen) \
1226 void *outbufp, size_t outbuflen); }
1227 526 AUE_NULL STD { int rctl_get_rules( \
1228 _In_reads_bytes_(inbuflen) \
1229 const void *inbufp, size_t inbuflen, \
1230 _Out_writes_bytes_(outbuflen) \
1231 void *outbufp, size_t outbuflen); }
1232 527 AUE_NULL STD { int rctl_get_limits( \
1233 _In_reads_bytes_(inbuflen) \
1234 const void *inbufp, size_t inbuflen, \
1235 _Out_writes_bytes_(outbuflen) \
1236 void *outbufp, size_t outbuflen); }
1237 528 AUE_NULL STD { int rctl_add_rule( \
1238 _In_reads_bytes_(inbuflen) \
1239 const void *inbufp, size_t inbuflen, \
1240 _Out_writes_bytes_(outbuflen) \
1241 void *outbufp, size_t outbuflen); }
1242 529 AUE_NULL STD { int rctl_remove_rule( \
1243 _In_reads_bytes_(inbuflen) \
1244 const void *inbufp, size_t inbuflen, \
1245 _Out_writes_bytes_(outbuflen) \
1246 void *outbufp, size_t outbuflen); }
1247 530 AUE_POSIX_FALLOCATE STD { int posix_fallocate(int fd, \
1248 off_t offset, off_t len); }
1249 531 AUE_POSIX_FADVISE STD { int posix_fadvise(int fd, \
1251 off_t len, int advice); }
1252 532 AUE_WAIT6 STD { int wait6(idtype_t idtype, id_t id, \
1253 _Out_opt_ int *status, int options, \
1254 _Out_opt_ struct __wrusage *wrusage, \
1255 _Out_opt_ siginfo_t *info); }
1256 533 AUE_CAP_RIGHTS_LIMIT STD { int cap_rights_limit(int fd, \
1257 _In_ cap_rights_t *rightsp); }
1258 534 AUE_CAP_IOCTLS_LIMIT STD { int cap_ioctls_limit(int fd, \
1259 _In_reads_(ncmds) const u_long *cmds, \
1261 535 AUE_CAP_IOCTLS_GET STD { ssize_t cap_ioctls_get(int fd, \
1262 _Out_writes_(maxcmds) u_long *cmds, \
1264 536 AUE_CAP_FCNTLS_LIMIT STD { int cap_fcntls_limit(int fd, \
1265 uint32_t fcntlrights); }
1266 537 AUE_CAP_FCNTLS_GET STD { int cap_fcntls_get(int fd, \
1267 _Out_ uint32_t *fcntlrightsp); }
1268 538 AUE_BINDAT STD { int bindat(int fd, int s, \
1269 _In_reads_bytes_(namelen) \
1272 539 AUE_CONNECTAT STD { int connectat(int fd, int s, \
1273 _In_reads_bytes_(namelen) \
1276 540 AUE_CHFLAGSAT STD { int chflagsat(int fd, \
1277 _In_z_ const char *path, \
1278 u_long flags, int atflag); }
1279 541 AUE_ACCEPT STD { int accept4(int s, \
1280 _Out_writes_bytes_opt_(*anamelen) \
1281 struct sockaddr * __restrict name, \
1283 __socklen_t * __restrict anamelen, \
1285 542 AUE_PIPE STD { int pipe2(_Out_writes_(2) int *fildes, \
1287 543 AUE_AIO_MLOCK STD { int aio_mlock(_In_ struct aiocb *aiocbp); }
1288 544 AUE_PROCCTL STD { int procctl(idtype_t idtype, id_t id, \
1289 int com, _In_opt_ void *data); }
1290 545 AUE_POLL STD { int ppoll( \
1291 _Inout_updates_(nfds) struct pollfd *fds, \
1293 _In_opt_ const struct timespec *ts, \
1294 _In_opt_ const sigset_t *set); }
1295 546 AUE_FUTIMES STD { int futimens(int fd, \
1297 struct timespec *times); }
1298 547 AUE_FUTIMESAT STD { int utimensat(int fd, \
1299 _In_z_ char *path, \
1301 struct timespec *times, \
1303 548 AUE_NULL UNIMPL numa_getaffinity
1304 549 AUE_NULL UNIMPL numa_setaffinity
1305 550 AUE_FSYNC STD { int fdatasync(int fd); }
1306 551 AUE_FSTAT STD { int fstat(int fd, _Out_ struct stat *sb); }
1307 552 AUE_FSTATAT STD { int fstatat(int fd, _In_z_ char *path, \
1308 _Out_ struct stat *buf, int flag); }
1309 553 AUE_FHSTAT STD { int fhstat(_In_ const struct fhandle *u_fhp, \
1310 _Out_ struct stat *sb); }
1311 554 AUE_GETDIRENTRIES STD { ssize_t getdirentries(int fd, \
1312 _Out_writes_bytes_(count) char *buf, \
1313 size_t count, _Out_ off_t *basep); }
1314 555 AUE_STATFS STD { int statfs(_In_z_ char *path, \
1315 _Out_ struct statfs *buf); }
1316 556 AUE_FSTATFS STD { int fstatfs(int fd, \
1317 _Out_ struct statfs *buf); }
1318 557 AUE_GETFSSTAT STD { int getfsstat( \
1319 _Out_writes_bytes_opt_(bufsize) \
1320 struct statfs *buf, \
1321 long bufsize, int mode); }
1322 558 AUE_FHSTATFS STD { int fhstatfs( \
1323 _In_ const struct fhandle *u_fhp, \
1324 _Out_ struct statfs *buf); }
1325 559 AUE_MKNODAT STD { int mknodat(int fd, _In_z_ char *path, \
1326 mode_t mode, dev_t dev); }
1327 560 AUE_KEVENT STD { int kevent(int fd, \
1328 _In_reads_opt_(nchanges) \
1329 struct kevent *changelist, \
1331 _Out_writes_opt_(nevents) \
1332 struct kevent *eventlist, int nevents, \
1333 _In_opt_ const struct timespec *timeout); }
1334 561 AUE_NULL STD { int cpuset_getdomain(cpulevel_t level, \
1335 cpuwhich_t which, id_t id, \
1336 size_t domainsetsize, \
1337 _Out_writes_bytes_(domainsetsize) \
1338 domainset_t *mask, \
1339 _Out_ int *policy); }
1340 562 AUE_NULL STD { int cpuset_setdomain(cpulevel_t level, \
1341 cpuwhich_t which, id_t id, \
1342 size_t domainsetsize, \
1343 _In_ domainset_t *mask, \
1345 563 AUE_NULL STD { int getrandom( \
1346 _Out_writes_bytes_(buflen) void *buf, \
1347 size_t buflen, unsigned int flags); }
1349 ; Please copy any additions and changes to the following compatability tables:
1350 ; sys/compat/freebsd32/syscalls.master