syscalls.master revision 1.305
11.305Schristos $NetBSD: syscalls.master,v 1.305 2020/05/16 18:31:50 christos 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.274Spgoyette; MODULAR modname :attempt to autoload system call module if not present 161.245Spooka; RUMP: generate rump syscall entry point 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.245Spooka; NOERR included, syscall does not set errno 291.259Schristos; EXTERN implemented, but as 3rd party module 301.23Scgd; 311.227Spooka; arguments: 321.227Spooka; PAD argument not part of the C interface, used only for padding 331.227Spooka; 341.23Scgd; The compat options are defined in the syscalls.conf file, and the 351.23Scgd; compat option name is prefixed to the syscall name. Other than 361.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for 371.23Scgd; 'libcompat' options). 381.23Scgd; 391.23Scgd; The type-dependent arguments are as follows: 401.23Scgd; For STD, NODEF, NOARGS, and compat syscalls: 411.221Spooka; { return_type|prefix|compat(optional)|basename(pseudo-proto); } [alias] 421.23Scgd; For other syscalls: 431.23Scgd; [comment] 441.23Scgd; 451.23Scgd; #ifdef's, etc. may be included, and are copied to the output files. 461.70Sthorpej; #include's are copied to the syscall names and switch definition files only. 471.77Sthorpej 481.296Schristos#ifdef _KERNEL_OPT 491.223Sapb#include "opt_modular.h" 501.102Sbjh21#include "opt_ntp.h" 511.85Stron#include "opt_sysv.h" 521.296Schristos#endif 531.70Sthorpej 541.23Scgd#include <sys/param.h> 551.23Scgd#include <sys/systm.h> 561.23Scgd#include <sys/signal.h> 571.249Schristos#include <sys/socket.h> 581.23Scgd#include <sys/mount.h> 591.204Stsutsui#include <sys/sched.h> 601.283Schristos#include <sys/idtype.h> 611.23Scgd#include <sys/syscallargs.h> 621.305Schristos#include <sys/acl.h> 631.103Smycroft 641.103Smycroft%% 651.1Sglass 661.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive 671.1Sglass; are reserved for use in future Berkeley releases. 681.1Sglass; Additional system calls implemented in vendor and other 691.1Sglass; redistributions should be placed in the reserved range at the end 701.1Sglass; of the current calls. 711.1Sglass 721.221Spooka0 INDIR { int|sys||syscall(int code, \ 731.179Sdsl ... register_t args[SYS_MAXSYSARGS]); } 741.300Schristos1 STD { void|sys||exit(int rval); } 751.300Schristos2 STD { int|sys||fork(void); } 761.299Schristos3 STD RUMP { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 771.299Schristos4 STD RUMP { ssize_t|sys||write(int fd, const void *buf, \ 781.46Scgd size_t nbyte); } 791.299Schristos5 STD RUMP { int|sys||open(const char *path, \ 801.60Schristos int flags, ... mode_t mode); } 811.299Schristos6 STD RUMP { int|sys||close(int fd); } 821.294Spgoyette7 COMPAT_50 MODULAR compat_50 { int|sys||wait4(pid_t pid, int *status, \ 831.219Schristos int options, struct rusage50 *rusage); } 841.294Spgoyette8 COMPAT_43 MODULAR compat_43 \ 851.274Spgoyette { int|sys||creat(const char *path, mode_t mode); } ocreat 861.299Schristos9 STD RUMP { int|sys||link(const char *path, const char *link); } 871.299Schristos10 STD RUMP { int|sys||unlink(const char *path); } 881.23Scgd11 OBSOL execv 891.299Schristos12 STD RUMP { int|sys||chdir(const char *path); } 901.299Schristos13 STD RUMP { int|sys||fchdir(int fd); } 911.294Spgoyette14 COMPAT_50 MODULAR compat_50 RUMP \ 921.274Spgoyette { int|sys||mknod(const char *path, mode_t mode, uint32_t dev); } 931.299Schristos15 STD RUMP { int|sys||chmod(const char *path, mode_t mode); } 941.299Schristos16 STD RUMP { int|sys||chown(const char *path, uid_t uid, \ 951.46Scgd gid_t gid); } 961.300Schristos17 STD { int|sys||obreak(char *nsize); } break 971.294Spgoyette18 COMPAT_20 MODULAR compat_20 { int|sys||getfsstat(struct statfs12 *buf, \ 981.139Schristos long bufsize, int flags); } 991.294Spgoyette19 COMPAT_43 MODULAR compat_43 \ 1001.274Spgoyette { long|sys||lseek(int fd, long offset, int whence); }\ 1011.29Smycroft olseek 1021.300Schristos20 NOERR RUMP { pid_t|sys||getpid_with_ppid(void); } getpid 1031.294Spgoyette21 COMPAT_40 MODULAR compat_40 \ 1041.274Spgoyette { int|sys||mount(const char *type, const char *path, \ 1051.46Scgd int flags, void *data); } 1061.299Schristos22 STD RUMP { int|sys||unmount(const char *path, int flags); } 1071.299Schristos23 STD RUMP { int|sys||setuid(uid_t uid); } 1081.300Schristos24 NOERR RUMP { uid_t|sys||getuid_with_euid(void); } getuid 1091.300Schristos25 NOERR RUMP { uid_t|sys||geteuid(void); } 1101.300Schristos26 STD MODULAR ptrace \ 1111.286Spgoyette { int|sys||ptrace(int req, pid_t pid, void *addr, \ 1121.23Scgd int data); } 1131.299Schristos27 STD RUMP { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \ 1141.28Smycroft int flags); } 1151.299Schristos28 STD RUMP { ssize_t|sys||sendmsg(int s, \ 1161.46Scgd const struct msghdr *msg, int flags); } 1171.299Schristos29 STD RUMP { ssize_t|sys||recvfrom(int s, void *buf, size_t len, \ 1181.46Scgd int flags, struct sockaddr *from, \ 1191.249Schristos socklen_t *fromlenaddr); } 1201.221Spooka30 STD RUMP { int|sys||accept(int s, struct sockaddr *name, \ 1211.249Schristos socklen_t *anamelen); } 1221.222Spooka31 STD RUMP { int|sys||getpeername(int fdes, struct sockaddr *asa, \ 1231.249Schristos socklen_t *alen); } 1241.222Spooka32 STD RUMP { int|sys||getsockname(int fdes, struct sockaddr *asa, \ 1251.249Schristos socklen_t *alen); } 1261.299Schristos33 STD RUMP { int|sys||access(const char *path, int flags); } 1271.299Schristos34 STD RUMP { int|sys||chflags(const char *path, u_long flags); } 1281.299Schristos35 STD RUMP { int|sys||fchflags(int fd, u_long flags); } 1291.300Schristos36 NOERR RUMP { void|sys||sync(void); } 1301.300Schristos37 STD { int|sys||kill(pid_t pid, int signum); } 1311.294Spgoyette38 COMPAT_43 MODULAR compat_43 \ 1321.274Spgoyette { int|sys||stat(const char *path, struct stat43 *ub); } stat43 1331.300Schristos39 NOERR RUMP { pid_t|sys||getppid(void); } 1341.294Spgoyette40 COMPAT_43 MODULAR compat_43 \ 1351.274Spgoyette { int|sys||lstat(const char *path, \ 1361.60Schristos struct stat43 *ub); } lstat43 1371.299Schristos41 STD RUMP { int|sys||dup(int fd); } 1381.299Schristos42 STD RUMP { int|sys||pipe(void); } 1391.300Schristos43 NOERR RUMP { gid_t|sys||getegid(void); } 1401.300Schristos44 STD { int|sys||profil(char *samples, size_t size, \ 1411.30Scgd u_long offset, u_int scale); } 1421.299Schristos45 STD RUMP { int|sys||ktrace(const char *fname, int ops, \ 1431.243Schristos int facs, pid_t pid); } 1441.294Spgoyette46 COMPAT_13 MODULAR compat_13 { int|sys||sigaction(int signum, \ 1451.82Smycroft const struct sigaction13 *nsa, \ 1461.82Smycroft struct sigaction13 *osa); } sigaction13 1471.300Schristos47 NOERR RUMP { gid_t|sys||getgid_with_egid(void); } getgid 1481.294Spgoyette48 COMPAT_13 MODULAR compat_13 { int|sys||sigprocmask(int how, \ 1491.82Smycroft int mask); } sigprocmask13 1501.299Schristos49 STD RUMP { int|sys||__getlogin(char *namebuf, size_t namelen); } 1511.300Schristos50 STD RUMP { int|sys||__setlogin(const char *namebuf); } 1521.300Schristos51 STD { int|sys||acct(const char *path); } 1531.294Spgoyette52 COMPAT_13 MODULAR compat_13 { int|sys||sigpending(void); } sigpending13 1541.294Spgoyette53 COMPAT_13 MODULAR compat_13 { int|sys||sigaltstack( \ 1551.82Smycroft const struct sigaltstack13 *nss, \ 1561.82Smycroft struct sigaltstack13 *oss); } sigaltstack13 1571.221Spooka54 STD RUMP { int|sys||ioctl(int fd, \ 1581.61Schristos u_long com, ... void *data); } 1591.294Spgoyette55 COMPAT_12 MODULAR compat_12 { int|sys||reboot(int opt); } oreboot 1601.299Schristos56 STD RUMP { int|sys||revoke(const char *path); } 1611.299Schristos57 STD RUMP { int|sys||symlink(const char *path, \ 1621.46Scgd const char *link); } 1631.299Schristos58 STD RUMP { ssize_t|sys||readlink(const char *path, char *buf, \ 1641.72Skleink size_t count); } 1651.300Schristos59 STD { int|sys||execve(const char *path, \ 1661.46Scgd char * const *argp, char * const *envp); } 1671.299Schristos60 STD RUMP { mode_t|sys||umask(mode_t newmask); } 1681.299Schristos61 STD RUMP { int|sys||chroot(const char *path); } 1691.294Spgoyette62 COMPAT_43 MODULAR compat_43 \ 1701.274Spgoyette { int|sys||fstat(int fd, struct stat43 *sb); } fstat43 1711.294Spgoyette63 COMPAT_43 MODULAR compat_43 \ 1721.274Spgoyette { int|sys||getkerninfo(int op, char *where, int *size, \ 1731.29Smycroft int arg); } ogetkerninfo 1741.294Spgoyette64 COMPAT_43 MODULAR compat_43 \ 1751.274Spgoyette { int|sys||getpagesize(void); } ogetpagesize 1761.294Spgoyette65 COMPAT_12 MODULAR compat_12 { int|sys||msync(void *addr, size_t len); } 1771.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 1781.300Schristos66 STD { int|sys||vfork(void); } 1791.23Scgd67 OBSOL vread 1801.23Scgd68 OBSOL vwrite 1811.300Schristos69 OBSOL sbrk 1821.300Schristos70 OBSOL sstk 1831.294Spgoyette71 COMPAT_43 MODULAR compat_43 \ 1841.274Spgoyette { int|sys||mmap(void *addr, size_t len, int prot, \ 1851.29Smycroft int flags, int fd, long pos); } ommap 1861.300Schristos72 STD { int|sys||ovadvise(int anom); } vadvise 1871.300Schristos73 STD { int|sys||munmap(void *addr, size_t len); } 1881.300Schristos74 STD { int|sys||mprotect(void *addr, size_t len, \ 1891.28Smycroft int prot); } 1901.300Schristos75 STD { int|sys||madvise(void *addr, size_t len, \ 1911.28Smycroft int behav); } 1921.23Scgd76 OBSOL vhangup 1931.23Scgd77 OBSOL vlimit 1941.300Schristos78 STD { int|sys||mincore(void *addr, size_t len, \ 1951.28Smycroft char *vec); } 1961.299Schristos79 STD RUMP { int|sys||getgroups(int gidsetsize, \ 1971.59Smycroft gid_t *gidset); } 1981.299Schristos80 STD RUMP { int|sys||setgroups(int gidsetsize, \ 1991.46Scgd const gid_t *gidset); } 2001.299Schristos81 STD RUMP { int|sys||getpgrp(void); } 2011.299Schristos82 STD RUMP { int|sys||setpgid(pid_t pid, pid_t pgid); } 2021.294Spgoyette83 COMPAT_50 MODULAR compat_50 { int|sys||setitimer(int which, \ 2031.219Schristos const struct itimerval50 *itv, \ 2041.219Schristos struct itimerval50 *oitv); } 2051.294Spgoyette84 COMPAT_43 MODULAR compat_43 { int|sys||wait(void); } owait 2061.294Spgoyette85 COMPAT_12 MODULAR compat_12 { int|sys||swapon(const char *name); } \ 2071.294Spgoyette oswapon 2081.294Spgoyette86 COMPAT_50 MODULAR compat_50 { int|sys||getitimer(int which, \ 2091.219Schristos struct itimerval50 *itv); } 2101.294Spgoyette87 COMPAT_43 MODULAR compat_43 \ 2111.274Spgoyette { int|sys||gethostname(char *hostname, u_int len); } \ 2121.29Smycroft ogethostname 2131.294Spgoyette88 COMPAT_43 MODULAR compat_43 \ 2141.274Spgoyette { int|sys||sethostname(char *hostname, u_int len); } \ 2151.29Smycroft osethostname 2161.294Spgoyette89 COMPAT_43 MODULAR compat_43 \ 2171.274Spgoyette { int|sys||getdtablesize(void); } ogetdtablesize 2181.299Schristos90 STD RUMP { int|sys||dup2(int from, int to); } 2191.23Scgd91 UNIMPL getdopt 2201.226Spooka92 STD RUMP { int|sys||fcntl(int fd, int cmd, ... void *arg); } 2211.294Spgoyette93 COMPAT_50 MODULAR compat_50 RUMP \ 2221.274Spgoyette { int|sys||select(int nd, fd_set *in, fd_set *ou, \ 2231.219Schristos fd_set *ex, struct timeval50 *tv); } 2241.23Scgd94 UNIMPL setdopt 2251.300Schristos95 STD RUMP { int|sys||fsync(int fd); } 2261.300Schristos96 STD { int|sys||setpriority(int which, id_t who, int prio); } 2271.294Spgoyette97 COMPAT_30 MODULAR compat_30 \ 2281.274Spgoyette { int|sys||socket(int domain, int type, int protocol); } 2291.221Spooka98 STD RUMP { int|sys||connect(int s, const struct sockaddr *name, \ 2301.249Schristos socklen_t namelen); } 2311.294Spgoyette99 COMPAT_43 MODULAR compat_43 \ 2321.274Spgoyette { int|sys||accept(int s, void *name, \ 2331.249Schristos socklen_t *anamelen); } oaccept 2341.300Schristos100 STD { int|sys||getpriority(int which, id_t who); } 2351.294Spgoyette101 COMPAT_43 MODULAR compat_43 { int|sys||send(int s, void *buf, int len, \ 2361.29Smycroft int flags); } osend 2371.294Spgoyette102 COMPAT_43 MODULAR compat_43 { int|sys||recv(int s, void *buf, int len, \ 2381.29Smycroft int flags); } orecv 2391.294Spgoyette103 COMPAT_13 MODULAR compat_13 \ 2401.274Spgoyette { int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \ 2411.83Smycroft sigreturn13 2421.221Spooka104 STD RUMP { int|sys||bind(int s, const struct sockaddr *name, \ 2431.249Schristos socklen_t namelen); } 2441.221Spooka105 STD RUMP { int|sys||setsockopt(int s, int level, int name, \ 2451.249Schristos const void *val, socklen_t valsize); } 2461.221Spooka106 STD RUMP { int|sys||listen(int s, int backlog); } 2471.23Scgd107 OBSOL vtimes 2481.294Spgoyette108 COMPAT_43 MODULAR compat_43 \ 2491.274Spgoyette { int|sys||sigvec(int signum, struct sigvec *nsv, \ 2501.29Smycroft struct sigvec *osv); } osigvec 2511.274Spgoyette109 COMPAT_43 MODULAR compat { int|sys||sigblock(int mask); } osigblock 2521.274Spgoyette110 COMPAT_43 MODULAR compat { int|sys||sigsetmask(int mask); } osigsetmask 2531.274Spgoyette111 COMPAT_13 MODULAR compat { int|sys||sigsuspend(int mask); } sigsuspend13 2541.294Spgoyette112 COMPAT_43 MODULAR compat_43 { int|sys||sigstack(struct sigstack *nss, \ 2551.29Smycroft struct sigstack *oss); } osigstack 2561.294Spgoyette113 COMPAT_43 MODULAR compat_43 \ 2571.274Spgoyette { int|sys||recvmsg(int s, struct omsghdr *msg, \ 2581.29Smycroft int flags); } orecvmsg 2591.294Spgoyette114 COMPAT_43 MODULAR compat_43 \ 2601.274Spgoyette { int|sys||sendmsg(int s, void *msg, int flags); } osendmsg 2611.23Scgd115 OBSOL vtrace 2621.294Spgoyette116 COMPAT_50 MODULAR compat_50 \ 2631.294Spgoyette { int|sys||gettimeofday(struct timeval50 *tp, void *tzp); } 2641.294Spgoyette117 COMPAT_50 MODULAR compat_50 \ 2651.274Spgoyette { int|sys||getrusage(int who, struct rusage50 *rusage); } 2661.221Spooka118 STD RUMP { int|sys||getsockopt(int s, int level, int name, \ 2671.249Schristos void *val, socklen_t *avalsize); } 2681.26Scgd119 OBSOL resuba 2691.299Schristos120 STD RUMP { ssize_t|sys||readv(int fd, \ 2701.58Smycroft const struct iovec *iovp, int iovcnt); } 2711.299Schristos121 STD RUMP { ssize_t|sys||writev(int fd, \ 2721.58Smycroft const struct iovec *iovp, int iovcnt); } 2731.294Spgoyette122 COMPAT_50 MODULAR compat_50 \ 2741.274Spgoyette { int|sys||settimeofday(const struct timeval50 *tv, \ 2751.141Skleink const void *tzp); } 2761.299Schristos123 STD RUMP { int|sys||fchown(int fd, uid_t uid, gid_t gid); } 2771.299Schristos124 STD RUMP { int|sys||fchmod(int fd, mode_t mode); } 2781.294Spgoyette125 COMPAT_43 MODULAR compat_43 \ 2791.274Spgoyette { int|sys||recvfrom(int s, void *buf, size_t len, \ 2801.249Schristos int flags, void *from, socklen_t *fromlenaddr); } \ 2811.29Smycroft orecvfrom 2821.299Schristos126 STD RUMP { int|sys||setreuid(uid_t ruid, uid_t euid); } 2831.299Schristos127 STD RUMP { int|sys||setregid(gid_t rgid, gid_t egid); } 2841.299Schristos128 STD RUMP { int|sys||rename(const char *from, const char *to); } 2851.294Spgoyette129 COMPAT_43 MODULAR compat_43 \ 2861.274Spgoyette { int|sys||truncate(const char *path, long length); } otruncate 2871.294Spgoyette130 COMPAT_43 MODULAR compat_43 \ 2881.274Spgoyette { int|sys||ftruncate(int fd, long length); } oftruncate 2891.299Schristos131 STD RUMP { int|sys||flock(int fd, int how); } 2901.299Schristos132 STD RUMP { int|sys||mkfifo(const char *path, mode_t mode); } 2911.299Schristos133 STD RUMP { ssize_t|sys||sendto(int s, const void *buf, \ 2921.46Scgd size_t len, int flags, const struct sockaddr *to, \ 2931.249Schristos socklen_t tolen); } 2941.299Schristos134 STD RUMP { int|sys||shutdown(int s, int how); } 2951.299Schristos135 STD RUMP { int|sys||socketpair(int domain, int type, \ 2961.28Smycroft int protocol, int *rsv); } 2971.299Schristos136 STD RUMP { int|sys||mkdir(const char *path, mode_t mode); } 2981.299Schristos137 STD RUMP { int|sys||rmdir(const char *path); } 2991.294Spgoyette138 COMPAT_50 MODULAR compat_50 RUMP { int|sys||utimes(const char *path, \ 3001.219Schristos const struct timeval50 *tptr); } 3011.23Scgd139 OBSOL 4.2 sigreturn 3021.294Spgoyette140 COMPAT_50 MODULAR compat_50 \ 3031.274Spgoyette { int|sys||adjtime(const struct timeval50 *delta, \ 3041.219Schristos struct timeval50 *olddelta); } 3051.294Spgoyette141 COMPAT_43 MODULAR compat_43 \ 3061.274Spgoyette { int|sys||getpeername(int fdes, void *asa, \ 3071.249Schristos socklen_t *alen); } ogetpeername 3081.294Spgoyette142 COMPAT_43 MODULAR compat_43 \ 3091.274Spgoyette { int32_t|sys||gethostid(void); } ogethostid 3101.294Spgoyette143 COMPAT_43 MODULAR compat_43 \ 3111.274Spgoyette { int|sys||sethostid(int32_t hostid); } osethostid 3121.294Spgoyette144 COMPAT_43 MODULAR compat_43 \ 3131.274Spgoyette { int|sys||getrlimit(int which, \ 3141.58Smycroft struct orlimit *rlp); } ogetrlimit 3151.294Spgoyette145 COMPAT_43 MODULAR compat_43 { int|sys||setrlimit(int which, \ 3161.58Smycroft const struct orlimit *rlp); } osetrlimit 3171.294Spgoyette146 COMPAT_43 MODULAR compat_43 \ 3181.274Spgoyette { int|sys||killpg(int pgid, int signum); } okillpg 3191.300Schristos147 STD RUMP { int|sys||setsid(void); } 3201.297Spgoyette148 COMPAT_50 MODULAR compat_50_quota \ 3211.297Spgoyette { int|sys||quotactl(const char *path, \ 3221.295Schristos int cmd, int uid, void *arg); } 3231.294Spgoyette149 COMPAT_43 MODULAR compat_43 { int|sys||quota(void); } oquota 3241.294Spgoyette150 COMPAT_43 MODULAR compat_43 { int|sys||getsockname(int fdec, \ 3251.294Spgoyette void *asa, socklen_t *alen); } ogetsockname 3261.1Sglass 3271.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 3281.1Sglass; system calls. (This includes various calls added for compatibity 3291.1Sglass; with other Unix variants.) 3301.1Sglass; Some of these calls are now supported by BSD... 3311.23Scgd151 UNIMPL 3321.23Scgd152 UNIMPL 3331.23Scgd153 UNIMPL 3341.23Scgd154 UNIMPL 3351.301Schristos155 STD MODULAR nfsserver RUMP { int|sys||nfssvc(int flag, void *argp); } 3361.294Spgoyette156 COMPAT_43 MODULAR compat_43 \ 3371.274Spgoyette { int|sys||getdirentries(int fd, char *buf, \ 3381.29Smycroft u_int count, long *basep); } ogetdirentries 3391.294Spgoyette157 COMPAT_20 MODULAR compat_20 { int|sys||statfs(const char *path, \ 3401.139Schristos struct statfs12 *buf); } 3411.294Spgoyette158 COMPAT_20 MODULAR compat_20 \ 3421.274Spgoyette { int|sys||fstatfs(int fd, struct statfs12 *buf); } 3431.23Scgd159 UNIMPL 3441.23Scgd160 UNIMPL 3451.294Spgoyette161 COMPAT_30 MODULAR compat_30 { int|sys||getfh(const char *fname, \ 3461.155Smartin struct compat_30_fhandle *fhp); } 3471.294Spgoyette162 COMPAT_09 MODULAR compat_09 \ 3481.274Spgoyette { int|sys||getdomainname(char *domainname, int len); } \ 3491.29Smycroft ogetdomainname 3501.294Spgoyette163 COMPAT_09 MODULAR compat_09 \ 3511.274Spgoyette { int|sys||setdomainname(char *domainname, int len); } \ 3521.29Smycroft osetdomainname 3531.274Spgoyette164 COMPAT_09 MODULAR compat \ 3541.274Spgoyette { int|sys||uname(struct outsname *name); } ouname 3551.300Schristos165 STD { int|sys||sysarch(int op, void *parms); } 3561.304Sthorpej166 STD { int|sys||__futex(int *uaddr, int op, int val, \ 3571.304Sthorpej const struct timespec *timeout, \ 3581.304Sthorpej int *uaddr2, int val2, int val3); } 3591.304Sthorpej167 STD { int|sys||__futex_set_robust_list(void *head, \ 3601.304Sthorpej size_t len); } 3611.304Sthorpej168 STD { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ 3621.304Sthorpej void **headp, size_t *lenp); } 3631.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3641.277Spgoyette#if !defined(_LP64) 3651.294Spgoyette169 COMPAT_10 MODULAR compat_sysv_10 \ 3661.274Spgoyette { int|sys||semsys(int which, int a2, int a3, int a4, \ 3671.29Smycroft int a5); } osemsys 3681.9Scgd#else 3691.92Schristos169 EXCL 1.0 semsys 3701.9Scgd#endif 3711.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3721.277Spgoyette#if !defined(_LP64) 3731.294Spgoyette170 COMPAT_10 MODULAR compat_sysv_10 \ 3741.274Spgoyette { int|sys||msgsys(int which, int a2, int a3, int a4, \ 3751.29Smycroft int a5, int a6); } omsgsys 3761.9Scgd#else 3771.92Schristos170 EXCL 1.0 msgsys 3781.9Scgd#endif 3791.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3801.277Spgoyette#if !defined(_LP64) 3811.294Spgoyette171 COMPAT_10 MODULAR compat_sysv_10 \ 3821.274Spgoyette { int|sys||shmsys(int which, int a2, int a3, int a4); } \ 3831.29Smycroft oshmsys 3841.1Sglass#else 3851.92Schristos171 EXCL 1.0 shmsys 3861.1Sglass#endif 3871.23Scgd172 UNIMPL 3881.299Schristos173 STD RUMP { ssize_t|sys||pread(int fd, void *buf, \ 3891.227Spooka size_t nbyte, int PAD, off_t offset); } 3901.299Schristos174 STD RUMP { ssize_t|sys||pwrite(int fd, const void *buf, \ 3911.227Spooka size_t nbyte, int PAD, off_t offset); } 3921.102Sbjh21; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded. 3931.294Spgoyette175 COMPAT_30 MODULAR compat_30 \ 3941.294Spgoyette { int|sys||ntp_gettime(struct ntptimeval30 *ntvp); } 3951.216Sad#if defined(NTP) || !defined(_KERNEL_OPT) 3961.300Schristos176 STD { int|sys||ntp_adjtime(struct timex *tp); } 3971.102Sbjh21#else 3981.102Sbjh21176 EXCL ntp_adjtime 3991.102Sbjh21#endif 4001.23Scgd177 UNIMPL 4011.23Scgd178 UNIMPL 4021.23Scgd179 UNIMPL 4031.23Scgd180 UNIMPL 4041.1Sglass 4051.1Sglass; Syscalls 180-199 are used by/reserved for BSD 4061.299Schristos181 STD RUMP { int|sys||setgid(gid_t gid); } 4071.299Schristos182 STD RUMP { int|sys||setegid(gid_t egid); } 4081.299Schristos183 STD RUMP { int|sys||seteuid(uid_t euid); } 4091.274Spgoyette184 STD MODULAR lfs { int|sys||lfs_bmapv(fsid_t *fsidp, \ 4101.23Scgd struct block_info *blkiov, int blkcnt); } 4111.274Spgoyette185 STD MODULAR lfs { int|sys||lfs_markv(fsid_t *fsidp, \ 4121.23Scgd struct block_info *blkiov, int blkcnt); } 4131.274Spgoyette186 STD MODULAR lfs { int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); } 4141.294Spgoyette187 COMPAT_50 MODULAR compat_50 { int|sys||lfs_segwait(fsid_t *fsidp, \ 4151.219Schristos struct timeval50 *tv); } 4161.294Spgoyette188 COMPAT_12 MODULAR compat_12 \ 4171.274Spgoyette { int|sys||stat(const char *path, struct stat12 *ub); } stat12 4181.294Spgoyette189 COMPAT_12 MODULAR compat_12 \ 4191.274Spgoyette { int|sys||fstat(int fd, struct stat12 *sb); } fstat12 4201.294Spgoyette190 COMPAT_12 MODULAR compat_12 { int|sys||lstat(const char *path, \ 4211.60Schristos struct stat12 *ub); } lstat12 4221.299Schristos191 STD RUMP { long|sys||pathconf(const char *path, int name); } 4231.299Schristos192 STD RUMP { long|sys||fpathconf(int fd, int name); } 4241.293Srjs193 STD RUMP { int|sys||getsockopt2(int s, int level, int name, \ 4251.293Srjs void *val, socklen_t *avalsize); } 4261.299Schristos194 STD RUMP { int|sys||getrlimit(int which, \ 4271.58Smycroft struct rlimit *rlp); } 4281.299Schristos195 STD RUMP { int|sys||setrlimit(int which, \ 4291.46Scgd const struct rlimit *rlp); } 4301.294Spgoyette196 COMPAT_12 MODULAR compat_12 \ 4311.274Spgoyette { int|sys||getdirentries(int fd, char *buf, \ 4321.28Smycroft u_int count, long *basep); } 4331.300Schristos197 STD { void *|sys||mmap(void *addr, size_t len, int prot, \ 4341.227Spooka int flags, int fd, long PAD, off_t pos); } 4351.221Spooka198 INDIR { quad_t|sys||__syscall(quad_t code, \ 4361.179Sdsl ... register_t args[SYS_MAXSYSARGS]); } 4371.299Schristos199 STD RUMP { off_t|sys||lseek(int fd, int PAD, off_t offset, \ 4381.23Scgd int whence); } 4391.299Schristos200 STD RUMP { int|sys||truncate(const char *path, int PAD, \ 4401.46Scgd off_t length); } 4411.299Schristos201 STD RUMP { int|sys||ftruncate(int fd, int PAD, off_t length); } 4421.300Schristos202 STD RUMP { int|sys||__sysctl(const int *name, u_int namelen, \ 4431.269Sjoerg void *oldv, size_t *oldlenp, const void *newv, \ 4441.28Smycroft size_t newlen); } 4451.300Schristos203 STD { int|sys||mlock(const void *addr, size_t len); } 4461.300Schristos204 STD { int|sys||munlock(const void *addr, size_t len); } 4471.300Schristos205 STD { int|sys||undelete(const char *path); } 4481.294Spgoyette206 COMPAT_50 MODULAR compat_50 RUMP { int|sys||futimes(int fd, \ 4491.219Schristos const struct timeval50 *tptr); } 4501.299Schristos207 STD RUMP { pid_t|sys||getpgid(pid_t pid); } 4511.299Schristos208 STD RUMP { int|sys||reboot(int opt, char *bootstr); } 4521.299Schristos209 STD RUMP { int|sys||poll(struct pollfd *fds, u_int nfds, \ 4531.35Smycroft int timeout); } 4541.11Scgd; 4551.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 4561.11Scgd; 4571.274Spgoyette210 EXTERN MODULAR openafs { int|sys||afssys(long id, long a1, long a2, \ 4581.259Schristos long a3, long a4, long a5, long a6); } 4591.212Sad211 UNIMPL 4601.212Sad212 UNIMPL 4611.212Sad213 UNIMPL 4621.212Sad214 UNIMPL 4631.212Sad215 UNIMPL 4641.212Sad216 UNIMPL 4651.212Sad217 UNIMPL 4661.212Sad218 UNIMPL 4671.212Sad219 UNIMPL 4681.49Skleink; System calls 220-300 are reserved for use by NetBSD 4691.294Spgoyette220 COMPAT_14 MODULAR compat_sysv_14 \ 4701.274Spgoyette { int|sys||__semctl(int semid, int semnum, int cmd, \ 4711.97Sthorpej union __semun *arg); } 4721.277Spgoyette221 STD MODULAR sysv_ipc { int|sys||semget(key_t key, int nsems, \ 4731.277Spgoyette int semflg); } 4741.277Spgoyette222 STD MODULAR sysv_ipc { int|sys||semop(int semid, struct sembuf *sops, \ 4751.74Skleink size_t nsops); } 4761.277Spgoyette223 STD MODULAR sysv_ipc { int|sys||semconfig(int flag); } 4771.294Spgoyette224 COMPAT_14 MODULAR compat_sysv_14 { int|sys||msgctl(int msqid, int cmd, \ 4781.97Sthorpej struct msqid_ds14 *buf); } 4791.277Spgoyette225 STD MODULAR sysv_ipc { int|sys||msgget(key_t key, int msgflg); } 4801.277Spgoyette226 STD MODULAR sysv_ipc { int|sys||msgsnd(int msqid, const void *msgp, \ 4811.74Skleink size_t msgsz, int msgflg); } 4821.277Spgoyette227 STD MODULAR sysv_ipc { ssize_t|sys||msgrcv(int msqid, void *msgp, \ 4831.74Skleink size_t msgsz, long msgtyp, int msgflg); } 4841.277Spgoyette228 STD MODULAR sysv_ipc { void *|sys||shmat(int shmid, \ 4851.277Spgoyette const void *shmaddr, int shmflg); } 4861.294Spgoyette229 COMPAT_14 MODULAR compat_sysv_14 { int|sys||shmctl(int shmid, int cmd, \ 4871.97Sthorpej struct shmid_ds14 *buf); } 4881.277Spgoyette230 STD MODULAR sysv_ipc { int|sys||shmdt(const void *shmaddr); } 4891.277Spgoyette231 STD MODULAR sysv_ipc { int|sys||shmget(key_t key, size_t size, \ 4901.277Spgoyette int shmflg); } 4911.294Spgoyette232 COMPAT_50 MODULAR compat_50 \ 4921.294Spgoyette { int|sys||clock_gettime(clockid_t clock_id, \ 4931.294Spgoyette struct timespec50 *tp); } 4941.294Spgoyette233 COMPAT_50 MODULAR compat_50 \ 4951.294Spgoyette { int|sys||clock_settime(clockid_t clock_id, \ 4961.294Spgoyette const struct timespec50 *tp); } 4971.294Spgoyette234 COMPAT_50 MODULAR compat_50 \ 4981.294Spgoyette { int|sys||clock_getres(clockid_t clock_id, \ 4991.294Spgoyette struct timespec50 *tp); } 5001.299Schristos235 STD RUMP { int|sys||timer_create(clockid_t clock_id, \ 5011.118Sthorpej struct sigevent *evp, timer_t *timerid); } 5021.299Schristos236 STD RUMP { int|sys||timer_delete(timer_t timerid); } 5031.294Spgoyette237 COMPAT_50 MODULAR compat_50 { int|sys||timer_settime(timer_t timerid, \ 5041.274Spgoyette int flags, const struct itimerspec50 *value, \ 5051.219Schristos struct itimerspec50 *ovalue); } 5061.294Spgoyette238 COMPAT_50 MODULAR compat_50 { int|sys||timer_gettime(timer_t timerid, \ 5071.274Spgoyette struct itimerspec50 *value); } 5081.299Schristos239 STD RUMP { int|sys||timer_getoverrun(timer_t timerid); } 5091.54Sveego; 5101.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 5111.54Sveego; 5121.294Spgoyette240 COMPAT_50 MODULAR compat_50 \ 5131.274Spgoyette { int|sys||nanosleep(const struct timespec50 *rqtp, \ 5141.219Schristos struct timespec50 *rmtp); } 5151.299Schristos241 STD RUMP { int|sys||fdatasync(int fd); } 5161.300Schristos242 STD { int|sys||mlockall(int flags); } 5171.300Schristos243 STD { int|sys||munlockall(void); } 5181.294Spgoyette244 COMPAT_50 MODULAR compat_50 \ 5191.274Spgoyette { int|sys||__sigtimedwait(const sigset_t *set, \ 5201.274Spgoyette siginfo_t *info, struct timespec50 *timeout); } 5211.240Schristos245 STD { int|sys||sigqueueinfo(pid_t pid, \ 5221.240Schristos const siginfo_t *info); } 5231.300Schristos246 STD RUMP { int|sys||modctl(int cmd, void *arg); } 5241.301Schristos247 STD MODULAR ksem RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); } 5251.301Schristos248 STD MODULAR ksem RUMP { int|sys||_ksem_open(const char *name, int oflag, \ 5261.214Sad mode_t mode, unsigned int value, intptr_t *idp); } 5271.301Schristos249 STD MODULAR ksem RUMP { int|sys||_ksem_unlink(const char *name); } 5281.301Schristos250 STD MODULAR ksem RUMP { int|sys||_ksem_close(intptr_t id); } 5291.301Schristos251 STD MODULAR ksem RUMP { int|sys||_ksem_post(intptr_t id); } 5301.301Schristos252 STD MODULAR ksem RUMP { int|sys||_ksem_wait(intptr_t id); } 5311.301Schristos253 STD MODULAR ksem RUMP { int|sys||_ksem_trywait(intptr_t id); } 5321.301Schristos254 STD MODULAR ksem RUMP { int|sys||_ksem_getvalue(intptr_t id, \ 5331.119Schristos unsigned int *value); } 5341.301Schristos255 STD MODULAR ksem RUMP { int|sys||_ksem_destroy(intptr_t id); } 5351.301Schristos256 STD MODULAR ksem RUMP { int|sys||_ksem_timedwait(intptr_t id, \ 5361.258Sjoerg const struct timespec *abstime); } 5371.274Spgoyette257 STD MODULAR mqueue \ 5381.274Spgoyette { mqd_t|sys||mq_open(const char * name, int oflag, \ 5391.177Srmind mode_t mode, struct mq_attr *attr); } 5401.274Spgoyette258 STD MODULAR mqueue { int|sys||mq_close(mqd_t mqdes); } 5411.274Spgoyette259 STD MODULAR mqueue { int|sys||mq_unlink(const char *name); } 5421.274Spgoyette260 STD MODULAR mqueue \ 5431.274Spgoyette { int|sys||mq_getattr(mqd_t mqdes, \ 5441.177Srmind struct mq_attr *mqstat); } 5451.274Spgoyette261 STD MODULAR mqueue \ 5461.274Spgoyette { int|sys||mq_setattr(mqd_t mqdes, \ 5471.177Srmind const struct mq_attr *mqstat, \ 5481.177Srmind struct mq_attr *omqstat); } 5491.274Spgoyette262 STD MODULAR mqueue \ 5501.274Spgoyette { int|sys||mq_notify(mqd_t mqdes, \ 5511.177Srmind const struct sigevent *notification); } 5521.274Spgoyette263 STD MODULAR mqueue \ 5531.274Spgoyette { int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \ 5541.177Srmind size_t msg_len, unsigned msg_prio); } 5551.274Spgoyette264 STD MODULAR mqueue \ 5561.274Spgoyette { ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \ 5571.177Srmind size_t msg_len, unsigned *msg_prio); } 5581.294Spgoyette265 COMPAT_50 MODULAR compat_50 \ 5591.294Spgoyette { int|sys||mq_timedsend(mqd_t mqdes, \ 5601.294Spgoyette const char *msg_ptr, size_t msg_len, \ 5611.294Spgoyette unsigned msg_prio, \ 5621.294Spgoyette const struct timespec50 *abs_timeout); } 5631.294Spgoyette266 COMPAT_50 MODULAR compat_50 \ 5641.294Spgoyette { ssize_t|sys||mq_timedreceive(mqd_t mqdes, \ 5651.294Spgoyette char *msg_ptr, size_t msg_len, unsigned *msg_prio, \ 5661.294Spgoyette const struct timespec50 *abs_timeout); } 5671.49Skleink267 UNIMPL 5681.49Skleink268 UNIMPL 5691.49Skleink269 UNIMPL 5701.299Schristos270 STD RUMP { int|sys||__posix_rename(const char *from, \ 5711.49Skleink const char *to); } 5721.300Schristos271 STD { int|sys||swapctl(int cmd, void *arg, int misc); } 5731.294Spgoyette272 COMPAT_30 MODULAR compat_30 \ 5741.294Spgoyette { int|sys||getdents(int fd, char *buf, size_t count); } 5751.300Schristos273 STD { int|sys||minherit(void *addr, size_t len, \ 5761.54Sveego int inherit); } 5771.299Schristos274 STD RUMP { int|sys||lchmod(const char *path, mode_t mode); } 5781.299Schristos275 STD RUMP { int|sys||lchown(const char *path, uid_t uid, \ 5791.56Senami gid_t gid); } 5801.294Spgoyette276 COMPAT_50 MODULAR compat_50 RUMP { int|sys||lutimes(const char *path, \ 5811.219Schristos const struct timeval50 *tptr); } 5821.300Schristos277 STD { int|sys|13|msync(void *addr, size_t len, int flags); } 5831.294Spgoyette278 COMPAT_30 MODULAR compat_30 \ 5841.274Spgoyette { int|sys|13|stat(const char *path, struct stat13 *ub); } 5851.294Spgoyette279 COMPAT_30 MODULAR compat_30 \ 5861.274Spgoyette { int|sys|13|fstat(int fd, struct stat13 *sb); } 5871.294Spgoyette280 COMPAT_30 MODULAR compat_30 \ 5881.274Spgoyette { int|sys|13|lstat(const char *path, struct stat13 *ub); } 5891.300Schristos281 STD { int|sys|14|sigaltstack( \ 5901.82Smycroft const struct sigaltstack *nss, \ 5911.82Smycroft struct sigaltstack *oss); } 5921.300Schristos282 STD { int|sys|14|vfork(void); } 5931.299Schristos283 STD RUMP { int|sys||__posix_chown(const char *path, uid_t uid, \ 5941.69Skleink gid_t gid); } 5951.299Schristos284 STD RUMP { int|sys||__posix_fchown(int fd, uid_t uid, \ 5961.69Skleink gid_t gid); } 5971.299Schristos285 STD RUMP { int|sys||__posix_lchown(const char *path, uid_t uid, \ 5981.69Skleink gid_t gid); } 5991.299Schristos286 STD RUMP { pid_t|sys||getsid(pid_t pid); } 6001.300Schristos287 STD { pid_t|sys||__clone(int flags, void *stack); } 6011.299Schristos288 STD RUMP { int|sys||fktrace(int fd, int ops, \ 6021.243Schristos int facs, pid_t pid); } 6031.299Schristos289 STD RUMP { ssize_t|sys||preadv(int fd, \ 6041.79Sthorpej const struct iovec *iovp, int iovcnt, \ 6051.227Spooka int PAD, off_t offset); } 6061.299Schristos290 STD RUMP { ssize_t|sys||pwritev(int fd, \ 6071.79Sthorpej const struct iovec *iovp, int iovcnt, \ 6081.227Spooka int PAD, off_t offset); } 6091.294Spgoyette291 COMPAT_16 MODULAR compat_16 { int|sys|14|sigaction(int signum, \ 6101.82Smycroft const struct sigaction *nsa, \ 6111.82Smycroft struct sigaction *osa); } 6121.300Schristos292 STD { int|sys|14|sigpending(sigset_t *set); } 6131.300Schristos293 STD { int|sys|14|sigprocmask(int how, \ 6141.82Smycroft const sigset_t *set, \ 6151.82Smycroft sigset_t *oset); } 6161.300Schristos294 STD { int|sys|14|sigsuspend(const sigset_t *set); } 6171.294Spgoyette295 COMPAT_16 MODULAR compat_16 \ 6181.274Spgoyette { int|sys|14|sigreturn(struct sigcontext *sigcntxp); } 6191.299Schristos296 STD RUMP { int|sys||__getcwd(char *bufp, size_t length); } 6201.299Schristos297 STD RUMP { int|sys||fchroot(int fd); } 6211.294Spgoyette298 COMPAT_30 MODULAR compat_30 \ 6221.274Spgoyette { int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); } 6231.294Spgoyette299 COMPAT_30 MODULAR compat_30 \ 6241.274Spgoyette { int|sys||fhstat(const struct compat_30_fhandle *fhp, \ 6251.152Schristos struct stat13 *sb); } 6261.294Spgoyette300 COMPAT_20 MODULAR compat_20 \ 6271.274Spgoyette { int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \ 6281.139Schristos struct statfs12 *buf); } 6291.294Spgoyette301 COMPAT_50 MODULAR compat_sysv_50 \ 6301.274Spgoyette { int|sys|13|__semctl(int semid, int semnum, int cmd, \ 6311.99Schristos ... union __semun *arg); } 6321.294Spgoyette302 COMPAT_50 MODULAR compat_sysv_50 \ 6331.294Spgoyette { int|sys|13|msgctl(int msqid, int cmd, struct msqid_ds *buf); } 6341.294Spgoyette303 COMPAT_50 MODULAR compat_sysv_50 \ 6351.294Spgoyette { int|sys|13|shmctl(int shmid, int cmd, \ 6361.219Schristos struct shmid_ds13 *buf); } 6371.299Schristos304 STD RUMP { int|sys||lchflags(const char *path, u_long flags); } 6381.300Schristos305 NOERR RUMP { int|sys||issetugid(void); } 6391.266Spooka306 STD RUMP { int|sys||utrace(const char *label, void *addr, \ 6401.118Sthorpej size_t len); } 6411.300Schristos307 STD { int|sys||getcontext(struct __ucontext *ucp); } 6421.300Schristos308 STD { int|sys||setcontext(const struct __ucontext *ucp); } 6431.300Schristos309 STD { int|sys||_lwp_create(const struct __ucontext *ucp, \ 6441.118Sthorpej u_long flags, lwpid_t *new_lwp); } 6451.300Schristos310 STD { int|sys||_lwp_exit(void); } 6461.300Schristos311 STD { lwpid_t|sys||_lwp_self(void); } 6471.300Schristos312 STD { int|sys||_lwp_wait(lwpid_t wait_for, \ 6481.118Sthorpej lwpid_t *departed); } 6491.300Schristos313 STD { int|sys||_lwp_suspend(lwpid_t target); } 6501.300Schristos314 STD { int|sys||_lwp_continue(lwpid_t target); } 6511.300Schristos315 STD { int|sys||_lwp_wakeup(lwpid_t target); } 6521.300Schristos316 STD { void *|sys||_lwp_getprivate(void); } 6531.300Schristos317 STD { void|sys||_lwp_setprivate(void *ptr); } 6541.300Schristos318 STD { int|sys||_lwp_kill(lwpid_t target, int signo); } 6551.300Schristos319 STD { int|sys||_lwp_detach(lwpid_t target); } 6561.294Spgoyette320 COMPAT_50 MODULAR compat_50 \ 6571.274Spgoyette { int|sys||_lwp_park(const struct timespec50 *ts, \ 6581.175Sad lwpid_t unpark, const void *hint, \ 6591.175Sad const void *unparkhint); } 6601.300Schristos321 STD { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } 6611.300Schristos322 STD { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \ 6621.164Sad size_t ntargets, const void *hint); } 6631.300Schristos323 STD { int|sys||_lwp_setname(lwpid_t target, \ 6641.178Sad const char *name); } 6651.300Schristos324 STD { int|sys||_lwp_getname(lwpid_t target, \ 6661.178Sad char *name, size_t len); } 6671.300Schristos325 STD { int|sys||_lwp_ctl(int features, \ 6681.180Sad struct lwpctl **address); } 6691.302Sthorpej; Syscalls 326-339 reserved for LWP syscalls. 6701.302Sthorpej326 UNIMPL 6711.107Snathanw327 UNIMPL 6721.107Snathanw328 UNIMPL 6731.107Snathanw329 UNIMPL 6741.256Smatt; SA system calls. 6751.294Spgoyette330 COMPAT_60 MODULAR compat_60 \ 6761.300Schristos { int|sys||sa_register(void *newv, void **oldv, \ 6771.257Smatt int flags, ssize_t stackinfo_offset); } 6781.294Spgoyette331 COMPAT_60 MODULAR compat_60 \ 6791.294Spgoyette { int|sys||sa_stacks(int num, stack_t *stacks); } 6801.294Spgoyette332 COMPAT_60 MODULAR compat_60 \ 6811.294Spgoyette { int|sys||sa_enable(void); } 6821.294Spgoyette333 COMPAT_60 MODULAR compat_60 \ 6831.294Spgoyette { int|sys||sa_setconcurrency(int concurrency); } 6841.294Spgoyette334 COMPAT_60 MODULAR compat_60 \ 6851.294Spgoyette { int|sys||sa_yield(void); } 6861.294Spgoyette335 COMPAT_60 MODULAR compat_60 \ 6871.294Spgoyette { int|sys||sa_preempt(int sa_id); } 6881.300Schristos336 OBSOL sys_sa_unblockyield 6891.209Swrstuden; 6901.209Swrstuden; Syscalls 337-339 are reserved for other scheduler activation syscalls. 6911.209Swrstuden; 6921.107Snathanw337 UNIMPL 6931.107Snathanw338 UNIMPL 6941.107Snathanw339 UNIMPL 6951.300Schristos340 STD { int|sys||__sigaction_sigtramp(int signum, \ 6961.112Sthorpej const struct sigaction *nsa, \ 6971.112Sthorpej struct sigaction *osa, \ 6981.132Smatt const void *tramp, int vers); } 6991.292Smaxv341 OBSOL sys_pmc_get_info 7001.292Smaxv342 OBSOL sys_pmc_control 7011.300Schristos343 STD { int|sys||rasctl(void *addr, size_t len, int op); } 7021.224Spooka344 STD RUMP { int|sys||kqueue(void); } 7031.294Spgoyette345 COMPAT_50 MODULAR compat_50 RUMP { int|sys||kevent(int fd, \ 7041.116Sjdolecek const struct kevent *changelist, size_t nchanges, \ 7051.116Sjdolecek struct kevent *eventlist, size_t nevents, \ 7061.219Schristos const struct timespec50 *timeout); } 7071.184Srmind 7081.184Srmind; Scheduling system calls. 7091.300Schristos346 STD { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \ 7101.188Syamt int policy, const struct sched_param *params); } 7111.300Schristos347 STD { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \ 7121.188Syamt int *policy, struct sched_param *params); } 7131.300Schristos348 STD { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \ 7141.202Schristos size_t size, const cpuset_t *cpuset); } 7151.300Schristos349 STD { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \ 7161.202Schristos size_t size, cpuset_t *cpuset); } 7171.300Schristos350 STD { int|sys||sched_yield(void); } 7181.285Schristos351 STD { int|sys||_sched_protect(int priority); } 7191.184Srmind352 UNIMPL 7201.184Srmind353 UNIMPL 7211.134Sthorpej 7221.226Spooka354 STD RUMP { int|sys||fsync_range(int fd, int flags, off_t start, \ 7231.134Sthorpej off_t length); } 7241.300Schristos355 STD { int|sys||uuidgen(struct uuid *store, int count); } 7251.296Schristos356 COMPAT_90 MODULAR compat_90 { \ 7261.296Schristos int|sys||getvfsstat(struct statvfs90 *buf, \ 7271.139Schristos size_t bufsize, int flags); } 7281.296Schristos357 COMPAT_90 MODULAR compat_90 { int|sys||statvfs1(const char *path, \ 7291.296Schristos struct statvfs90 *buf, int flags); } 7301.296Schristos358 COMPAT_90 MODULAR compat_90 { int|sys||fstatvfs1(int fd, \ 7311.296Schristos struct statvfs90 *buf, int flags); } 7321.296Schristos359 COMPAT_30 MODULAR compat_30 { int|sys||fhstatvfs1( \ 7331.296Schristos const struct compat_30_fhandle *fhp, \ 7341.296Schristos struct statvfs90 *buf, int flags); } 7351.299Schristos360 STD RUMP { int|sys||extattrctl(const char *path, int cmd, \ 7361.143Sthorpej const char *filename, int attrnamespace, \ 7371.143Sthorpej const char *attrname); } 7381.299Schristos361 STD RUMP { int|sys||extattr_set_file(const char *path, \ 7391.143Sthorpej int attrnamespace, const char *attrname, \ 7401.143Sthorpej const void *data, size_t nbytes); } 7411.299Schristos362 STD RUMP { ssize_t|sys||extattr_get_file(const char *path, \ 7421.143Sthorpej int attrnamespace, const char *attrname, \ 7431.143Sthorpej void *data, size_t nbytes); } 7441.299Schristos363 STD RUMP { int|sys||extattr_delete_file(const char *path, \ 7451.143Sthorpej int attrnamespace, const char *attrname); } 7461.299Schristos364 STD RUMP { int|sys||extattr_set_fd(int fd, \ 7471.143Sthorpej int attrnamespace, const char *attrname, \ 7481.143Sthorpej const void *data, size_t nbytes); } 7491.299Schristos365 STD RUMP { ssize_t|sys||extattr_get_fd(int fd, \ 7501.143Sthorpej int attrnamespace, const char *attrname, \ 7511.143Sthorpej void *data, size_t nbytes); } 7521.299Schristos366 STD RUMP { int|sys||extattr_delete_fd(int fd, \ 7531.143Sthorpej int attrnamespace, const char *attrname); } 7541.299Schristos367 STD RUMP { int|sys||extattr_set_link(const char *path, \ 7551.143Sthorpej int attrnamespace, const char *attrname, \ 7561.143Sthorpej const void *data, size_t nbytes); } 7571.299Schristos368 STD RUMP { ssize_t|sys||extattr_get_link(const char *path, \ 7581.143Sthorpej int attrnamespace, const char *attrname, \ 7591.143Sthorpej void *data, size_t nbytes); } 7601.299Schristos369 STD RUMP { int|sys||extattr_delete_link(const char *path, \ 7611.143Sthorpej int attrnamespace, const char *attrname); } 7621.299Schristos370 STD RUMP { ssize_t|sys||extattr_list_fd(int fd, \ 7631.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7641.299Schristos371 STD RUMP { ssize_t|sys||extattr_list_file(const char *path, \ 7651.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7661.299Schristos372 STD RUMP { ssize_t|sys||extattr_list_link(const char *path, \ 7671.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7681.294Spgoyette373 COMPAT_50 MODULAR compat_50 RUMP \ 7691.274Spgoyette { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \ 7701.219Schristos fd_set *ex, const struct timespec50 *ts, \ 7711.145Smatt const sigset_t *mask); } 7721.294Spgoyette374 COMPAT_50 MODULAR compat_50 RUMP \ 7731.274Spgoyette { int|sys||pollts(struct pollfd *fds, u_int nfds, \ 7741.219Schristos const struct timespec50 *ts, const sigset_t *mask); } 7751.299Schristos375 STD RUMP { int|sys||setxattr(const char *path, \ 7761.250Sdrochner const char *name, const void *value, size_t size, \ 7771.147Sthorpej int flags); } 7781.299Schristos376 STD RUMP { int|sys||lsetxattr(const char *path, \ 7791.250Sdrochner const char *name, const void *value, size_t size, \ 7801.147Sthorpej int flags); } 7811.299Schristos377 STD RUMP { int|sys||fsetxattr(int fd, \ 7821.250Sdrochner const char *name, const void *value, size_t size, \ 7831.147Sthorpej int flags); } 7841.299Schristos378 STD RUMP { int|sys||getxattr(const char *path, \ 7851.147Sthorpej const char *name, void *value, size_t size); } 7861.299Schristos379 STD RUMP { int|sys||lgetxattr(const char *path, \ 7871.147Sthorpej const char *name, void *value, size_t size); } 7881.299Schristos380 STD RUMP { int|sys||fgetxattr(int fd, \ 7891.147Sthorpej const char *name, void *value, size_t size); } 7901.299Schristos381 STD RUMP { int|sys||listxattr(const char *path, \ 7911.147Sthorpej char *list, size_t size); } 7921.299Schristos382 STD RUMP { int|sys||llistxattr(const char *path, \ 7931.147Sthorpej char *list, size_t size); } 7941.299Schristos383 STD RUMP { int|sys||flistxattr(int fd, \ 7951.147Sthorpej char *list, size_t size); } 7961.299Schristos384 STD RUMP { int|sys||removexattr(const char *path, \ 7971.147Sthorpej const char *name); } 7981.299Schristos385 STD RUMP { int|sys||lremovexattr(const char *path, \ 7991.147Sthorpej const char *name); } 8001.299Schristos386 STD RUMP { int|sys||fremovexattr(int fd, \ 8011.147Sthorpej const char *name); } 8021.294Spgoyette387 COMPAT_50 MODULAR compat_50 RUMP \ 8031.274Spgoyette { int|sys|30|stat(const char *path, struct stat30 *ub); } 8041.294Spgoyette388 COMPAT_50 MODULAR compat_50 RUMP \ 8051.274Spgoyette { int|sys|30|fstat(int fd, struct stat30 *sb); } 8061.294Spgoyette389 COMPAT_50 MODULAR compat_50 RUMP \ 8071.274Spgoyette { int|sys|30|lstat(const char *path, struct stat30 *ub); } 8081.299Schristos390 STD RUMP { int|sys|30|getdents(int fd, char *buf, size_t count); } 8091.190Smartin391 IGNORED old posix_fadvise 8101.294Spgoyette392 COMPAT_30 MODULAR compat_30 \ 8111.294Spgoyette { int|sys|30|fhstat(const struct compat_30_fhandle \ 8121.219Schristos *fhp, struct stat30 *sb); } 8131.294Spgoyette393 COMPAT_50 MODULAR compat_30 \ 8141.274Spgoyette { int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); } 8151.299Schristos394 STD RUMP { int|sys|30|socket(int domain, int type, int protocol); } 8161.299Schristos395 STD RUMP { int|sys|30|getfh(const char *fname, void *fhp, \ 8171.156Smartin size_t *fh_size); } 8181.299Schristos396 STD RUMP { int|sys|40|fhopen(const void *fhp, size_t fh_size,\ 8191.156Smartin int flags); } 8201.296Schristos397 COMPAT_90 MODULAR compat_90 { \ 8211.296Schristos int|sys||fhstatvfs1(const void *fhp, \ 8221.296Schristos size_t fh_size, struct statvfs90 *buf, int flags); } 8231.294Spgoyette398 COMPAT_50 MODULAR compat_50 RUMP { int|sys|40|fhstat(const void *fhp, \ 8241.219Schristos size_t fh_size, struct stat30 *sb); } 8251.169Srmind 8261.169Srmind; Asynchronous I/O system calls 8271.301Schristos399 STD MODULAR aio RUMP \ 8281.274Spgoyette { int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); } 8291.301Schristos400 STD MODULAR aio RUMP \ 8301.274Spgoyette { int|sys||aio_error(const struct aiocb *aiocbp); } 8311.301Schristos401 STD MODULAR aio RUMP \ 8321.274Spgoyette { int|sys||aio_fsync(int op, struct aiocb *aiocbp); } 8331.301Schristos402 STD MODULAR aio RUMP \ 8341.274Spgoyette { int|sys||aio_read(struct aiocb *aiocbp); } 8351.301Schristos403 STD MODULAR aio RUMP \ 8361.274Spgoyette { int|sys||aio_return(struct aiocb *aiocbp); } 8371.274Spgoyette404 COMPAT_50 MODULAR compat \ 8381.274Spgoyette { int|sys||aio_suspend(const struct aiocb *const *list, \ 8391.274Spgoyette int nent, const struct timespec50 *timeout); } 8401.301Schristos405 STD MODULAR aio RUMP \ 8411.274Spgoyette { int|sys||aio_write(struct aiocb *aiocbp); } 8421.301Schristos406 STD MODULAR aio RUMP \ 8431.274Spgoyette { int|sys||lio_listio(int mode, struct aiocb *const *list, \ 8441.274Spgoyette int nent, struct sigevent *sig); } 8451.171Sjoerg 8461.170Sdsl407 UNIMPL 8471.170Sdsl408 UNIMPL 8481.170Sdsl409 UNIMPL 8491.170Sdsl 8501.299Schristos410 STD RUMP { int|sys|50|mount(const char *type, \ 8511.170Sdsl const char *path, int flags, void *data, \ 8521.170Sdsl size_t data_len); } 8531.300Schristos411 STD { void *|sys||mremap(void *old_address, \ 8541.300Schristos size_t old_size, void *new_address, \ 8551.300Schristos size_t new_size, int flags); } 8561.184Srmind 8571.184Srmind; Processor-sets system calls 8581.300Schristos412 STD { int|sys||pset_create(psetid_t *psid); } 8591.300Schristos413 STD { int|sys||pset_destroy(psetid_t psid); } 8601.300Schristos414 STD { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \ 8611.184Srmind psetid_t *opsid); } 8621.300Schristos415 STD { int|sys||_pset_bind(idtype_t idtype, id_t first_id, \ 8631.184Srmind id_t second_id, psetid_t psid, psetid_t *opsid); } 8641.300Schristos416 NOERR RUMP { int|sys|50|posix_fadvise(int fd, int PAD, \ 8651.187Smartin off_t offset, off_t len, int advice); } 8661.299Schristos417 STD RUMP { int|sys|50|select(int nd, fd_set *in, fd_set *ou, \ 8671.219Schristos fd_set *ex, struct timeval *tv); } 8681.299Schristos418 STD RUMP { int|sys|50|gettimeofday(struct timeval *tp, \ 8691.219Schristos void *tzp); } 8701.299Schristos419 STD RUMP { int|sys|50|settimeofday(const struct timeval *tv, \ 8711.219Schristos const void *tzp); } 8721.299Schristos420 STD RUMP { int|sys|50|utimes(const char *path, \ 8731.219Schristos const struct timeval *tptr); } 8741.299Schristos421 STD RUMP { int|sys|50|adjtime(const struct timeval *delta, \ 8751.219Schristos struct timeval *olddelta); } 8761.274Spgoyette422 STD MODULAR lfs { int|sys|50|lfs_segwait(fsid_t *fsidp, \ 8771.219Schristos struct timeval *tv); } 8781.299Schristos423 STD RUMP { int|sys|50|futimes(int fd, \ 8791.219Schristos const struct timeval *tptr); } 8801.300Schristos424 STD RUMP { int|sys|50|lutimes(const char *path, \ 8811.219Schristos const struct timeval *tptr); } 8821.299Schristos425 STD RUMP { int|sys|50|setitimer(int which, \ 8831.219Schristos const struct itimerval *itv, \ 8841.219Schristos struct itimerval *oitv); } 8851.299Schristos426 STD RUMP { int|sys|50|getitimer(int which, \ 8861.219Schristos struct itimerval *itv); } 8871.299Schristos427 STD RUMP { int|sys|50|clock_gettime(clockid_t clock_id, \ 8881.219Schristos struct timespec *tp); } 8891.299Schristos428 STD RUMP { int|sys|50|clock_settime(clockid_t clock_id, \ 8901.219Schristos const struct timespec *tp); } 8911.299Schristos429 STD RUMP { int|sys|50|clock_getres(clockid_t clock_id, \ 8921.219Schristos struct timespec *tp); } 8931.299Schristos430 STD RUMP { int|sys|50|nanosleep(const struct timespec *rqtp, \ 8941.219Schristos struct timespec *rmtp); } 8951.300Schristos431 STD { int|sys|50|__sigtimedwait(const sigset_t *set, \ 8961.219Schristos siginfo_t *info, \ 8971.219Schristos struct timespec *timeout); } 8981.274Spgoyette432 STD MODULAR mqueue \ 8991.274Spgoyette { int|sys|50|mq_timedsend(mqd_t mqdes, \ 9001.219Schristos const char *msg_ptr, size_t msg_len, \ 9011.219Schristos unsigned msg_prio, \ 9021.219Schristos const struct timespec *abs_timeout); } 9031.274Spgoyette433 STD MODULAR mqueue \ 9041.274Spgoyette { ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \ 9051.219Schristos char *msg_ptr, size_t msg_len, unsigned *msg_prio, \ 9061.219Schristos const struct timespec *abs_timeout); } 9071.294Spgoyette434 COMPAT_60 MODULAR compat_60 \ 9081.274Spgoyette { int|sys||_lwp_park(const struct timespec *ts, \ 9091.219Schristos lwpid_t unpark, const void *hint, \ 9101.219Schristos const void *unparkhint); } 9111.226Spooka435 STD RUMP { int|sys|50|kevent(int fd, \ 9121.219Schristos const struct kevent *changelist, size_t nchanges, \ 9131.219Schristos struct kevent *eventlist, size_t nevents, \ 9141.219Schristos const struct timespec *timeout); } 9151.299Schristos436 STD RUMP { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \ 9161.219Schristos fd_set *ex, const struct timespec *ts, \ 9171.219Schristos const sigset_t *mask); } 9181.299Schristos437 STD RUMP { int|sys|50|pollts(struct pollfd *fds, u_int nfds, \ 9191.219Schristos const struct timespec *ts, const sigset_t *mask); } 9201.301Schristos438 STD MODULAR aio RUMP { int|sys|50|aio_suspend( \ 9211.219Schristos const struct aiocb *const *list, \ 9221.219Schristos int nent, const struct timespec *timeout); } 9231.299Schristos439 STD RUMP { int|sys|50|stat(const char *path, struct stat *ub); } 9241.299Schristos440 STD RUMP { int|sys|50|fstat(int fd, struct stat *sb); } 9251.299Schristos441 STD RUMP { int|sys|50|lstat(const char *path, struct stat *ub); } 9261.277Spgoyette442 STD MODULAR sysv_ipc { int|sys|50|__semctl(int semid, int semnum, \ 9271.277Spgoyette int cmd, ... union __semun *arg); } 9281.277Spgoyette443 STD MODULAR sysv_ipc { int|sys|50|shmctl(int shmid, int cmd, \ 9291.219Schristos struct shmid_ds *buf); } 9301.277Spgoyette444 STD MODULAR sysv_ipc { int|sys|50|msgctl(int msqid, int cmd, \ 9311.219Schristos struct msqid_ds *buf); } 9321.300Schristos445 STD { int|sys|50|getrusage(int who, struct rusage *rusage); } 9331.299Schristos446 STD RUMP { int|sys|50|timer_settime(timer_t timerid, \ 9341.219Schristos int flags, const struct itimerspec *value, \ 9351.219Schristos struct itimerspec *ovalue); } 9361.299Schristos447 STD RUMP { int|sys|50|timer_gettime(timer_t timerid, struct \ 9371.219Schristos itimerspec *value); } 9381.219Schristos#if defined(NTP) || !defined(_KERNEL_OPT) 9391.221Spooka448 STD { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } 9401.219Schristos#else 9411.219Schristos448 EXCL ___ntp_gettime50 9421.219Schristos#endif 9431.300Schristos449 STD { int|sys|50|wait4(pid_t pid, int *status, \ 9441.219Schristos int options, struct rusage *rusage); } 9451.299Schristos450 STD RUMP { int|sys|50|mknod(const char *path, mode_t mode, \ 9461.219Schristos dev_t dev); } 9471.300Schristos451 STD RUMP { int|sys|50|fhstat(const void *fhp, \ 9481.219Schristos size_t fh_size, struct stat *sb); } 9491.253Sdholland; 452 only ever appeared in 5.99.x and can be reused after netbsd-7 9501.253Sdholland452 OBSOL 5.99 quotactl 9511.299Schristos453 STD RUMP { int|sys||pipe2(int *fildes, int flags); } 9521.299Schristos454 STD RUMP { int|sys||dup3(int from, int to, int flags); } 9531.299Schristos455 STD RUMP { int|sys||kqueue1(int flags); } 9541.299Schristos456 STD RUMP { int|sys||paccept(int s, struct sockaddr *name, \ 9551.249Schristos socklen_t *anamelen, const sigset_t *mask, \ 9561.249Schristos int flags); } 9571.299Schristos457 STD RUMP { int|sys||linkat(int fd1, const char *name1, \ 9581.251Smanu int fd2, const char *name2, int flags); } 9591.299Schristos458 STD RUMP { int|sys||renameat(int fromfd, const char *from, \ 9601.251Smanu int tofd, const char *to); } 9611.299Schristos459 STD RUMP { int|sys||mkfifoat(int fd, const char *path, \ 9621.251Smanu mode_t mode); } 9631.299Schristos460 STD RUMP { int|sys||mknodat(int fd, const char *path, \ 9641.264Snjoly mode_t mode, int PAD, dev_t dev); } 9651.299Schristos461 STD RUMP { int|sys||mkdirat(int fd, const char *path, \ 9661.251Smanu mode_t mode); } 9671.299Schristos462 STD RUMP { int|sys||faccessat(int fd, const char *path, \ 9681.251Smanu int amode, int flag); } 9691.299Schristos463 STD RUMP { int|sys||fchmodat(int fd, const char *path, \ 9701.251Smanu mode_t mode, int flag); } 9711.299Schristos464 STD RUMP { int|sys||fchownat(int fd, const char *path, \ 9721.251Smanu uid_t owner, gid_t group, int flag); } 9731.300Schristos465 STD { int|sys||fexecve(int fd, \ 9741.251Smanu char * const *argp, char * const *envp); } 9751.299Schristos466 STD RUMP { int|sys||fstatat(int fd, const char *path, \ 9761.251Smanu struct stat *buf, int flag); } 9771.299Schristos467 STD RUMP { int|sys||utimensat(int fd, const char *path, \ 9781.251Smanu const struct timespec *tptr, int flag); } 9791.299Schristos468 STD RUMP { int|sys||openat(int fd, const char *path, \ 9801.251Smanu int oflags, ... mode_t mode); } 9811.299Schristos469 STD RUMP { ssize_t|sys||readlinkat(int fd, const char *path, \ 9821.251Smanu char *buf, size_t bufsize); } 9831.299Schristos470 STD RUMP { int|sys||symlinkat(const char *path1, int fd, \ 9841.251Smanu const char *path2); } 9851.299Schristos471 STD RUMP { int|sys||unlinkat(int fd, const char *path, \ 9861.251Smanu int flag); } 9871.299Schristos472 STD RUMP { int|sys||futimens(int fd, \ 9881.252Smanu const struct timespec *tptr); } 9891.299Schristos473 STD RUMP { int|sys||__quotactl(const char *path, \ 9901.253Sdholland struct quotactl_args *args); } 9911.254Smartin474 NOERR { int|sys||posix_spawn(pid_t *pid, const char *path, \ 9921.260Schristos const struct posix_spawn_file_actions *file_actions, \ 9931.260Schristos const struct posix_spawnattr *attrp, \ 9941.260Schristos char *const *argv, char *const *envp); } 9951.299Schristos475 STD RUMP { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \ 9961.260Schristos unsigned int vlen, unsigned int flags, \ 9971.260Schristos struct timespec *timeout); } 9981.299Schristos476 STD RUMP { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \ 9991.260Schristos unsigned int vlen, unsigned int flags); } 10001.279Schristos477 NOERR RUMP { int|sys||clock_nanosleep(clockid_t clock_id, \ 10011.261Schristos int flags, const struct timespec *rqtp, \ 10021.261Schristos struct timespec *rmtp); } 10031.300Schristos478 STD { int|sys|60|_lwp_park(clockid_t clock_id, int flags, \ 10041.287Schristos struct timespec *ts, lwpid_t unpark, \ 10051.262Schristos const void *hint, const void *unparkhint); } 10061.271Smartin479 NOERR RUMP { int|sys||posix_fallocate(int fd, int PAD, off_t pos, \ 10071.270Sdholland off_t len); } 10081.299Schristos480 STD RUMP { int|sys||fdiscard(int fd, int PAD, off_t pos, \ 10091.270Sdholland off_t len); } 10101.300Schristos481 STD { int|sys||wait6(idtype_t idtype, id_t id, \ 10111.282Schristos int *status, int options, struct wrusage *wru, \ 10121.282Schristos siginfo_t *info); } 10131.284Schristos482 STD { int|sys||clock_getcpuclockid2(idtype_t idtype, \ 10141.284Schristos id_t id, clockid_t *clock_id); } 10151.299Schristos483 STD RUMP { int|sys|90|getvfsstat(struct statvfs *buf, \ 10161.296Schristos size_t bufsize, int flags); } 10171.299Schristos484 STD RUMP { int|sys|90|statvfs1(const char *path, \ 10181.296Schristos struct statvfs *buf, int flags); } 10191.299Schristos485 STD RUMP { int|sys|90|fstatvfs1(int fd, \ 10201.296Schristos struct statvfs *buf, int flags); } 10211.299Schristos486 STD RUMP { int|sys|90|fhstatvfs1(const void *fhp, \ 10221.296Schristos size_t fh_size, struct statvfs *buf, int flags); } 10231.305Schristos487 STD { int|sys||__acl_get_link(const char *path, \ 10241.305Schristos acl_type_t type, struct acl *aclp); } 10251.305Schristos488 STD { int|sys||__acl_set_link(const char *path, \ 10261.305Schristos acl_type_t type, struct acl *aclp); } 10271.305Schristos489 STD { int|sys||__acl_delete_link(const char *path, \ 10281.305Schristos acl_type_t type); } 10291.305Schristos490 STD { int|sys||__acl_aclcheck_link(const char *path, \ 10301.305Schristos acl_type_t type, struct acl *aclp); } 10311.305Schristos491 STD { int|sys||__acl_get_file(const char *path, \ 10321.305Schristos acl_type_t type, struct acl *aclp); } 10331.305Schristos492 STD { int|sys||__acl_set_file(const char *path, \ 10341.305Schristos acl_type_t type, struct acl *aclp); } 10351.305Schristos493 STD { int|sys||__acl_get_fd(int filedes, acl_type_t type, \ 10361.305Schristos struct acl *aclp); } 10371.305Schristos494 STD { int|sys||__acl_set_fd(int filedes, acl_type_t type, \ 10381.305Schristos struct acl *aclp); } 10391.305Schristos495 STD { int|sys||__acl_delete_file(const char *path, \ 10401.305Schristos acl_type_t type); } 10411.305Schristos496 STD { int|sys||__acl_delete_fd(int filedes, \ 10421.305Schristos acl_type_t type); } 10431.305Schristos497 STD { int|sys||__acl_aclcheck_file(const char *path, \ 10441.305Schristos acl_type_t type, struct acl *aclp); } 10451.305Schristos498 STD { int|sys||__acl_aclcheck_fd(int filedes, \ 10461.305Schristos acl_type_t type, struct acl *aclp); } 10471.305Schristos499 STD RUMP { long|sys||lpathconf(const char *path, int name); } 1048