syscalls.master revision 1.244
11.244Spooka $NetBSD: syscalls.master,v 1.244 2011/02/21 12:49:06 pooka Exp $ 21.28Smycroft 31.22Scgd; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 41.1Sglass 51.23Scgd; NetBSD system call name/number "master" file. 61.23Scgd; (See syscalls.conf to see what it is processed into.) 71.23Scgd; 81.23Scgd; Fields: number type [type-dependent ...] 91.1Sglass; number system call number, must be in order 101.190Smartin; type one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of 111.24Smycroft; the compatibility options defined in syscalls.conf. 121.23Scgd; 131.191Spooka; Optional fields are specified after the type field 141.217Spooka; (NOTE! they *must* be specified in this order): 151.217Spooka; MODULAR:attempt to autoload system call if not present 161.217Spooka; RUMP: the system call can be called directly from rumps 171.108Sthorpej; 181.1Sglass; types: 191.1Sglass; STD always included 201.23Scgd; OBSOL obsolete, not included in system 211.190Smartin; IGNORED syscall is a null op, but always succeeds 221.24Smycroft; UNIMPL unimplemented, not included in system 231.92Schristos; EXCL implemented, but not included in system 241.23Scgd; NODEF included, but don't define the syscall number 251.23Scgd; NOARGS included, but don't define the syscall args structure 261.43Scgd; INDIR included, but don't define the syscall args structure, 271.43Scgd; and allow it to be "really" varargs. 281.23Scgd; 291.227Spooka; arguments: 301.227Spooka; PAD argument not part of the C interface, used only for padding 311.227Spooka; 321.23Scgd; The compat options are defined in the syscalls.conf file, and the 331.23Scgd; compat option name is prefixed to the syscall name. Other than 341.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for 351.23Scgd; 'libcompat' options). 361.23Scgd; 371.23Scgd; The type-dependent arguments are as follows: 381.23Scgd; For STD, NODEF, NOARGS, and compat syscalls: 391.221Spooka; { return_type|prefix|compat(optional)|basename(pseudo-proto); } [alias] 401.23Scgd; For other syscalls: 411.23Scgd; [comment] 421.23Scgd; 431.23Scgd; #ifdef's, etc. may be included, and are copied to the output files. 441.70Sthorpej; #include's are copied to the syscall names and switch definition files only. 451.77Sthorpej 461.223Sapb#include "opt_modular.h" 471.102Sbjh21#include "opt_ntp.h" 481.85Stron#include "opt_sysv.h" 491.70Sthorpej 501.23Scgd#include <sys/param.h> 511.23Scgd#include <sys/systm.h> 521.23Scgd#include <sys/signal.h> 531.23Scgd#include <sys/mount.h> 541.204Stsutsui#include <sys/sched.h> 551.23Scgd#include <sys/syscallargs.h> 561.103Smycroft 571.103Smycroft%% 581.1Sglass 591.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive 601.1Sglass; are reserved for use in future Berkeley releases. 611.1Sglass; Additional system calls implemented in vendor and other 621.1Sglass; redistributions should be placed in the reserved range at the end 631.1Sglass; of the current calls. 641.1Sglass 651.221Spooka0 INDIR { int|sys||syscall(int code, \ 661.179Sdsl ... register_t args[SYS_MAXSYSARGS]); } 671.221Spooka1 STD { void|sys||exit(int rval); } 681.221Spooka2 STD { int|sys||fork(void); } 691.221Spooka3 STD RUMP { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 701.221Spooka4 STD RUMP { ssize_t|sys||write(int fd, const void *buf, \ 711.46Scgd size_t nbyte); } 721.221Spooka5 STD RUMP { int|sys||open(const char *path, \ 731.60Schristos int flags, ... mode_t mode); } 741.221Spooka6 STD RUMP { int|sys||close(int fd); } 751.243Schristos7 COMPAT_50 MODULAR { int|sys||wait4(pid_t pid, int *status, \ 761.219Schristos int options, struct rusage50 *rusage); } 771.221Spooka8 COMPAT_43 MODULAR { int|sys||creat(const char *path, mode_t mode); } ocreat 781.221Spooka9 STD RUMP { int|sys||link(const char *path, const char *link); } 791.221Spooka10 STD RUMP { int|sys||unlink(const char *path); } 801.23Scgd11 OBSOL execv 811.221Spooka12 STD RUMP { int|sys||chdir(const char *path); } 821.221Spooka13 STD RUMP { int|sys||fchdir(int fd); } 831.242Spooka14 COMPAT_50 MODULAR RUMP { int|sys||mknod(const char *path, mode_t mode, \ 841.219Schristos uint32_t dev); } 851.221Spooka15 STD RUMP { int|sys||chmod(const char *path, mode_t mode); } 861.221Spooka16 STD RUMP { int|sys||chown(const char *path, uid_t uid, \ 871.46Scgd gid_t gid); } 881.221Spooka17 STD { int|sys||obreak(char *nsize); } break 891.221Spooka18 COMPAT_20 MODULAR { int|sys||getfsstat(struct statfs12 *buf, \ 901.139Schristos long bufsize, int flags); } 911.221Spooka19 COMPAT_43 MODULAR { long|sys||lseek(int fd, long offset, int whence); }\ 921.29Smycroft olseek 931.236Spooka20 STD RUMP { pid_t|sys||getpid_with_ppid(void); } getpid 941.221Spooka21 COMPAT_40 MODULAR { int|sys||mount(const char *type, const char *path, \ 951.46Scgd int flags, void *data); } 961.221Spooka22 STD RUMP { int|sys||unmount(const char *path, int flags); } 971.236Spooka23 STD RUMP { int|sys||setuid(uid_t uid); } 981.236Spooka24 STD RUMP { uid_t|sys||getuid_with_euid(void); } getuid 991.236Spooka25 STD RUMP { uid_t|sys||geteuid(void); } 1001.221Spooka26 STD { int|sys||ptrace(int req, pid_t pid, void *addr, \ 1011.23Scgd int data); } 1021.222Spooka27 STD RUMP { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \ 1031.28Smycroft int flags); } 1041.222Spooka28 STD RUMP { ssize_t|sys||sendmsg(int s, \ 1051.46Scgd const struct msghdr *msg, int flags); } 1061.222Spooka29 STD RUMP { ssize_t|sys||recvfrom(int s, void *buf, size_t len, \ 1071.46Scgd int flags, struct sockaddr *from, \ 1081.88Skleink unsigned int *fromlenaddr); } 1091.221Spooka30 STD RUMP { int|sys||accept(int s, struct sockaddr *name, \ 1101.88Skleink unsigned int *anamelen); } 1111.222Spooka31 STD RUMP { int|sys||getpeername(int fdes, struct sockaddr *asa, \ 1121.88Skleink unsigned int *alen); } 1131.222Spooka32 STD RUMP { int|sys||getsockname(int fdes, struct sockaddr *asa, \ 1141.88Skleink unsigned int *alen); } 1151.226Spooka33 STD RUMP { int|sys||access(const char *path, int flags); } 1161.221Spooka34 STD RUMP { int|sys||chflags(const char *path, u_long flags); } 1171.226Spooka35 STD RUMP { int|sys||fchflags(int fd, u_long flags); } 1181.221Spooka36 STD RUMP { void|sys||sync(void); } 1191.243Schristos37 STD { int|sys||kill(pid_t pid, int signum); } 1201.221Spooka38 COMPAT_43 MODULAR { int|sys||stat(const char *path, struct stat43 *ub); } \ 1211.60Schristos stat43 1221.236Spooka39 STD RUMP { pid_t|sys||getppid(void); } 1231.221Spooka40 COMPAT_43 MODULAR { int|sys||lstat(const char *path, \ 1241.60Schristos struct stat43 *ub); } lstat43 1251.226Spooka41 STD RUMP { int|sys||dup(int fd); } 1261.231Spooka42 STD RUMP { int|sys||pipe(void); } 1271.236Spooka43 STD RUMP { gid_t|sys||getegid(void); } 1281.221Spooka44 STD { int|sys||profil(char *samples, size_t size, \ 1291.30Scgd u_long offset, u_int scale); } 1301.221Spooka45 STD { int|sys||ktrace(const char *fname, int ops, \ 1311.243Schristos int facs, pid_t pid); } 1321.221Spooka46 COMPAT_13 MODULAR { int|sys||sigaction(int signum, \ 1331.82Smycroft const struct sigaction13 *nsa, \ 1341.82Smycroft struct sigaction13 *osa); } sigaction13 1351.236Spooka47 STD RUMP { gid_t|sys||getgid_with_egid(void); } getgid 1361.221Spooka48 COMPAT_13 MODULAR { int|sys||sigprocmask(int how, \ 1371.82Smycroft int mask); } sigprocmask13 1381.236Spooka49 STD RUMP { int|sys||__getlogin(char *namebuf, size_t namelen); } 1391.236Spooka50 STD RUMP { int|sys||__setlogin(const char *namebuf); } 1401.221Spooka51 STD { int|sys||acct(const char *path); } 1411.221Spooka52 COMPAT_13 MODULAR { int|sys||sigpending(void); } sigpending13 1421.221Spooka53 COMPAT_13 MODULAR { int|sys||sigaltstack( \ 1431.82Smycroft const struct sigaltstack13 *nss, \ 1441.82Smycroft struct sigaltstack13 *oss); } sigaltstack13 1451.221Spooka54 STD RUMP { int|sys||ioctl(int fd, \ 1461.61Schristos u_long com, ... void *data); } 1471.221Spooka55 COMPAT_12 MODULAR { int|sys||reboot(int opt); } oreboot 1481.226Spooka56 STD RUMP { int|sys||revoke(const char *path); } 1491.221Spooka57 STD RUMP { int|sys||symlink(const char *path, \ 1501.46Scgd const char *link); } 1511.221Spooka58 STD RUMP { ssize_t|sys||readlink(const char *path, char *buf, \ 1521.72Skleink size_t count); } 1531.221Spooka59 STD { int|sys||execve(const char *path, \ 1541.46Scgd char * const *argp, char * const *envp); } 1551.237Spooka60 STD RUMP { mode_t|sys||umask(mode_t newmask); } 1561.226Spooka61 STD RUMP { int|sys||chroot(const char *path); } 1571.221Spooka62 COMPAT_43 MODULAR { int|sys||fstat(int fd, struct stat43 *sb); } fstat43 1581.221Spooka63 COMPAT_43 MODULAR { int|sys||getkerninfo(int op, char *where, int *size, \ 1591.29Smycroft int arg); } ogetkerninfo 1601.221Spooka64 COMPAT_43 MODULAR { int|sys||getpagesize(void); } ogetpagesize 1611.221Spooka65 COMPAT_12 MODULAR { int|sys||msync(void *addr, size_t len); } 1621.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 1631.221Spooka66 STD { int|sys||vfork(void); } 1641.23Scgd67 OBSOL vread 1651.23Scgd68 OBSOL vwrite 1661.221Spooka69 STD { int|sys||sbrk(intptr_t incr); } 1671.221Spooka70 STD { int|sys||sstk(int incr); } 1681.221Spooka71 COMPAT_43 MODULAR { int|sys||mmap(void *addr, size_t len, int prot, \ 1691.29Smycroft int flags, int fd, long pos); } ommap 1701.221Spooka72 STD { int|sys||ovadvise(int anom); } vadvise 1711.221Spooka73 STD { int|sys||munmap(void *addr, size_t len); } 1721.221Spooka74 STD { int|sys||mprotect(void *addr, size_t len, \ 1731.28Smycroft int prot); } 1741.221Spooka75 STD { int|sys||madvise(void *addr, size_t len, \ 1751.28Smycroft int behav); } 1761.23Scgd76 OBSOL vhangup 1771.23Scgd77 OBSOL vlimit 1781.221Spooka78 STD { int|sys||mincore(void *addr, size_t len, \ 1791.28Smycroft char *vec); } 1801.236Spooka79 STD RUMP { int|sys||getgroups(int gidsetsize, \ 1811.59Smycroft gid_t *gidset); } 1821.236Spooka80 STD RUMP { int|sys||setgroups(int gidsetsize, \ 1831.46Scgd const gid_t *gidset); } 1841.236Spooka81 STD RUMP { int|sys||getpgrp(void); } 1851.243Schristos82 STD RUMP { int|sys||setpgid(pid_t pid, pid_t pgid); } 1861.221Spooka83 COMPAT_50 MODULAR { int|sys||setitimer(int which, \ 1871.219Schristos const struct itimerval50 *itv, \ 1881.219Schristos struct itimerval50 *oitv); } 1891.221Spooka84 COMPAT_43 MODULAR { int|sys||wait(void); } owait 1901.221Spooka85 COMPAT_12 MODULAR { int|sys||swapon(const char *name); } oswapon 1911.221Spooka86 COMPAT_50 MODULAR { int|sys||getitimer(int which, \ 1921.219Schristos struct itimerval50 *itv); } 1931.221Spooka87 COMPAT_43 MODULAR { int|sys||gethostname(char *hostname, u_int len); } \ 1941.29Smycroft ogethostname 1951.221Spooka88 COMPAT_43 MODULAR { int|sys||sethostname(char *hostname, u_int len); } \ 1961.29Smycroft osethostname 1971.221Spooka89 COMPAT_43 MODULAR { int|sys||getdtablesize(void); } ogetdtablesize 1981.226Spooka90 STD RUMP { int|sys||dup2(int from, int to); } 1991.23Scgd91 UNIMPL getdopt 2001.226Spooka92 STD RUMP { int|sys||fcntl(int fd, int cmd, ... void *arg); } 2011.241Spooka93 COMPAT_50 MODULAR RUMP { int|sys||select(int nd, fd_set *in, fd_set *ou, \ 2021.219Schristos fd_set *ex, struct timeval50 *tv); } 2031.23Scgd94 UNIMPL setdopt 2041.221Spooka95 STD RUMP { int|sys||fsync(int fd); } 2051.221Spooka96 STD { int|sys||setpriority(int which, id_t who, int prio); } 2061.221Spooka97 COMPAT_30 MODULAR { int|sys||socket(int domain, int type, int protocol); } 2071.221Spooka98 STD RUMP { int|sys||connect(int s, const struct sockaddr *name, \ 2081.88Skleink unsigned int namelen); } 2091.221Spooka99 COMPAT_43 MODULAR { int|sys||accept(int s, void *name, \ 2101.46Scgd int *anamelen); } oaccept 2111.221Spooka100 STD { int|sys||getpriority(int which, id_t who); } 2121.221Spooka101 COMPAT_43 MODULAR { int|sys||send(int s, void *buf, int len, \ 2131.29Smycroft int flags); } osend 2141.221Spooka102 COMPAT_43 MODULAR { int|sys||recv(int s, void *buf, int len, \ 2151.29Smycroft int flags); } orecv 2161.221Spooka103 COMPAT_13 MODULAR { int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \ 2171.83Smycroft sigreturn13 2181.221Spooka104 STD RUMP { int|sys||bind(int s, const struct sockaddr *name, \ 2191.88Skleink unsigned int namelen); } 2201.221Spooka105 STD RUMP { int|sys||setsockopt(int s, int level, int name, \ 2211.88Skleink const void *val, unsigned int valsize); } 2221.221Spooka106 STD RUMP { int|sys||listen(int s, int backlog); } 2231.23Scgd107 OBSOL vtimes 2241.221Spooka108 COMPAT_43 MODULAR { int|sys||sigvec(int signum, struct sigvec *nsv, \ 2251.29Smycroft struct sigvec *osv); } osigvec 2261.221Spooka109 COMPAT_43 MODULAR { int|sys||sigblock(int mask); } osigblock 2271.221Spooka110 COMPAT_43 MODULAR { int|sys||sigsetmask(int mask); } osigsetmask 2281.221Spooka111 COMPAT_13 MODULAR { int|sys||sigsuspend(int mask); } sigsuspend13 2291.221Spooka112 COMPAT_43 MODULAR { int|sys||sigstack(struct sigstack *nss, \ 2301.29Smycroft struct sigstack *oss); } osigstack 2311.221Spooka113 COMPAT_43 MODULAR { int|sys||recvmsg(int s, struct omsghdr *msg, \ 2321.29Smycroft int flags); } orecvmsg 2331.221Spooka114 COMPAT_43 MODULAR { int|sys||sendmsg(int s, void *msg, int flags); } \ 2341.29Smycroft osendmsg 2351.23Scgd115 OBSOL vtrace 2361.221Spooka116 COMPAT_50 MODULAR { int|sys||gettimeofday(struct timeval50 *tp, \ 2371.141Skleink void *tzp); } 2381.221Spooka117 COMPAT_50 MODULAR { int|sys||getrusage(int who, struct rusage50 *rusage); } 2391.221Spooka118 STD RUMP { int|sys||getsockopt(int s, int level, int name, \ 2401.88Skleink void *val, unsigned int *avalsize); } 2411.26Scgd119 OBSOL resuba 2421.226Spooka120 STD RUMP { ssize_t|sys||readv(int fd, \ 2431.58Smycroft const struct iovec *iovp, int iovcnt); } 2441.226Spooka121 STD RUMP { ssize_t|sys||writev(int fd, \ 2451.58Smycroft const struct iovec *iovp, int iovcnt); } 2461.221Spooka122 COMPAT_50 MODULAR { int|sys||settimeofday(const struct timeval50 *tv, \ 2471.141Skleink const void *tzp); } 2481.226Spooka123 STD RUMP { int|sys||fchown(int fd, uid_t uid, gid_t gid); } 2491.226Spooka124 STD RUMP { int|sys||fchmod(int fd, mode_t mode); } 2501.221Spooka125 COMPAT_43 MODULAR { int|sys||recvfrom(int s, void *buf, size_t len, \ 2511.167Schristos int flags, void *from, int *fromlenaddr); } \ 2521.29Smycroft orecvfrom 2531.236Spooka126 STD RUMP { int|sys||setreuid(uid_t ruid, uid_t euid); } 2541.236Spooka127 STD RUMP { int|sys||setregid(gid_t rgid, gid_t egid); } 2551.221Spooka128 STD RUMP { int|sys||rename(const char *from, const char *to); } 2561.221Spooka129 COMPAT_43 MODULAR { int|sys||truncate(const char *path, long length); } \ 2571.29Smycroft otruncate 2581.221Spooka130 COMPAT_43 MODULAR { int|sys||ftruncate(int fd, long length); } oftruncate 2591.226Spooka131 STD RUMP { int|sys||flock(int fd, int how); } 2601.221Spooka132 STD RUMP { int|sys||mkfifo(const char *path, mode_t mode); } 2611.222Spooka133 STD RUMP { ssize_t|sys||sendto(int s, const void *buf, \ 2621.46Scgd size_t len, int flags, const struct sockaddr *to, \ 2631.88Skleink unsigned int tolen); } 2641.222Spooka134 STD RUMP { int|sys||shutdown(int s, int how); } 2651.222Spooka135 STD RUMP { int|sys||socketpair(int domain, int type, \ 2661.28Smycroft int protocol, int *rsv); } 2671.221Spooka136 STD RUMP { int|sys||mkdir(const char *path, mode_t mode); } 2681.221Spooka137 STD RUMP { int|sys||rmdir(const char *path); } 2691.241Spooka138 COMPAT_50 MODULAR RUMP { int|sys||utimes(const char *path, \ 2701.219Schristos const struct timeval50 *tptr); } 2711.23Scgd139 OBSOL 4.2 sigreturn 2721.221Spooka140 COMPAT_50 MODULAR { int|sys||adjtime(const struct timeval50 *delta, \ 2731.219Schristos struct timeval50 *olddelta); } 2741.221Spooka141 COMPAT_43 MODULAR { int|sys||getpeername(int fdes, void *asa, \ 2751.29Smycroft int *alen); } ogetpeername 2761.221Spooka142 COMPAT_43 MODULAR { int32_t|sys||gethostid(void); } ogethostid 2771.221Spooka143 COMPAT_43 MODULAR { int|sys||sethostid(int32_t hostid); } osethostid 2781.221Spooka144 COMPAT_43 MODULAR { int|sys||getrlimit(int which, \ 2791.58Smycroft struct orlimit *rlp); } ogetrlimit 2801.221Spooka145 COMPAT_43 MODULAR { int|sys||setrlimit(int which, \ 2811.58Smycroft const struct orlimit *rlp); } osetrlimit 2821.221Spooka146 COMPAT_43 MODULAR { int|sys||killpg(int pgid, int signum); } okillpg 2831.236Spooka147 STD RUMP { int|sys||setsid(void); } 2841.221Spooka148 STD { int|sys||quotactl(const char *path, int cmd, \ 2851.167Schristos int uid, void *arg); } 2861.221Spooka149 COMPAT_43 MODULAR { int|sys||quota(void); } oquota 2871.221Spooka150 COMPAT_43 MODULAR { int|sys||getsockname(int fdec, void *asa, \ 2881.29Smycroft int *alen); } ogetsockname 2891.1Sglass 2901.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 2911.1Sglass; system calls. (This includes various calls added for compatibity 2921.1Sglass; with other Unix variants.) 2931.1Sglass; Some of these calls are now supported by BSD... 2941.23Scgd151 UNIMPL 2951.23Scgd152 UNIMPL 2961.23Scgd153 UNIMPL 2971.23Scgd154 UNIMPL 2981.221Spooka155 STD MODULAR RUMP { int|sys||nfssvc(int flag, void *argp); } 2991.221Spooka156 COMPAT_43 MODULAR { int|sys||getdirentries(int fd, char *buf, \ 3001.29Smycroft u_int count, long *basep); } ogetdirentries 3011.221Spooka157 COMPAT_20 MODULAR { int|sys||statfs(const char *path, \ 3021.139Schristos struct statfs12 *buf); } 3031.221Spooka158 COMPAT_20 MODULAR { int|sys||fstatfs(int fd, struct statfs12 *buf); } 3041.23Scgd159 UNIMPL 3051.23Scgd160 UNIMPL 3061.221Spooka161 COMPAT_30 MODULAR { int|sys||getfh(const char *fname, \ 3071.155Smartin struct compat_30_fhandle *fhp); } 3081.221Spooka162 COMPAT_09 MODULAR { int|sys||getdomainname(char *domainname, int len); } \ 3091.29Smycroft ogetdomainname 3101.221Spooka163 COMPAT_09 MODULAR { int|sys||setdomainname(char *domainname, int len); } \ 3111.29Smycroft osetdomainname 3121.221Spooka164 COMPAT_09 MODULAR { int|sys||uname(struct outsname *name); } ouname 3131.221Spooka165 STD { int|sys||sysarch(int op, void *parms); } 3141.23Scgd166 UNIMPL 3151.23Scgd167 UNIMPL 3161.23Scgd168 UNIMPL 3171.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3181.216Sad#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64) 3191.221Spooka169 COMPAT_10 MODULAR { int|sys||semsys(int which, int a2, int a3, int a4, \ 3201.29Smycroft int a5); } osemsys 3211.9Scgd#else 3221.92Schristos169 EXCL 1.0 semsys 3231.9Scgd#endif 3241.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3251.216Sad#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64) 3261.221Spooka170 COMPAT_10 MODULAR { int|sys||msgsys(int which, int a2, int a3, int a4, \ 3271.29Smycroft int a5, int a6); } omsgsys 3281.9Scgd#else 3291.92Schristos170 EXCL 1.0 msgsys 3301.9Scgd#endif 3311.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3321.216Sad#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64) 3331.221Spooka171 COMPAT_10 MODULAR { int|sys||shmsys(int which, int a2, int a3, int a4); } \ 3341.29Smycroft oshmsys 3351.1Sglass#else 3361.92Schristos171 EXCL 1.0 shmsys 3371.1Sglass#endif 3381.23Scgd172 UNIMPL 3391.221Spooka173 STD RUMP { ssize_t|sys||pread(int fd, void *buf, \ 3401.227Spooka size_t nbyte, int PAD, off_t offset); } 3411.221Spooka174 STD RUMP { ssize_t|sys||pwrite(int fd, const void *buf, \ 3421.227Spooka size_t nbyte, int PAD, off_t offset); } 3431.102Sbjh21; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded. 3441.221Spooka175 COMPAT_30 { int|sys||ntp_gettime(struct ntptimeval30 *ntvp); } 3451.216Sad#if defined(NTP) || !defined(_KERNEL_OPT) 3461.221Spooka176 STD { int|sys||ntp_adjtime(struct timex *tp); } 3471.102Sbjh21#else 3481.102Sbjh21176 EXCL ntp_adjtime 3491.102Sbjh21#endif 3501.23Scgd177 UNIMPL 3511.23Scgd178 UNIMPL 3521.23Scgd179 UNIMPL 3531.23Scgd180 UNIMPL 3541.1Sglass 3551.1Sglass; Syscalls 180-199 are used by/reserved for BSD 3561.236Spooka181 STD RUMP { int|sys||setgid(gid_t gid); } 3571.236Spooka182 STD RUMP { int|sys||setegid(gid_t egid); } 3581.236Spooka183 STD RUMP { int|sys||seteuid(uid_t euid); } 3591.232Spooka184 STD MODULAR { int|sys||lfs_bmapv(fsid_t *fsidp, \ 3601.23Scgd struct block_info *blkiov, int blkcnt); } 3611.232Spooka185 STD MODULAR { int|sys||lfs_markv(fsid_t *fsidp, \ 3621.23Scgd struct block_info *blkiov, int blkcnt); } 3631.232Spooka186 STD MODULAR { int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); } 3641.221Spooka187 COMPAT_50 MODULAR { int|sys||lfs_segwait(fsid_t *fsidp, \ 3651.219Schristos struct timeval50 *tv); } 3661.221Spooka188 COMPAT_12 MODULAR { int|sys||stat(const char *path, struct stat12 *ub); } \ 3671.60Schristos stat12 3681.221Spooka189 COMPAT_12 MODULAR { int|sys||fstat(int fd, struct stat12 *sb); } fstat12 3691.221Spooka190 COMPAT_12 MODULAR { int|sys||lstat(const char *path, \ 3701.60Schristos struct stat12 *ub); } lstat12 3711.234Snjoly191 STD RUMP { long|sys||pathconf(const char *path, int name); } 3721.234Snjoly192 STD RUMP { long|sys||fpathconf(int fd, int name); } 3731.23Scgd193 UNIMPL 3741.233Spooka194 STD RUMP { int|sys||getrlimit(int which, \ 3751.58Smycroft struct rlimit *rlp); } 3761.233Spooka195 STD RUMP { int|sys||setrlimit(int which, \ 3771.46Scgd const struct rlimit *rlp); } 3781.221Spooka196 COMPAT_12 MODULAR { int|sys||getdirentries(int fd, char *buf, \ 3791.28Smycroft u_int count, long *basep); } 3801.221Spooka197 STD { void *|sys||mmap(void *addr, size_t len, int prot, \ 3811.227Spooka int flags, int fd, long PAD, off_t pos); } 3821.221Spooka198 INDIR { quad_t|sys||__syscall(quad_t code, \ 3831.179Sdsl ... register_t args[SYS_MAXSYSARGS]); } 3841.227Spooka199 STD RUMP { off_t|sys||lseek(int fd, int PAD, off_t offset, \ 3851.23Scgd int whence); } 3861.227Spooka200 STD RUMP { int|sys||truncate(const char *path, int PAD, \ 3871.46Scgd off_t length); } 3881.227Spooka201 STD RUMP { int|sys||ftruncate(int fd, int PAD, off_t length); } 3891.221Spooka202 STD RUMP { int|sys||__sysctl(const int *name, u_int namelen, \ 3901.151Sdrochner void *old, size_t *oldlenp, const void *new, \ 3911.28Smycroft size_t newlen); } 3921.221Spooka203 STD { int|sys||mlock(const void *addr, size_t len); } 3931.221Spooka204 STD { int|sys||munlock(const void *addr, size_t len); } 3941.221Spooka205 STD { int|sys||undelete(const char *path); } 3951.241Spooka206 COMPAT_50 MODULAR RUMP { int|sys||futimes(int fd, \ 3961.219Schristos const struct timeval50 *tptr); } 3971.236Spooka207 STD RUMP { pid_t|sys||getpgid(pid_t pid); } 3981.226Spooka208 STD RUMP { int|sys||reboot(int opt, char *bootstr); } 3991.226Spooka209 STD RUMP { int|sys||poll(struct pollfd *fds, u_int nfds, \ 4001.35Smycroft int timeout); } 4011.11Scgd; 4021.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 4031.11Scgd; 4041.212Sad210 UNIMPL 4051.212Sad211 UNIMPL 4061.212Sad212 UNIMPL 4071.212Sad213 UNIMPL 4081.212Sad214 UNIMPL 4091.212Sad215 UNIMPL 4101.212Sad216 UNIMPL 4111.212Sad217 UNIMPL 4121.212Sad218 UNIMPL 4131.212Sad219 UNIMPL 4141.49Skleink; System calls 220-300 are reserved for use by NetBSD 4151.216Sad#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 4161.221Spooka220 COMPAT_14 MODULAR { int|sys||__semctl(int semid, int semnum, int cmd, \ 4171.97Sthorpej union __semun *arg); } 4181.221Spooka221 STD { int|sys||semget(key_t key, int nsems, int semflg); } 4191.221Spooka222 STD { int|sys||semop(int semid, struct sembuf *sops, \ 4201.74Skleink size_t nsops); } 4211.221Spooka223 STD { int|sys||semconfig(int flag); } 4221.23Scgd#else 4231.97Sthorpej220 EXCL compat_14_semctl 4241.92Schristos221 EXCL semget 4251.92Schristos222 EXCL semop 4261.92Schristos223 EXCL semconfig 4271.23Scgd#endif 4281.216Sad#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 4291.221Spooka224 COMPAT_14 MODULAR { int|sys||msgctl(int msqid, int cmd, \ 4301.97Sthorpej struct msqid_ds14 *buf); } 4311.221Spooka225 STD { int|sys||msgget(key_t key, int msgflg); } 4321.221Spooka226 STD { int|sys||msgsnd(int msqid, const void *msgp, \ 4331.74Skleink size_t msgsz, int msgflg); } 4341.221Spooka227 STD { ssize_t|sys||msgrcv(int msqid, void *msgp, \ 4351.74Skleink size_t msgsz, long msgtyp, int msgflg); } 4361.23Scgd#else 4371.163Sad224 EXCL compat_14_msgctl 4381.163Sad225 EXCL msgget 4391.163Sad226 EXCL msgsnd 4401.163Sad227 EXCL msgrcv 4411.23Scgd#endif 4421.216Sad#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 4431.221Spooka228 STD { void *|sys||shmat(int shmid, const void *shmaddr, \ 4441.44Scgd int shmflg); } 4451.221Spooka229 COMPAT_14 MODULAR { int|sys||shmctl(int shmid, int cmd, \ 4461.97Sthorpej struct shmid_ds14 *buf); } 4471.221Spooka230 STD { int|sys||shmdt(const void *shmaddr); } 4481.221Spooka231 STD { int|sys||shmget(key_t key, size_t size, int shmflg); } 4491.23Scgd#else 4501.92Schristos228 EXCL shmat 4511.97Sthorpej229 EXCL compat_14_shmctl 4521.92Schristos230 EXCL shmdt 4531.92Schristos231 EXCL shmget 4541.23Scgd#endif 4551.221Spooka232 COMPAT_50 MODULAR { int|sys||clock_gettime(clockid_t clock_id, \ 4561.219Schristos struct timespec50 *tp); } 4571.221Spooka233 COMPAT_50 MODULAR { int|sys||clock_settime(clockid_t clock_id, \ 4581.219Schristos const struct timespec50 *tp); } 4591.221Spooka234 COMPAT_50 MODULAR { int|sys||clock_getres(clockid_t clock_id, \ 4601.219Schristos struct timespec50 *tp); } 4611.221Spooka235 STD { int|sys||timer_create(clockid_t clock_id, \ 4621.118Sthorpej struct sigevent *evp, timer_t *timerid); } 4631.221Spooka236 STD { int|sys||timer_delete(timer_t timerid); } 4641.221Spooka237 COMPAT_50 MODULAR { int|sys||timer_settime(timer_t timerid, int flags, \ 4651.219Schristos const struct itimerspec50 *value, \ 4661.219Schristos struct itimerspec50 *ovalue); } 4671.221Spooka238 COMPAT_50 MODULAR { int|sys||timer_gettime(timer_t timerid, struct \ 4681.219Schristos itimerspec50 *value); } 4691.221Spooka239 STD { int|sys||timer_getoverrun(timer_t timerid); } 4701.54Sveego; 4711.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 4721.54Sveego; 4731.221Spooka240 COMPAT_50 MODULAR { int|sys||nanosleep(const struct timespec50 *rqtp, \ 4741.219Schristos struct timespec50 *rmtp); } 4751.226Spooka241 STD RUMP { int|sys||fdatasync(int fd); } 4761.221Spooka242 STD { int|sys||mlockall(int flags); } 4771.221Spooka243 STD { int|sys||munlockall(void); } 4781.221Spooka244 COMPAT_50 MODULAR { int|sys||__sigtimedwait(const sigset_t *set, \ 4791.127Sjdolecek siginfo_t *info, \ 4801.219Schristos struct timespec50 *timeout); } 4811.240Schristos245 STD { int|sys||sigqueueinfo(pid_t pid, \ 4821.240Schristos const siginfo_t *info); } 4831.230Spooka246 STD RUMP { int|sys||modctl(int cmd, void *arg); } 4841.235Spooka247 STD MODULAR RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); } 4851.235Spooka248 STD MODULAR RUMP { int|sys||_ksem_open(const char *name, int oflag, \ 4861.214Sad mode_t mode, unsigned int value, intptr_t *idp); } 4871.235Spooka249 STD MODULAR RUMP { int|sys||_ksem_unlink(const char *name); } 4881.235Spooka250 STD MODULAR RUMP { int|sys||_ksem_close(intptr_t id); } 4891.235Spooka251 STD MODULAR RUMP { int|sys||_ksem_post(intptr_t id); } 4901.235Spooka252 STD MODULAR RUMP { int|sys||_ksem_wait(intptr_t id); } 4911.235Spooka253 STD MODULAR RUMP { int|sys||_ksem_trywait(intptr_t id); } 4921.235Spooka254 STD MODULAR RUMP { int|sys||_ksem_getvalue(intptr_t id, \ 4931.119Schristos unsigned int *value); } 4941.235Spooka255 STD MODULAR RUMP { int|sys||_ksem_destroy(intptr_t id); } 4951.124Sthorpej256 UNIMPL sys__ksem_timedwait 4961.228Srmind257 STD MODULAR { mqd_t|sys||mq_open(const char * name, int oflag, \ 4971.177Srmind mode_t mode, struct mq_attr *attr); } 4981.228Srmind258 STD MODULAR { int|sys||mq_close(mqd_t mqdes); } 4991.228Srmind259 STD MODULAR { int|sys||mq_unlink(const char *name); } 5001.228Srmind260 STD MODULAR { int|sys||mq_getattr(mqd_t mqdes, \ 5011.177Srmind struct mq_attr *mqstat); } 5021.228Srmind261 STD MODULAR { int|sys||mq_setattr(mqd_t mqdes, \ 5031.177Srmind const struct mq_attr *mqstat, \ 5041.177Srmind struct mq_attr *omqstat); } 5051.228Srmind262 STD MODULAR { int|sys||mq_notify(mqd_t mqdes, \ 5061.177Srmind const struct sigevent *notification); } 5071.228Srmind263 STD MODULAR { int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \ 5081.177Srmind size_t msg_len, unsigned msg_prio); } 5091.228Srmind264 STD MODULAR { ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \ 5101.177Srmind size_t msg_len, unsigned *msg_prio); } 5111.221Spooka265 COMPAT_50 MODULAR { int|sys||mq_timedsend(mqd_t mqdes, \ 5121.177Srmind const char *msg_ptr, size_t msg_len, \ 5131.177Srmind unsigned msg_prio, \ 5141.219Schristos const struct timespec50 *abs_timeout); } 5151.221Spooka266 COMPAT_50 MODULAR { ssize_t|sys||mq_timedreceive(mqd_t mqdes, \ 5161.177Srmind char *msg_ptr, size_t msg_len, unsigned *msg_prio, \ 5171.219Schristos const struct timespec50 *abs_timeout); } 5181.49Skleink267 UNIMPL 5191.49Skleink268 UNIMPL 5201.49Skleink269 UNIMPL 5211.221Spooka270 STD { int|sys||__posix_rename(const char *from, \ 5221.49Skleink const char *to); } 5231.221Spooka271 STD { int|sys||swapctl(int cmd, void *arg, int misc); } 5241.221Spooka272 COMPAT_30 MODULAR { int|sys||getdents(int fd, char *buf, size_t count); } 5251.221Spooka273 STD { int|sys||minherit(void *addr, size_t len, \ 5261.54Sveego int inherit); } 5271.221Spooka274 STD RUMP { int|sys||lchmod(const char *path, mode_t mode); } 5281.221Spooka275 STD RUMP { int|sys||lchown(const char *path, uid_t uid, \ 5291.56Senami gid_t gid); } 5301.241Spooka276 COMPAT_50 MODULAR RUMP { int|sys||lutimes(const char *path, \ 5311.219Schristos const struct timeval50 *tptr); } 5321.221Spooka277 STD { int|sys|13|msync(void *addr, size_t len, int flags); } 5331.221Spooka278 COMPAT_30 MODULAR { int|sys|13|stat(const char *path, struct stat13 *ub); } 5341.221Spooka279 COMPAT_30 MODULAR { int|sys|13|fstat(int fd, struct stat13 *sb); } 5351.221Spooka280 COMPAT_30 MODULAR { int|sys|13|lstat(const char *path, struct stat13 *ub); } 5361.221Spooka281 STD { int|sys|14|sigaltstack( \ 5371.82Smycroft const struct sigaltstack *nss, \ 5381.82Smycroft struct sigaltstack *oss); } 5391.221Spooka282 STD { int|sys|14|vfork(void); } 5401.221Spooka283 STD { int|sys||__posix_chown(const char *path, uid_t uid, \ 5411.69Skleink gid_t gid); } 5421.221Spooka284 STD { int|sys||__posix_fchown(int fd, uid_t uid, \ 5431.69Skleink gid_t gid); } 5441.221Spooka285 STD { int|sys||__posix_lchown(const char *path, uid_t uid, \ 5451.69Skleink gid_t gid); } 5461.236Spooka286 STD RUMP { pid_t|sys||getsid(pid_t pid); } 5471.221Spooka287 STD { pid_t|sys||__clone(int flags, void *stack); } 5481.221Spooka288 STD { int|sys||fktrace(int fd, int ops, \ 5491.243Schristos int facs, pid_t pid); } 5501.244Spooka289 STD RUMP { ssize_t|sys||preadv(int fd, \ 5511.79Sthorpej const struct iovec *iovp, int iovcnt, \ 5521.227Spooka int PAD, off_t offset); } 5531.244Spooka290 STD RUMP { ssize_t|sys||pwritev(int fd, \ 5541.79Sthorpej const struct iovec *iovp, int iovcnt, \ 5551.227Spooka int PAD, off_t offset); } 5561.221Spooka291 COMPAT_16 MODULAR { int|sys|14|sigaction(int signum, \ 5571.82Smycroft const struct sigaction *nsa, \ 5581.82Smycroft struct sigaction *osa); } 5591.221Spooka292 STD { int|sys|14|sigpending(sigset_t *set); } 5601.221Spooka293 STD { int|sys|14|sigprocmask(int how, \ 5611.82Smycroft const sigset_t *set, \ 5621.82Smycroft sigset_t *oset); } 5631.221Spooka294 STD { int|sys|14|sigsuspend(const sigset_t *set); } 5641.221Spooka295 COMPAT_16 MODULAR { int|sys|14|sigreturn(struct sigcontext *sigcntxp); } 5651.238Spooka296 STD RUMP { int|sys||__getcwd(char *bufp, size_t length); } 5661.226Spooka297 STD RUMP { int|sys||fchroot(int fd); } 5671.221Spooka298 COMPAT_30 MODULAR { int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); } 5681.221Spooka299 COMPAT_30 MODULAR { int|sys||fhstat(const struct compat_30_fhandle *fhp, \ 5691.152Schristos struct stat13 *sb); } 5701.221Spooka300 COMPAT_20 MODULAR { int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \ 5711.139Schristos struct statfs12 *buf); } 5721.216Sad#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 5731.221Spooka301 COMPAT_50 MODULAR { int|sys|13|__semctl(int semid, int semnum, int cmd, \ 5741.99Schristos ... union __semun *arg); } 5751.97Sthorpej#else 5761.99Schristos301 EXCL ____semctl13 5771.97Sthorpej#endif 5781.216Sad#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 5791.221Spooka302 COMPAT_50 MODULAR { int|sys|13|msgctl(int msqid, int cmd, \ 5801.97Sthorpej struct msqid_ds *buf); } 5811.97Sthorpej#else 5821.97Sthorpej302 EXCL __msgctl13 5831.97Sthorpej#endif 5841.216Sad#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 5851.221Spooka303 COMPAT_50 MODULAR { int|sys|13|shmctl(int shmid, int cmd, \ 5861.219Schristos struct shmid_ds13 *buf); } 5871.97Sthorpej#else 5881.97Sthorpej303 EXCL __shmctl13 5891.97Sthorpej#endif 5901.221Spooka304 STD RUMP { int|sys||lchflags(const char *path, u_long flags); } 5911.236Spooka305 STD RUMP { int|sys||issetugid(void); } 5921.221Spooka306 STD { int|sys||utrace(const char *label, void *addr, \ 5931.118Sthorpej size_t len); } 5941.221Spooka307 STD { int|sys||getcontext(struct __ucontext *ucp); } 5951.221Spooka308 STD { int|sys||setcontext(const struct __ucontext *ucp); } 5961.221Spooka309 STD { int|sys||_lwp_create(const struct __ucontext *ucp, \ 5971.118Sthorpej u_long flags, lwpid_t *new_lwp); } 5981.221Spooka310 STD { int|sys||_lwp_exit(void); } 5991.221Spooka311 STD { lwpid_t|sys||_lwp_self(void); } 6001.221Spooka312 STD { int|sys||_lwp_wait(lwpid_t wait_for, \ 6011.118Sthorpej lwpid_t *departed); } 6021.221Spooka313 STD { int|sys||_lwp_suspend(lwpid_t target); } 6031.221Spooka314 STD { int|sys||_lwp_continue(lwpid_t target); } 6041.221Spooka315 STD { int|sys||_lwp_wakeup(lwpid_t target); } 6051.221Spooka316 STD { void *|sys||_lwp_getprivate(void); } 6061.221Spooka317 STD { void|sys||_lwp_setprivate(void *ptr); } 6071.221Spooka318 STD { int|sys||_lwp_kill(lwpid_t target, int signo); } 6081.221Spooka319 STD { int|sys||_lwp_detach(lwpid_t target); } 6091.221Spooka320 COMPAT_50 MODULAR { int|sys||_lwp_park(const struct timespec50 *ts, \ 6101.175Sad lwpid_t unpark, const void *hint, \ 6111.175Sad const void *unparkhint); } 6121.221Spooka321 STD { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } 6131.221Spooka322 STD { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \ 6141.164Sad size_t ntargets, const void *hint); } 6151.221Spooka323 STD { int|sys||_lwp_setname(lwpid_t target, \ 6161.178Sad const char *name); } 6171.221Spooka324 STD { int|sys||_lwp_getname(lwpid_t target, \ 6181.178Sad char *name, size_t len); } 6191.221Spooka325 STD { int|sys||_lwp_ctl(int features, \ 6201.180Sad struct lwpctl **address); } 6211.180Sad; Syscalls 326-339 reserved for LWP syscalls. 6221.107Snathanw326 UNIMPL 6231.107Snathanw327 UNIMPL 6241.107Snathanw328 UNIMPL 6251.107Snathanw329 UNIMPL 6261.209Swrstuden; SA system calls. 6271.221Spooka330 STD { int|sys||sa_register(sa_upcall_t new, \ 6281.209Swrstuden sa_upcall_t *old, int flags, \ 6291.209Swrstuden ssize_t stackinfo_offset); } 6301.221Spooka331 STD { int|sys||sa_stacks(int num, stack_t *stacks); } 6311.221Spooka332 STD { int|sys||sa_enable(void); } 6321.221Spooka333 STD { int|sys||sa_setconcurrency(int concurrency); } 6331.221Spooka334 STD { int|sys||sa_yield(void); } 6341.221Spooka335 STD { int|sys||sa_preempt(int sa_id); } 6351.209Swrstuden336 OBSOL sys_sa_unblockyield 6361.209Swrstuden; 6371.209Swrstuden; Syscalls 337-339 are reserved for other scheduler activation syscalls. 6381.209Swrstuden; 6391.107Snathanw337 UNIMPL 6401.107Snathanw338 UNIMPL 6411.107Snathanw339 UNIMPL 6421.221Spooka340 STD { int|sys||__sigaction_sigtramp(int signum, \ 6431.112Sthorpej const struct sigaction *nsa, \ 6441.112Sthorpej struct sigaction *osa, \ 6451.132Smatt const void *tramp, int vers); } 6461.221Spooka341 STD { int|sys||pmc_get_info(int ctr, int op, void *args); } 6471.221Spooka342 STD { int|sys||pmc_control(int ctr, int op, void *args); } 6481.221Spooka343 STD { int|sys||rasctl(void *addr, size_t len, int op); } 6491.224Spooka344 STD RUMP { int|sys||kqueue(void); } 6501.241Spooka345 COMPAT_50 MODULAR RUMP { int|sys||kevent(int fd, \ 6511.116Sjdolecek const struct kevent *changelist, size_t nchanges, \ 6521.116Sjdolecek struct kevent *eventlist, size_t nevents, \ 6531.219Schristos const struct timespec50 *timeout); } 6541.184Srmind 6551.184Srmind; Scheduling system calls. 6561.221Spooka346 STD { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \ 6571.188Syamt int policy, const struct sched_param *params); } 6581.221Spooka347 STD { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \ 6591.188Syamt int *policy, struct sched_param *params); } 6601.221Spooka348 STD { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \ 6611.202Schristos size_t size, const cpuset_t *cpuset); } 6621.221Spooka349 STD { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \ 6631.202Schristos size_t size, cpuset_t *cpuset); } 6641.221Spooka350 STD { int|sys||sched_yield(void); } 6651.184Srmind351 UNIMPL 6661.184Srmind352 UNIMPL 6671.184Srmind353 UNIMPL 6681.134Sthorpej 6691.226Spooka354 STD RUMP { int|sys||fsync_range(int fd, int flags, off_t start, \ 6701.134Sthorpej off_t length); } 6711.221Spooka355 STD { int|sys||uuidgen(struct uuid *store, int count); } 6721.226Spooka356 STD RUMP { int|sys||getvfsstat(struct statvfs *buf, \ 6731.139Schristos size_t bufsize, int flags); } 6741.221Spooka357 STD RUMP { int|sys||statvfs1(const char *path, \ 6751.139Schristos struct statvfs *buf, int flags); } 6761.226Spooka358 STD RUMP { int|sys||fstatvfs1(int fd, struct statvfs *buf, \ 6771.139Schristos int flags); } 6781.221Spooka359 COMPAT_30 MODULAR { int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \ 6791.139Schristos struct statvfs *buf, int flags); } 6801.226Spooka360 STD RUMP { int|sys||extattrctl(const char *path, int cmd, \ 6811.143Sthorpej const char *filename, int attrnamespace, \ 6821.143Sthorpej const char *attrname); } 6831.226Spooka361 STD RUMP { int|sys||extattr_set_file(const char *path, \ 6841.143Sthorpej int attrnamespace, const char *attrname, \ 6851.143Sthorpej const void *data, size_t nbytes); } 6861.226Spooka362 STD RUMP { ssize_t|sys||extattr_get_file(const char *path, \ 6871.143Sthorpej int attrnamespace, const char *attrname, \ 6881.143Sthorpej void *data, size_t nbytes); } 6891.226Spooka363 STD RUMP { int|sys||extattr_delete_file(const char *path, \ 6901.143Sthorpej int attrnamespace, const char *attrname); } 6911.226Spooka364 STD RUMP { int|sys||extattr_set_fd(int fd, \ 6921.143Sthorpej int attrnamespace, const char *attrname, \ 6931.143Sthorpej const void *data, size_t nbytes); } 6941.226Spooka365 STD RUMP { ssize_t|sys||extattr_get_fd(int fd, \ 6951.143Sthorpej int attrnamespace, const char *attrname, \ 6961.143Sthorpej void *data, size_t nbytes); } 6971.226Spooka366 STD RUMP { int|sys||extattr_delete_fd(int fd, \ 6981.143Sthorpej int attrnamespace, const char *attrname); } 6991.226Spooka367 STD RUMP { int|sys||extattr_set_link(const char *path, \ 7001.143Sthorpej int attrnamespace, const char *attrname, \ 7011.143Sthorpej const void *data, size_t nbytes); } 7021.226Spooka368 STD RUMP { ssize_t|sys||extattr_get_link(const char *path, \ 7031.143Sthorpej int attrnamespace, const char *attrname, \ 7041.143Sthorpej void *data, size_t nbytes); } 7051.226Spooka369 STD RUMP { int|sys||extattr_delete_link(const char *path, \ 7061.143Sthorpej int attrnamespace, const char *attrname); } 7071.226Spooka370 STD RUMP { ssize_t|sys||extattr_list_fd(int fd, \ 7081.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7091.226Spooka371 STD RUMP { ssize_t|sys||extattr_list_file(const char *path, \ 7101.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7111.226Spooka372 STD RUMP { ssize_t|sys||extattr_list_link(const char *path, \ 7121.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7131.242Spooka373 COMPAT_50 MODULAR RUMP { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \ 7141.219Schristos fd_set *ex, const struct timespec50 *ts, \ 7151.145Smatt const sigset_t *mask); } 7161.241Spooka374 COMPAT_50 MODULAR RUMP { int|sys||pollts(struct pollfd *fds, u_int nfds, \ 7171.219Schristos const struct timespec50 *ts, const sigset_t *mask); } 7181.226Spooka375 STD RUMP { int|sys||setxattr(const char *path, \ 7191.147Sthorpej const char *name, void *value, size_t size, \ 7201.147Sthorpej int flags); } 7211.226Spooka376 STD RUMP { int|sys||lsetxattr(const char *path, \ 7221.147Sthorpej const char *name, void *value, size_t size, \ 7231.147Sthorpej int flags); } 7241.226Spooka377 STD RUMP { int|sys||fsetxattr(int fd, \ 7251.147Sthorpej const char *name, void *value, size_t size, \ 7261.147Sthorpej int flags); } 7271.226Spooka378 STD RUMP { int|sys||getxattr(const char *path, \ 7281.147Sthorpej const char *name, void *value, size_t size); } 7291.226Spooka379 STD RUMP { int|sys||lgetxattr(const char *path, \ 7301.147Sthorpej const char *name, void *value, size_t size); } 7311.226Spooka380 STD RUMP { int|sys||fgetxattr(int fd, \ 7321.147Sthorpej const char *name, void *value, size_t size); } 7331.226Spooka381 STD RUMP { int|sys||listxattr(const char *path, \ 7341.147Sthorpej char *list, size_t size); } 7351.226Spooka382 STD RUMP { int|sys||llistxattr(const char *path, \ 7361.147Sthorpej char *list, size_t size); } 7371.226Spooka383 STD RUMP { int|sys||flistxattr(int fd, \ 7381.147Sthorpej char *list, size_t size); } 7391.226Spooka384 STD RUMP { int|sys||removexattr(const char *path, \ 7401.147Sthorpej const char *name); } 7411.226Spooka385 STD RUMP { int|sys||lremovexattr(const char *path, \ 7421.147Sthorpej const char *name); } 7431.226Spooka386 STD RUMP { int|sys||fremovexattr(int fd, \ 7441.147Sthorpej const char *name); } 7451.241Spooka387 COMPAT_50 MODULAR RUMP { int|sys|30|stat(const char *path, struct stat30 *ub); } 7461.241Spooka388 COMPAT_50 MODULAR RUMP { int|sys|30|fstat(int fd, struct stat30 *sb); } 7471.241Spooka389 COMPAT_50 MODULAR RUMP { int|sys|30|lstat(const char *path, struct stat30 *ub); } 7481.226Spooka390 STD RUMP { int|sys|30|getdents(int fd, char *buf, size_t count); } 7491.190Smartin391 IGNORED old posix_fadvise 7501.221Spooka392 COMPAT_30 MODULAR { int|sys|30|fhstat(const struct compat_30_fhandle \ 7511.219Schristos *fhp, struct stat30 *sb); } 7521.221Spooka393 COMPAT_50 MODULAR { int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); } 7531.221Spooka394 STD RUMP { int|sys|30|socket(int domain, int type, int protocol); } 7541.221Spooka395 STD RUMP { int|sys|30|getfh(const char *fname, void *fhp, \ 7551.156Smartin size_t *fh_size); } 7561.229Spooka396 STD RUMP { int|sys|40|fhopen(const void *fhp, size_t fh_size,\ 7571.156Smartin int flags); } 7581.229Spooka397 STD RUMP { int|sys|40|fhstatvfs1(const void *fhp, \ 7591.156Smartin size_t fh_size, struct statvfs *buf, int flags); } 7601.242Spooka398 COMPAT_50 MODULAR RUMP { int|sys|40|fhstat(const void *fhp, \ 7611.219Schristos size_t fh_size, struct stat30 *sb); } 7621.169Srmind 7631.169Srmind; Asynchronous I/O system calls 7641.221Spooka399 STD MODULAR { int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); } 7651.221Spooka400 STD MODULAR { int|sys||aio_error(const struct aiocb *aiocbp); } 7661.221Spooka401 STD MODULAR { int|sys||aio_fsync(int op, struct aiocb *aiocbp); } 7671.221Spooka402 STD MODULAR { int|sys||aio_read(struct aiocb *aiocbp); } 7681.221Spooka403 STD MODULAR { int|sys||aio_return(struct aiocb *aiocbp); } 7691.221Spooka404 COMPAT_50 MODULAR { int|sys||aio_suspend(const struct aiocb *const *list, \ 7701.219Schristos int nent, const struct timespec50 *timeout); } 7711.221Spooka405 STD MODULAR { int|sys||aio_write(struct aiocb *aiocbp); } 7721.221Spooka406 STD MODULAR { int|sys||lio_listio(int mode, struct aiocb *const *list, \ 7731.169Srmind int nent, struct sigevent *sig); } 7741.171Sjoerg 7751.170Sdsl407 UNIMPL 7761.170Sdsl408 UNIMPL 7771.170Sdsl409 UNIMPL 7781.170Sdsl 7791.225Spooka410 STD RUMP { int|sys|50|mount(const char *type, \ 7801.170Sdsl const char *path, int flags, void *data, \ 7811.170Sdsl size_t data_len); } 7821.221Spooka411 STD { void *|sys||mremap(void *old_address, size_t old_size, \ 7831.171Sjoerg void *new_address, size_t new_size, int flags); } 7841.184Srmind 7851.184Srmind; Processor-sets system calls 7861.221Spooka412 STD { int|sys||pset_create(psetid_t *psid); } 7871.221Spooka413 STD { int|sys||pset_destroy(psetid_t psid); } 7881.221Spooka414 STD { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \ 7891.184Srmind psetid_t *opsid); } 7901.221Spooka415 STD { int|sys||_pset_bind(idtype_t idtype, id_t first_id, \ 7911.184Srmind id_t second_id, psetid_t psid, psetid_t *opsid); } 7921.239Spooka416 STD RUMP { int|sys|50|posix_fadvise(int fd, int PAD, \ 7931.187Smartin off_t offset, off_t len, int advice); } 7941.226Spooka417 STD RUMP { int|sys|50|select(int nd, fd_set *in, fd_set *ou, \ 7951.219Schristos fd_set *ex, struct timeval *tv); } 7961.221Spooka418 STD { int|sys|50|gettimeofday(struct timeval *tp, \ 7971.219Schristos void *tzp); } 7981.221Spooka419 STD { int|sys|50|settimeofday(const struct timeval *tv, \ 7991.219Schristos const void *tzp); } 8001.221Spooka420 STD RUMP { int|sys|50|utimes(const char *path, \ 8011.219Schristos const struct timeval *tptr); } 8021.221Spooka421 STD { int|sys|50|adjtime(const struct timeval *delta, \ 8031.219Schristos struct timeval *olddelta); } 8041.232Spooka422 STD MODULAR { int|sys|50|lfs_segwait(fsid_t *fsidp, \ 8051.219Schristos struct timeval *tv); } 8061.226Spooka423 STD RUMP { int|sys|50|futimes(int fd, \ 8071.219Schristos const struct timeval *tptr); } 8081.221Spooka424 STD RUMP { int|sys|50|lutimes(const char *path, \ 8091.219Schristos const struct timeval *tptr); } 8101.221Spooka425 STD { int|sys|50|setitimer(int which, \ 8111.219Schristos const struct itimerval *itv, \ 8121.219Schristos struct itimerval *oitv); } 8131.221Spooka426 STD { int|sys|50|getitimer(int which, \ 8141.219Schristos struct itimerval *itv); } 8151.221Spooka427 STD { int|sys|50|clock_gettime(clockid_t clock_id, \ 8161.219Schristos struct timespec *tp); } 8171.221Spooka428 STD { int|sys|50|clock_settime(clockid_t clock_id, \ 8181.219Schristos const struct timespec *tp); } 8191.221Spooka429 STD { int|sys|50|clock_getres(clockid_t clock_id, \ 8201.219Schristos struct timespec *tp); } 8211.221Spooka430 STD { int|sys|50|nanosleep(const struct timespec *rqtp, \ 8221.219Schristos struct timespec *rmtp); } 8231.221Spooka431 STD { int|sys|50|__sigtimedwait(const sigset_t *set, \ 8241.219Schristos siginfo_t *info, \ 8251.219Schristos struct timespec *timeout); } 8261.228Srmind432 STD MODULAR { int|sys|50|mq_timedsend(mqd_t mqdes, \ 8271.219Schristos const char *msg_ptr, size_t msg_len, \ 8281.219Schristos unsigned msg_prio, \ 8291.219Schristos const struct timespec *abs_timeout); } 8301.228Srmind433 STD MODULAR { ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \ 8311.219Schristos char *msg_ptr, size_t msg_len, unsigned *msg_prio, \ 8321.219Schristos const struct timespec *abs_timeout); } 8331.221Spooka434 STD { int|sys|50|_lwp_park(const struct timespec *ts, \ 8341.219Schristos lwpid_t unpark, const void *hint, \ 8351.219Schristos const void *unparkhint); } 8361.226Spooka435 STD RUMP { int|sys|50|kevent(int fd, \ 8371.219Schristos const struct kevent *changelist, size_t nchanges, \ 8381.219Schristos struct kevent *eventlist, size_t nevents, \ 8391.219Schristos const struct timespec *timeout); } 8401.226Spooka436 STD RUMP { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \ 8411.219Schristos fd_set *ex, const struct timespec *ts, \ 8421.219Schristos const sigset_t *mask); } 8431.226Spooka437 STD RUMP { int|sys|50|pollts(struct pollfd *fds, u_int nfds, \ 8441.219Schristos const struct timespec *ts, const sigset_t *mask); } 8451.221Spooka438 STD MODULAR { int|sys|50|aio_suspend( \ 8461.219Schristos const struct aiocb *const *list, \ 8471.219Schristos int nent, const struct timespec *timeout); } 8481.221Spooka439 STD RUMP { int|sys|50|stat(const char *path, struct stat *ub); } 8491.226Spooka440 STD RUMP { int|sys|50|fstat(int fd, struct stat *sb); } 8501.221Spooka441 STD RUMP { int|sys|50|lstat(const char *path, struct stat *ub); } 8511.219Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 8521.221Spooka442 STD { int|sys|50|__semctl(int semid, int semnum, int cmd, \ 8531.219Schristos ... union __semun *arg); } 8541.219Schristos#else 8551.219Schristos442 EXCL ____semctl50 8561.219Schristos#endif 8571.219Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 8581.221Spooka443 STD { int|sys|50|shmctl(int shmid, int cmd, \ 8591.219Schristos struct shmid_ds *buf); } 8601.219Schristos#else 8611.219Schristos443 EXCL ____shmctl50 8621.219Schristos#endif 8631.219Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 8641.221Spooka444 STD { int|sys|50|msgctl(int msqid, int cmd, \ 8651.219Schristos struct msqid_ds *buf); } 8661.219Schristos#else 8671.219Schristos444 EXCL ____msgctl50 8681.219Schristos#endif 8691.221Spooka445 STD { int|sys|50|getrusage(int who, struct rusage *rusage); } 8701.221Spooka446 STD { int|sys|50|timer_settime(timer_t timerid, \ 8711.219Schristos int flags, const struct itimerspec *value, \ 8721.219Schristos struct itimerspec *ovalue); } 8731.221Spooka447 STD { int|sys|50|timer_gettime(timer_t timerid, struct \ 8741.219Schristos itimerspec *value); } 8751.219Schristos#if defined(NTP) || !defined(_KERNEL_OPT) 8761.221Spooka448 STD { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } 8771.219Schristos#else 8781.219Schristos448 EXCL ___ntp_gettime50 8791.219Schristos#endif 8801.243Schristos449 STD { int|sys|50|wait4(pid_t pid, int *status, \ 8811.219Schristos int options, struct rusage *rusage); } 8821.221Spooka450 STD RUMP { int|sys|50|mknod(const char *path, mode_t mode, \ 8831.219Schristos dev_t dev); } 8841.226Spooka451 STD RUMP { int|sys|50|fhstat(const void *fhp, \ 8851.219Schristos size_t fh_size, struct stat *sb); } 886