syscalls.master revision 1.83
1 $NetBSD: syscalls.master,v 1.83 2010/03/02 16:02:43 pooka 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, IGNORED, 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; IGNORED syscall is a null op, but always succeeds 18; UNIMPL unimplemented, not included in system 19; EXCL implemented, but not included in system 20; NODEF included, but don't define the syscall number 21; NOARGS included, but don't define the syscall args structure 22; INDIR included, but don't define the syscall args structure, 23; and allow it to be "really" varargs. 24; 25; The compat options are defined in the syscalls.conf file, and the 26; compat option name is prefixed to the syscall name. Other than 27; that, they're like NODEF (for 'compat' options), or STD (for 28; 'libcompat' options). 29; 30; The type-dependent arguments are as follows: 31; For STD, NODEF, NOARGS, and compat syscalls: 32; { pseudo-proto } [alias] 33; For other syscalls: 34; [comment] 35; 36; #ifdef's, etc. may be included, and are copied to the output files. 37; #include's are copied to the syscall names and switch definition files only. 38 39#if defined(_KERNEL_OPT) 40#include "opt_compat_netbsd.h" 41#include "opt_ntp.h" 42#include "opt_sysv.h" 43#include "opt_compat_43.h" 44#include "opt_posix.h" 45 46#include "fs_nfs.h" 47#endif 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/signal.h> 52#include <sys/mount.h> 53#include <sys/syscallargs.h> 54 55#include <compat/netbsd32/netbsd32.h> 56#include <compat/netbsd32/netbsd32_syscallargs.h> 57 58%% 59 60; Reserved/unimplemented system calls in the range 0-150 inclusive 61; are reserved for use in future Berkeley releases. 62; Additional system calls implemented in vendor and other 63; redistributions should be placed in the reserved range at the end 64; of the current calls. 65 660 INDIR { int|netbsd32||syscall(int code, \ 67 ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } 681 STD { void|netbsd32||exit(int rval); } 692 NOARGS { int|sys||fork(void); } 703 STD { netbsd32_ssize_t|netbsd32||read(int fd, \ 71 netbsd32_voidp buf, netbsd32_size_t nbyte); } 724 STD { netbsd32_ssize_t|netbsd32||write(int fd, \ 73 netbsd32_voidp buf, netbsd32_size_t nbyte); } 745 STD { int|netbsd32||open(netbsd32_charp path, int flags, \ 75 ... mode_t mode); } 766 STD { int|netbsd32||close(int fd); } 777 COMPAT_50 { int|netbsd32||wait4(int pid, netbsd32_intp status, \ 78 int options, netbsd32_rusage50p_t rusage); } 798 COMPAT_43 { int|netbsd32||ocreat(netbsd32_charp path, \ 80 mode_t mode); } 819 STD { int|netbsd32||link(netbsd32_charp path, \ 82 netbsd32_charp link); } 8310 STD { int|netbsd32||unlink(netbsd32_charp path); } 8411 OBSOL execv 8512 STD { int|netbsd32||chdir(netbsd32_charp path); } 8613 STD { int|netbsd32||fchdir(int fd); } 8714 COMPAT_50 { int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \ 88 uint32_t dev); } 8915 STD { int|netbsd32||chmod(netbsd32_charp path, mode_t mode); } 9016 STD { int|netbsd32||chown(netbsd32_charp path, uid_t uid, \ 91 gid_t gid); } 9217 STD { int|netbsd32||break(netbsd32_charp nsize); } 9318 COMPAT_20 { int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \ 94 netbsd32_long bufsize, int flags); } 9519 COMPAT_43 { netbsd32_long|netbsd32||olseek(int fd, \ 96 netbsd32_long offset, int whence); } 9720 NOARGS { pid_t|sys||getpid(void); } 9821 STD { int|netbsd32||mount(netbsd32_charp type, \ 99 netbsd32_charp path, int flags, \ 100 netbsd32_voidp data); } 10122 STD { int|netbsd32||unmount(netbsd32_charp path, \ 102 int flags); } 10323 STD { int|netbsd32||setuid(uid_t uid); } 10424 NOARGS { uid_t|sys||getuid(void); } 10525 NOARGS { uid_t|sys||geteuid(void); } 10626 STD { int|netbsd32||ptrace(int req, pid_t pid, \ 107 netbsd32_voidp addr, int data); } 10827 STD { netbsd32_ssize_t|netbsd32||recvmsg(int s, \ 109 netbsd32_msghdrp_t msg, int flags); } 11028 STD { netbsd32_ssize_t|netbsd32||sendmsg(int s, \ 111 netbsd32_msghdrp_t msg, int flags); } 11229 STD { netbsd32_ssize_t|netbsd32||recvfrom(int s, \ 113 netbsd32_voidp buf, netbsd32_size_t len, \ 114 int flags, netbsd32_sockaddrp_t from, \ 115 netbsd32_intp fromlenaddr); } 11630 STD { int|netbsd32||accept(int s, \ 117 netbsd32_sockaddrp_t name, \ 118 netbsd32_intp anamelen); } 11931 STD { int|netbsd32||getpeername(int fdes, \ 120 netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 12132 STD { int|netbsd32||getsockname(int fdes, \ 122 netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 12333 STD { int|netbsd32||access(netbsd32_charp path, int flags); } 12434 STD { int|netbsd32||chflags(netbsd32_charp path, \ 125 netbsd32_u_long flags); } 12635 STD { int|netbsd32||fchflags(int fd, \ 127 netbsd32_u_long flags); } 12836 NOARGS { void|sys||sync(void); } 12937 STD { int|netbsd32||kill(int pid, int signum); } 13038 COMPAT_43 { int|netbsd32||stat43(netbsd32_charp path, \ 131 netbsd32_stat43p_t ub); } 13239 NOARGS { pid_t|sys||getppid(void); } 13340 COMPAT_43 { int|netbsd32||lstat43(netbsd32_charp path, \ 134 netbsd32_stat43p_t ub); } 13541 STD { int|netbsd32||dup(int fd); } 13642 NOARGS { int|sys||pipe(void); } 13743 NOARGS { gid_t|sys||getegid(void); } 13844 STD { int|netbsd32||profil(netbsd32_voidp samples, \ 139 netbsd32_size_t size, netbsd32_u_long offset, \ 140 u_int scale); } 14145 STD { int|netbsd32||ktrace(netbsd32_charp fname, int ops, \ 142 int facs, int pid); } 14346 STD { int|netbsd32||sigaction(int signum, \ 144 netbsd32_sigactionp_t nsa, \ 145 netbsd32_sigactionp_t osa); } 14647 NOARGS { gid_t|sys||getgid(void); } 14748 COMPAT_13 { int|netbsd32||sigprocmask(int how, \ 148 int mask); } sigprocmask13 14949 STD { int|netbsd32||__getlogin(netbsd32_charp namebuf, \ 150 u_int namelen); } 15150 STD { int|netbsd32||setlogin(netbsd32_charp namebuf); } 15251 STD { int|netbsd32||acct(netbsd32_charp path); } 15352 COMPAT_13 { int|sys||sigpending(void); } sigpending13 15453 COMPAT_13 { int|netbsd32||sigaltstack13( \ 155 netbsd32_sigaltstack13p_t nss, \ 156 netbsd32_sigaltstack13p_t oss); } 15754 STD { int|netbsd32||ioctl(int fd, netbsd32_u_long com, \ 158 ... netbsd32_voidp data); } 15955 COMPAT_12 { int|netbsd32||reboot(int opt); } 16056 STD { int|netbsd32||revoke(netbsd32_charp path); } 16157 STD { int|netbsd32||symlink(netbsd32_charp path, \ 162 netbsd32_charp link); } 16358 STD { int|netbsd32||readlink(netbsd32_charp path, \ 164 netbsd32_charp buf, netbsd32_size_t count); } 16559 STD { int|netbsd32||execve(netbsd32_charp path, \ 166 netbsd32_charpp argp, netbsd32_charpp envp); } 16760 STD { mode_t|netbsd32||umask(mode_t newmask); } 16861 STD { int|netbsd32||chroot(netbsd32_charp path); } 16962 COMPAT_43 { int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); } 17063 COMPAT_43 { int|netbsd32||ogetkerninfo(int op, \ 171 netbsd32_charp where, netbsd32_intp size, \ 172 int arg); } 17364 COMPAT_43 { int|sys||getpagesize(void); } ogetpagesize 17465 COMPAT_12 { int|netbsd32||msync(netbsd32_voidp addr, \ 175 netbsd32_size_t len); } 176; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 17766 NOARGS { int|sys||vfork(void); } 17867 OBSOL vread 17968 OBSOL vwrite 18069 STD { int|netbsd32||sbrk(netbsd32_intptr_t incr); } 18170 STD { int|netbsd32||sstk(int incr); } 18271 COMPAT_43 { int|netbsd32||ommap(netbsd32_voidp addr, \ 183 netbsd32_size_t len, int prot, int flags, int fd, \ 184 netbsd32_long pos); } 18572 STD { int|netbsd32||ovadvise(int anom); } vadvise 18673 STD { int|netbsd32||munmap(netbsd32_voidp addr, \ 187 netbsd32_size_t len); } 18874 STD { int|netbsd32||mprotect(netbsd32_voidp addr, \ 189 netbsd32_size_t len, int prot); } 19075 STD { int|netbsd32||madvise(netbsd32_voidp addr, \ 191 netbsd32_size_t len, int behav); } 19276 OBSOL vhangup 19377 OBSOL vlimit 19478 STD { int|netbsd32||mincore(netbsd32_voidp addr, \ 195 netbsd32_size_t len, netbsd32_charp vec); } 19679 STD { int|netbsd32||getgroups(int gidsetsize, \ 197 netbsd32_gid_tp gidset); } 19880 STD { int|netbsd32||setgroups(int gidsetsize, \ 199 netbsd32_gid_tp gidset); } 20081 NOARGS { int|sys||getpgrp(void); } 20182 STD { int|netbsd32||setpgid(int pid, int pgid); } 20283 COMPAT_50 { int|netbsd32||setitimer(int which, \ 203 netbsd32_itimerval50p_t itv, \ 204 netbsd32_itimerval50p_t oitv); } 20584 COMPAT_43 { int|sys||wait(void); } owait 20685 COMPAT_12 { int|netbsd32||oswapon(netbsd32_charp name); } 20786 COMPAT_50 { int|netbsd32||getitimer(int which, \ 208 netbsd32_itimerval50p_t itv); } 20987 COMPAT_43 { int|netbsd32||ogethostname(netbsd32_charp hostname, \ 210 u_int len); } 21188 COMPAT_43 { int|netbsd32||osethostname(netbsd32_charp hostname, \ 212 u_int len); } 21389 COMPAT_43 { int|sys||getdtablesize(void); } ogetdtablesize 21490 STD { int|netbsd32||dup2(int from, int to); } 21591 UNIMPL getdopt 21692 STD { int|netbsd32||fcntl(int fd, int cmd, \ 217 ... netbsd32_voidp arg); } 21893 COMPAT_50 { int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \ 219 netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ 220 netbsd32_timeval50p_t tv); } 22194 UNIMPL setdopt 22295 STD { int|netbsd32||fsync(int fd); } 22396 STD { int|netbsd32||setpriority(int which, int who, \ 224 int prio); } 22597 COMPAT_30 { int|netbsd32||socket(int domain, int type, \ 226 int protocol); } 22798 STD { int|netbsd32||connect(int s, \ 228 netbsd32_sockaddrp_t name, int namelen); } 22999 COMPAT_43 { int|netbsd32||oaccept(int s, netbsd32_voidp name, \ 230 netbsd32_intp anamelen); } 231100 STD { int|netbsd32||getpriority(int which, int who); } 232101 COMPAT_43 { int|netbsd32||osend(int s, netbsd32_voidp buf, \ 233 int len, int flags); } 234102 COMPAT_43 { int|netbsd32||orecv(int s, netbsd32_voidp buf, \ 235 int len, int flags); } 236103 COMPAT_13 { int|netbsd32||sigreturn( \ 237 netbsd32_sigcontextp_t sigcntxp); } sigreturn13 238104 STD { int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \ 239 int namelen); } 240105 STD { int|netbsd32||setsockopt(int s, int level, int name, \ 241 netbsd32_voidp val, int valsize); } 242106 STD { int|netbsd32||listen(int s, int backlog); } 243107 OBSOL vtimes 244108 COMPAT_43 { int|netbsd32||osigvec(int signum, \ 245 netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } 246109 COMPAT_43 { int|netbsd32||sigblock(int mask); } 247110 COMPAT_43 { int|netbsd32||sigsetmask(int mask); } 248111 COMPAT_13 { int|netbsd32||sigsuspend(int mask); } sigsuspend13 249112 COMPAT_43 { int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \ 250 netbsd32_sigstackp_t oss); } 251113 COMPAT_43 { int|netbsd32||orecvmsg(int s, \ 252 netbsd32_omsghdrp_t msg, int flags); } 253114 COMPAT_43 { int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \ 254 int flags); } 255115 OBSOL vtrace 256116 COMPAT_50 { int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \ 257 netbsd32_timezonep_t tzp); } 258117 COMPAT_50 { int|netbsd32||getrusage(int who, \ 259 netbsd32_rusage50p_t rusage); } 260118 STD { int|netbsd32||getsockopt(int s, int level, int name, \ 261 netbsd32_voidp val, netbsd32_intp avalsize); } 262119 OBSOL resuba 263120 STD { netbsd32_ssize_t|netbsd32||readv(int fd, \ 264 netbsd32_iovecp_t iovp, int iovcnt); } 265121 STD { netbsd32_ssize_t|netbsd32||writev(int fd, \ 266 netbsd32_iovecp_t iovp, int iovcnt); } 267122 COMPAT_50 { int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \ 268 netbsd32_timezonep_t tzp); } 269123 STD { int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); } 270124 STD { int|netbsd32||fchmod(int fd, mode_t mode); } 271125 COMPAT_43 { int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \ 272 netbsd32_size_t len, int flags, \ 273 netbsd32_voidp from, netbsd32_intp fromlenaddr); } 274126 STD { int|netbsd32||setreuid(uid_t ruid, uid_t euid); } 275127 STD { int|netbsd32||setregid(gid_t rgid, gid_t egid); } 276128 STD { int|netbsd32||rename(netbsd32_charp from, \ 277 netbsd32_charp to); } 278129 COMPAT_43 { int|netbsd32||otruncate(netbsd32_charp path, \ 279 netbsd32_long length); } 280130 COMPAT_43 { int|netbsd32||oftruncate(int fd, \ 281 netbsd32_long length); } 282131 STD { int|netbsd32||flock(int fd, int how); } 283132 STD { int|netbsd32||mkfifo(netbsd32_charp path, \ 284 mode_t mode); } 285133 STD { netbsd32_ssize_t|netbsd32||sendto(int s, \ 286 netbsd32_voidp buf, netbsd32_size_t len, \ 287 int flags, netbsd32_sockaddrp_t to, int tolen); } 288134 STD { int|netbsd32||shutdown(int s, int how); } 289135 STD { int|netbsd32||socketpair(int domain, int type, \ 290 int protocol, netbsd32_intp rsv); } 291136 STD { int|netbsd32||mkdir(netbsd32_charp path, \ 292 mode_t mode); } 293137 STD { int|netbsd32||rmdir(netbsd32_charp path); } 294138 COMPAT_50 { int|netbsd32||utimes(netbsd32_charp path, \ 295 netbsd32_timeval50p_t tptr); } 296139 OBSOL 4.2 sigreturn 297140 COMPAT_50 { int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \ 298 netbsd32_timeval50p_t olddelta); } 299141 COMPAT_43 { int|netbsd32||ogetpeername(int fdes, \ 300 netbsd32_voidp asa, netbsd32_intp alen); } 301142 COMPAT_43 { int32_t|sys||gethostid(void); } ogethostid 302143 COMPAT_43 { int|netbsd32||sethostid(int32_t hostid); } 303144 COMPAT_43 { int|netbsd32||ogetrlimit(int which, \ 304 netbsd32_orlimitp_t rlp); } 305145 COMPAT_43 { int|netbsd32||osetrlimit(int which, \ 306 netbsd32_orlimitp_t rlp); } 307146 COMPAT_43 { int|netbsd32||killpg(int pgid, int signum); } 308147 NOARGS { int|sys||setsid(void); } 309148 STD { int|netbsd32||quotactl(netbsd32_charp path, int cmd, \ 310 int uid, netbsd32_voidp arg); } 311149 COMPAT_43 { int|sys||quota(void); } oquota 312150 COMPAT_43 { int|netbsd32||ogetsockname(int fdec, \ 313 netbsd32_voidp asa, netbsd32_intp alen); } 314 315; Syscalls 151-180 inclusive are reserved for vendor-specific 316; system calls. (This includes various calls added for compatibity 317; with other Unix variants.) 318; Some of these calls are now supported by BSD... 319151 UNIMPL 320152 UNIMPL 321153 UNIMPL 322154 UNIMPL 323155 STD { int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); } 324156 COMPAT_43 { int|netbsd32||ogetdirentries(int fd, \ 325 netbsd32_charp buf, u_int count, \ 326 netbsd32_longp basep); } 327157 COMPAT_20 { int|netbsd32||statfs(netbsd32_charp path, \ 328 netbsd32_statfsp_t buf); } 329158 COMPAT_20 { int|netbsd32||fstatfs(int fd, \ 330 netbsd32_statfsp_t buf); } 331159 UNIMPL 332160 UNIMPL 333161 COMPAT_30 { int|netbsd32||getfh(netbsd32_charp fname, \ 334 netbsd32_compat_30_fhandlep_t fhp); } 335162 COMPAT_09 { int|netbsd32||ogetdomainname( \ 336 netbsd32_charp domainname, int len); } 337163 COMPAT_09 { int|netbsd32||osetdomainname( \ 338 netbsd32_charp domainname, int len); } 339164 COMPAT_09 { int|netbsd32||uname(netbsd32_outsnamep_t name); } 340165 STD { int|netbsd32||sysarch(int op, netbsd32_voidp parms); } 341166 UNIMPL 342167 UNIMPL 343168 UNIMPL 344#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 345169 COMPAT_10 { int|netbsd32||semsys(int which, int a2, int a3, \ 346 int a4, int a5); } osemsys 347#else 348169 EXCL netbsd32_semsys 349#endif 350#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 351170 COMPAT_10 { int|netbsd32||msgsys(int which, int a2, int a3, \ 352 int a4, int a5, int a6); } omsgsys 353#else 354170 EXCL netbsd32_msgsys 355#endif 356#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 357171 COMPAT_10 { int|netbsd32||shmsys(int which, int a2, int a3, \ 358 int a4); } oshmsys 359#else 360171 EXCL netbsd32_shmsys 361#endif 362172 UNIMPL 363173 STD { netbsd32_ssize_t|netbsd32||pread(int fd, \ 364 netbsd32_voidp buf, netbsd32_size_t nbyte, \ 365 int PAD, off_t offset); } 366174 STD { netbsd32_ssize_t|netbsd32||pwrite(int fd, \ 367 netbsd32_voidp buf, netbsd32_size_t nbyte, \ 368 int PAD, off_t offset); } 369#if defined(NTP) || !defined(_KERNEL_OPT) 370175 COMPAT_30 { int|netbsd32||ntp_gettime( \ 371 netbsd32_ntptimeval50p_t ntvp); } 372176 STD { int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); } 373#else 374175 EXCL ntp_gettime 375176 EXCL ntp_adjtime 376#endif 377177 UNIMPL 378178 UNIMPL 379179 UNIMPL 380180 UNIMPL 381 382; Syscalls 180-199 are used by/reserved for BSD 383181 STD { int|netbsd32||setgid(gid_t gid); } 384182 STD { int|netbsd32||setegid(gid_t egid); } 385183 STD { int|netbsd32||seteuid(uid_t euid); } 386184 EXCL netbsd32_lfs_bmapv 387185 EXCL netbsd32_lfs_markv 388186 EXCL netbsd32_lfs_segclean 389187 EXCL netbsd32_lfs_segwait 390188 COMPAT_12 { int|netbsd32||stat12(netbsd32_charp path, \ 391 netbsd32_stat12p_t ub); } 392189 COMPAT_12 { int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); } 393190 COMPAT_12 { int|netbsd32||lstat12(netbsd32_charp path, \ 394 netbsd32_stat12p_t ub); } 395191 STD { netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \ 396 int name); } 397192 STD { netbsd32_long|netbsd32||fpathconf(int fd, int name); } 398193 UNIMPL 399194 STD { int|netbsd32||getrlimit(int which, \ 400 netbsd32_rlimitp_t rlp); } 401195 STD { int|netbsd32||setrlimit(int which, \ 402 netbsd32_rlimitp_t rlp); } 403196 COMPAT_12 { int|netbsd32||getdirentries(int fd, \ 404 netbsd32_charp buf, u_int count, \ 405 netbsd32_longp basep); } 406197 STD { netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \ 407 netbsd32_size_t len, int prot, int flags, int fd, \ 408 netbsd32_long PAD, off_t pos); } 409198 INDIR { quad_t|netbsd32||___syscall(quad_t code, \ 410 ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } 411199 STD { off_t|netbsd32||lseek(int fd, int PAD, off_t offset, \ 412 int whence); } 413200 STD { int|netbsd32||truncate(netbsd32_charp path, int PAD, \ 414 off_t length); } 415201 STD { int|netbsd32||ftruncate(int fd, int PAD, \ 416 off_t length); } 417202 STD { int|netbsd32||__sysctl(netbsd32_intp name, \ 418 u_int namelen, netbsd32_voidp old, \ 419 netbsd32_size_tp oldlenp, netbsd32_voidp new, \ 420 netbsd32_size_t newlen); } 421203 STD { int|netbsd32||mlock(netbsd32_voidp addr, \ 422 netbsd32_size_t len); } 423204 STD { int|netbsd32||munlock(netbsd32_voidp addr, \ 424 netbsd32_size_t len); } 425205 STD { int|netbsd32||undelete(netbsd32_charp path); } 426206 COMPAT_50 { int|netbsd32||futimes(int fd, \ 427 netbsd32_timeval50p_t tptr); } 428207 STD { int|netbsd32||getpgid(pid_t pid); } 429208 STD { int|netbsd32||reboot(int opt, \ 430 netbsd32_charp bootstr); } 431209 STD { int|netbsd32||poll(netbsd32_pollfdp_t fds, \ 432 u_int nfds, int timeout); } 433210 UNIMPL 434211 UNIMPL 435212 UNIMPL 436213 UNIMPL 437214 UNIMPL 438215 UNIMPL 439216 UNIMPL 440217 UNIMPL 441218 UNIMPL 442219 UNIMPL 443; System calls 220-300 are reserved for use by NetBSD 444#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 445220 COMPAT_14 { int|netbsd32||__semctl(int semid, int semnum, \ 446 int cmd, netbsd32_semunu_t arg); } 447221 STD { int|netbsd32||semget(netbsd32_key_t key, int nsems, \ 448 int semflg); } 449222 STD { int|netbsd32||semop(int semid, \ 450 netbsd32_sembufp_t sops, netbsd32_size_t nsops); } 451223 STD { int|netbsd32||semconfig(int flag); } 452#else 453220 EXCL compat_14_netbsd32_semctl 454221 EXCL netbsd32_semget 455222 EXCL netbsd32_semop 456223 EXCL netbsd32_semconfig 457#endif 458#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 459224 COMPAT_14 { int|netbsd32||msgctl(int msqid, int cmd, \ 460 netbsd32_msqid_ds14p_t buf); } 461225 STD { int|netbsd32||msgget(netbsd32_key_t key, int msgflg); } 462226 STD { int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \ 463 netbsd32_size_t msgsz, int msgflg); } 464227 STD { netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \ 465 netbsd32_voidp msgp, netbsd32_size_t msgsz, \ 466 netbsd32_long msgtyp, int msgflg); } 467#else 468224 EXCL compat_14_netbsd32_msgctl 469225 EXCL netbsd32_msgget 470226 EXCL netbsd32_msgsnd 471227 EXCL netbsd32_msgrcv 472#endif 473#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 474228 STD { netbsd32_voidp|netbsd32||shmat(int shmid, \ 475 netbsd32_voidp shmaddr, int shmflg); } 476229 COMPAT_14 { int|netbsd32||shmctl(int shmid, int cmd, \ 477 netbsd32_shmid_dsp_t buf); } 478230 STD { int|netbsd32||shmdt(netbsd32_voidp shmaddr); } 479231 STD { int|netbsd32||shmget(netbsd32_key_t key, \ 480 netbsd32_size_t size, int shmflg); } 481#else 482228 EXCL netbsd32_shmat 483229 EXCL compat_14_netbsd32_shmctl 484230 EXCL netbsd32_shmdt 485231 EXCL netbsd32_shmget 486#endif 487232 COMPAT_50 { int|netbsd32||clock_gettime( \ 488 netbsd32_clockid_t clock_id, \ 489 netbsd32_timespec50p_t tp); } 490233 COMPAT_50 { int|netbsd32||clock_settime( \ 491 netbsd32_clockid_t clock_id, \ 492 netbsd32_timespec50p_t tp); } 493234 COMPAT_50 { int|netbsd32||clock_getres( \ 494 netbsd32_clockid_t clock_id, \ 495 netbsd32_timespec50p_t tp); } 496235 STD { int|netbsd32||timer_create( \ 497 netbsd32_clockid_t clock_id, \ 498 netbsd32_sigeventp_t evp, \ 499 netbsd32_timerp_t timerid); } 500236 STD { int|netbsd32||timer_delete(netbsd32_timer_t timerid); } 501237 COMPAT_50 { int|netbsd32||timer_settime(netbsd32_timer_t timerid, \ 502 int flags, \ 503 netbsd32_itimerspec50p_t value, \ 504 netbsd32_itimerspec50p_t ovalue); } 505238 COMPAT_50 { int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \ 506 netbsd32_itimerspec50p_t value); } 507239 STD { int|netbsd32||timer_getoverrun( \ 508 netbsd32_timer_t timerid); } 509; 510; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 511; 512240 COMPAT_50 { int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \ 513 netbsd32_timespec50p_t rmtp); } 514241 STD { int|netbsd32||fdatasync(int fd); } 515242 STD { int|netbsd32||mlockall(int flags); } 516243 NOARGS { int|sys||munlockall(void); } 517244 COMPAT_50 { int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \ 518 netbsd32_siginfop_t info, \ 519 netbsd32_timespec50p_t timeout); } 520245 UNIMPL 521246 UNIMPL 522#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL_OPT) && defined(_LIBC)) 523247 STD { int|netbsd32||_ksem_init(unsigned int value, \ 524 netbsd32_semidp_t idp); } 525248 STD { int|netbsd32||_ksem_open(netbsd32_charp name, \ 526 int oflag, mode_t mode, unsigned int value, \ 527 netbsd32_semidp_t idp); } 528249 STD { int|netbsd32||_ksem_unlink(netbsd32_charp name); } 529250 STD { int|netbsd32||_ksem_close(netbsd32_intptr_t id); } 530251 STD { int|netbsd32||_ksem_post(netbsd32_intptr_t id); } 531252 STD { int|netbsd32||_ksem_wait(netbsd32_intptr_t id); } 532253 STD { int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); } 533254 STD { int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \ 534 netbsd32_intp value); } 535255 STD { int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); } 536256 UNIMPL sys__ksem_timedwait 537#else 538247 EXCL sys__ksem_init 539248 EXCL sys__ksem_open 540249 EXCL sys__ksem_unlink 541250 EXCL sys__ksem_close 542251 EXCL sys__ksem_post 543252 EXCL sys__ksem_wait 544253 EXCL sys__ksem_trywait 545254 EXCL sys__ksem_getvalue 546255 EXCL sys__ksem_destroy 547256 UNIMPL sys__ksem_timedwait 548#endif 549257 UNIMPL 550258 UNIMPL 551259 UNIMPL 552260 UNIMPL 553261 UNIMPL 554262 UNIMPL 555263 UNIMPL 556264 UNIMPL 557265 UNIMPL 558266 UNIMPL 559267 UNIMPL 560268 UNIMPL 561269 UNIMPL 562270 STD { int|netbsd32||__posix_rename(netbsd32_charp from, \ 563 netbsd32_charp to); } 564271 STD { int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \ 565 int misc); } 566272 COMPAT_30 { int|netbsd32||getdents(int fd, netbsd32_charp buf, \ 567 netbsd32_size_t count); } 568273 STD { int|netbsd32||minherit(netbsd32_voidp addr, \ 569 netbsd32_size_t len, int inherit); } 570274 STD { int|netbsd32||lchmod(netbsd32_charp path, \ 571 mode_t mode); } 572275 STD { int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \ 573 gid_t gid); } 574276 COMPAT_50 { int|netbsd32||lutimes(netbsd32_charp path, \ 575 netbsd32_timeval50p_t tptr); } 576277 STD { int|netbsd32|13|msync(netbsd32_voidp addr, \ 577 netbsd32_size_t len, int flags); } 578278 COMPAT_30 { int|netbsd32|13|stat(netbsd32_charp path, \ 579 netbsd32_stat13p_t ub); } 580279 COMPAT_30 { int|netbsd32|13|fstat(int fd, \ 581 netbsd32_stat13p_t sb); } 582280 COMPAT_30 { int|netbsd32|13|lstat(netbsd32_charp path, \ 583 netbsd32_stat13p_t ub); } 584281 STD { int|netbsd32|14|sigaltstack(\ 585 netbsd32_sigaltstackp_t nss, \ 586 netbsd32_sigaltstackp_t oss); } 587282 NOARGS { int|sys|14|vfork(void); } 588283 STD { int|netbsd32||__posix_chown(netbsd32_charp path, \ 589 uid_t uid, gid_t gid); } 590284 STD { int|netbsd32||__posix_fchown(int fd, uid_t uid, \ 591 gid_t gid); } 592285 STD { int|netbsd32||__posix_lchown(netbsd32_charp path, \ 593 uid_t uid, gid_t gid); } 594286 STD { pid_t|netbsd32||getsid(pid_t pid); } 595287 STD { int|netbsd32||__clone(int flags, \ 596 netbsd32_voidp stack); } 597288 STD { int|netbsd32||fktrace(int fd, int ops, int facs, \ 598 int pid); } 599289 STD { netbsd32_ssize_t|netbsd32||preadv(int fd, \ 600 netbsd32_iovecp_t iovp, int iovcnt, int PAD, \ 601 off_t offset); } 602290 STD { netbsd32_ssize_t|netbsd32||pwritev(int fd, \ 603 netbsd32_iovecp_t iovp, int iovcnt, int PAD, \ 604 off_t offset); } 605291 STD { int|netbsd32|14|sigaction(int signum, \ 606 netbsd32_sigactionp_t nsa, \ 607 netbsd32_sigactionp_t osa); } 608292 STD { int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); } 609293 STD { int|netbsd32|14|sigprocmask(int how, \ 610 netbsd32_sigsetp_t set, \ 611 netbsd32_sigsetp_t oset); } 612294 STD { int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); } 613295 COMPAT_16 { int|netbsd32|14|sigreturn( \ 614 netbsd32_sigcontextp_t sigcntxp); } 615296 STD { int|netbsd32||__getcwd(netbsd32_charp bufp, \ 616 netbsd32_size_t length); } 617297 STD { int|netbsd32||fchroot(int fd); } 618298 COMPAT_30 { int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \ 619 int flags); } 620299 COMPAT_30 { int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \ 621 netbsd32_stat13p_t sb); } 622300 COMPAT_20 { int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \ 623 netbsd32_stat50p_t buf); } 624#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 625301 COMPAT_50 { int|netbsd32|14|semctl(int semid, int semnum, \ 626 int cmd, ... netbsd32_semun50p_t arg); } 627#else 628301 EXCL __semctl14 629#endif 630#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 631302 COMPAT_50 { int|netbsd32|13|msgctl(int msqid, int cmd, \ 632 netbsd32_msqid_ds50p_t buf); } 633#else 634302 EXCL __msgctl13 635#endif 636#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 637303 COMPAT_50 { int|netbsd32|13|shmctl(int shmid, int cmd, \ 638 netbsd32_shmid_ds50p_t buf); } 639#else 640303 EXCL __shmctl13 641#endif 642304 STD { int|netbsd32||lchflags(netbsd32_charp path, \ 643 netbsd32_u_long flags); } 644305 NOARGS { int|sys||issetugid(void); } 645306 STD { int|netbsd32||utrace(netbsd32_charp label, \ 646 netbsd32_voidp addr, netbsd32_size_t len); } 647307 STD { int|netbsd32||getcontext(netbsd32_ucontextp ucp); } 648308 STD { int|netbsd32||setcontext(netbsd32_ucontextp ucp, \ 649 uint32_t flags, netbsd32_lwpidp new_lwp); } 650309 STD { int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \ 651 netbsd32_u_long flags, netbsd32_lwpidp new_lwp); } 652310 NOARGS { int|sys||_lwp_exit(void); } 653311 NOARGS { lwpid_t|sys||_lwp_self(void); } 654312 STD { int|netbsd32||_lwp_wait(lwpid_t wait_for, \ 655 netbsd32_lwpidp departed); } 656313 STD { int|netbsd32||_lwp_suspend(lwpid_t target); } 657314 STD { int|netbsd32||_lwp_continue(lwpid_t target); } 658315 STD { int|netbsd32||_lwp_wakeup(lwpid_t target); } 659316 NOARGS { netbsd32_voidp|sys||_lwp_getprivate(void); } 660317 STD { void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); } 661318 STD { int|netbsd32||_lwp_kill(lwpid_t target, int signo); } 662319 STD { int|netbsd32||_lwp_detach(lwpid_t target); } 663320 COMPAT_50 { int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \ 664 lwpid_t unpark, netbsd32_voidp hint, \ 665 netbsd32_voidp unparkhint); } 666321 STD { int|netbsd32||_lwp_unpark(lwpid_t target, \ 667 netbsd32_voidp hint); } 668322 STD { netbsd32_size_t|netbsd32||_lwp_unpark_all( \ 669 netbsd32_lwpidp targets, netbsd32_size_t ntargets, \ 670 netbsd32_voidp hint); } 671323 STD { int|netbsd32||_lwp_setname(lwpid_t target, \ 672 netbsd32_charp name); } 673324 STD { int|netbsd32||_lwp_getname(lwpid_t target, \ 674 netbsd32_charp name, netbsd32_size_t len); } 675325 STD { int|netbsd32||_lwp_ctl(int features, \ 676 netbsd32_pointer_t address); } 677326 UNIMPL 678327 UNIMPL 679328 UNIMPL 680329 UNIMPL 681330 STD { int|netbsd32||sa_register(netbsd32_sa_upcall_t new, \ 682 netbsd32_sa_upcallp_t old, int flags, \ 683 netbsd32_ssize_t stackinfo_offset); } 684331 STD { int|netbsd32||sa_stacks(int num, \ 685 netbsd32_stackp_t stacks); } 686332 NOARGS { int|sys||sa_enable(void); } 687333 STD { int|netbsd32||sa_setconcurrency(int concurrency); } 688334 NOARGS { int|sys||sa_yield(void); } 689335 STD { int|netbsd32||sa_preempt(int sa_id); } 690336 OBSOL sys_sa_unblockyield 691337 UNIMPL 692338 UNIMPL 693339 UNIMPL 694340 STD { int|netbsd32||__sigaction_sigtramp(int signum, \ 695 netbsd32_sigactionp_t nsa, \ 696 netbsd32_sigactionp_t osa, \ 697 netbsd32_voidp tramp, int vers); } 698341 UNIMPL 699342 UNIMPL 700343 STD { int|netbsd32||rasctl(netbsd32_voidp addr, \ 701 netbsd32_size_t len, int op); } 702344 NOARGS { int|sys||kqueue(void); } 703345 COMPAT_50 { int|netbsd32||kevent(int fd, \ 704 netbsd32_keventp_t changelist, \ 705 netbsd32_size_t nchanges, \ 706 netbsd32_keventp_t eventlist, \ 707 netbsd32_size_t nevents, \ 708 netbsd32_timespec50p_t timeout); } 709; Scheduling system calls. 710346 STD { int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \ 711 int policy, const netbsd32_sched_paramp_t params); } 712347 STD { int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \ 713 netbsd32_intp policy, \ 714 netbsd32_sched_paramp_t params); } 715348 STD { int|netbsd32||_sched_setaffinity(pid_t pid, \ 716 lwpid_t lid, netbsd32_size_t size, \ 717 const netbsd32_cpusetp_t cpuset); } 718349 STD { int|netbsd32||_sched_getaffinity(pid_t pid, \ 719 lwpid_t lid, netbsd32_size_t size, \ 720 netbsd32_cpusetp_t cpuset); } 721350 NOARGS { int|sys||sched_yield(void); } 722351 UNIMPL 723352 UNIMPL 724353 UNIMPL 725354 STD { int|netbsd32||fsync_range(int fd, int flags, \ 726 off_t start, off_t length); } 727355 STD { int|netbsd32||uuidgen(netbsd32_uuidp_t store, \ 728 int count); } 729356 STD { int|netbsd32||getvfsstat(netbsd32_statvfsp_t buf, \ 730 netbsd32_size_t bufsize, int flags); } 731357 STD { int|netbsd32||statvfs1(netbsd32_charp path, \ 732 netbsd32_statvfsp_t buf, int flags); } 733358 STD { int|netbsd32||fstatvfs1(int fd, \ 734 netbsd32_statvfsp_t buf, int flags); } 735359 COMPAT_30 { int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \ 736 netbsd32_statvfsp_t buf, int flags); } 737360 STD { int|netbsd32||extattrctl(netbsd32_charp path, \ 738 int cmd, netbsd32_charp filename, \ 739 int attrnamespace, netbsd32_charp attrname); } 740361 STD { int|netbsd32||extattr_set_file(netbsd32_charp path, \ 741 int attrnamespace, netbsd32_charp attrname, \ 742 netbsd32_voidp data, netbsd32_size_t nbytes); } 743362 STD { int|netbsd32||extattr_get_file(netbsd32_charp path, \ 744 int attrnamespace, netbsd32_charp attrname, \ 745 netbsd32_voidp data, netbsd32_size_t nbytes); } 746363 STD { int|netbsd32||extattr_delete_file( \ 747 netbsd32_charp path, int attrnamespace, \ 748 netbsd32_charp attrname); } 749364 STD { int|netbsd32||extattr_set_fd(int fd, \ 750 int attrnamespace, netbsd32_charp attrname, \ 751 netbsd32_voidp data, netbsd32_size_t nbytes); } 752365 STD { int|netbsd32||extattr_get_fd(int fd, \ 753 int attrnamespace, netbsd32_charp attrname, \ 754 netbsd32_voidp data, netbsd32_size_t nbytes); } 755366 STD { int|netbsd32||extattr_delete_fd(int fd, \ 756 int attrnamespace, netbsd32_charp attrname); } 757367 STD { int|netbsd32||extattr_set_link(netbsd32_charp path, \ 758 int attrnamespace, netbsd32_charp attrname, \ 759 netbsd32_voidp data, netbsd32_size_t nbytes); } 760368 STD { int|netbsd32||extattr_get_link(netbsd32_charp path, \ 761 int attrnamespace, netbsd32_charp attrname, \ 762 netbsd32_voidp data, netbsd32_size_t nbytes); } 763369 STD { int|netbsd32||extattr_delete_link( \ 764 netbsd32_charp path, int attrnamespace, \ 765 netbsd32_charp attrname); } 766370 STD { int|netbsd32||extattr_list_fd(int fd, \ 767 int attrnamespace, netbsd32_voidp data, \ 768 netbsd32_size_t nbytes); } 769371 STD { int|netbsd32||extattr_list_file(netbsd32_charp path, \ 770 int attrnamespace, netbsd32_voidp data, \ 771 netbsd32_size_t nbytes); } 772372 STD { int|netbsd32||extattr_list_link(netbsd32_charp path, \ 773 int attrnamespace, netbsd32_voidp data, \ 774 netbsd32_size_t nbytes); } 775373 COMPAT_50 { int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \ 776 netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ 777 netbsd32_timespec50p_t ts, \ 778 netbsd32_sigsetp_t mask); } 779374 COMPAT_50 { int|netbsd32||pollts(netbsd32_pollfdp_t fds, \ 780 u_int nfds, netbsd32_timespec50p_t ts, \ 781 netbsd32_sigsetp_t mask); } 782375 STD { int|netbsd32||setxattr(netbsd32_charp path, \ 783 netbsd32_charp name, netbsd32_voidp value, \ 784 netbsd32_size_t size, int flags); } 785376 STD { int|netbsd32||lsetxattr(netbsd32_charp path, \ 786 netbsd32_charp name, netbsd32_voidp value, \ 787 netbsd32_size_t size, int flags); } 788377 STD { int|netbsd32||fsetxattr(int fd, \ 789 netbsd32_charp name, netbsd32_voidp value, \ 790 netbsd32_size_t size, int flags); } 791378 STD { int|netbsd32||getxattr(netbsd32_charp path, \ 792 netbsd32_charp name, netbsd32_voidp value, \ 793 netbsd32_size_t size); } 794379 STD { int|netbsd32||lgetxattr(netbsd32_charp path, \ 795 netbsd32_charp name, netbsd32_voidp value, \ 796 netbsd32_size_t size); } 797380 STD { int|netbsd32||fgetxattr(int fd, \ 798 netbsd32_charp name, netbsd32_voidp value, \ 799 netbsd32_size_t size); } 800381 STD { int|netbsd32||listxattr(netbsd32_charp path, \ 801 netbsd32_charp list, netbsd32_size_t size); } 802382 STD { int|netbsd32||llistxattr(netbsd32_charp path, \ 803 netbsd32_charp list, netbsd32_size_t size); } 804383 STD { int|netbsd32||flistxattr(int fd, \ 805 netbsd32_charp list, netbsd32_size_t size); } 806384 STD { int|netbsd32||removexattr(netbsd32_charp path, \ 807 netbsd32_charp name); } 808385 STD { int|netbsd32||lremovexattr(netbsd32_charp path, \ 809 netbsd32_charp name); } 810386 STD { int|netbsd32||fremovexattr(int fd, \ 811 netbsd32_charp name); } 812387 COMPAT_50 { int|netbsd32|30|stat(netbsd32_charp path, \ 813 netbsd32_stat50p_t ub); } 814388 COMPAT_50 { int|netbsd32|30|fstat(int fd, \ 815 netbsd32_stat50p_t sb); } 816389 COMPAT_50 { int|netbsd32|30|lstat( \ 817 netbsd32_charp path, netbsd32_stat50p_t ub); } 818390 STD { int|netbsd32|30|getdents(int fd, \ 819 netbsd32_charp buf, netbsd32_size_t count); } 820391 IGNORED old posix fadvise 821392 COMPAT_30 { int|netbsd32|30|fhstat( \ 822 netbsd32_fhandlep_t fhp, \ 823 netbsd32_stat50p_t sb); } 824#if defined(NTP) || !defined(_KERNEL_OPT) 825393 COMPAT_50 { int|netbsd32||ntp_gettime( \ 826 netbsd32_ntptimeval50p_t ntvp); } 827#else 828393 EXCL __ntp_gettime30 829#endif 830394 STD { int|netbsd32|30|socket(int domain, int type, \ 831 int protocol); } 832395 STD { int|netbsd32|30|getfh(netbsd32_charp fname, \ 833 netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); } 834396 STD { int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \ 835 netbsd32_size_t fh_size, int flags); } 836397 STD { int|netbsd32|40|fhstatvfs1( \ 837 netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ 838 netbsd32_statvfsp_t buf, int flags); } 839398 COMPAT_50 { int|netbsd32|40|fhstat( \ 840 netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ 841 netbsd32_stat50p_t sb); } 842 843; Asynchronous I/O system calls 844399 UNIMPL sys_aio_cancel 845400 UNIMPL sys_aio_error 846401 UNIMPL sys_aio_fsync 847402 UNIMPL sys_aio_read 848403 UNIMPL sys_aio_return 849404 UNIMPL sys_aio_suspend 850405 UNIMPL sys_aio_write 851406 UNIMPL sys_lio_listio 852 853407 UNIMPL 854408 UNIMPL 855409 UNIMPL 856 857410 STD { int|netbsd32||__mount50(netbsd32_charp type, \ 858 netbsd32_charp path, int flags, \ 859 netbsd32_voidp data, netbsd32_size_t data_len); } 860411 STD { netbsd32_voidp|netbsd32||mremap( \ 861 netbsd32_voidp old_address, \ 862 netbsd32_size_t old_size, \ 863 netbsd32_voidp new_address, \ 864 netbsd32_size_t new_size, int flags); } 865 866412 UNIMPL 867413 UNIMPL 868414 UNIMPL 869415 UNIMPL 870 871416 STD { int|netbsd32|50|posix_fadvise(int fd, int PAD, \ 872 off_t offset, off_t len, int advice); } 873417 STD { int|netbsd32|50|select(int nd, \ 874 netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \ 875 netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); } 876418 STD { int|netbsd32|50|gettimeofday( \ 877 netbsd32_timevalp_t tp, netbsd32_voidp tzp); } 878419 STD { int|netbsd32|50|settimeofday( \ 879 const netbsd32_timevalp_t tv, \ 880 const netbsd32_voidp tzp); } 881420 STD { int|netbsd32|50|utimes(const netbsd32_charp path, \ 882 const netbsd32_timevalp_t tptr); } 883421 STD { int|netbsd32|50|adjtime( \ 884 const netbsd32_timevalp_t delta, \ 885 netbsd32_timevalp_t olddelta); } 886422 EXCL __lfs_segwait50 887423 STD { int|netbsd32|50|futimes(int fd, \ 888 const netbsd32_timevalp_t tptr); } 889424 STD { int|netbsd32|50|lutimes(const netbsd32_charp path, \ 890 const netbsd32_timevalp_t tptr); } 891425 STD { int|netbsd32|50|setitimer(int which, \ 892 const netbsd32_itimervalp_t itv, \ 893 netbsd32_itimervalp_t oitv); } 894426 STD { int|netbsd32|50|getitimer(int which, \ 895 netbsd32_itimervalp_t itv); } 896427 STD { int|netbsd32|50|clock_gettime(clockid_t clock_id, \ 897 netbsd32_timespecp_t tp); } 898428 STD { int|netbsd32|50|clock_settime(clockid_t clock_id, \ 899 const netbsd32_timespecp_t tp); } 900429 STD { int|netbsd32|50|clock_getres(clockid_t clock_id, \ 901 netbsd32_timespecp_t tp); } 902430 STD { int|netbsd32|50|nanosleep( \ 903 const netbsd32_timespecp_t rqtp, \ 904 netbsd32_timespecp_t rmtp); } 905431 STD { int|netbsd32|50|__sigtimedwait( \ 906 const netbsd32_sigsetp_t set, \ 907 netbsd32_siginfop_t info, \ 908 netbsd32_timespecp_t timeout); } 909432 UNIMPL netbsd32___mq_timedsend50 910433 UNIMPL netbsd32___mq_timedreceive50 911434 STD { int|netbsd32|50|_lwp_park( \ 912 const netbsd32_timespecp_t ts, \ 913 lwpid_t unpark, const netbsd32_voidp hint, \ 914 const netbsd32_voidp unparkhint); } 915435 STD { int|netbsd32|50|kevent(int fd, \ 916 const netbsd32_keventp_t changelist, \ 917 netbsd32_size_t nchanges, \ 918 netbsd32_keventp_t eventlist, \ 919 netbsd32_size_t nevents, \ 920 const netbsd32_timespecp_t timeout); } 921436 STD { int|netbsd32|50|pselect(int nd, \ 922 netbsd32_fd_setp_t in, \ 923 netbsd32_fd_setp_t ou, \ 924 netbsd32_fd_setp_t ex, \ 925 const netbsd32_timespecp_t ts, \ 926 const netbsd32_sigsetp_t mask); } 927437 STD { int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \ 928 u_int nfds, const netbsd32_timespecp_t ts, \ 929 const netbsd32_sigsetp_t mask); } 930438 UNIMPL netbsd32___aio_suspend50 931439 STD { int|netbsd32|50|stat(const netbsd32_charp path, \ 932 netbsd32_statp_t ub); } 933440 STD { int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); } 934441 STD { int|netbsd32|50|lstat(const netbsd32_charp path, \ 935 netbsd32_statp_t ub); } 936#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 937442 STD { int|netbsd32|50|__semctl(int semid, int semnum, \ 938 int cmd, ... netbsd32_semunp_t arg); } 939#else 940442 EXCL ____semctl50 941#endif 942#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 943443 STD { int|netbsd32|50|shmctl(int shmid, int cmd, \ 944 netbsd32_shmid_dsp_t buf); } 945#else 946443 EXCL ____shmctl50 947#endif 948#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 949444 STD { int|netbsd32|50|msgctl(int msqid, int cmd, \ 950 netbsd32_msqid_dsp_t buf); } 951#else 952444 EXCL ____msgctl50 953#endif 954445 STD { int|netbsd32|50|getrusage(int who, \ 955 netbsd32_rusagep_t rusage); } 956446 STD { int|netbsd32|50|timer_settime(timer_t timerid, \ 957 int flags, const netbsd32_itimerspecp_t value, \ 958 netbsd32_itimerspecp_t ovalue); } 959447 STD { int|netbsd32|50|timer_gettime(timer_t timerid, \ 960 netbsd32_itimerspecp_t value); } 961#if defined(NTP) || !defined(_KERNEL_OPT) 962448 STD { int|netbsd32|50|ntp_gettime( \ 963 netbsd32_ntptimevalp_t ntvp); } 964#else 965448 EXCL ___ntp_gettime50 966#endif 967449 STD { int|netbsd32|50|wait4(int pid, \ 968 netbsd32_intp status, \ 969 int options, netbsd32_rusagep_t rusage); } 970450 STD { int|netbsd32|50|mknod(const netbsd32_charp path, \ 971 mode_t mode, netbsd32_dev_t dev); } 972451 STD { int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \ 973 netbsd32_size_t fh_size, netbsd32_statp_t sb); } 974