syscalls.master revision 1.27
11.27Stv $NetBSD: syscalls.master,v 1.27 2000/05/23 16:05:51 tv Exp $ 21.1Smycroft 31.1Smycroft; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 41.1Smycroft 51.1Smycroft; NetBSD COMPAT_FREEBSD system call name/number "master" file. 61.1Smycroft; (See syscalls.conf to see what it is processed into.) 71.1Smycroft; 81.1Smycroft; Fields: number type [type-dependent ...] 91.1Smycroft; number system call number, must be in order 101.1Smycroft; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 111.1Smycroft; the compatibility options defined in syscalls.conf. 121.1Smycroft; 131.1Smycroft; types: 141.1Smycroft; STD always included 151.1Smycroft; OBSOL obsolete, not included in system 161.1Smycroft; UNIMPL unimplemented, not included in system 171.1Smycroft; NODEF included, but don't define the syscall number 181.1Smycroft; NOARGS included, but don't define the syscall args structure 191.1Smycroft; 201.1Smycroft; The compat options are defined in the syscalls.conf file, and the 211.1Smycroft; compat option name is prefixed to the syscall name. Other than 221.1Smycroft; that, they're like NODEF (for 'compat' options), or STD (for 231.1Smycroft; 'libcompat' options). 241.1Smycroft; 251.1Smycroft; The type-dependent arguments are as follows: 261.1Smycroft; For STD, NODEF, NOARGS, and compat syscalls: 271.1Smycroft; { pseudo-proto } [alias] 281.1Smycroft; For other syscalls: 291.1Smycroft; [comment] 301.1Smycroft; 311.1Smycroft; #ifdef's, etc. may be included, and are copied to the output files. 321.15Sthorpej; #include's are copied to the syscall names and switch definition files only. 331.17Sthorpej 341.17Sthorpej#include "opt_ktrace.h" 351.18Sthorpej#include "opt_nfsserver.h" 361.20Stron#include "opt_sysv.h" 371.21Schristos#include "opt_compat_43.h" 381.15Sthorpej 391.15Sthorpej#include "fs_lfs.h" 401.15Sthorpej#include "fs_nfs.h" 411.1Smycroft 421.1Smycroft#include <sys/param.h> 431.1Smycroft#include <sys/systm.h> 441.1Smycroft#include <sys/signal.h> 451.1Smycroft#include <sys/mount.h> 461.1Smycroft#include <sys/syscallargs.h> 471.1Smycroft 481.1Smycroft#include <compat/freebsd/freebsd_syscallargs.h> 491.1Smycroft 501.1Smycroft#include <machine/freebsd_machdep.h> 511.1Smycroft 521.1Smycroft; Reserved/unimplemented system calls in the range 0-150 inclusive 531.1Smycroft; are reserved for use in future Berkeley releases. 541.1Smycroft; Additional system calls implemented in vendor and other 551.1Smycroft; redistributions should be placed in the reserved range at the end 561.1Smycroft; of the current calls. 571.1Smycroft 581.1Smycroft0 NOARGS { int sys_nosys(void); } syscall 591.1Smycroft1 NOARGS { int sys_exit(int rval); } 601.1Smycroft2 NOARGS { int sys_fork(void); } 611.1Smycroft3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 621.1Smycroft4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 631.22Schristos5 STD { int freebsd_sys_open(const char *path, int flags, \ 641.1Smycroft int mode); } 651.1Smycroft6 NOARGS { int sys_close(int fd); } 661.1Smycroft7 NOARGS { int sys_wait4(int pid, int *status, int options, \ 671.1Smycroft struct rusage *rusage); } 681.22Schristos8 STD { int compat_43_freebsd_sys_creat(const char *path, \ 691.1Smycroft int mode); } ocreat 701.22Schristos9 STD { int freebsd_sys_link(const char *path, \ 711.22Schristos const char *link); } 721.22Schristos10 STD { int freebsd_sys_unlink(const char *path); } 731.1Smycroft11 OBSOL execv 741.22Schristos12 STD { int freebsd_sys_chdir(const char *path); } 751.1Smycroft13 NOARGS { int sys_fchdir(int fd); } 761.22Schristos14 STD { int freebsd_sys_mknod(const char *path, int mode, \ 771.1Smycroft int dev); } 781.22Schristos15 STD { int freebsd_sys_chmod(const char *path, int mode); } 791.22Schristos16 STD { int freebsd_sys_chown(const char *path, int uid, \ 801.22Schristos int gid); } 811.1Smycroft17 NOARGS { int sys_obreak(char *nsize); } break 821.1Smycroft18 NOARGS { int sys_getfsstat(struct statfs *buf, long bufsize, \ 831.1Smycroft int flags); } 841.1Smycroft19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \ 851.1Smycroft int whence); } olseek 861.1Smycroft20 NOARGS { pid_t sys_getpid(void); } 871.22Schristos21 STD { int freebsd_sys_mount(int type, const char *path, \ 881.1Smycroft int flags, caddr_t data); } 891.22Schristos22 STD { int freebsd_sys_unmount(const char *path, \ 901.22Schristos int flags); } 911.1Smycroft23 NOARGS { int sys_setuid(uid_t uid); } 921.1Smycroft24 NOARGS { uid_t sys_getuid(void); } 931.1Smycroft25 NOARGS { uid_t sys_geteuid(void); } 941.1Smycroft26 STD { int freebsd_sys_ptrace(int req, pid_t pid, \ 951.1Smycroft caddr_t addr, int data); } 961.1Smycroft27 NOARGS { int sys_recvmsg(int s, struct msghdr *msg, \ 971.1Smycroft int flags); } 981.1Smycroft28 NOARGS { int sys_sendmsg(int s, caddr_t msg, int flags); } 991.1Smycroft29 NOARGS { int sys_recvfrom(int s, caddr_t buf, size_t len, \ 1001.1Smycroft int flags, caddr_t from, int *fromlenaddr); } 1011.1Smycroft30 NOARGS { int sys_accept(int s, caddr_t name, int *anamelen); } 1021.1Smycroft31 NOARGS { int sys_getpeername(int fdes, caddr_t asa, \ 1031.1Smycroft int *alen); } 1041.1Smycroft32 NOARGS { int sys_getsockname(int fdes, caddr_t asa, \ 1051.1Smycroft int *alen); } 1061.22Schristos33 STD { int freebsd_sys_access(const char *path, int flags); } 1071.22Schristos34 STD { int freebsd_sys_chflags(const char *path, \ 1081.22Schristos int flags); } 1091.1Smycroft35 NOARGS { int sys_fchflags(int fd, int flags); } 1101.1Smycroft36 NOARGS { int sys_sync(void); } 1111.1Smycroft37 NOARGS { int sys_kill(int pid, int signum); } 1121.22Schristos38 STD { int compat_43_freebsd_sys_stat(const char *path, \ 1131.11Schristos struct stat43 *ub); } stat43 1141.3Smycroft39 NOARGS { pid_t sys_getppid(void); } 1151.22Schristos40 STD { int compat_43_freebsd_sys_lstat(const char *path, \ 1161.11Schristos struct stat43 *ub); } lstat43 1171.1Smycroft41 NOARGS { int sys_dup(u_int fd); } 1181.1Smycroft42 NOARGS { int sys_pipe(void); } 1191.1Smycroft43 NOARGS { gid_t sys_getegid(void); } 1201.1Smycroft44 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 1211.1Smycroft u_int offset, u_int scale); } 1221.1Smycroft#ifdef KTRACE 1231.1Smycroft45 NOARGS { int sys_ktrace(char *fname, int ops, int facs, \ 1241.1Smycroft int pid); } 1251.1Smycroft#else 1261.1Smycroft45 UNIMPL ktrace 1271.1Smycroft#endif 1281.19Smycroft46 NOARGS { int compat_13_sys_sigaction(int signum, \ 1291.19Smycroft const struct sigaction13 *nsa, \ 1301.19Smycroft struct sigaction13 *osa); } 1311.1Smycroft47 NOARGS { gid_t sys_getgid(void); } 1321.19Smycroft48 NOARGS { int compat_13_sys_sigprocmask(int how, \ 1331.19Smycroft int mask); } 1341.5Schristos49 NOARGS { int sys___getlogin(char *namebuf, u_int namelen); } 1351.1Smycroft50 NOARGS { int sys_setlogin(char *namebuf); } 1361.1Smycroft51 NOARGS { int sys_acct(char *path); } 1371.19Smycroft52 NOARGS { int compat_13_sys_sigpending(void); } 1381.13Sveego53 NOARGS { int compat_13_sys_sigaltstack( \ 1391.13Sveego const struct sigaltstack13 *nss, \ 1401.13Sveego struct sigaltstack13 *oss); } 1411.1Smycroft54 STD { int freebsd_sys_ioctl(int fd, u_long com, \ 1421.1Smycroft caddr_t data); } 1431.22Schristos55 NOARGS { int sys_reboot(int opt); } oreboot 1441.22Schristos56 STD { int freebsd_sys_revoke(const char *path); } 1451.22Schristos57 STD { int freebsd_sys_symlink(const char *path, \ 1461.22Schristos const char *link); } 1471.22Schristos58 STD { int freebsd_sys_readlink(const char *path, \ 1481.22Schristos char *buf, int count); } 1491.22Schristos59 STD { int freebsd_sys_execve(const char *path, \ 1501.22Schristos char **argp, char **envp); } 1511.1Smycroft60 NOARGS { int sys_umask(int newmask); } 1521.22Schristos61 STD { int freebsd_sys_chroot(const char *path); } 1531.11Schristos62 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } \ 1541.11Schristos fstat43 1551.1Smycroft63 NOARGS { int compat_43_sys_getkerninfo(int op, char *where, \ 1561.1Smycroft int *size, int arg); } ogetkerninfo 1571.1Smycroft64 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize 1581.1Smycroft65 STD { int freebsd_sys_msync(caddr_t addr, size_t len, \ 1591.1Smycroft int flags); } 1601.1Smycroft66 NOARGS { int sys_vfork(void); } 1611.1Smycroft67 OBSOL vread 1621.1Smycroft68 OBSOL vwrite 1631.24Skleink69 NOARGS { int sys_sbrk(intptr_t incr); } 1641.1Smycroft70 NOARGS { int sys_sstk(int incr); } 1651.1Smycroft71 NOARGS { int compat_43_sys_mmap(caddr_t addr, size_t len, \ 1661.1Smycroft int prot, int flags, int fd, long pos); } ommap 1671.1Smycroft72 NOARGS { int sys_ovadvise(int anom); } vadvise 1681.1Smycroft73 NOARGS { int sys_munmap(caddr_t addr, size_t len); } 1691.1Smycroft74 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \ 1701.1Smycroft int prot); } 1711.1Smycroft75 NOARGS { int sys_madvise(caddr_t addr, size_t len, \ 1721.1Smycroft int behav); } 1731.1Smycroft76 OBSOL vhangup 1741.1Smycroft77 OBSOL vlimit 1751.1Smycroft78 NOARGS { int sys_mincore(caddr_t addr, size_t len, char *vec); } 1761.1Smycroft79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 1771.1Smycroft80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 1781.1Smycroft81 NOARGS { int sys_getpgrp(void); } 1791.1Smycroft82 NOARGS { int sys_setpgid(int pid, int pgid); } 1801.1Smycroft83 NOARGS { int sys_setitimer(u_int which, \ 1811.1Smycroft struct itimerval *itv, struct itimerval *oitv); } 1821.1Smycroft84 NOARGS { int compat_43_sys_wait(void); } owait 1831.7Sthorpej85 NOARGS { int compat_12_sys_swapon(char *name); } 1841.1Smycroft86 NOARGS { int sys_getitimer(u_int which, \ 1851.1Smycroft struct itimerval *itv); } 1861.1Smycroft87 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 1871.1Smycroft u_int len); } ogethostname 1881.1Smycroft88 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 1891.1Smycroft u_int len); } osethostname 1901.1Smycroft89 NOARGS { int compat_43_sys_getdtablesize(void); } \ 1911.1Smycroft ogetdtablesize 1921.1Smycroft90 NOARGS { int sys_dup2(u_int from, u_int to); } 1931.1Smycroft91 UNIMPL getdopt 1941.1Smycroft92 NOARGS { int sys_fcntl(int fd, int cmd, void *arg); } 1951.1Smycroft93 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 1961.1Smycroft fd_set *ex, struct timeval *tv); } 1971.1Smycroft94 UNIMPL setdopt 1981.1Smycroft95 NOARGS { int sys_fsync(int fd); } 1991.1Smycroft96 NOARGS { int sys_setpriority(int which, int who, int prio); } 2001.1Smycroft97 NOARGS { int sys_socket(int domain, int type, int protocol); } 2011.1Smycroft98 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 2021.1Smycroft99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 2031.1Smycroft int *anamelen); } oaccept 2041.1Smycroft100 NOARGS { int sys_getpriority(int which, int who); } 2051.1Smycroft101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 2061.1Smycroft int flags); } osend 2071.1Smycroft102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 2081.1Smycroft int flags); } orecv 2091.1Smycroft103 STD { int freebsd_sys_sigreturn( \ 2101.1Smycroft struct freebsd_sigcontext *scp); } 2111.1Smycroft104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 2121.1Smycroft105 NOARGS { int sys_setsockopt(int s, int level, int name, \ 2131.1Smycroft caddr_t val, int valsize); } 2141.1Smycroft106 NOARGS { int sys_listen(int s, int backlog); } 2151.1Smycroft107 OBSOL vtimes 2161.1Smycroft108 NOARGS { int compat_43_sys_sigvec(int signum, \ 2171.1Smycroft struct sigvec *nsv, struct sigvec *osv); } osigvec 2181.1Smycroft109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock 2191.1Smycroft110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask 2201.19Smycroft111 NOARGS { int compat_13_sys_sigsuspend(int mask); } 2211.1Smycroft112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 2221.1Smycroft struct sigstack *oss); } osigstack 2231.1Smycroft113 NOARGS { int compat_43_sys_recvmsg(int s, \ 2241.1Smycroft struct omsghdr *msg, int flags); } orecvmsg 2251.1Smycroft114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 2261.1Smycroft int flags); } osendmsg 2271.1Smycroft#ifdef TRACE 2281.1Smycroft115 NOARGS { int sys_vtrace(int request, int value); } 2291.1Smycroft#else 2301.1Smycroft115 OBSOL vtrace 2311.1Smycroft#endif 2321.1Smycroft116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 2331.1Smycroft struct timezone *tzp); } 2341.1Smycroft117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 2351.1Smycroft118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 2361.1Smycroft caddr_t val, int *avalsize); } 2371.1Smycroft119 OBSOL resuba 2381.1Smycroft120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 2391.1Smycroft u_int iovcnt); } 2401.1Smycroft121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 2411.1Smycroft u_int iovcnt); } 2421.1Smycroft122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 2431.1Smycroft struct timezone *tzp); } 2441.1Smycroft123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 2451.1Smycroft124 NOARGS { int sys_fchmod(int fd, int mode); } 2461.1Smycroft125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 2471.1Smycroft size_t len, int flags, caddr_t from, \ 2481.1Smycroft int *fromlenaddr); } orecvfrom 2491.4Smycroft126 NOARGS { int sys_setreuid(int ruid, int euid); } 2501.4Smycroft127 NOARGS { int sys_setregid(int rgid, int egid); } 2511.22Schristos128 STD { int freebsd_sys_rename(const char *from, \ 2521.22Schristos const char *to); } 2531.22Schristos129 STD { int compat_43_freebsd_sys_truncate(const char *path, \ 2541.1Smycroft long length); } otruncate 2551.2Smycroft130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } \ 2561.2Smycroft oftruncate 2571.2Smycroft131 NOARGS { int sys_flock(int fd, int how); } 2581.22Schristos132 STD { int freebsd_sys_mkfifo(const char *path, int mode); } 2591.1Smycroft133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 2601.1Smycroft int flags, caddr_t to, int tolen); } 2611.1Smycroft134 NOARGS { int sys_shutdown(int s, int how); } 2621.1Smycroft135 NOARGS { int sys_socketpair(int domain, int type, \ 2631.1Smycroft int protocol, int *rsv); } 2641.22Schristos136 STD { int freebsd_sys_mkdir(const char *path, int mode); } 2651.22Schristos137 STD { int freebsd_sys_rmdir(const char *path); } 2661.1Smycroft138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 2671.1Smycroft139 OBSOL 4.2 sigreturn 2681.1Smycroft140 NOARGS { int sys_adjtime(struct timeval *delta, \ 2691.1Smycroft struct timeval *olddelta); } 2701.1Smycroft141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 2711.1Smycroft int *alen); } ogetpeername 2721.1Smycroft142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid 2731.1Smycroft143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } \ 2741.1Smycroft osethostid 2751.1Smycroft144 NOARGS { int compat_43_sys_getrlimit(u_int which, \ 2761.10Smycroft struct orlimit *rlp); } ogetrlimit 2771.1Smycroft145 NOARGS { int compat_43_sys_setrlimit(u_int which, \ 2781.10Smycroft struct orlimit *rlp); } osetrlimit 2791.1Smycroft146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \ 2801.1Smycroft okillpg 2811.1Smycroft147 NOARGS { int sys_setsid(void); } 2821.1Smycroft148 NOARGS { int sys_quotactl(char *path, int cmd, int uid, \ 2831.1Smycroft caddr_t arg); } 2841.1Smycroft149 NOARGS { int compat_43_sys_quota(void); } oquota 2851.1Smycroft150 NOARGS { int compat_43_sys_getsockname(int fdec, caddr_t asa, \ 2861.1Smycroft int *alen); } ogetsockname 2871.1Smycroft 2881.1Smycroft; Syscalls 151-180 inclusive are reserved for vendor-specific 2891.1Smycroft; system calls. (This includes various calls added for compatibity 2901.1Smycroft; with other Unix variants.) 2911.1Smycroft; Some of these calls are now supported by BSD... 2921.27Stv151 UNIMPL sem_lock 2931.27Stv152 UNIMPL sem_wakeup 2941.27Stv153 UNIMPL asyncdaemon 2951.1Smycroft154 UNIMPL 2961.6Sthorpej#if defined(NFS) || defined(NFSSERVER) 2971.1Smycroft155 NOARGS { int sys_nfssvc(int flag, caddr_t argp); } 2981.1Smycroft#else 2991.27Stv155 UNIMPL nfssvc 3001.1Smycroft#endif 3011.1Smycroft156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \ 3021.1Smycroft u_int count, long *basep); } ogetdirentries 3031.22Schristos157 STD { int freebsd_sys_statfs(const char *path, \ 3041.1Smycroft struct statfs *buf); } 3051.1Smycroft158 NOARGS { int sys_fstatfs(int fd, struct statfs *buf); } 3061.1Smycroft159 UNIMPL 3071.1Smycroft160 UNIMPL 3081.6Sthorpej#ifdef NFS 3091.22Schristos161 STD { int freebsd_sys_getfh(const char *fname, \ 3101.22Schristos fhandle_t *fhp); } 3111.1Smycroft#else 3121.1Smycroft161 UNIMPL getfh 3131.1Smycroft#endif 3141.1Smycroft162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 3151.1Smycroft int len); } 3161.1Smycroft163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 3171.1Smycroft int len); } 3181.1Smycroft164 NOARGS { int compat_09_sys_uname(struct outsname *name); } 3191.1Smycroft165 NOARGS { int sys_sysarch(int op, char *parms); } 3201.1Smycroft166 STD { int freebsd_sys_rtprio(int function, pid_t pid, \ 3211.1Smycroft struct freebsd_rtprio *rtp); } 3221.1Smycroft167 UNIMPL 3231.1Smycroft168 UNIMPL 3241.1Smycroft; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3251.1Smycroft#if defined(SYSVSEM) && !defined(alpha) 3261.14Smycroft169 STD { int freebsd_sys_semsys(int which, int a2, int a3, \ 3271.1Smycroft int a4, int a5); } 3281.1Smycroft#else 3291.1Smycroft169 UNIMPL 1.0 semsys 3301.1Smycroft#endif 3311.1Smycroft; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3321.1Smycroft#if defined(SYSVMSG) && !defined(alpha) 3331.14Smycroft170 STD { int freebsd_sys_msgsys(int which, int a2, int a3, \ 3341.1Smycroft int a4, int a5, int a6); } 3351.1Smycroft#else 3361.1Smycroft170 UNIMPL 1.0 msgsys 3371.1Smycroft#endif 3381.1Smycroft; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3391.1Smycroft#if defined(SYSVSHM) && !defined(alpha) 3401.14Smycroft171 STD { int freebsd_sys_shmsys(int which, int a2, int a3, \ 3411.1Smycroft int a4); } 3421.1Smycroft#else 3431.1Smycroft171 UNIMPL 1.0 shmsys 3441.1Smycroft#endif 3451.1Smycroft172 UNIMPL 3461.27Stv173 NOARGS { ssize_t sys_pread(int fd, void *buf, \ 3471.27Stv size_t nbyte, int pad, off_t offset); } 3481.27Stv174 NOARGS { ssize_t sys_pwrite(int fd, const void *buf, \ 3491.27Stv size_t nbyte, int pad, off_t offset); } 3501.1Smycroft175 UNIMPL 3511.1Smycroft176 STD { int freebsd_ntp_adjtime(struct freebsd_timex *tp); } 3521.27Stv177 UNIMPL sfork 3531.27Stv178 UNIMPL getdescriptor 3541.27Stv179 UNIMPL setdescriptor 3551.1Smycroft180 UNIMPL 3561.1Smycroft 3571.1Smycroft; Syscalls 180-199 are used by/reserved for BSD 3581.1Smycroft181 NOARGS { int sys_setgid(gid_t gid); } 3591.1Smycroft182 NOARGS { int sys_setegid(gid_t egid); } 3601.1Smycroft183 NOARGS { int sys_seteuid(uid_t euid); } 3611.1Smycroft#ifdef LFS 3621.23Sdrochner184 NOARGS { int sys_lfs_bmapv(fsid_t *fsidp, \ 3631.1Smycroft struct block_info *blkiov, int blkcnt); } 3641.23Sdrochner185 NOARGS { int sys_lfs_markv(fsid_t *fsidp, \ 3651.1Smycroft struct block_info *blkiov, int blkcnt); } 3661.23Sdrochner186 NOARGS { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 3671.23Sdrochner187 NOARGS { int sys_lfs_segwait(fsid_t *fsidp, struct timeval *tv); } 3681.1Smycroft#else 3691.1Smycroft184 UNIMPL 3701.1Smycroft185 UNIMPL 3711.1Smycroft186 UNIMPL 3721.1Smycroft187 UNIMPL 3731.1Smycroft#endif 3741.22Schristos188 STD { int freebsd_sys_stat(const char *path, \ 3751.12Schristos struct stat12 *ub); } 3761.12Schristos189 NOARGS { int compat_12_sys_fstat(int fd, \ 3771.12Schristos struct stat12 *sb); } 3781.22Schristos190 STD { int freebsd_sys_lstat(const char *path, \ 3791.12Schristos struct stat12 *ub); } 3801.22Schristos191 STD { int freebsd_sys_pathconf(const char *path, \ 3811.22Schristos int name); } 3821.1Smycroft192 NOARGS { int sys_fpathconf(int fd, int name); } 3831.1Smycroft193 UNIMPL 3841.1Smycroft194 NOARGS { int sys_getrlimit(u_int which, struct rlimit *rlp); } 3851.1Smycroft195 NOARGS { int sys_setrlimit(u_int which, struct rlimit *rlp); } 3861.8Sfvdl196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ 3871.1Smycroft u_int count, long *basep); } 3881.1Smycroft197 NOARGS { caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \ 3891.1Smycroft int flags, int fd, long pad, off_t pos); } 3901.1Smycroft198 NOARGS { int sys_nosys(void); } __syscall 3911.1Smycroft199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \ 3921.1Smycroft int whence); } 3931.22Schristos200 STD { int freebsd_sys_truncate(const char *path, int pad, \ 3941.1Smycroft off_t length); } 3951.1Smycroft201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); } 3961.1Smycroft202 NOARGS { int sys___sysctl(int *name, u_int namelen, \ 3971.1Smycroft void *old, size_t *oldlenp, void *new, \ 3981.1Smycroft size_t newlen); } 3991.1Smycroft203 NOARGS { int sys_mlock(caddr_t addr, size_t len); } 4001.1Smycroft204 NOARGS { int sys_munlock(caddr_t addr, size_t len); } 4011.1Smycroft#ifdef FREEBSD_BASED_ON_44LITE_R2 4021.1Smycroft205 STD { int freebsd_sys_undelete(char *path); } 4031.1Smycroft#else 4041.27Stv205 UNIMPL undelete 4051.1Smycroft#endif 4061.22Schristos206 NOARGS { int sys_futimes(int fd, const struct timeval *tptr); } 4071.22Schristos207 NOARGS { pid_t sys_getpgid(pid_t pid); } 4081.22Schristos#if 0 4091.22Schristos208 NOARGS { int sys_reboot(int opt, char *bootstr); } 4101.22Schristos#else 4111.22Schristos208 UNIMPL newreboot 4121.22Schristos#endif 4131.22Schristos209 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ 4141.22Schristos int timeout); } 4151.1Smycroft; 4161.1Smycroft; Syscalls 210-219 are reserved for dynamically loaded syscalls 4171.1Smycroft; 4181.1Smycroft210 UNIMPL 4191.1Smycroft211 UNIMPL 4201.1Smycroft212 UNIMPL 4211.1Smycroft213 UNIMPL 4221.1Smycroft214 UNIMPL 4231.1Smycroft215 UNIMPL 4241.1Smycroft216 UNIMPL 4251.1Smycroft217 UNIMPL 4261.1Smycroft218 UNIMPL 4271.1Smycroft219 UNIMPL 4281.9Senami; 4291.9Senami; Syscalls 220-239 are reserved for syscalls imported from NetBSD 4301.9Senami; 4311.22Schristos#ifdef SYSVSEM 4321.25Sthorpej220 NOARGS { int compat_14_sys___semctl(int semid, int semnum, \ 4331.25Sthorpej int cmd, union __semun *arg); } 4341.22Schristos221 NOARGS { int sys_semget(key_t key, int nsems, int semflg); } 4351.22Schristos222 NOARGS { int sys_semop(int semid, struct sembuf *sops, \ 4361.22Schristos u_int nsops); } 4371.22Schristos223 NOARGS { int sys_semconfig(int flag); } 4381.22Schristos#else 4391.22Schristos220 UNIMPL semctl 4401.22Schristos221 UNIMPL semget 4411.22Schristos222 UNIMPL semop 4421.22Schristos223 UNIMPL semconfig 4431.22Schristos#endif 4441.22Schristos#ifdef SYSVMSG 4451.25Sthorpej224 NOARGS { int compat_14_sys_msgctl(int msqid, int cmd, \ 4461.25Sthorpej struct msqid14_ds *buf); } 4471.22Schristos225 NOARGS { int sys_msgget(key_t key, int msgflg); } 4481.22Schristos226 NOARGS { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \ 4491.22Schristos int msgflg); } 4501.22Schristos227 NOARGS { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ 4511.22Schristos long msgtyp, int msgflg); } 4521.22Schristos#else 4531.22Schristos224 UNIMPL msgctl 4541.22Schristos225 UNIMPL msgget 4551.22Schristos226 UNIMPL msgsnd 4561.22Schristos227 UNIMPL msgrcv 4571.22Schristos#endif 4581.22Schristos#ifdef SYSVSHM 4591.22Schristos228 NOARGS { int sys_shmat(int shmid, void *shmaddr, int shmflg); } 4601.25Sthorpej229 NOARGS { int compat_14_sys_shmctl(int shmid, int cmd, \ 4611.25Sthorpej struct shmid_ds14 *buf); } 4621.22Schristos230 NOARGS { int sys_shmdt(void *shmaddr); } 4631.22Schristos231 NOARGS { int sys_shmget(key_t key, int size, int shmflg); } 4641.22Schristos#else 4651.22Schristos228 UNIMPL shmat 4661.22Schristos229 UNIMPL shmctl 4671.22Schristos230 UNIMPL shmdt 4681.22Schristos231 UNIMPL shmget 4691.22Schristos#endif 4701.22Schristos; 4711.22Schristos; XXXX 4721.22Schristos232 NOARGS { int sys_clock_gettime(clockid_t clock_id, \ 4731.22Schristos struct timespec *tp); } 4741.22Schristos233 NOARGS { int sys_clock_settime(clockid_t clock_id, \ 4751.22Schristos const struct timespec *tp); } 4761.22Schristos234 NOARGS { int sys_clock_getres(clockid_t clock_id, \ 4771.22Schristos struct timespec *tp); } 4781.22Schristos235 UNIMPL timer_create 4791.22Schristos236 UNIMPL timer_delete 4801.22Schristos237 UNIMPL timer_settime 4811.22Schristos238 UNIMPL timer_gettime 4821.22Schristos239 UNIMPL timer_getoverrun 4831.22Schristos240 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \ 4841.22Schristos struct timespec *rmtp); } 4851.9Senami241 UNIMPL 4861.9Senami242 UNIMPL 4871.9Senami243 UNIMPL 4881.9Senami244 UNIMPL 4891.9Senami245 UNIMPL 4901.9Senami246 UNIMPL 4911.9Senami247 UNIMPL 4921.9Senami248 UNIMPL 4931.9Senami249 UNIMPL 4941.22Schristos; syscall numbers initially used in OpenBSD 4951.22Schristos250 UNIMPL minherit 4961.22Schristos251 UNIMPL rfork 4971.22Schristos252 UNIMPL openbsd_poll 4981.26Sminoura253 NOARGS { int sys_issetugid(void); } 4991.22Schristos254 STD { int freebsd_sys_lchown(const char *path, int uid, \ 5001.9Senami int gid); } 5011.22Schristos255 UNIMPL 5021.22Schristos256 UNIMPL 5031.22Schristos257 UNIMPL 5041.22Schristos258 UNIMPL 5051.22Schristos259 UNIMPL 5061.22Schristos260 UNIMPL 5071.22Schristos261 UNIMPL 5081.22Schristos262 UNIMPL 5091.22Schristos263 UNIMPL 5101.22Schristos264 UNIMPL 5111.22Schristos265 UNIMPL 5121.22Schristos266 UNIMPL 5131.22Schristos267 UNIMPL 5141.22Schristos268 UNIMPL 5151.22Schristos269 UNIMPL 5161.22Schristos270 UNIMPL 5171.22Schristos271 UNIMPL 5181.22Schristos272 NOARGS { int sys_getdents(int fd, char *buf, size_t count); } 5191.22Schristos273 UNIMPL 5201.22Schristos274 NOARGS { int sys_lchmod(const char *path, mode_t mode); } 5211.22Schristos275 NOARGS { int sys_lchown(const char *path, uid_t uid, \ 5221.22Schristos gid_t gid); } netbsd_lchown 5231.22Schristos276 NOARGS { int sys_lutimes(const char *path, \ 5241.22Schristos const struct timeval *tptr); } 5251.22Schristos277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); } 5261.22Schristos278 NOARGS { int sys___stat13(const char *path, struct stat *ub); } 5271.22Schristos279 NOARGS { int sys___fstat13(int fd, struct stat *sb); } 5281.22Schristos280 NOARGS { int sys___lstat13(const char *path, struct stat *ub);} 5291.22Schristos281 UNIMPL 5301.22Schristos282 UNIMPL 5311.22Schristos283 UNIMPL 5321.22Schristos284 UNIMPL 5331.22Schristos285 UNIMPL 5341.22Schristos286 UNIMPL 5351.22Schristos287 UNIMPL 5361.22Schristos288 UNIMPL 5371.22Schristos289 UNIMPL 5381.22Schristos290 UNIMPL 5391.22Schristos291 UNIMPL 5401.22Schristos292 UNIMPL 5411.22Schristos293 UNIMPL 5421.22Schristos294 UNIMPL 5431.22Schristos295 UNIMPL 5441.22Schristos296 UNIMPL 5451.27Stv297 UNIMPL fhstatfs 5461.27Stv298 UNIMPL fhopen 5471.27Stv299 UNIMPL fhstat 5481.22Schristos; syscall numbers for FreeBSD 5491.22Schristos300 UNIMPL modnext 5501.22Schristos301 UNIMPL modstat 5511.22Schristos302 UNIMPL modfnext 5521.22Schristos303 UNIMPL modfind 5531.22Schristos304 UNIMPL kldload 5541.22Schristos305 UNIMPL kldunload 5551.22Schristos306 UNIMPL kldfind 5561.22Schristos307 UNIMPL kldnext 5571.22Schristos308 UNIMPL kldstat 5581.22Schristos309 UNIMPL kldfirstmod 5591.27Stv310 NOARGS { pid_t sys_getsid(pid_t pid); } 5601.22Schristos311 UNIMPL setresuid 5611.22Schristos312 UNIMPL setresgid 5621.22Schristos313 UNIMPL signanosleep 5631.22Schristos314 UNIMPL aio_return 5641.22Schristos315 UNIMPL aio_suspend 5651.22Schristos316 UNIMPL aio_cancel 5661.22Schristos317 UNIMPL aio_error 5671.22Schristos318 UNIMPL aio_read 5681.22Schristos319 UNIMPL aio_write 5691.22Schristos320 UNIMPL lio_listio 5701.22Schristos321 UNIMPL yield 5711.22Schristos322 UNIMPL thr_sleep 5721.22Schristos323 UNIMPL thr_wakeup 5731.27Stv324 NOARGS { int sys_mlockall(int flags); } 5741.27Stv325 NOARGS { int sys_munlockall(void); } 5751.27Stv326 NOARGS { int sys___getcwd(char *bufp, size_t length); } 5761.22Schristos327 UNIMPL sched_setparam 5771.22Schristos328 UNIMPL sched_getparam 5781.22Schristos329 UNIMPL sched_setscheduler 5791.22Schristos330 UNIMPL sched_getscheduler 5801.22Schristos331 UNIMPL sched_yield 5811.22Schristos332 UNIMPL sched_get_priority_max 5821.22Schristos333 UNIMPL sched_get_priority_min 5831.22Schristos334 UNIMPL sched_rr_get_interval 5841.22Schristos335 UNIMPL utrace 5851.22Schristos336 UNIMPL sendfile 5861.22Schristos337 UNIMPL kldsym 5871.27Stv338 UNIMPL jail 5881.27Stv339 UNIMPL pioctl 5891.27Stv340 UNIMPL 4.0 sigprocmask 5901.27Stv341 UNIMPL 4.0 sigsuspend 5911.27Stv342 UNIMPL 4.0 sigaction 5921.27Stv343 UNIMPL 4.0 sigpending 5931.27Stv344 UNIMPL 4.0 sigreturn 5941.27Stv345 UNIMPL sigtimedwait 5951.27Stv346 UNIMPL sigwaitinfo 5961.27Stv347 UNIMPL __acl_get_file 5971.27Stv348 UNIMPL __acl_set_file 5981.27Stv349 UNIMPL __acl_get_fd 5991.27Stv350 UNIMPL __acl_set_fd 6001.27Stv351 UNIMPL __acl_delete_file 6011.27Stv352 UNIMPL __acl_delete_fd 6021.27Stv353 UNIMPL __acl_aclcheck_file 6031.27Stv354 UNIMPL __acl_aclcheck_fd 6041.27Stv355 UNIMPL extattrctl 6051.27Stv356 UNIMPL extattr_set_file 6061.27Stv357 UNIMPL extattr_get_file 6071.27Stv358 UNIMPL extattr_delete_file 6081.27Stv359 UNIMPL aio_waitcomplete 6091.27Stv360 UNIMPL getresuid 6101.27Stv361 UNIMPL getresgid 6111.27Stv362 UNIMPL kqueue 6121.27Stv363 UNIMPL kevent 613