Synchronise with NetBSD:
[dragonfly.git] / sys / kern / syscalls.master
... / ...
CommitLineData
1 $DragonFly: src/sys/kern/syscalls.master,v 1.26 2005/08/02 13:03:55 joerg Exp $
2
3; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
4; $FreeBSD: src/sys/kern/syscalls.master,v 1.72.2.10 2002/07/12 08:22:46 alfred Exp $
5;
6; System call name/number master file.
7; Processed to created init_sysent.c, syscalls.c and syscall.h.
8
9; Columns: number [MPSAFE] type nargs namespc name alt{name,tag,rtyp}/comments
10; number system call number, must be in order
11; MPSAFE optional field, specifies that syscall does not want the
12; BGL grabbed automatically (it is SMP safe).
13; type one of STD, OBSOL, UNIMPL, COMPAT, CPT_NOA, LIBCOMPAT,
14; NODEF, NOARGS, NOPROTO, NOIMPL
15; namespc one of POSIX, BSD, NOHIDE
16; name psuedo-prototype of syscall routine
17; If one of the following alts is different, then all appear:
18; altname name of system call if different
19; alttag name of args struct tag if different from [o]`name'"_args"
20; altrtyp return type if not int (bogus - syscalls always return int)
21; for UNIMPL/OBSOL, name continues with comments
22
23; types:
24; STD always included
25; COMPAT included on COMPAT #ifdef
26; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
27; OBSOL obsolete, not included in system, only specifies name
28; UNIMPL not implemented, placeholder only
29
30; #ifdef's, etc. may be included, and are copied to the output files.
31
32#include <sys/param.h>
33#include <sys/sysent.h>
34#include <sys/sysproto.h>
35
36#ifdef COMPAT_43
37#include <emulation/43bsd/stat.h>
38#endif
39
40#include <emulation/dragonfly12/stat.h>
41
42; Reserved/unimplemented system calls in the range 0-150 inclusive
43; are reserved for use in future Berkeley releases.
44; Additional system calls implemented in vendor and other
45; redistributions should be placed in the reserved range at the end
46; of the current calls.
47
480 STD NOHIDE { int nosys(void); } syscall nosys_args int
491 STD NOHIDE { void sys_exit(int rval); } exit sys_exit_args void
502 STD POSIX { int fork(void); }
513 STD POSIX { ssize_t read(int fd, void *buf, size_t nbyte); }
524 STD POSIX { ssize_t write(int fd, const void *buf, size_t nbyte); }
535 STD POSIX { int open(char *path, int flags, int mode); }
54; XXX should be { int open(const char *path, int flags, ...); }
55; but we're not ready for `const' or varargs.
56; XXX man page says `mode_t mode'.
576 STD POSIX { int close(int fd); }
587 STD BSD { int wait4(int pid, int *status, int options, \
59 struct rusage *rusage); } wait4 wait_args int
608 COMPAT BSD { int creat(char *path, int mode); }
619 STD POSIX { int link(char *path, char *link); }
6210 STD POSIX { int unlink(char *path); }
6311 OBSOL NOHIDE execv
6412 STD POSIX { int chdir(char *path); }
6513 STD BSD { int fchdir(int fd); }
6614 STD POSIX { int mknod(char *path, int mode, int dev); }
6715 STD POSIX { int chmod(char *path, int mode); }
6816 STD POSIX { int chown(char *path, int uid, int gid); }
6917 STD BSD { int obreak(char *nsize); } break obreak_args int
7018 STD BSD { int getfsstat(struct statfs *buf, long bufsize, \
71 int flags); }
7219 COMPAT POSIX { long lseek(int fd, long offset, int whence); }
7320 STD POSIX { pid_t getpid(void); }
7421 STD BSD { int mount(char *type, char *path, int flags, \
75 caddr_t data); }
76; XXX `path' should have type `const char *' but we're not ready for that.
7722 STD BSD { int unmount(char *path, int flags); }
7823 STD POSIX { int setuid(uid_t uid); }
7924 MPSAFE STD POSIX { uid_t getuid(void); }
8025 MPSAFE STD POSIX { uid_t geteuid(void); }
8126 STD BSD { int ptrace(int req, pid_t pid, caddr_t addr, \
82 int data); }
8327 STD BSD { int recvmsg(int s, struct msghdr *msg, int flags); }
8428 STD BSD { int sendmsg(int s, caddr_t msg, int flags); }
8529 STD BSD { int recvfrom(int s, caddr_t buf, size_t len, \
86 int flags, caddr_t from, int *fromlenaddr); }
8730 STD BSD { int accept(int s, caddr_t name, int *anamelen); }
8831 STD BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
8932 STD BSD { int getsockname(int fdes, caddr_t asa, int *alen); }
9033 STD POSIX { int access(char *path, int flags); }
9134 STD BSD { int chflags(char *path, int flags); }
9235 STD BSD { int fchflags(int fd, int flags); }
9336 STD BSD { int sync(void); }
9437 STD POSIX { int kill(int pid, int signum); }
9538 COMPAT POSIX { int stat(char *path, struct ostat *ub); }
9639 STD POSIX { pid_t getppid(void); }
9740 COMPAT POSIX { int lstat(char *path, struct ostat *ub); }
9841 STD POSIX { int dup(u_int fd); }
9942 STD POSIX { int pipe(void); }
10043 STD POSIX { gid_t getegid(void); }
10144 STD BSD { int profil(caddr_t samples, size_t size, \
102 size_t offset, u_int scale); }
10345 STD BSD { int ktrace(const char *fname, int ops, int facs, \
104 int pid); }
10546 OBSOL NOHIDE freebsd3_sigaction
10647 MPSAFE STD POSIX { gid_t getgid(void); }
10748 OBSOL NOHIDE freebsd3_sigprocmask
108; XXX note nonstandard (bogus) calling convention - the libc stub passes
109; us the mask, not a pointer to it, and we return the old mask as the
110; (int) return value.
11149 STD BSD { int getlogin(char *namebuf, u_int namelen); }
11250 STD BSD { int setlogin(char *namebuf); }
11351 STD BSD { int acct(char *path); }
11452 OBSOL NOHIDE freebsd3_sigpending
11553 STD BSD { int sigaltstack(stack_t *ss, stack_t *oss); }
11654 STD POSIX { int ioctl(int fd, u_long com, caddr_t data); }
11755 STD BSD { int reboot(int opt); }
11856 STD POSIX { int revoke(char *path); }
11957 STD POSIX { int symlink(char *path, char *link); }
12058 STD POSIX { int readlink(char *path, char *buf, int count); }
12159 STD POSIX { int execve(char *fname, char **argv, char **envv); }
12260 MPSAFE STD POSIX { int umask(int newmask); } umask umask_args int
12361 STD BSD { int chroot(char *path); }
12462 COMPAT POSIX { int fstat(int fd, struct ostat *sb); }
12563 COMPAT BSD { int getkerninfo(int op, char *where, size_t *size, \
126 int arg); } getkerninfo getkerninfo_args int
12764 COMPAT BSD { int getpagesize(void); } \
128 getpagesize getpagesize_args int
12965 STD BSD { int msync(void *addr, size_t len, int flags); }
13066 STD BSD { int vfork(void); }
13167 OBSOL NOHIDE vread
13268 OBSOL NOHIDE vwrite
13369 STD BSD { int sbrk(int incr); }
13470 STD BSD { int sstk(int incr); }
13571 COMPAT BSD { int mmap(void *addr, int len, int prot, \
136 int flags, int fd, long pos); }
13772 STD BSD { int ovadvise(int anom); } vadvise ovadvise_args int
13873 STD BSD { int munmap(void *addr, size_t len); }
13974 STD BSD { int mprotect(const void *addr, size_t len, int prot); }
14075 STD BSD { int madvise(void *addr, size_t len, int behav); }
14176 OBSOL NOHIDE vhangup
14277 OBSOL NOHIDE vlimit
14378 STD BSD { int mincore(const void *addr, size_t len, \
144 char *vec); }
14579 STD POSIX { int getgroups(u_int gidsetsize, gid_t *gidset); }
14680 STD POSIX { int setgroups(u_int gidsetsize, gid_t *gidset); }
14781 MPSAFE STD POSIX { int getpgrp(void); }
14882 STD POSIX { int setpgid(int pid, int pgid); }
14983 STD BSD { int setitimer(u_int which, struct itimerval *itv, \
150 struct itimerval *oitv); }
15184 COMPAT BSD { int wait(void); }
15285 STD BSD { int swapon(char *name); }
15386 STD BSD { int getitimer(u_int which, struct itimerval *itv); }
15487 COMPAT BSD { int gethostname(char *hostname, u_int len); } \
155 gethostname gethostname_args int
15688 COMPAT BSD { int sethostname(char *hostname, u_int len); } \
157 sethostname sethostname_args int
15889 STD BSD { int getdtablesize(void); }
15990 STD POSIX { int dup2(u_int from, u_int to); }
16091 UNIMPL BSD getdopt
16192 STD POSIX { int fcntl(int fd, int cmd, long arg); }
162; XXX should be { int fcntl(int fd, int cmd, ...); }
163; but we're not ready for varargs.
164; XXX man page says `int arg' too.
16593 STD BSD { int select(int nd, fd_set *in, fd_set *ou, \
166 fd_set *ex, struct timeval *tv); }
16794 UNIMPL BSD setdopt
16895 STD POSIX { int fsync(int fd); }
16996 STD BSD { int setpriority(int which, int who, int prio); }
17097 STD BSD { int socket(int domain, int type, int protocol); }
17198 STD BSD { int connect(int s, caddr_t name, int namelen); }
17299 CPT_NOA BSD { int accept(int s, caddr_t name, int *anamelen); } \
173 accept accept_args int
174100 STD BSD { int getpriority(int which, int who); }
175101 COMPAT BSD { int send(int s, caddr_t buf, int len, int flags); }
176102 COMPAT BSD { int recv(int s, caddr_t buf, int len, int flags); }
177103 OBSOL NOHIDE freebsd3_sigreturn
178104 STD BSD { int bind(int s, caddr_t name, int namelen); }
179105 STD BSD { int setsockopt(int s, int level, int name, \
180 caddr_t val, int valsize); }
181106 STD BSD { int listen(int s, int backlog); }
182107 OBSOL NOHIDE vtimes
183108 COMPAT BSD { int sigvec(int signum, struct sigvec *nsv, \
184 struct sigvec *osv); }
185109 COMPAT BSD { int sigblock(int mask); }
186110 COMPAT BSD { int sigsetmask(int mask); }
187111 OBSOL NOHIDE freebsd3_sigsuspend
188; XXX note nonstandard (bogus) calling convention - the libc stub passes
189; us the mask, not a pointer to it.
190112 COMPAT BSD { int sigstack(struct sigstack *nss, \
191 struct sigstack *oss); }
192113 COMPAT BSD { int recvmsg(int s, struct omsghdr *msg, int flags); }
193114 COMPAT BSD { int sendmsg(int s, caddr_t msg, int flags); }
194115 OBSOL NOHIDE vtrace
195116 MPSAFE STD BSD { int gettimeofday(struct timeval *tp, \
196 struct timezone *tzp); }
197117 STD BSD { int getrusage(int who, struct rusage *rusage); }
198118 STD BSD { int getsockopt(int s, int level, int name, \
199 caddr_t val, int *avalsize); }
200119 UNIMPL NOHIDE resuba (BSD/OS 2.x)
201120 STD BSD { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
202121 STD BSD { int writev(int fd, struct iovec *iovp, \
203 u_int iovcnt); }
204122 STD BSD { int settimeofday(struct timeval *tv, \
205 struct timezone *tzp); }
206123 STD BSD { int fchown(int fd, int uid, int gid); }
207124 STD BSD { int fchmod(int fd, int mode); }
208125 CPT_NOA BSD { int recvfrom(int s, caddr_t buf, size_t len, \
209 int flags, caddr_t from, int *fromlenaddr); } \
210 recvfrom recvfrom_args int
211126 STD BSD { int setreuid(int ruid, int euid); }
212127 STD BSD { int setregid(int rgid, int egid); }
213128 STD POSIX { int rename(char *from, char *to); }
214129 COMPAT BSD { int truncate(char *path, long length); }
215130 COMPAT BSD { int ftruncate(int fd, long length); }
216131 STD BSD { int flock(int fd, int how); }
217132 STD POSIX { int mkfifo(char *path, int mode); }
218133 STD BSD { int sendto(int s, caddr_t buf, size_t len, \
219 int flags, caddr_t to, int tolen); }
220134 STD BSD { int shutdown(int s, int how); }
221135 STD BSD { int socketpair(int domain, int type, int protocol, \
222 int *rsv); }
223136 STD POSIX { int mkdir(char *path, int mode); }
224137 STD POSIX { int rmdir(char *path); }
225138 STD BSD { int utimes(char *path, struct timeval *tptr); }
226139 OBSOL NOHIDE 4.2 sigreturn
227140 STD BSD { int adjtime(struct timeval *delta, \
228 struct timeval *olddelta); }
229141 COMPAT BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
230142 COMPAT BSD { long gethostid(void); }
231143 COMPAT BSD { int sethostid(long hostid); }
232144 COMPAT BSD { int getrlimit(u_int which, struct orlimit *rlp); }
233145 COMPAT BSD { int setrlimit(u_int which, struct orlimit *rlp); }
234146 COMPAT BSD { int killpg(int pgid, int signum); }
235147 STD POSIX { int setsid(void); }
236148 STD BSD { int quotactl(char *path, int cmd, int uid, \
237 caddr_t arg); }
238149 COMPAT BSD { int quota(void); }
239150 CPT_NOA BSD { int getsockname(int fdec, caddr_t asa, int *alen); }\
240 getsockname getsockname_args int
241
242; Syscalls 151-180 inclusive are reserved for vendor-specific
243; system calls. (This includes various calls added for compatibity
244; with other Unix variants.)
245; Some of these calls are now supported by BSD...
246151 UNIMPL NOHIDE sem_lock (BSD/OS 2.x)
247152 UNIMPL NOHIDE sem_wakeup (BSD/OS 2.x)
248153 UNIMPL NOHIDE asyncdaemon (BSD/OS 2.x)
249154 UNIMPL NOHIDE nosys
250; 155 is initialized by the NFS code, if present.
251155 NOIMPL BSD { int nfssvc(int flag, caddr_t argp); }
252156 COMPAT BSD { int getdirentries(int fd, char *buf, u_int count, \
253 long *basep); }
254157 STD BSD { int statfs(char *path, struct statfs *buf); }
255158 STD BSD { int fstatfs(int fd, struct statfs *buf); }
256159 UNIMPL NOHIDE nosys
257160 UNIMPL NOHIDE nosys
258; 161 is initialized by the NFS code, if present.
259161 STD BSD { int getfh(char *fname, struct fhandle *fhp); }
260162 STD BSD { int getdomainname(char *domainname, int len); }
261163 STD BSD { int setdomainname(char *domainname, int len); }
262164 STD BSD { int uname(struct utsname *name); }
263165 STD BSD { int sysarch(int op, char *parms); }
264166 STD BSD { int rtprio(int function, pid_t pid, \
265 struct rtprio *rtp); }
266167 UNIMPL NOHIDE nosys
267168 UNIMPL NOHIDE nosys
268169 STD BSD { int semsys(int which, int a2, int a3, int a4, \
269 int a5); }
270; XXX should be { int semsys(int which, ...); }
271170 STD BSD { int msgsys(int which, int a2, int a3, int a4, \
272 int a5, int a6); }
273; XXX should be { int msgsys(int which, ...); }
274171 STD BSD { int shmsys(int which, int a2, int a3, int a4); }
275; XXX should be { int shmsys(int which, ...); }
276172 UNIMPL NOHIDE nosys
277173 STD POSIX { ssize_t pread(int fd, void *buf, size_t nbyte, \
278 int pad, off_t offset); }
279174 STD POSIX { ssize_t pwrite(int fd, const void *buf, \
280 size_t nbyte, int pad, off_t offset); }
281175 UNIMPL NOHIDE nosys
282176 STD BSD { int ntp_adjtime(struct timex *tp); }
283177 UNIMPL NOHIDE sfork (BSD/OS 2.x)
284178 UNIMPL NOHIDE getdescriptor (BSD/OS 2.x)
285179 UNIMPL NOHIDE setdescriptor (BSD/OS 2.x)
286180 UNIMPL NOHIDE nosys
287
288; Syscalls 181-199 are used by/reserved for BSD
289181 STD POSIX { int setgid(gid_t gid); }
290182 STD BSD { int setegid(gid_t egid); }
291183 STD BSD { int seteuid(uid_t euid); }
292184 UNIMPL BSD lfs_bmapv
293185 UNIMPL BSD lfs_markv
294186 UNIMPL BSD lfs_segclean
295187 UNIMPL BSD lfs_segwait
296188 COMPAT_DF12 POSIX { int stat(const char *path, struct dfbsd12_stat *ub); }
297189 COMPAT_DF12 POSIX { int fstat(int fd, struct dfbsd12_stat *sb); }
298190 COMPAT_DF12 POSIX { int lstat(const char *path, struct dfbsd12_stat *ub); }
299191 STD POSIX { int pathconf(char *path, int name); }
300192 STD POSIX { int fpathconf(int fd, int name); }
301193 UNIMPL NOHIDE nosys
302194 STD BSD { int getrlimit(u_int which, \
303 struct rlimit *rlp); } \
304 getrlimit __getrlimit_args int
305195 STD BSD { int setrlimit(u_int which, \
306 struct rlimit *rlp); } \
307 setrlimit __setrlimit_args int
308196 STD BSD { int getdirentries(int fd, char *buf, u_int count, \
309 long *basep); }
310197 STD BSD { caddr_t mmap(caddr_t addr, size_t len, int prot, \
311 int flags, int fd, int pad, off_t pos); }
312198 STD NOHIDE { int nosys(void); } __syscall __syscall_args int
313199 STD POSIX { off_t lseek(int fd, int pad, off_t offset, \
314 int whence); }
315200 STD BSD { int truncate(char *path, int pad, off_t length); }
316201 STD BSD { int ftruncate(int fd, int pad, off_t length); }
317202 STD BSD { int __sysctl(int *name, u_int namelen, void *old, \
318 size_t *oldlenp, void *new, size_t newlen); } \
319 __sysctl sysctl_args int
320; properly, __sysctl should be a NOHIDE, but making an exception
321; here allows to avoid one in libc/sys/Makefile.inc.
322203 STD BSD { int mlock(const void *addr, size_t len); }
323204 STD BSD { int munlock(const void *addr, size_t len); }
324205 STD BSD { int undelete(char *path); }
325206 STD BSD { int futimes(int fd, struct timeval *tptr); }
326207 STD BSD { int getpgid(pid_t pid); }
327208 UNIMPL NOHIDE newreboot (NetBSD)
328209 STD BSD { int poll(struct pollfd *fds, u_int nfds, \
329 int timeout); }
330
331;
332; The following are reserved for loadable syscalls
333;
334; 210 is used by the Checkpoint Module
335210 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
336211 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
337212 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
338213 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
339214 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
340215 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
341216 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
342217 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
343218 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
344219 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
345
346;
347; The following were introduced with NetBSD/4.4Lite-2
348;
349220 STD BSD { int __semctl(int semid, int semnum, int cmd, \
350 union semun *arg); }
351221 STD BSD { int semget(key_t key, int nsems, int semflg); }
352222 STD BSD { int semop(int semid, struct sembuf *sops, \
353 u_int nsops); }
354223 UNIMPL NOHIDE semconfig
355224 STD BSD { int msgctl(int msqid, int cmd, \
356 struct msqid_ds *buf); }
357225 STD BSD { int msgget(key_t key, int msgflg); }
358226 STD BSD { int msgsnd(int msqid, void *msgp, size_t msgsz, \
359 int msgflg); }
360227 STD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \
361 long msgtyp, int msgflg); }
362228 STD BSD { int shmat(int shmid, void *shmaddr, int shmflg); }
363229 STD BSD { int shmctl(int shmid, int cmd, \
364 struct shmid_ds *buf); }
365230 STD BSD { int shmdt(void *shmaddr); }
366231 STD BSD { int shmget(key_t key, int size, int shmflg); }
367;
368232 STD POSIX { int clock_gettime(clockid_t clock_id, \
369 struct timespec *tp); }
370233 STD POSIX { int clock_settime(clockid_t clock_id, \
371 const struct timespec *tp); }
372234 STD POSIX { int clock_getres(clockid_t clock_id, \
373 struct timespec *tp); }
374235 UNIMPL NOHIDE timer_create
375236 UNIMPL NOHIDE timer_delete
376237 UNIMPL NOHIDE timer_settime
377238 UNIMPL NOHIDE timer_gettime
378239 UNIMPL NOHIDE timer_getoverrun
379240 STD POSIX { int nanosleep(const struct timespec *rqtp, \
380 struct timespec *rmtp); }
381241 UNIMPL NOHIDE nosys
382242 UNIMPL NOHIDE nosys
383243 UNIMPL NOHIDE nosys
384244 UNIMPL NOHIDE nosys
385245 UNIMPL NOHIDE nosys
386246 UNIMPL NOHIDE nosys
387247 UNIMPL NOHIDE nosys
388248 UNIMPL NOHIDE nosys
389249 UNIMPL NOHIDE nosys
390; syscall numbers initially used in OpenBSD
391250 STD BSD { int minherit(void *addr, size_t len, int inherit); }
392251 STD BSD { int rfork(int flags); }
393252 STD BSD { int openbsd_poll(struct pollfd *fds, u_int nfds, \
394 int timeout); }
395253 STD BSD { int issetugid(void); }
396254 STD BSD { int lchown(char *path, int uid, int gid); }
397255 UNIMPL NOHIDE nosys
398256 UNIMPL NOHIDE nosys
399257 UNIMPL NOHIDE nosys
400258 UNIMPL NOHIDE nosys
401259 UNIMPL NOHIDE nosys
402260 UNIMPL NOHIDE nosys
403261 UNIMPL NOHIDE nosys
404262 UNIMPL NOHIDE nosys
405263 UNIMPL NOHIDE nosys
406264 UNIMPL NOHIDE nosys
407265 UNIMPL NOHIDE nosys
408266 UNIMPL NOHIDE nosys
409267 UNIMPL NOHIDE nosys
410268 UNIMPL NOHIDE nosys
411269 UNIMPL NOHIDE nosys
412270 UNIMPL NOHIDE nosys
413271 UNIMPL NOHIDE nosys
414272 STD BSD { int getdents(int fd, char *buf, size_t count); }
415273 UNIMPL NOHIDE nosys
416274 STD BSD { int lchmod(char *path, mode_t mode); }
417275 NOPROTO BSD { int lchown(char *path, uid_t uid, gid_t gid); } netbsd_lchown lchown_args int
418276 STD BSD { int lutimes(char *path, struct timeval *tptr); }
419277 NOPROTO BSD { int msync(void *addr, size_t len, int flags); } netbsd_msync msync_args int
420278 OBSOL BSD { int nstat(char *path, struct nstat *ub); }
421279 OBSOL NOHIDE { int nfstat(int fd, struct nstat *sb); }
422280 OBSOL NOHIDE { int nlstat(char *path, struct nstat *ub); }
423281 UNIMPL NOHIDE nosys
424282 UNIMPL NOHIDE nosys
425283 UNIMPL NOHIDE nosys
426284 UNIMPL NOHIDE nosys
427285 UNIMPL NOHIDE nosys
428286 UNIMPL NOHIDE nosys
429287 UNIMPL NOHIDE nosys
430288 UNIMPL NOHIDE nosys
431289 UNIMPL NOHIDE nosys
432290 UNIMPL NOHIDE nosys
433291 UNIMPL NOHIDE nosys
434292 UNIMPL NOHIDE nosys
435293 UNIMPL NOHIDE nosys
436294 UNIMPL NOHIDE nosys
437295 UNIMPL NOHIDE nosys
438296 UNIMPL NOHIDE nosys
439; XXX 297 is 300 in NetBSD
440297 STD BSD { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
441298 STD BSD { int fhopen(const struct fhandle *u_fhp, int flags); }
442299 COMPAT_DF12 POSIX { int fhstat(const struct fhandle *u_fhp, struct dfbsd12_stat *sb); }
443; syscall numbers for FreeBSD
444300 STD BSD { int modnext(int modid); }
445301 STD BSD { int modstat(int modid, struct module_stat* stat); }
446302 STD BSD { int modfnext(int modid); }
447303 STD BSD { int modfind(const char *name); }
448304 STD BSD { int kldload(const char *file); }
449305 STD BSD { int kldunload(int fileid); }
450306 STD BSD { int kldfind(const char *file); }
451307 STD BSD { int kldnext(int fileid); }
452308 STD BSD { int kldstat(int fileid, struct kld_file_stat* stat); }
453309 STD BSD { int kldfirstmod(int fileid); }
454310 STD BSD { int getsid(pid_t pid); }
455311 STD BSD { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
456312 STD BSD { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
457313 OBSOL NOHIDE signanosleep
458314 STD BSD { int aio_return(struct aiocb *aiocbp); }
459315 STD BSD { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
460316 STD BSD { int aio_cancel(int fd, struct aiocb *aiocbp); }
461317 STD BSD { int aio_error(struct aiocb *aiocbp); }
462318 STD BSD { int aio_read(struct aiocb *aiocbp); }
463319 STD BSD { int aio_write(struct aiocb *aiocbp); }
464320 STD BSD { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
465321 STD BSD { int yield(void); }
466322 STD BSD { int thr_sleep(const struct timespec *timeout); }
467323 STD BSD { int thr_wakeup(pid_t pid); }
468324 STD BSD { int mlockall(int how); }
469325 STD BSD { int munlockall(void); }
470326 STD BSD { int __getcwd(u_char *buf, u_int buflen); }
471
472327 STD POSIX { int sched_setparam (pid_t pid, const struct sched_param *param); }
473328 STD POSIX { int sched_getparam (pid_t pid, struct sched_param *param); }
474
475329 STD POSIX { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
476330 STD POSIX { int sched_getscheduler (pid_t pid); }
477
478331 STD POSIX { int sched_yield (void); }
479332 STD POSIX { int sched_get_priority_max (int policy); }
480333 STD POSIX { int sched_get_priority_min (int policy); }
481334 STD POSIX { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
482335 STD BSD { int utrace(const void *addr, size_t len); }
483336 OBSOL NOHIDE freebsd4_sendfile
484337 STD BSD { int kldsym(int fileid, int cmd, void *data); }
485338 STD BSD { int jail(struct jail *jail); }
486339 UNIMPL BSD pioctl
487340 MPSAFE STD POSIX { int sigprocmask(int how, const sigset_t *set, \
488 sigset_t *oset); }
489341 STD POSIX { int sigsuspend(const sigset_t *sigmask); }
490342 STD POSIX { int sigaction(int sig, const struct sigaction *act, \
491 struct sigaction *oact); }
492343 STD POSIX { int sigpending(sigset_t *set); }
493344 STD BSD { int sigreturn(ucontext_t *sigcntxp); }
494345 STD POSIX { int sigtimedwait(const sigset_t *set,\
495 siginfo_t *info, const struct timespec *timeout); }
496346 STD POSIX { int sigwaitinfo(const sigset_t *set,\
497 siginfo_t *info); }
498347 STD BSD { int __acl_get_file(const char *path, \
499 acl_type_t type, struct acl *aclp); }
500348 STD BSD { int __acl_set_file(const char *path, \
501 acl_type_t type, struct acl *aclp); }
502349 STD BSD { int __acl_get_fd(int filedes, acl_type_t type, \
503 struct acl *aclp); }
504350 STD BSD { int __acl_set_fd(int filedes, acl_type_t type, \
505 struct acl *aclp); }
506351 STD BSD { int __acl_delete_file(const char *path, \
507 acl_type_t type); }
508352 STD BSD { int __acl_delete_fd(int filedes, acl_type_t type); }
509353 STD BSD { int __acl_aclcheck_file(const char *path, \
510 acl_type_t type, struct acl *aclp); }
511354 STD BSD { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
512 struct acl *aclp); }
513355 STD BSD { int extattrctl(const char *path, int cmd, \
514 const char *attrname, char *arg); }
515356 STD BSD { int extattr_set_file(const char *path, \
516 const char *attrname, struct iovec *iovp, \
517 unsigned iovcnt); }
518357 STD BSD { int extattr_get_file(const char *path, \
519 const char *attrname, struct iovec *iovp, \
520 unsigned iovcnt); }
521358 STD BSD { int extattr_delete_file(const char *path, \
522 const char *attrname); }
523359 STD BSD { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); }
524360 STD BSD { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
525361 STD BSD { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
526362 STD BSD { int kqueue(void); }
527363 STD BSD { int kevent(int fd, \
528 const struct kevent *changelist, int nchanges, \
529 struct kevent *eventlist, int nevents, \
530 const struct timespec *timeout); }
531364 STD BSD { int sctp_peeloff(int sd, caddr_t name ); }
532; 365-392 used by FreeBSD-current
533365 UNIMPL NOHIDE nosys
534366 UNIMPL NOHIDE nosys
535367 UNIMPL NOHIDE nosys
536368 UNIMPL NOHIDE nosys
537369 UNIMPL NOHIDE nosys
538370 UNIMPL NOHIDE nosys
539371 UNIMPL NOHIDE nosys
540372 UNIMPL NOHIDE nosys
541373 UNIMPL NOHIDE nosys
542374 UNIMPL NOHIDE nosys
543375 UNIMPL NOHIDE nosys
544376 UNIMPL NOHIDE nosys
545377 UNIMPL NOHIDE nosys
546378 UNIMPL NOHIDE nosys
547379 UNIMPL NOHIDE nosys
548380 UNIMPL NOHIDE nosys
549381 UNIMPL NOHIDE nosys
550382 UNIMPL NOHIDE nosys
551383 UNIMPL NOHIDE nosys
552384 UNIMPL NOHIDE nosys
553385 UNIMPL NOHIDE nosys
554386 UNIMPL NOHIDE nosys
555387 UNIMPL NOHIDE nosys
556388 UNIMPL NOHIDE nosys
557389 UNIMPL NOHIDE nosys
558390 UNIMPL NOHIDE nosys
559391 UNIMPL NOHIDE nosys
560392 UNIMPL NOHIDE nosys
561393 STD BSD { int sendfile(int fd, int s, off_t offset, size_t nbytes, \
562 struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
563; 394-439 used by FreeBSD-current
564394 UNIMPL NOHIDE nosys
565395 UNIMPL NOHIDE nosys
566396 UNIMPL NOHIDE nosys
567397 UNIMPL NOHIDE nosys
568398 UNIMPL NOHIDE nosys
569399 UNIMPL NOHIDE nosys
570400 UNIMPL NOHIDE nosys
571401 UNIMPL NOHIDE nosys
572402 UNIMPL NOHIDE nosys
573403 UNIMPL NOHIDE nosys
574404 UNIMPL NOHIDE nosys
575405 UNIMPL NOHIDE nosys
576406 UNIMPL NOHIDE nosys
577407 UNIMPL NOHIDE nosys
578408 UNIMPL NOHIDE nosys
579409 UNIMPL NOHIDE nosys
580410 UNIMPL NOHIDE nosys
581411 UNIMPL NOHIDE nosys
582412 UNIMPL NOHIDE nosys
583413 UNIMPL NOHIDE nosys
584414 UNIMPL NOHIDE nosys
585415 UNIMPL NOHIDE nosys
586416 UNIMPL NOHIDE nosys
587417 UNIMPL NOHIDE nosys
588418 UNIMPL NOHIDE nosys
589419 UNIMPL NOHIDE nosys
590420 UNIMPL NOHIDE nosys
591421 UNIMPL NOHIDE nosys
592422 UNIMPL NOHIDE nosys
593423 UNIMPL NOHIDE nosys
594424 UNIMPL NOHIDE nosys
595425 UNIMPL NOHIDE nosys
596426 UNIMPL NOHIDE nosys
597427 UNIMPL NOHIDE nosys
598428 UNIMPL NOHIDE nosys
599429 UNIMPL NOHIDE nosys
600430 UNIMPL NOHIDE nosys
601431 UNIMPL NOHIDE nosys
602432 UNIMPL NOHIDE nosys
603433 UNIMPL NOHIDE nosys
604434 UNIMPL NOHIDE nosys
605435 UNIMPL NOHIDE nosys
606436 UNIMPL NOHIDE nosys
607437 UNIMPL NOHIDE nosys
608438 UNIMPL NOHIDE nosys
609439 UNIMPL NOHIDE nosys
610; 440-449 reserved for FreeBSD-5.x growth
611440 UNIMPL NOHIDE nosys
612441 UNIMPL NOHIDE nosys
613442 UNIMPL NOHIDE nosys
614443 UNIMPL NOHIDE nosys
615444 UNIMPL NOHIDE nosys
616445 UNIMPL NOHIDE nosys
617446 UNIMPL NOHIDE nosys
618447 UNIMPL NOHIDE nosys
619448 UNIMPL NOHIDE nosys
620449 UNIMPL NOHIDE nosys
621; 450 DragonFly system calls
622450 STD BSD { int varsym_set(int level, const char *name, const char *data); }
623451 STD BSD { int varsym_get(int mask, const char *wild, char *buf, int bufsize); }
624452 STD BSD { int varsym_list(int level, char *buf, int maxsize, int *marker); }
625453 STD BSD { int upc_register(struct upcall *upc, void *ctxfunc, void *func, void *data); }
626454 STD BSD { int upc_control(int cmd, int upcid, void *data); }
627455 STD BSD { int caps_sys_service(const char *name, uid_t uid, gid_t gid, int upcid, int flags); }
628456 STD BSD { int caps_sys_client(const char *name, uid_t uid, gid_t gid, int upcid, int flags); }
629457 STD BSD { int caps_sys_close(int portid); }
630458 STD BSD { off_t caps_sys_put(int portid, void *msg, int msgsize); }
631459 STD BSD { int caps_sys_reply(int portid, void *msg, int msgsize, off_t msgcid); }
632460 STD BSD { int caps_sys_get(int portid, void *msg, int maxsize, struct caps_msgid *msgid, struct caps_cred *ccr); }
633461 STD BSD { int caps_sys_wait(int portid, void *msg, int maxsize, struct caps_msgid *msgid, struct caps_cred *ccr); }
634462 STD BSD { int caps_sys_abort(int portid, off_t msgcid, int flags); }
635463 STD BSD { off_t caps_sys_getgen(int portid); }
636464 STD BSD { int caps_sys_setgen(int portid, off_t gen); }
637465 STD BSD { int exec_sys_register(void *entry); }
638466 STD BSD { int exec_sys_unregister(int id); }
639467 STD BSD { int sys_checkpoint(int type, int fd, pid_t pid, int retval); }
640468 STD BSD { int mountctl(const char *path, int op, int fd, const void *ctl, int ctllen, void *buf, int buflen); }
641469 STD BSD { int umtx_sleep(volatile const int *ptr, int value, int timeout); }
642470 STD BSD { int umtx_wakeup(volatile const int *ptr, int count); }
643471 STD BSD { int jail_attach(int jid); }
644472 STD BSD { int sys_set_tls_area(int which, struct tls_info *info, size_t infosize); }
645473 STD BSD { int sys_get_tls_area(int which, struct tls_info *info, size_t infosize); }
646474 STD BSD { int closefrom(int fd); }
647475 STD POSIX { int stat(const char *path, struct stat *ub); }
648476 STD POSIX { int fstat(int fd, struct stat *sb); }
649477 STD POSIX { int lstat(const char *path, struct stat *ub); }
650478 STD BSD { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }