syscalls.master revision 1.85
11.85Stron $NetBSD: syscalls.master,v 1.85 1998/10/19 22:17:41 tron 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.1Sglass; types: 141.1Sglass; STD always included 151.23Scgd; OBSOL obsolete, not included in system 161.24Smycroft; UNIMPL unimplemented, not included in system 171.23Scgd; NODEF included, but don't define the syscall number 181.23Scgd; NOARGS included, but don't define the syscall args structure 191.43Scgd; INDIR included, but don't define the syscall args structure, 201.43Scgd; and allow it to be "really" varargs. 211.23Scgd; 221.23Scgd; The compat options are defined in the syscalls.conf file, and the 231.23Scgd; compat option name is prefixed to the syscall name. Other than 241.23Scgd; that, they're like NODEF (for 'compat' options), or STD (for 251.23Scgd; 'libcompat' options). 261.23Scgd; 271.23Scgd; The type-dependent arguments are as follows: 281.23Scgd; For STD, NODEF, NOARGS, and compat syscalls: 291.23Scgd; { pseudo-proto } [alias] 301.23Scgd; For other syscalls: 311.23Scgd; [comment] 321.23Scgd; 331.23Scgd; #ifdef's, etc. may be included, and are copied to the output files. 341.70Sthorpej; #include's are copied to the syscall names and switch definition files only. 351.77Sthorpej 361.77Sthorpej#include "opt_ktrace.h" 371.78Sthorpej#include "opt_nfsserver.h" 381.81Sjonathan#include "opt_compat_netbsd.h" 391.85Stron#include "opt_sysv.h" 401.70Sthorpej 411.70Sthorpej#include "fs_lfs.h" 421.70Sthorpej#include "fs_nfs.h" 431.1Sglass 441.23Scgd#include <sys/param.h> 451.23Scgd#include <sys/systm.h> 461.23Scgd#include <sys/signal.h> 471.23Scgd#include <sys/mount.h> 481.23Scgd#include <sys/syscallargs.h> 491.1Sglass 501.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive 511.1Sglass; are reserved for use in future Berkeley releases. 521.1Sglass; Additional system calls implemented in vendor and other 531.1Sglass; redistributions should be placed in the reserved range at the end 541.1Sglass; of the current calls. 551.1Sglass 561.43Scgd0 INDIR { int sys_syscall(int number, ...); } 571.44Scgd1 STD { void sys_exit(int rval); } 581.28Smycroft2 STD { int sys_fork(void); } 591.46Scgd3 STD { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 601.46Scgd4 STD { ssize_t sys_write(int fd, const void *buf, \ 611.46Scgd size_t nbyte); } 621.46Scgd5 STD { int sys_open(const char *path, \ 631.60Schristos int flags, ... mode_t mode); } 641.28Smycroft6 STD { int sys_close(int fd); } 651.28Smycroft7 STD { int sys_wait4(int pid, int *status, int options, \ 661.23Scgd struct rusage *rusage); } 671.60Schristos8 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat 681.46Scgd9 STD { int sys_link(const char *path, const char *link); } 691.46Scgd10 STD { int sys_unlink(const char *path); } 701.23Scgd11 OBSOL execv 711.46Scgd12 STD { int sys_chdir(const char *path); } 721.28Smycroft13 STD { int sys_fchdir(int fd); } 731.60Schristos14 STD { int sys_mknod(const char *path, mode_t mode, \ 741.60Schristos dev_t dev); } 751.60Schristos15 STD { int sys_chmod(const char *path, mode_t mode); } 761.46Scgd16 STD { int sys_chown(const char *path, uid_t uid, \ 771.46Scgd gid_t gid); } 781.28Smycroft17 STD { int sys_obreak(char *nsize); } break 791.28Smycroft18 STD { int sys_getfsstat(struct statfs *buf, long bufsize, \ 801.23Scgd int flags); } 811.29Smycroft19 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \ 821.29Smycroft olseek 831.28Smycroft20 STD { pid_t sys_getpid(void); } 841.46Scgd21 STD { int sys_mount(const char *type, const char *path, \ 851.46Scgd int flags, void *data); } 861.46Scgd22 STD { int sys_unmount(const char *path, int flags); } 871.28Smycroft23 STD { int sys_setuid(uid_t uid); } 881.28Smycroft24 STD { uid_t sys_getuid(void); } 891.28Smycroft25 STD { uid_t sys_geteuid(void); } 901.28Smycroft26 STD { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ 911.23Scgd int data); } 921.44Scgd27 STD { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ 931.28Smycroft int flags); } 941.46Scgd28 STD { ssize_t sys_sendmsg(int s, \ 951.46Scgd const struct msghdr *msg, int flags); } 961.46Scgd29 STD { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ 971.46Scgd int flags, struct sockaddr *from, \ 981.46Scgd int *fromlenaddr); } 991.46Scgd30 STD { int sys_accept(int s, struct sockaddr *name, \ 1001.46Scgd int *anamelen); } 1011.46Scgd31 STD { int sys_getpeername(int fdes, struct sockaddr *asa, \ 1021.28Smycroft int *alen); } 1031.46Scgd32 STD { int sys_getsockname(int fdes, struct sockaddr *asa, \ 1041.28Smycroft int *alen); } 1051.46Scgd33 STD { int sys_access(const char *path, int flags); } 1061.46Scgd34 STD { int sys_chflags(const char *path, u_long flags); } 1071.46Scgd35 STD { int sys_fchflags(int fd, u_long flags); } 1081.44Scgd36 STD { void sys_sync(void); } 1091.28Smycroft37 STD { int sys_kill(int pid, int signum); } 1101.60Schristos38 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \ 1111.60Schristos stat43 1121.28Smycroft39 STD { pid_t sys_getppid(void); } 1131.60Schristos40 COMPAT_43 { int sys_lstat(const char *path, \ 1141.60Schristos struct stat43 *ub); } lstat43 1151.59Smycroft41 STD { int sys_dup(int fd); } 1161.28Smycroft42 STD { int sys_pipe(void); } 1171.28Smycroft43 STD { gid_t sys_getegid(void); } 1181.30Scgd44 STD { int sys_profil(caddr_t samples, size_t size, \ 1191.30Scgd u_long offset, u_int scale); } 1201.1Sglass#ifdef KTRACE 1211.46Scgd45 STD { int sys_ktrace(const char *fname, int ops, \ 1221.46Scgd int facs, int pid); } 1231.1Sglass#else 1241.23Scgd45 UNIMPL ktrace 1251.1Sglass#endif 1261.82Smycroft46 COMPAT_13 { int sys_sigaction(int signum, \ 1271.82Smycroft const struct sigaction13 *nsa, \ 1281.82Smycroft struct sigaction13 *osa); } sigaction13 1291.28Smycroft47 STD { gid_t sys_getgid(void); } 1301.82Smycroft48 COMPAT_13 { int sys_sigprocmask(int how, \ 1311.82Smycroft int mask); } sigprocmask13 1321.37Sjtc49 STD { int sys___getlogin(char *namebuf, u_int namelen); } 1331.46Scgd50 STD { int sys_setlogin(const char *namebuf); } 1341.46Scgd51 STD { int sys_acct(const char *path); } 1351.82Smycroft52 COMPAT_13 { int sys_sigpending(void); } sigpending13 1361.82Smycroft53 COMPAT_13 { int sys_sigaltstack( \ 1371.82Smycroft const struct sigaltstack13 *nss, \ 1381.82Smycroft struct sigaltstack13 *oss); } sigaltstack13 1391.46Scgd54 STD { int sys_ioctl(int fd, \ 1401.61Schristos u_long com, ... void *data); } 1411.34Smrg55 COMPAT_12 { int sys_reboot(int opt); } oreboot 1421.46Scgd56 STD { int sys_revoke(const char *path); } 1431.46Scgd57 STD { int sys_symlink(const char *path, \ 1441.46Scgd const char *link); } 1451.46Scgd58 STD { int sys_readlink(const char *path, char *buf, \ 1461.72Skleink size_t count); } 1471.46Scgd59 STD { int sys_execve(const char *path, \ 1481.46Scgd char * const *argp, char * const *envp); } 1491.62Smycroft60 STD { mode_t sys_umask(mode_t newmask); } 1501.46Scgd61 STD { int sys_chroot(const char *path); } 1511.60Schristos62 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43 1521.28Smycroft63 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \ 1531.29Smycroft int arg); } ogetkerninfo 1541.29Smycroft64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 1551.60Schristos65 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); } 1561.67Sthorpej; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 1571.28Smycroft66 STD { int sys_vfork(void); } 1581.23Scgd67 OBSOL vread 1591.23Scgd68 OBSOL vwrite 1601.28Smycroft69 STD { int sys_sbrk(int incr); } 1611.28Smycroft70 STD { int sys_sstk(int incr); } 1621.28Smycroft71 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \ 1631.29Smycroft int flags, int fd, long pos); } ommap 1641.28Smycroft72 STD { int sys_ovadvise(int anom); } vadvise 1651.61Schristos73 STD { int sys_munmap(void *addr, size_t len); } 1661.61Schristos74 STD { int sys_mprotect(void *addr, size_t len, \ 1671.28Smycroft int prot); } 1681.61Schristos75 STD { int sys_madvise(void *addr, size_t len, \ 1691.28Smycroft int behav); } 1701.23Scgd76 OBSOL vhangup 1711.23Scgd77 OBSOL vlimit 1721.28Smycroft78 STD { int sys_mincore(caddr_t addr, size_t len, \ 1731.28Smycroft char *vec); } 1741.64Sthorpej79 STD { int sys_getgroups(int gidsetsize, \ 1751.59Smycroft gid_t *gidset); } 1761.64Sthorpej80 STD { int sys_setgroups(int gidsetsize, \ 1771.46Scgd const gid_t *gidset); } 1781.28Smycroft81 STD { int sys_getpgrp(void); } 1791.28Smycroft82 STD { int sys_setpgid(int pid, int pgid); } 1801.58Smycroft83 STD { int sys_setitimer(int which, \ 1811.46Scgd const struct itimerval *itv, \ 1821.46Scgd struct itimerval *oitv); } 1831.29Smycroft84 COMPAT_43 { int sys_wait(void); } owait 1841.52Smrg85 COMPAT_12 { int sys_swapon(const char *name); } oswapon 1851.58Smycroft86 STD { int sys_getitimer(int which, \ 1861.28Smycroft struct itimerval *itv); } 1871.29Smycroft87 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \ 1881.29Smycroft ogethostname 1891.29Smycroft88 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \ 1901.29Smycroft osethostname 1911.29Smycroft89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 1921.59Smycroft90 STD { int sys_dup2(int from, int to); } 1931.23Scgd91 UNIMPL getdopt 1941.44Scgd92 STD { int sys_fcntl(int fd, int cmd, ... void *arg); } 1951.64Sthorpej93 STD { int sys_select(int nd, fd_set *in, fd_set *ou, \ 1961.23Scgd fd_set *ex, struct timeval *tv); } 1971.23Scgd94 UNIMPL setdopt 1981.28Smycroft95 STD { int sys_fsync(int fd); } 1991.28Smycroft96 STD { int sys_setpriority(int which, int who, int prio); } 2001.28Smycroft97 STD { int sys_socket(int domain, int type, int protocol); } 2011.46Scgd98 STD { int sys_connect(int s, const struct sockaddr *name, \ 2021.46Scgd int namelen); } 2031.46Scgd99 COMPAT_43 { int sys_accept(int s, caddr_t name, \ 2041.46Scgd int *anamelen); } oaccept 2051.28Smycroft100 STD { int sys_getpriority(int which, int who); } 2061.28Smycroft101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ 2071.29Smycroft int flags); } osend 2081.28Smycroft102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ 2091.29Smycroft int flags); } orecv 2101.84Smycroft103 COMPAT_13 { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \ 2111.83Smycroft sigreturn13 2121.46Scgd104 STD { int sys_bind(int s, const struct sockaddr *name, \ 2131.46Scgd int namelen); } 2141.28Smycroft105 STD { int sys_setsockopt(int s, int level, int name, \ 2151.46Scgd const void *val, int valsize); } 2161.28Smycroft106 STD { int sys_listen(int s, int backlog); } 2171.23Scgd107 OBSOL vtimes 2181.28Smycroft108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \ 2191.29Smycroft struct sigvec *osv); } osigvec 2201.29Smycroft109 COMPAT_43 { int sys_sigblock(int mask); } osigblock 2211.29Smycroft110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask 2221.82Smycroft111 COMPAT_13 { int sys_sigsuspend(int mask); } sigsuspend13 2231.28Smycroft112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \ 2241.29Smycroft struct sigstack *oss); } osigstack 2251.28Smycroft113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ 2261.29Smycroft int flags); } orecvmsg 2271.29Smycroft114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \ 2281.29Smycroft osendmsg 2291.1Sglass#ifdef TRACE 2301.28Smycroft115 STD { int sys_vtrace(int request, int value); } 2311.1Sglass#else 2321.23Scgd115 OBSOL vtrace 2331.1Sglass#endif 2341.28Smycroft116 STD { int sys_gettimeofday(struct timeval *tp, \ 2351.23Scgd struct timezone *tzp); } 2361.28Smycroft117 STD { int sys_getrusage(int who, struct rusage *rusage); } 2371.28Smycroft118 STD { int sys_getsockopt(int s, int level, int name, \ 2381.46Scgd void *val, int *avalsize); } 2391.26Scgd119 OBSOL resuba 2401.58Smycroft120 STD { ssize_t sys_readv(int fd, \ 2411.58Smycroft const struct iovec *iovp, int iovcnt); } 2421.46Scgd121 STD { ssize_t sys_writev(int fd, \ 2431.58Smycroft const struct iovec *iovp, int iovcnt); } 2441.46Scgd122 STD { int sys_settimeofday(const struct timeval *tv, \ 2451.46Scgd const struct timezone *tzp); } 2461.46Scgd123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); } 2471.60Schristos124 STD { int sys_fchmod(int fd, mode_t mode); } 2481.28Smycroft125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \ 2491.29Smycroft int flags, caddr_t from, int *fromlenaddr); } \ 2501.29Smycroft orecvfrom 2511.46Scgd126 STD { int sys_setreuid(uid_t ruid, uid_t euid); } 2521.46Scgd127 STD { int sys_setregid(gid_t rgid, gid_t egid); } 2531.46Scgd128 STD { int sys_rename(const char *from, const char *to); } 2541.60Schristos129 COMPAT_43 { int sys_truncate(const char *path, long length); } \ 2551.29Smycroft otruncate 2561.29Smycroft130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate 2571.28Smycroft131 STD { int sys_flock(int fd, int how); } 2581.60Schristos132 STD { int sys_mkfifo(const char *path, mode_t mode); } 2591.46Scgd133 STD { ssize_t sys_sendto(int s, const void *buf, \ 2601.46Scgd size_t len, int flags, const struct sockaddr *to, \ 2611.46Scgd int tolen); } 2621.28Smycroft134 STD { int sys_shutdown(int s, int how); } 2631.28Smycroft135 STD { int sys_socketpair(int domain, int type, \ 2641.28Smycroft int protocol, int *rsv); } 2651.60Schristos136 STD { int sys_mkdir(const char *path, mode_t mode); } 2661.46Scgd137 STD { int sys_rmdir(const char *path); } 2671.46Scgd138 STD { int sys_utimes(const char *path, \ 2681.46Scgd const struct timeval *tptr); } 2691.23Scgd139 OBSOL 4.2 sigreturn 2701.46Scgd140 STD { int sys_adjtime(const struct timeval *delta, \ 2711.23Scgd struct timeval *olddelta); } 2721.28Smycroft141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \ 2731.29Smycroft int *alen); } ogetpeername 2741.29Smycroft142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 2751.29Smycroft143 COMPAT_43 { int sys_sethostid(int32_t hostid); } osethostid 2761.58Smycroft144 COMPAT_43 { int sys_getrlimit(int which, \ 2771.58Smycroft struct orlimit *rlp); } ogetrlimit 2781.58Smycroft145 COMPAT_43 { int sys_setrlimit(int which, \ 2791.58Smycroft const struct orlimit *rlp); } osetrlimit 2801.29Smycroft146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg 2811.28Smycroft147 STD { int sys_setsid(void); } 2821.46Scgd148 STD { int sys_quotactl(const char *path, int cmd, \ 2831.46Scgd int uid, caddr_t arg); } 2841.29Smycroft149 COMPAT_43 { int sys_quota(void); } oquota 2851.28Smycroft150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \ 2861.29Smycroft int *alen); } ogetsockname 2871.1Sglass 2881.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 2891.1Sglass; system calls. (This includes various calls added for compatibity 2901.1Sglass; with other Unix variants.) 2911.1Sglass; Some of these calls are now supported by BSD... 2921.23Scgd151 UNIMPL 2931.23Scgd152 UNIMPL 2941.23Scgd153 UNIMPL 2951.23Scgd154 UNIMPL 2961.47Sthorpej#if defined(NFS) || defined(NFSSERVER) 2971.46Scgd155 STD { int sys_nfssvc(int flag, void *argp); } 2981.1Sglass#else 2991.23Scgd155 UNIMPL 3001.1Sglass#endif 3011.28Smycroft156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \ 3021.29Smycroft u_int count, long *basep); } ogetdirentries 3031.46Scgd157 STD { int sys_statfs(const char *path, \ 3041.46Scgd struct statfs *buf); } 3051.28Smycroft158 STD { int sys_fstatfs(int fd, struct statfs *buf); } 3061.23Scgd159 UNIMPL 3071.23Scgd160 UNIMPL 3081.47Sthorpej#if defined(NFS) || defined(NFSSERVER) 3091.46Scgd161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); } 3101.1Sglass#else 3111.23Scgd161 UNIMPL getfh 3121.1Sglass#endif 3131.29Smycroft162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \ 3141.29Smycroft ogetdomainname 3151.29Smycroft163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ 3161.29Smycroft osetdomainname 3171.29Smycroft164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname 3181.71Sperry165 STD { int sys_sysarch(int op, void *parms); } 3191.23Scgd166 UNIMPL 3201.23Scgd167 UNIMPL 3211.23Scgd168 UNIMPL 3221.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3231.23Scgd#if defined(SYSVSEM) && !defined(alpha) 3241.28Smycroft169 COMPAT_10 { int sys_semsys(int which, int a2, int a3, int a4, \ 3251.29Smycroft int a5); } osemsys 3261.9Scgd#else 3271.23Scgd169 UNIMPL 1.0 semsys 3281.9Scgd#endif 3291.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3301.23Scgd#if defined(SYSVMSG) && !defined(alpha) 3311.28Smycroft170 COMPAT_10 { int sys_msgsys(int which, int a2, int a3, int a4, \ 3321.29Smycroft int a5, int a6); } omsgsys 3331.9Scgd#else 3341.23Scgd170 UNIMPL 1.0 msgsys 3351.9Scgd#endif 3361.23Scgd; XXX more generally, never on machines where sizeof(void *) != sizeof(int) 3371.23Scgd#if defined(SYSVSHM) && !defined(alpha) 3381.29Smycroft171 COMPAT_10 { int sys_shmsys(int which, int a2, int a3, int a4); } \ 3391.29Smycroft oshmsys 3401.1Sglass#else 3411.23Scgd171 UNIMPL 1.0 shmsys 3421.1Sglass#endif 3431.23Scgd172 UNIMPL 3441.79Sthorpej173 STD { ssize_t sys_pread(int fd, void *buf, \ 3451.80Sthorpej size_t nbyte, int pad, off_t offset); } 3461.79Sthorpej174 STD { ssize_t sys_pwrite(int fd, const void *buf, \ 3471.80Sthorpej size_t nbyte, int pad, off_t offset); } 3481.45Scgd175 STD { int sys_ntp_gettime(struct ntptimeval *ntvp); } 3491.38Sthorpej176 STD { int sys_ntp_adjtime(struct timex *tp); } 3501.23Scgd177 UNIMPL 3511.23Scgd178 UNIMPL 3521.23Scgd179 UNIMPL 3531.23Scgd180 UNIMPL 3541.1Sglass 3551.1Sglass; Syscalls 180-199 are used by/reserved for BSD 3561.28Smycroft181 STD { int sys_setgid(gid_t gid); } 3571.28Smycroft182 STD { int sys_setegid(gid_t egid); } 3581.28Smycroft183 STD { int sys_seteuid(uid_t euid); } 3591.17Scgd#ifdef LFS 3601.23Scgd184 STD { int lfs_bmapv(fsid_t *fsidp, \ 3611.23Scgd struct block_info *blkiov, int blkcnt); } 3621.23Scgd185 STD { int lfs_markv(fsid_t *fsidp, \ 3631.23Scgd struct block_info *blkiov, int blkcnt); } 3641.23Scgd186 STD { int lfs_segclean(fsid_t *fsidp, u_long segment); } 3651.23Scgd187 STD { int lfs_segwait(fsid_t *fsidp, struct timeval *tv); } 3661.23Scgd#else 3671.23Scgd184 UNIMPL 3681.23Scgd185 UNIMPL 3691.23Scgd186 UNIMPL 3701.23Scgd187 UNIMPL 3711.23Scgd#endif 3721.60Schristos188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ 3731.60Schristos stat12 3741.60Schristos189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 3751.60Schristos190 COMPAT_12 { int sys_lstat(const char *path, \ 3761.60Schristos struct stat12 *ub); } lstat12 3771.46Scgd191 STD { long sys_pathconf(const char *path, int name); } 3781.44Scgd192 STD { long sys_fpathconf(int fd, int name); } 3791.23Scgd193 UNIMPL 3801.58Smycroft194 STD { int sys_getrlimit(int which, \ 3811.58Smycroft struct rlimit *rlp); } 3821.58Smycroft195 STD { int sys_setrlimit(int which, \ 3831.46Scgd const struct rlimit *rlp); } 3841.57Sfvdl196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ 3851.28Smycroft u_int count, long *basep); } 3861.61Schristos197 STD { void *sys_mmap(void *addr, size_t len, int prot, \ 3871.23Scgd int flags, int fd, long pad, off_t pos); } 3881.43Scgd198 INDIR { quad_t sys___syscall(quad_t num, ...); } 3891.28Smycroft199 STD { off_t sys_lseek(int fd, int pad, off_t offset, \ 3901.23Scgd int whence); } 3911.46Scgd200 STD { int sys_truncate(const char *path, int pad, \ 3921.46Scgd off_t length); } 3931.28Smycroft201 STD { int sys_ftruncate(int fd, int pad, off_t length); } 3941.28Smycroft202 STD { int sys___sysctl(int *name, u_int namelen, \ 3951.28Smycroft void *old, size_t *oldlenp, void *new, \ 3961.28Smycroft size_t newlen); } 3971.75Skleink203 STD { int sys_mlock(const void *addr, size_t len); } 3981.75Skleink204 STD { int sys_munlock(const void *addr, size_t len); } 3991.46Scgd205 STD { int sys_undelete(const char *path); } 4001.46Scgd206 STD { int sys_futimes(int fd, \ 4011.46Scgd const struct timeval *tptr); } 4021.34Smrg207 STD { int sys_getpgid(pid_t pid); } 4031.34Smrg208 STD { int sys_reboot(int opt, char *bootstr); } 4041.36Smycroft209 STD { int sys_poll(struct pollfd *fds, u_int nfds, \ 4051.35Smycroft int timeout); } 4061.11Scgd; 4071.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 4081.11Scgd; 4091.11Scgd#ifdef LKM 4101.28Smycroft210 NODEF { int sys_lkmnosys(void); } 4111.28Smycroft211 NODEF { int sys_lkmnosys(void); } 4121.28Smycroft212 NODEF { int sys_lkmnosys(void); } 4131.28Smycroft213 NODEF { int sys_lkmnosys(void); } 4141.28Smycroft214 NODEF { int sys_lkmnosys(void); } 4151.28Smycroft215 NODEF { int sys_lkmnosys(void); } 4161.28Smycroft216 NODEF { int sys_lkmnosys(void); } 4171.28Smycroft217 NODEF { int sys_lkmnosys(void); } 4181.28Smycroft218 NODEF { int sys_lkmnosys(void); } 4191.28Smycroft219 NODEF { int sys_lkmnosys(void); } 4201.11Scgd#else /* !LKM */ 4211.23Scgd210 UNIMPL 4221.23Scgd211 UNIMPL 4231.23Scgd212 UNIMPL 4241.23Scgd213 UNIMPL 4251.23Scgd214 UNIMPL 4261.23Scgd215 UNIMPL 4271.23Scgd216 UNIMPL 4281.23Scgd217 UNIMPL 4291.23Scgd218 UNIMPL 4301.23Scgd219 UNIMPL 4311.6Scgd#endif /* !LKM */ 4321.49Skleink; System calls 220-300 are reserved for use by NetBSD 4331.23Scgd#ifdef SYSVSEM 4341.28Smycroft220 STD { int sys___semctl(int semid, int semnum, int cmd, \ 4351.23Scgd union semun *arg); } 4361.28Smycroft221 STD { int sys_semget(key_t key, int nsems, int semflg); } 4371.28Smycroft222 STD { int sys_semop(int semid, struct sembuf *sops, \ 4381.74Skleink size_t nsops); } 4391.28Smycroft223 STD { int sys_semconfig(int flag); } 4401.23Scgd#else 4411.23Scgd220 UNIMPL semctl 4421.23Scgd221 UNIMPL semget 4431.23Scgd222 UNIMPL semop 4441.23Scgd223 UNIMPL semconfig 4451.23Scgd#endif 4461.23Scgd#ifdef SYSVMSG 4471.28Smycroft224 STD { int sys_msgctl(int msqid, int cmd, \ 4481.23Scgd struct msqid_ds *buf); } 4491.28Smycroft225 STD { int sys_msgget(key_t key, int msgflg); } 4501.74Skleink226 STD { int sys_msgsnd(int msqid, const void *msgp, \ 4511.74Skleink size_t msgsz, int msgflg); } 4521.74Skleink227 STD { ssize_t sys_msgrcv(int msqid, void *msgp, \ 4531.74Skleink size_t msgsz, long msgtyp, int msgflg); } 4541.23Scgd#else 4551.23Scgd224 UNIMPL msgctl 4561.23Scgd225 UNIMPL msgget 4571.23Scgd226 UNIMPL msgsnd 4581.23Scgd227 UNIMPL msgrcv 4591.23Scgd#endif 4601.23Scgd#ifdef SYSVSHM 4611.74Skleink228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ 4621.44Scgd int shmflg); } 4631.28Smycroft229 STD { int sys_shmctl(int shmid, int cmd, \ 4641.23Scgd struct shmid_ds *buf); } 4651.74Skleink230 STD { int sys_shmdt(const void *shmaddr); } 4661.74Skleink231 STD { int sys_shmget(key_t key, size_t size, int shmflg); } 4671.23Scgd#else 4681.23Scgd228 UNIMPL shmat 4691.23Scgd229 UNIMPL shmctl 4701.23Scgd230 UNIMPL shmdt 4711.23Scgd231 UNIMPL shmget 4721.23Scgd#endif 4731.39Sjtc232 STD { int sys_clock_gettime(clockid_t clock_id, \ 4741.49Skleink struct timespec *tp); } 4751.39Sjtc233 STD { int sys_clock_settime(clockid_t clock_id, \ 4761.49Skleink const struct timespec *tp); } 4771.39Sjtc234 STD { int sys_clock_getres(clockid_t clock_id, \ 4781.49Skleink struct timespec *tp); } 4791.39Sjtc235 UNIMPL timer_create 4801.39Sjtc236 UNIMPL timer_delete 4811.39Sjtc237 UNIMPL timer_settime 4821.39Sjtc238 UNIMPL timer_gettime 4831.39Sjtc239 UNIMPL timer_getoverrun 4841.54Sveego; 4851.54Sveego; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 4861.54Sveego; 4871.48Sjtc240 STD { int sys_nanosleep(const struct timespec *rqtp, \ 4881.49Skleink struct timespec *rmtp); } 4891.76Skleink241 STD { int sys_fdatasync(int fd); } 4901.49Skleink242 UNIMPL 4911.49Skleink243 UNIMPL 4921.49Skleink244 UNIMPL 4931.49Skleink245 UNIMPL 4941.49Skleink246 UNIMPL 4951.49Skleink247 UNIMPL 4961.49Skleink248 UNIMPL 4971.49Skleink249 UNIMPL 4981.55Sveego250 UNIMPL 4991.49Skleink251 UNIMPL 5001.49Skleink252 UNIMPL 5011.49Skleink253 UNIMPL 5021.49Skleink254 UNIMPL 5031.49Skleink255 UNIMPL 5041.49Skleink256 UNIMPL 5051.49Skleink257 UNIMPL 5061.49Skleink258 UNIMPL 5071.49Skleink259 UNIMPL 5081.49Skleink260 UNIMPL 5091.49Skleink261 UNIMPL 5101.49Skleink262 UNIMPL 5111.49Skleink263 UNIMPL 5121.49Skleink264 UNIMPL 5131.49Skleink265 UNIMPL 5141.49Skleink266 UNIMPL 5151.49Skleink267 UNIMPL 5161.49Skleink268 UNIMPL 5171.49Skleink269 UNIMPL 5181.69Skleink270 STD { int sys___posix_rename(const char *from, \ 5191.49Skleink const char *to); } 5201.64Sthorpej271 STD { int sys_swapctl(int cmd, const void *arg, int misc); } 5211.57Sfvdl272 STD { int sys_getdents(int fd, char *buf, size_t count); } 5221.61Schristos273 STD { int sys_minherit(void *addr, size_t len, \ 5231.54Sveego int inherit); } 5241.60Schristos274 STD { int sys_lchmod(const char *path, mode_t mode); } 5251.56Senami275 STD { int sys_lchown(const char *path, uid_t uid, \ 5261.56Senami gid_t gid); } 5271.56Senami276 STD { int sys_lutimes(const char *path, \ 5281.56Senami const struct timeval *tptr); } 5291.63Sthorpej277 STD { int sys___msync13(void *addr, size_t len, int flags); } 5301.63Sthorpej278 STD { int sys___stat13(const char *path, struct stat *ub); } 5311.63Sthorpej279 STD { int sys___fstat13(int fd, struct stat *sb); } 5321.63Sthorpej280 STD { int sys___lstat13(const char *path, struct stat *ub); } 5331.82Smycroft281 STD { int sys___sigaltstack14( \ 5341.82Smycroft const struct sigaltstack *nss, \ 5351.82Smycroft struct sigaltstack *oss); } 5361.67Sthorpej282 STD { int sys___vfork14(void); } 5371.69Skleink283 STD { int sys___posix_chown(const char *path, uid_t uid, \ 5381.69Skleink gid_t gid); } 5391.69Skleink284 STD { int sys___posix_fchown(int fd, uid_t uid, \ 5401.69Skleink gid_t gid); } 5411.69Skleink285 STD { int sys___posix_lchown(const char *path, uid_t uid, \ 5421.69Skleink gid_t gid); } 5431.68Sthorpej286 STD { pid_t sys_getsid(pid_t pid); } 5441.73Schristos287 UNIMPL 5451.73Schristos#ifdef KTRACE 5461.73Schristos288 STD { int sys_fktrace(const int fd, int ops, \ 5471.73Schristos int facs, int pid); } 5481.73Schristos#else 5491.73Schristos288 UNIMPL 5501.73Schristos#endif 5511.79Sthorpej289 STD { ssize_t sys_preadv(int fd, \ 5521.79Sthorpej const struct iovec *iovp, int iovcnt, \ 5531.80Sthorpej int pad, off_t offset); } 5541.79Sthorpej290 STD { ssize_t sys_pwritev(int fd, \ 5551.79Sthorpej const struct iovec *iovp, int iovcnt, \ 5561.80Sthorpej int pad, off_t offset); } 5571.82Smycroft291 STD { int sys___sigaction14(int signum, \ 5581.82Smycroft const struct sigaction *nsa, \ 5591.82Smycroft struct sigaction *osa); } 5601.82Smycroft292 STD { int sys___sigpending14(sigset_t *set); } 5611.82Smycroft293 STD { int sys___sigprocmask14(int how, \ 5621.82Smycroft const sigset_t *set, \ 5631.82Smycroft sigset_t *oset); } 5641.82Smycroft294 STD { int sys___sigsuspend14(const sigset_t *set); } 5651.83Smycroft295 STD { int sys___sigreturn14(struct sigcontext *sigcntxp); } 566