1 $NetBSD: syscalls.master,v 1.21 2002/04/29 09:53:41 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); } 12755 COMPAT_12 { int netbsd32_reboot(int opt); } 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#if defined(SYSVSEM) || !defined(_KERNEL) 269169 COMPAT_10 { int netbsd32_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys 270#else 271169 EXCL netbsd32_sys_semsys 272#endif 273#if defined(SYSVMSG) || !defined(_KERNEL) 274170 COMPAT_10 { int netbsd32_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys 275#else 276170 EXCL netbsd32_sys_msgsys 277#endif 278#if defined(SYSVSHM) || !defined(_KERNEL) 279171 COMPAT_10 { int netbsd32_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys 280#else 281171 EXCL netbsd32_sys_shmsys 282#endif 283172 UNIMPL 284173 STD { netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 285174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); } 286; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded. 287175 STD { int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); } 288176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); } 289177 UNIMPL 290178 UNIMPL 291179 UNIMPL 292180 UNIMPL 293 294; Syscalls 180-199 are used by/reserved for BSD 295181 STD { int netbsd32_setgid(gid_t gid); } 296182 STD { int netbsd32_setegid(gid_t egid); } 297183 STD { int netbsd32_seteuid(uid_t euid); } 298#if defined(LFS) || !defined(_KERNEL) 299184 STD { int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 300185 STD { int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); } 301186 STD { int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); } 302187 STD { int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); } 303#else 304184 EXCL netbsd32_sys_lfs_bmapv 305185 EXCL netbsd32_sys_lfs_markv 306186 EXCL netbsd32_sys_lfs_segclean 307187 EXCL netbsd32_sys_lfs_segwait 308#endif 309188 COMPAT_12 { int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 310189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); } 311190 COMPAT_12 { int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); } 312191 STD { netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); } 313192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); } 314193 UNIMPL 315194 STD { int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); } 316195 STD { int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); } 317196 COMPAT_12 { int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); } 318197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); } 319198 INDIR { quad_t sys___syscall(quad_t num, ...); } 320199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); } 321200 STD { int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); } 322201 STD { int netbsd32_ftruncate(int fd, int pad, off_t length); } 323202 STD { int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); } 324203 STD { int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); } 325204 STD { int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); } 326205 STD { int netbsd32_undelete(const netbsd32_charp path); } 327206 STD { int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); } 328207 STD { int netbsd32_getpgid(pid_t pid); } 329208 STD { int netbsd32_reboot(int opt, netbsd32_charp bootstr); } 330209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); } 331; 332; Syscalls 210-219 are reserved for dynamically loaded syscalls 333; 334#if defined(LKM) || !defined(_KERNEL) 335210 NODEF { int sys_lkmnosys(void); } 336211 NODEF { int sys_lkmnosys(void); } 337212 NODEF { int sys_lkmnosys(void); } 338213 NODEF { int sys_lkmnosys(void); } 339214 NODEF { int sys_lkmnosys(void); } 340215 NODEF { int sys_lkmnosys(void); } 341216 NODEF { int sys_lkmnosys(void); } 342217 NODEF { int sys_lkmnosys(void); } 343218 NODEF { int sys_lkmnosys(void); } 344219 NODEF { int sys_lkmnosys(void); } 345#else /* !LKM || !_KERNEL */ 346210 EXCL lkmnosys 347211 EXCL lkmnosys 348212 EXCL lkmnosys 349213 EXCL lkmnosys 350214 EXCL lkmnosys 351215 EXCL lkmnosys 352216 EXCL lkmnosys 353217 EXCL lkmnosys 354218 EXCL lkmnosys 355219 EXCL lkmnosys 356#endif /* !LKM || !_KERNEL */ 357; System calls 220-300 are reserved for use by NetBSD 358#if defined(SYSVSEM) || !defined(_KERNEL) 359220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); } 360221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); } 361222 STD { int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); } 362223 STD { int netbsd32_semconfig(int flag); } 363#else 364220 EXCL compat_14_netbsd32_semctl 365221 EXCL netbsd32_semget 366222 EXCL netbsd32_semop 367223 EXCL netbsd32_semconfig 368#endif 369#if defined(SYSVMSG) || !defined(_KERNEL) 370224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); } 371225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); } 372226 STD { int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); } 373227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); } 374#else 375224 EXCL compat_14_netbsd32_msgctl 376225 EXCL netbsd32_msgget 377226 EXCL netbsd32_msgsnd 378227 EXCL netbsd32_msgrcv 379#endif 380#if defined(SYSVSHM) || !defined(_KERNEL) 381228 STD { netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); } 382229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); } 383230 STD { int netbsd32_shmdt(const netbsd32_voidp shmaddr); } 384231 STD { int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); } 385#else 386228 EXCL netbsd32_shmat 387229 EXCL compat_14_netbsd32_shmctl 388230 EXCL netbsd32_shmdt 389231 EXCL netbsd32_shmget 390#endif 391232 STD { int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 392233 STD { int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); } 393234 STD { int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); } 394235 UNIMPL timer_create 395236 UNIMPL timer_delete 396237 UNIMPL timer_settime 397238 UNIMPL timer_gettime 398239 UNIMPL timer_getoverrun 399; 400; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 401; 402240 STD { int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); } 403241 STD { int netbsd32_fdatasync(int fd); } 404242 UNIMPL 405243 UNIMPL 406244 UNIMPL 407245 UNIMPL 408246 UNIMPL 409247 UNIMPL 410248 UNIMPL 411249 UNIMPL 412250 UNIMPL 413251 UNIMPL 414252 UNIMPL 415253 UNIMPL 416254 UNIMPL 417255 UNIMPL 418256 UNIMPL 419257 UNIMPL 420258 UNIMPL 421259 UNIMPL 422260 UNIMPL 423261 UNIMPL 424262 UNIMPL 425263 UNIMPL 426264 UNIMPL 427265 UNIMPL 428266 UNIMPL 429267 UNIMPL 430268 UNIMPL 431269 UNIMPL 432270 STD { int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); } 433271 STD { int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); } 434272 STD { int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); } 435273 STD { int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); } 436274 STD { int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); } 437275 STD { int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 438276 STD { int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); } 439277 STD { int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); } 440278 STD { int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); } 441279 STD { int netbsd32___fstat13(int fd, netbsd32_statp_t sb); } 442280 STD { int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); } 443281 STD { int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); } 444282 NOARGS { int sys___vfork14(void); } 445283 STD { int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); } 446284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } 447285 STD { int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); } 448286 STD { pid_t netbsd32_getsid(pid_t pid); } 449287 UNIMPL 450#if defined(KTRACE) || !defined(_KERNEL) 451288 STD { int netbsd32_fktrace(const int fd, int ops, int facs, int pid); } 452#else 453288 EXCL netbsd32_fktrace 454#endif 455289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 456290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 457291 STD { int netbsd32___sigaction14(int signum, \ 458 const netbsd32_sigactionp_t nsa, \ 459 netbsd32_sigactionp_t osa); } 460292 STD { int netbsd32___sigpending14(netbsd32_sigsetp_t set); } 461293 STD { int netbsd32___sigprocmask14(int how, \ 462 const netbsd32_sigsetp_t set, \ 463 netbsd32_sigsetp_t oset); } 464294 STD { int netbsd32___sigsuspend14(const netbsd32_sigsetp_t set); } 465295 STD { int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); } 466296 STD { int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); } 467297 STD { int netbsd32_fchroot(int fd); } 468298 STD { int netbsd32_fhopen(const netbsd32_fhandlep_t fhp, \ 469 int flags); } 470299 STD { int netbsd32_fhstat(const netbsd32_fhandlep_t fhp, \ 471 netbsd32_statp_t sb); } 472300 STD { int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \ 473 netbsd32_statp_t buf); } 474#if defined(SYSVSEM) || !defined(_KERNEL) 475301 STD { int netbsd32___semctl14(int semid, int semnum, int cmd, \ 476 union netbsd32_semun3* arg); } 477#else 478301 EXCL __semctl14 479#endif 480#if defined(SYSVMSG) || !defined(_KERNEL) 481302 STD { int netbsd32___msgctl13(int msqid, int cmd, \ 482 netbsd32_msqid_dsp_t buf); } 483#else 484302 EXCL __msgctl13 485#endif 486#if defined(SYSVSHM) || !defined(_KERNEL) 487303 STD { int netbsd32___shmctl13(int shmid, int cmd, \ 488 netbsd32_shmid_dsp_t buf); } 489#else 490303 EXCL __shmctl13 491#endif 492304 STD { int netbsd32_lchflags(const netbsd32_charp path, netbsd32_u_long flags); } 493305 STD { int sys_issetugid(void); } 494306 STD { int netbsd32_utrace(const netbsd32_charp label, netbsd32_voidp addr, \ 495 netbsd32_size_t len); } 496; 497; Syscalls 307 and 308 are reserved for getcontext and setcontext 498; 499307 UNIMPL 500308 UNIMPL 501; 502; Syscalls 309-339 are reserved for LWP and scheduler activation syscalls. 503; 504309 UNIMPL 505310 UNIMPL 506311 UNIMPL 507312 UNIMPL 508313 UNIMPL 509314 UNIMPL 510315 UNIMPL 511316 UNIMPL 512317 UNIMPL 513318 UNIMPL 514319 UNIMPL 515320 UNIMPL 516321 UNIMPL 517322 UNIMPL 518323 UNIMPL 519324 UNIMPL 520325 UNIMPL 521326 UNIMPL 522327 UNIMPL 523328 UNIMPL 524329 UNIMPL 525330 UNIMPL 526331 UNIMPL 527332 UNIMPL 528333 UNIMPL 529334 UNIMPL 530335 UNIMPL 531336 UNIMPL 532337 UNIMPL 533338 UNIMPL 534339 UNIMPL 535