syscalls.master revision 1.151
11.151Sdrochner $NetBSD: syscalls.master,v 1.151 2006/02/24 19:20:20 drochner 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.23Scgd; type one of STD, OBSOL, UNIMPL, 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.24Smycroft; UNIMPL unimplemented, not included in system 201.92Schristos; EXCL implemented, but not included in system 211.23Scgd; NODEF included, but don't define the syscall number 221.23Scgd; NOARGS included, but don't define the syscall args structure 231.43Scgd; INDIR included, but don't define the syscall args structure, 241.43Scgd; and allow it to be "really" varargs. 251.23Scgd; 261.23Scgd; The compat options are defined in the syscalls.conf file, and the 271.23Scgd; compat option name is prefixed to the syscall name. Other than 281.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for 291.23Scgd; 'libcompat' options). 301.23Scgd; 311.23Scgd; The type-dependent arguments are as follows: 321.23Scgd; For STD, NODEF, NOARGS, and compat syscalls: 331.23Scgd; { pseudo-proto } [alias] 341.23Scgd; For other syscalls: 351.23Scgd; [comment] 361.23Scgd; 371.23Scgd; #ifdef's, etc. may be included, and are copied to the output files. 381.70Sthorpej; #include's are copied to the syscall names and switch definition files only. 391.77Sthorpej 401.77Sthorpej#include "opt_ktrace.h" 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.118Sthorpej#include <sys/sa.h> 561.23Scgd#include <sys/syscallargs.h> 571.103Smycroft 581.103Smycroft%% 591.1Sglass 601.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive 611.1Sglass; are reserved for use in future Berkeley releases. 621.1Sglass; Additional system calls implemented in vendor and other 631.1Sglass; redistributions should be placed in the reserved range at the end 641.1Sglass; of the current calls. 651.1Sglass 661.43Scgd0 INDIR { int sys_syscall(int number, ...); } 671.44Scgd1 STD { void sys_exit(int rval); } 681.28Smycroft2 STD { int sys_fork(void); } 691.46Scgd3 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 701.46Scgd4 STD { ssize_t sys_write(int fd, const void *buf, \ 711.46Scgd size_t nbyte); } 721.46Scgd5 STD { int sys_open(const char *path, \ 731.60Schristos int flags, ... mode_t mode); } 741.28Smycroft6 STD { int sys_close(int fd); } 751.28Smycroft7 STD { int sys_wait4(int pid, int *status, int options, \ 761.23Scgd struct rusage *rusage); } 771.60Schristos8 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat 781.46Scgd9 STD { int sys_link(const char *path, const char *link); } 791.46Scgd10 STD { int sys_unlink(const char *path); } 801.23Scgd11 OBSOL execv 811.46Scgd12 STD { int sys_chdir(const char *path); } 821.28Smycroft13 STD { int sys_fchdir(int fd); } 831.60Schristos14 STD { int sys_mknod(const char *path, mode_t mode, \ 841.60Schristos dev_t dev); } 851.60Schristos15 STD { int sys_chmod(const char *path, mode_t mode); } 861.46Scgd16 STD { int sys_chown(const char *path, uid_t uid, \ 871.46Scgd gid_t gid); } 881.28Smycroft17 STD { int sys_obreak(char *nsize); } break 891.139Schristos18 COMPAT_20 { int sys_getfsstat(struct statfs12 *buf, \ 901.139Schristos long bufsize, int flags); } 911.29Smycroft19 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \ 921.29Smycroft olseek 931.104Smycroft#ifdef COMPAT_43 941.108Sthorpej20 STD { pid_t sys_getpid_with_ppid(void); } getpid 951.104Smycroft#else 961.108Sthorpej20 STD MPSAFE { pid_t sys_getpid(void); } 971.104Smycroft#endif 981.46Scgd21 STD { int sys_mount(const char *type, const char *path, \ 991.46Scgd int flags, void *data); } 1001.46Scgd22 STD { int sys_unmount(const char *path, int flags); } 1011.28Smycroft23 STD { int sys_setuid(uid_t uid); } 1021.104Smycroft#ifdef COMPAT_43 1031.104Smycroft24 STD { uid_t sys_getuid_with_euid(void); } getuid 1041.104Smycroft#else 1051.28Smycroft24 STD { uid_t sys_getuid(void); } 1061.104Smycroft#endif 1071.28Smycroft25 STD { uid_t sys_geteuid(void); } 1081.28Smycroft26 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ 1091.23Scgd int data); } 1101.44Scgd27 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ 1111.28Smycroft int flags); } 1121.46Scgd28 STD { ssize_t sys_sendmsg(int s, \ 1131.46Scgd const struct msghdr *msg, int flags); } 1141.46Scgd29 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.46Scgd33 STD { int sys_access(const char *path, int flags); } 1241.46Scgd34 STD { int sys_chflags(const char *path, u_long flags); } 1251.46Scgd35 STD { int sys_fchflags(int fd, u_long flags); } 1261.44Scgd36 STD { void sys_sync(void); } 1271.28Smycroft37 STD { int sys_kill(int pid, int signum); } 1281.60Schristos38 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \ 1291.60Schristos stat43 1301.28Smycroft39 STD { pid_t sys_getppid(void); } 1311.60Schristos40 COMPAT_43 { int sys_lstat(const char *path, \ 1321.60Schristos struct stat43 *ub); } lstat43 1331.59Smycroft41 STD { int sys_dup(int fd); } 1341.28Smycroft42 STD { int sys_pipe(void); } 1351.28Smycroft43 STD { gid_t sys_getegid(void); } 1361.30Scgd44 STD { int sys_profil(caddr_t samples, size_t size, \ 1371.30Scgd u_long offset, u_int scale); } 1381.92Schristos#if defined(KTRACE) || !defined(_KERNEL) 1391.46Scgd45 STD { int sys_ktrace(const char *fname, int ops, \ 1401.46Scgd int facs, int pid); } 1411.1Sglass#else 1421.92Schristos45 EXCL ktrace 1431.1Sglass#endif 1441.82Smycroft46 COMPAT_13 { int sys_sigaction(int signum, \ 1451.82Smycroft const struct sigaction13 *nsa, \ 1461.82Smycroft struct sigaction13 *osa); } sigaction13 1471.104Smycroft#ifdef COMPAT_43 1481.104Smycroft47 STD { gid_t sys_getgid_with_egid(void); } getgid 1491.104Smycroft#else 1501.28Smycroft47 STD { gid_t sys_getgid(void); } 1511.104Smycroft#endif 1521.82Smycroft48 COMPAT_13 { int sys_sigprocmask(int how, \ 1531.82Smycroft int mask); } sigprocmask13 1541.90Skleink49 STD { int sys___getlogin(char *namebuf, size_t namelen); } 1551.118Sthorpej50 STD { int sys___setlogin(const char *namebuf); } 1561.46Scgd51 STD { int sys_acct(const char *path); } 1571.82Smycroft52 COMPAT_13 { int sys_sigpending(void); } sigpending13 1581.82Smycroft53 COMPAT_13 { int sys_sigaltstack( \ 1591.82Smycroft const struct sigaltstack13 *nss, \ 1601.82Smycroft struct sigaltstack13 *oss); } sigaltstack13 1611.46Scgd54 STD { int sys_ioctl(int fd, \ 1621.61Schristos u_long com, ... void *data); } 1631.34Smrg55 COMPAT_12 { int sys_reboot(int opt); } oreboot 1641.46Scgd56 STD { int sys_revoke(const char *path); } 1651.46Scgd57 STD { int sys_symlink(const char *path, \ 1661.46Scgd const char *link); } 1671.142Skleink58 STD { ssize_t sys_readlink(const char *path, char *buf, \ 1681.72Skleink size_t count); } 1691.46Scgd59 STD { int sys_execve(const char *path, \ 1701.46Scgd char * const *argp, char * const *envp); } 1711.62Smycroft60 STD { mode_t sys_umask(mode_t newmask); } 1721.46Scgd61 STD { int sys_chroot(const char *path); } 1731.60Schristos62 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43 1741.28Smycroft63 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \ 1751.29Smycroft int arg); } ogetkerninfo 1761.29Smycroft64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 1771.60Schristos65 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); } 1781.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 1791.28Smycroft66 STD { int sys_vfork(void); } 1801.23Scgd67 OBSOL vread 1811.23Scgd68 OBSOL vwrite 1821.95Skleink69 STD { int sys_sbrk(intptr_t incr); } 1831.28Smycroft70 STD { int sys_sstk(int incr); } 1841.28Smycroft71 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \ 1851.29Smycroft int flags, int fd, long pos); } ommap 1861.28Smycroft72 STD { int sys_ovadvise(int anom); } vadvise 1871.61Schristos73 STD { int sys_munmap(void *addr, size_t len); } 1881.61Schristos74 STD { int sys_mprotect(void *addr, size_t len, \ 1891.28Smycroft int prot); } 1901.61Schristos75 STD { int sys_madvise(void *addr, size_t len, \ 1911.28Smycroft int behav); } 1921.23Scgd76 OBSOL vhangup 1931.23Scgd77 OBSOL vlimit 1941.91Sthorpej78 STD { int sys_mincore(void *addr, size_t len, \ 1951.28Smycroft char *vec); } 1961.64Sthorpej79 STD { int sys_getgroups(int gidsetsize, \ 1971.59Smycroft gid_t *gidset); } 1981.64Sthorpej80 STD { int sys_setgroups(int gidsetsize, \ 1991.46Scgd const gid_t *gidset); } 2001.28Smycroft81 STD { int sys_getpgrp(void); } 2011.28Smycroft82 STD { int sys_setpgid(int pid, int pgid); } 2021.58Smycroft83 STD { int sys_setitimer(int which, \ 2031.46Scgd const struct itimerval *itv, \ 2041.46Scgd struct itimerval *oitv); } 2051.29Smycroft84 COMPAT_43 { int sys_wait(void); } owait 2061.52Smrg85 COMPAT_12 { int sys_swapon(const char *name); } oswapon 2071.58Smycroft86 STD { int sys_getitimer(int which, \ 2081.28Smycroft struct itimerval *itv); } 2091.29Smycroft87 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \ 2101.29Smycroft ogethostname 2111.29Smycroft88 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \ 2121.29Smycroft osethostname 2131.29Smycroft89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 2141.59Smycroft90 STD { int sys_dup2(int from, int to); } 2151.23Scgd91 UNIMPL getdopt 2161.44Scgd92 STD { int sys_fcntl(int fd, int cmd, ... void *arg); } 2171.64Sthorpej93 STD { int sys_select(int nd, fd_set *in, fd_set *ou, \ 2181.23Scgd fd_set *ex, struct timeval *tv); } 2191.23Scgd94 UNIMPL setdopt 2201.28Smycroft95 STD { int sys_fsync(int fd); } 2211.140Skleink96 STD { int sys_setpriority(int which, id_t who, int prio); } 2221.28Smycroft97 STD { int sys_socket(int domain, int type, int protocol); } 2231.46Scgd98 STD { int sys_connect(int s, const struct sockaddr *name, \ 2241.88Skleink unsigned int namelen); } 2251.46Scgd99 COMPAT_43 { int sys_accept(int s, caddr_t name, \ 2261.46Scgd int *anamelen); } oaccept 2271.140Skleink100 STD { int sys_getpriority(int which, id_t who); } 2281.28Smycroft101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ 2291.29Smycroft int flags); } osend 2301.28Smycroft102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ 2311.29Smycroft int flags); } orecv 2321.84Smycroft103 COMPAT_13 { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \ 2331.83Smycroft sigreturn13 2341.46Scgd104 STD { int sys_bind(int s, const struct sockaddr *name, \ 2351.88Skleink unsigned int namelen); } 2361.28Smycroft105 STD { int sys_setsockopt(int s, int level, int name, \ 2371.88Skleink const void *val, unsigned int valsize); } 2381.28Smycroft106 STD { int sys_listen(int s, int backlog); } 2391.23Scgd107 OBSOL vtimes 2401.28Smycroft108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \ 2411.29Smycroft struct sigvec *osv); } osigvec 2421.29Smycroft109 COMPAT_43 { int sys_sigblock(int mask); } osigblock 2431.29Smycroft110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask 2441.82Smycroft111 COMPAT_13 { int sys_sigsuspend(int mask); } sigsuspend13 2451.28Smycroft112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \ 2461.29Smycroft struct sigstack *oss); } osigstack 2471.28Smycroft113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ 2481.29Smycroft int flags); } orecvmsg 2491.29Smycroft114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \ 2501.29Smycroft osendmsg 2511.23Scgd115 OBSOL vtrace 2521.28Smycroft116 STD { int sys_gettimeofday(struct timeval *tp, \ 2531.141Skleink void *tzp); } 2541.28Smycroft117 STD { int sys_getrusage(int who, struct rusage *rusage); } 2551.28Smycroft118 STD { int sys_getsockopt(int s, int level, int name, \ 2561.88Skleink void *val, unsigned int *avalsize); } 2571.26Scgd119 OBSOL resuba 2581.58Smycroft120 STD { ssize_t sys_readv(int fd, \ 2591.58Smycroft const struct iovec *iovp, int iovcnt); } 2601.46Scgd121 STD { ssize_t sys_writev(int fd, \ 2611.58Smycroft const struct iovec *iovp, int iovcnt); } 2621.46Scgd122 STD { int sys_settimeofday(const struct timeval *tv, \ 2631.141Skleink const void *tzp); } 2641.46Scgd123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); } 2651.60Schristos124 STD { int sys_fchmod(int fd, mode_t mode); } 2661.28Smycroft125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \ 2671.29Smycroft int flags, caddr_t from, int *fromlenaddr); } \ 2681.29Smycroft orecvfrom 2691.46Scgd126 STD { int sys_setreuid(uid_t ruid, uid_t euid); } 2701.46Scgd127 STD { int sys_setregid(gid_t rgid, gid_t egid); } 2711.46Scgd128 STD { int sys_rename(const char *from, const char *to); } 2721.60Schristos129 COMPAT_43 { int sys_truncate(const char *path, long length); } \ 2731.29Smycroft otruncate 2741.29Smycroft130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate 2751.28Smycroft131 STD { int sys_flock(int fd, int how); } 2761.60Schristos132 STD { int sys_mkfifo(const char *path, mode_t mode); } 2771.46Scgd133 STD { ssize_t sys_sendto(int s, const void *buf, \ 2781.46Scgd size_t len, int flags, const struct sockaddr *to, \ 2791.88Skleink unsigned int tolen); } 2801.28Smycroft134 STD { int sys_shutdown(int s, int how); } 2811.28Smycroft135 STD { int sys_socketpair(int domain, int type, \ 2821.28Smycroft int protocol, int *rsv); } 2831.60Schristos136 STD { int sys_mkdir(const char *path, mode_t mode); } 2841.46Scgd137 STD { int sys_rmdir(const char *path); } 2851.46Scgd138 STD { int sys_utimes(const char *path, \ 2861.46Scgd const struct timeval *tptr); } 2871.23Scgd139 OBSOL 4.2 sigreturn 2881.46Scgd140 STD { int sys_adjtime(const struct timeval *delta, \ 2891.23Scgd struct timeval *olddelta); } 2901.28Smycroft141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \ 2911.29Smycroft int *alen); } ogetpeername 2921.29Smycroft142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 2931.29Smycroft143 COMPAT_43 { int sys_sethostid(int32_t hostid); } osethostid 2941.58Smycroft144 COMPAT_43 { int sys_getrlimit(int which, \ 2951.58Smycroft struct orlimit *rlp); } ogetrlimit 2961.58Smycroft145 COMPAT_43 { int sys_setrlimit(int which, \ 2971.58Smycroft const struct orlimit *rlp); } osetrlimit 2981.29Smycroft146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg 2991.28Smycroft147 STD { int sys_setsid(void); } 3001.46Scgd148 STD { int sys_quotactl(const char *path, int cmd, \ 3011.46Scgd int uid, caddr_t arg); } 3021.29Smycroft149 COMPAT_43 { int sys_quota(void); } oquota 3031.28Smycroft150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \ 3041.29Smycroft int *alen); } ogetsockname 3051.1Sglass 3061.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 3071.1Sglass; system calls. (This includes various calls added for compatibity 3081.1Sglass; with other Unix variants.) 3091.1Sglass; Some of these calls are now supported by BSD... 3101.23Scgd151 UNIMPL 3111.23Scgd152 UNIMPL 3121.23Scgd153 UNIMPL 3131.23Scgd154 UNIMPL 3141.92Schristos#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 3151.46Scgd155 STD { int sys_nfssvc(int flag, void *argp); } 3161.1Sglass#else 3171.92Schristos155 EXCL nfssvc 3181.1Sglass#endif 3191.28Smycroft156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \ 3201.29Smycroft u_int count, long *basep); } ogetdirentries 3211.139Schristos157 COMPAT_20 { int sys_statfs(const char *path, \ 3221.139Schristos struct statfs12 *buf); } 3231.139Schristos158 COMPAT_20 { int sys_fstatfs(int fd, struct statfs12 *buf); } 3241.23Scgd159 UNIMPL 3251.23Scgd160 UNIMPL 3261.46Scgd161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); } 3271.29Smycroft162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \ 3281.29Smycroft ogetdomainname 3291.29Smycroft163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ 3301.29Smycroft osetdomainname 3311.29Smycroft164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname 3321.71Sperry165 STD { int sys_sysarch(int op, void *parms); } 3331.23Scgd166 UNIMPL 3341.23Scgd167 UNIMPL 3351.23Scgd168 UNIMPL 3361.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3371.111Seeh#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) 3381.28Smycroft169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \ 3391.29Smycroft int a5); } osemsys 3401.9Scgd#else 3411.92Schristos169 EXCL 1.0 semsys 3421.9Scgd#endif 3431.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3441.111Seeh#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) 3451.28Smycroft170 COMPAT_10 { int sys_msgsys(int which, int a2, int a3, int a4, \ 3461.29Smycroft int a5, int a6); } omsgsys 3471.9Scgd#else 3481.92Schristos170 EXCL 1.0 msgsys 3491.9Scgd#endif 3501.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3511.111Seeh#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) 3521.29Smycroft171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \ 3531.29Smycroft oshmsys 3541.1Sglass#else 3551.92Schristos171 EXCL 1.0 shmsys 3561.1Sglass#endif 3571.23Scgd172 UNIMPL 3581.79Sthorpej173 STD { ssize_t sys_pread(int fd, void *buf, \ 3591.80Sthorpej size_t nbyte, int pad, off_t offset); } 3601.79Sthorpej174 STD { ssize_t sys_pwrite(int fd, const void *buf, \ 3611.80Sthorpej size_t nbyte, int pad, off_t offset); } 3621.102Sbjh21; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded. 3631.45Scgd175 STD { int sys_ntp_gettime(struct ntptimeval *ntvp); } 3641.102Sbjh21#if defined(NTP) || !defined(_KERNEL) 3651.38Sthorpej176 STD { int sys_ntp_adjtime(struct timex *tp); } 3661.102Sbjh21#else 3671.102Sbjh21176 EXCL ntp_adjtime 3681.102Sbjh21#endif 3691.23Scgd177 UNIMPL 3701.23Scgd178 UNIMPL 3711.23Scgd179 UNIMPL 3721.23Scgd180 UNIMPL 3731.1Sglass 3741.1Sglass; Syscalls 180-199 are used by/reserved for BSD 3751.28Smycroft181 STD { int sys_setgid(gid_t gid); } 3761.28Smycroft182 STD { int sys_setegid(gid_t egid); } 3771.28Smycroft183 STD { int sys_seteuid(uid_t euid); } 3781.92Schristos#if defined(LFS) || !defined(_KERNEL) 3791.92Schristos184 STD { int sys_lfs_bmapv(fsid_t *fsidp, \ 3801.23Scgd struct block_info *blkiov, int blkcnt); } 3811.92Schristos185 STD { int sys_lfs_markv(fsid_t *fsidp, \ 3821.23Scgd struct block_info *blkiov, int blkcnt); } 3831.92Schristos186 STD { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); } 3841.92Schristos187 STD { int sys_lfs_segwait(fsid_t *fsidp, \ 3851.92Schristos struct timeval *tv); } 3861.92Schristos#else 3871.92Schristos184 EXCL lfs_bmapv 3881.92Schristos185 EXCL lfs_markv 3891.92Schristos186 EXCL lfs_segclean 3901.92Schristos187 EXCL lfs_segwait 3911.23Scgd#endif 3921.60Schristos188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ 3931.60Schristos stat12 3941.60Schristos189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 3951.60Schristos190 COMPAT_12 { int sys_lstat(const char *path, \ 3961.60Schristos struct stat12 *ub); } lstat12 3971.46Scgd191 STD { long sys_pathconf(const char *path, int name); } 3981.44Scgd192 STD { long sys_fpathconf(int fd, int name); } 3991.23Scgd193 UNIMPL 4001.58Smycroft194 STD { int sys_getrlimit(int which, \ 4011.58Smycroft struct rlimit *rlp); } 4021.58Smycroft195 STD { int sys_setrlimit(int which, \ 4031.46Scgd const struct rlimit *rlp); } 4041.57Sfvdl196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ 4051.28Smycroft u_int count, long *basep); } 4061.61Schristos197 STD { void *sys_mmap(void *addr, size_t len, int prot, \ 4071.23Scgd int flags, int fd, long pad, off_t pos); } 4081.43Scgd198 INDIR { quad_t sys___syscall(quad_t num, ...); } 4091.28Smycroft199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \ 4101.23Scgd int whence); } 4111.46Scgd200 STD { int sys_truncate(const char *path, int pad, \ 4121.46Scgd off_t length); } 4131.28Smycroft201 STD { int sys_ftruncate(int fd, int pad, off_t length); } 4141.151Sdrochner202 STD { int sys___sysctl(const int *name, u_int namelen, \ 4151.151Sdrochner void *old, size_t *oldlenp, const void *new, \ 4161.28Smycroft size_t newlen); } 4171.75Skleink203 STD { int sys_mlock(const void *addr, size_t len); } 4181.75Skleink204 STD { int sys_munlock(const void *addr, size_t len); } 4191.46Scgd205 STD { int sys_undelete(const char *path); } 4201.46Scgd206 STD { int sys_futimes(int fd, \ 4211.46Scgd const struct timeval *tptr); } 4221.86Skleink207 STD { pid_t sys_getpgid(pid_t pid); } 4231.34Smrg208 STD { int sys_reboot(int opt, char *bootstr); } 4241.36Smycroft209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \ 4251.35Smycroft int timeout); } 4261.11Scgd; 4271.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 4281.11Scgd; 4291.92Schristos#if defined(LKM) || !defined(_KERNEL) 4301.28Smycroft210 NODEF { int sys_lkmnosys(void); } 4311.28Smycroft211 NODEF { int sys_lkmnosys(void); } 4321.28Smycroft212 NODEF { int sys_lkmnosys(void); } 4331.28Smycroft213 NODEF { int sys_lkmnosys(void); } 4341.28Smycroft214 NODEF { int sys_lkmnosys(void); } 4351.28Smycroft215 NODEF { int sys_lkmnosys(void); } 4361.28Smycroft216 NODEF { int sys_lkmnosys(void); } 4371.28Smycroft217 NODEF { int sys_lkmnosys(void); } 4381.28Smycroft218 NODEF { int sys_lkmnosys(void); } 4391.28Smycroft219 NODEF { int sys_lkmnosys(void); } 4401.11Scgd#else /* !LKM */ 4411.92Schristos210 EXCL lkmnosys 4421.92Schristos211 EXCL lkmnosys 4431.92Schristos212 EXCL lkmnosys 4441.92Schristos213 EXCL lkmnosys 4451.92Schristos214 EXCL lkmnosys 4461.92Schristos215 EXCL lkmnosys 4471.92Schristos216 EXCL lkmnosys 4481.92Schristos217 EXCL lkmnosys 4491.92Schristos218 EXCL lkmnosys 4501.92Schristos219 EXCL lkmnosys 4511.6Scgd#endif /* !LKM */ 4521.49Skleink; System calls 220-300 are reserved for use by NetBSD 4531.92Schristos#if defined(SYSVSEM) || !defined(_KERNEL) 4541.97Sthorpej220 COMPAT_14 { int sys___semctl(int semid, int semnum, int cmd, \ 4551.97Sthorpej union __semun *arg); } 4561.28Smycroft221 STD { int sys_semget(key_t key, int nsems, int semflg); } 4571.28Smycroft222 STD { int sys_semop(int semid, struct sembuf *sops, \ 4581.74Skleink size_t nsops); } 4591.28Smycroft223 STD { int sys_semconfig(int flag); } 4601.23Scgd#else 4611.97Sthorpej220 EXCL compat_14_semctl 4621.92Schristos221 EXCL semget 4631.92Schristos222 EXCL semop 4641.92Schristos223 EXCL semconfig 4651.23Scgd#endif 4661.92Schristos#if defined(SYSVMSG) || !defined(_KERNEL) 4671.97Sthorpej224 COMPAT_14 { int sys_msgctl(int msqid, int cmd, \ 4681.97Sthorpej struct msqid_ds14 *buf); } 4691.28Smycroft225 STD { int sys_msgget(key_t key, int msgflg); } 4701.74Skleink226 STD { int sys_msgsnd(int msqid, const void *msgp, \ 4711.74Skleink size_t msgsz, int msgflg); } 4721.74Skleink227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \ 4731.74Skleink size_t msgsz, long msgtyp, int msgflg); } 4741.23Scgd#else 4751.97Sthorpej224 EXCL compat_14_msgctl 4761.92Schristos225 EXCL msgget 4771.92Schristos226 EXCL msgsnd 4781.92Schristos227 EXCL msgrcv 4791.23Scgd#endif 4801.92Schristos#if defined(SYSVSHM) || !defined(_KERNEL) 4811.74Skleink228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ 4821.44Scgd int shmflg); } 4831.97Sthorpej229 COMPAT_14 { int sys_shmctl(int shmid, int cmd, \ 4841.97Sthorpej struct shmid_ds14 *buf); } 4851.74Skleink230 STD { int sys_shmdt(const void *shmaddr); } 4861.74Skleink231 STD { int sys_shmget(key_t key, size_t size, int shmflg); } 4871.23Scgd#else 4881.92Schristos228 EXCL shmat 4891.97Sthorpej229 EXCL compat_14_shmctl 4901.92Schristos230 EXCL shmdt 4911.92Schristos231 EXCL shmget 4921.23Scgd#endif 4931.39Sjtc232 STD { int sys_clock_gettime(clockid_t clock_id, \ 4941.49Skleink struct timespec *tp); } 4951.39Sjtc233 STD { int sys_clock_settime(clockid_t clock_id, \ 4961.49Skleink const struct timespec *tp); } 4971.39Sjtc234 STD { int sys_clock_getres(clockid_t clock_id, \ 4981.49Skleink struct timespec *tp); } 4991.118Sthorpej235 STD { int sys_timer_create(clockid_t clock_id, \ 5001.118Sthorpej struct sigevent *evp, timer_t *timerid); } 5011.118Sthorpej236 STD { int sys_timer_delete(timer_t timerid); } 5021.118Sthorpej237 STD { int sys_timer_settime(timer_t timerid, int flags, \ 5031.118Sthorpej const struct itimerspec *value, \ 5041.118Sthorpej struct itimerspec *ovalue); } 5051.118Sthorpej238 STD { int sys_timer_gettime(timer_t timerid, struct \ 5061.118Sthorpej itimerspec *value); } 5071.118Sthorpej239 STD { int sys_timer_getoverrun(timer_t timerid); } 5081.54Sveego; 5091.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 5101.54Sveego; 5111.48Sjtc240 STD { int sys_nanosleep(const struct timespec *rqtp, \ 5121.49Skleink struct timespec *rmtp); } 5131.76Skleink241 STD { int sys_fdatasync(int fd); } 5141.93Sthorpej242 STD { int sys_mlockall(int flags); } 5151.93Sthorpej243 STD { int sys_munlockall(void); } 5161.127Sjdolecek244 STD { int sys___sigtimedwait(const sigset_t *set, \ 5171.127Sjdolecek siginfo_t *info, \ 5181.127Sjdolecek struct timespec *timeout); } 5191.127Sjdolecek245 UNIMPL sys_sigqueue 5201.127Sjdolecek; 5211.127Sjdolecek; Syscall 246 is free for any use 5221.127Sjdolecek; 5231.127Sjdolecek246 UNIMPL 5241.133Schristos#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC)) 5251.122Schristos247 STD { int sys__ksem_init(unsigned int value, semid_t *idp); } 5261.122Schristos248 STD { int sys__ksem_open(const char *name, int oflag, \ 5271.119Schristos mode_t mode, unsigned int value, semid_t *idp); } 5281.122Schristos249 STD { int sys__ksem_unlink(const char *name); } 5291.122Schristos250 STD { int sys__ksem_close(semid_t id); } 5301.122Schristos251 STD { int sys__ksem_post(semid_t id); } 5311.122Schristos252 STD { int sys__ksem_wait(semid_t id); } 5321.122Schristos253 STD { int sys__ksem_trywait(semid_t id); } 5331.122Schristos254 STD { int sys__ksem_getvalue(semid_t id, \ 5341.119Schristos unsigned int *value); } 5351.122Schristos255 STD { int sys__ksem_destroy(semid_t id); } 5361.124Sthorpej256 UNIMPL sys__ksem_timedwait 5371.119Schristos#else 5381.122Schristos247 EXCL sys__ksem_init 5391.122Schristos248 EXCL sys__ksem_open 5401.122Schristos249 EXCL sys__ksem_unlink 5411.122Schristos250 EXCL sys__ksem_close 5421.122Schristos251 EXCL sys__ksem_post 5431.122Schristos252 EXCL sys__ksem_wait 5441.122Schristos253 EXCL sys__ksem_trywait 5451.122Schristos254 EXCL sys__ksem_getvalue 5461.122Schristos255 EXCL sys__ksem_destroy 5471.124Sthorpej256 UNIMPL sys__ksem_timedwait 5481.119Schristos#endif 5491.125Sthorpej257 UNIMPL sys_mq_open 5501.125Sthorpej258 UNIMPL sys_mq_close 5511.125Sthorpej259 UNIMPL sys_mq_unlink 5521.125Sthorpej260 UNIMPL sys_mq_getattr 5531.125Sthorpej261 UNIMPL sys_mq_setattr 5541.125Sthorpej262 UNIMPL sys_mq_notify 5551.125Sthorpej263 UNIMPL sys_mq_send 5561.125Sthorpej264 UNIMPL sys_mq_receive 5571.125Sthorpej265 UNIMPL sys_mq_timedsend 5581.125Sthorpej266 UNIMPL sys_mq_timedreceive 5591.49Skleink267 UNIMPL 5601.49Skleink268 UNIMPL 5611.49Skleink269 UNIMPL 5621.69Skleink270 STD { int sys___posix_rename(const char *from, \ 5631.49Skleink const char *to); } 5641.146Schristos271 STD { int sys_swapctl(int cmd, void *arg, int misc); } 5651.148Schristos272 COMPAT_30 { int sys_getdents(int fd, char *buf, size_t count); } 5661.61Schristos273 STD { int sys_minherit(void *addr, size_t len, \ 5671.54Sveego int inherit); } 5681.60Schristos274 STD { int sys_lchmod(const char *path, mode_t mode); } 5691.56Senami275 STD { int sys_lchown(const char *path, uid_t uid, \ 5701.56Senami gid_t gid); } 5711.56Senami276 STD { int sys_lutimes(const char *path, \ 5721.56Senami const struct timeval *tptr); } 5731.63Sthorpej277 STD { int sys___msync13(void *addr, size_t len, int flags); } 5741.148Schristos278 COMPAT_30 { int sys___stat13(const char *path, struct stat30 *ub); } 5751.148Schristos279 COMPAT_30 { int sys___fstat13(int fd, struct stat30 *sb); } 5761.148Schristos280 COMPAT_30 { int sys___lstat13(const char *path, struct stat30 *ub); } 5771.82Smycroft281 STD { int sys___sigaltstack14( \ 5781.82Smycroft const struct sigaltstack *nss, \ 5791.82Smycroft struct sigaltstack *oss); } 5801.67Sthorpej282 STD { int sys___vfork14(void); } 5811.69Skleink283 STD { int sys___posix_chown(const char *path, uid_t uid, \ 5821.69Skleink gid_t gid); } 5831.69Skleink284 STD { int sys___posix_fchown(int fd, uid_t uid, \ 5841.69Skleink gid_t gid); } 5851.69Skleink285 STD { int sys___posix_lchown(const char *path, uid_t uid, \ 5861.69Skleink gid_t gid); } 5871.68Sthorpej286 STD { pid_t sys_getsid(pid_t pid); } 5881.110Sthorpej287 STD { pid_t sys___clone(int flags, void *stack); } 5891.92Schristos#if defined(KTRACE) || !defined(_KERNEL) 5901.73Schristos288 STD { int sys_fktrace(const int fd, int ops, \ 5911.73Schristos int facs, int pid); } 5921.73Schristos#else 5931.92Schristos288 EXCL ktrace 5941.73Schristos#endif 5951.79Sthorpej289 STD { ssize_t sys_preadv(int fd, \ 5961.79Sthorpej const struct iovec *iovp, int iovcnt, \ 5971.80Sthorpej int pad, off_t offset); } 5981.79Sthorpej290 STD { ssize_t sys_pwritev(int fd, \ 5991.79Sthorpej const struct iovec *iovp, int iovcnt, \ 6001.80Sthorpej int pad, off_t offset); } 6011.131Schristos291 COMPAT_16 { int sys___sigaction14(int signum, \ 6021.82Smycroft const struct sigaction *nsa, \ 6031.82Smycroft struct sigaction *osa); } 6041.82Smycroft292 STD { int sys___sigpending14(sigset_t *set); } 6051.82Smycroft293 STD { int sys___sigprocmask14(int how, \ 6061.82Smycroft const sigset_t *set, \ 6071.82Smycroft sigset_t *oset); } 6081.82Smycroft294 STD { int sys___sigsuspend14(const sigset_t *set); } 6091.129Schristos295 COMPAT_16 { int sys___sigreturn14(struct sigcontext *sigcntxp); } 6101.89Ssommerfe296 STD { int sys___getcwd(char *bufp, size_t length); } 6111.89Ssommerfe297 STD { int sys_fchroot(int fd); } 6121.94Swrstuden298 STD { int sys_fhopen(const fhandle_t *fhp, int flags); } 6131.94Swrstuden299 STD { int sys_fhstat(const fhandle_t *fhp, \ 6141.94Swrstuden struct stat *sb); } 6151.139Schristos300 COMPAT_20 { int sys_fhstatfs(const fhandle_t *fhp, \ 6161.139Schristos struct statfs12 *buf); } 6171.97Sthorpej#if defined(SYSVSEM) || !defined(_KERNEL) 6181.99Schristos301 STD { int sys_____semctl13(int semid, int semnum, int cmd, \ 6191.99Schristos ... union __semun *arg); } 6201.97Sthorpej#else 6211.99Schristos301 EXCL ____semctl13 6221.97Sthorpej#endif 6231.97Sthorpej#if defined(SYSVMSG) || !defined(_KERNEL) 6241.97Sthorpej302 STD { int sys___msgctl13(int msqid, int cmd, \ 6251.97Sthorpej struct msqid_ds *buf); } 6261.97Sthorpej#else 6271.97Sthorpej302 EXCL __msgctl13 6281.97Sthorpej#endif 6291.97Sthorpej#if defined(SYSVSHM) || !defined(_KERNEL) 6301.97Sthorpej303 STD { int sys___shmctl13(int shmid, int cmd, \ 6311.97Sthorpej struct shmid_ds *buf); } 6321.97Sthorpej#else 6331.97Sthorpej303 EXCL __shmctl13 6341.97Sthorpej#endif 6351.100Smrg304 STD { int sys_lchflags(const char *path, u_long flags); } 6361.101Sminoura305 STD { int sys_issetugid(void); } 6371.106Sjdolecek306 STD { int sys_utrace(const char *label, void *addr, \ 6381.118Sthorpej size_t len); } 6391.118Sthorpej307 STD { int sys_getcontext(struct __ucontext *ucp); } 6401.118Sthorpej308 STD { int sys_setcontext(const struct __ucontext *ucp); } 6411.118Sthorpej309 STD { int sys__lwp_create(const struct __ucontext *ucp, \ 6421.118Sthorpej u_long flags, lwpid_t *new_lwp); } 6431.118Sthorpej310 STD { int sys__lwp_exit(void); } 6441.118Sthorpej311 STD { lwpid_t sys__lwp_self(void); } 6451.118Sthorpej312 STD { int sys__lwp_wait(lwpid_t wait_for, \ 6461.118Sthorpej lwpid_t *departed); } 6471.118Sthorpej313 STD { int sys__lwp_suspend(lwpid_t target); } 6481.118Sthorpej314 STD { int sys__lwp_continue(lwpid_t target); } 6491.118Sthorpej315 STD { int sys__lwp_wakeup(lwpid_t target); } 6501.118Sthorpej316 STD { void *sys__lwp_getprivate(void); } 6511.128Schristos317 STD { void sys__lwp_setprivate(void *ptr); } 6521.118Sthorpej; Syscalls 318-329 reserved for remaining Solaris-compatible LWP calls. 6531.107Snathanw318 UNIMPL 6541.107Snathanw319 UNIMPL 6551.107Snathanw320 UNIMPL 6561.107Snathanw321 UNIMPL 6571.107Snathanw322 UNIMPL 6581.107Snathanw323 UNIMPL 6591.107Snathanw324 UNIMPL 6601.107Snathanw325 UNIMPL 6611.107Snathanw326 UNIMPL 6621.107Snathanw327 UNIMPL 6631.107Snathanw328 UNIMPL 6641.107Snathanw329 UNIMPL 6651.118Sthorpej; Scheduler activation syscalls 6661.118Sthorpej330 STD { int sys_sa_register(sa_upcall_t new, \ 6671.135Scl sa_upcall_t *old, int flags, \ 6681.135Scl ssize_t stackinfo_offset); } 6691.118Sthorpej331 STD { int sys_sa_stacks(int num, stack_t *stacks); } 6701.118Sthorpej332 STD { int sys_sa_enable(void); } 6711.118Sthorpej333 STD { int sys_sa_setconcurrency(int concurrency); } 6721.118Sthorpej334 STD { int sys_sa_yield(void); } 6731.118Sthorpej335 STD { int sys_sa_preempt(int sa_id); } 6741.137Scl336 OBSOL sys_sa_unblockyield 6751.118Sthorpej; 6761.130Scl; Syscalls 337-339 are reserved for other scheduler activation syscalls. 6771.118Sthorpej; 6781.107Snathanw337 UNIMPL 6791.107Snathanw338 UNIMPL 6801.107Snathanw339 UNIMPL 6811.112Sthorpej340 STD { int sys___sigaction_sigtramp(int signum, \ 6821.112Sthorpej const struct sigaction *nsa, \ 6831.112Sthorpej struct sigaction *osa, \ 6841.132Smatt const void *tramp, int vers); } 6851.113Sbriggs341 STD { int sys_pmc_get_info(int ctr, int op, void *args); } 6861.113Sbriggs342 STD { int sys_pmc_control(int ctr, int op, void *args); } 6871.114Sgmcgarry343 STD { int sys_rasctl(caddr_t addr, size_t len, int op); } 6881.116Sjdolecek344 STD { int sys_kqueue(void); } 6891.116Sjdolecek345 STD { int sys_kevent(int fd, \ 6901.116Sjdolecek const struct kevent *changelist, size_t nchanges, \ 6911.116Sjdolecek struct kevent *eventlist, size_t nevents, \ 6921.116Sjdolecek const struct timespec *timeout); } 6931.126Sthorpej; 6941.126Sthorpej; Syscalls 346-353 are reserved for the IEEE Std1003.1b scheduling syscalls 6951.126Sthorpej; 6961.126Sthorpej346 UNIMPL sys_sched_setparam 6971.126Sthorpej347 UNIMPL sys_sched_getparam 6981.126Sthorpej348 UNIMPL sys_sched_setscheduler 6991.126Sthorpej349 UNIMPL sys_sched_getscheduler 7001.126Sthorpej350 UNIMPL sys_sched_yield 7011.126Sthorpej351 UNIMPL sys_sched_get_priority_max 7021.126Sthorpej352 UNIMPL sys_sched_get_priority_min 7031.126Sthorpej353 UNIMPL sys_sched_rr_get_interval 7041.134Sthorpej 7051.134Sthorpej354 STD { int sys_fsync_range(int fd, int flags, off_t start, \ 7061.134Sthorpej off_t length); } 7071.136Stsarna355 STD { int sys_uuidgen(struct uuid *store, int count); } 7081.139Schristos356 STD { int sys_getvfsstat(struct statvfs *buf, \ 7091.139Schristos size_t bufsize, int flags); } 7101.139Schristos357 STD { int sys_statvfs1(const char *path, \ 7111.139Schristos struct statvfs *buf, int flags); } 7121.139Schristos358 STD { int sys_fstatvfs1(int fd, struct statvfs *buf, \ 7131.139Schristos int flags); } 7141.139Schristos359 STD { int sys_fhstatvfs1(const fhandle_t *fhp, \ 7151.139Schristos struct statvfs *buf, int flags); } 7161.143Sthorpej360 STD { int sys_extattrctl(const char *path, int cmd, \ 7171.143Sthorpej const char *filename, int attrnamespace, \ 7181.143Sthorpej const char *attrname); } 7191.143Sthorpej361 STD { int sys_extattr_set_file(const char *path, \ 7201.143Sthorpej int attrnamespace, const char *attrname, \ 7211.143Sthorpej const void *data, size_t nbytes); } 7221.149Schristos362 STD { ssize_t sys_extattr_get_file(const char *path, \ 7231.143Sthorpej int attrnamespace, const char *attrname, \ 7241.143Sthorpej void *data, size_t nbytes); } 7251.143Sthorpej363 STD { int sys_extattr_delete_file(const char *path, \ 7261.143Sthorpej int attrnamespace, const char *attrname); } 7271.143Sthorpej364 STD { int sys_extattr_set_fd(int fd, \ 7281.143Sthorpej int attrnamespace, const char *attrname, \ 7291.143Sthorpej const void *data, size_t nbytes); } 7301.149Schristos365 STD { ssize_t sys_extattr_get_fd(int fd, \ 7311.143Sthorpej int attrnamespace, const char *attrname, \ 7321.143Sthorpej void *data, size_t nbytes); } 7331.143Sthorpej366 STD { int sys_extattr_delete_fd(int fd, \ 7341.143Sthorpej int attrnamespace, const char *attrname); } 7351.143Sthorpej367 STD { int sys_extattr_set_link(const char *path, \ 7361.143Sthorpej int attrnamespace, const char *attrname, \ 7371.143Sthorpej const void *data, size_t nbytes); } 7381.149Schristos368 STD { ssize_t sys_extattr_get_link(const char *path, \ 7391.143Sthorpej int attrnamespace, const char *attrname, \ 7401.143Sthorpej void *data, size_t nbytes); } 7411.143Sthorpej369 STD { int sys_extattr_delete_link(const char *path, \ 7421.143Sthorpej int attrnamespace, const char *attrname); } 7431.149Schristos370 STD { ssize_t sys_extattr_list_fd(int fd, \ 7441.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7451.149Schristos371 STD { ssize_t sys_extattr_list_file(const char *path, \ 7461.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7471.149Schristos372 STD { ssize_t sys_extattr_list_link(const char *path, \ 7481.143Sthorpej int attrnamespace, void *data, size_t nbytes); } 7491.145Smatt373 STD { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ 7501.145Smatt fd_set *ex, const struct timespec *ts, \ 7511.145Smatt const sigset_t *mask); } 7521.145Smatt374 STD { int sys_pollts(struct pollfd *fds, u_int nfds, \ 7531.145Smatt const struct timespec *ts, const sigset_t *mask); } 7541.147Sthorpej375 STD { int sys_setxattr(const char *path, \ 7551.147Sthorpej const char *name, void *value, size_t size, \ 7561.147Sthorpej int flags); } 7571.147Sthorpej376 STD { int sys_lsetxattr(const char *path, \ 7581.147Sthorpej const char *name, void *value, size_t size, \ 7591.147Sthorpej int flags); } 7601.147Sthorpej377 STD { int sys_fsetxattr(int fd, \ 7611.147Sthorpej const char *name, void *value, size_t size, \ 7621.147Sthorpej int flags); } 7631.147Sthorpej378 STD { int sys_getxattr(const char *path, \ 7641.147Sthorpej const char *name, void *value, size_t size); } 7651.147Sthorpej379 STD { int sys_lgetxattr(const char *path, \ 7661.147Sthorpej const char *name, void *value, size_t size); } 7671.147Sthorpej380 STD { int sys_fgetxattr(int fd, \ 7681.147Sthorpej const char *name, void *value, size_t size); } 7691.147Sthorpej381 STD { int sys_listxattr(const char *path, \ 7701.147Sthorpej char *list, size_t size); } 7711.147Sthorpej382 STD { int sys_llistxattr(const char *path, \ 7721.147Sthorpej char *list, size_t size); } 7731.147Sthorpej383 STD { int sys_flistxattr(int fd, \ 7741.147Sthorpej char *list, size_t size); } 7751.147Sthorpej384 STD { int sys_removexattr(const char *path, \ 7761.147Sthorpej const char *name); } 7771.147Sthorpej385 STD { int sys_lremovexattr(const char *path, \ 7781.147Sthorpej const char *name); } 7791.147Sthorpej386 STD { int sys_fremovexattr(int fd, \ 7801.147Sthorpej const char *name); } 7811.148Schristos387 STD { int sys___stat30(const char *path, struct stat *ub); } 7821.148Schristos388 STD { int sys___fstat30(int fd, struct stat *sb); } 7831.148Schristos389 STD { int sys___lstat30(const char *path, struct stat *ub); } 7841.148Schristos390 STD { int sys___getdents30(int fd, char *buf, size_t count); } 7851.150Syamt391 STD { int sys_posix_fadvise(int fd, off_t offset, \ 7861.150Syamt off_t len, int advice); } 787