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 [M]type nargs 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 [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
15 ; [M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
16 ; [M]NOSTD, [M]COMPAT4
17 ; name psuedo-prototype of syscall routine
18 ; If one of the following alts is different, then all appear:
19 ; altname name of system call if different
20 ; alttag name of args struct tag if different from [o]`name'"_args"
21 ; altrtyp return type if not int (bogus - syscalls always return int)
22 ; for UNIMPL/OBSOL, name continues with comments
25 ; [M] e.g. like MSTD -- means the system call is MP-safe. If no
26 ; M prefix is used, the syscall wrapper will obtain the Giant
27 ; lock for the syscall.
29 ; COMPAT included on COMPAT #ifdef
30 ; COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat)
31 ; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
32 ; OBSOL obsolete, not included in system, only specifies name
33 ; UNIMPL not implemented, placeholder only
34 ; NOSTD implemented but as a lkm that can be statically
35 ; compiled in sysent entry will be filled with lkmsys
36 ; so the SYSCALL_MODULE macro works
38 ; Please copy any additions and changes to the following compatability tables:
39 ; sys/compat/freebsd32/syscalls.master
41 ; #ifdef's, etc. may be included, and are copied to the output files.
43 #include <sys/param.h>
44 #include <sys/sysent.h>
45 #include <sys/sysproto.h>
47 ; Reserved/unimplemented system calls in the range 0-150 inclusive
48 ; are reserved for use in future Berkeley releases.
49 ; Additional system calls implemented in vendor and other
50 ; redistributions should be placed in the reserved range at the end
51 ; of the current calls.
53 0 AUE_NULL MSTD { int nosys(void); } syscall nosys_args int
54 1 AUE_NULL MSTD { void sys_exit(int rval); } exit \
56 2 AUE_NULL MSTD { int fork(void); }
57 3 AUE_NULL MSTD { ssize_t read(int fd, void *buf, \
59 4 AUE_NULL MSTD { ssize_t write(int fd, const void *buf, \
61 5 AUE_NULL MSTD { int open(char *path, int flags, int mode); }
62 ; XXX should be { int open(const char *path, int flags, ...); }
63 ; but we're not ready for `const' or varargs.
64 ; XXX man page says `mode_t mode'.
65 6 AUE_NULL MSTD { int close(int fd); }
66 7 AUE_NULL MSTD { int wait4(int pid, int *status, \
67 int options, struct rusage *rusage); } \
69 8 AUE_NULL MCOMPAT { int creat(char *path, int mode); }
70 9 AUE_NULL MSTD { int link(char *path, char *link); }
71 10 AUE_NULL MSTD { int unlink(char *path); }
72 11 AUE_NULL OBSOL execv
73 12 AUE_NULL MSTD { int chdir(char *path); }
74 13 AUE_NULL MSTD { int fchdir(int fd); }
75 14 AUE_NULL MSTD { int mknod(char *path, int mode, int dev); }
76 15 AUE_NULL MSTD { int chmod(char *path, int mode); }
77 16 AUE_NULL MSTD { int chown(char *path, int uid, int gid); }
78 17 AUE_NULL MSTD { int obreak(char *nsize); } break \
80 18 AUE_NULL MCOMPAT4 { int getfsstat(struct ostatfs *buf, \
81 long bufsize, int flags); }
82 19 AUE_NULL MCOMPAT { long lseek(int fd, long offset, \
84 20 AUE_NULL MSTD { pid_t getpid(void); }
85 21 AUE_NULL STD { int mount(char *type, char *path, \
86 int flags, caddr_t data); }
87 ; XXX `path' should have type `const char *' but we're not ready for that.
88 22 AUE_NULL STD { int unmount(char *path, int flags); }
89 23 AUE_NULL MSTD { int setuid(uid_t uid); }
90 24 AUE_NULL MSTD { uid_t getuid(void); }
91 25 AUE_NULL MSTD { uid_t geteuid(void); }
92 26 AUE_NULL MSTD { int ptrace(int req, pid_t pid, \
93 caddr_t addr, int data); }
94 27 AUE_NULL MSTD { int recvmsg(int s, struct msghdr *msg, \
96 28 AUE_NULL MSTD { int sendmsg(int s, struct msghdr *msg, \
98 29 AUE_NULL MSTD { int recvfrom(int s, caddr_t buf, \
99 size_t len, int flags, \
100 struct sockaddr * __restrict from, \
101 __socklen_t * __restrict fromlenaddr); }
102 30 AUE_NULL MSTD { int accept(int s, \
103 struct sockaddr * __restrict name, \
104 __socklen_t * __restrict anamelen); }
105 31 AUE_NULL MSTD { int getpeername(int fdes, \
106 struct sockaddr * __restrict asa, \
107 __socklen_t * __restrict alen); }
108 32 AUE_NULL MSTD { int getsockname(int fdes, \
109 struct sockaddr * __restrict asa, \
110 __socklen_t * __restrict alen); }
111 33 AUE_NULL MSTD { int access(char *path, int flags); }
112 34 AUE_NULL MSTD { int chflags(char *path, int flags); }
113 35 AUE_NULL MSTD { int fchflags(int fd, int flags); }
114 36 AUE_NULL MSTD { int sync(void); }
115 37 AUE_NULL MSTD { int kill(int pid, int signum); }
116 38 AUE_NULL MCOMPAT { int stat(char *path, struct ostat *ub); }
117 39 AUE_NULL MSTD { pid_t getppid(void); }
118 40 AUE_NULL MCOMPAT { int lstat(char *path, struct ostat *ub); }
119 41 AUE_NULL MSTD { int dup(u_int fd); }
120 42 AUE_NULL MSTD { int pipe(void); }
121 43 AUE_NULL MSTD { gid_t getegid(void); }
122 44 AUE_NULL MSTD { int profil(caddr_t samples, size_t size, \
123 size_t offset, u_int scale); }
124 45 AUE_NULL MSTD { int ktrace(const char *fname, int ops, \
125 int facs, int pid); }
126 46 AUE_NULL MCOMPAT { int sigaction(int signum, \
127 struct osigaction *nsa, \
128 struct osigaction *osa); }
129 47 AUE_NULL MSTD { gid_t getgid(void); }
130 48 AUE_NULL MCOMPAT { int sigprocmask(int how, osigset_t mask); }
131 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
132 ; us the mask, not a pointer to it, and we return the old mask as the
133 ; (int) return value.
134 49 AUE_NULL MSTD { int getlogin(char *namebuf, u_int \
136 50 AUE_NULL MSTD { int setlogin(char *namebuf); }
137 51 AUE_NULL MSTD { int acct(char *path); }
138 52 AUE_NULL MCOMPAT { int sigpending(void); }
139 53 AUE_NULL MSTD { int sigaltstack(stack_t *ss, \
141 54 AUE_NULL MSTD { int ioctl(int fd, u_long com, \
143 55 AUE_NULL MSTD { int reboot(int opt); }
144 56 AUE_NULL MSTD { int revoke(char *path); }
145 57 AUE_NULL MSTD { int symlink(char *path, char *link); }
146 58 AUE_NULL MSTD { int readlink(char *path, char *buf, \
148 59 AUE_NULL MSTD { int execve(char *fname, char **argv, \
150 60 AUE_NULL MSTD { int umask(int newmask); } umask umask_args \
152 61 AUE_NULL MSTD { int chroot(char *path); }
153 62 AUE_NULL MCOMPAT { int fstat(int fd, struct ostat *sb); }
154 63 AUE_NULL MCOMPAT { int getkerninfo(int op, char *where, \
155 size_t *size, int arg); } getkerninfo \
157 64 AUE_NULL MCOMPAT { int getpagesize(void); } getpagesize \
159 65 AUE_NULL MSTD { int msync(void *addr, size_t len, \
161 66 AUE_NULL MSTD { int vfork(void); }
162 67 AUE_NULL OBSOL vread
163 68 AUE_NULL OBSOL vwrite
164 69 AUE_NULL MSTD { int sbrk(int incr); }
165 70 AUE_NULL MSTD { int sstk(int incr); }
166 71 AUE_NULL MCOMPAT { int mmap(void *addr, int len, int prot, \
167 int flags, int fd, long pos); }
168 72 AUE_NULL MSTD { int ovadvise(int anom); } vadvise \
170 73 AUE_NULL MSTD { int munmap(void *addr, size_t len); }
171 74 AUE_NULL MSTD { int mprotect(const void *addr, size_t len, \
173 75 AUE_NULL MSTD { int madvise(void *addr, size_t len, \
175 76 AUE_NULL OBSOL vhangup
176 77 AUE_NULL OBSOL vlimit
177 78 AUE_NULL MSTD { int mincore(const void *addr, size_t len, \
179 79 AUE_NULL MSTD { int getgroups(u_int gidsetsize, \
181 80 AUE_NULL MSTD { int setgroups(u_int gidsetsize, \
183 81 AUE_NULL MSTD { int getpgrp(void); }
184 82 AUE_NULL MSTD { int setpgid(int pid, int pgid); }
185 83 AUE_NULL MSTD { int setitimer(u_int which, struct \
186 itimerval *itv, struct itimerval *oitv); }
187 84 AUE_NULL MCOMPAT { int wait(void); }
188 85 AUE_NULL MSTD { int swapon(char *name); }
189 86 AUE_NULL MSTD { int getitimer(u_int which, \
190 struct itimerval *itv); }
191 87 AUE_NULL MCOMPAT { int gethostname(char *hostname, \
192 u_int len); } gethostname \
194 88 AUE_NULL MCOMPAT { int sethostname(char *hostname, \
195 u_int len); } sethostname \
197 89 AUE_NULL MSTD { int getdtablesize(void); }
198 90 AUE_NULL MSTD { int dup2(u_int from, u_int to); }
199 91 AUE_NULL UNIMPL getdopt
200 92 AUE_NULL MSTD { int fcntl(int fd, int cmd, long arg); }
201 ; XXX should be { int fcntl(int fd, int cmd, ...); }
202 ; but we're not ready for varargs.
203 93 AUE_NULL MSTD { int select(int nd, fd_set *in, fd_set *ou, \
204 fd_set *ex, struct timeval *tv); }
205 94 AUE_NULL UNIMPL setdopt
206 95 AUE_NULL MSTD { int fsync(int fd); }
207 96 AUE_NULL MSTD { int setpriority(int which, int who, \
209 97 AUE_NULL MSTD { int socket(int domain, int type, \
211 98 AUE_NULL MSTD { int connect(int s, caddr_t name, \
213 99 AUE_NULL MCPT_NOA { int accept(int s, caddr_t name, \
214 int *anamelen); } accept accept_args int
215 100 AUE_NULL MSTD { int getpriority(int which, int who); }
216 101 AUE_NULL MCOMPAT { int send(int s, caddr_t buf, int len, \
218 102 AUE_NULL MCOMPAT { int recv(int s, caddr_t buf, int len, \
220 103 AUE_NULL MCOMPAT { int sigreturn( \
221 struct osigcontext *sigcntxp); }
222 104 AUE_NULL MSTD { int bind(int s, caddr_t name, \
224 105 AUE_NULL MSTD { int setsockopt(int s, int level, int name, \
225 caddr_t val, int valsize); }
226 106 AUE_NULL MSTD { int listen(int s, int backlog); }
227 107 AUE_NULL OBSOL vtimes
228 108 AUE_NULL MCOMPAT { int sigvec(int signum, struct sigvec *nsv, \
229 struct sigvec *osv); }
230 109 AUE_NULL MCOMPAT { int sigblock(int mask); }
231 110 AUE_NULL MCOMPAT { int sigsetmask(int mask); }
232 111 AUE_NULL MCOMPAT { int sigsuspend(osigset_t mask); }
233 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
234 ; us the mask, not a pointer to it.
235 112 AUE_NULL MCOMPAT { int sigstack(struct sigstack *nss, \
236 struct sigstack *oss); }
237 113 AUE_NULL MCOMPAT { int recvmsg(int s, struct omsghdr *msg, \
239 114 AUE_NULL MCOMPAT { int sendmsg(int s, caddr_t msg, \
241 115 AUE_NULL OBSOL vtrace
242 116 AUE_NULL MSTD { int gettimeofday(struct timeval *tp, \
243 struct timezone *tzp); }
244 117 AUE_NULL MSTD { int getrusage(int who, \
245 struct rusage *rusage); }
246 118 AUE_NULL MSTD { int getsockopt(int s, int level, int name, \
247 caddr_t val, int *avalsize); }
248 119 AUE_NULL UNIMPL resuba (BSD/OS 2.x)
249 120 AUE_NULL MSTD { int readv(int fd, struct iovec *iovp, \
251 121 AUE_NULL MSTD { int writev(int fd, struct iovec *iovp, \
253 122 AUE_NULL MSTD { int settimeofday(struct timeval *tv, \
254 struct timezone *tzp); }
255 123 AUE_NULL MSTD { int fchown(int fd, int uid, int gid); }
256 124 AUE_NULL MSTD { int fchmod(int fd, int mode); }
257 125 AUE_NULL MCPT_NOA { int recvfrom(int s, caddr_t buf, \
258 size_t len, int flags, caddr_t from, int \
259 *fromlenaddr); } recvfrom recvfrom_args \
261 126 AUE_NULL MSTD { int setreuid(int ruid, int euid); }
262 127 AUE_NULL MSTD { int setregid(int rgid, int egid); }
263 128 AUE_NULL MSTD { int rename(char *from, char *to); }
264 129 AUE_NULL MCOMPAT { int truncate(char *path, long length); }
265 130 AUE_NULL MCOMPAT { int ftruncate(int fd, long length); }
266 131 AUE_NULL MSTD { int flock(int fd, int how); }
267 132 AUE_NULL MSTD { int mkfifo(char *path, int mode); }
268 133 AUE_NULL MSTD { int sendto(int s, caddr_t buf, size_t len, \
269 int flags, caddr_t to, int tolen); }
270 134 AUE_NULL MSTD { int shutdown(int s, int how); }
271 135 AUE_NULL MSTD { int socketpair(int domain, int type, \
272 int protocol, int *rsv); }
273 136 AUE_NULL MSTD { int mkdir(char *path, int mode); }
274 137 AUE_NULL MSTD { int rmdir(char *path); }
275 138 AUE_NULL MSTD { int utimes(char *path, \
276 struct timeval *tptr); }
277 139 AUE_NULL OBSOL 4.2 sigreturn
278 140 AUE_NULL MSTD { int adjtime(struct timeval *delta, \
279 struct timeval *olddelta); }
280 141 AUE_NULL MCOMPAT { int getpeername(int fdes, caddr_t asa, \
282 142 AUE_NULL MCOMPAT { long gethostid(void); }
283 143 AUE_NULL MCOMPAT { int sethostid(long hostid); }
284 144 AUE_NULL MCOMPAT { int getrlimit(u_int which, struct \
286 145 AUE_NULL MCOMPAT { int setrlimit(u_int which, \
287 struct orlimit *rlp); }
288 146 AUE_NULL MCOMPAT { int killpg(int pgid, int signum); }
289 147 AUE_NULL MSTD { int setsid(void); }
290 148 AUE_NULL MSTD { int quotactl(char *path, int cmd, int uid, \
292 149 AUE_NULL MCOMPAT { int quota(void); }
293 150 AUE_NULL MCPT_NOA { int getsockname(int fdec, \
294 caddr_t asa, int *alen); } getsockname \
297 ; Syscalls 151-180 inclusive are reserved for vendor-specific
298 ; system calls. (This includes various calls added for compatibity
299 ; with other Unix variants.)
300 ; Some of these calls are now supported by BSD...
301 151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x)
302 152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x)
303 153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x)
304 154 AUE_NULL UNIMPL nosys
305 ; 155 is initialized by the NFS code, if present.
306 155 AUE_NULL MNOIMPL { int nfssvc(int flag, caddr_t argp); }
307 156 AUE_NULL COMPAT { int getdirentries(int fd, char *buf, \
308 u_int count, long *basep); }
309 157 AUE_NULL MCOMPAT4 { int statfs(char *path, \
310 struct ostatfs *buf); }
311 158 AUE_NULL MCOMPAT4 { int fstatfs(int fd, \
312 struct ostatfs *buf); }
313 159 AUE_NULL UNIMPL nosys
314 160 AUE_NULL MSTD { int lgetfh(char *fname, \
315 struct fhandle *fhp); }
316 161 AUE_NULL MSTD { int getfh(char *fname, \
317 struct fhandle *fhp); }
318 162 AUE_NULL MSTD { int getdomainname(char *domainname, \
320 163 AUE_NULL MSTD { int setdomainname(char *domainname, \
322 164 AUE_NULL MSTD { int uname(struct utsname *name); }
323 165 AUE_NULL MSTD { int sysarch(int op, char *parms); }
324 166 AUE_NULL MSTD { int rtprio(int function, pid_t pid, \
325 struct rtprio *rtp); }
326 167 AUE_NULL UNIMPL nosys
327 168 AUE_NULL UNIMPL nosys
328 ; 169 is initialized by the SYSVSEM code if present or loaded
329 169 AUE_NULL MNOSTD { int semsys(int which, int a2, int a3, \
331 ; 169 is initialized by the SYSVMSG code if present or loaded
332 ; XXX should be { int semsys(int which, ...); }
333 170 AUE_NULL MNOSTD { int msgsys(int which, int a2, int a3, \
334 int a4, int a5, int a6); }
335 ; 169 is initialized by the SYSVSHM code if present or loaded
336 ; XXX should be { int msgsys(int which, ...); }
337 171 AUE_NULL MNOSTD { int shmsys(int which, int a2, int a3, \
339 ; XXX should be { int shmsys(int which, ...); }
340 172 AUE_NULL UNIMPL nosys
341 173 AUE_NULL MSTD { ssize_t pread(int fd, void *buf, \
342 size_t nbyte, int pad, off_t offset); }
343 174 AUE_NULL MSTD { ssize_t pwrite(int fd, const void *buf, \
344 size_t nbyte, int pad, off_t offset); }
345 175 AUE_NULL UNIMPL nosys
346 176 AUE_NULL MSTD { int ntp_adjtime(struct timex *tp); }
347 177 AUE_NULL UNIMPL sfork (BSD/OS 2.x)
348 178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x)
349 179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x)
350 180 AUE_NULL UNIMPL nosys
352 ; Syscalls 181-199 are used by/reserved for BSD
353 181 AUE_NULL MSTD { int setgid(gid_t gid); }
354 182 AUE_NULL MSTD { int setegid(gid_t egid); }
355 183 AUE_NULL MSTD { int seteuid(uid_t euid); }
356 184 AUE_NULL UNIMPL lfs_bmapv
357 185 AUE_NULL UNIMPL lfs_markv
358 186 AUE_NULL UNIMPL lfs_segclean
359 187 AUE_NULL UNIMPL lfs_segwait
360 188 AUE_NULL MSTD { int stat(char *path, struct stat *ub); }
361 189 AUE_NULL MSTD { int fstat(int fd, struct stat *sb); }
362 190 AUE_NULL MSTD { int lstat(char *path, struct stat *ub); }
363 191 AUE_NULL MSTD { int pathconf(char *path, int name); }
364 192 AUE_NULL MSTD { int fpathconf(int fd, int name); }
365 193 AUE_NULL UNIMPL nosys
366 194 AUE_NULL MSTD { int getrlimit(u_int which, \
367 struct rlimit *rlp); } getrlimit \
369 195 AUE_NULL MSTD { int setrlimit(u_int which, \
370 struct rlimit *rlp); } setrlimit \
372 196 AUE_NULL MSTD { int getdirentries(int fd, char *buf, \
373 u_int count, long *basep); }
374 197 AUE_NULL MSTD { caddr_t mmap(caddr_t addr, size_t len, \
375 int prot, int flags, int fd, int pad, \
377 198 AUE_NULL MSTD { int nosys(void); } __syscall \
379 199 AUE_NULL MSTD { off_t lseek(int fd, int pad, off_t offset, \
381 200 AUE_NULL MSTD { int truncate(char *path, int pad, \
383 201 AUE_NULL MSTD { int ftruncate(int fd, int pad, \
385 202 AUE_NULL MSTD { int __sysctl(int *name, u_int namelen, \
386 void *old, size_t *oldlenp, void *new, \
387 size_t newlen); } __sysctl sysctl_args int
388 203 AUE_NULL MSTD { int mlock(const void *addr, size_t len); }
389 204 AUE_NULL MSTD { int munlock(const void *addr, size_t len); }
390 205 AUE_NULL MSTD { int undelete(char *path); }
391 206 AUE_NULL MSTD { int futimes(int fd, struct timeval *tptr); }
392 207 AUE_NULL MSTD { int getpgid(pid_t pid); }
393 208 AUE_NULL UNIMPL newreboot (NetBSD)
394 209 AUE_NULL MSTD { int poll(struct pollfd *fds, u_int nfds, \
398 ; The following are reserved for loadable syscalls
400 210 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
401 211 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
402 212 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
403 213 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
404 214 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
405 215 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
406 216 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
407 217 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
408 218 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
409 219 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
412 ; The following were introduced with NetBSD/4.4Lite-2
413 ; They are initialized by their respective modules/sysinits
414 220 AUE_NULL MNOSTD { int __semctl(int semid, int semnum, \
415 int cmd, union semun *arg); }
416 221 AUE_NULL MNOSTD { int semget(key_t key, int nsems, \
418 222 AUE_NULL MNOSTD { int semop(int semid, struct sembuf *sops, \
420 223 AUE_NULL UNIMPL semconfig
421 224 AUE_NULL MNOSTD { int msgctl(int msqid, int cmd, \
422 struct msqid_ds *buf); }
423 225 AUE_NULL MNOSTD { int msgget(key_t key, int msgflg); }
424 226 AUE_NULL MNOSTD { int msgsnd(int msqid, const void *msgp, \
425 size_t msgsz, int msgflg); }
426 227 AUE_NULL MNOSTD { int msgrcv(int msqid, void *msgp, \
427 size_t msgsz, long msgtyp, int msgflg); }
428 228 AUE_NULL MNOSTD { int shmat(int shmid, const void *shmaddr, \
430 229 AUE_NULL MNOSTD { int shmctl(int shmid, int cmd, \
431 struct shmid_ds *buf); }
432 230 AUE_NULL MNOSTD { int shmdt(const void *shmaddr); }
433 231 AUE_NULL MNOSTD { int shmget(key_t key, size_t size, \
436 232 AUE_NULL MSTD { int clock_gettime(clockid_t clock_id, \
437 struct timespec *tp); }
438 233 AUE_NULL MSTD { int clock_settime(clockid_t clock_id, \
439 const struct timespec *tp); }
440 234 AUE_NULL MSTD { int clock_getres(clockid_t clock_id, \
441 struct timespec *tp); }
442 235 AUE_NULL MSTD { int timer_create(clockid_t clock_id, \
443 struct sigevent *evp, timer_t *timerid); }
444 236 AUE_NULL MSTD { int timer_delete(timer_t timerid); }
445 237 AUE_NULL MSTD { int timer_settime(timer_t timerid, int flags, \
446 const struct itimerspec *value, \
447 struct itimerspec *ovalue); }
448 238 AUE_NULL MSTD { int timer_gettime(timer_t timerid, struct \
449 itimerspec *value); }
450 239 AUE_NULL MSTD { int timer_getoverrun(timer_t timerid); }
451 240 AUE_NULL MSTD { int nanosleep(const struct timespec *rqtp, \
452 struct timespec *rmtp); }
453 241 AUE_NULL UNIMPL nosys
454 242 AUE_NULL UNIMPL nosys
455 243 AUE_NULL UNIMPL nosys
456 244 AUE_NULL UNIMPL nosys
457 245 AUE_NULL UNIMPL nosys
458 246 AUE_NULL UNIMPL nosys
459 247 AUE_NULL UNIMPL nosys
460 248 AUE_NULL MSTD { int ntp_gettime(struct ntptimeval *ntvp); }
461 249 AUE_NULL UNIMPL nosys
462 ; syscall numbers initially used in OpenBSD
463 250 AUE_NULL MSTD { int minherit(void *addr, size_t len, \
465 251 AUE_NULL MSTD { int rfork(int flags); }
466 252 AUE_NULL MSTD { int openbsd_poll(struct pollfd *fds, \
467 u_int nfds, int timeout); }
468 253 AUE_NULL MSTD { int issetugid(void); }
469 254 AUE_NULL MSTD { int lchown(char *path, int uid, int gid); }
470 255 AUE_NULL MNOSTD { int aio_read(struct aiocb *aiocbp); }
471 256 AUE_NULL MNOSTD { int aio_write(struct aiocb *aiocbp); }
472 257 AUE_NULL MNOSTD { int lio_listio(int mode, \
473 struct aiocb * const *acb_list, \
474 int nent, struct sigevent *sig); }
475 258 AUE_NULL UNIMPL nosys
476 259 AUE_NULL UNIMPL nosys
477 260 AUE_NULL UNIMPL nosys
478 261 AUE_NULL UNIMPL nosys
479 262 AUE_NULL UNIMPL nosys
480 263 AUE_NULL UNIMPL nosys
481 264 AUE_NULL UNIMPL nosys
482 265 AUE_NULL UNIMPL nosys
483 266 AUE_NULL UNIMPL nosys
484 267 AUE_NULL UNIMPL nosys
485 268 AUE_NULL UNIMPL nosys
486 269 AUE_NULL UNIMPL nosys
487 270 AUE_NULL UNIMPL nosys
488 271 AUE_NULL UNIMPL nosys
489 272 AUE_NULL MSTD { int getdents(int fd, char *buf, \
491 273 AUE_NULL UNIMPL nosys
492 274 AUE_NULL MSTD { int lchmod(char *path, mode_t mode); }
493 275 AUE_NULL MNOPROTO { int lchown(char *path, uid_t uid, \
494 gid_t gid); } netbsd_lchown lchown_args \
496 276 AUE_NULL MSTD { int lutimes(char *path, \
497 struct timeval *tptr); }
498 277 AUE_NULL MNOPROTO { int msync(void *addr, size_t len, \
499 int flags); } netbsd_msync msync_args int
500 278 AUE_NULL MSTD { int nstat(char *path, struct nstat *ub); }
501 279 AUE_NULL MSTD { int nfstat(int fd, struct nstat *sb); }
502 280 AUE_NULL MSTD { int nlstat(char *path, struct nstat *ub); }
503 281 AUE_NULL UNIMPL nosys
504 282 AUE_NULL UNIMPL nosys
505 283 AUE_NULL UNIMPL nosys
506 284 AUE_NULL UNIMPL nosys
507 285 AUE_NULL UNIMPL nosys
508 286 AUE_NULL UNIMPL nosys
509 287 AUE_NULL UNIMPL nosys
510 288 AUE_NULL UNIMPL nosys
511 ; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
512 289 AUE_NULL MSTD { ssize_t preadv(int fd, struct iovec *iovp, \
513 u_int iovcnt, off_t offset); }
514 290 AUE_NULL MSTD { ssize_t pwritev(int fd, struct iovec *iovp, \
515 u_int iovcnt, off_t offset); }
516 291 AUE_NULL UNIMPL nosys
517 292 AUE_NULL UNIMPL nosys
518 293 AUE_NULL UNIMPL nosys
519 294 AUE_NULL UNIMPL nosys
520 295 AUE_NULL UNIMPL nosys
521 296 AUE_NULL UNIMPL nosys
522 ; XXX 297 is 300 in NetBSD
523 297 AUE_NULL MCOMPAT4 { int fhstatfs( \
524 const struct fhandle *u_fhp, \
525 struct ostatfs *buf); }
526 298 AUE_NULL MSTD { int fhopen(const struct fhandle *u_fhp, \
528 299 AUE_NULL MSTD { int fhstat(const struct fhandle *u_fhp, \
530 ; syscall numbers for FreeBSD
531 300 AUE_NULL MSTD { int modnext(int modid); }
532 301 AUE_NULL MSTD { int modstat(int modid, \
533 struct module_stat *stat); }
534 302 AUE_NULL MSTD { int modfnext(int modid); }
535 303 AUE_NULL MSTD { int modfind(const char *name); }
536 304 AUE_NULL MSTD { int kldload(const char *file); }
537 305 AUE_NULL MSTD { int kldunload(int fileid); }
538 306 AUE_NULL MSTD { int kldfind(const char *file); }
539 307 AUE_NULL MSTD { int kldnext(int fileid); }
540 308 AUE_NULL MSTD { int kldstat(int fileid, struct \
541 kld_file_stat* stat); }
542 309 AUE_NULL MSTD { int kldfirstmod(int fileid); }
543 310 AUE_NULL MSTD { int getsid(pid_t pid); }
544 311 AUE_NULL MSTD { int setresuid(uid_t ruid, uid_t euid, \
546 312 AUE_NULL MSTD { int setresgid(gid_t rgid, gid_t egid, \
548 313 AUE_NULL OBSOL signanosleep
549 314 AUE_NULL MNOSTD { int aio_return(struct aiocb *aiocbp); }
550 315 AUE_NULL MNOSTD { int aio_suspend( \
551 struct aiocb * const * aiocbp, int nent, \
552 const struct timespec *timeout); }
553 316 AUE_NULL MNOSTD { int aio_cancel(int fd, \
554 struct aiocb *aiocbp); }
555 317 AUE_NULL MNOSTD { int aio_error(struct aiocb *aiocbp); }
556 318 AUE_NULL MNOSTD { int oaio_read(struct oaiocb *aiocbp); }
557 319 AUE_NULL MNOSTD { int oaio_write(struct oaiocb *aiocbp); }
558 320 AUE_NULL MNOSTD { int olio_listio(int mode, \
559 struct oaiocb * const *acb_list, \
560 int nent, struct osigevent *sig); }
561 321 AUE_NULL MSTD { int yield(void); }
562 322 AUE_NULL OBSOL thr_sleep
563 323 AUE_NULL OBSOL thr_wakeup
564 324 AUE_NULL MSTD { int mlockall(int how); }
565 325 AUE_NULL MSTD { int munlockall(void); }
566 326 AUE_NULL MSTD { int __getcwd(u_char *buf, u_int buflen); }
568 327 AUE_NULL MSTD { int sched_setparam (pid_t pid, \
569 const struct sched_param *param); }
570 328 AUE_NULL MSTD { int sched_getparam (pid_t pid, struct \
571 sched_param *param); }
573 329 AUE_NULL MSTD { int sched_setscheduler (pid_t pid, int \
574 policy, const struct sched_param \
576 330 AUE_NULL MSTD { int sched_getscheduler (pid_t pid); }
578 331 AUE_NULL MSTD { int sched_yield (void); }
579 332 AUE_NULL MSTD { int sched_get_priority_max (int policy); }
580 333 AUE_NULL MSTD { int sched_get_priority_min (int policy); }
581 334 AUE_NULL MSTD { int sched_rr_get_interval (pid_t pid, \
582 struct timespec *interval); }
583 335 AUE_NULL MSTD { int utrace(const void *addr, size_t len); }
584 336 AUE_NULL MCOMPAT4 { int sendfile(int fd, int s, \
585 off_t offset, size_t nbytes, \
586 struct sf_hdtr *hdtr, off_t *sbytes, \
588 337 AUE_NULL MSTD { int kldsym(int fileid, int cmd, \
590 338 AUE_NULL MSTD { int jail(struct jail *jail); }
591 339 AUE_NULL UNIMPL pioctl
592 340 AUE_NULL MSTD { int sigprocmask(int how, \
593 const sigset_t *set, sigset_t *oset); }
594 341 AUE_NULL MSTD { int sigsuspend(const sigset_t *sigmask); }
595 342 AUE_NULL MCOMPAT4 { int sigaction(int sig, const \
596 struct sigaction *act, \
597 struct sigaction *oact); }
598 343 AUE_NULL MSTD { int sigpending(sigset_t *set); }
599 344 AUE_NULL MCOMPAT4 { int sigreturn( \
600 const struct ucontext4 *sigcntxp); }
601 345 AUE_NULL MSTD { int sigtimedwait(const sigset_t *set, \
603 const struct timespec *timeout); }
604 346 AUE_NULL MSTD { int sigwaitinfo(const sigset_t *set, \
606 347 AUE_NULL MSTD { int __acl_get_file(const char *path, \
607 acl_type_t type, struct acl *aclp); }
608 348 AUE_NULL MSTD { int __acl_set_file(const char *path, \
609 acl_type_t type, struct acl *aclp); }
610 349 AUE_NULL MSTD { int __acl_get_fd(int filedes, \
611 acl_type_t type, struct acl *aclp); }
612 350 AUE_NULL MSTD { int __acl_set_fd(int filedes, \
613 acl_type_t type, struct acl *aclp); }
614 351 AUE_NULL MSTD { int __acl_delete_file(const char *path, \
616 352 AUE_NULL MSTD { int __acl_delete_fd(int filedes, \
618 353 AUE_NULL MSTD { int __acl_aclcheck_file(const char *path, \
619 acl_type_t type, struct acl *aclp); }
620 354 AUE_NULL MSTD { int __acl_aclcheck_fd(int filedes, \
621 acl_type_t type, struct acl *aclp); }
622 355 AUE_NULL MSTD { int extattrctl(const char *path, int cmd, \
623 const char *filename, int attrnamespace, \
624 const char *attrname); }
625 356 AUE_NULL MSTD { int extattr_set_file(const char *path, \
626 int attrnamespace, const char *attrname, \
627 void *data, size_t nbytes); }
628 357 AUE_NULL MSTD { ssize_t extattr_get_file(const char *path, \
629 int attrnamespace, const char *attrname, \
630 void *data, size_t nbytes); }
631 358 AUE_NULL MSTD { int extattr_delete_file(const char *path, \
633 const char *attrname); }
634 359 AUE_NULL MNOSTD { int aio_waitcomplete( \
635 struct aiocb **aiocbp, \
636 struct timespec *timeout); }
637 360 AUE_NULL MSTD { int getresuid(uid_t *ruid, uid_t *euid, \
639 361 AUE_NULL MSTD { int getresgid(gid_t *rgid, gid_t *egid, \
641 362 AUE_NULL MSTD { int kqueue(void); }
642 363 AUE_NULL MSTD { int kevent(int fd, \
643 struct kevent *changelist, int nchanges, \
644 struct kevent *eventlist, int nevents, \
645 const struct timespec *timeout); }
646 364 AUE_NULL UNIMPL __cap_get_proc
647 365 AUE_NULL UNIMPL __cap_set_proc
648 366 AUE_NULL UNIMPL __cap_get_fd
649 367 AUE_NULL UNIMPL __cap_get_file
650 368 AUE_NULL UNIMPL __cap_set_fd
651 369 AUE_NULL UNIMPL __cap_set_file
652 370 AUE_NULL NODEF lkmressys lkmressys nosys_args int
653 371 AUE_NULL MSTD { int extattr_set_fd(int fd, \
654 int attrnamespace, const char *attrname, \
655 void *data, size_t nbytes); }
656 372 AUE_NULL MSTD { ssize_t extattr_get_fd(int fd, \
657 int attrnamespace, const char *attrname, \
658 void *data, size_t nbytes); }
659 373 AUE_NULL MSTD { int extattr_delete_fd(int fd, \
661 const char *attrname); }
662 374 AUE_NULL MSTD { int __setugid(int flag); }
663 375 AUE_NULL NOIMPL { int nfsclnt(int flag, caddr_t argp); }
664 376 AUE_NULL MSTD { int eaccess(char *path, int flags); }
665 377 AUE_NULL UNIMPL afs_syscall
666 378 AUE_NULL STD { int nmount(struct iovec *iovp, \
667 unsigned int iovcnt, int flags); }
668 379 AUE_NULL MSTD { int kse_exit(void); }
669 380 AUE_NULL MSTD { int kse_wakeup(struct kse_mailbox *mbx); }
670 381 AUE_NULL MSTD { int kse_create(struct kse_mailbox *mbx, \
672 382 AUE_NULL MSTD { int kse_thr_interrupt( \
673 struct kse_thr_mailbox *tmbx, int cmd, \
675 383 AUE_NULL MSTD { int kse_release(struct timespec *timeout); }
676 384 AUE_NULL MSTD { int __mac_get_proc(struct mac *mac_p); }
677 385 AUE_NULL MSTD { int __mac_set_proc(struct mac *mac_p); }
678 386 AUE_NULL MSTD { int __mac_get_fd(int fd, \
679 struct mac *mac_p); }
680 387 AUE_NULL MSTD { int __mac_get_file(const char *path_p, \
681 struct mac *mac_p); }
682 388 AUE_NULL MSTD { int __mac_set_fd(int fd, \
683 struct mac *mac_p); }
684 389 AUE_NULL MSTD { int __mac_set_file(const char *path_p, \
685 struct mac *mac_p); }
686 390 AUE_NULL MSTD { int kenv(int what, const char *name, \
687 char *value, int len); }
688 391 AUE_NULL MSTD { int lchflags(const char *path, int flags); }
689 392 AUE_NULL MSTD { int uuidgen(struct uuid *store, \
691 393 AUE_NULL MSTD { int sendfile(int fd, int s, off_t offset, \
692 size_t nbytes, struct sf_hdtr *hdtr, \
693 off_t *sbytes, int flags); }
694 394 AUE_NULL MSTD { int mac_syscall(const char *policy, \
695 int call, void *arg); }
696 395 AUE_NULL MSTD { int getfsstat(struct statfs *buf, \
697 long bufsize, int flags); }
698 396 AUE_NULL MSTD { int statfs(char *path, \
699 struct statfs *buf); }
700 397 AUE_NULL MSTD { int fstatfs(int fd, struct statfs *buf); }
701 398 AUE_NULL MSTD { int fhstatfs(const struct fhandle *u_fhp, \
702 struct statfs *buf); }
703 399 AUE_NULL UNIMPL nosys
704 400 AUE_NULL MNOSTD { int ksem_close(semid_t id); }
705 401 AUE_NULL MNOSTD { int ksem_post(semid_t id); }
706 402 AUE_NULL MNOSTD { int ksem_wait(semid_t id); }
707 403 AUE_NULL MNOSTD { int ksem_trywait(semid_t id); }
708 404 AUE_NULL MNOSTD { int ksem_init(semid_t *idp, \
709 unsigned int value); }
710 405 AUE_NULL MNOSTD { int ksem_open(semid_t *idp, \
711 const char *name, int oflag, \
712 mode_t mode, unsigned int value); }
713 406 AUE_NULL MNOSTD { int ksem_unlink(const char *name); }
714 407 AUE_NULL MNOSTD { int ksem_getvalue(semid_t id, int *val); }
715 408 AUE_NULL MNOSTD { int ksem_destroy(semid_t id); }
716 409 AUE_NULL MSTD { int __mac_get_pid(pid_t pid, \
717 struct mac *mac_p); }
718 410 AUE_NULL MSTD { int __mac_get_link(const char *path_p, \
719 struct mac *mac_p); }
720 411 AUE_NULL MSTD { int __mac_set_link(const char *path_p, \
721 struct mac *mac_p); }
722 412 AUE_NULL MSTD { int extattr_set_link(const char *path, \
723 int attrnamespace, const char *attrname, \
724 void *data, size_t nbytes); }
725 413 AUE_NULL MSTD { ssize_t extattr_get_link(const char *path, \
726 int attrnamespace, const char *attrname, \
727 void *data, size_t nbytes); }
728 414 AUE_NULL MSTD { int extattr_delete_link(const char *path, \
730 const char *attrname); }
731 415 AUE_NULL MSTD { int __mac_execve(char *fname, char **argv, \
732 char **envv, struct mac *mac_p); }
733 416 AUE_NULL MSTD { int sigaction(int sig, \
734 const struct sigaction *act, \
735 struct sigaction *oact); }
736 417 AUE_NULL MSTD { int sigreturn( \
737 const struct __ucontext *sigcntxp); }
738 418 AUE_NULL UNIMPL __xstat
739 419 AUE_NULL UNIMPL __xfstat
740 420 AUE_NULL UNIMPL __xlstat
741 421 AUE_NULL MSTD { int getcontext(struct __ucontext *ucp); }
742 422 AUE_NULL MSTD { int setcontext( \
743 const struct __ucontext *ucp); }
744 423 AUE_NULL MSTD { int swapcontext(struct __ucontext *oucp, \
745 const struct __ucontext *ucp); }
746 424 AUE_NULL MSTD { int swapoff(const char *name); }
747 425 AUE_NULL MSTD { int __acl_get_link(const char *path, \
748 acl_type_t type, struct acl *aclp); }
749 426 AUE_NULL MSTD { int __acl_set_link(const char *path, \
750 acl_type_t type, struct acl *aclp); }
751 427 AUE_NULL MSTD { int __acl_delete_link(const char *path, \
753 428 AUE_NULL MSTD { int __acl_aclcheck_link(const char *path, \
754 acl_type_t type, struct acl *aclp); }
755 429 AUE_NULL MSTD { int sigwait(const sigset_t *set, \
757 430 AUE_NULL MSTD { int thr_create(ucontext_t *ctx, long *id, \
759 431 AUE_NULL MSTD { void thr_exit(long *state); }
760 432 AUE_NULL MSTD { int thr_self(long *id); }
761 433 AUE_NULL MSTD { int thr_kill(long id, int sig); }
762 434 AUE_NULL MSTD { int _umtx_lock(struct umtx *umtx); }
763 435 AUE_NULL MSTD { int _umtx_unlock(struct umtx *umtx); }
764 436 AUE_NULL MSTD { int jail_attach(int jid); }
765 437 AUE_NULL MSTD { ssize_t extattr_list_fd(int fd, \
766 int attrnamespace, void *data, \
768 438 AUE_NULL MSTD { ssize_t extattr_list_file( \
769 const char *path, int attrnamespace, \
770 void *data, size_t nbytes); }
771 439 AUE_NULL MSTD { ssize_t extattr_list_link( \
772 const char *path, int attrnamespace, \
773 void *data, size_t nbytes); }
774 440 AUE_NULL MSTD { int kse_switchin( \
775 struct kse_thr_mailbox *tmbx, \
777 441 AUE_NULL MNOSTD { int ksem_timedwait(semid_t id, \
778 const struct timespec *abstime); }
779 442 AUE_NULL MSTD { int thr_suspend( \
780 const struct timespec *timeout); }
781 443 AUE_NULL MSTD { int thr_wake(long id); }
782 444 AUE_NULL MSTD { int kldunloadf(int fileid, int flags); }
783 445 AUE_NULL MNOSTD { int audit(const void *record, \
785 446 AUE_NULL MNOSTD { int auditon(int cmd, void *data, \
787 447 AUE_NULL MNOSTD { int getauid(uid_t *auid); }
788 448 AUE_NULL MNOSTD { int setauid(uid_t *auid); }
789 449 AUE_NULL MNOSTD { int getaudit(struct auditinfo *auditinfo); }
790 450 AUE_NULL MNOSTD { int setaudit(struct auditinfo *auditinfo); }
791 451 AUE_NULL MNOSTD { int getaudit_addr( \
792 struct auditinfo_addr *auditinfo_addr, \
794 452 AUE_NULL MNOSTD { int setaudit_addr( \
795 struct auditinfo_addr *auditinfo_addr, \
797 453 AUE_NULL MNOSTD { int auditctl(int cmd, char *path); }
798 454 AUE_NULL MSTD { int _umtx_op(struct umtx *umtx, int op, \
799 long id, void *uaddr, void *uaddr2); }
800 455 AUE_NULL MSTD { int thr_new(struct thr_param *param, \
802 456 AUE_NULL MSTD { int sigqueue(pid_t pid, int signum, void *value); }
803 457 AUE_NULL MNOSTD { int mq_open(const char *path, int flags, \
804 mode_t mode, const struct mq_attr *attr); }
805 458 AUE_NULL MNOSTD { int mq_setattr(mqd_t mqd, \
806 const struct mq_attr *attr, \
807 struct mq_attr *oattr); }
808 459 AUE_NULL MNOSTD { int mq_timedreceive(mqd_t mqd, \
809 char *msg_ptr, size_t msg_len, \
810 unsigned *msg_prio, \
811 const struct timespec *abs_timeout); }
812 460 AUE_NULL MNOSTD { int mq_timedsend(mqd_t mqd, \
813 const char *msg_ptr, size_t msg_len,\
815 const struct timespec *abs_timeout);}
816 461 AUE_NULL MNOSTD { int mq_notify(mqd_t mqd, \
817 const struct sigevent *sigev); }
818 462 AUE_NULL MNOSTD { int mq_unlink(const char *path); }
819 463 AUE_NULL MSTD { int abort2(const char *why, int nargs, void **args); }
820 ; Please copy any additions and changes to the following compatability tables:
821 ; sys/compat/freebsd32/syscalls.master