syscalls.master revision 1.13
1 $NetBSD: syscalls.master,v 1.13 2000/07/09 13:39:32 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#include "opt_ktrace.h" 39#include "opt_nfsserver.h" 40#include "opt_compat_netbsd.h" 41#include "opt_ntp.h" 42#include "opt_sysv.h" 43#include "opt_compat_43.h" 44 45#include "fs_lfs.h" 46#include "fs_nfs.h" 47 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/signal.h> 51#include <sys/mount.h> 52#include <sys/syscallargs.h> 53 54#include <compat/netbsd32/netbsd32.h> 55#include <compat/netbsd32/netbsd32_syscallargs.h> 56 57; Reserved/unimplemented system calls in the range 0-150 inclusive 58; are reserved for use in future Berkeley releases. 59; Additional system calls implemented in vendor and other 60; redistributions should be placed in the reserved range at the end 61; of the current calls. 62 630 INDIR { int sys_syscall(int number, ...); } 641 STD { void netbsd32_exit(int rval); } 652 NOARGS { int sys_fork(void); } 663 STD { netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); } 674 STD { netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); } 685 STD { int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); } 696 STD { int netbsd32_close(int fd); } 707 STD { int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); } 718 COMPAT_43 { int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); } 729 STD { int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); } 7310 STD { int netbsd32_unlink(const netbsd32_charp path); } 7411 OBSOL execv 7512 STD { int netbsd32_chdir(const netbsd32_charp path); } 7613 STD { int netbsd32_fchdir(int fd); } 7714 STD { int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); } 7815 STD { int netbsd32_chmod(const netbsd32_charp path, mode_t mode); } 7916 STD { int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); } 8017 STD { int netbsd32_break(netbsd32_charp nsize); } 8118 STD { int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); } 8219 COMPAT_43 { netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); } 8320 NOARGS { pid_t sys_getpid(void); } 8421 STD { int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); } 8522 STD { int netbsd32_unmount(const netbsd32_charp path, int flags); } 8623 STD { int netbsd32_setuid(uid_t uid); } 8724 NOARGS { uid_t sys_getuid(void); } 8825 NOARGS { uid_t sys_geteuid(void); } 8926 STD { int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); } 9027 STD { netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); } 9128 STD { netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); } 9229 STD { netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); } 9330 STD { int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); } 9431 STD { int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 9532 STD { int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 9633 STD { int netbsd32_access(const netbsd32_charp path, int flags); } 9734 STD { int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); } 9835 STD { int netbsd32_fchflags(int fd, netbsd32_u_long flags); } 9936 NOARGS { void sys_sync(void); } 10037 STD { int netbsd32_kill(int pid, int signum); } 10138 COMPAT_43 { int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); } 10239 NOARGS { pid_t sys_getppid(void); } 10340 COMPAT_43 { int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); } 10441 STD { int netbsd32_dup(int fd); } 10542 NOARGS { int sys_pipe(void); } 10643 NOARGS { gid_t sys_getegid(void); } 10744 STD { int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); } 108#if defined(KTRACE) || !defined(_KERNEL) 10945 STD { int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); } 110#else 11145 EXCL netbsd32_ktrace 112#endif 11346 STD { int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); } 11447 NOARGS { gid_t sys_getgid(void); } 11548 COMPAT_13 { int netbsd32_sigprocmask(int how, \ 116 int mask); } sigprocmask13 11749 STD { int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); } 11850 STD { int netbsd32_setlogin(const netbsd32_charp namebuf); } 11951 STD { int netbsd32_acct(const netbsd32_charp path); } 12052 COMPAT_13 { int sys_sigpending(void); } sigpending13 12153 COMPAT_13 { int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); } 12254 STD { int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); } 123#ifdef COMPAT_12 12455 COMPAT_12 { int netbsd32_reboot(int opt); } 125#else 12655 OBSOL oreboot 127#endif 12856 STD { int netbsd32_revoke(const netbsd32_charp path); } 12957 STD { int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); } 13058 STD { int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); } 13159 STD { int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); } 13260 STD { mode_t netbsd32_umask(mode_t newmask); } 13361 STD { int netbsd32_chroot(const netbsd32_charp path); } 13462 COMPAT_43 { int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); } 13563 COMPAT_43 { int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); } 13664 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 13765 COMPAT_12 { int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); } 138; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 13966 NOARGS { int sys_vfork(void); } 14067 OBSOL vread 14168 OBSOL vwrite 14269 STD { int netbsd32_sbrk(netbsd32_intptr_t incr); } 14370 STD { int netbsd32_sstk(int incr); } 14471 COMPAT_43 { int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); } 14572 STD { int netbsd32_ovadvise(int anom); } vadvise 14673 STD { int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); } 14774 STD { int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); } 14875 STD { int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); } 14976 OBSOL vhangup 15077 OBSOL vlimit 15178 STD { int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); } 15279 STD { int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); } 15380 STD { int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); } 15481 NOARGS { int sys_getpgrp(void); } 15582 STD { int netbsd32_setpgid(int pid, int pgid); } 15683 STD { int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 15784 COMPAT_43 { int sys_wait(void); } owait 15885 COMPAT_12 { int netbsd32_oswapon(const netbsd32_charp name); } 15986 STD { int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); } 16087 COMPAT_43 { int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); } 16188 COMPAT_43 { int netbsd32_osethostname(netbsd32_charp hostname, u_int len); } 16289 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 16390 STD { int netbsd32_dup2(int from, int to); } 16491 UNIMPL getdopt 16592 STD { int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); } 16693 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); } 16794 UNIMPL setdopt 16895 STD { int netbsd32_fsync(int fd); } 16996 STD { int netbsd32_setpriority(int which, int who, int prio); } 17097 STD { int netbsd32_socket(int domain, int type, int protocol); } 17198 STD { int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); } 17299 COMPAT_43 { int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); } 173100 STD { int netbsd32_getpriority(int which, int who); } 174101 COMPAT_43 { int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); } 175102 COMPAT_43 { int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); } 176103 COMPAT_13 { int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13 177104 STD { int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); } 178105 STD { int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); } 179106 STD { int netbsd32_listen(int s, int backlog); } 180107 OBSOL vtimes 181108 COMPAT_43 { int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } 182#ifdef COMPAT_43 183109 COMPAT_43 { int netbsd32_sigblock(int mask); } 184110 COMPAT_43 { int netbsd32_sigsetmask(int mask); } 185#else 186109 OBSOL sigblock 187110 OBSOL sigsetmask 188#endif 189111 COMPAT_13 { int netbsd32_sigsuspend(int mask); } sigsuspend13 190112 COMPAT_43 { int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); } 191113 COMPAT_43 { int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); } 192114 COMPAT_43 { int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); } 193115 OBSOL vtrace 194116 STD { int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); } 195117 STD { int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); } 196118 STD { int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); } 197119 OBSOL resuba 198120 STD { netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); } 199121 STD { netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); } 200122 STD { int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); } 201123 STD { int netbsd32_fchown(int fd, uid_t uid, gid_t gid); } 202124 STD { int netbsd32_fchmod(int fd, mode_t mode); } 203125 COMPAT_43 { int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); } 204126 STD { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 205127 STD { int netbsd32_setregid(gid_t rgid, gid_t egid); } 206128 STD { int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); } 207129 COMPAT_43 { int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); } 208130 COMPAT_43 { int netbsd32_oftruncate(int fd, netbsd32_long length); } 209131 STD { int netbsd32_flock(int fd, int how); } 210132 STD { int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); } 211133 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); } 212134 STD { int netbsd32_shutdown(int s, int how); } 213135 STD { int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); } 214136 STD { int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); } 215137 STD { int netbsd32_rmdir(const netbsd32_charp path); } 216138 STD { int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); } 217139 OBSOL 4.2 sigreturn 218140 STD { int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); } 219141 COMPAT_43 { int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); } 220142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 221#ifdef COMPAT_43 222143 COMPAT_43 { int netbsd32_sethostid(int32_t hostid); } 223#else 224143 OBSOL sethostid 225#endif 226144 COMPAT_43 { int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); } 227145 COMPAT_43 { int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); } 228#ifdef COMPAT_43 229146 COMPAT_43 { int netbsd32_killpg(int pgid, int signum); } 230#else 231146 OBSOL killpg 232#endif 233147 NOARGS { int sys_setsid(void); } 234148 STD { int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); } 235149 COMPAT_43 { int sys_quota(void); } oquota 236150 COMPAT_43 { int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); } 237 238; Syscalls 151-180 inclusive are reserved for vendor-specific 239; system calls. (This includes various calls added for compatibity 240; with other Unix variants.) 241; Some of these calls are now supported by BSD... 242151 UNIMPL 243152 UNIMPL 244153 UNIMPL 245154 UNIMPL 246#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 247155 STD { int netbsd32_nfssvc(int flag, netbsd32_voidp argp); } 248#else 249155 EXCL netbsd32_nfssvc 250#endif 251156 COMPAT_43 { int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); } 252157 STD { int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); } 253158 STD { int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); } 254159 UNIMPL 255160 UNIMPL 256#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 257161 STD { int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); } 258#else 259161 EXCL netbsd32_getfh 260#endif 261162 COMPAT_09 { int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); } 262163 COMPAT_09 { int netbsd32_osetdomainname(netbsd32_charp domainname, int len); } 263164 COMPAT_09 { int netbsd32_uname(netbsd32_outsnamep_t name); } 264165 STD { int netbsd32_sysarch(int op, netbsd32_voidp parms); } 265166 UNIMPL 266167 UNIMPL 267168 UNIMPL 268; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 269#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 270169 STD { int netbsd32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys 271#else 272169 EXCL 1.0 semsys 273#endif 274; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 275#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 276170 STD { int netbsd32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys 277#else 278170 EXCL 1.0 msgsys 279#endif 280; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int) 281#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) 282171 STD { int netbsd32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys 283#else 284171 EXCL 1.0 shmsys 285#endif 286172 UNIMPL 287173 STD { netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 288174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 289175 STD { int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); } 290176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); } 291177 UNIMPL 292178 UNIMPL 293179 UNIMPL 294180 UNIMPL 295 296; Syscalls 180-199 are used by/reserved for BSD 297181 STD { int netbsd32_setgid(gid_t gid); } 298182 STD { int netbsd32_setegid(gid_t egid); } 299183 STD { int netbsd32_seteuid(uid_t euid); } 300#if defined(LFS) || !defined(_KERNEL) 301184 STD { int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 302185 STD { int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 303186 STD { int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); } 304187 STD { int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); } 305#else 306184 EXCL netbsd32_sys_lfs_bmapv 307185 EXCL netbsd32_sys_lfs_markv 308186 EXCL netbsd32_sys_lfs_segclean 309187 EXCL netbsd32_sys_lfs_segwait 310#endif 311188 COMPAT_12 { int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 312189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); } 313190 COMPAT_12 { int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 314191 STD { netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); } 315192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); } 316193 UNIMPL 317194 STD { int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); } 318195 STD { int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); } 319196 COMPAT_12 { int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); } 320197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); } 321198 INDIR { quad_t sys___syscall(quad_t num, ...); } 322199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); } 323200 STD { int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); } 324201 STD { int netbsd32_ftruncate(int fd, int pad, off_t length); } 325202 STD { int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); } 326203 STD { int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); } 327204 STD { int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); } 328205 STD { int netbsd32_undelete(const netbsd32_charp path); } 329206 STD { int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); } 330207 STD { int netbsd32_getpgid(pid_t pid); } 331208 STD { int netbsd32_reboot(int opt, netbsd32_charp bootstr); } 332209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); } 333; 334; Syscalls 210-219 are reserved for dynamically loaded syscalls 335; 336#if defined(LKM) || !defined(_KERNEL) 337210 NODEF { int sys_lkmnosys(void); } 338211 NODEF { int sys_lkmnosys(void); } 339212 NODEF { int sys_lkmnosys(void); } 340213 NODEF { int sys_lkmnosys(void); } 341214 NODEF { int sys_lkmnosys(void); } 342215 NODEF { int sys_lkmnosys(void); } 343216 NODEF { int sys_lkmnosys(void); } 344217 NODEF { int sys_lkmnosys(void); } 345218 NODEF { int sys_lkmnosys(void); } 346219 NODEF { int sys_lkmnosys(void); } 347#else /* !LKM || !_KERNEL */ 348210 EXCL lkmnosys 349211 EXCL lkmnosys 350212 EXCL lkmnosys 351213 EXCL lkmnosys 352214 EXCL lkmnosys 353215 EXCL lkmnosys 354216 EXCL lkmnosys 355217 EXCL lkmnosys 356218 EXCL lkmnosys 357219 EXCL lkmnosys 358#endif /* !LKM || !_KERNEL */ 359; System calls 220-300 are reserved for use by NetBSD 360#if defined(SYSVSEM) || !defined(_KERNEL) 361220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); } 362221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); } 363222 STD { int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); } 364223 STD { int netbsd32_semconfig(int flag); } 365#else 366220 EXCL compat_14_netbsd32_semctl 367221 EXCL netbsd32_semget 368222 EXCL netbsd32_semop 369223 EXCL netbsd32_semconfig 370#endif 371#if defined(SYSVMSG) || !defined(_KERNEL) 372224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); } 373225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); } 374226 STD { int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); } 375227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); } 376#else 377224 EXCL compat_14_netbsd32_msgctl 378225 EXCL netbsd32_msgget 379226 EXCL netbsd32_msgsnd 380227 EXCL netbsd32_msgrcv 381#endif 382#if defined(SYSVSHM) || !defined(_KERNEL) 383228 STD { netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); } 384229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); } 385230 STD { int netbsd32_shmdt(const netbsd32_voidp shmaddr); } 386231 STD { int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); } 387#else 388228 EXCL netbsd32_shmat 389229 EXCL compat_14_netbsd32_shmctl 390230 EXCL netbsd32_shmdt 391231 EXCL netbsd32_shmget 392#endif 393232 STD { int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 394233 STD { int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); } 395234 STD { int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 396235 UNIMPL timer_create 397236 UNIMPL timer_delete 398237 UNIMPL timer_settime 399238 UNIMPL timer_gettime 400239 UNIMPL timer_getoverrun 401; 402; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 403; 404240 STD { int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); } 405241 STD { int netbsd32_fdatasync(int fd); } 406242 UNIMPL 407243 UNIMPL 408244 UNIMPL 409245 UNIMPL 410246 UNIMPL 411247 UNIMPL 412248 UNIMPL 413249 UNIMPL 414250 UNIMPL 415251 UNIMPL 416252 UNIMPL 417253 UNIMPL 418254 UNIMPL 419255 UNIMPL 420256 UNIMPL 421257 UNIMPL 422258 UNIMPL 423259 UNIMPL 424260 UNIMPL 425261 UNIMPL 426262 UNIMPL 427263 UNIMPL 428264 UNIMPL 429265 UNIMPL 430266 UNIMPL 431267 UNIMPL 432268 UNIMPL 433269 UNIMPL 434270 STD { int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); } 435271 STD { int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); } 436272 STD { int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); } 437273 STD { int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); } 438274 STD { int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); } 439275 STD { int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 440276 STD { int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); } 441277 STD { int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); } 442278 STD { int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); } 443279 STD { int netbsd32___fstat13(int fd, netbsd32_statp_t sb); } 444280 STD { int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); } 445281 STD { int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); } 446282 NOARGS { int sys___vfork14(void); } 447283 STD { int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); } 448284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } 449285 STD { int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 450286 STD { pid_t netbsd32_getsid(pid_t pid); } 451287 UNIMPL 452#if defined(KTRACE) || !defined(_KERNEL) 453288 STD { int netbsd32_fktrace(const int fd, int ops, int facs, int pid); } 454#else 455288 EXCL netbsd32_fktrace 456#endif 457289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 458290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 459291 STD { int netbsd32___sigaction14(int signum, \ 460 const netbsd32_sigactionp_t nsa, \ 461 netbsd32_sigactionp_t osa); } 462292 STD { int netbsd32___sigpending14(netbsd32_sigsetp_t set); } 463293 STD { int netbsd32___sigprocmask14(int how, \ 464 const netbsd32_sigsetp_t set, \ 465 netbsd32_sigsetp_t oset); } 466294 STD { int netbsd32___sigsuspend14(const netbsd32_sigsetp_t set); } 467295 STD { int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); } 468296 STD { int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); } 469297 STD { int netbsd32_fchroot(int fd); } 470298 STD { int netbsd32_fhopen(const netbsd32_fhandlep_t fhp, \ 471 int flags); } 472299 STD { int netbsd32_fhstat(const netbsd32_fhandlep_t fhp, \ 473 netbsd32_statp_t sb); } 474300 STD { int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \ 475 netbsd32_statp_t buf); } 476#if defined(SYSVSEM) || !defined(_KERNEL) 477301 STD { int netbsd32___semctl14(int semid, int semnum, int cmd, \ 478 union netbsd32_semun3* arg); } 479#else 480301 EXCL __semctl14 481#endif 482#if defined(SYSVMSG) || !defined(_KERNEL) 483302 STD { int netbsd32___msgctl13(int msqid, int cmd, \ 484 netbsd32_msqid_dsp_t buf); } 485#else 486302 EXCL __msgctl13 487#endif 488#if defined(SYSVSHM) || !defined(_KERNEL) 489303 STD { int netbsd32___shmctl13(int shmid, int cmd, \ 490 netbsd32_shmid_dsp_t buf); } 491#else 492303 EXCL __shmctl13 493#endif 494