1 $FreeBSD: releng/6.3/sys/kern/syscalls.master 173886 2007-11-24 19:45:58Z cvs2svn $
2 ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
3 ;
4 ; System call name/number master file.
5 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
6
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
23
24 ; types:
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.
28 ; STD always included
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
37 ;
38 ; Please copy any additions and changes to the following compatability tables:
39 ; sys/compat/freebsd32/syscalls.master
40
41 ; #ifdef's, etc. may be included, and are copied to the output files.
42
43 #include <sys/param.h>
44 #include <sys/sysent.h>
45 #include <sys/sysproto.h>
46
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.
52
53 0 AUE_NULL MSTD { int nosys(void); } syscall nosys_args int
54 1 AUE_EXIT MSTD { void sys_exit(int rval); } exit \
55 sys_exit_args void
56 2 AUE_FORK MSTD { int fork(void); }
57 3 AUE_NULL MSTD { ssize_t read(int fd, void *buf, \
58 size_t nbyte); }
59 4 AUE_NULL MSTD { ssize_t write(int fd, const void *buf, \
60 size_t nbyte); }
61 5 AUE_OPEN_RWTC 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_CLOSE MSTD { int close(int fd); }
66 7 AUE_WAIT4 MSTD { int wait4(int pid, int *status, \
67 int options, struct rusage *rusage); } \
68 wait4 wait_args int
69 8 AUE_CREAT MCOMPAT { int creat(char *path, int mode); }
70 9 AUE_LINK MSTD { int link(char *path, char *link); }
71 10 AUE_UNLINK MSTD { int unlink(char *path); }
72 11 AUE_NULL OBSOL execv
73 12 AUE_CHDIR MSTD { int chdir(char *path); }
74 13 AUE_FCHDIR MSTD { int fchdir(int fd); }
75 14 AUE_MKNOD MSTD { int mknod(char *path, int mode, int dev); }
76 15 AUE_CHMOD MSTD { int chmod(char *path, int mode); }
77 16 AUE_CHOWN MSTD { int chown(char *path, int uid, int gid); }
78 17 AUE_NULL MSTD { int obreak(char *nsize); } break \
79 obreak_args int
80 18 AUE_GETFSSTAT MCOMPAT4 { int getfsstat(struct ostatfs *buf, \
81 long bufsize, int flags); }
82 19 AUE_LSEEK MCOMPAT { long lseek(int fd, long offset, \
83 int whence); }
84 20 AUE_GETPID MSTD { pid_t getpid(void); }
85 21 AUE_MOUNT 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_UMOUNT STD { int unmount(char *path, int flags); }
89 23 AUE_SETUID MSTD { int setuid(uid_t uid); }
90 24 AUE_GETUID MSTD { uid_t getuid(void); }
91 25 AUE_GETEUID MSTD { uid_t geteuid(void); }
92 26 AUE_PTRACE MSTD { int ptrace(int req, pid_t pid, \
93 caddr_t addr, int data); }
94 27 AUE_RECVMSG MSTD { int recvmsg(int s, struct msghdr *msg, \
95 int flags); }
96 28 AUE_SENDMSG MSTD { int sendmsg(int s, struct msghdr *msg, \
97 int flags); }
98 29 AUE_RECVFROM 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_ACCEPT MSTD { int accept(int s, \
103 struct sockaddr * __restrict name, \
104 __socklen_t * __restrict anamelen); }
105 31 AUE_GETPEERNAME MSTD { int getpeername(int fdes, \
106 struct sockaddr * __restrict asa, \
107 __socklen_t * __restrict alen); }
108 32 AUE_GETSOCKNAME MSTD { int getsockname(int fdes, \
109 struct sockaddr * __restrict asa, \
110 __socklen_t * __restrict alen); }
111 33 AUE_ACCESS MSTD { int access(char *path, int flags); }
112 34 AUE_CHFLAGS MSTD { int chflags(char *path, int flags); }
113 35 AUE_FCHFLAGS MSTD { int fchflags(int fd, int flags); }
114 36 AUE_SYNC MSTD { int sync(void); }
115 37 AUE_KILL MSTD { int kill(int pid, int signum); }
116 38 AUE_STAT MCOMPAT { int stat(char *path, struct ostat *ub); }
117 39 AUE_GETPPID MSTD { pid_t getppid(void); }
118 40 AUE_LSTAT MCOMPAT { int lstat(char *path, struct ostat *ub); }
119 41 AUE_DUP MSTD { int dup(u_int fd); }
120 42 AUE_PIPE MSTD { int pipe(void); }
121 43 AUE_GETEGID MSTD { gid_t getegid(void); }
122 44 AUE_PROFILE MSTD { int profil(caddr_t samples, size_t size, \
123 size_t offset, u_int scale); }
124 45 AUE_KTRACE MSTD { int ktrace(const char *fname, int ops, \
125 int facs, int pid); }
126 46 AUE_SIGACTION MCOMPAT { int sigaction(int signum, \
127 struct osigaction *nsa, \
128 struct osigaction *osa); }
129 47 AUE_GETGID MSTD { gid_t getgid(void); }
130 48 AUE_SIGPROCMASK 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_GETLOGIN MSTD { int getlogin(char *namebuf, u_int \
135 namelen); }
136 50 AUE_SETLOGIN MSTD { int setlogin(char *namebuf); }
137 51 AUE_ACCT MSTD { int acct(char *path); }
138 52 AUE_SIGPENDING MCOMPAT { int sigpending(void); }
139 53 AUE_SIGPENDING MSTD { int sigaltstack(stack_t *ss, \
140 stack_t *oss); }
141 54 AUE_IOCTL MSTD { int ioctl(int fd, u_long com, \
142 caddr_t data); }
143 55 AUE_REBOOT MSTD { int reboot(int opt); }
144 56 AUE_REVOKE MSTD { int revoke(char *path); }
145 57 AUE_SYMLINK MSTD { int symlink(char *path, char *link); }
146 58 AUE_READLINK MSTD { int readlink(char *path, char *buf, \
147 int count); }
148 59 AUE_EXECVE MSTD { int execve(char *fname, char **argv, \
149 char **envv); }
150 60 AUE_UMASK MSTD { int umask(int newmask); } umask umask_args \
151 int
152 61 AUE_CHROOT MSTD { int chroot(char *path); }
153 62 AUE_FSTAT 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 \
156 getkerninfo_args int
157 64 AUE_NULL MCOMPAT { int getpagesize(void); } getpagesize \
158 getpagesize_args int
159 65 AUE_MSYNC MSTD { int msync(void *addr, size_t len, \
160 int flags); }
161 66 AUE_VFORK MSTD { int vfork(void); }
162 67 AUE_NULL OBSOL vread
163 68 AUE_NULL OBSOL vwrite
164 69 AUE_SBRK MSTD { int sbrk(int incr); }
165 70 AUE_SSTK MSTD { int sstk(int incr); }
166 71 AUE_MMAP MCOMPAT { int mmap(void *addr, int len, int prot, \
167 int flags, int fd, long pos); }
168 72 AUE_O_VADVISE MSTD { int ovadvise(int anom); } vadvise \
169 ovadvise_args int
170 73 AUE_MUNMAP MSTD { int munmap(void *addr, size_t len); }
171 74 AUE_MPROTECT MSTD { int mprotect(const void *addr, size_t len, \
172 int prot); }
173 75 AUE_MADVISE MSTD { int madvise(void *addr, size_t len, \
174 int behav); }
175 76 AUE_NULL OBSOL vhangup
176 77 AUE_NULL OBSOL vlimit
177 78 AUE_MINCORE MSTD { int mincore(const void *addr, size_t len, \
178 char *vec); }
179 79 AUE_GETGROUPS MSTD { int getgroups(u_int gidsetsize, \
180 gid_t *gidset); }
181 80 AUE_SETGROUPS MSTD { int setgroups(u_int gidsetsize, \
182 gid_t *gidset); }
183 81 AUE_GETPGRP MSTD { int getpgrp(void); }
184 82 AUE_SETPGRP MSTD { int setpgid(int pid, int pgid); }
185 83 AUE_SETITIMER MSTD { int setitimer(u_int which, struct \
186 itimerval *itv, struct itimerval *oitv); }
187 84 AUE_WAIT4 MCOMPAT { int wait(void); }
188 85 AUE_SWAPON MSTD { int swapon(char *name); }
189 86 AUE_GETITIMER MSTD { int getitimer(u_int which, \
190 struct itimerval *itv); }
191 87 AUE_SYSCTL MCOMPAT { int gethostname(char *hostname, \
192 u_int len); } gethostname \
193 gethostname_args int
194 88 AUE_SYSCTL MCOMPAT { int sethostname(char *hostname, \
195 u_int len); } sethostname \
196 sethostname_args int
197 89 AUE_GETDTABLESIZE MSTD { int getdtablesize(void); }
198 90 AUE_DUP2 MSTD { int dup2(u_int from, u_int to); }
199 91 AUE_NULL UNIMPL getdopt
200 92 AUE_FCNTL 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_SELECT 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_FSYNC MSTD { int fsync(int fd); }
207 96 AUE_SETPRIORITY MSTD { int setpriority(int which, int who, \
208 int prio); }
209 97 AUE_SOCKET MSTD { int socket(int domain, int type, \
210 int protocol); }
211 98 AUE_CONNECT MSTD { int connect(int s, caddr_t name, \
212 int namelen); }
213 99 AUE_ACCEPT MCPT_NOA { int accept(int s, caddr_t name, \
214 int *anamelen); } accept accept_args int
215 100 AUE_GETPRIORITY MSTD { int getpriority(int which, int who); }
216 101 AUE_SEND MCOMPAT { int send(int s, caddr_t buf, int len, \
217 int flags); }
218 102 AUE_RECV MCOMPAT { int recv(int s, caddr_t buf, int len, \
219 int flags); }
220 103 AUE_SIGRETURN MCOMPAT { int sigreturn( \
221 struct osigcontext *sigcntxp); }
222 104 AUE_BIND MSTD { int bind(int s, caddr_t name, \
223 int namelen); }
224 105 AUE_SETSOCKOPT MSTD { int setsockopt(int s, int level, int name, \
225 caddr_t val, int valsize); }
226 106 AUE_LISTEN 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_RECVMSG MCOMPAT { int recvmsg(int s, struct omsghdr *msg, \
238 int flags); }
239 114 AUE_SENDMSG MCOMPAT { int sendmsg(int s, caddr_t msg, \
240 int flags); }
241 115 AUE_NULL OBSOL vtrace
242 116 AUE_GETTIMEOFDAY MSTD { int gettimeofday(struct timeval *tp, \
243 struct timezone *tzp); }
244 117 AUE_GETRUSAGE MSTD { int getrusage(int who, \
245 struct rusage *rusage); }
246 118 AUE_GETSOCKOPT 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_READV MSTD { int readv(int fd, struct iovec *iovp, \
250 u_int iovcnt); }
251 121 AUE_WRITEV MSTD { int writev(int fd, struct iovec *iovp, \
252 u_int iovcnt); }
253 122 AUE_SETTIMEOFDAY MSTD { int settimeofday(struct timeval *tv, \
254 struct timezone *tzp); }
255 123 AUE_FCHOWN MSTD { int fchown(int fd, int uid, int gid); }
256 124 AUE_FCHMOD MSTD { int fchmod(int fd, int mode); }
257 125 AUE_RECVFROM MCPT_NOA { int recvfrom(int s, caddr_t buf, \
258 size_t len, int flags, caddr_t from, int \
259 *fromlenaddr); } recvfrom recvfrom_args \
260 int
261 126 AUE_SETREUID MSTD { int setreuid(int ruid, int euid); }
262 127 AUE_SETREGID MSTD { int setregid(int rgid, int egid); }
263 128 AUE_RENAME MSTD { int rename(char *from, char *to); }
264 129 AUE_TRUNCATE MCOMPAT { int truncate(char *path, long length); }
265 130 AUE_FTRUNCATE MCOMPAT { int ftruncate(int fd, long length); }
266 131 AUE_FLOCK MSTD { int flock(int fd, int how); }
267 132 AUE_MKFIFO MSTD { int mkfifo(char *path, int mode); }
268 133 AUE_SENDTO MSTD { int sendto(int s, caddr_t buf, size_t len, \
269 int flags, caddr_t to, int tolen); }
270 134 AUE_SHUTDOWN MSTD { int shutdown(int s, int how); }
271 135 AUE_SOCKETPAIR MSTD { int socketpair(int domain, int type, \
272 int protocol, int *rsv); }
273 136 AUE_MKDIR MSTD { int mkdir(char *path, int mode); }
274 137 AUE_RMDIR MSTD { int rmdir(char *path); }
275 138 AUE_UTIMES MSTD { int utimes(char *path, \
276 struct timeval *tptr); }
277 139 AUE_NULL OBSOL 4.2 sigreturn
278 140 AUE_ADJTIME MSTD { int adjtime(struct timeval *delta, \
279 struct timeval *olddelta); }
280 141 AUE_GETPEERNAME MCOMPAT { int getpeername(int fdes, caddr_t asa, \
281 int *alen); }
282 142 AUE_SYSCTL MCOMPAT { long gethostid(void); }
283 143 AUE_SYSCTL MCOMPAT { int sethostid(long hostid); }
284 144 AUE_GETRLIMIT MCOMPAT { int getrlimit(u_int which, struct \
285 orlimit *rlp); }
286 145 AUE_SETRLIMIT MCOMPAT { int setrlimit(u_int which, \
287 struct orlimit *rlp); }
288 146 AUE_KILLPG MCOMPAT { int killpg(int pgid, int signum); }
289 147 AUE_SETSID MSTD { int setsid(void); }
290 148 AUE_QUOTACTL MSTD { int quotactl(char *path, int cmd, int uid, \
291 caddr_t arg); }
292 149 AUE_O_QUOTA MCOMPAT { int quota(void); }
293 150 AUE_GETSOCKNAME MCPT_NOA { int getsockname(int fdec, \
294 caddr_t asa, int *alen); } getsockname \
295 getsockname_args int
296
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_NFS_SVC MNOIMPL { int nfssvc(int flag, caddr_t argp); }
307 156 AUE_GETDIRENTRIES COMPAT { int getdirentries(int fd, char *buf, \
308 u_int count, long *basep); }
309 157 AUE_STATFS MCOMPAT4 { int statfs(char *path, \
310 struct ostatfs *buf); }
311 158 AUE_FSTATFS MCOMPAT4 { int fstatfs(int fd, \
312 struct ostatfs *buf); }
313 159 AUE_NULL UNIMPL nosys
314 160 AUE_LGETFH MSTD { int lgetfh(char *fname, \
315 struct fhandle *fhp); }
316 161 AUE_NFS_GETFH MSTD { int getfh(char *fname, \
317 struct fhandle *fhp); }
318 162 AUE_SYSCTL MSTD { int getdomainname(char *domainname, \
319 int len); }
320 163 AUE_SYSCTL MSTD { int setdomainname(char *domainname, \
321 int len); }
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_SEMSYS MNOSTD { int semsys(int which, int a2, int a3, \
330 int a4, int a5); }
331 ; 169 is initialized by the SYSVMSG code if present or loaded
332 ; XXX should be { int semsys(int which, ...); }
333 170 AUE_MSGSYS 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_SHMSYS MNOSTD { int shmsys(int which, int a2, int a3, \
338 int a4); }
339 ; XXX should be { int shmsys(int which, ...); }
340 172 AUE_NULL UNIMPL nosys
341 173 AUE_PREAD MSTD { ssize_t pread(int fd, void *buf, \
342 size_t nbyte, int pad, off_t offset); }
343 174 AUE_PWRITE 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_NTP_ADJTIME 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
351
352 ; Syscalls 181-199 are used by/reserved for BSD
353 181 AUE_SETGID MSTD { int setgid(gid_t gid); }
354 182 AUE_SETEGID MSTD { int setegid(gid_t egid); }
355 183 AUE_SETEUID 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_STAT MSTD { int stat(char *path, struct stat *ub); }
361 189 AUE_FSTAT MSTD { int fstat(int fd, struct stat *sb); }
362 190 AUE_LSTAT MSTD { int lstat(char *path, struct stat *ub); }
363 191 AUE_PATHCONF MSTD { int pathconf(char *path, int name); }
364 192 AUE_FPATHCONF MSTD { int fpathconf(int fd, int name); }
365 193 AUE_NULL UNIMPL nosys
366 194 AUE_GETRLIMIT MSTD { int getrlimit(u_int which, \
367 struct rlimit *rlp); } getrlimit \
368 __getrlimit_args int
369 195 AUE_SETRLIMIT MSTD { int setrlimit(u_int which, \
370 struct rlimit *rlp); } setrlimit \
371 __setrlimit_args int
372 196 AUE_GETDIRENTRIES MSTD { int getdirentries(int fd, char *buf, \
373 u_int count, long *basep); }
374 197 AUE_MMAP MSTD { caddr_t mmap(caddr_t addr, size_t len, \
375 int prot, int flags, int fd, int pad, \
376 off_t pos); }
377 198 AUE_NULL MSTD { int nosys(void); } __syscall \
378 __syscall_args int
379 199 AUE_LSEEK MSTD { off_t lseek(int fd, int pad, off_t offset, \
380 int whence); }
381 200 AUE_TRUNCATE MSTD { int truncate(char *path, int pad, \
382 off_t length); }
383 201 AUE_FTRUNCATE MSTD { int ftruncate(int fd, int pad, \
384 off_t length); }
385 202 AUE_SYSCTL 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_MLOCK MSTD { int mlock(const void *addr, size_t len); }
389 204 AUE_MUNLOCK MSTD { int munlock(const void *addr, size_t len); }
390 205 AUE_UNDELETE MSTD { int undelete(char *path); }
391 206 AUE_FUTIMES MSTD { int futimes(int fd, struct timeval *tptr); }
392 207 AUE_GETPGID MSTD { int getpgid(pid_t pid); }
393 208 AUE_NULL UNIMPL newreboot (NetBSD)
394 209 AUE_POLL MSTD { int poll(struct pollfd *fds, u_int nfds, \
395 int timeout); }
396
397 ;
398 ; The following are reserved for loadable syscalls
399 ;
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
410
411 ;
412 ; The following were introduced with NetBSD/4.4Lite-2
413 ; They are initialized by their respective modules/sysinits
414 220 AUE_SEMCTL MNOSTD { int __semctl(int semid, int semnum, \
415 int cmd, union semun *arg); }
416 221 AUE_SEMGET MNOSTD { int semget(key_t key, int nsems, \
417 int semflg); }
418 222 AUE_SEMOP MNOSTD { int semop(int semid, struct sembuf *sops, \
419 size_t nsops); }
420 223 AUE_NULL UNIMPL semconfig
421 224 AUE_MSGCTL MNOSTD { int msgctl(int msqid, int cmd, \
422 struct msqid_ds *buf); }
423 225 AUE_MSGGET MNOSTD { int msgget(key_t key, int msgflg); }
424 226 AUE_MSGSND MNOSTD { int msgsnd(int msqid, const void *msgp, \
425 size_t msgsz, int msgflg); }
426 227 AUE_MSGRCV MNOSTD { int msgrcv(int msqid, void *msgp, \
427 size_t msgsz, long msgtyp, int msgflg); }
428 228 AUE_SHMAT MNOSTD { int shmat(int shmid, const void *shmaddr, \
429 int shmflg); }
430 229 AUE_SHMCTL MNOSTD { int shmctl(int shmid, int cmd, \
431 struct shmid_ds *buf); }
432 230 AUE_SHMDT MNOSTD { int shmdt(const void *shmaddr); }
433 231 AUE_SHMGET MNOSTD { int shmget(key_t key, size_t size, \
434 int shmflg); }
435 ;
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 UNIMPL timer_create
443 236 AUE_NULL UNIMPL timer_delete
444 237 AUE_NULL UNIMPL timer_settime
445 238 AUE_NULL UNIMPL timer_gettime
446 239 AUE_NULL UNIMPL timer_getoverrun
447 240 AUE_NULL MSTD { int nanosleep(const struct timespec *rqtp, \
448 struct timespec *rmtp); }
449 241 AUE_NULL UNIMPL nosys
450 242 AUE_NULL UNIMPL nosys
451 243 AUE_NULL UNIMPL nosys
452 244 AUE_NULL UNIMPL nosys
453 245 AUE_NULL UNIMPL nosys
454 246 AUE_NULL UNIMPL nosys
455 247 AUE_NULL UNIMPL nosys
456 248 AUE_NULL MSTD { int ntp_gettime(struct ntptimeval *ntvp); }
457 249 AUE_NULL UNIMPL nosys
458 ; syscall numbers initially used in OpenBSD
459 250 AUE_MINHERIT MSTD { int minherit(void *addr, size_t len, \
460 int inherit); }
461 251 AUE_RFORK MSTD { int rfork(int flags); }
462 252 AUE_POLL MSTD { int openbsd_poll(struct pollfd *fds, \
463 u_int nfds, int timeout); }
464 253 AUE_ISSETUGID MSTD { int issetugid(void); }
465 254 AUE_LCHOWN MSTD { int lchown(char *path, int uid, int gid); }
466 255 AUE_NULL UNIMPL nosys
467 256 AUE_NULL UNIMPL nosys
468 257 AUE_NULL UNIMPL nosys
469 258 AUE_NULL UNIMPL nosys
470 259 AUE_NULL UNIMPL nosys
471 260 AUE_NULL UNIMPL nosys
472 261 AUE_NULL UNIMPL nosys
473 262 AUE_NULL UNIMPL nosys
474 263 AUE_NULL UNIMPL nosys
475 264 AUE_NULL UNIMPL nosys
476 265 AUE_NULL UNIMPL nosys
477 266 AUE_NULL UNIMPL nosys
478 267 AUE_NULL UNIMPL nosys
479 268 AUE_NULL UNIMPL nosys
480 269 AUE_NULL UNIMPL nosys
481 270 AUE_NULL UNIMPL nosys
482 271 AUE_NULL UNIMPL nosys
483 272 AUE_O_GETDENTS MSTD { int getdents(int fd, char *buf, \
484 size_t count); }
485 273 AUE_NULL UNIMPL nosys
486 274 AUE_LCHMOD MSTD { int lchmod(char *path, mode_t mode); }
487 275 AUE_LCHOWN MNOPROTO { int lchown(char *path, uid_t uid, \
488 gid_t gid); } netbsd_lchown lchown_args \
489 int
490 276 AUE_LUTIMES MSTD { int lutimes(char *path, \
491 struct timeval *tptr); }
492 277 AUE_MSYNC MNOPROTO { int msync(void *addr, size_t len, \
493 int flags); } netbsd_msync msync_args int
494 278 AUE_STAT MSTD { int nstat(char *path, struct nstat *ub); }
495 279 AUE_FSTAT MSTD { int nfstat(int fd, struct nstat *sb); }
496 280 AUE_LSTAT MSTD { int nlstat(char *path, struct nstat *ub); }
497 281 AUE_NULL UNIMPL nosys
498 282 AUE_NULL UNIMPL nosys
499 283 AUE_NULL UNIMPL nosys
500 284 AUE_NULL UNIMPL nosys
501 285 AUE_NULL UNIMPL nosys
502 286 AUE_NULL UNIMPL nosys
503 287 AUE_NULL UNIMPL nosys
504 288 AUE_NULL UNIMPL nosys
505 ; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
506 289 AUE_NULL MSTD { ssize_t preadv(int fd, struct iovec *iovp, \
507 u_int iovcnt, off_t offset); }
508 290 AUE_NULL MSTD { ssize_t pwritev(int fd, struct iovec *iovp, \
509 u_int iovcnt, off_t offset); }
510 291 AUE_NULL UNIMPL nosys
511 292 AUE_NULL UNIMPL nosys
512 293 AUE_NULL UNIMPL nosys
513 294 AUE_NULL UNIMPL nosys
514 295 AUE_NULL UNIMPL nosys
515 296 AUE_NULL UNIMPL nosys
516 ; XXX 297 is 300 in NetBSD
517 297 AUE_FHSTATFS MCOMPAT4 { int fhstatfs( \
518 const struct fhandle *u_fhp, \
519 struct ostatfs *buf); }
520 298 AUE_FHOPEN MSTD { int fhopen(const struct fhandle *u_fhp, \
521 int flags); }
522 299 AUE_FHSTAT MSTD { int fhstat(const struct fhandle *u_fhp, \
523 struct stat *sb); }
524 ; syscall numbers for FreeBSD
525 300 AUE_NULL MSTD { int modnext(int modid); }
526 301 AUE_NULL MSTD { int modstat(int modid, \
527 struct module_stat *stat); }
528 302 AUE_NULL MSTD { int modfnext(int modid); }
529 303 AUE_NULL MSTD { int modfind(const char *name); }
530 304 AUE_MODLOAD MSTD { int kldload(const char *file); }
531 305 AUE_MODUNLOAD MSTD { int kldunload(int fileid); }
532 306 AUE_NULL MSTD { int kldfind(const char *file); }
533 307 AUE_NULL MSTD { int kldnext(int fileid); }
534 308 AUE_NULL MSTD { int kldstat(int fileid, struct \
535 kld_file_stat* stat); }
536 309 AUE_NULL MSTD { int kldfirstmod(int fileid); }
537 310 AUE_GETSID MSTD { int getsid(pid_t pid); }
538 311 AUE_SETRESUID MSTD { int setresuid(uid_t ruid, uid_t euid, \
539 uid_t suid); }
540 312 AUE_SETRESGID MSTD { int setresgid(gid_t rgid, gid_t egid, \
541 gid_t sgid); }
542 313 AUE_NULL OBSOL signanosleep
543 314 AUE_NULL NOSTD { int aio_return(struct aiocb *aiocbp); }
544 315 AUE_NULL NOSTD { int aio_suspend( \
545 struct aiocb * const * aiocbp, int nent, \
546 const struct timespec *timeout); }
547 316 AUE_NULL NOSTD { int aio_cancel(int fd, \
548 struct aiocb *aiocbp); }
549 317 AUE_NULL NOSTD { int aio_error(struct aiocb *aiocbp); }
550 318 AUE_NULL NOSTD { int aio_read(struct aiocb *aiocbp); }
551 319 AUE_NULL NOSTD { int aio_write(struct aiocb *aiocbp); }
552 320 AUE_NULL NOSTD { int lio_listio(int mode, \
553 struct aiocb * const *acb_list, \
554 int nent, struct sigevent *sig); }
555 321 AUE_NULL MSTD { int yield(void); }
556 322 AUE_NULL OBSOL thr_sleep
557 323 AUE_NULL OBSOL thr_wakeup
558 324 AUE_MLOCKALL MSTD { int mlockall(int how); }
559 325 AUE_MUNLOCKALL MSTD { int munlockall(void); }
560 326 AUE_NULL MSTD { int __getcwd(u_char *buf, u_int buflen); }
561
562 327 AUE_NULL MSTD { int sched_setparam (pid_t pid, \
563 const struct sched_param *param); }
564 328 AUE_NULL MSTD { int sched_getparam (pid_t pid, struct \
565 sched_param *param); }
566
567 329 AUE_NULL MSTD { int sched_setscheduler (pid_t pid, int \
568 policy, const struct sched_param \
569 *param); }
570 330 AUE_NULL MSTD { int sched_getscheduler (pid_t pid); }
571
572 331 AUE_NULL MSTD { int sched_yield (void); }
573 332 AUE_NULL MSTD { int sched_get_priority_max (int policy); }
574 333 AUE_NULL MSTD { int sched_get_priority_min (int policy); }
575 334 AUE_NULL MSTD { int sched_rr_get_interval (pid_t pid, \
576 struct timespec *interval); }
577 335 AUE_NULL MSTD { int utrace(const void *addr, size_t len); }
578 336 AUE_SENDFILE MCOMPAT4 { int sendfile(int fd, int s, \
579 off_t offset, size_t nbytes, \
580 struct sf_hdtr *hdtr, off_t *sbytes, \
581 int flags); }
582 337 AUE_NULL MSTD { int kldsym(int fileid, int cmd, \
583 void *data); }
584 338 AUE_JAIL MSTD { int jail(struct jail *jail); }
585 339 AUE_NULL UNIMPL pioctl
586 340 AUE_SIGPROCMASK MSTD { int sigprocmask(int how, \
587 const sigset_t *set, sigset_t *oset); }
588 341 AUE_SIGSUSPEND MSTD { int sigsuspend(const sigset_t *sigmask); }
589 342 AUE_SIGACTION MCOMPAT4 { int sigaction(int sig, const \
590 struct sigaction *act, \
591 struct sigaction *oact); }
592 343 AUE_SIGPENDING MSTD { int sigpending(sigset_t *set); }
593 344 AUE_SIGRETURN MCOMPAT4 { int sigreturn( \
594 const struct ucontext4 *sigcntxp); }
595 345 AUE_SIGWAIT MSTD { int sigtimedwait(const sigset_t *set, \
596 siginfo_t *info, \
597 const struct timespec *timeout); }
598 346 AUE_NULL MSTD { int sigwaitinfo(const sigset_t *set, \
599 siginfo_t *info); }
600 347 AUE_NULL MSTD { int __acl_get_file(const char *path, \
601 acl_type_t type, struct acl *aclp); }
602 348 AUE_NULL MSTD { int __acl_set_file(const char *path, \
603 acl_type_t type, struct acl *aclp); }
604 349 AUE_NULL MSTD { int __acl_get_fd(int filedes, \
605 acl_type_t type, struct acl *aclp); }
606 350 AUE_NULL MSTD { int __acl_set_fd(int filedes, \
607 acl_type_t type, struct acl *aclp); }
608 351 AUE_NULL MSTD { int __acl_delete_file(const char *path, \
609 acl_type_t type); }
610 352 AUE_NULL MSTD { int __acl_delete_fd(int filedes, \
611 acl_type_t type); }
612 353 AUE_NULL MSTD { int __acl_aclcheck_file(const char *path, \
613 acl_type_t type, struct acl *aclp); }
614 354 AUE_NULL MSTD { int __acl_aclcheck_fd(int filedes, \
615 acl_type_t type, struct acl *aclp); }
616 355 AUE_EXTATTRCTL MSTD { int extattrctl(const char *path, int cmd, \
617 const char *filename, int attrnamespace, \
618 const char *attrname); }
619 356 AUE_EXTATTR_SET_FILE MSTD { int extattr_set_file( \
620 const char *path, int attrnamespace, \
621 const char *attrname, void *data, \
622 size_t nbytes); }
623 357 AUE_EXTATTR_GET_FILE MSTD { ssize_t extattr_get_file( \
624 const char *path, int attrnamespace, \
625 const char *attrname, void *data, \
626 size_t nbytes); }
627 358 AUE_EXTATTR_DELETE_FILE MSTD { int extattr_delete_file( \
628 const char *path, int attrnamespace, \
629 const char *attrname); }
630 359 AUE_NULL NOSTD { int aio_waitcomplete( \
631 struct aiocb **aiocbp, \
632 struct timespec *timeout); }
633 360 AUE_GETRESUID MSTD { int getresuid(uid_t *ruid, uid_t *euid, \
634 uid_t *suid); }
635 361 AUE_GETRESGID MSTD { int getresgid(gid_t *rgid, gid_t *egid, \
636 gid_t *sgid); }
637 362 AUE_NULL MSTD { int kqueue(void); }
638 363 AUE_NULL MSTD { int kevent(int fd, \
639 struct kevent *changelist, int nchanges, \
640 struct kevent *eventlist, int nevents, \
641 const struct timespec *timeout); }
642 364 AUE_NULL UNIMPL __cap_get_proc
643 365 AUE_NULL UNIMPL __cap_set_proc
644 366 AUE_NULL UNIMPL __cap_get_fd
645 367 AUE_NULL UNIMPL __cap_get_file
646 368 AUE_NULL UNIMPL __cap_set_fd
647 369 AUE_NULL UNIMPL __cap_set_file
648 370 AUE_NULL NODEF lkmressys lkmressys nosys_args int
649 371 AUE_EXTATTR_SET_FD MSTD { int extattr_set_fd(int fd, \
650 int attrnamespace, const char *attrname, \
651 void *data, size_t nbytes); }
652 372 AUE_EXTATTR_GET_FD MSTD { ssize_t extattr_get_fd(int fd, \
653 int attrnamespace, const char *attrname, \
654 void *data, size_t nbytes); }
655 373 AUE_EXTATTR_DELETE_FD MSTD { int extattr_delete_fd(int fd, \
656 int attrnamespace, \
657 const char *attrname); }
658 374 AUE_NULL MSTD { int __setugid(int flag); }
659 375 AUE_NULL NOIMPL { int nfsclnt(int flag, caddr_t argp); }
660 376 AUE_EACCESS MSTD { int eaccess(char *path, int flags); }
661 377 AUE_NULL UNIMPL afs_syscall
662 378 AUE_NMOUNT STD { int nmount(struct iovec *iovp, \
663 unsigned int iovcnt, int flags); }
664 379 AUE_NULL MSTD { int kse_exit(void); }
665 380 AUE_NULL MSTD { int kse_wakeup(struct kse_mailbox *mbx); }
666 381 AUE_NULL MSTD { int kse_create(struct kse_mailbox *mbx, \
667 int newgroup); }
668 382 AUE_NULL MSTD { int kse_thr_interrupt( \
669 struct kse_thr_mailbox *tmbx, int cmd, \
670 long data); }
671 383 AUE_NULL MSTD { int kse_release(struct timespec *timeout); }
672 384 AUE_NULL MSTD { int __mac_get_proc(struct mac *mac_p); }
673 385 AUE_NULL MSTD { int __mac_set_proc(struct mac *mac_p); }
674 386 AUE_NULL MSTD { int __mac_get_fd(int fd, \
675 struct mac *mac_p); }
676 387 AUE_NULL MSTD { int __mac_get_file(const char *path_p, \
677 struct mac *mac_p); }
678 388 AUE_NULL MSTD { int __mac_set_fd(int fd, \
679 struct mac *mac_p); }
680 389 AUE_NULL MSTD { int __mac_set_file(const char *path_p, \
681 struct mac *mac_p); }
682 390 AUE_NULL MSTD { int kenv(int what, const char *name, \
683 char *value, int len); }
684 391 AUE_LCHFLAGS MSTD { int lchflags(const char *path, int flags); }
685 392 AUE_NULL MSTD { int uuidgen(struct uuid *store, \
686 int count); }
687 393 AUE_SENDFILE MSTD { int sendfile(int fd, int s, off_t offset, \
688 size_t nbytes, struct sf_hdtr *hdtr, \
689 off_t *sbytes, int flags); }
690 394 AUE_NULL MSTD { int mac_syscall(const char *policy, \
691 int call, void *arg); }
692 395 AUE_GETFSSTAT MSTD { int getfsstat(struct statfs *buf, \
693 long bufsize, int flags); }
694 396 AUE_STATFS MSTD { int statfs(char *path, \
695 struct statfs *buf); }
696 397 AUE_FSTATFS MSTD { int fstatfs(int fd, struct statfs *buf); }
697 398 AUE_NULL MSTD { int fhstatfs(const struct fhandle *u_fhp, \
698 struct statfs *buf); }
699 399 AUE_NULL UNIMPL nosys
700 400 AUE_NULL MNOSTD { int ksem_close(semid_t id); }
701 401 AUE_NULL MNOSTD { int ksem_post(semid_t id); }
702 402 AUE_NULL MNOSTD { int ksem_wait(semid_t id); }
703 403 AUE_NULL MNOSTD { int ksem_trywait(semid_t id); }
704 404 AUE_NULL MNOSTD { int ksem_init(semid_t *idp, \
705 unsigned int value); }
706 405 AUE_NULL MNOSTD { int ksem_open(semid_t *idp, \
707 const char *name, int oflag, \
708 mode_t mode, unsigned int value); }
709 406 AUE_NULL MNOSTD { int ksem_unlink(const char *name); }
710 407 AUE_NULL MNOSTD { int ksem_getvalue(semid_t id, int *val); }
711 408 AUE_NULL MNOSTD { int ksem_destroy(semid_t id); }
712 409 AUE_NULL MSTD { int __mac_get_pid(pid_t pid, \
713 struct mac *mac_p); }
714 410 AUE_NULL MSTD { int __mac_get_link(const char *path_p, \
715 struct mac *mac_p); }
716 411 AUE_NULL MSTD { int __mac_set_link(const char *path_p, \
717 struct mac *mac_p); }
718 412 AUE_EXTATTR_SET_LINK MSTD { int extattr_set_link( \
719 const char *path, int attrnamespace, \
720 const char *attrname, void *data, \
721 size_t nbytes); }
722 413 AUE_EXTATTR_GET_LINK MSTD { ssize_t extattr_get_link( \
723 const char *path, int attrnamespace, \
724 const char *attrname, void *data, \
725 size_t nbytes); }
726 414 AUE_EXTATTR_DELETE_LINK MSTD { int extattr_delete_link( \
727 const char *path, int attrnamespace, \
728 const char *attrname); }
729 415 AUE_NULL MSTD { int __mac_execve(char *fname, char **argv, \
730 char **envv, struct mac *mac_p); }
731 416 AUE_SIGACTION MSTD { int sigaction(int sig, \
732 const struct sigaction *act, \
733 struct sigaction *oact); }
734 417 AUE_SIGRETURN MSTD { int sigreturn( \
735 const struct __ucontext *sigcntxp); }
736 418 AUE_NULL UNIMPL __xstat
737 419 AUE_NULL UNIMPL __xfstat
738 420 AUE_NULL UNIMPL __xlstat
739 421 AUE_NULL MSTD { int getcontext(struct __ucontext *ucp); }
740 422 AUE_NULL MSTD { int setcontext( \
741 const struct __ucontext *ucp); }
742 423 AUE_NULL MSTD { int swapcontext(struct __ucontext *oucp, \
743 const struct __ucontext *ucp); }
744 424 AUE_SWAPOFF MSTD { int swapoff(const char *name); }
745 425 AUE_NULL MSTD { int __acl_get_link(const char *path, \
746 acl_type_t type, struct acl *aclp); }
747 426 AUE_NULL MSTD { int __acl_set_link(const char *path, \
748 acl_type_t type, struct acl *aclp); }
749 427 AUE_NULL MSTD { int __acl_delete_link(const char *path, \
750 acl_type_t type); }
751 428 AUE_NULL MSTD { int __acl_aclcheck_link(const char *path, \
752 acl_type_t type, struct acl *aclp); }
753 429 AUE_SIGWAIT MSTD { int sigwait(const sigset_t *set, \
754 int *sig); }
755 430 AUE_NULL MSTD { int thr_create(ucontext_t *ctx, long *id, \
756 int flags); }
757 431 AUE_NULL MSTD { void thr_exit(long *state); }
758 432 AUE_NULL MSTD { int thr_self(long *id); }
759 433 AUE_NULL MSTD { int thr_kill(long id, int sig); }
760 434 AUE_NULL MSTD { int _umtx_lock(struct umtx *umtx); }
761 435 AUE_NULL MSTD { int _umtx_unlock(struct umtx *umtx); }
762 436 AUE_NULL MSTD { int jail_attach(int jid); }
763 437 AUE_EXTATTR_LIST_FD MSTD { ssize_t extattr_list_fd(int fd, \
764 int attrnamespace, void *data, \
765 size_t nbytes); }
766 438 AUE_EXTATTR_LIST_FILE MSTD { ssize_t extattr_list_file( \
767 const char *path, int attrnamespace, \
768 void *data, size_t nbytes); }
769 439 AUE_EXTATTR_LIST_LINK MSTD { ssize_t extattr_list_link( \
770 const char *path, int attrnamespace, \
771 void *data, size_t nbytes); }
772 440 AUE_NULL MSTD { int kse_switchin( \
773 struct kse_thr_mailbox *tmbx, \
774 int flags); }
775 441 AUE_NULL MNOSTD { int ksem_timedwait(semid_t id, \
776 struct timespec *abstime); }
777 442 AUE_NULL MSTD { int thr_suspend( \
778 const struct timespec *timeout); }
779 443 AUE_NULL MSTD { int thr_wake(long id); }
780 444 AUE_NULL MSTD { int kldunloadf(int fileid, int flags); }
781 445 AUE_AUDIT MSTD { int audit(const void *record, \
782 u_int length); }
783 446 AUE_AUDITON MSTD { int auditon(int cmd, void *data, \
784 u_int length); }
785 447 AUE_GETAUID MSTD { int getauid(uid_t *auid); }
786 448 AUE_SETAUID MSTD { int setauid(uid_t *auid); }
787 449 AUE_GETAUDIT MSTD { int getaudit(struct auditinfo *auditinfo); }
788 450 AUE_SETAUDIT MSTD { int setaudit(struct auditinfo *auditinfo); }
789 451 AUE_GETAUDIT_ADDR MSTD { int getaudit_addr( \
790 struct auditinfo_addr *auditinfo_addr, \
791 u_int length); }
792 452 AUE_SETAUDIT_ADDR MSTD { int setaudit_addr( \
793 struct auditinfo_addr *auditinfo_addr, \
794 u_int length); }
795 453 AUE_AUDITCTL MSTD { int auditctl(char *path); }
796 454 AUE_NULL MSTD { int _umtx_op(struct umtx *umtx, int op, \
797 long id, void *uaddr, void *uaddr2); }
798 455 AUE_NULL MSTD { int thr_new(struct thr_param *param, \
799 int param_size); }
800
801 ; Please copy any additions and changes to the following compatability tables:
802 ; sys/compat/freebsd32/syscalls.master
Cache object: 26f7e95f6a86d3052082ac21093cf66c
|