syscalls.master revision 1.76
11.76Spooka $NetBSD: syscalls.master,v 1.76 2009/01/13 21:48:35 pooka 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.68Smartin; type one of STD, OBSOL, UNIMPL, IGNORED, 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.68Smartin; IGNORED syscall is a null op, but always succeeds 181.1Smrg; UNIMPL unimplemented, not included in system 191.8Schristos; EXCL implemented, but not included in system 201.1Smrg; NODEF included, but don't define the syscall number 211.1Smrg; NOARGS included, but don't define the syscall args structure 221.1Smrg; INDIR included, but don't define the syscall args structure, 231.1Smrg; and allow it to be "really" varargs. 241.1Smrg; 251.1Smrg; The compat options are defined in the syscalls.conf file, and the 261.1Smrg; compat option name is prefixed to the syscall name. Other than 271.1Smrg; that, they're like NODEF (for 'compat' options), or STD (for 281.1Smrg; 'libcompat' options). 291.1Smrg; 301.1Smrg; The type-dependent arguments are as follows: 311.1Smrg; For STD, NODEF, NOARGS, and compat syscalls: 321.1Smrg; { pseudo-proto } [alias] 331.1Smrg; For other syscalls: 341.1Smrg; [comment] 351.1Smrg; 361.1Smrg; #ifdef's, etc. may be included, and are copied to the output files. 371.1Smrg; #include's are copied to the syscall names and switch definition files only. 381.1Smrg 391.20Smrg#if defined(_KERNEL_OPT) 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.42Scube#include "opt_posix.h" 451.1Smrg 461.1Smrg#include "fs_lfs.h" 471.1Smrg#include "fs_nfs.h" 481.16Smycroft#endif 491.1Smrg 501.1Smrg#include <sys/param.h> 511.1Smrg#include <sys/systm.h> 521.1Smrg#include <sys/signal.h> 531.1Smrg#include <sys/mount.h> 541.1Smrg#include <sys/syscallargs.h> 551.1Smrg 561.7Smrg#include <compat/netbsd32/netbsd32.h> 571.7Smrg#include <compat/netbsd32/netbsd32_syscallargs.h> 581.16Smycroft 591.16Smycroft%% 601.1Smrg 611.1Smrg; Reserved/unimplemented system calls in the range 0-150 inclusive 621.1Smrg; are reserved for use in future Berkeley releases. 631.1Smrg; Additional system calls implemented in vendor and other 641.1Smrg; redistributions should be placed in the reserved range at the end 651.1Smrg; of the current calls. 661.1Smrg 671.75Schristos0 INDIR { int netbsd32_syscall(int code, \ 681.62Sdsl ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } 691.10Seeh1 STD { void netbsd32_exit(int rval); } 701.1Smrg2 NOARGS { int sys_fork(void); } 711.75Schristos3 STD { netbsd32_ssize_t netbsd32_read(int fd, \ 721.75Schristos netbsd32_voidp buf, netbsd32_size_t nbyte); } 731.75Schristos4 STD { netbsd32_ssize_t netbsd32_write(int fd, \ 741.75Schristos netbsd32_voidp buf, netbsd32_size_t nbyte); } 751.75Schristos5 STD { int netbsd32_open(netbsd32_charp path, int flags, \ 761.75Schristos ... mode_t mode); } 771.10Seeh6 STD { int netbsd32_close(int fd); } 781.75Schristos7 COMPAT_50 { int netbsd32_wait4(int pid, netbsd32_intp status, \ 791.75Schristos int options, netbsd32_rusage50p_t rusage); } 801.75Schristos8 COMPAT_43 { int netbsd32_ocreat(netbsd32_charp path, \ 811.75Schristos mode_t mode); } 821.75Schristos9 STD { int netbsd32_link(netbsd32_charp path, \ 831.75Schristos netbsd32_charp link); } 841.64Sdsl10 STD { int netbsd32_unlink(netbsd32_charp path); } 851.1Smrg11 OBSOL execv 861.64Sdsl12 STD { int netbsd32_chdir(netbsd32_charp path); } 871.10Seeh13 STD { int netbsd32_fchdir(int fd); } 881.75Schristos14 COMPAT_50 { int netbsd32_mknod(netbsd32_charp path, mode_t mode, \ 891.75Schristos uint32_t dev); } 901.64Sdsl15 STD { int netbsd32_chmod(netbsd32_charp path, mode_t mode); } 911.75Schristos16 STD { int netbsd32_chown(netbsd32_charp path, uid_t uid, \ 921.75Schristos gid_t gid); } 931.10Seeh17 STD { int netbsd32_break(netbsd32_charp nsize); } 941.75Schristos18 COMPAT_20 { int netbsd32_getfsstat(netbsd32_statfsp_t buf, \ 951.75Schristos netbsd32_long bufsize, int flags); } 961.75Schristos19 COMPAT_43 { netbsd32_long netbsd32_olseek(int fd, \ 971.75Schristos netbsd32_long offset, int whence); } 981.69Sad20 NOARGS { pid_t sys_getpid(void); } 991.75Schristos21 STD { int netbsd32_mount(netbsd32_charp type, \ 1001.75Schristos netbsd32_charp path, int flags, \ 1011.75Schristos netbsd32_voidp data); } 1021.75Schristos22 STD { int netbsd32_unmount(netbsd32_charp path, \ 1031.75Schristos int flags); } 1041.10Seeh23 STD { int netbsd32_setuid(uid_t uid); } 1051.69Sad24 NOARGS { uid_t sys_getuid(void); } 1061.69Sad25 NOARGS { uid_t sys_geteuid(void); } 1071.75Schristos26 STD { int netbsd32_ptrace(int req, pid_t pid, \ 1081.75Schristos netbsd32_voidp addr, int data); } 1091.75Schristos27 STD { netbsd32_ssize_t netbsd32_recvmsg(int s, \ 1101.75Schristos netbsd32_msghdrp_t msg, int flags); } 1111.75Schristos28 STD { netbsd32_ssize_t netbsd32_sendmsg(int s, \ 1121.75Schristos netbsd32_msghdrp_t msg, int flags); } 1131.75Schristos29 STD { netbsd32_ssize_t netbsd32_recvfrom(int s, \ 1141.75Schristos netbsd32_voidp buf, netbsd32_size_t len, \ 1151.75Schristos int flags, netbsd32_sockaddrp_t from, \ 1161.75Schristos netbsd32_intp fromlenaddr); } 1171.75Schristos30 STD { int netbsd32_accept(int s, \ 1181.75Schristos netbsd32_sockaddrp_t name, \ 1191.75Schristos netbsd32_intp anamelen); } 1201.75Schristos31 STD { int netbsd32_getpeername(int fdes, \ 1211.75Schristos netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 1221.75Schristos32 STD { int netbsd32_getsockname(int fdes, \ 1231.75Schristos netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 1241.64Sdsl33 STD { int netbsd32_access(netbsd32_charp path, int flags); } 1251.75Schristos34 STD { int netbsd32_chflags(netbsd32_charp path, \ 1261.75Schristos netbsd32_u_long flags); } 1271.75Schristos35 STD { int netbsd32_fchflags(int fd, \ 1281.75Schristos netbsd32_u_long flags); } 1291.1Smrg36 NOARGS { void sys_sync(void); } 1301.10Seeh37 STD { int netbsd32_kill(int pid, int signum); } 1311.75Schristos38 COMPAT_43 { int netbsd32_stat43(netbsd32_charp path, \ 1321.75Schristos netbsd32_stat43p_t ub); } 1331.69Sad39 NOARGS { pid_t sys_getppid(void); } 1341.75Schristos40 COMPAT_43 { int netbsd32_lstat43(netbsd32_charp path, \ 1351.75Schristos netbsd32_stat43p_t ub); } 1361.10Seeh41 STD { int netbsd32_dup(int fd); } 1371.1Smrg42 NOARGS { int sys_pipe(void); } 1381.69Sad43 NOARGS { gid_t sys_getegid(void); } 1391.75Schristos44 STD { int netbsd32_profil(netbsd32_voidp samples, \ 1401.75Schristos netbsd32_size_t size, netbsd32_u_long offset, \ 1411.75Schristos u_int scale); } 1421.75Schristos45 STD { int netbsd32_ktrace(netbsd32_charp fname, int ops, \ 1431.75Schristos int facs, int pid); } 1441.75Schristos46 STD { int netbsd32_sigaction(int signum, \ 1451.75Schristos netbsd32_sigactionp_t nsa, \ 1461.75Schristos netbsd32_sigactionp_t osa); } 1471.69Sad47 NOARGS { gid_t sys_getgid(void); } 1481.10Seeh48 COMPAT_13 { int netbsd32_sigprocmask(int how, \ 1491.3Seeh int mask); } sigprocmask13 1501.75Schristos49 STD { int netbsd32___getlogin(netbsd32_charp namebuf, \ 1511.75Schristos u_int namelen); } 1521.64Sdsl50 STD { int netbsd32_setlogin(netbsd32_charp namebuf); } 1531.64Sdsl51 STD { int netbsd32_acct(netbsd32_charp path); } 1541.69Sad52 COMPAT_13 { int sys_sigpending(void); } sigpending13 1551.75Schristos53 COMPAT_13 { int netbsd32_sigaltstack13( \ 1561.75Schristos netbsd32_sigaltstack13p_t nss, \ 1571.75Schristos netbsd32_sigaltstack13p_t oss); } 1581.75Schristos54 STD { int netbsd32_ioctl(int fd, netbsd32_u_long com, \ 1591.75Schristos ... netbsd32_voidp data); } 1601.10Seeh55 COMPAT_12 { int netbsd32_reboot(int opt); } 1611.64Sdsl56 STD { int netbsd32_revoke(netbsd32_charp path); } 1621.75Schristos57 STD { int netbsd32_symlink(netbsd32_charp path, \ 1631.75Schristos netbsd32_charp link); } 1641.75Schristos58 STD { int netbsd32_readlink(netbsd32_charp path, \ 1651.75Schristos netbsd32_charp buf, netbsd32_size_t count); } 1661.75Schristos59 STD { int netbsd32_execve(netbsd32_charp path, \ 1671.75Schristos netbsd32_charpp argp, netbsd32_charpp envp); } 1681.10Seeh60 STD { mode_t netbsd32_umask(mode_t newmask); } 1691.64Sdsl61 STD { int netbsd32_chroot(netbsd32_charp path); } 1701.10Seeh62 COMPAT_43 { int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); } 1711.75Schristos63 COMPAT_43 { int netbsd32_ogetkerninfo(int op, \ 1721.75Schristos netbsd32_charp where, netbsd32_intp size, \ 1731.75Schristos int arg); } 1741.1Smrg64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 1751.75Schristos65 COMPAT_12 { int netbsd32_msync(netbsd32_voidp addr, \ 1761.75Schristos netbsd32_size_t len); } 1771.1Smrg; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 1781.1Smrg66 NOARGS { int sys_vfork(void); } 1791.1Smrg67 OBSOL vread 1801.1Smrg68 OBSOL vwrite 1811.10Seeh69 STD { int netbsd32_sbrk(netbsd32_intptr_t incr); } 1821.10Seeh70 STD { int netbsd32_sstk(int incr); } 1831.75Schristos71 COMPAT_43 { int netbsd32_ommap(netbsd32_voidp addr, \ 1841.75Schristos netbsd32_size_t len, int prot, int flags, int fd, \ 1851.75Schristos netbsd32_long pos); } 1861.10Seeh72 STD { int netbsd32_ovadvise(int anom); } vadvise 1871.75Schristos73 STD { int netbsd32_munmap(netbsd32_voidp addr, \ 1881.75Schristos netbsd32_size_t len); } 1891.75Schristos74 STD { int netbsd32_mprotect(netbsd32_voidp addr, \ 1901.75Schristos netbsd32_size_t len, int prot); } 1911.75Schristos75 STD { int netbsd32_madvise(netbsd32_voidp addr, \ 1921.75Schristos netbsd32_size_t len, int behav); } 1931.1Smrg76 OBSOL vhangup 1941.1Smrg77 OBSOL vlimit 1951.75Schristos78 STD { int netbsd32_mincore(netbsd32_voidp addr, \ 1961.75Schristos netbsd32_size_t len, netbsd32_charp vec); } 1971.75Schristos79 STD { int netbsd32_getgroups(int gidsetsize, \ 1981.75Schristos netbsd32_gid_tp gidset); } 1991.75Schristos80 STD { int netbsd32_setgroups(int gidsetsize, \ 2001.75Schristos netbsd32_gid_tp gidset); } 2011.69Sad81 NOARGS { int sys_getpgrp(void); } 2021.10Seeh82 STD { int netbsd32_setpgid(int pid, int pgid); } 2031.75Schristos83 COMPAT_50 { int netbsd32_setitimer(int which, \ 2041.75Schristos netbsd32_itimerval50p_t itv, \ 2051.75Schristos netbsd32_itimerval50p_t oitv); } 2061.1Smrg84 COMPAT_43 { int sys_wait(void); } owait 2071.64Sdsl85 COMPAT_12 { int netbsd32_oswapon(netbsd32_charp name); } 2081.75Schristos86 COMPAT_50 { int netbsd32_getitimer(int which, \ 2091.75Schristos netbsd32_itimerval50p_t itv); } 2101.75Schristos87 COMPAT_43 { int netbsd32_ogethostname(netbsd32_charp hostname, \ 2111.75Schristos u_int len); } 2121.75Schristos88 COMPAT_43 { int netbsd32_osethostname(netbsd32_charp hostname, \ 2131.75Schristos u_int len); } 2141.1Smrg89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 2151.10Seeh90 STD { int netbsd32_dup2(int from, int to); } 2161.1Smrg91 UNIMPL getdopt 2171.75Schristos92 STD { int netbsd32_fcntl(int fd, int cmd, \ 2181.75Schristos ... netbsd32_voidp arg); } 2191.75Schristos93 COMPAT_50 { int netbsd32_select(int nd, netbsd32_fd_setp_t in, \ 2201.75Schristos netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ 2211.75Schristos netbsd32_timeval50p_t tv); } 2221.1Smrg94 UNIMPL setdopt 2231.10Seeh95 STD { int netbsd32_fsync(int fd); } 2241.75Schristos96 STD { int netbsd32_setpriority(int which, int who, \ 2251.75Schristos int prio); } 2261.75Schristos97 COMPAT_30 { int netbsd32_socket(int domain, int type, \ 2271.75Schristos int protocol); } 2281.75Schristos98 STD { int netbsd32_connect(int s, \ 2291.75Schristos netbsd32_sockaddrp_t name, int namelen); } 2301.75Schristos99 COMPAT_43 { int netbsd32_oaccept(int s, netbsd32_voidp name, \ 2311.75Schristos netbsd32_intp anamelen); } 2321.10Seeh100 STD { int netbsd32_getpriority(int which, int who); } 2331.75Schristos101 COMPAT_43 { int netbsd32_osend(int s, netbsd32_voidp buf, \ 2341.75Schristos int len, int flags); } 2351.75Schristos102 COMPAT_43 { int netbsd32_orecv(int s, netbsd32_voidp buf, \ 2361.75Schristos int len, int flags); } 2371.75Schristos103 COMPAT_13 { int netbsd32_sigreturn( \ 2381.75Schristos netbsd32_sigcontextp_t sigcntxp); } sigreturn13 2391.75Schristos104 STD { int netbsd32_bind(int s, netbsd32_sockaddrp_t name, \ 2401.75Schristos int namelen); } 2411.75Schristos105 STD { int netbsd32_setsockopt(int s, int level, int name, \ 2421.75Schristos netbsd32_voidp val, int valsize); } 2431.10Seeh106 STD { int netbsd32_listen(int s, int backlog); } 2441.1Smrg107 OBSOL vtimes 2451.75Schristos108 COMPAT_43 { int netbsd32_osigvec(int signum, \ 2461.75Schristos netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } 2471.10Seeh109 COMPAT_43 { int netbsd32_sigblock(int mask); } 2481.10Seeh110 COMPAT_43 { int netbsd32_sigsetmask(int mask); } 2491.10Seeh111 COMPAT_13 { int netbsd32_sigsuspend(int mask); } sigsuspend13 2501.75Schristos112 COMPAT_43 { int netbsd32_osigstack(netbsd32_sigstackp_t nss, \ 2511.75Schristos netbsd32_sigstackp_t oss); } 2521.75Schristos113 COMPAT_43 { int netbsd32_orecvmsg(int s, \ 2531.75Schristos netbsd32_omsghdrp_t msg, int flags); } 2541.75Schristos114 COMPAT_43 { int netbsd32_osendmsg(int s, netbsd32_voidp msg, \ 2551.75Schristos int flags); } 2561.1Smrg115 OBSOL vtrace 2571.75Schristos116 COMPAT_50 { int netbsd32_gettimeofday(netbsd32_timeval50p_t tp, \ 2581.75Schristos netbsd32_timezonep_t tzp); } 2591.75Schristos117 COMPAT_50 { int netbsd32_getrusage(int who, \ 2601.75Schristos netbsd32_rusage50p_t rusage); } 2611.75Schristos118 STD { int netbsd32_getsockopt(int s, int level, int name, \ 2621.75Schristos netbsd32_voidp val, netbsd32_intp avalsize); } 2631.1Smrg119 OBSOL resuba 2641.75Schristos120 STD { netbsd32_ssize_t netbsd32_readv(int fd, \ 2651.75Schristos netbsd32_iovecp_t iovp, int iovcnt); } 2661.75Schristos121 STD { netbsd32_ssize_t netbsd32_writev(int fd, \ 2671.75Schristos netbsd32_iovecp_t iovp, int iovcnt); } 2681.75Schristos122 COMPAT_50 { int netbsd32_settimeofday(netbsd32_timeval50p_t tv, \ 2691.75Schristos netbsd32_timezonep_t tzp); } 2701.10Seeh123 STD { int netbsd32_fchown(int fd, uid_t uid, gid_t gid); } 2711.10Seeh124 STD { int netbsd32_fchmod(int fd, mode_t mode); } 2721.75Schristos125 COMPAT_43 { int netbsd32_orecvfrom(int s, netbsd32_voidp buf, \ 2731.75Schristos netbsd32_size_t len, int flags, \ 2741.75Schristos netbsd32_voidp from, netbsd32_intp fromlenaddr); } 2751.10Seeh126 STD { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 2761.10Seeh127 STD { int netbsd32_setregid(gid_t rgid, gid_t egid); } 2771.75Schristos128 STD { int netbsd32_rename(netbsd32_charp from, \ 2781.75Schristos netbsd32_charp to); } 2791.75Schristos129 COMPAT_43 { int netbsd32_otruncate(netbsd32_charp path, \ 2801.75Schristos netbsd32_long length); } 2811.75Schristos130 COMPAT_43 { int netbsd32_oftruncate(int fd, \ 2821.75Schristos netbsd32_long length); } 2831.10Seeh131 STD { int netbsd32_flock(int fd, int how); } 2841.75Schristos132 STD { int netbsd32_mkfifo(netbsd32_charp path, \ 2851.75Schristos mode_t mode); } 2861.75Schristos133 STD { netbsd32_ssize_t netbsd32_sendto(int s, \ 2871.75Schristos netbsd32_voidp buf, netbsd32_size_t len, \ 2881.75Schristos int flags, netbsd32_sockaddrp_t to, int tolen); } 2891.10Seeh134 STD { int netbsd32_shutdown(int s, int how); } 2901.75Schristos135 STD { int netbsd32_socketpair(int domain, int type, \ 2911.75Schristos int protocol, netbsd32_intp rsv); } 2921.75Schristos136 STD { int netbsd32_mkdir(netbsd32_charp path, \ 2931.75Schristos mode_t mode); } 2941.64Sdsl137 STD { int netbsd32_rmdir(netbsd32_charp path); } 2951.75Schristos138 COMPAT_50 { int netbsd32_utimes(netbsd32_charp path, \ 2961.75Schristos netbsd32_timeval50p_t tptr); } 2971.1Smrg139 OBSOL 4.2 sigreturn 2981.75Schristos140 COMPAT_50 { int netbsd32_adjtime(netbsd32_timeval50p_t delta, \ 2991.75Schristos netbsd32_timeval50p_t olddelta); } 3001.75Schristos141 COMPAT_43 { int netbsd32_ogetpeername(int fdes, \ 3011.75Schristos netbsd32_voidp asa, netbsd32_intp alen); } 3021.1Smrg142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 3031.10Seeh143 COMPAT_43 { int netbsd32_sethostid(int32_t hostid); } 3041.75Schristos144 COMPAT_43 { int netbsd32_ogetrlimit(int which, \ 3051.75Schristos netbsd32_orlimitp_t rlp); } 3061.75Schristos145 COMPAT_43 { int netbsd32_osetrlimit(int which, \ 3071.75Schristos netbsd32_orlimitp_t rlp); } 3081.10Seeh146 COMPAT_43 { int netbsd32_killpg(int pgid, int signum); } 3091.1Smrg147 NOARGS { int sys_setsid(void); } 3101.75Schristos148 STD { int netbsd32_quotactl(netbsd32_charp path, int cmd, \ 3111.75Schristos int uid, netbsd32_voidp arg); } 3121.1Smrg149 COMPAT_43 { int sys_quota(void); } oquota 3131.75Schristos150 COMPAT_43 { int netbsd32_ogetsockname(int fdec, \ 3141.75Schristos netbsd32_voidp asa, netbsd32_intp alen); } 3151.1Smrg 3161.1Smrg; Syscalls 151-180 inclusive are reserved for vendor-specific 3171.1Smrg; system calls. (This includes various calls added for compatibity 3181.1Smrg; with other Unix variants.) 3191.1Smrg; Some of these calls are now supported by BSD... 3201.1Smrg151 UNIMPL 3211.1Smrg152 UNIMPL 3221.1Smrg153 UNIMPL 3231.1Smrg154 UNIMPL 3241.10Seeh155 STD { int netbsd32_nfssvc(int flag, netbsd32_voidp argp); } 3251.75Schristos156 COMPAT_43 { int netbsd32_ogetdirentries(int fd, \ 3261.75Schristos netbsd32_charp buf, u_int count, \ 3271.75Schristos netbsd32_longp basep); } 3281.75Schristos157 COMPAT_20 { int netbsd32_statfs(netbsd32_charp path, \ 3291.75Schristos netbsd32_statfsp_t buf); } 3301.75Schristos158 COMPAT_20 { int netbsd32_fstatfs(int fd, \ 3311.75Schristos netbsd32_statfsp_t buf); } 3321.1Smrg159 UNIMPL 3331.1Smrg160 UNIMPL 3341.75Schristos161 COMPAT_30 { int netbsd32_getfh(netbsd32_charp fname, \ 3351.75Schristos netbsd32_compat_30_fhandlep_t fhp); } 3361.75Schristos162 COMPAT_09 { int netbsd32_ogetdomainname( \ 3371.75Schristos netbsd32_charp domainname, int len); } 3381.75Schristos163 COMPAT_09 { int netbsd32_osetdomainname( \ 3391.75Schristos netbsd32_charp domainname, int len); } 3401.10Seeh164 COMPAT_09 { int netbsd32_uname(netbsd32_outsnamep_t name); } 3411.10Seeh165 STD { int netbsd32_sysarch(int op, netbsd32_voidp parms); } 3421.1Smrg166 UNIMPL 3431.1Smrg167 UNIMPL 3441.1Smrg168 UNIMPL 3451.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 3461.75Schristos169 COMPAT_10 { int netbsd32_semsys(int which, int a2, int a3, \ 3471.75Schristos int a4, int a5); } osemsys 3481.1Smrg#else 3491.75Schristos169 EXCL netbsd32_semsys 3501.1Smrg#endif 3511.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 3521.75Schristos170 COMPAT_10 { int netbsd32_msgsys(int which, int a2, int a3, \ 3531.75Schristos int a4, int a5, int a6); } omsgsys 3541.1Smrg#else 3551.75Schristos170 EXCL netbsd32_msgsys 3561.1Smrg#endif 3571.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 3581.75Schristos171 COMPAT_10 { int netbsd32_shmsys(int which, int a2, int a3, \ 3591.75Schristos int a4); } oshmsys 3601.1Smrg#else 3611.75Schristos171 EXCL netbsd32_shmsys 3621.1Smrg#endif 3631.1Smrg172 UNIMPL 3641.75Schristos173 STD { netbsd32_ssize_t netbsd32_pread(int fd, \ 3651.75Schristos netbsd32_voidp buf, netbsd32_size_t nbyte, \ 3661.75Schristos int pad, off_t offset); } 3671.75Schristos174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, \ 3681.75Schristos netbsd32_voidp buf, netbsd32_size_t nbyte, \ 3691.75Schristos int pad, off_t offset); } 3701.75Schristos175 COMPAT_30 { int netbsd32_ntp_gettime( \ 3711.75Schristos netbsd32_ntptimeval50p_t ntvp); } 3721.10Seeh176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); } 3731.1Smrg177 UNIMPL 3741.1Smrg178 UNIMPL 3751.1Smrg179 UNIMPL 3761.1Smrg180 UNIMPL 3771.1Smrg 3781.1Smrg; Syscalls 180-199 are used by/reserved for BSD 3791.10Seeh181 STD { int netbsd32_setgid(gid_t gid); } 3801.10Seeh182 STD { int netbsd32_setegid(gid_t egid); } 3811.10Seeh183 STD { int netbsd32_seteuid(uid_t euid); } 3821.75Schristos#if defined(LFS) || !defined(_KERNEL_OPT) 3831.75Schristos184 STD { int netbsd32_lfs_bmapv(netbsd32_fsid_tp_t fsidp, \ 3841.75Schristos netbsd32_block_infop_t blkiov, int blkcnt); } 3851.75Schristos185 STD { int netbsd32_lfs_markv(netbsd32_fsid_tp_t fsidp, \ 3861.75Schristos netbsd32_block_infop_t blkiov, int blkcnt); } 3871.75Schristos186 STD { int netbsd32_lfs_segclean(netbsd32_fsid_tp_t fsidp, \ 3881.75Schristos netbsd32_u_long segment); } 3891.75Schristos187 COMPAT_50 { int netbsd32_lfs_segwait(netbsd32_fsid_tp_t fsidp, \ 3901.75Schristos netbsd32_timeval50p_t tv); } 3911.75Schristos#else 3921.75Schristos184 EXCL netbsd32_lfs_bmapv 3931.75Schristos185 EXCL netbsd32_lfs_markv 3941.75Schristos186 EXCL netbsd32_lfs_segclean 3951.75Schristos187 EXCL netbsd32_lfs_segwait 3961.10Seeh#endif 3971.75Schristos188 COMPAT_12 { int netbsd32_stat12(netbsd32_charp path, \ 3981.75Schristos netbsd32_stat12p_t ub); } 3991.10Seeh189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); } 4001.75Schristos190 COMPAT_12 { int netbsd32_lstat12(netbsd32_charp path, \ 4011.75Schristos netbsd32_stat12p_t ub); } 4021.75Schristos191 STD { netbsd32_long netbsd32_pathconf(netbsd32_charp path, \ 4031.75Schristos int name); } 4041.10Seeh192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); } 4051.1Smrg193 UNIMPL 4061.75Schristos194 STD { int netbsd32_getrlimit(int which, \ 4071.75Schristos netbsd32_rlimitp_t rlp); } 4081.75Schristos195 STD { int netbsd32_setrlimit(int which, \ 4091.75Schristos netbsd32_rlimitp_t rlp); } 4101.75Schristos196 COMPAT_12 { int netbsd32_getdirentries(int fd, \ 4111.75Schristos netbsd32_charp buf, u_int count, \ 4121.75Schristos netbsd32_longp basep); } 4131.75Schristos197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, \ 4141.75Schristos netbsd32_size_t len, int prot, int flags, int fd, \ 4151.75Schristos netbsd32_long pad, off_t pos); } 4161.75Schristos198 INDIR { quad_t netbsd32____syscall(quad_t code, \ 4171.62Sdsl ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } 4181.75Schristos199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, \ 4191.75Schristos int whence); } 4201.75Schristos200 STD { int netbsd32_truncate(netbsd32_charp path, int pad, \ 4211.75Schristos off_t length); } 4221.75Schristos201 STD { int netbsd32_ftruncate(int fd, int pad, \ 4231.75Schristos off_t length); } 4241.75Schristos202 STD { int netbsd32___sysctl(netbsd32_intp name, \ 4251.75Schristos u_int namelen, netbsd32_voidp old, \ 4261.75Schristos netbsd32_size_tp oldlenp, netbsd32_voidp new, \ 4271.75Schristos netbsd32_size_t newlen); } 4281.75Schristos203 STD { int netbsd32_mlock(netbsd32_voidp addr, \ 4291.75Schristos netbsd32_size_t len); } 4301.75Schristos204 STD { int netbsd32_munlock(netbsd32_voidp addr, \ 4311.75Schristos netbsd32_size_t len); } 4321.64Sdsl205 STD { int netbsd32_undelete(netbsd32_charp path); } 4331.75Schristos206 COMPAT_50 { int netbsd32_futimes(int fd, \ 4341.75Schristos netbsd32_timeval50p_t tptr); } 4351.10Seeh207 STD { int netbsd32_getpgid(pid_t pid); } 4361.75Schristos208 STD { int netbsd32_reboot(int opt, \ 4371.75Schristos netbsd32_charp bootstr); } 4381.75Schristos209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, \ 4391.75Schristos u_int nfds, int timeout); } 4401.71Sad210 UNIMPL 4411.71Sad211 UNIMPL 4421.71Sad212 UNIMPL 4431.71Sad213 UNIMPL 4441.71Sad214 UNIMPL 4451.71Sad215 UNIMPL 4461.71Sad216 UNIMPL 4471.71Sad217 UNIMPL 4481.71Sad218 UNIMPL 4491.71Sad219 UNIMPL 4501.1Smrg; System calls 220-300 are reserved for use by NetBSD 4511.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 4521.75Schristos220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, \ 4531.75Schristos int cmd, netbsd32_semunu_t arg); } 4541.75Schristos221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, \ 4551.75Schristos int semflg); } 4561.75Schristos222 STD { int netbsd32_semop(int semid, \ 4571.75Schristos netbsd32_sembufp_t sops, netbsd32_size_t nsops); } 4581.10Seeh223 STD { int netbsd32_semconfig(int flag); } 4591.10Seeh#else 4601.11Seeh220 EXCL compat_14_netbsd32_semctl 4611.10Seeh221 EXCL netbsd32_semget 4621.10Seeh222 EXCL netbsd32_semop 4631.10Seeh223 EXCL netbsd32_semconfig 4641.1Smrg#endif 4651.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 4661.75Schristos224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, \ 4671.75Schristos netbsd32_msqid_ds14p_t buf); } 4681.10Seeh225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); } 4691.75Schristos226 STD { int netbsd32_msgsnd(int msqid, netbsd32_voidp msgp, \ 4701.75Schristos netbsd32_size_t msgsz, int msgflg); } 4711.75Schristos227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, \ 4721.75Schristos netbsd32_voidp msgp, netbsd32_size_t msgsz, \ 4731.75Schristos netbsd32_long msgtyp, int msgflg); } 4741.10Seeh#else 4751.11Seeh224 EXCL compat_14_netbsd32_msgctl 4761.10Seeh225 EXCL netbsd32_msgget 4771.10Seeh226 EXCL netbsd32_msgsnd 4781.10Seeh227 EXCL netbsd32_msgrcv 4791.1Smrg#endif 4801.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 4811.75Schristos228 STD { netbsd32_voidp netbsd32_shmat(int shmid, \ 4821.75Schristos netbsd32_voidp shmaddr, int shmflg); } 4831.75Schristos229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, \ 4841.75Schristos netbsd32_shmid_dsp_t buf); } 4851.64Sdsl230 STD { int netbsd32_shmdt(netbsd32_voidp shmaddr); } 4861.75Schristos231 STD { int netbsd32_shmget(netbsd32_key_t key, \ 4871.75Schristos netbsd32_size_t size, int shmflg); } 4881.10Seeh#else 4891.10Seeh228 EXCL netbsd32_shmat 4901.11Seeh229 EXCL compat_14_netbsd32_shmctl 4911.10Seeh230 EXCL netbsd32_shmdt 4921.10Seeh231 EXCL netbsd32_shmget 4931.10Seeh#endif 4941.75Schristos232 COMPAT_50 { int netbsd32_clock_gettime( \ 4951.75Schristos netbsd32_clockid_t clock_id, \ 4961.75Schristos netbsd32_timespec50p_t tp); } 4971.75Schristos233 COMPAT_50 { int netbsd32_clock_settime( \ 4981.75Schristos netbsd32_clockid_t clock_id, \ 4991.75Schristos netbsd32_timespec50p_t tp); } 5001.75Schristos234 COMPAT_50 { int netbsd32_clock_getres( \ 5011.75Schristos netbsd32_clockid_t clock_id, \ 5021.75Schristos netbsd32_timespec50p_t tp); } 5031.75Schristos235 STD { int netbsd32_timer_create( \ 5041.75Schristos netbsd32_clockid_t clock_id, \ 5051.75Schristos netbsd32_sigeventp_t evp, \ 5061.36Scube netbsd32_timerp_t timerid); } 5071.36Scube236 STD { int netbsd32_timer_delete(netbsd32_timer_t timerid); } 5081.75Schristos237 COMPAT_50 { int netbsd32_timer_settime(netbsd32_timer_t timerid, \ 5091.75Schristos int flags, \ 5101.75Schristos netbsd32_itimerspec50p_t value, \ 5111.75Schristos netbsd32_itimerspec50p_t ovalue); } 5121.75Schristos238 COMPAT_50 { int netbsd32_timer_gettime(netbsd32_timer_t timerid, \ 5131.75Schristos netbsd32_itimerspec50p_t value); } 5141.75Schristos239 STD { int netbsd32_timer_getoverrun( \ 5151.75Schristos netbsd32_timer_t timerid); } 5161.1Smrg; 5171.1Smrg; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 5181.1Smrg; 5191.75Schristos240 COMPAT_50 { int netbsd32_nanosleep(netbsd32_timespec50p_t rqtp, \ 5201.75Schristos netbsd32_timespec50p_t rmtp); } 5211.10Seeh241 STD { int netbsd32_fdatasync(int fd); } 5221.30Scube242 STD { int netbsd32_mlockall(int flags); } 5231.30Scube243 NOARGS { int sys_munlockall(void); } 5241.75Schristos244 COMPAT_50 { int netbsd32___sigtimedwait(netbsd32_sigsetp_t set, \ 5251.37Scube netbsd32_siginfop_t info, \ 5261.75Schristos netbsd32_timespec50p_t timeout); } 5271.1Smrg245 UNIMPL 5281.1Smrg246 UNIMPL 5291.75Schristos#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL_OPT) && defined(_LIBC)) 5301.75Schristos247 STD { int netbsd32__ksem_init(unsigned int value, \ 5311.75Schristos netbsd32_semidp_t idp); } 5321.75Schristos248 STD { int netbsd32__ksem_open(netbsd32_charp name, \ 5331.75Schristos int oflag, mode_t mode, unsigned int value, \ 5341.75Schristos netbsd32_semidp_t idp); } 5351.64Sdsl249 STD { int netbsd32__ksem_unlink(netbsd32_charp name); } 5361.72Sad250 STD { int netbsd32__ksem_close(netbsd32_intptr_t id); } 5371.72Sad251 STD { int netbsd32__ksem_post(netbsd32_intptr_t id); } 5381.72Sad252 STD { int netbsd32__ksem_wait(netbsd32_intptr_t id); } 5391.72Sad253 STD { int netbsd32__ksem_trywait(netbsd32_intptr_t id); } 5401.72Sad254 STD { int netbsd32__ksem_getvalue(netbsd32_intptr_t id, \ 5411.42Scube netbsd32_intp value); } 5421.72Sad255 STD { int netbsd32__ksem_destroy(netbsd32_intptr_t id); } 5431.42Scube256 UNIMPL sys__ksem_timedwait 5441.42Scube#else 5451.42Scube247 EXCL sys__ksem_init 5461.42Scube248 EXCL sys__ksem_open 5471.42Scube249 EXCL sys__ksem_unlink 5481.42Scube250 EXCL sys__ksem_close 5491.42Scube251 EXCL sys__ksem_post 5501.42Scube252 EXCL sys__ksem_wait 5511.42Scube253 EXCL sys__ksem_trywait 5521.42Scube254 EXCL sys__ksem_getvalue 5531.42Scube255 EXCL sys__ksem_destroy 5541.42Scube256 UNIMPL sys__ksem_timedwait 5551.42Scube#endif 5561.1Smrg257 UNIMPL 5571.1Smrg258 UNIMPL 5581.1Smrg259 UNIMPL 5591.1Smrg260 UNIMPL 5601.1Smrg261 UNIMPL 5611.1Smrg262 UNIMPL 5621.1Smrg263 UNIMPL 5631.1Smrg264 UNIMPL 5641.1Smrg265 UNIMPL 5651.1Smrg266 UNIMPL 5661.1Smrg267 UNIMPL 5671.1Smrg268 UNIMPL 5681.1Smrg269 UNIMPL 5691.75Schristos270 STD { int netbsd32___posix_rename(netbsd32_charp from, \ 5701.75Schristos netbsd32_charp to); } 5711.75Schristos271 STD { int netbsd32_swapctl(int cmd, netbsd32_voidp arg, \ 5721.75Schristos int misc); } 5731.75Schristos272 COMPAT_30 { int netbsd32_getdents(int fd, netbsd32_charp buf, \ 5741.75Schristos netbsd32_size_t count); } 5751.75Schristos273 STD { int netbsd32_minherit(netbsd32_voidp addr, \ 5761.75Schristos netbsd32_size_t len, int inherit); } 5771.75Schristos274 STD { int netbsd32_lchmod(netbsd32_charp path, \ 5781.75Schristos mode_t mode); } 5791.75Schristos275 STD { int netbsd32_lchown(netbsd32_charp path, uid_t uid, \ 5801.75Schristos gid_t gid); } 5811.75Schristos276 COMPAT_50 { int netbsd32_lutimes(netbsd32_charp path, \ 5821.75Schristos netbsd32_timeval50p_t tptr); } 5831.75Schristos277 STD { int netbsd32___msync13(netbsd32_voidp addr, \ 5841.75Schristos netbsd32_size_t len, int flags); } 5851.75Schristos278 COMPAT_30 { int netbsd32___stat13(netbsd32_charp path, \ 5861.75Schristos netbsd32_stat13p_t ub); } 5871.75Schristos279 COMPAT_30 { int netbsd32___fstat13(int fd, \ 5881.75Schristos netbsd32_stat13p_t sb); } 5891.75Schristos280 COMPAT_30 { int netbsd32___lstat13(netbsd32_charp path, \ 5901.75Schristos netbsd32_stat13p_t ub); } 5911.75Schristos281 STD { int netbsd32___sigaltstack14(\ 5921.75Schristos netbsd32_sigaltstackp_t nss, \ 5931.75Schristos netbsd32_sigaltstackp_t oss); } 5941.1Smrg282 NOARGS { int sys___vfork14(void); } 5951.75Schristos283 STD { int netbsd32___posix_chown(netbsd32_charp path, \ 5961.75Schristos uid_t uid, gid_t gid); } 5971.75Schristos284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, \ 5981.75Schristos gid_t gid); } 5991.75Schristos285 STD { int netbsd32___posix_lchown(netbsd32_charp path, \ 6001.75Schristos uid_t uid, gid_t gid); } 6011.10Seeh286 STD { pid_t netbsd32_getsid(pid_t pid); } 6021.75Schristos287 STD { int netbsd32___clone(int flags, \ 6031.75Schristos netbsd32_voidp stack); } 6041.75Schristos288 STD { int netbsd32_fktrace(int fd, int ops, int facs, \ 6051.75Schristos int pid); } 6061.75Schristos289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, \ 6071.75Schristos netbsd32_iovecp_t iovp, int iovcnt, int pad, \ 6081.75Schristos off_t offset); } 6091.75Schristos290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, \ 6101.75Schristos netbsd32_iovecp_t iovp, int iovcnt, int pad, \ 6111.75Schristos off_t offset); } 6121.11Seeh291 STD { int netbsd32___sigaction14(int signum, \ 6131.64Sdsl netbsd32_sigactionp_t nsa, \ 6141.11Seeh netbsd32_sigactionp_t osa); } 6151.11Seeh292 STD { int netbsd32___sigpending14(netbsd32_sigsetp_t set); } 6161.11Seeh293 STD { int netbsd32___sigprocmask14(int how, \ 6171.64Sdsl netbsd32_sigsetp_t set, \ 6181.11Seeh netbsd32_sigsetp_t oset); } 6191.64Sdsl294 STD { int netbsd32___sigsuspend14(netbsd32_sigsetp_t set); } 6201.75Schristos295 COMPAT_16 { int netbsd32___sigreturn14( \ 6211.75Schristos netbsd32_sigcontextp_t sigcntxp); } 6221.75Schristos296 STD { int netbsd32___getcwd(netbsd32_charp bufp, \ 6231.75Schristos netbsd32_size_t length); } 6241.11Seeh297 STD { int netbsd32_fchroot(int fd); } 6251.64Sdsl298 COMPAT_30 { int netbsd32_fhopen(netbsd32_fhandlep_t fhp, \ 6261.11Seeh int flags); } 6271.64Sdsl299 COMPAT_30 { int netbsd32_fhstat(netbsd32_fhandlep_t fhp, \ 6281.45Scube netbsd32_stat13p_t sb); } 6291.26Scube300 COMPAT_20 { int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \ 6301.75Schristos netbsd32_stat50p_t buf); } 6311.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 6321.75Schristos301 COMPAT_50 { int netbsd32___semctl14(int semid, int semnum, \ 6331.75Schristos int cmd, ... netbsd32_semun50p_t arg); } 6341.11Seeh#else 6351.12Schristos301 EXCL __semctl14 6361.11Seeh#endif 6371.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 6381.75Schristos302 COMPAT_50 { int netbsd32___msgctl13(int msqid, int cmd, \ 6391.75Schristos netbsd32_msqid_ds50p_t buf); } 6401.11Seeh#else 6411.11Seeh302 EXCL __msgctl13 6421.11Seeh#endif 6431.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 6441.75Schristos303 COMPAT_50 { int netbsd32___shmctl13(int shmid, int cmd, \ 6451.75Schristos netbsd32_shmid_ds50p_t buf); } 6461.11Seeh#else 6471.11Seeh303 EXCL __shmctl13 6481.11Seeh#endif 6491.75Schristos304 STD { int netbsd32_lchflags(netbsd32_charp path, \ 6501.75Schristos netbsd32_u_long flags); } 6511.69Sad305 NOARGS { int sys_issetugid(void); } 6521.75Schristos306 STD { int netbsd32_utrace(netbsd32_charp label, \ 6531.75Schristos netbsd32_voidp addr, netbsd32_size_t len); } 6541.24Sfvdl307 STD { int netbsd32_getcontext(netbsd32_ucontextp ucp); } 6551.24Sfvdl308 STD { int netbsd32_setcontext(netbsd32_ucontextp ucp, \ 6561.24Sfvdl uint32_t flags, netbsd32_lwpidp new_lwp); } 6571.64Sdsl309 STD { int netbsd32__lwp_create(netbsd32_ucontextp ucp, \ 6581.44Scube netbsd32_u_long flags, netbsd32_lwpidp new_lwp); } 6591.44Scube310 NOARGS { int sys__lwp_exit(void); } 6601.69Sad311 NOARGS { lwpid_t sys__lwp_self(void); } 6611.69Sad312 STD { int netbsd32__lwp_wait(lwpid_t wait_for, \ 6621.44Scube netbsd32_lwpidp departed); } 6631.69Sad313 STD { int netbsd32__lwp_suspend(lwpid_t target); } 6641.69Sad314 STD { int netbsd32__lwp_continue(lwpid_t target); } 6651.69Sad315 STD { int netbsd32__lwp_wakeup(lwpid_t target); } 6661.75Schristos316 NOARGS { netbsd32_voidp sys__lwp_getprivate(void); } 6671.69Sad317 STD { void netbsd32__lwp_setprivate(netbsd32_voidp ptr); } 6681.56Scube318 STD { int netbsd32__lwp_kill(lwpid_t target, int signo); } 6691.69Sad319 STD { int netbsd32__lwp_detach(lwpid_t target); } 6701.75Schristos320 COMPAT_50 { int netbsd32__lwp_park(netbsd32_timespec50p_t ts, \ 6711.75Schristos lwpid_t unpark, netbsd32_voidp hint, \ 6721.75Schristos netbsd32_voidp unparkhint); } 6731.75Schristos321 STD { int netbsd32__lwp_unpark(lwpid_t target, \ 6741.75Schristos netbsd32_voidp hint); } 6751.75Schristos322 STD { netbsd32_size_t netbsd32__lwp_unpark_all( \ 6761.75Schristos netbsd32_lwpidp targets, netbsd32_size_t ntargets, \ 6771.75Schristos netbsd32_voidp hint); } 6781.63Sad323 STD { int netbsd32__lwp_setname(lwpid_t target, \ 6791.64Sdsl netbsd32_charp name); } 6801.63Sad324 STD { int netbsd32__lwp_getname(lwpid_t target, \ 6811.63Sad netbsd32_charp name, netbsd32_size_t len); } 6821.63Sad325 STD { int netbsd32__lwp_ctl(int features, \ 6831.63Sad netbsd32_pointer_t address); } 6841.18Smrg326 UNIMPL 6851.18Smrg327 UNIMPL 6861.18Smrg328 UNIMPL 6871.18Smrg329 UNIMPL 6881.70Swrstuden330 STD { int netbsd32_sa_register(netbsd32_sa_upcall_t new, \ 6891.70Swrstuden netbsd32_sa_upcallp_t old, int flags, \ 6901.70Swrstuden netbsd32_ssize_t stackinfo_offset); } 6911.75Schristos331 STD { int netbsd32_sa_stacks(int num, \ 6921.75Schristos netbsd32_stackp_t stacks); } 6931.70Swrstuden332 NOARGS { int sys_sa_enable(void); } 6941.70Swrstuden333 STD { int netbsd32_sa_setconcurrency(int concurrency); } 6951.70Swrstuden334 NOARGS { int sys_sa_yield(void); } 6961.70Swrstuden335 STD { int netbsd32_sa_preempt(int sa_id); } 6971.44Scube336 OBSOL sys_sa_unblockyield 6981.18Smrg337 UNIMPL 6991.18Smrg338 UNIMPL 7001.18Smrg339 UNIMPL 7011.22Sscw340 STD { int netbsd32___sigaction_sigtramp(int signum, \ 7021.64Sdsl netbsd32_sigactionp_t nsa, \ 7031.22Sscw netbsd32_sigactionp_t osa, \ 7041.22Sscw netbsd32_voidp tramp, int vers); } 7051.26Scube341 UNIMPL 7061.26Scube342 UNIMPL 7071.75Schristos343 STD { int netbsd32_rasctl(netbsd32_voidp addr, \ 7081.75Schristos netbsd32_size_t len, int op); } 7091.40Scube344 NOARGS { int sys_kqueue(void); } 7101.75Schristos345 COMPAT_50 { int netbsd32_kevent(int fd, \ 7111.75Schristos netbsd32_keventp_t changelist, \ 7121.75Schristos netbsd32_size_t nchanges, \ 7131.75Schristos netbsd32_keventp_t eventlist, \ 7141.75Schristos netbsd32_size_t nevents, \ 7151.75Schristos netbsd32_timespec50p_t timeout); } 7161.74Smrg; Scheduling system calls. 7171.74Smrg346 STD { int netbsd32__sched_setparam(pid_t pid, lwpid_t lid, \ 7181.74Smrg int policy, const netbsd32_sched_paramp_t params); } 7191.74Smrg347 STD { int netbsd32__sched_getparam(pid_t pid, lwpid_t lid, \ 7201.75Schristos netbsd32_intp policy, \ 7211.75Schristos netbsd32_sched_paramp_t params); } 7221.75Schristos348 STD { int netbsd32__sched_setaffinity(pid_t pid, \ 7231.75Schristos lwpid_t lid, netbsd32_size_t size, \ 7241.75Schristos const netbsd32_cpusetp_t cpuset); } 7251.75Schristos349 STD { int netbsd32__sched_getaffinity(pid_t pid, \ 7261.75Schristos lwpid_t lid, netbsd32_size_t size, \ 7271.75Schristos netbsd32_cpusetp_t cpuset); } 7281.69Sad350 NOARGS { int sys_sched_yield(void); } 7291.26Scube351 UNIMPL 7301.26Scube352 UNIMPL 7311.26Scube353 UNIMPL 7321.75Schristos354 STD { int netbsd32_fsync_range(int fd, int flags, \ 7331.75Schristos off_t start, off_t length); } 7341.75Schristos355 STD { int netbsd32_uuidgen(netbsd32_uuidp_t store, \ 7351.75Schristos int count); } 7361.26Scube356 STD { int netbsd32_getvfsstat(netbsd32_statvfsp_t buf, \ 7371.26Scube netbsd32_size_t bufsize, int flags); } 7381.64Sdsl357 STD { int netbsd32_statvfs1(netbsd32_charp path, \ 7391.26Scube netbsd32_statvfsp_t buf, int flags); } 7401.75Schristos358 STD { int netbsd32_fstatvfs1(int fd, \ 7411.75Schristos netbsd32_statvfsp_t buf, int flags); } 7421.64Sdsl359 COMPAT_30 { int netbsd32_fhstatvfs1(netbsd32_fhandlep_t fhp, \ 7431.26Scube netbsd32_statvfsp_t buf, int flags); } 7441.64Sdsl360 STD { int netbsd32_extattrctl(netbsd32_charp path, \ 7451.75Schristos int cmd, netbsd32_charp filename, \ 7461.75Schristos int attrnamespace, netbsd32_charp attrname); } 7471.64Sdsl361 STD { int netbsd32_extattr_set_file(netbsd32_charp path, \ 7481.64Sdsl int attrnamespace, netbsd32_charp attrname, \ 7491.29Scube netbsd32_voidp data, netbsd32_size_t nbytes); } 7501.64Sdsl362 STD { int netbsd32_extattr_get_file(netbsd32_charp path, \ 7511.64Sdsl int attrnamespace, netbsd32_charp attrname, \ 7521.64Sdsl netbsd32_voidp data, netbsd32_size_t nbytes); } 7531.75Schristos363 STD { int netbsd32_extattr_delete_file( \ 7541.75Schristos netbsd32_charp path, int attrnamespace, \ 7551.75Schristos netbsd32_charp attrname); } 7561.29Scube364 STD { int netbsd32_extattr_set_fd(int fd, \ 7571.64Sdsl int attrnamespace, netbsd32_charp attrname, \ 7581.64Sdsl netbsd32_voidp data, netbsd32_size_t nbytes); } 7591.29Scube365 STD { int netbsd32_extattr_get_fd(int fd, \ 7601.64Sdsl int attrnamespace, netbsd32_charp attrname, \ 7611.29Scube netbsd32_voidp data, netbsd32_size_t nbytes); } 7621.29Scube366 STD { int netbsd32_extattr_delete_fd(int fd, \ 7631.64Sdsl int attrnamespace, netbsd32_charp attrname); } 7641.64Sdsl367 STD { int netbsd32_extattr_set_link(netbsd32_charp path, \ 7651.64Sdsl int attrnamespace, netbsd32_charp attrname, \ 7661.64Sdsl netbsd32_voidp data, netbsd32_size_t nbytes); } 7671.64Sdsl368 STD { int netbsd32_extattr_get_link(netbsd32_charp path, \ 7681.64Sdsl int attrnamespace, netbsd32_charp attrname, \ 7691.29Scube netbsd32_voidp data, netbsd32_size_t nbytes); } 7701.75Schristos369 STD { int netbsd32_extattr_delete_link( \ 7711.75Schristos netbsd32_charp path, int attrnamespace, \ 7721.75Schristos netbsd32_charp attrname); } 7731.29Scube370 STD { int netbsd32_extattr_list_fd(int fd, \ 7741.29Scube int attrnamespace, netbsd32_voidp data, \ 7751.29Scube netbsd32_size_t nbytes); } 7761.64Sdsl371 STD { int netbsd32_extattr_list_file(netbsd32_charp path, \ 7771.29Scube int attrnamespace, netbsd32_voidp data, \ 7781.29Scube netbsd32_size_t nbytes); } 7791.64Sdsl372 STD { int netbsd32_extattr_list_link(netbsd32_charp path, \ 7801.29Scube int attrnamespace, netbsd32_voidp data, \ 7811.29Scube netbsd32_size_t nbytes); } 7821.75Schristos373 COMPAT_50 { int netbsd32_pselect(int nd, netbsd32_fd_setp_t in, \ 7831.31Scube netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ 7841.75Schristos netbsd32_timespec50p_t ts, \ 7851.75Schristos netbsd32_sigsetp_t mask); } 7861.75Schristos374 COMPAT_50 { int netbsd32_pollts(netbsd32_pollfdp_t fds, \ 7871.75Schristos u_int nfds, netbsd32_timespec50p_t ts, \ 7881.75Schristos netbsd32_sigsetp_t mask); } 7891.64Sdsl375 STD { int netbsd32_setxattr(netbsd32_charp path, \ 7901.64Sdsl netbsd32_charp name, netbsd32_voidp value, \ 7911.35Scube netbsd32_size_t size, int flags); } 7921.64Sdsl376 STD { int netbsd32_lsetxattr(netbsd32_charp path, \ 7931.64Sdsl netbsd32_charp name, netbsd32_voidp value, \ 7941.35Scube netbsd32_size_t size, int flags); } 7951.35Scube377 STD { int netbsd32_fsetxattr(int fd, \ 7961.64Sdsl netbsd32_charp name, netbsd32_voidp value, \ 7971.35Scube netbsd32_size_t size, int flags); } 7981.64Sdsl378 STD { int netbsd32_getxattr(netbsd32_charp path, \ 7991.64Sdsl netbsd32_charp name, netbsd32_voidp value, \ 8001.35Scube netbsd32_size_t size); } 8011.64Sdsl379 STD { int netbsd32_lgetxattr(netbsd32_charp path, \ 8021.64Sdsl netbsd32_charp name, netbsd32_voidp value, \ 8031.35Scube netbsd32_size_t size); } 8041.35Scube380 STD { int netbsd32_fgetxattr(int fd, \ 8051.64Sdsl netbsd32_charp name, netbsd32_voidp value, \ 8061.35Scube netbsd32_size_t size); } 8071.64Sdsl381 STD { int netbsd32_listxattr(netbsd32_charp path, \ 8081.35Scube netbsd32_charp list, netbsd32_size_t size); } 8091.64Sdsl382 STD { int netbsd32_llistxattr(netbsd32_charp path, \ 8101.35Scube netbsd32_charp list, netbsd32_size_t size); } 8111.35Scube383 STD { int netbsd32_flistxattr(int fd, \ 8121.35Scube netbsd32_charp list, netbsd32_size_t size); } 8131.64Sdsl384 STD { int netbsd32_removexattr(netbsd32_charp path, \ 8141.64Sdsl netbsd32_charp name); } 8151.64Sdsl385 STD { int netbsd32_lremovexattr(netbsd32_charp path, \ 8161.64Sdsl netbsd32_charp name); } 8171.35Scube386 STD { int netbsd32_fremovexattr(int fd, \ 8181.64Sdsl netbsd32_charp name); } 8191.75Schristos387 COMPAT_50 { int netbsd32___stat30(netbsd32_charp path, \ 8201.75Schristos netbsd32_stat50p_t ub); } 8211.75Schristos388 COMPAT_50 { int netbsd32___fstat30(int fd, \ 8221.75Schristos netbsd32_stat50p_t sb); } 8231.75Schristos389 COMPAT_50 { int netbsd32___lstat30( \ 8241.75Schristos netbsd32_charp path, netbsd32_stat50p_t ub); } 8251.75Schristos390 STD { int netbsd32___getdents30(int fd, \ 8261.39Schristos netbsd32_charp buf, netbsd32_size_t count); } 8271.68Smartin391 IGNORED old posix fadvise 8281.75Schristos392 COMPAT_30 { int netbsd32___fhstat30( \ 8291.64Sdsl netbsd32_fhandlep_t fhp, \ 8301.75Schristos netbsd32_stat50p_t sb); } 8311.75Schristos393 COMPAT_50 { int netbsd32_ntp_gettime( \ 8321.75Schristos netbsd32_ntptimeval50p_t ntvp); } 8331.75Schristos394 STD { int netbsd32___socket30(int domain, int type, \ 8341.75Schristos int protocol); } 8351.75Schristos395 STD { int netbsd32___getfh30(netbsd32_charp fname, \ 8361.75Schristos netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); } 8371.64Sdsl396 STD { int netbsd32___fhopen40(netbsd32_pointer_t fhp, \ 8381.51Smartin netbsd32_size_t fh_size, int flags); } 8391.51Smartin397 STD { int netbsd32___fhstatvfs140( \ 8401.51Smartin netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ 8411.51Smartin netbsd32_statvfsp_t buf, int flags); } 8421.75Schristos398 COMPAT_50 { int netbsd32___fhstat40( \ 8431.51Smartin netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ 8441.75Schristos netbsd32_stat50p_t sb); } 8451.65Sdsl 8461.65Sdsl; Asynchronous I/O system calls 8471.76Spooka399 UNIMPL sys_aio_cancel 8481.76Spooka400 UNIMPL sys_aio_error 8491.76Spooka401 UNIMPL sys_aio_fsync 8501.76Spooka402 UNIMPL sys_aio_read 8511.76Spooka403 UNIMPL sys_aio_return 8521.76Spooka404 UNIMPL sys_aio_suspend 8531.76Spooka405 UNIMPL sys_aio_write 8541.76Spooka406 UNIMPL sys_lio_listio 8551.65Sdsl 8561.65Sdsl407 UNIMPL 8571.65Sdsl408 UNIMPL 8581.65Sdsl409 UNIMPL 8591.65Sdsl 8601.76Spooka410 UNIMPL sys___mount50 8611.69Sad411 STD { netbsd32_voidp netbsd32_mremap( \ 8621.65Sdsl netbsd32_voidp old_address, \ 8631.65Sdsl netbsd32_size_t old_size, \ 8641.65Sdsl netbsd32_voidp new_address, \ 8651.65Sdsl netbsd32_size_t new_size, int flags); } 8661.67Smartin 8671.67Smartin412 UNIMPL 8681.67Smartin413 UNIMPL 8691.67Smartin414 UNIMPL 8701.67Smartin415 UNIMPL 8711.67Smartin 8721.69Sad416 STD { int netbsd32___posix_fadvise50(int fd, int pad, \ 8731.67Smartin off_t offset, off_t len, int advice); } 8741.75Schristos417 STD { int netbsd32___select50(int nd, \ 8751.75Schristos netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \ 8761.75Schristos netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); } 8771.75Schristos418 STD { int netbsd32___gettimeofday50( \ 8781.75Schristos netbsd32_timevalp_t tp, netbsd32_voidp tzp); } 8791.75Schristos419 STD { int netbsd32___settimeofday50( \ 8801.75Schristos const netbsd32_timevalp_t tv, \ 8811.75Schristos const netbsd32_voidp tzp); } 8821.75Schristos420 STD { int netbsd32___utimes50(const netbsd32_charp path, \ 8831.75Schristos const netbsd32_timevalp_t tptr); } 8841.75Schristos421 STD { int netbsd32___adjtime50( \ 8851.75Schristos const netbsd32_timevalp_t delta, \ 8861.75Schristos netbsd32_timevalp_t olddelta); } 8871.75Schristos#if defined(LFS) || !defined(_KERNEL_OPT) 8881.75Schristos422 STD { int netbsd32___lfs_segwait50( \ 8891.75Schristos netbsd32_fsid_tp_t fsidp, \ 8901.75Schristos netbsd32_timevalp_t tv); } 8911.75Schristos#else 8921.75Schristos422 EXCL __lfs_segwait50 8931.75Schristos#endif 8941.75Schristos423 STD { int netbsd32___futimes50(int fd, \ 8951.75Schristos const netbsd32_timevalp_t tptr); } 8961.75Schristos424 STD { int netbsd32___lutimes50(const netbsd32_charp path, \ 8971.75Schristos const netbsd32_timevalp_t tptr); } 8981.75Schristos425 STD { int netbsd32___setitimer50(int which, \ 8991.75Schristos const netbsd32_itimervalp_t itv, \ 9001.75Schristos netbsd32_itimervalp_t oitv); } 9011.75Schristos426 STD { int netbsd32___getitimer50(int which, \ 9021.75Schristos netbsd32_itimervalp_t itv); } 9031.75Schristos427 STD { int netbsd32___clock_gettime50(clockid_t clock_id, \ 9041.75Schristos netbsd32_timespecp_t tp); } 9051.75Schristos428 STD { int netbsd32___clock_settime50(clockid_t clock_id, \ 9061.75Schristos const netbsd32_timespecp_t tp); } 9071.75Schristos429 STD { int netbsd32___clock_getres50(clockid_t clock_id, \ 9081.75Schristos netbsd32_timespecp_t tp); } 9091.75Schristos430 STD { int netbsd32___nanosleep50( \ 9101.75Schristos const netbsd32_timespecp_t rqtp, \ 9111.75Schristos netbsd32_timespecp_t rmtp); } 9121.75Schristos431 STD { int netbsd32_____sigtimedwait50( \ 9131.75Schristos const netbsd32_sigsetp_t set, \ 9141.75Schristos netbsd32_siginfop_t info, \ 9151.75Schristos netbsd32_timespecp_t timeout); } 9161.76Spooka432 UNIMPL netbsd32___mq_timedsend50 9171.76Spooka433 UNIMPL netbsd32___mq_timedreceive50 9181.75Schristos434 STD { int netbsd32____lwp_park50( \ 9191.75Schristos const netbsd32_timespecp_t ts, \ 9201.75Schristos lwpid_t unpark, const netbsd32_voidp hint, \ 9211.75Schristos const netbsd32_voidp unparkhint); } 9221.75Schristos435 STD { int netbsd32___kevent50(int fd, \ 9231.75Schristos const netbsd32_keventp_t changelist, \ 9241.75Schristos netbsd32_size_t nchanges, \ 9251.75Schristos netbsd32_keventp_t eventlist, \ 9261.75Schristos netbsd32_size_t nevents, \ 9271.75Schristos const netbsd32_timespecp_t timeout); } 9281.75Schristos436 STD { int netbsd32___pselect50(int nd, \ 9291.75Schristos netbsd32_fd_setp_t in, \ 9301.75Schristos netbsd32_fd_setp_t ou, \ 9311.75Schristos netbsd32_fd_setp_t ex, \ 9321.75Schristos const netbsd32_timespecp_t ts, \ 9331.75Schristos const netbsd32_sigsetp_t mask); } 9341.75Schristos437 STD { int netbsd32___pollts50(netbsd32_pollfdp_t fds, \ 9351.75Schristos u_int nfds, const netbsd32_timespecp_t ts, \ 9361.75Schristos const netbsd32_sigsetp_t mask); } 9371.76Spooka438 UNIMPL netbsd32___aio_suspend50 9381.75Schristos439 STD { int netbsd32___stat50(const netbsd32_charp path, \ 9391.75Schristos netbsd32_statp_t ub); } 9401.75Schristos440 STD { int netbsd32___fstat50(int fd, netbsd32_statp_t sb); } 9411.75Schristos441 STD { int netbsd32___lstat50(const netbsd32_charp path, \ 9421.75Schristos netbsd32_statp_t ub); } 9431.75Schristos#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 9441.75Schristos442 STD { int netbsd32_____semctl50(int semid, int semnum, \ 9451.75Schristos int cmd, ... netbsd32_semunp_t arg); } 9461.75Schristos#else 9471.75Schristos442 EXCL ____semctl50 9481.75Schristos#endif 9491.75Schristos#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 9501.75Schristos443 STD { int netbsd32___shmctl50(int shmid, int cmd, \ 9511.75Schristos netbsd32_shmid_dsp_t buf); } 9521.75Schristos#else 9531.75Schristos443 EXCL ____shmctl50 9541.75Schristos#endif 9551.75Schristos#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 9561.75Schristos444 STD { int netbsd32___msgctl50(int msqid, int cmd, \ 9571.75Schristos netbsd32_msqid_dsp_t buf); } 9581.75Schristos#else 9591.75Schristos444 EXCL ____msgctl50 9601.75Schristos#endif 9611.75Schristos445 STD { int netbsd32___getrusage50(int who, \ 9621.75Schristos netbsd32_rusagep_t rusage); } 9631.75Schristos446 STD { int netbsd32___timer_settime50(timer_t timerid, \ 9641.75Schristos int flags, const netbsd32_itimerspecp_t value, \ 9651.75Schristos netbsd32_itimerspecp_t ovalue); } 9661.75Schristos447 STD { int netbsd32___timer_gettime50(timer_t timerid, \ 9671.75Schristos netbsd32_itimerspecp_t value); } 9681.75Schristos#if defined(NTP) || !defined(_KERNEL_OPT) 9691.75Schristos448 STD { int netbsd32___ntp_gettime50( \ 9701.75Schristos netbsd32_ntptimevalp_t ntvp); } 9711.75Schristos#else 9721.75Schristos448 EXCL ___ntp_gettime50 9731.75Schristos#endif 9741.75Schristos449 STD { int netbsd32___wait450(int pid, \ 9751.75Schristos netbsd32_intp status, \ 9761.75Schristos int options, netbsd32_rusagep_t rusage); } 9771.75Schristos450 STD { int netbsd32___mknod50(const netbsd32_charp path, \ 9781.75Schristos mode_t mode, dev_t dev); } 9791.75Schristos451 STD { int netbsd32___fhstat50(const netbsd32_voidp fhp, \ 9801.75Schristos netbsd32_size_t fh_size, netbsd32_statp_t sb); } 981