syscalls.master revision 1.10
11.10Seeh $NetBSD: syscalls.master,v 1.10 1999/10/11 01:36:24 eeh Exp $ 21.1Smrg 31.1Smrg; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp 41.1Smrg; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 51.1Smrg 61.1Smrg; NetBSD system call name/number "master" file. 71.1Smrg; (See syscalls.conf to see what it is processed into.) 81.1Smrg; 91.1Smrg; Fields: number type [type-dependent ...] 101.1Smrg; number system call number, must be in order 111.1Smrg; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 121.1Smrg; the compatibility options defined in syscalls.conf. 131.1Smrg; 141.1Smrg; types: 151.1Smrg; STD always included 161.1Smrg; OBSOL obsolete, not included in system 171.1Smrg; UNIMPL unimplemented, not included in system 181.8Schristos; EXCL implemented, but not included in system 191.1Smrg; NODEF included, but don't define the syscall number 201.1Smrg; NOARGS included, but don't define the syscall args structure 211.1Smrg; INDIR included, but don't define the syscall args structure, 221.1Smrg; and allow it to be "really" varargs. 231.1Smrg; 241.1Smrg; The compat options are defined in the syscalls.conf file, and the 251.1Smrg; compat option name is prefixed to the syscall name. Other than 261.1Smrg; that, they're like NODEF (for 'compat' options), or STD (for 271.1Smrg; 'libcompat' options). 281.1Smrg; 291.1Smrg; The type-dependent arguments are as follows: 301.1Smrg; For STD, NODEF, NOARGS, and compat syscalls: 311.1Smrg; { pseudo-proto } [alias] 321.1Smrg; For other syscalls: 331.1Smrg; [comment] 341.1Smrg; 351.1Smrg; #ifdef's, etc. may be included, and are copied to the output files. 361.1Smrg; #include's are copied to the syscall names and switch definition files only. 371.1Smrg 381.1Smrg#include "opt_ktrace.h" 391.1Smrg#include "opt_nfsserver.h" 401.1Smrg#include "opt_compat_netbsd.h" 411.3Seeh#include "opt_ntp.h" 421.4Stron#include "opt_sysv.h" 431.5Schristos#include "opt_compat_43.h" 441.1Smrg 451.1Smrg#include "fs_lfs.h" 461.1Smrg#include "fs_nfs.h" 471.1Smrg 481.1Smrg#include <sys/param.h> 491.1Smrg#include <sys/systm.h> 501.1Smrg#include <sys/signal.h> 511.1Smrg#include <sys/mount.h> 521.1Smrg#include <sys/syscallargs.h> 531.1Smrg 541.7Smrg#include <compat/netbsd32/netbsd32.h> 551.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h> 561.1Smrg 571.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive 581.1Smrg; are reserved for use in future Berkeley releases. 591.1Smrg; Additional system calls implemented in vendor and other 601.1Smrg; redistributions should be placed in the reserved range at the end 611.1Smrg; of the current calls. 621.1Smrg 631.1Smrg0 INDIR { int sys_syscall(int number, ...); } 641.10Seeh1 STD { void netbsd32_exit(int rval); } 651.1Smrg2 NOARGS { int sys_fork(void); } 661.10Seeh3 STD { netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); } 671.10Seeh4 STD { netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); } 681.10Seeh5 STD { int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); } 691.10Seeh6 STD { int netbsd32_close(int fd); } 701.10Seeh7 STD { int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); } 711.10Seeh8 COMPAT_43 { int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); } 721.10Seeh9 STD { int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); } 731.10Seeh10 STD { int netbsd32_unlink(const netbsd32_charp path); } 741.1Smrg11 OBSOL execv 751.10Seeh12 STD { int netbsd32_chdir(const netbsd32_charp path); } 761.10Seeh13 STD { int netbsd32_fchdir(int fd); } 771.10Seeh14 STD { int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); } 781.10Seeh15 STD { int netbsd32_chmod(const netbsd32_charp path, mode_t mode); } 791.10Seeh16 STD { int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); } 801.10Seeh17 STD { int netbsd32_break(netbsd32_charp nsize); } 811.10Seeh18 STD { int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); } 821.10Seeh19 COMPAT_43 { netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); } 831.1Smrg20 NOARGS { pid_t sys_getpid(void); } 841.10Seeh21 STD { int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); } 851.10Seeh22 STD { int netbsd32_unmount(const netbsd32_charp path, int flags); } 861.10Seeh23 STD { int netbsd32_setuid(uid_t uid); } 871.1Smrg24 NOARGS { uid_t sys_getuid(void); } 881.1Smrg25 NOARGS { uid_t sys_geteuid(void); } 891.10Seeh26 STD { int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); } 901.10Seeh27 STD { netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); } 911.10Seeh28 STD { netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); } 921.10Seeh29 STD { netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); } 931.10Seeh30 STD { int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); } 941.10Seeh31 STD { int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 951.10Seeh32 STD { int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 961.10Seeh33 STD { int netbsd32_access(const netbsd32_charp path, int flags); } 971.10Seeh34 STD { int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); } 981.10Seeh35 STD { int netbsd32_fchflags(int fd, netbsd32_u_long flags); } 991.1Smrg36 NOARGS { void sys_sync(void); } 1001.10Seeh37 STD { int netbsd32_kill(int pid, int signum); } 1011.10Seeh38 COMPAT_43 { int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); } 1021.1Smrg39 NOARGS { pid_t sys_getppid(void); } 1031.10Seeh40 COMPAT_43 { int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); } 1041.10Seeh41 STD { int netbsd32_dup(int fd); } 1051.1Smrg42 NOARGS { int sys_pipe(void); } 1061.1Smrg43 NOARGS { gid_t sys_getegid(void); } 1071.10Seeh44 STD { int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); } 1081.8Schristos#if defined(KTRACE) || !defined(_KERNEL) 1091.10Seeh45 STD { int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); } 1101.1Smrg#else 1111.10Seeh45 EXCL netbsd32_ktrace 1121.1Smrg#endif 1131.10Seeh46 STD { int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); } 1141.1Smrg47 NOARGS { gid_t sys_getgid(void); } 1151.10Seeh48 COMPAT_13 { int netbsd32_sigprocmask(int how, \ 1161.3Seeh int mask); } sigprocmask13 1171.10Seeh49 STD { int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); } 1181.10Seeh50 STD { int netbsd32_setlogin(const netbsd32_charp namebuf); } 1191.10Seeh51 STD { int netbsd32_acct(const netbsd32_charp path); } 1201.3Seeh52 COMPAT_13 { int sys_sigpending(void); } sigpending13 1211.10Seeh53 COMPAT_13 { int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); } 1221.10Seeh54 STD { int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); } 1231.2Smrg#ifdef COMPAT_12 1241.10Seeh55 COMPAT_12 { int netbsd32_reboot(int opt); } 1251.2Smrg#else 1261.2Smrg55 OBSOL oreboot 1271.2Smrg#endif 1281.10Seeh56 STD { int netbsd32_revoke(const netbsd32_charp path); } 1291.10Seeh57 STD { int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); } 1301.10Seeh58 STD { int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); } 1311.10Seeh59 STD { int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); } 1321.10Seeh60 STD { mode_t netbsd32_umask(mode_t newmask); } 1331.10Seeh61 STD { int netbsd32_chroot(const netbsd32_charp path); } 1341.10Seeh62 COMPAT_43 { int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); } 1351.10Seeh63 COMPAT_43 { int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); } 1361.1Smrg64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 1371.10Seeh65 COMPAT_12 { int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); } 1381.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 1391.1Smrg66 NOARGS { int sys_vfork(void); } 1401.1Smrg67 OBSOL vread 1411.1Smrg68 OBSOL vwrite 1421.10Seeh69 STD { int netbsd32_sbrk(netbsd32_intptr_t incr); } 1431.10Seeh70 STD { int netbsd32_sstk(int incr); } 1441.10Seeh71 COMPAT_43 { int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); } 1451.10Seeh72 STD { int netbsd32_ovadvise(int anom); } vadvise 1461.10Seeh73 STD { int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); } 1471.10Seeh74 STD { int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); } 1481.10Seeh75 STD { int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); } 1491.1Smrg76 OBSOL vhangup 1501.1Smrg77 OBSOL vlimit 1511.10Seeh78 STD { int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); } 1521.10Seeh79 STD { int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); } 1531.10Seeh80 STD { int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); } 1541.1Smrg81 NOARGS { int sys_getpgrp(void); } 1551.10Seeh82 STD { int netbsd32_setpgid(int pid, int pgid); } 1561.10Seeh83 STD { int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 1571.1Smrg84 COMPAT_43 { int sys_wait(void); } owait 1581.10Seeh85 COMPAT_12 { int netbsd32_oswapon(const netbsd32_charp name); } 1591.10Seeh86 STD { int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); } 1601.10Seeh87 COMPAT_43 { int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); } 1611.10Seeh88 COMPAT_43 { int netbsd32_osethostname(netbsd32_charp hostname, u_int len); } 1621.1Smrg89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 1631.10Seeh90 STD { int netbsd32_dup2(int from, int to); } 1641.1Smrg91 UNIMPL getdopt 1651.10Seeh92 STD { int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); } 1661.10Seeh93 STD { int netbsd32_select(int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); } 1671.1Smrg94 UNIMPL setdopt 1681.10Seeh95 STD { int netbsd32_fsync(int fd); } 1691.10Seeh96 STD { int netbsd32_setpriority(int which, int who, int prio); } 1701.10Seeh97 STD { int netbsd32_socket(int domain, int type, int protocol); } 1711.10Seeh98 STD { int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); } 1721.10Seeh99 COMPAT_43 { int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); } 1731.10Seeh100 STD { int netbsd32_getpriority(int which, int who); } 1741.10Seeh101 COMPAT_43 { int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); } 1751.10Seeh102 COMPAT_43 { int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); } 1761.10Seeh103 STD { int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } 1771.10Seeh104 STD { int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); } 1781.10Seeh105 STD { int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); } 1791.10Seeh106 STD { int netbsd32_listen(int s, int backlog); } 1801.1Smrg107 OBSOL vtimes 1811.10Seeh108 COMPAT_43 { int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } 1821.1Smrg#ifdef COMPAT_43 1831.10Seeh109 COMPAT_43 { int netbsd32_sigblock(int mask); } 1841.10Seeh110 COMPAT_43 { int netbsd32_sigsetmask(int mask); } 1851.1Smrg#else 1861.1Smrg109 OBSOL sigblock 1871.1Smrg110 OBSOL sigsetmask 1881.1Smrg#endif 1891.10Seeh111 COMPAT_13 { int netbsd32_sigsuspend(int mask); } sigsuspend13 1901.10Seeh112 COMPAT_43 { int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); } 1911.10Seeh113 COMPAT_43 { int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); } 1921.10Seeh114 COMPAT_43 { int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); } 1931.1Smrg115 OBSOL vtrace 1941.10Seeh116 STD { int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); } 1951.10Seeh117 STD { int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); } 1961.10Seeh118 STD { int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); } 1971.1Smrg119 OBSOL resuba 1981.10Seeh120 STD { netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); } 1991.10Seeh121 STD { netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); } 2001.10Seeh122 STD { int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); } 2011.10Seeh123 STD { int netbsd32_fchown(int fd, uid_t uid, gid_t gid); } 2021.10Seeh124 STD { int netbsd32_fchmod(int fd, mode_t mode); } 2031.10Seeh125 COMPAT_43 { int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); } 2041.10Seeh126 STD { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 2051.10Seeh127 STD { int netbsd32_setregid(gid_t rgid, gid_t egid); } 2061.10Seeh128 STD { int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); } 2071.10Seeh129 COMPAT_43 { int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); } 2081.10Seeh130 COMPAT_43 { int netbsd32_oftruncate(int fd, netbsd32_long length); } 2091.10Seeh131 STD { int netbsd32_flock(int fd, int how); } 2101.10Seeh132 STD { int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); } 2111.10Seeh133 STD { netbsd32_ssize_t netbsd32_sendto(int s, const netbsd32_voidp buf, netbsd32_size_t len, int flags, const netbsd32_sockaddrp_t to, int tolen); } 2121.10Seeh134 STD { int netbsd32_shutdown(int s, int how); } 2131.10Seeh135 STD { int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); } 2141.10Seeh136 STD { int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); } 2151.10Seeh137 STD { int netbsd32_rmdir(const netbsd32_charp path); } 2161.10Seeh138 STD { int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); } 2171.1Smrg139 OBSOL 4.2 sigreturn 2181.10Seeh140 STD { int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); } 2191.10Seeh141 COMPAT_43 { int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); } 2201.1Smrg142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 2211.1Smrg#ifdef COMPAT_43 2221.10Seeh143 COMPAT_43 { int netbsd32_sethostid(int32_t hostid); } 2231.1Smrg#else 2241.1Smrg143 OBSOL sethostid 2251.1Smrg#endif 2261.10Seeh144 COMPAT_43 { int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); } 2271.10Seeh145 COMPAT_43 { int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); } 2281.1Smrg#ifdef COMPAT_43 2291.10Seeh146 COMPAT_43 { int netbsd32_killpg(int pgid, int signum); } 2301.1Smrg#else 2311.1Smrg146 OBSOL killpg 2321.1Smrg#endif 2331.1Smrg147 NOARGS { int sys_setsid(void); } 2341.10Seeh148 STD { int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); } 2351.1Smrg149 COMPAT_43 { int sys_quota(void); } oquota 2361.10Seeh150 COMPAT_43 { int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); } 2371.1Smrg 2381.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific 2391.1Smrg; system calls. (This includes various calls added for compatibity 2401.1Smrg; with other Unix variants.) 2411.1Smrg; Some of these calls are now supported by BSD... 2421.1Smrg151 UNIMPL 2431.1Smrg152 UNIMPL 2441.1Smrg153 UNIMPL 2451.1Smrg154 UNIMPL 2461.8Schristos#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 2471.10Seeh155 STD { int netbsd32_nfssvc(int flag, netbsd32_voidp argp); } 2481.1Smrg#else 2491.10Seeh155 EXCL netbsd32_nfssvc 2501.1Smrg#endif 2511.10Seeh156 COMPAT_43 { int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); } 2521.10Seeh157 STD { int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); } 2531.10Seeh158 STD { int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); } 2541.1Smrg159 UNIMPL 2551.1Smrg160 UNIMPL 2561.8Schristos#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 2571.10Seeh161 STD { int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); } 2581.1Smrg#else 2591.10Seeh161 EXCL netbsd32_getfh 2601.1Smrg#endif 2611.10Seeh162 COMPAT_09 { int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); } 2621.10Seeh163 COMPAT_09 { int netbsd32_osetdomainname(netbsd32_charp domainname, int len); } 2631.10Seeh164 COMPAT_09 { int netbsd32_uname(netbsd32_outsnamep_t name); } 2641.10Seeh165 STD { int netbsd32_sysarch(int op, netbsd32_voidp parms); } 2651.1Smrg166 UNIMPL 2661.1Smrg167 UNIMPL 2671.1Smrg168 UNIMPL 2681.7Smrg; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 2691.10Seeh#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 2701.10Seeh169 STD { int netbsd32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys 2711.1Smrg#else 2721.8Schristos169 EXCL 1.0 semsys 2731.1Smrg#endif 2741.7Smrg; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 2751.8Schristos#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 2761.10Seeh170 STD { int netbsd32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys 2771.1Smrg#else 2781.8Schristos170 EXCL 1.0 msgsys 2791.1Smrg#endif 2801.7Smrg; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 2811.8Schristos#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 2821.10Seeh171 STD { int netbsd32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys 2831.1Smrg#else 2841.8Schristos171 EXCL 1.0 shmsys 2851.1Smrg#endif 2861.1Smrg172 UNIMPL 2871.10Seeh173 STD { netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 2881.10Seeh174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 2891.8Schristos#if defined(NTP) && !defined(_KERNEL) 2901.10Seeh175 STD { int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); } 2911.10Seeh176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); } 2921.3Seeh#else 2931.10Seeh175 EXCL netbsd32_ntp_gettime 2941.10Seeh176 EXCL netbsd32_ntp_adjtime 2951.3Seeh#endif 2961.1Smrg177 UNIMPL 2971.1Smrg178 UNIMPL 2981.1Smrg179 UNIMPL 2991.1Smrg180 UNIMPL 3001.1Smrg 3011.1Smrg; Syscalls 180-199 are used by/reserved for BSD 3021.10Seeh181 STD { int netbsd32_setgid(gid_t gid); } 3031.10Seeh182 STD { int netbsd32_setegid(gid_t egid); } 3041.10Seeh183 STD { int netbsd32_seteuid(uid_t euid); } 3051.8Schristos#if defined(LFS) || !defined(_KERNEL) 3061.10Seeh184 STD { int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 3071.10Seeh185 STD { int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 3081.10Seeh186 STD { int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); } 3091.10Seeh187 STD { int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); } 3101.10Seeh#else 3111.10Seeh184 EXCL netbsd32_sys_lfs_bmapv 3121.10Seeh185 EXCL netbsd32_sys_lfs_markv 3131.10Seeh186 EXCL netbsd32_sys_lfs_segclean 3141.10Seeh187 EXCL netbsd32_sys_lfs_segwait 3151.10Seeh#endif 3161.10Seeh188 COMPAT_12 { int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 3171.10Seeh189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); } 3181.10Seeh190 COMPAT_12 { int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 3191.10Seeh191 STD { netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); } 3201.10Seeh192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); } 3211.1Smrg193 UNIMPL 3221.10Seeh194 STD { int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); } 3231.10Seeh195 STD { int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); } 3241.10Seeh196 COMPAT_12 { int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); } 3251.10Seeh197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); } 3261.1Smrg198 INDIR { quad_t sys___syscall(quad_t num, ...); } 3271.10Seeh199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); } 3281.10Seeh200 STD { int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); } 3291.10Seeh201 STD { int netbsd32_ftruncate(int fd, int pad, off_t length); } 3301.10Seeh202 STD { int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); } 3311.10Seeh203 STD { int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); } 3321.10Seeh204 STD { int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); } 3331.10Seeh205 STD { int netbsd32_undelete(const netbsd32_charp path); } 3341.10Seeh206 STD { int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); } 3351.10Seeh207 STD { int netbsd32_getpgid(pid_t pid); } 3361.10Seeh208 STD { int netbsd32_reboot(int opt, netbsd32_charp bootstr); } 3371.10Seeh209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); } 3381.1Smrg; 3391.1Smrg; Syscalls 210-219 are reserved for dynamically loaded syscalls 3401.1Smrg; 3411.8Schristos#if defined(LKM) || !defined(_KERNEL) 3421.1Smrg210 NODEF { int sys_lkmnosys(void); } 3431.1Smrg211 NODEF { int sys_lkmnosys(void); } 3441.1Smrg212 NODEF { int sys_lkmnosys(void); } 3451.1Smrg213 NODEF { int sys_lkmnosys(void); } 3461.1Smrg214 NODEF { int sys_lkmnosys(void); } 3471.1Smrg215 NODEF { int sys_lkmnosys(void); } 3481.1Smrg216 NODEF { int sys_lkmnosys(void); } 3491.1Smrg217 NODEF { int sys_lkmnosys(void); } 3501.1Smrg218 NODEF { int sys_lkmnosys(void); } 3511.1Smrg219 NODEF { int sys_lkmnosys(void); } 3521.8Schristos#else /* !LKM || !_KERNEL */ 3531.8Schristos210 EXCL lkmnosys 3541.8Schristos211 EXCL lkmnosys 3551.8Schristos212 EXCL lkmnosys 3561.8Schristos213 EXCL lkmnosys 3571.8Schristos214 EXCL lkmnosys 3581.8Schristos215 EXCL lkmnosys 3591.8Schristos216 EXCL lkmnosys 3601.8Schristos217 EXCL lkmnosys 3611.8Schristos218 EXCL lkmnosys 3621.8Schristos219 EXCL lkmnosys 3631.8Schristos#endif /* !LKM || !_KERNEL */ 3641.1Smrg; System calls 220-300 are reserved for use by NetBSD 3651.8Schristos#if defined(SYSVSEM) || !defined(_KERNEL) 3661.10Seeh220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); } 3671.10Seeh221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); } 3681.10Seeh222 STD { int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); } 3691.10Seeh223 STD { int netbsd32_semconfig(int flag); } 3701.10Seeh#else 3711.10Seeh220 EXCL netbsd32_semctl 3721.10Seeh221 EXCL netbsd32_semget 3731.10Seeh222 EXCL netbsd32_semop 3741.10Seeh223 EXCL netbsd32_semconfig 3751.1Smrg#endif 3761.8Schristos#if defined(SYSVMSG) || !defined(_KERNEL) 3771.10Seeh224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); } 3781.10Seeh225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); } 3791.10Seeh226 STD { int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); } 3801.10Seeh227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); } 3811.10Seeh#else 3821.10Seeh224 EXCL netbsd32_msgctl 3831.10Seeh225 EXCL netbsd32_msgget 3841.10Seeh226 EXCL netbsd32_msgsnd 3851.10Seeh227 EXCL netbsd32_msgrcv 3861.1Smrg#endif 3871.8Schristos#if defined(SYSVSHM) || !defined(_KERNEL) 3881.10Seeh228 STD { netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); } 3891.10Seeh229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); } 3901.10Seeh230 STD { int netbsd32_shmdt(const netbsd32_voidp shmaddr); } 3911.10Seeh231 STD { int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); } 3921.10Seeh#else 3931.10Seeh228 EXCL netbsd32_shmat 3941.10Seeh229 EXCL netbsd32_shmctl 3951.10Seeh230 EXCL netbsd32_shmdt 3961.10Seeh231 EXCL netbsd32_shmget 3971.10Seeh#endif 3981.10Seeh232 STD { int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 3991.10Seeh233 STD { int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); } 4001.10Seeh234 STD { int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 4011.1Smrg235 UNIMPL timer_create 4021.1Smrg236 UNIMPL timer_delete 4031.1Smrg237 UNIMPL timer_settime 4041.1Smrg238 UNIMPL timer_gettime 4051.1Smrg239 UNIMPL timer_getoverrun 4061.1Smrg; 4071.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 4081.1Smrg; 4091.10Seeh240 STD { int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); } 4101.10Seeh241 STD { int netbsd32_fdatasync(int fd); } 4111.1Smrg242 UNIMPL 4121.1Smrg243 UNIMPL 4131.1Smrg244 UNIMPL 4141.1Smrg245 UNIMPL 4151.1Smrg246 UNIMPL 4161.1Smrg247 UNIMPL 4171.1Smrg248 UNIMPL 4181.1Smrg249 UNIMPL 4191.1Smrg250 UNIMPL 4201.1Smrg251 UNIMPL 4211.1Smrg252 UNIMPL 4221.1Smrg253 UNIMPL 4231.1Smrg254 UNIMPL 4241.1Smrg255 UNIMPL 4251.1Smrg256 UNIMPL 4261.1Smrg257 UNIMPL 4271.1Smrg258 UNIMPL 4281.1Smrg259 UNIMPL 4291.1Smrg260 UNIMPL 4301.1Smrg261 UNIMPL 4311.1Smrg262 UNIMPL 4321.1Smrg263 UNIMPL 4331.1Smrg264 UNIMPL 4341.1Smrg265 UNIMPL 4351.1Smrg266 UNIMPL 4361.1Smrg267 UNIMPL 4371.1Smrg268 UNIMPL 4381.1Smrg269 UNIMPL 4391.10Seeh270 STD { int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); } 4401.10Seeh271 STD { int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); } 4411.10Seeh272 STD { int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); } 4421.10Seeh273 STD { int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); } 4431.10Seeh274 STD { int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); } 4441.10Seeh275 STD { int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 4451.10Seeh276 STD { int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); } 4461.10Seeh277 STD { int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); } 4471.10Seeh278 STD { int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); } 4481.10Seeh279 STD { int netbsd32___fstat13(int fd, netbsd32_statp_t sb); } 4491.10Seeh280 STD { int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); } 4501.10Seeh281 STD { int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); } 4511.1Smrg282 NOARGS { int sys___vfork14(void); } 4521.10Seeh283 STD { int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); } 4531.10Seeh284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } 4541.10Seeh285 STD { int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 4551.10Seeh286 STD { pid_t netbsd32_getsid(pid_t pid); } 4561.1Smrg287 UNIMPL 4571.8Schristos#if defined(KTRACE) || !defined(_KERNEL) 4581.10Seeh288 STD { int netbsd32_fktrace(const int fd, int ops, int facs, int pid); } 4591.1Smrg#else 4601.10Seeh288 EXCL netbsd32_fktrace 4611.1Smrg#endif 4621.10Seeh289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 4631.10Seeh290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 464