1 $NetBSD: syscalls.master,v 1.20 2001/05/30 11:37:29 mrg Exp $ 2 3; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp 4; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 5 6; NetBSD system call name/number "master" file. 7; (See syscalls.conf to see what it is processed into.) 8; 9; Fields: number type [type-dependent ...] 10; number system call number, must be in order 11; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 12; the compatibility options defined in syscalls.conf. 13; 14; types: 15; STD always included 16; OBSOL obsolete, not included in system 17; UNIMPL unimplemented, not included in system 18; EXCL implemented, but not included in system 19; NODEF included, but don't define the syscall number 20; NOARGS included, but don't define the syscall args structure 21; INDIR included, but don't define the syscall args structure, 22; and allow it to be "really" varargs. 23; 24; The compat options are defined in the syscalls.conf file, and the 25; compat option name is prefixed to the syscall name. Other than 26; that, they're like NODEF (for 'compat' options), or STD (for 27; 'libcompat' options). 28; 29; The type-dependent arguments are as follows: 30; For STD, NODEF, NOARGS, and compat syscalls: 31; { pseudo-proto } [alias] 32; For other syscalls: 33; [comment] 34; 35; #ifdef's, etc. may be included, and are copied to the output files. 36; #include's are copied to the syscall names and switch definition files only. 37 38#if defined(_KERNEL_OPT) 39#include "opt_ktrace.h" 40#include "opt_nfsserver.h" 41#include "opt_compat_netbsd.h" 42#include "opt_ntp.h" 43#include "opt_sysv.h" 44#include "opt_compat_43.h" 45 46#include "fs_lfs.h" 47#include "fs_nfs.h" 48#endif 49 50#include <sys/param.h> 51#include <sys/systm.h> 52#include <sys/signal.h> 53#include <sys/mount.h> 54#include <sys/syscallargs.h> 55 56#include <compat/netbsd32/netbsd32.h> 57#include <compat/netbsd32/netbsd32_syscallargs.h> 58 59%% 60 61; Reserved/unimplemented system calls in the range 0-150 inclusive 62; are reserved for use in future Berkeley releases. 63; Additional system calls implemented in vendor and other 64; redistributions should be placed in the reserved range at the end 65; of the current calls. 66 670 INDIR { int sys_syscall(int number, ...); } 681 STD { void netbsd32_exit(int rval); } 692 NOARGS { int sys_fork(void); } 703 STD { netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); } 714 STD { netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); } 725 STD { int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); } 736 STD { int netbsd32_close(int fd); } 747 STD { int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); } 758 COMPAT_43 { int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); } 769 STD { int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); } 7710 STD { int netbsd32_unlink(const netbsd32_charp path); } 7811 OBSOL execv 7912 STD { int netbsd32_chdir(const netbsd32_charp path); } 8013 STD { int netbsd32_fchdir(int fd); } 8114 STD { int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); } 8215 STD { int netbsd32_chmod(const netbsd32_charp path, mode_t mode); } 8316 STD { int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); } 8417 STD { int netbsd32_break(netbsd32_charp nsize); } 8518 STD { int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); } 8619 COMPAT_43 { netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); } 8720 NOARGS MPSAFE { pid_t sys_getpid(void); } 8821 STD { int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); } 8922 STD { int netbsd32_unmount(const netbsd32_charp path, int flags); } 9023 STD { int netbsd32_setuid(uid_t uid); } 9124 NOARGS { uid_t sys_getuid(void); } 9225 NOARGS { uid_t sys_geteuid(void); } 9326 STD { int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); } 9427 STD { netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); } 9528 STD { netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); } 9629 STD { netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); } 9730 STD { int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); } 9831 STD { int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 9932 STD { int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 10033 STD { int netbsd32_access(const netbsd32_charp path, int flags); } 10134 STD { int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); } 10235 STD { int netbsd32_fchflags(int fd, netbsd32_u_long flags); } 10336 NOARGS { void sys_sync(void); } 10437 STD { int netbsd32_kill(int pid, int signum); } 10538 COMPAT_43 { int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); } 10639 NOARGS { pid_t sys_getppid(void); } 10740 COMPAT_43 { int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); } 10841 STD { int netbsd32_dup(int fd); } 10942 NOARGS { int sys_pipe(void); } 11043 NOARGS { gid_t sys_getegid(void); } 11144 STD { int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); } 112#if defined(KTRACE) || !defined(_KERNEL) 11345 STD { int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); } 114#else 11545 EXCL netbsd32_ktrace 116#endif 11746 STD { int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); } 11847 NOARGS { gid_t sys_getgid(void); } 11948 COMPAT_13 { int netbsd32_sigprocmask(int how, \ 120 int mask); } sigprocmask13 12149 STD { int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); } 12250 STD { int netbsd32_setlogin(const netbsd32_charp namebuf); } 12351 STD { int netbsd32_acct(const netbsd32_charp path); } 12452 COMPAT_13 { int sys_sigpending(void); } sigpending13 12553 COMPAT_13 { int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); } 12654 STD { int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); } 127#ifdef COMPAT_12 12855 COMPAT_12 { int netbsd32_reboot(int opt); } 129#else 13055 OBSOL oreboot 131#endif 13256 STD { int netbsd32_revoke(const netbsd32_charp path); } 13357 STD { int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); } 13458 STD { int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); } 13559 STD { int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); } 13660 STD { mode_t netbsd32_umask(mode_t newmask); } 13761 STD { int netbsd32_chroot(const netbsd32_charp path); } 13862 COMPAT_43 { int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); } 13963 COMPAT_43 { int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); } 14064 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 14165 COMPAT_12 { int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); } 142; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 14366 NOARGS { int sys_vfork(void); } 14467 OBSOL vread 14568 OBSOL vwrite 14669 STD { int netbsd32_sbrk(netbsd32_intptr_t incr); } 14770 STD { int netbsd32_sstk(int incr); } 14871 COMPAT_43 { int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); } 14972 STD { int netbsd32_ovadvise(int anom); } vadvise 15073 STD { int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); } 15174 STD { int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); } 15275 STD { int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); } 15376 OBSOL vhangup 15477 OBSOL vlimit 15578 STD { int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); } 15679 STD { int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); } 15780 STD { int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); } 15881 NOARGS { int sys_getpgrp(void); } 15982 STD { int netbsd32_setpgid(int pid, int pgid); } 16083 STD { int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 16184 COMPAT_43 { int sys_wait(void); } owait 16285 COMPAT_12 { int netbsd32_oswapon(const netbsd32_charp name); } 16386 STD { int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); } 16487 COMPAT_43 { int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); } 16588 COMPAT_43 { int netbsd32_osethostname(netbsd32_charp hostname, u_int len); } 16689 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 16790 STD { int netbsd32_dup2(int from, int to); } 16891 UNIMPL getdopt 16992 STD { int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); } 17093 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); } 17194 UNIMPL setdopt 17295 STD { int netbsd32_fsync(int fd); } 17396 STD { int netbsd32_setpriority(int which, int who, int prio); } 17497 STD { int netbsd32_socket(int domain, int type, int protocol); } 17598 STD { int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); } 17699 COMPAT_43 { int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); } 177100 STD { int netbsd32_getpriority(int which, int who); } 178101 COMPAT_43 { int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); } 179102 COMPAT_43 { int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); } 180103 COMPAT_13 { int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13 181104 STD { int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); } 182105 STD { int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); } 183106 STD { int netbsd32_listen(int s, int backlog); } 184107 OBSOL vtimes 185108 COMPAT_43 { int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } 186#ifdef COMPAT_43 187109 COMPAT_43 { int netbsd32_sigblock(int mask); } 188110 COMPAT_43 { int netbsd32_sigsetmask(int mask); } 189#else 190109 OBSOL sigblock 191110 OBSOL sigsetmask 192#endif 193111 COMPAT_13 { int netbsd32_sigsuspend(int mask); } sigsuspend13 194112 COMPAT_43 { int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); } 195113 COMPAT_43 { int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); } 196114 COMPAT_43 { int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); } 197115 OBSOL vtrace 198116 STD { int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); } 199117 STD { int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); } 200118 STD { int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); } 201119 OBSOL resuba 202120 STD { netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); } 203121 STD { netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); } 204122 STD { int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); } 205123 STD { int netbsd32_fchown(int fd, uid_t uid, gid_t gid); } 206124 STD { int netbsd32_fchmod(int fd, mode_t mode); } 207125 COMPAT_43 { int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); } 208126 STD { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 209127 STD { int netbsd32_setregid(gid_t rgid, gid_t egid); } 210128 STD { int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); } 211129 COMPAT_43 { int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); } 212130 COMPAT_43 { int netbsd32_oftruncate(int fd, netbsd32_long length); } 213131 STD { int netbsd32_flock(int fd, int how); } 214132 STD { int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); } 215133 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); } 216134 STD { int netbsd32_shutdown(int s, int how); } 217135 STD { int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); } 218136 STD { int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); } 219137 STD { int netbsd32_rmdir(const netbsd32_charp path); } 220138 STD { int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); } 221139 OBSOL 4.2 sigreturn 222140 STD { int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); } 223141 COMPAT_43 { int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); } 224142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 225#ifdef COMPAT_43 226143 COMPAT_43 { int netbsd32_sethostid(int32_t hostid); } 227#else 228143 OBSOL sethostid 229#endif 230144 COMPAT_43 { int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); } 231145 COMPAT_43 { int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); } 232#ifdef COMPAT_43 233146 COMPAT_43 { int netbsd32_killpg(int pgid, int signum); } 234#else 235146 OBSOL killpg 236#endif 237147 NOARGS { int sys_setsid(void); } 238148 STD { int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); } 239149 COMPAT_43 { int sys_quota(void); } oquota 240150 COMPAT_43 { int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); } 241 242; Syscalls 151-180 inclusive are reserved for vendor-specific 243; system calls. (This includes various calls added for compatibity 244; with other Unix variants.) 245; Some of these calls are now supported by BSD... 246151 UNIMPL 247152 UNIMPL 248153 UNIMPL 249154 UNIMPL 250#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 251155 STD { int netbsd32_nfssvc(int flag, netbsd32_voidp argp); } 252#else 253155 EXCL netbsd32_nfssvc 254#endif 255156 COMPAT_43 { int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); } 256157 STD { int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); } 257158 STD { int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); } 258159 UNIMPL 259160 UNIMPL 260#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 261161 STD { int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); } 262#else 263161 EXCL netbsd32_getfh 264#endif 265162 COMPAT_09 { int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); } 266163 COMPAT_09 { int netbsd32_osetdomainname(netbsd32_charp domainname, int len); } 267164 COMPAT_09 { int netbsd32_uname(netbsd32_outsnamep_t name); } 268165 STD { int netbsd32_sysarch(int op, netbsd32_voidp parms); } 269166 UNIMPL 270167 UNIMPL 271168 UNIMPL 272; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 273#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 274169 STD { int netbsd32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys 275#else 276169 EXCL 1.0 semsys 277#endif 278; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 279#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 280170 STD { int netbsd32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys 281#else 282170 EXCL 1.0 msgsys 283#endif 284; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 285#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 286171 STD { int netbsd32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys 287#else 288171 EXCL 1.0 shmsys 289#endif 290172 UNIMPL 291173 STD { netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 292174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 293; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded. 294175 STD { int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); } 295176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); } 296177 UNIMPL 297178 UNIMPL 298179 UNIMPL 299180 UNIMPL 300 301; Syscalls 180-199 are used by/reserved for BSD 302181 STD { int netbsd32_setgid(gid_t gid); } 303182 STD { int netbsd32_setegid(gid_t egid); } 304183 STD { int netbsd32_seteuid(uid_t euid); } 305#if defined(LFS) || !defined(_KERNEL) 306184 STD { int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 307185 STD { int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 308186 STD { int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); } 309187 STD { int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); } 310#else 311184 EXCL netbsd32_sys_lfs_bmapv 312185 EXCL netbsd32_sys_lfs_markv 313186 EXCL netbsd32_sys_lfs_segclean 314187 EXCL netbsd32_sys_lfs_segwait 315#endif 316188 COMPAT_12 { int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 317189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); } 318190 COMPAT_12 { int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 319191 STD { netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); } 320192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); } 321193 UNIMPL 322194 STD { int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); } 323195 STD { int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); } 324196 COMPAT_12 { int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); } 325197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); } 326198 INDIR { quad_t sys___syscall(quad_t num, ...); } 327199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); } 328200 STD { int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); } 329201 STD { int netbsd32_ftruncate(int fd, int pad, off_t length); } 330202 STD { int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); } 331203 STD { int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); } 332204 STD { int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); } 333205 STD { int netbsd32_undelete(const netbsd32_charp path); } 334206 STD { int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); } 335207 STD { int netbsd32_getpgid(pid_t pid); } 336208 STD { int netbsd32_reboot(int opt, netbsd32_charp bootstr); } 337209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); } 338; 339; Syscalls 210-219 are reserved for dynamically loaded syscalls 340; 341#if defined(LKM) || !defined(_KERNEL) 342210 NODEF { int sys_lkmnosys(void); } 343211 NODEF { int sys_lkmnosys(void); } 344212 NODEF { int sys_lkmnosys(void); } 345213 NODEF { int sys_lkmnosys(void); } 346214 NODEF { int sys_lkmnosys(void); } 347215 NODEF { int sys_lkmnosys(void); } 348216 NODEF { int sys_lkmnosys(void); } 349217 NODEF { int sys_lkmnosys(void); } 350218 NODEF { int sys_lkmnosys(void); } 351219 NODEF { int sys_lkmnosys(void); } 352#else /* !LKM || !_KERNEL */ 353210 EXCL lkmnosys 354211 EXCL lkmnosys 355212 EXCL lkmnosys 356213 EXCL lkmnosys 357214 EXCL lkmnosys 358215 EXCL lkmnosys 359216 EXCL lkmnosys 360217 EXCL lkmnosys 361218 EXCL lkmnosys 362219 EXCL lkmnosys 363#endif /* !LKM || !_KERNEL */ 364; System calls 220-300 are reserved for use by NetBSD 365#if defined(SYSVSEM) || !defined(_KERNEL) 366220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); } 367221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); } 368222 STD { int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); } 369223 STD { int netbsd32_semconfig(int flag); } 370#else 371220 EXCL compat_14_netbsd32_semctl 372221 EXCL netbsd32_semget 373222 EXCL netbsd32_semop 374223 EXCL netbsd32_semconfig 375#endif 376#if defined(SYSVMSG) || !defined(_KERNEL) 377224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); } 378225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); } 379226 STD { int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); } 380227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); } 381#else 382224 EXCL compat_14_netbsd32_msgctl 383225 EXCL netbsd32_msgget 384226 EXCL netbsd32_msgsnd 385227 EXCL netbsd32_msgrcv 386#endif 387#if defined(SYSVSHM) || !defined(_KERNEL) 388228 STD { netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); } 389229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); } 390230 STD { int netbsd32_shmdt(const netbsd32_voidp shmaddr); } 391231 STD { int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); } 392#else 393228 EXCL netbsd32_shmat 394229 EXCL compat_14_netbsd32_shmctl 395230 EXCL netbsd32_shmdt 396231 EXCL netbsd32_shmget 397#endif 398232 STD { int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 399233 STD { int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); } 400234 STD { int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 401235 UNIMPL timer_create 402236 UNIMPL timer_delete 403237 UNIMPL timer_settime 404238 UNIMPL timer_gettime 405239 UNIMPL timer_getoverrun 406; 407; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 408; 409240 STD { int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); } 410241 STD { int netbsd32_fdatasync(int fd); } 411242 UNIMPL 412243 UNIMPL 413244 UNIMPL 414245 UNIMPL 415246 UNIMPL 416247 UNIMPL 417248 UNIMPL 418249 UNIMPL 419250 UNIMPL 420251 UNIMPL 421252 UNIMPL 422253 UNIMPL 423254 UNIMPL 424255 UNIMPL 425256 UNIMPL 426257 UNIMPL 427258 UNIMPL 428259 UNIMPL 429260 UNIMPL 430261 UNIMPL 431262 UNIMPL 432263 UNIMPL 433264 UNIMPL 434265 UNIMPL 435266 UNIMPL 436267 UNIMPL 437268 UNIMPL 438269 UNIMPL 439270 STD { int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); } 440271 STD { int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); } 441272 STD { int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); } 442273 STD { int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); } 443274 STD { int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); } 444275 STD { int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 445276 STD { int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); } 446277 STD { int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); } 447278 STD { int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); } 448279 STD { int netbsd32___fstat13(int fd, netbsd32_statp_t sb); } 449280 STD { int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); } 450281 STD { int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); } 451282 NOARGS { int sys___vfork14(void); } 452283 STD { int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); } 453284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } 454285 STD { int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 455286 STD { pid_t netbsd32_getsid(pid_t pid); } 456287 UNIMPL 457#if defined(KTRACE) || !defined(_KERNEL) 458288 STD { int netbsd32_fktrace(const int fd, int ops, int facs, int pid); } 459#else 460288 EXCL netbsd32_fktrace 461#endif 462289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 463290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 464291 STD { int netbsd32___sigaction14(int signum, \ 465 const netbsd32_sigactionp_t nsa, \ 466 netbsd32_sigactionp_t osa); } 467292 STD { int netbsd32___sigpending14(netbsd32_sigsetp_t set); } 468293 STD { int netbsd32___sigprocmask14(int how, \ 469 const netbsd32_sigsetp_t set, \ 470 netbsd32_sigsetp_t oset); } 471294 STD { int netbsd32___sigsuspend14(const netbsd32_sigsetp_t set); } 472295 STD { int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); } 473296 STD { int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); } 474297 STD { int netbsd32_fchroot(int fd); } 475298 STD { int netbsd32_fhopen(const netbsd32_fhandlep_t fhp, \ 476 int flags); } 477299 STD { int netbsd32_fhstat(const netbsd32_fhandlep_t fhp, \ 478 netbsd32_statp_t sb); } 479300 STD { int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \ 480 netbsd32_statp_t buf); } 481#if defined(SYSVSEM) || !defined(_KERNEL) 482301 STD { int netbsd32___semctl14(int semid, int semnum, int cmd, \ 483 union netbsd32_semun3* arg); } 484#else 485301 EXCL __semctl14 486#endif 487#if defined(SYSVMSG) || !defined(_KERNEL) 488302 STD { int netbsd32___msgctl13(int msqid, int cmd, \ 489 netbsd32_msqid_dsp_t buf); } 490#else 491302 EXCL __msgctl13 492#endif 493#if defined(SYSVSHM) || !defined(_KERNEL) 494303 STD { int netbsd32___shmctl13(int shmid, int cmd, \ 495 netbsd32_shmid_dsp_t buf); } 496#else 497303 EXCL __shmctl13 498#endif 499304 STD { int netbsd32_lchflags(const netbsd32_charp path, netbsd32_u_long flags); } 500305 STD { int sys_issetugid(void); } 501306 STD { int netbsd32_utrace(const netbsd32_charp label, netbsd32_voidp addr, \ 502 netbsd32_size_t len); } 503; 504; Syscalls 307 and 308 are reserved for getcontext and setcontext 505; 506307 UNIMPL 507308 UNIMPL 508; 509; Syscalls 309-339 are reserved for LWP and scheduler activation syscalls. 510; 511309 UNIMPL 512310 UNIMPL 513311 UNIMPL 514312 UNIMPL 515313 UNIMPL 516314 UNIMPL 517315 UNIMPL 518316 UNIMPL 519317 UNIMPL 520318 UNIMPL 521319 UNIMPL 522320 UNIMPL 523321 UNIMPL 524322 UNIMPL 525323 UNIMPL 526324 UNIMPL 527325 UNIMPL 528326 UNIMPL 529327 UNIMPL 530328 UNIMPL 531329 UNIMPL 532330 UNIMPL 533331 UNIMPL 534332 UNIMPL 535333 UNIMPL 536334 UNIMPL 537335 UNIMPL 538336 UNIMPL 539337 UNIMPL 540338 UNIMPL 541339 UNIMPL 542