syscalls.master revision 1.190
11.190Smartin $NetBSD: syscalls.master,v 1.190 2008/02/24 12:52:54 martin 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.108Sthorpej; An optional field, MPSAFE, after the type field, indicates that 141.108Sthorpej; the system call is MP-safe. 151.108Sthorpej; 161.1Sglass; types: 171.1Sglass; STD always included 181.23Scgd; OBSOL obsolete, not included in system 191.190Smartin; IGNORED syscall is a null op, but always succeeds 201.24Smycroft; UNIMPL unimplemented, not included in system 211.92Schristos; EXCL implemented, but not included in system 221.23Scgd; NODEF included, but don't define the syscall number 231.23Scgd; NOARGS included, but don't define the syscall args structure 241.43Scgd; INDIR included, but don't define the syscall args structure, 251.43Scgd; and allow it to be "really" varargs. 261.23Scgd; 271.23Scgd; The compat options are defined in the syscalls.conf file, and the 281.23Scgd; compat option name is prefixed to the syscall name. Other than 291.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for 301.23Scgd; 'libcompat' options). 311.23Scgd; 321.23Scgd; The type-dependent arguments are as follows: 331.23Scgd; For STD, NODEF, NOARGS, and compat syscalls: 341.23Scgd; { pseudo-proto } [alias] 351.23Scgd; For other syscalls: 361.23Scgd; [comment] 371.23Scgd; 381.23Scgd; #ifdef's, etc. may be included, and are copied to the output files. 391.70Sthorpej; #include's are copied to the syscall names and switch definition files only. 401.77Sthorpej 411.78Sthorpej#include "opt_nfsserver.h" 421.102Sbjh21#include "opt_ntp.h" 431.81Sjonathan#include "opt_compat_netbsd.h" 441.85Stron#include "opt_sysv.h" 451.87Schristos#include "opt_compat_43.h" 461.119Schristos#include "opt_posix.h" 471.70Sthorpej 481.70Sthorpej#include "fs_lfs.h" 491.70Sthorpej#include "fs_nfs.h" 501.1Sglass 511.23Scgd#include <sys/param.h> 521.23Scgd#include <sys/systm.h> 531.23Scgd#include <sys/signal.h> 541.23Scgd#include <sys/mount.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.179Sdsl0 INDIR { int sys_syscall(int code, \ 661.179Sdsl ... register_t args[SYS_MAXSYSARGS]); } 671.182Sad1 STD MPSAFE { void sys_exit(int rval); } 681.182Sad2 STD MPSAFE { int sys_fork(void); } 691.182Sad3 STD MPSAFE { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 701.182Sad4 STD MPSAFE { ssize_t sys_write(int fd, const void *buf, \ 711.46Scgd size_t nbyte); } 721.182Sad5 STD MPSAFE { int sys_open(const char *path, \ 731.60Schristos int flags, ... mode_t mode); } 741.182Sad6 STD MPSAFE { int sys_close(int fd); } 751.182Sad7 STD MPSAFE { int sys_wait4(int pid, int *status, int options, \ 761.23Scgd struct rusage *rusage); } 771.182Sad8 COMPAT_43 MPSAFE { int sys_creat(const char *path, mode_t mode); } ocreat 781.182Sad9 STD MPSAFE { int sys_link(const char *path, const char *link); } 791.182Sad10 STD MPSAFE { int sys_unlink(const char *path); } 801.23Scgd11 OBSOL execv 811.182Sad12 STD MPSAFE { int sys_chdir(const char *path); } 821.182Sad13 STD MPSAFE { int sys_fchdir(int fd); } 831.182Sad14 STD MPSAFE { int sys_mknod(const char *path, mode_t mode, \ 841.60Schristos dev_t dev); } 851.182Sad15 STD MPSAFE { int sys_chmod(const char *path, mode_t mode); } 861.182Sad16 STD MPSAFE { int sys_chown(const char *path, uid_t uid, \ 871.46Scgd gid_t gid); } 881.182Sad17 STD MPSAFE { int sys_obreak(char *nsize); } break 891.183Sad18 COMPAT_20 MPSAFE { int sys_getfsstat(struct statfs12 *buf, \ 901.139Schristos long bufsize, int flags); } 911.182Sad19 COMPAT_43 MPSAFE { long sys_lseek(int fd, long offset, int whence); } \ 921.29Smycroft olseek 931.104Smycroft#ifdef COMPAT_43 941.163Sad20 STD MPSAFE { pid_t sys_getpid_with_ppid(void); } getpid 951.104Smycroft#else 961.108Sthorpej20 STD MPSAFE { pid_t sys_getpid(void); } 971.104Smycroft#endif 981.189Sad21 COMPAT_40 MPSAFE { int sys_mount(const char *type, const char *path, \ 991.46Scgd int flags, void *data); } 1001.189Sad22 STD MPSAFE { int sys_unmount(const char *path, int flags); } 1011.183Sad23 STD MPSAFE { int sys_setuid(uid_t uid); } 1021.104Smycroft#ifdef COMPAT_43 1031.183Sad24 STD MPSAFE { uid_t sys_getuid_with_euid(void); } getuid 1041.104Smycroft#else 1051.163Sad24 STD MPSAFE { uid_t sys_getuid(void); } 1061.104Smycroft#endif 1071.163Sad25 STD MPSAFE { uid_t sys_geteuid(void); } 1081.183Sad26 STD MPSAFE { int sys_ptrace(int req, pid_t pid, void *addr, \ 1091.23Scgd int data); } 1101.182Sad27 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ 1111.28Smycroft int flags); } 1121.182Sad28 STD { ssize_t sys_sendmsg(int s, \ 1131.46Scgd const struct msghdr *msg, int flags); } 1141.182Sad29 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ 1151.46Scgd int flags, struct sockaddr *from, \ 1161.88Skleink unsigned int *fromlenaddr); } 1171.46Scgd30 STD { int sys_accept(int s, struct sockaddr *name, \ 1181.88Skleink unsigned int *anamelen); } 1191.46Scgd31 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \ 1201.88Skleink unsigned int *alen); } 1211.46Scgd32 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \ 1221.88Skleink unsigned int *alen); } 1231.182Sad33 STD MPSAFE { int sys_access(const char *path, int flags); } 1241.182Sad34 STD MPSAFE { int sys_chflags(const char *path, u_long flags); } 1251.182Sad35 STD MPSAFE { int sys_fchflags(int fd, u_long flags); } 1261.182Sad36 STD MPSAFE { void sys_sync(void); } 1271.182Sad37 STD MPSAFE { int sys_kill(int pid, int signum); } 1281.182Sad38 COMPAT_43 MPSAFE { int sys_stat(const char *path, struct stat43 *ub); } \ 1291.60Schristos stat43 1301.163Sad39 STD MPSAFE { pid_t sys_getppid(void); } 1311.182Sad40 COMPAT_43 MPSAFE { int sys_lstat(const char *path, \ 1321.60Schristos struct stat43 *ub); } lstat43 1331.182Sad41 STD MPSAFE { int sys_dup(int fd); } 1341.182Sad42 STD MPSAFE { int sys_pipe(void); } 1351.163Sad43 STD MPSAFE { gid_t sys_getegid(void); } 1361.168Sdrochner44 STD MPSAFE { int sys_profil(char *samples, size_t size, \ 1371.30Scgd u_long offset, u_int scale); } 1381.182Sad45 STD MPSAFE { int sys_ktrace(const char *fname, int ops, \ 1391.46Scgd int facs, int pid); } 1401.163Sad46 COMPAT_13 MPSAFE { int sys_sigaction(int signum, \ 1411.82Smycroft const struct sigaction13 *nsa, \ 1421.82Smycroft struct sigaction13 *osa); } sigaction13 1431.104Smycroft#ifdef COMPAT_43 1441.163Sad47 STD MPSAFE { gid_t sys_getgid_with_egid(void); } getgid 1451.104Smycroft#else 1461.163Sad47 STD MPSAFE { gid_t sys_getgid(void); } 1471.104Smycroft#endif 1481.163Sad48 COMPAT_13 MPSAFE { int sys_sigprocmask(int how, \ 1491.82Smycroft int mask); } sigprocmask13 1501.163Sad49 STD MPSAFE { int sys___getlogin(char *namebuf, size_t namelen); } 1511.183Sad50 STD MPSAFE { int sys___setlogin(const char *namebuf); } 1521.183Sad51 STD MPSAFE { int sys_acct(const char *path); } 1531.163Sad52 COMPAT_13 MPSAFE { int sys_sigpending(void); } sigpending13 1541.163Sad53 COMPAT_13 MPSAFE { int sys_sigaltstack( \ 1551.82Smycroft const struct sigaltstack13 *nss, \ 1561.82Smycroft struct sigaltstack13 *oss); } sigaltstack13 1571.182Sad54 STD MPSAFE { int sys_ioctl(int fd, \ 1581.61Schristos u_long com, ... void *data); } 1591.34Smrg55 COMPAT_12 { int sys_reboot(int opt); } oreboot 1601.182Sad56 STD MPSAFE { int sys_revoke(const char *path); } 1611.182Sad57 STD MPSAFE { int sys_symlink(const char *path, \ 1621.46Scgd const char *link); } 1631.182Sad58 STD MPSAFE { ssize_t sys_readlink(const char *path, char *buf, \ 1641.72Skleink size_t count); } 1651.182Sad59 STD MPSAFE { int sys_execve(const char *path, \ 1661.46Scgd char * const *argp, char * const *envp); } 1671.182Sad60 STD MPSAFE { mode_t sys_umask(mode_t newmask); } 1681.183Sad61 STD MPSAFE { int sys_chroot(const char *path); } 1691.183Sad62 COMPAT_43 MPSAFE { int sys_fstat(int fd, struct stat43 *sb); } fstat43 1701.183Sad63 COMPAT_43 MPSAFE { int sys_getkerninfo(int op, char *where, int *size, \ 1711.29Smycroft int arg); } ogetkerninfo 1721.183Sad64 COMPAT_43 MPSAFE { int sys_getpagesize(void); } ogetpagesize 1731.183Sad65 COMPAT_12 MPSAFE { int sys_msync(void *addr, size_t len); } 1741.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 1751.182Sad66 STD MPSAFE { int sys_vfork(void); } 1761.23Scgd67 OBSOL vread 1771.23Scgd68 OBSOL vwrite 1781.182Sad69 STD MPSAFE { int sys_sbrk(intptr_t incr); } 1791.182Sad70 STD MPSAFE { int sys_sstk(int incr); } 1801.183Sad71 COMPAT_43 MPSAFE { int sys_mmap(void *addr, size_t len, int prot, \ 1811.29Smycroft int flags, int fd, long pos); } ommap 1821.182Sad72 STD MPSAFE { int sys_ovadvise(int anom); } vadvise 1831.182Sad73 STD MPSAFE { int sys_munmap(void *addr, size_t len); } 1841.182Sad74 STD MPSAFE { int sys_mprotect(void *addr, size_t len, \ 1851.28Smycroft int prot); } 1861.182Sad75 STD MPSAFE { int sys_madvise(void *addr, size_t len, \ 1871.28Smycroft int behav); } 1881.23Scgd76 OBSOL vhangup 1891.23Scgd77 OBSOL vlimit 1901.182Sad78 STD MPSAFE { int sys_mincore(void *addr, size_t len, \ 1911.28Smycroft char *vec); } 1921.163Sad79 STD MPSAFE { int sys_getgroups(int gidsetsize, \ 1931.59Smycroft gid_t *gidset); } 1941.183Sad80 STD MPSAFE { int sys_setgroups(int gidsetsize, \ 1951.46Scgd const gid_t *gidset); } 1961.163Sad81 STD MPSAFE { int sys_getpgrp(void); } 1971.183Sad82 STD MPSAFE { int sys_setpgid(int pid, int pgid); } 1981.58Smycroft83 STD { int sys_setitimer(int which, \ 1991.46Scgd const struct itimerval *itv, \ 2001.46Scgd struct itimerval *oitv); } 2011.182Sad84 COMPAT_43 MPSAFE { int sys_wait(void); } owait 2021.183Sad85 COMPAT_12 MPSAFE { int sys_swapon(const char *name); } oswapon 2031.58Smycroft86 STD { int sys_getitimer(int which, \ 2041.28Smycroft struct itimerval *itv); } 2051.183Sad87 COMPAT_43 MPSAFE { int sys_gethostname(char *hostname, u_int len); } \ 2061.29Smycroft ogethostname 2071.183Sad88 COMPAT_43 MPSAFE { int sys_sethostname(char *hostname, u_int len); } \ 2081.29Smycroft osethostname 2091.182Sad89 COMPAT_43 MPSAFE { int sys_getdtablesize(void); } ogetdtablesize 2101.182Sad90 STD MPSAFE { int sys_dup2(int from, int to); } 2111.23Scgd91 UNIMPL getdopt 2121.182Sad92 STD MPSAFE { int sys_fcntl(int fd, int cmd, ... void *arg); } 2131.182Sad93 STD MPSAFE { int sys_select(int nd, fd_set *in, fd_set *ou, \ 2141.23Scgd fd_set *ex, struct timeval *tv); } 2151.23Scgd94 UNIMPL setdopt 2161.182Sad95 STD MPSAFE { int sys_fsync(int fd); } 2171.176Sad96 STD MPSAFE { int sys_setpriority(int which, id_t who, int prio); } 2181.154Smrg97 COMPAT_30 { int sys_socket(int domain, int type, int protocol); } 2191.46Scgd98 STD { int sys_connect(int s, const struct sockaddr *name, \ 2201.88Skleink unsigned int namelen); } 2211.167Schristos99 COMPAT_43 { int sys_accept(int s, void *name, \ 2221.46Scgd int *anamelen); } oaccept 2231.163Sad100 STD MPSAFE { int sys_getpriority(int which, id_t who); } 2241.167Schristos101 COMPAT_43 { int sys_send(int s, void *buf, int len, \ 2251.29Smycroft int flags); } osend 2261.167Schristos102 COMPAT_43 { int sys_recv(int s, void *buf, int len, \ 2271.29Smycroft int flags); } orecv 2281.163Sad103 COMPAT_13 MPSAFE { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \ 2291.83Smycroft sigreturn13 2301.46Scgd104 STD { int sys_bind(int s, const struct sockaddr *name, \ 2311.88Skleink unsigned int namelen); } 2321.28Smycroft105 STD { int sys_setsockopt(int s, int level, int name, \ 2331.88Skleink const void *val, unsigned int valsize); } 2341.28Smycroft106 STD { int sys_listen(int s, int backlog); } 2351.23Scgd107 OBSOL vtimes 2361.163Sad108 COMPAT_43 MPSAFE { int sys_sigvec(int signum, struct sigvec *nsv, \ 2371.29Smycroft struct sigvec *osv); } osigvec 2381.163Sad109 COMPAT_43 MPSAFE { int sys_sigblock(int mask); } osigblock 2391.163Sad110 COMPAT_43 MPSAFE { int sys_sigsetmask(int mask); } osigsetmask 2401.163Sad111 COMPAT_13 MPSAFE { int sys_sigsuspend(int mask); } sigsuspend13 2411.163Sad112 COMPAT_43 MPSAFE { int sys_sigstack(struct sigstack *nss, \ 2421.29Smycroft struct sigstack *oss); } osigstack 2431.28Smycroft113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ 2441.29Smycroft int flags); } orecvmsg 2451.167Schristos114 COMPAT_43 { int sys_sendmsg(int s, void *msg, int flags); } \ 2461.29Smycroft osendmsg 2471.23Scgd115 OBSOL vtrace 2481.173Sad116 STD MPSAFE { int sys_gettimeofday(struct timeval *tp, \ 2491.141Skleink void *tzp); } 2501.176Sad117 STD MPSAFE { int sys_getrusage(int who, struct rusage *rusage); } 2511.28Smycroft118 STD { int sys_getsockopt(int s, int level, int name, \ 2521.88Skleink void *val, unsigned int *avalsize); } 2531.26Scgd119 OBSOL resuba 2541.182Sad120 STD MPSAFE { ssize_t sys_readv(int fd, \ 2551.58Smycroft const struct iovec *iovp, int iovcnt); } 2561.182Sad121 STD MPSAFE { ssize_t sys_writev(int fd, \ 2571.58Smycroft const struct iovec *iovp, int iovcnt); } 2581.183Sad122 STD MPSAFE { int sys_settimeofday(const struct timeval *tv, \ 2591.141Skleink const void *tzp); } 2601.182Sad123 STD MPSAFE { int sys_fchown(int fd, uid_t uid, gid_t gid); } 2611.182Sad124 STD MPSAFE { int sys_fchmod(int fd, mode_t mode); } 2621.167Schristos125 COMPAT_43 { int sys_recvfrom(int s, void *buf, size_t len, \ 2631.167Schristos int flags, void *from, int *fromlenaddr); } \ 2641.29Smycroft orecvfrom 2651.183Sad126 STD MPSAFE { int sys_setreuid(uid_t ruid, uid_t euid); } 2661.183Sad127 STD MPSAFE { int sys_setregid(gid_t rgid, gid_t egid); } 2671.182Sad128 STD MPSAFE { int sys_rename(const char *from, const char *to); } 2681.182Sad129 COMPAT_43 MPSAFE { int sys_truncate(const char *path, long length); } \ 2691.29Smycroft otruncate 2701.182Sad130 COMPAT_43 MPSAFE { int sys_ftruncate(int fd, long length); } oftruncate 2711.182Sad131 STD MPSAFE { int sys_flock(int fd, int how); } 2721.182Sad132 STD MPSAFE { int sys_mkfifo(const char *path, mode_t mode); } 2731.182Sad133 STD { ssize_t sys_sendto(int s, const void *buf, \ 2741.46Scgd size_t len, int flags, const struct sockaddr *to, \ 2751.88Skleink unsigned int tolen); } 2761.28Smycroft134 STD { int sys_shutdown(int s, int how); } 2771.28Smycroft135 STD { int sys_socketpair(int domain, int type, \ 2781.28Smycroft int protocol, int *rsv); } 2791.182Sad136 STD MPSAFE { int sys_mkdir(const char *path, mode_t mode); } 2801.182Sad137 STD MPSAFE { int sys_rmdir(const char *path); } 2811.182Sad138 STD MPSAFE { int sys_utimes(const char *path, \ 2821.46Scgd const struct timeval *tptr); } 2831.23Scgd139 OBSOL 4.2 sigreturn 2841.46Scgd140 STD { int sys_adjtime(const struct timeval *delta, \ 2851.23Scgd struct timeval *olddelta); } 2861.167Schristos141 COMPAT_43 { int sys_getpeername(int fdes, void *asa, \ 2871.29Smycroft int *alen); } ogetpeername 2881.182Sad142 COMPAT_43 MPSAFE { int32_t sys_gethostid(void); } ogethostid 2891.182Sad143 COMPAT_43 MPSAFE { int sys_sethostid(int32_t hostid); } osethostid 2901.176Sad144 COMPAT_43 MPSAFE { int sys_getrlimit(int which, \ 2911.58Smycroft struct orlimit *rlp); } ogetrlimit 2921.183Sad145 COMPAT_43 MPSAFE { int sys_setrlimit(int which, \ 2931.58Smycroft const struct orlimit *rlp); } osetrlimit 2941.182Sad146 COMPAT_43 MPSAFE { int sys_killpg(int pgid, int signum); } okillpg 2951.183Sad147 STD MPSAFE { int sys_setsid(void); } 2961.183Sad148 STD MPSAFE { int sys_quotactl(const char *path, int cmd, \ 2971.167Schristos int uid, void *arg); } 2981.183Sad149 COMPAT_43 MPSAFE { int sys_quota(void); } oquota 2991.167Schristos150 COMPAT_43 { int sys_getsockname(int fdec, void *asa, \ 3001.29Smycroft int *alen); } ogetsockname 3011.1Sglass 3021.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 3031.1Sglass; system calls. (This includes various calls added for compatibity 3041.1Sglass; with other Unix variants.) 3051.1Sglass; Some of these calls are now supported by BSD... 3061.23Scgd151 UNIMPL 3071.23Scgd152 UNIMPL 3081.23Scgd153 UNIMPL 3091.23Scgd154 UNIMPL 3101.92Schristos#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 3111.46Scgd155 STD { int sys_nfssvc(int flag, void *argp); } 3121.1Sglass#else 3131.92Schristos155 EXCL nfssvc 3141.1Sglass#endif 3151.183Sad156 COMPAT_43 MPSAFE { int sys_getdirentries(int fd, char *buf, \ 3161.29Smycroft u_int count, long *basep); } ogetdirentries 3171.183Sad157 COMPAT_20 MPSAFE { int sys_statfs(const char *path, \ 3181.139Schristos struct statfs12 *buf); } 3191.183Sad158 COMPAT_20 MPSAFE { int sys_fstatfs(int fd, struct statfs12 *buf); } 3201.23Scgd159 UNIMPL 3211.23Scgd160 UNIMPL 3221.183Sad161 COMPAT_30 MPSAFE { int sys_getfh(const char *fname, \ 3231.155Smartin struct compat_30_fhandle *fhp); } 3241.183Sad162 COMPAT_09 MPSAFE { int sys_getdomainname(char *domainname, int len); } \ 3251.29Smycroft ogetdomainname 3261.183Sad163 COMPAT_09 MPSAFE { int sys_setdomainname(char *domainname, int len); } \ 3271.29Smycroft osetdomainname 3281.182Sad164 COMPAT_09 MPSAFE { int sys_uname(struct outsname *name); } ouname 3291.71Sperry165 STD { int sys_sysarch(int op, void *parms); } 3301.23Scgd166 UNIMPL 3311.23Scgd167 UNIMPL 3321.23Scgd168 UNIMPL 3331.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3341.111Seeh#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) 3351.172Sad169 COMPAT_10 MPSAFE { int sys_semsys(int which, int a2, int a3, int a4, \ 3361.29Smycroft int a5); } osemsys 3371.9Scgd#else 3381.92Schristos169 EXCL 1.0 semsys 3391.9Scgd#endif 3401.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3411.111Seeh#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) 3421.182Sad170 COMPAT_10 MPSAFE { int sys_msgsys(int which, int a2, int a3, int a4, \ 3431.29Smycroft int a5, int a6); } omsgsys 3441.9Scgd#else 3451.92Schristos170 EXCL 1.0 msgsys 3461.9Scgd#endif 3471.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3481.111Seeh#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) 3491.182Sad171 COMPAT_10 MPSAFE { int sys_shmsys(int which, int a2, int a3, int a4); } \ 3501.29Smycroft oshmsys 3511.1Sglass#else 3521.92Schristos171 EXCL 1.0 shmsys 3531.1Sglass#endif 3541.23Scgd172 UNIMPL 3551.182Sad173 STD MPSAFE { ssize_t sys_pread(int fd, void *buf, \ 3561.80Sthorpej size_t nbyte, int pad, off_t offset); } 3571.182Sad174 STD MPSAFE { ssize_t sys_pwrite(int fd, const void *buf, \ 3581.80Sthorpej size_t nbyte, int pad, off_t offset); } 3591.102Sbjh21; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded. 3601.153Sdrochner175 COMPAT_30 { int sys_ntp_gettime(struct ntptimeval30 *ntvp); } 3611.102Sbjh21#if defined(NTP) || !defined(_KERNEL) 3621.38Sthorpej176 STD { int sys_ntp_adjtime(struct timex *tp); } 3631.102Sbjh21#else 3641.102Sbjh21176 EXCL ntp_adjtime 3651.102Sbjh21#endif 3661.23Scgd177 UNIMPL 3671.23Scgd178 UNIMPL 3681.23Scgd179 UNIMPL 3691.23Scgd180 UNIMPL 3701.1Sglass 3711.1Sglass; Syscalls 180-199 are used by/reserved for BSD 3721.183Sad181 STD MPSAFE { int sys_setgid(gid_t gid); } 3731.183Sad182 STD MPSAFE { int sys_setegid(gid_t egid); } 3741.183Sad183 STD MPSAFE { int sys_seteuid(uid_t euid); } 3751.92Schristos#if defined(LFS) || !defined(_KERNEL) 3761.92Schristos184 STD { int sys_lfs_bmapv(fsid_t *fsidp, \ 3771.23Scgd struct block_info *blkiov, int blkcnt); } 3781.92Schristos185 STD { int sys_lfs_markv(fsid_t *fsidp, \ 3791.23Scgd struct block_info *blkiov, int blkcnt); } 3801.92Schristos186 STD { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 3811.92Schristos187 STD { int sys_lfs_segwait(fsid_t *fsidp, \ 3821.92Schristos struct timeval *tv); } 3831.92Schristos#else 3841.92Schristos184 EXCL lfs_bmapv 3851.92Schristos185 EXCL lfs_markv 3861.92Schristos186 EXCL lfs_segclean 3871.92Schristos187 EXCL lfs_segwait 3881.23Scgd#endif 3891.182Sad188 COMPAT_12 MPSAFE { int sys_stat(const char *path, struct stat12 *ub); } \ 3901.60Schristos stat12 3911.182Sad189 COMPAT_12 MPSAFE { int sys_fstat(int fd, struct stat12 *sb); } fstat12 3921.182Sad190 COMPAT_12 MPSAFE { int sys_lstat(const char *path, \ 3931.60Schristos struct stat12 *ub); } lstat12 3941.182Sad191 STD MPSAFE { long sys_pathconf(const char *path, int name); } 3951.182Sad192 STD MPSAFE { long sys_fpathconf(int fd, int name); } 3961.23Scgd193 UNIMPL 3971.182Sad194 STD MPSAFE { int sys_getrlimit(int which, \ 3981.58Smycroft struct rlimit *rlp); } 3991.183Sad195 STD MPSAFE { int sys_setrlimit(int which, \ 4001.46Scgd const struct rlimit *rlp); } 4011.183Sad196 COMPAT_12 MPSAFE { int sys_getdirentries(int fd, char *buf, \ 4021.28Smycroft u_int count, long *basep); } 4031.182Sad197 STD MPSAFE { void *sys_mmap(void *addr, size_t len, int prot, \ 4041.23Scgd int flags, int fd, long pad, off_t pos); } 4051.179Sdsl198 INDIR { quad_t sys___syscall(quad_t code, \ 4061.179Sdsl ... register_t args[SYS_MAXSYSARGS]); } 4071.182Sad199 STD MPSAFE { off_t sys_lseek(int fd, int pad, off_t offset, \ 4081.23Scgd int whence); } 4091.182Sad200 STD MPSAFE { int sys_truncate(const char *path, int pad, \ 4101.46Scgd off_t length); } 4111.182Sad201 STD MPSAFE { int sys_ftruncate(int fd, int pad, off_t length); } 4121.182Sad202 STD MPSAFE { int sys___sysctl(const int *name, u_int namelen, \ 4131.151Sdrochner void *old, size_t *oldlenp, const void *new, \ 4141.28Smycroft size_t newlen); } 4151.182Sad203 STD MPSAFE { int sys_mlock(const void *addr, size_t len); } 4161.182Sad204 STD MPSAFE { int sys_munlock(const void *addr, size_t len); } 4171.182Sad205 STD MPSAFE { int sys_undelete(const char *path); } 4181.182Sad206 STD MPSAFE { int sys_futimes(int fd, \ 4191.46Scgd const struct timeval *tptr); } 4201.163Sad207 STD MPSAFE { pid_t sys_getpgid(pid_t pid); } 4211.34Smrg208 STD { int sys_reboot(int opt, char *bootstr); } 4221.182Sad209 STD MPSAFE { int sys_poll(struct pollfd *fds, u_int nfds, \ 4231.35Smycroft int timeout); } 4241.11Scgd; 4251.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 4261.11Scgd; 4271.92Schristos#if defined(LKM) || !defined(_KERNEL) 4281.28Smycroft210 NODEF { int sys_lkmnosys(void); } 4291.28Smycroft211 NODEF { int sys_lkmnosys(void); } 4301.28Smycroft212 NODEF { int sys_lkmnosys(void); } 4311.28Smycroft213 NODEF { int sys_lkmnosys(void); } 4321.28Smycroft214 NODEF { int sys_lkmnosys(void); } 4331.28Smycroft215 NODEF { int sys_lkmnosys(void); } 4341.28Smycroft216 NODEF { int sys_lkmnosys(void); } 4351.28Smycroft217 NODEF { int sys_lkmnosys(void); } 4361.28Smycroft218 NODEF { int sys_lkmnosys(void); } 4371.28Smycroft219 NODEF { int sys_lkmnosys(void); } 4381.11Scgd#else /* !LKM */ 4391.92Schristos210 EXCL lkmnosys 4401.92Schristos211 EXCL lkmnosys 4411.92Schristos212 EXCL lkmnosys 4421.92Schristos213 EXCL lkmnosys 4431.92Schristos214 EXCL lkmnosys 4441.92Schristos215 EXCL lkmnosys 4451.92Schristos216 EXCL lkmnosys 4461.92Schristos217 EXCL lkmnosys 4471.92Schristos218 EXCL lkmnosys 4481.92Schristos219 EXCL lkmnosys 4491.6Scgd#endif /* !LKM */ 4501.49Skleink; System calls 220-300 are reserved for use by NetBSD 4511.92Schristos#if defined(SYSVSEM) || !defined(_KERNEL) 4521.172Sad220 COMPAT_14 MPSAFE { int sys___semctl(int semid, int semnum, int cmd, \ 4531.97Sthorpej union __semun *arg); } 4541.172Sad221 STD MPSAFE { int sys_semget(key_t key, int nsems, int semflg); } 4551.172Sad222 STD MPSAFE { int sys_semop(int semid, struct sembuf *sops, \ 4561.74Skleink size_t nsops); } 4571.172Sad223 STD MPSAFE { int sys_semconfig(int flag); } 4581.23Scgd#else 4591.97Sthorpej220 EXCL compat_14_semctl 4601.92Schristos221 EXCL semget 4611.92Schristos222 EXCL semop 4621.92Schristos223 EXCL semconfig 4631.23Scgd#endif 4641.92Schristos#if defined(SYSVMSG) || !defined(_KERNEL) 4651.163Sad224 COMPAT_14 MPSAFE { int sys_msgctl(int msqid, int cmd, \ 4661.97Sthorpej struct msqid_ds14 *buf); } 4671.163Sad225 STD MPSAFE { int sys_msgget(key_t key, int msgflg); } 4681.163Sad226 STD MPSAFE { int sys_msgsnd(int msqid, const void *msgp, \ 4691.74Skleink size_t msgsz, int msgflg); } 4701.163Sad227 STD MPSAFE { ssize_t sys_msgrcv(int msqid, void *msgp, \ 4711.74Skleink size_t msgsz, long msgtyp, int msgflg); } 4721.23Scgd#else 4731.163Sad224 EXCL compat_14_msgctl 4741.163Sad225 EXCL msgget 4751.163Sad226 EXCL msgsnd 4761.163Sad227 EXCL msgrcv 4771.23Scgd#endif 4781.92Schristos#if defined(SYSVSHM) || !defined(_KERNEL) 4791.182Sad228 STD MPSAFE { void *sys_shmat(int shmid, const void *shmaddr, \ 4801.44Scgd int shmflg); } 4811.182Sad229 COMPAT_14 MPSAFE { int sys_shmctl(int shmid, int cmd, \ 4821.97Sthorpej struct shmid_ds14 *buf); } 4831.182Sad230 STD MPSAFE { int sys_shmdt(const void *shmaddr); } 4841.182Sad231 STD MPSAFE { int sys_shmget(key_t key, size_t size, int shmflg); } 4851.23Scgd#else 4861.92Schristos228 EXCL shmat 4871.97Sthorpej229 EXCL compat_14_shmctl 4881.92Schristos230 EXCL shmdt 4891.92Schristos231 EXCL shmget 4901.23Scgd#endif 4911.175Sad232 STD MPSAFE { int sys_clock_gettime(clockid_t clock_id, \ 4921.49Skleink struct timespec *tp); } 4931.183Sad233 STD MPSAFE { int sys_clock_settime(clockid_t clock_id, \ 4941.49Skleink const struct timespec *tp); } 4951.175Sad234 STD MPSAFE { int sys_clock_getres(clockid_t clock_id, \ 4961.49Skleink struct timespec *tp); } 4971.118Sthorpej235 STD { int sys_timer_create(clockid_t clock_id, \ 4981.118Sthorpej struct sigevent *evp, timer_t *timerid); } 4991.118Sthorpej236 STD { int sys_timer_delete(timer_t timerid); } 5001.118Sthorpej237 STD { int sys_timer_settime(timer_t timerid, int flags, \ 5011.118Sthorpej const struct itimerspec *value, \ 5021.118Sthorpej struct itimerspec *ovalue); } 5031.118Sthorpej238 STD { int sys_timer_gettime(timer_t timerid, struct \ 5041.118Sthorpej itimerspec *value); } 5051.118Sthorpej239 STD { int sys_timer_getoverrun(timer_t timerid); } 5061.54Sveego; 5071.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 5081.54Sveego; 5091.163Sad240 STD MPSAFE { int sys_nanosleep(const struct timespec *rqtp, \ 5101.49Skleink struct timespec *rmtp); } 5111.182Sad241 STD MPSAFE { int sys_fdatasync(int fd); } 5121.182Sad242 STD MPSAFE { int sys_mlockall(int flags); } 5131.182Sad243 STD MPSAFE { int sys_munlockall(void); } 5141.163Sad244 STD MPSAFE { int sys___sigtimedwait(const sigset_t *set, \ 5151.127Sjdolecek siginfo_t *info, \ 5161.127Sjdolecek struct timespec *timeout); } 5171.127Sjdolecek245 UNIMPL sys_sigqueue 5181.185Sad246 STD MPSAFE { int sys_modctl(int cmd, void *arg); } 5191.133Schristos#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC)) 5201.182Sad247 STD MPSAFE { int sys__ksem_init(unsigned int value, semid_t *idp); } 5211.182Sad248 STD MPSAFE { int sys__ksem_open(const char *name, int oflag, \ 5221.119Schristos mode_t mode, unsigned int value, semid_t *idp); } 5231.182Sad249 STD MPSAFE { int sys__ksem_unlink(const char *name); } 5241.182Sad250 STD MPSAFE { int sys__ksem_close(semid_t id); } 5251.182Sad251 STD MPSAFE { int sys__ksem_post(semid_t id); } 5261.182Sad252 STD MPSAFE { int sys__ksem_wait(semid_t id); } 5271.182Sad253 STD MPSAFE { int sys__ksem_trywait(semid_t id); } 5281.182Sad254 STD MPSAFE { int sys__ksem_getvalue(semid_t id, \ 5291.119Schristos unsigned int *value); } 5301.182Sad255 STD MPSAFE { int sys__ksem_destroy(semid_t id); } 5311.124Sthorpej256 UNIMPL sys__ksem_timedwait 5321.119Schristos#else 5331.122Schristos247 EXCL sys__ksem_init 5341.122Schristos248 EXCL sys__ksem_open 5351.122Schristos249 EXCL sys__ksem_unlink 5361.122Schristos250 EXCL sys__ksem_close 5371.122Schristos251 EXCL sys__ksem_post 5381.122Schristos252 EXCL sys__ksem_wait 5391.122Schristos253 EXCL sys__ksem_trywait 5401.122Schristos254 EXCL sys__ksem_getvalue 5411.122Schristos255 EXCL sys__ksem_destroy 5421.124Sthorpej256 UNIMPL sys__ksem_timedwait 5431.119Schristos#endif 5441.182Sad257 STD MPSAFE { mqd_t sys_mq_open(const char * name, int oflag, \ 5451.177Srmind mode_t mode, struct mq_attr *attr); } 5461.182Sad258 STD MPSAFE { int sys_mq_close(mqd_t mqdes); } 5471.182Sad259 STD MPSAFE { int sys_mq_unlink(const char *name); } 5481.182Sad260 STD MPSAFE { int sys_mq_getattr(mqd_t mqdes, \ 5491.177Srmind struct mq_attr *mqstat); } 5501.182Sad261 STD MPSAFE { int sys_mq_setattr(mqd_t mqdes, \ 5511.177Srmind const struct mq_attr *mqstat, \ 5521.177Srmind struct mq_attr *omqstat); } 5531.182Sad262 STD MPSAFE { int sys_mq_notify(mqd_t mqdes, \ 5541.177Srmind const struct sigevent *notification); } 5551.182Sad263 STD MPSAFE { int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \ 5561.177Srmind size_t msg_len, unsigned msg_prio); } 5571.182Sad264 STD MPSAFE { ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \ 5581.177Srmind size_t msg_len, unsigned *msg_prio); } 5591.182Sad265 STD MPSAFE { int sys_mq_timedsend(mqd_t mqdes, \ 5601.177Srmind const char *msg_ptr, size_t msg_len, \ 5611.177Srmind unsigned msg_prio, \ 5621.177Srmind const struct timespec *abs_timeout); } 5631.182Sad266 STD MPSAFE { ssize_t sys_mq_timedreceive(mqd_t mqdes, \ 5641.177Srmind char *msg_ptr, size_t msg_len, unsigned *msg_prio, \ 5651.177Srmind const struct timespec *abs_timeout); } 5661.49Skleink267 UNIMPL 5671.49Skleink268 UNIMPL 5681.49Skleink269 UNIMPL 5691.182Sad270 STD MPSAFE { int sys___posix_rename(const char *from, \ 5701.49Skleink const char *to); } 5711.182Sad271 STD MPSAFE { int sys_swapctl(int cmd, void *arg, int misc); } 5721.182Sad272 COMPAT_30 MPSAFE { int sys_getdents(int fd, char *buf, size_t count); } 5731.182Sad273 STD MPSAFE { int sys_minherit(void *addr, size_t len, \ 5741.54Sveego int inherit); } 5751.182Sad274 STD MPSAFE { int sys_lchmod(const char *path, mode_t mode); } 5761.182Sad275 STD MPSAFE { int sys_lchown(const char *path, uid_t uid, \ 5771.56Senami gid_t gid); } 5781.182Sad276 STD MPSAFE { int sys_lutimes(const char *path, \ 5791.56Senami const struct timeval *tptr); } 5801.182Sad277 STD MPSAFE { int sys___msync13(void *addr, size_t len, int flags); } 5811.182Sad278 COMPAT_30 MPSAFE { int sys___stat13(const char *path, struct stat13 *ub); } 5821.182Sad279 COMPAT_30 MPSAFE { int sys___fstat13(int fd, struct stat13 *sb); } 5831.182Sad280 COMPAT_30 MPSAFE { int sys___lstat13(const char *path, struct stat13 *ub); } 5841.163Sad281 STD MPSAFE { int sys___sigaltstack14( \ 5851.82Smycroft const struct sigaltstack *nss, \ 5861.82Smycroft struct sigaltstack *oss); } 5871.182Sad282 STD MPSAFE { int sys___vfork14(void); } 5881.182Sad283 STD MPSAFE { int sys___posix_chown(const char *path, uid_t uid, \ 5891.69Skleink gid_t gid); } 5901.182Sad284 STD MPSAFE { int sys___posix_fchown(int fd, uid_t uid, \ 5911.69Skleink gid_t gid); } 5921.182Sad285 STD MPSAFE { int sys___posix_lchown(const char *path, uid_t uid, \ 5931.69Skleink gid_t gid); } 5941.163Sad286 STD MPSAFE { pid_t sys_getsid(pid_t pid); } 5951.182Sad287 STD MPSAFE { pid_t sys___clone(int flags, void *stack); } 5961.182Sad288 STD MPSAFE { int sys_fktrace(int fd, int ops, \ 5971.73Schristos int facs, int pid); } 5981.182Sad289 STD MPSAFE { ssize_t sys_preadv(int fd, \ 5991.79Sthorpej const struct iovec *iovp, int iovcnt, \ 6001.80Sthorpej int pad, off_t offset); } 6011.182Sad290 STD MPSAFE { ssize_t sys_pwritev(int fd, \ 6021.79Sthorpej const struct iovec *iovp, int iovcnt, \ 6031.80Sthorpej int pad, off_t offset); } 6041.163Sad291 COMPAT_16 MPSAFE { int sys___sigaction14(int signum, \ 6051.82Smycroft const struct sigaction *nsa, \ 6061.82Smycroft struct sigaction *osa); } 6071.163Sad292 STD MPSAFE { int sys___sigpending14(sigset_t *set); } 6081.163Sad293 STD MPSAFE { int sys___sigprocmask14(int how, \ 6091.82Smycroft const sigset_t *set, \ 6101.82Smycroft sigset_t *oset); } 6111.163Sad294 STD MPSAFE { int sys___sigsuspend14(const sigset_t *set); } 6121.163Sad295 COMPAT_16 MPSAFE { int sys___sigreturn14(struct sigcontext *sigcntxp); } 6131.182Sad296 STD MPSAFE { int sys___getcwd(char *bufp, size_t length); } 6141.182Sad297 STD MPSAFE { int sys_fchroot(int fd); } 6151.183Sad298 COMPAT_30 MPSAFE { int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); } 6161.183Sad299 COMPAT_30 MPSAFE { int sys_fhstat(const struct compat_30_fhandle *fhp, \ 6171.152Schristos struct stat13 *sb); } 6181.183Sad300 COMPAT_20 MPSAFE { int sys_fhstatfs(const struct compat_30_fhandle *fhp, \ 6191.139Schristos struct statfs12 *buf); } 6201.97Sthorpej#if defined(SYSVSEM) || !defined(_KERNEL) 6211.172Sad301 STD MPSAFE { int sys_____semctl13(int semid, int semnum, int cmd, \ 6221.99Schristos ... union __semun *arg); } 6231.97Sthorpej#else 6241.99Schristos301 EXCL ____semctl13 6251.97Sthorpej#endif 6261.97Sthorpej#if defined(SYSVMSG) || !defined(_KERNEL) 6271.163Sad302 STD MPSAFE { int sys___msgctl13(int msqid, int cmd, \ 6281.97Sthorpej struct msqid_ds *buf); } 6291.97Sthorpej#else 6301.97Sthorpej302 EXCL __msgctl13 6311.97Sthorpej#endif 6321.97Sthorpej#if defined(SYSVSHM) || !defined(_KERNEL) 6331.182Sad303 STD MPSAFE { int sys___shmctl13(int shmid, int cmd, \ 6341.97Sthorpej struct shmid_ds *buf); } 6351.97Sthorpej#else 6361.97Sthorpej303 EXCL __shmctl13 6371.97Sthorpej#endif 6381.182Sad304 STD MPSAFE { int sys_lchflags(const char *path, u_long flags); } 6391.163Sad305 STD MPSAFE { int sys_issetugid(void); } 6401.163Sad306 STD MPSAFE { int sys_utrace(const char *label, void *addr, \ 6411.118Sthorpej size_t len); } 6421.176Sad307 STD MPSAFE { int sys_getcontext(struct __ucontext *ucp); } 6431.176Sad308 STD MPSAFE { int sys_setcontext(const struct __ucontext *ucp); } 6441.182Sad309 STD MPSAFE { int sys__lwp_create(const struct __ucontext *ucp, \ 6451.118Sthorpej u_long flags, lwpid_t *new_lwp); } 6461.182Sad310 STD MPSAFE { int sys__lwp_exit(void); } 6471.163Sad311 STD MPSAFE { lwpid_t sys__lwp_self(void); } 6481.163Sad312 STD MPSAFE { int sys__lwp_wait(lwpid_t wait_for, \ 6491.118Sthorpej lwpid_t *departed); } 6501.163Sad313 STD MPSAFE { int sys__lwp_suspend(lwpid_t target); } 6511.163Sad314 STD MPSAFE { int sys__lwp_continue(lwpid_t target); } 6521.163Sad315 STD MPSAFE { int sys__lwp_wakeup(lwpid_t target); } 6531.163Sad316 STD MPSAFE { void *sys__lwp_getprivate(void); } 6541.163Sad317 STD MPSAFE { void sys__lwp_setprivate(void *ptr); } 6551.182Sad318 STD MPSAFE { int sys__lwp_kill(lwpid_t target, int signo); } 6561.163Sad319 STD MPSAFE { int sys__lwp_detach(lwpid_t target); } 6571.163Sad320 STD MPSAFE { int sys__lwp_park(const struct timespec *ts, \ 6581.175Sad lwpid_t unpark, const void *hint, \ 6591.175Sad const void *unparkhint); } 6601.164Sad321 STD MPSAFE { int sys__lwp_unpark(lwpid_t target, const void *hint); } 6611.166Sdrochner322 STD MPSAFE { ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \ 6621.164Sad size_t ntargets, const void *hint); } 6631.182Sad323 STD MPSAFE { int sys__lwp_setname(lwpid_t target, \ 6641.178Sad const char *name); } 6651.182Sad324 STD MPSAFE { int sys__lwp_getname(lwpid_t target, \ 6661.178Sad char *name, size_t len); } 6671.182Sad325 STD MPSAFE { int sys__lwp_ctl(int features, \ 6681.180Sad struct lwpctl **address); } 6691.180Sad; Syscalls 326-339 reserved for LWP syscalls. 6701.107Snathanw326 UNIMPL 6711.107Snathanw327 UNIMPL 6721.107Snathanw328 UNIMPL 6731.107Snathanw329 UNIMPL 6741.165Sad; Obsolete SA system calls. Must remain until libc's major version is bumped. 6751.165Sad330 STD MPSAFE { int sys_sa_register(void); } 6761.165Sad331 STD MPSAFE { int sys_sa_stacks(void); } 6771.165Sad332 STD MPSAFE { int sys_sa_enable(void); } 6781.165Sad333 STD MPSAFE { int sys_sa_setconcurrency(void); } 6791.165Sad334 STD MPSAFE { int sys_sa_yield(void); } 6801.165Sad335 STD MPSAFE { int sys_sa_preempt(void); } 6811.165Sad336 STD MPSAFE { int sys_sa_unblockyield(void); } 6821.107Snathanw337 UNIMPL 6831.107Snathanw338 UNIMPL 6841.107Snathanw339 UNIMPL 6851.163Sad340 STD MPSAFE { int sys___sigaction_sigtramp(int signum, \ 6861.112Sthorpej const struct sigaction *nsa, \ 6871.112Sthorpej struct sigaction *osa, \ 6881.132Smatt const void *tramp, int vers); } 6891.113Sbriggs341 STD { int sys_pmc_get_info(int ctr, int op, void *args); } 6901.113Sbriggs342 STD { int sys_pmc_control(int ctr, int op, void *args); } 6911.182Sad343 STD MPSAFE { int sys_rasctl(void *addr, size_t len, int op); } 6921.116Sjdolecek344 STD { int sys_kqueue(void); } 6931.116Sjdolecek345 STD { int sys_kevent(int fd, \ 6941.116Sjdolecek const struct kevent *changelist, size_t nchanges, \ 6951.116Sjdolecek struct kevent *eventlist, size_t nevents, \ 6961.116Sjdolecek const struct timespec *timeout); } 6971.184Srmind 6981.184Srmind; Scheduling system calls. 6991.184Srmind346 STD MPSAFE { int sys__sched_setparam(pid_t pid, lwpid_t lid, \ 7001.188Syamt int policy, const struct sched_param *params); } 7011.184Srmind347 STD MPSAFE { int sys__sched_getparam(pid_t pid, lwpid_t lid, \ 7021.188Syamt int *policy, struct sched_param *params); } 7031.184Srmind348 STD MPSAFE { int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \ 7041.184Srmind size_t size, void *cpuset); } 7051.184Srmind349 STD MPSAFE { int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \ 7061.184Srmind size_t size, void *cpuset); } 7071.163Sad350 STD MPSAFE { int sys_sched_yield(void); } 7081.184Srmind351 UNIMPL 7091.184Srmind352 UNIMPL 7101.184Srmind353 UNIMPL 7111.134Sthorpej 7121.182Sad354 STD MPSAFE { int sys_fsync_range(int fd, int flags, off_t start, \ 7131.134Sthorpej off_t length); } 7141.183Sad355 STD MPSAFE { int sys_uuidgen(struct uuid *store, int count); } 7151.183Sad356 STD MPSAFE { int sys_getvfsstat(struct statvfs *buf, \ 7161.139Schristos size_t bufsize, int flags); } 7171.183Sad357 STD MPSAFE { int sys_statvfs1(const char *path, \ 7181.139Schristos struct statvfs *buf, int flags); } 7191.183Sad358 STD MPSAFE { int sys_fstatvfs1(int fd, struct statvfs *buf, \ 7201.139Schristos int flags); } 7211.183Sad359 COMPAT_30 MPSAFE { int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \ 7221.139Schristos struct statvfs *buf, int flags); } 7231.186Sad360 STD MPSAFE { int sys_extattrctl(const char *path, int cmd, \ 7241.143Sthorpej const char *filename, int attrnamespace, \ 7251.143Sthorpej const char *attrname); } 7261.186Sad361 STD MPSAFE { int sys_extattr_set_file(const char *path, \ 7271.143Sthorpej int attrnamespace, const char *attrname, \ 7281.143Sthorpej const void *data, size_t nbytes); } 7291.186Sad362 STD MPSAFE { ssize_t sys_extattr_get_file(const char *path, \ 7301.143Sthorpej int attrnamespace, const char *attrname, \ 7311.143Sthorpej void *data, size_t nbytes); } 7321.186Sad363 STD MPSAFE { int sys_extattr_delete_file(const char *path, \ 7331.143Sthorpej int attrnamespace, const char *attrname); } 7341.186Sad364 STD MPSAFE { int sys_extattr_set_fd(int fd, \ 7351.143Sthorpej int attrnamespace, const char *attrname, \ 7361.143Sthorpej const void *data, size_t nbytes); } 7371.186Sad365 STD MPSAFE { ssize_t sys_extattr_get_fd(int fd, \ 7381.143Sthorpej int attrnamespace, const char *attrname, \ 7391.143Sthorpej void *data, size_t nbytes); } 7401.186Sad366 STD MPSAFE { int sys_extattr_delete_fd(int fd, \ 7411.143Sthorpej int attrnamespace, const char *attrname); } 7421.186Sad367 STD MPSAFE { int sys_extattr_set_link(const char *path, \ 7431.143Sthorpej int attrnamespace, const char *attrname, \ 7441.143Sthorpej const void *data, size_t nbytes); } 7451.186Sad368 STD MPSAFE { ssize_t sys_extattr_get_link(const char *path, \ 7461.143Sthorpej int attrnamespace, const char *attrname, \ 7471.143Sthorpej void *data, size_t nbytes); } 7481.186Sad369 STD MPSAFE { int sys_extattr_delete_link(const char *path, \ 7491.143Sthorpej int attrnamespace, const char *attrname); } 7501.186Sad370 STD MPSAFE { ssize_t sys_extattr_list_fd(int fd, \ 7511.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7521.186Sad371 STD MPSAFE { ssize_t sys_extattr_list_file(const char *path, \ 7531.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7541.186Sad372 STD MPSAFE { ssize_t sys_extattr_list_link(const char *path, \ 7551.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7561.182Sad373 STD MPSAFE { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ 7571.145Smatt fd_set *ex, const struct timespec *ts, \ 7581.145Smatt const sigset_t *mask); } 7591.182Sad374 STD MPSAFE { int sys_pollts(struct pollfd *fds, u_int nfds, \ 7601.145Smatt const struct timespec *ts, const sigset_t *mask); } 7611.186Sad375 STD MPSAFE { int sys_setxattr(const char *path, \ 7621.147Sthorpej const char *name, void *value, size_t size, \ 7631.147Sthorpej int flags); } 7641.186Sad376 STD MPSAFE { int sys_lsetxattr(const char *path, \ 7651.147Sthorpej const char *name, void *value, size_t size, \ 7661.147Sthorpej int flags); } 7671.186Sad377 STD MPSAFE { int sys_fsetxattr(int fd, \ 7681.147Sthorpej const char *name, void *value, size_t size, \ 7691.147Sthorpej int flags); } 7701.186Sad378 STD MPSAFE { int sys_getxattr(const char *path, \ 7711.147Sthorpej const char *name, void *value, size_t size); } 7721.186Sad379 STD MPSAFE { int sys_lgetxattr(const char *path, \ 7731.147Sthorpej const char *name, void *value, size_t size); } 7741.186Sad380 STD MPSAFE { int sys_fgetxattr(int fd, \ 7751.147Sthorpej const char *name, void *value, size_t size); } 7761.186Sad381 STD MPSAFE { int sys_listxattr(const char *path, \ 7771.147Sthorpej char *list, size_t size); } 7781.186Sad382 STD MPSAFE { int sys_llistxattr(const char *path, \ 7791.147Sthorpej char *list, size_t size); } 7801.186Sad383 STD MPSAFE { int sys_flistxattr(int fd, \ 7811.147Sthorpej char *list, size_t size); } 7821.186Sad384 STD MPSAFE { int sys_removexattr(const char *path, \ 7831.147Sthorpej const char *name); } 7841.186Sad385 STD MPSAFE { int sys_lremovexattr(const char *path, \ 7851.147Sthorpej const char *name); } 7861.186Sad386 STD MPSAFE { int sys_fremovexattr(int fd, \ 7871.147Sthorpej const char *name); } 7881.182Sad387 STD MPSAFE { int sys___stat30(const char *path, struct stat *ub); } 7891.182Sad388 STD MPSAFE { int sys___fstat30(int fd, struct stat *sb); } 7901.182Sad389 STD MPSAFE { int sys___lstat30(const char *path, struct stat *ub); } 7911.182Sad390 STD MPSAFE { int sys___getdents30(int fd, char *buf, size_t count); } 7921.190Smartin391 IGNORED old posix_fadvise 7931.183Sad392 COMPAT_30 MPSAFE { int sys___fhstat30(const struct compat_30_fhandle \ 7941.156Smartin *fhp, struct stat *sb); } 7951.153Sdrochner393 STD { int sys___ntp_gettime30(struct ntptimeval *ntvp); } 7961.154Smrg394 STD { int sys___socket30(int domain, int type, int protocol); } 7971.183Sad395 STD MPSAFE { int sys___getfh30(const char *fname, void *fhp, \ 7981.156Smartin size_t *fh_size); } 7991.183Sad396 STD MPSAFE { int sys___fhopen40(const void *fhp, size_t fh_size,\ 8001.156Smartin int flags); } 8011.183Sad397 STD MPSAFE { int sys___fhstatvfs140(const void *fhp, \ 8021.156Smartin size_t fh_size, struct statvfs *buf, int flags); } 8031.183Sad398 STD MPSAFE { int sys___fhstat40(const void *fhp, \ 8041.156Smartin size_t fh_size, struct stat *sb); } 8051.169Srmind 8061.169Srmind; Asynchronous I/O system calls 8071.182Sad399 STD MPSAFE { int sys_aio_cancel(int fildes, struct aiocb *aiocbp); } 8081.176Sad400 STD MPSAFE { int sys_aio_error(const struct aiocb *aiocbp); } 8091.182Sad401 STD MPSAFE { int sys_aio_fsync(int op, struct aiocb *aiocbp); } 8101.182Sad402 STD MPSAFE { int sys_aio_read(struct aiocb *aiocbp); } 8111.176Sad403 STD MPSAFE { int sys_aio_return(struct aiocb *aiocbp); } 8121.182Sad404 STD MPSAFE { int sys_aio_suspend(const struct aiocb *const *list, \ 8131.169Srmind int nent, const struct timespec *timeout); } 8141.182Sad405 STD MPSAFE { int sys_aio_write(struct aiocb *aiocbp); } 8151.182Sad406 STD MPSAFE { int sys_lio_listio(int mode, struct aiocb *const *list, \ 8161.169Srmind int nent, struct sigevent *sig); } 8171.171Sjoerg 8181.170Sdsl407 UNIMPL 8191.170Sdsl408 UNIMPL 8201.170Sdsl409 UNIMPL 8211.170Sdsl 8221.189Sad410 STD MPSAFE { int sys___mount50(const char *type, \ 8231.170Sdsl const char *path, int flags, void *data, \ 8241.170Sdsl size_t data_len); } 8251.182Sad411 STD MPSAFE { void *sys_mremap(void *old_address, size_t old_size, \ 8261.171Sjoerg void *new_address, size_t new_size, int flags); } 8271.184Srmind 8281.184Srmind; Processor-sets system calls 8291.184Srmind412 STD MPSAFE { int sys_pset_create(psetid_t *psid); } 8301.184Srmind413 STD MPSAFE { int sys_pset_destroy(psetid_t psid); } 8311.184Srmind414 STD MPSAFE { int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \ 8321.184Srmind psetid_t *opsid); } 8331.184Srmind415 STD MPSAFE { int sys__pset_bind(idtype_t idtype, id_t first_id, \ 8341.184Srmind id_t second_id, psetid_t psid, psetid_t *opsid); } 8351.187Smartin416 STD MPSAFE { int sys___posix_fadvise50(int fd, int pad, \ 8361.187Smartin off_t offset, off_t len, int advice); } 837