syscalls.master revision 1.75
1 $NetBSD: syscalls.master,v 1.75 2009/01/11 02:45:49 christos 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_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 netbsd32_syscall(int code, \ 68 ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } 691 STD { void netbsd32_exit(int rval); } 702 NOARGS { int sys_fork(void); } 713 STD { netbsd32_ssize_t netbsd32_read(int fd, \ 72 netbsd32_voidp buf, netbsd32_size_t nbyte); } 734 STD { netbsd32_ssize_t netbsd32_write(int fd, \ 74 netbsd32_voidp buf, netbsd32_size_t nbyte); } 755 STD { int netbsd32_open(netbsd32_charp path, int flags, \ 76 ... mode_t mode); } 776 STD { int netbsd32_close(int fd); } 787 COMPAT_50 { int netbsd32_wait4(int pid, netbsd32_intp status, \ 79 int options, netbsd32_rusage50p_t rusage); } 808 COMPAT_43 { int netbsd32_ocreat(netbsd32_charp path, \ 81 mode_t mode); } 829 STD { int netbsd32_link(netbsd32_charp path, \ 83 netbsd32_charp link); } 8410 STD { int netbsd32_unlink(netbsd32_charp path); } 8511 OBSOL execv 8612 STD { int netbsd32_chdir(netbsd32_charp path); } 8713 STD { int netbsd32_fchdir(int fd); } 8814 COMPAT_50 { int netbsd32_mknod(netbsd32_charp path, mode_t mode, \ 89 uint32_t dev); } 9015 STD { int netbsd32_chmod(netbsd32_charp path, mode_t mode); } 9116 STD { int netbsd32_chown(netbsd32_charp path, uid_t uid, \ 92 gid_t gid); } 9317 STD { int netbsd32_break(netbsd32_charp nsize); } 9418 COMPAT_20 { int netbsd32_getfsstat(netbsd32_statfsp_t buf, \ 95 netbsd32_long bufsize, int flags); } 9619 COMPAT_43 { netbsd32_long netbsd32_olseek(int fd, \ 97 netbsd32_long offset, int whence); } 9820 NOARGS { pid_t sys_getpid(void); } 9921 STD { int netbsd32_mount(netbsd32_charp type, \ 100 netbsd32_charp path, int flags, \ 101 netbsd32_voidp data); } 10222 STD { int netbsd32_unmount(netbsd32_charp path, \ 103 int flags); } 10423 STD { int netbsd32_setuid(uid_t uid); } 10524 NOARGS { uid_t sys_getuid(void); } 10625 NOARGS { uid_t sys_geteuid(void); } 10726 STD { int netbsd32_ptrace(int req, pid_t pid, \ 108 netbsd32_voidp addr, int data); } 10927 STD { netbsd32_ssize_t netbsd32_recvmsg(int s, \ 110 netbsd32_msghdrp_t msg, int flags); } 11128 STD { netbsd32_ssize_t netbsd32_sendmsg(int s, \ 112 netbsd32_msghdrp_t msg, int flags); } 11329 STD { netbsd32_ssize_t netbsd32_recvfrom(int s, \ 114 netbsd32_voidp buf, netbsd32_size_t len, \ 115 int flags, netbsd32_sockaddrp_t from, \ 116 netbsd32_intp fromlenaddr); } 11730 STD { int netbsd32_accept(int s, \ 118 netbsd32_sockaddrp_t name, \ 119 netbsd32_intp anamelen); } 12031 STD { int netbsd32_getpeername(int fdes, \ 121 netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 12232 STD { int netbsd32_getsockname(int fdes, \ 123 netbsd32_sockaddrp_t asa, netbsd32_intp alen); } 12433 STD { int netbsd32_access(netbsd32_charp path, int flags); } 12534 STD { int netbsd32_chflags(netbsd32_charp path, \ 126 netbsd32_u_long flags); } 12735 STD { int netbsd32_fchflags(int fd, \ 128 netbsd32_u_long flags); } 12936 NOARGS { void sys_sync(void); } 13037 STD { int netbsd32_kill(int pid, int signum); } 13138 COMPAT_43 { int netbsd32_stat43(netbsd32_charp path, \ 132 netbsd32_stat43p_t ub); } 13339 NOARGS { pid_t sys_getppid(void); } 13440 COMPAT_43 { int netbsd32_lstat43(netbsd32_charp path, \ 135 netbsd32_stat43p_t ub); } 13641 STD { int netbsd32_dup(int fd); } 13742 NOARGS { int sys_pipe(void); } 13843 NOARGS { gid_t sys_getegid(void); } 13944 STD { int netbsd32_profil(netbsd32_voidp samples, \ 140 netbsd32_size_t size, netbsd32_u_long offset, \ 141 u_int scale); } 14245 STD { int netbsd32_ktrace(netbsd32_charp fname, int ops, \ 143 int facs, int pid); } 14446 STD { int netbsd32_sigaction(int signum, \ 145 netbsd32_sigactionp_t nsa, \ 146 netbsd32_sigactionp_t osa); } 14747 NOARGS { gid_t sys_getgid(void); } 14848 COMPAT_13 { int netbsd32_sigprocmask(int how, \ 149 int mask); } sigprocmask13 15049 STD { int netbsd32___getlogin(netbsd32_charp namebuf, \ 151 u_int namelen); } 15250 STD { int netbsd32_setlogin(netbsd32_charp namebuf); } 15351 STD { int netbsd32_acct(netbsd32_charp path); } 15452 COMPAT_13 { int sys_sigpending(void); } sigpending13 15553 COMPAT_13 { int netbsd32_sigaltstack13( \ 156 netbsd32_sigaltstack13p_t nss, \ 157 netbsd32_sigaltstack13p_t oss); } 15854 STD { int netbsd32_ioctl(int fd, netbsd32_u_long com, \ 159 ... netbsd32_voidp data); } 16055 COMPAT_12 { int netbsd32_reboot(int opt); } 16156 STD { int netbsd32_revoke(netbsd32_charp path); } 16257 STD { int netbsd32_symlink(netbsd32_charp path, \ 163 netbsd32_charp link); } 16458 STD { int netbsd32_readlink(netbsd32_charp path, \ 165 netbsd32_charp buf, netbsd32_size_t count); } 16659 STD { int netbsd32_execve(netbsd32_charp path, \ 167 netbsd32_charpp argp, netbsd32_charpp envp); } 16860 STD { mode_t netbsd32_umask(mode_t newmask); } 16961 STD { int netbsd32_chroot(netbsd32_charp path); } 17062 COMPAT_43 { int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); } 17163 COMPAT_43 { int netbsd32_ogetkerninfo(int op, \ 172 netbsd32_charp where, netbsd32_intp size, \ 173 int arg); } 17464 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 17565 COMPAT_12 { int netbsd32_msync(netbsd32_voidp addr, \ 176 netbsd32_size_t len); } 177; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 17866 NOARGS { int sys_vfork(void); } 17967 OBSOL vread 18068 OBSOL vwrite 18169 STD { int netbsd32_sbrk(netbsd32_intptr_t incr); } 18270 STD { int netbsd32_sstk(int incr); } 18371 COMPAT_43 { int netbsd32_ommap(netbsd32_voidp addr, \ 184 netbsd32_size_t len, int prot, int flags, int fd, \ 185 netbsd32_long pos); } 18672 STD { int netbsd32_ovadvise(int anom); } vadvise 18773 STD { int netbsd32_munmap(netbsd32_voidp addr, \ 188 netbsd32_size_t len); } 18974 STD { int netbsd32_mprotect(netbsd32_voidp addr, \ 190 netbsd32_size_t len, int prot); } 19175 STD { int netbsd32_madvise(netbsd32_voidp addr, \ 192 netbsd32_size_t len, int behav); } 19376 OBSOL vhangup 19477 OBSOL vlimit 19578 STD { int netbsd32_mincore(netbsd32_voidp addr, \ 196 netbsd32_size_t len, netbsd32_charp vec); } 19779 STD { int netbsd32_getgroups(int gidsetsize, \ 198 netbsd32_gid_tp gidset); } 19980 STD { int netbsd32_setgroups(int gidsetsize, \ 200 netbsd32_gid_tp gidset); } 20181 NOARGS { int sys_getpgrp(void); } 20282 STD { int netbsd32_setpgid(int pid, int pgid); } 20383 COMPAT_50 { int netbsd32_setitimer(int which, \ 204 netbsd32_itimerval50p_t itv, \ 205 netbsd32_itimerval50p_t oitv); } 20684 COMPAT_43 { int sys_wait(void); } owait 20785 COMPAT_12 { int netbsd32_oswapon(netbsd32_charp name); } 20886 COMPAT_50 { int netbsd32_getitimer(int which, \ 209 netbsd32_itimerval50p_t itv); } 21087 COMPAT_43 { int netbsd32_ogethostname(netbsd32_charp hostname, \ 211 u_int len); } 21288 COMPAT_43 { int netbsd32_osethostname(netbsd32_charp hostname, \ 213 u_int len); } 21489 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 21590 STD { int netbsd32_dup2(int from, int to); } 21691 UNIMPL getdopt 21792 STD { int netbsd32_fcntl(int fd, int cmd, \ 218 ... netbsd32_voidp arg); } 21993 COMPAT_50 { int netbsd32_select(int nd, netbsd32_fd_setp_t in, \ 220 netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ 221 netbsd32_timeval50p_t tv); } 22294 UNIMPL setdopt 22395 STD { int netbsd32_fsync(int fd); } 22496 STD { int netbsd32_setpriority(int which, int who, \ 225 int prio); } 22697 COMPAT_30 { int netbsd32_socket(int domain, int type, \ 227 int protocol); } 22898 STD { int netbsd32_connect(int s, \ 229 netbsd32_sockaddrp_t name, int namelen); } 23099 COMPAT_43 { int netbsd32_oaccept(int s, netbsd32_voidp name, \ 231 netbsd32_intp anamelen); } 232100 STD { int netbsd32_getpriority(int which, int who); } 233101 COMPAT_43 { int netbsd32_osend(int s, netbsd32_voidp buf, \ 234 int len, int flags); } 235102 COMPAT_43 { int netbsd32_orecv(int s, netbsd32_voidp buf, \ 236 int len, int flags); } 237103 COMPAT_13 { int netbsd32_sigreturn( \ 238 netbsd32_sigcontextp_t sigcntxp); } sigreturn13 239104 STD { int netbsd32_bind(int s, netbsd32_sockaddrp_t name, \ 240 int namelen); } 241105 STD { int netbsd32_setsockopt(int s, int level, int name, \ 242 netbsd32_voidp val, int valsize); } 243106 STD { int netbsd32_listen(int s, int backlog); } 244107 OBSOL vtimes 245108 COMPAT_43 { int netbsd32_osigvec(int signum, \ 246 netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); } 247109 COMPAT_43 { int netbsd32_sigblock(int mask); } 248110 COMPAT_43 { int netbsd32_sigsetmask(int mask); } 249111 COMPAT_13 { int netbsd32_sigsuspend(int mask); } sigsuspend13 250112 COMPAT_43 { int netbsd32_osigstack(netbsd32_sigstackp_t nss, \ 251 netbsd32_sigstackp_t oss); } 252113 COMPAT_43 { int netbsd32_orecvmsg(int s, \ 253 netbsd32_omsghdrp_t msg, int flags); } 254114 COMPAT_43 { int netbsd32_osendmsg(int s, netbsd32_voidp msg, \ 255 int flags); } 256115 OBSOL vtrace 257116 COMPAT_50 { int netbsd32_gettimeofday(netbsd32_timeval50p_t tp, \ 258 netbsd32_timezonep_t tzp); } 259117 COMPAT_50 { int netbsd32_getrusage(int who, \ 260 netbsd32_rusage50p_t rusage); } 261118 STD { int netbsd32_getsockopt(int s, int level, int name, \ 262 netbsd32_voidp val, netbsd32_intp avalsize); } 263119 OBSOL resuba 264120 STD { netbsd32_ssize_t netbsd32_readv(int fd, \ 265 netbsd32_iovecp_t iovp, int iovcnt); } 266121 STD { netbsd32_ssize_t netbsd32_writev(int fd, \ 267 netbsd32_iovecp_t iovp, int iovcnt); } 268122 COMPAT_50 { int netbsd32_settimeofday(netbsd32_timeval50p_t tv, \ 269 netbsd32_timezonep_t tzp); } 270123 STD { int netbsd32_fchown(int fd, uid_t uid, gid_t gid); } 271124 STD { int netbsd32_fchmod(int fd, mode_t mode); } 272125 COMPAT_43 { int netbsd32_orecvfrom(int s, netbsd32_voidp buf, \ 273 netbsd32_size_t len, int flags, \ 274 netbsd32_voidp from, netbsd32_intp fromlenaddr); } 275126 STD { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 276127 STD { int netbsd32_setregid(gid_t rgid, gid_t egid); } 277128 STD { int netbsd32_rename(netbsd32_charp from, \ 278 netbsd32_charp to); } 279129 COMPAT_43 { int netbsd32_otruncate(netbsd32_charp path, \ 280 netbsd32_long length); } 281130 COMPAT_43 { int netbsd32_oftruncate(int fd, \ 282 netbsd32_long length); } 283131 STD { int netbsd32_flock(int fd, int how); } 284132 STD { int netbsd32_mkfifo(netbsd32_charp path, \ 285 mode_t mode); } 286133 STD { netbsd32_ssize_t netbsd32_sendto(int s, \ 287 netbsd32_voidp buf, netbsd32_size_t len, \ 288 int flags, netbsd32_sockaddrp_t to, int tolen); } 289134 STD { int netbsd32_shutdown(int s, int how); } 290135 STD { int netbsd32_socketpair(int domain, int type, \ 291 int protocol, netbsd32_intp rsv); } 292136 STD { int netbsd32_mkdir(netbsd32_charp path, \ 293 mode_t mode); } 294137 STD { int netbsd32_rmdir(netbsd32_charp path); } 295138 COMPAT_50 { int netbsd32_utimes(netbsd32_charp path, \ 296 netbsd32_timeval50p_t tptr); } 297139 OBSOL 4.2 sigreturn 298140 COMPAT_50 { int netbsd32_adjtime(netbsd32_timeval50p_t delta, \ 299 netbsd32_timeval50p_t olddelta); } 300141 COMPAT_43 { int netbsd32_ogetpeername(int fdes, \ 301 netbsd32_voidp asa, netbsd32_intp alen); } 302142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 303143 COMPAT_43 { int netbsd32_sethostid(int32_t hostid); } 304144 COMPAT_43 { int netbsd32_ogetrlimit(int which, \ 305 netbsd32_orlimitp_t rlp); } 306145 COMPAT_43 { int netbsd32_osetrlimit(int which, \ 307 netbsd32_orlimitp_t rlp); } 308146 COMPAT_43 { int netbsd32_killpg(int pgid, int signum); } 309147 NOARGS { int sys_setsid(void); } 310148 STD { int netbsd32_quotactl(netbsd32_charp path, int cmd, \ 311 int uid, netbsd32_voidp arg); } 312149 COMPAT_43 { int sys_quota(void); } oquota 313150 COMPAT_43 { int netbsd32_ogetsockname(int fdec, \ 314 netbsd32_voidp asa, netbsd32_intp alen); } 315 316; Syscalls 151-180 inclusive are reserved for vendor-specific 317; system calls. (This includes various calls added for compatibity 318; with other Unix variants.) 319; Some of these calls are now supported by BSD... 320151 UNIMPL 321152 UNIMPL 322153 UNIMPL 323154 UNIMPL 324155 STD { int netbsd32_nfssvc(int flag, netbsd32_voidp argp); } 325156 COMPAT_43 { int netbsd32_ogetdirentries(int fd, \ 326 netbsd32_charp buf, u_int count, \ 327 netbsd32_longp basep); } 328157 COMPAT_20 { int netbsd32_statfs(netbsd32_charp path, \ 329 netbsd32_statfsp_t buf); } 330158 COMPAT_20 { int netbsd32_fstatfs(int fd, \ 331 netbsd32_statfsp_t buf); } 332159 UNIMPL 333160 UNIMPL 334161 COMPAT_30 { int netbsd32_getfh(netbsd32_charp fname, \ 335 netbsd32_compat_30_fhandlep_t fhp); } 336162 COMPAT_09 { int netbsd32_ogetdomainname( \ 337 netbsd32_charp domainname, int len); } 338163 COMPAT_09 { int netbsd32_osetdomainname( \ 339 netbsd32_charp domainname, int len); } 340164 COMPAT_09 { int netbsd32_uname(netbsd32_outsnamep_t name); } 341165 STD { int netbsd32_sysarch(int op, netbsd32_voidp parms); } 342166 UNIMPL 343167 UNIMPL 344168 UNIMPL 345#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 346169 COMPAT_10 { int netbsd32_semsys(int which, int a2, int a3, \ 347 int a4, int a5); } osemsys 348#else 349169 EXCL netbsd32_semsys 350#endif 351#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 352170 COMPAT_10 { int netbsd32_msgsys(int which, int a2, int a3, \ 353 int a4, int a5, int a6); } omsgsys 354#else 355170 EXCL netbsd32_msgsys 356#endif 357#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 358171 COMPAT_10 { int netbsd32_shmsys(int which, int a2, int a3, \ 359 int a4); } oshmsys 360#else 361171 EXCL netbsd32_shmsys 362#endif 363172 UNIMPL 364173 STD { netbsd32_ssize_t netbsd32_pread(int fd, \ 365 netbsd32_voidp buf, netbsd32_size_t nbyte, \ 366 int pad, off_t offset); } 367174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, \ 368 netbsd32_voidp buf, netbsd32_size_t nbyte, \ 369 int pad, off_t offset); } 370175 COMPAT_30 { int netbsd32_ntp_gettime( \ 371 netbsd32_ntptimeval50p_t ntvp); } 372176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); } 373177 UNIMPL 374178 UNIMPL 375179 UNIMPL 376180 UNIMPL 377 378; Syscalls 180-199 are used by/reserved for BSD 379181 STD { int netbsd32_setgid(gid_t gid); } 380182 STD { int netbsd32_setegid(gid_t egid); } 381183 STD { int netbsd32_seteuid(uid_t euid); } 382#if defined(LFS) || !defined(_KERNEL_OPT) 383184 STD { int netbsd32_lfs_bmapv(netbsd32_fsid_tp_t fsidp, \ 384 netbsd32_block_infop_t blkiov, int blkcnt); } 385185 STD { int netbsd32_lfs_markv(netbsd32_fsid_tp_t fsidp, \ 386 netbsd32_block_infop_t blkiov, int blkcnt); } 387186 STD { int netbsd32_lfs_segclean(netbsd32_fsid_tp_t fsidp, \ 388 netbsd32_u_long segment); } 389187 COMPAT_50 { int netbsd32_lfs_segwait(netbsd32_fsid_tp_t fsidp, \ 390 netbsd32_timeval50p_t tv); } 391#else 392184 EXCL netbsd32_lfs_bmapv 393185 EXCL netbsd32_lfs_markv 394186 EXCL netbsd32_lfs_segclean 395187 EXCL netbsd32_lfs_segwait 396#endif 397188 COMPAT_12 { int netbsd32_stat12(netbsd32_charp path, \ 398 netbsd32_stat12p_t ub); } 399189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); } 400190 COMPAT_12 { int netbsd32_lstat12(netbsd32_charp path, \ 401 netbsd32_stat12p_t ub); } 402191 STD { netbsd32_long netbsd32_pathconf(netbsd32_charp path, \ 403 int name); } 404192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); } 405193 UNIMPL 406194 STD { int netbsd32_getrlimit(int which, \ 407 netbsd32_rlimitp_t rlp); } 408195 STD { int netbsd32_setrlimit(int which, \ 409 netbsd32_rlimitp_t rlp); } 410196 COMPAT_12 { int netbsd32_getdirentries(int fd, \ 411 netbsd32_charp buf, u_int count, \ 412 netbsd32_longp basep); } 413197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, \ 414 netbsd32_size_t len, int prot, int flags, int fd, \ 415 netbsd32_long pad, off_t pos); } 416198 INDIR { quad_t netbsd32____syscall(quad_t code, \ 417 ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); } 418199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, \ 419 int whence); } 420200 STD { int netbsd32_truncate(netbsd32_charp path, int pad, \ 421 off_t length); } 422201 STD { int netbsd32_ftruncate(int fd, int pad, \ 423 off_t length); } 424202 STD { int netbsd32___sysctl(netbsd32_intp name, \ 425 u_int namelen, netbsd32_voidp old, \ 426 netbsd32_size_tp oldlenp, netbsd32_voidp new, \ 427 netbsd32_size_t newlen); } 428203 STD { int netbsd32_mlock(netbsd32_voidp addr, \ 429 netbsd32_size_t len); } 430204 STD { int netbsd32_munlock(netbsd32_voidp addr, \ 431 netbsd32_size_t len); } 432205 STD { int netbsd32_undelete(netbsd32_charp path); } 433206 COMPAT_50 { int netbsd32_futimes(int fd, \ 434 netbsd32_timeval50p_t tptr); } 435207 STD { int netbsd32_getpgid(pid_t pid); } 436208 STD { int netbsd32_reboot(int opt, \ 437 netbsd32_charp bootstr); } 438209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, \ 439 u_int nfds, int timeout); } 440210 UNIMPL 441211 UNIMPL 442212 UNIMPL 443213 UNIMPL 444214 UNIMPL 445215 UNIMPL 446216 UNIMPL 447217 UNIMPL 448218 UNIMPL 449219 UNIMPL 450; System calls 220-300 are reserved for use by NetBSD 451#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 452220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, \ 453 int cmd, netbsd32_semunu_t arg); } 454221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, \ 455 int semflg); } 456222 STD { int netbsd32_semop(int semid, \ 457 netbsd32_sembufp_t sops, netbsd32_size_t nsops); } 458223 STD { int netbsd32_semconfig(int flag); } 459#else 460220 EXCL compat_14_netbsd32_semctl 461221 EXCL netbsd32_semget 462222 EXCL netbsd32_semop 463223 EXCL netbsd32_semconfig 464#endif 465#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 466224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, \ 467 netbsd32_msqid_ds14p_t buf); } 468225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); } 469226 STD { int netbsd32_msgsnd(int msqid, netbsd32_voidp msgp, \ 470 netbsd32_size_t msgsz, int msgflg); } 471227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, \ 472 netbsd32_voidp msgp, netbsd32_size_t msgsz, \ 473 netbsd32_long msgtyp, int msgflg); } 474#else 475224 EXCL compat_14_netbsd32_msgctl 476225 EXCL netbsd32_msgget 477226 EXCL netbsd32_msgsnd 478227 EXCL netbsd32_msgrcv 479#endif 480#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 481228 STD { netbsd32_voidp netbsd32_shmat(int shmid, \ 482 netbsd32_voidp shmaddr, int shmflg); } 483229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, \ 484 netbsd32_shmid_dsp_t buf); } 485230 STD { int netbsd32_shmdt(netbsd32_voidp shmaddr); } 486231 STD { int netbsd32_shmget(netbsd32_key_t key, \ 487 netbsd32_size_t size, int shmflg); } 488#else 489228 EXCL netbsd32_shmat 490229 EXCL compat_14_netbsd32_shmctl 491230 EXCL netbsd32_shmdt 492231 EXCL netbsd32_shmget 493#endif 494232 COMPAT_50 { int netbsd32_clock_gettime( \ 495 netbsd32_clockid_t clock_id, \ 496 netbsd32_timespec50p_t tp); } 497233 COMPAT_50 { int netbsd32_clock_settime( \ 498 netbsd32_clockid_t clock_id, \ 499 netbsd32_timespec50p_t tp); } 500234 COMPAT_50 { int netbsd32_clock_getres( \ 501 netbsd32_clockid_t clock_id, \ 502 netbsd32_timespec50p_t tp); } 503235 STD { int netbsd32_timer_create( \ 504 netbsd32_clockid_t clock_id, \ 505 netbsd32_sigeventp_t evp, \ 506 netbsd32_timerp_t timerid); } 507236 STD { int netbsd32_timer_delete(netbsd32_timer_t timerid); } 508237 COMPAT_50 { int netbsd32_timer_settime(netbsd32_timer_t timerid, \ 509 int flags, \ 510 netbsd32_itimerspec50p_t value, \ 511 netbsd32_itimerspec50p_t ovalue); } 512238 COMPAT_50 { int netbsd32_timer_gettime(netbsd32_timer_t timerid, \ 513 netbsd32_itimerspec50p_t value); } 514239 STD { int netbsd32_timer_getoverrun( \ 515 netbsd32_timer_t timerid); } 516; 517; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 518; 519240 COMPAT_50 { int netbsd32_nanosleep(netbsd32_timespec50p_t rqtp, \ 520 netbsd32_timespec50p_t rmtp); } 521241 STD { int netbsd32_fdatasync(int fd); } 522242 STD { int netbsd32_mlockall(int flags); } 523243 NOARGS { int sys_munlockall(void); } 524244 COMPAT_50 { int netbsd32___sigtimedwait(netbsd32_sigsetp_t set, \ 525 netbsd32_siginfop_t info, \ 526 netbsd32_timespec50p_t timeout); } 527245 UNIMPL 528246 UNIMPL 529#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL_OPT) && defined(_LIBC)) 530247 STD { int netbsd32__ksem_init(unsigned int value, \ 531 netbsd32_semidp_t idp); } 532248 STD { int netbsd32__ksem_open(netbsd32_charp name, \ 533 int oflag, mode_t mode, unsigned int value, \ 534 netbsd32_semidp_t idp); } 535249 STD { int netbsd32__ksem_unlink(netbsd32_charp name); } 536250 STD { int netbsd32__ksem_close(netbsd32_intptr_t id); } 537251 STD { int netbsd32__ksem_post(netbsd32_intptr_t id); } 538252 STD { int netbsd32__ksem_wait(netbsd32_intptr_t id); } 539253 STD { int netbsd32__ksem_trywait(netbsd32_intptr_t id); } 540254 STD { int netbsd32__ksem_getvalue(netbsd32_intptr_t id, \ 541 netbsd32_intp value); } 542255 STD { int netbsd32__ksem_destroy(netbsd32_intptr_t id); } 543256 UNIMPL sys__ksem_timedwait 544#else 545247 EXCL sys__ksem_init 546248 EXCL sys__ksem_open 547249 EXCL sys__ksem_unlink 548250 EXCL sys__ksem_close 549251 EXCL sys__ksem_post 550252 EXCL sys__ksem_wait 551253 EXCL sys__ksem_trywait 552254 EXCL sys__ksem_getvalue 553255 EXCL sys__ksem_destroy 554256 UNIMPL sys__ksem_timedwait 555#endif 556257 UNIMPL 557258 UNIMPL 558259 UNIMPL 559260 UNIMPL 560261 UNIMPL 561262 UNIMPL 562263 UNIMPL 563264 UNIMPL 564265 UNIMPL 565266 UNIMPL 566267 UNIMPL 567268 UNIMPL 568269 UNIMPL 569270 STD { int netbsd32___posix_rename(netbsd32_charp from, \ 570 netbsd32_charp to); } 571271 STD { int netbsd32_swapctl(int cmd, netbsd32_voidp arg, \ 572 int misc); } 573272 COMPAT_30 { int netbsd32_getdents(int fd, netbsd32_charp buf, \ 574 netbsd32_size_t count); } 575273 STD { int netbsd32_minherit(netbsd32_voidp addr, \ 576 netbsd32_size_t len, int inherit); } 577274 STD { int netbsd32_lchmod(netbsd32_charp path, \ 578 mode_t mode); } 579275 STD { int netbsd32_lchown(netbsd32_charp path, uid_t uid, \ 580 gid_t gid); } 581276 COMPAT_50 { int netbsd32_lutimes(netbsd32_charp path, \ 582 netbsd32_timeval50p_t tptr); } 583277 STD { int netbsd32___msync13(netbsd32_voidp addr, \ 584 netbsd32_size_t len, int flags); } 585278 COMPAT_30 { int netbsd32___stat13(netbsd32_charp path, \ 586 netbsd32_stat13p_t ub); } 587279 COMPAT_30 { int netbsd32___fstat13(int fd, \ 588 netbsd32_stat13p_t sb); } 589280 COMPAT_30 { int netbsd32___lstat13(netbsd32_charp path, \ 590 netbsd32_stat13p_t ub); } 591281 STD { int netbsd32___sigaltstack14(\ 592 netbsd32_sigaltstackp_t nss, \ 593 netbsd32_sigaltstackp_t oss); } 594282 NOARGS { int sys___vfork14(void); } 595283 STD { int netbsd32___posix_chown(netbsd32_charp path, \ 596 uid_t uid, gid_t gid); } 597284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, \ 598 gid_t gid); } 599285 STD { int netbsd32___posix_lchown(netbsd32_charp path, \ 600 uid_t uid, gid_t gid); } 601286 STD { pid_t netbsd32_getsid(pid_t pid); } 602287 STD { int netbsd32___clone(int flags, \ 603 netbsd32_voidp stack); } 604288 STD { int netbsd32_fktrace(int fd, int ops, int facs, \ 605 int pid); } 606289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, \ 607 netbsd32_iovecp_t iovp, int iovcnt, int pad, \ 608 off_t offset); } 609290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, \ 610 netbsd32_iovecp_t iovp, int iovcnt, int pad, \ 611 off_t offset); } 612291 STD { int netbsd32___sigaction14(int signum, \ 613 netbsd32_sigactionp_t nsa, \ 614 netbsd32_sigactionp_t osa); } 615292 STD { int netbsd32___sigpending14(netbsd32_sigsetp_t set); } 616293 STD { int netbsd32___sigprocmask14(int how, \ 617 netbsd32_sigsetp_t set, \ 618 netbsd32_sigsetp_t oset); } 619294 STD { int netbsd32___sigsuspend14(netbsd32_sigsetp_t set); } 620295 COMPAT_16 { int netbsd32___sigreturn14( \ 621 netbsd32_sigcontextp_t sigcntxp); } 622296 STD { int netbsd32___getcwd(netbsd32_charp bufp, \ 623 netbsd32_size_t length); } 624297 STD { int netbsd32_fchroot(int fd); } 625298 COMPAT_30 { int netbsd32_fhopen(netbsd32_fhandlep_t fhp, \ 626 int flags); } 627299 COMPAT_30 { int netbsd32_fhstat(netbsd32_fhandlep_t fhp, \ 628 netbsd32_stat13p_t sb); } 629300 COMPAT_20 { int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \ 630 netbsd32_stat50p_t buf); } 631#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 632301 COMPAT_50 { int netbsd32___semctl14(int semid, int semnum, \ 633 int cmd, ... netbsd32_semun50p_t arg); } 634#else 635301 EXCL __semctl14 636#endif 637#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 638302 COMPAT_50 { int netbsd32___msgctl13(int msqid, int cmd, \ 639 netbsd32_msqid_ds50p_t buf); } 640#else 641302 EXCL __msgctl13 642#endif 643#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 644303 COMPAT_50 { int netbsd32___shmctl13(int shmid, int cmd, \ 645 netbsd32_shmid_ds50p_t buf); } 646#else 647303 EXCL __shmctl13 648#endif 649304 STD { int netbsd32_lchflags(netbsd32_charp path, \ 650 netbsd32_u_long flags); } 651305 NOARGS { int sys_issetugid(void); } 652306 STD { int netbsd32_utrace(netbsd32_charp label, \ 653 netbsd32_voidp addr, netbsd32_size_t len); } 654307 STD { int netbsd32_getcontext(netbsd32_ucontextp ucp); } 655308 STD { int netbsd32_setcontext(netbsd32_ucontextp ucp, \ 656 uint32_t flags, netbsd32_lwpidp new_lwp); } 657309 STD { int netbsd32__lwp_create(netbsd32_ucontextp ucp, \ 658 netbsd32_u_long flags, netbsd32_lwpidp new_lwp); } 659310 NOARGS { int sys__lwp_exit(void); } 660311 NOARGS { lwpid_t sys__lwp_self(void); } 661312 STD { int netbsd32__lwp_wait(lwpid_t wait_for, \ 662 netbsd32_lwpidp departed); } 663313 STD { int netbsd32__lwp_suspend(lwpid_t target); } 664314 STD { int netbsd32__lwp_continue(lwpid_t target); } 665315 STD { int netbsd32__lwp_wakeup(lwpid_t target); } 666316 NOARGS { netbsd32_voidp sys__lwp_getprivate(void); } 667317 STD { void netbsd32__lwp_setprivate(netbsd32_voidp ptr); } 668318 STD { int netbsd32__lwp_kill(lwpid_t target, int signo); } 669319 STD { int netbsd32__lwp_detach(lwpid_t target); } 670320 COMPAT_50 { int netbsd32__lwp_park(netbsd32_timespec50p_t ts, \ 671 lwpid_t unpark, netbsd32_voidp hint, \ 672 netbsd32_voidp unparkhint); } 673321 STD { int netbsd32__lwp_unpark(lwpid_t target, \ 674 netbsd32_voidp hint); } 675322 STD { netbsd32_size_t netbsd32__lwp_unpark_all( \ 676 netbsd32_lwpidp targets, netbsd32_size_t ntargets, \ 677 netbsd32_voidp hint); } 678323 STD { int netbsd32__lwp_setname(lwpid_t target, \ 679 netbsd32_charp name); } 680324 STD { int netbsd32__lwp_getname(lwpid_t target, \ 681 netbsd32_charp name, netbsd32_size_t len); } 682325 STD { int netbsd32__lwp_ctl(int features, \ 683 netbsd32_pointer_t address); } 684326 UNIMPL 685327 UNIMPL 686328 UNIMPL 687329 UNIMPL 688330 STD { int netbsd32_sa_register(netbsd32_sa_upcall_t new, \ 689 netbsd32_sa_upcallp_t old, int flags, \ 690 netbsd32_ssize_t stackinfo_offset); } 691331 STD { int netbsd32_sa_stacks(int num, \ 692 netbsd32_stackp_t stacks); } 693332 NOARGS { int sys_sa_enable(void); } 694333 STD { int netbsd32_sa_setconcurrency(int concurrency); } 695334 NOARGS { int sys_sa_yield(void); } 696335 STD { int netbsd32_sa_preempt(int sa_id); } 697336 OBSOL sys_sa_unblockyield 698337 UNIMPL 699338 UNIMPL 700339 UNIMPL 701340 STD { int netbsd32___sigaction_sigtramp(int signum, \ 702 netbsd32_sigactionp_t nsa, \ 703 netbsd32_sigactionp_t osa, \ 704 netbsd32_voidp tramp, int vers); } 705341 UNIMPL 706342 UNIMPL 707343 STD { int netbsd32_rasctl(netbsd32_voidp addr, \ 708 netbsd32_size_t len, int op); } 709344 NOARGS { int sys_kqueue(void); } 710345 COMPAT_50 { int netbsd32_kevent(int fd, \ 711 netbsd32_keventp_t changelist, \ 712 netbsd32_size_t nchanges, \ 713 netbsd32_keventp_t eventlist, \ 714 netbsd32_size_t nevents, \ 715 netbsd32_timespec50p_t timeout); } 716; Scheduling system calls. 717346 STD { int netbsd32__sched_setparam(pid_t pid, lwpid_t lid, \ 718 int policy, const netbsd32_sched_paramp_t params); } 719347 STD { int netbsd32__sched_getparam(pid_t pid, lwpid_t lid, \ 720 netbsd32_intp policy, \ 721 netbsd32_sched_paramp_t params); } 722348 STD { int netbsd32__sched_setaffinity(pid_t pid, \ 723 lwpid_t lid, netbsd32_size_t size, \ 724 const netbsd32_cpusetp_t cpuset); } 725349 STD { int netbsd32__sched_getaffinity(pid_t pid, \ 726 lwpid_t lid, netbsd32_size_t size, \ 727 netbsd32_cpusetp_t cpuset); } 728350 NOARGS { int sys_sched_yield(void); } 729351 UNIMPL 730352 UNIMPL 731353 UNIMPL 732354 STD { int netbsd32_fsync_range(int fd, int flags, \ 733 off_t start, off_t length); } 734355 STD { int netbsd32_uuidgen(netbsd32_uuidp_t store, \ 735 int count); } 736356 STD { int netbsd32_getvfsstat(netbsd32_statvfsp_t buf, \ 737 netbsd32_size_t bufsize, int flags); } 738357 STD { int netbsd32_statvfs1(netbsd32_charp path, \ 739 netbsd32_statvfsp_t buf, int flags); } 740358 STD { int netbsd32_fstatvfs1(int fd, \ 741 netbsd32_statvfsp_t buf, int flags); } 742359 COMPAT_30 { int netbsd32_fhstatvfs1(netbsd32_fhandlep_t fhp, \ 743 netbsd32_statvfsp_t buf, int flags); } 744360 STD { int netbsd32_extattrctl(netbsd32_charp path, \ 745 int cmd, netbsd32_charp filename, \ 746 int attrnamespace, netbsd32_charp attrname); } 747361 STD { int netbsd32_extattr_set_file(netbsd32_charp path, \ 748 int attrnamespace, netbsd32_charp attrname, \ 749 netbsd32_voidp data, netbsd32_size_t nbytes); } 750362 STD { int netbsd32_extattr_get_file(netbsd32_charp path, \ 751 int attrnamespace, netbsd32_charp attrname, \ 752 netbsd32_voidp data, netbsd32_size_t nbytes); } 753363 STD { int netbsd32_extattr_delete_file( \ 754 netbsd32_charp path, int attrnamespace, \ 755 netbsd32_charp attrname); } 756364 STD { int netbsd32_extattr_set_fd(int fd, \ 757 int attrnamespace, netbsd32_charp attrname, \ 758 netbsd32_voidp data, netbsd32_size_t nbytes); } 759365 STD { int netbsd32_extattr_get_fd(int fd, \ 760 int attrnamespace, netbsd32_charp attrname, \ 761 netbsd32_voidp data, netbsd32_size_t nbytes); } 762366 STD { int netbsd32_extattr_delete_fd(int fd, \ 763 int attrnamespace, netbsd32_charp attrname); } 764367 STD { int netbsd32_extattr_set_link(netbsd32_charp path, \ 765 int attrnamespace, netbsd32_charp attrname, \ 766 netbsd32_voidp data, netbsd32_size_t nbytes); } 767368 STD { int netbsd32_extattr_get_link(netbsd32_charp path, \ 768 int attrnamespace, netbsd32_charp attrname, \ 769 netbsd32_voidp data, netbsd32_size_t nbytes); } 770369 STD { int netbsd32_extattr_delete_link( \ 771 netbsd32_charp path, int attrnamespace, \ 772 netbsd32_charp attrname); } 773370 STD { int netbsd32_extattr_list_fd(int fd, \ 774 int attrnamespace, netbsd32_voidp data, \ 775 netbsd32_size_t nbytes); } 776371 STD { int netbsd32_extattr_list_file(netbsd32_charp path, \ 777 int attrnamespace, netbsd32_voidp data, \ 778 netbsd32_size_t nbytes); } 779372 STD { int netbsd32_extattr_list_link(netbsd32_charp path, \ 780 int attrnamespace, netbsd32_voidp data, \ 781 netbsd32_size_t nbytes); } 782373 COMPAT_50 { int netbsd32_pselect(int nd, netbsd32_fd_setp_t in, \ 783 netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \ 784 netbsd32_timespec50p_t ts, \ 785 netbsd32_sigsetp_t mask); } 786374 COMPAT_50 { int netbsd32_pollts(netbsd32_pollfdp_t fds, \ 787 u_int nfds, netbsd32_timespec50p_t ts, \ 788 netbsd32_sigsetp_t mask); } 789375 STD { int netbsd32_setxattr(netbsd32_charp path, \ 790 netbsd32_charp name, netbsd32_voidp value, \ 791 netbsd32_size_t size, int flags); } 792376 STD { int netbsd32_lsetxattr(netbsd32_charp path, \ 793 netbsd32_charp name, netbsd32_voidp value, \ 794 netbsd32_size_t size, int flags); } 795377 STD { int netbsd32_fsetxattr(int fd, \ 796 netbsd32_charp name, netbsd32_voidp value, \ 797 netbsd32_size_t size, int flags); } 798378 STD { int netbsd32_getxattr(netbsd32_charp path, \ 799 netbsd32_charp name, netbsd32_voidp value, \ 800 netbsd32_size_t size); } 801379 STD { int netbsd32_lgetxattr(netbsd32_charp path, \ 802 netbsd32_charp name, netbsd32_voidp value, \ 803 netbsd32_size_t size); } 804380 STD { int netbsd32_fgetxattr(int fd, \ 805 netbsd32_charp name, netbsd32_voidp value, \ 806 netbsd32_size_t size); } 807381 STD { int netbsd32_listxattr(netbsd32_charp path, \ 808 netbsd32_charp list, netbsd32_size_t size); } 809382 STD { int netbsd32_llistxattr(netbsd32_charp path, \ 810 netbsd32_charp list, netbsd32_size_t size); } 811383 STD { int netbsd32_flistxattr(int fd, \ 812 netbsd32_charp list, netbsd32_size_t size); } 813384 STD { int netbsd32_removexattr(netbsd32_charp path, \ 814 netbsd32_charp name); } 815385 STD { int netbsd32_lremovexattr(netbsd32_charp path, \ 816 netbsd32_charp name); } 817386 STD { int netbsd32_fremovexattr(int fd, \ 818 netbsd32_charp name); } 819387 COMPAT_50 { int netbsd32___stat30(netbsd32_charp path, \ 820 netbsd32_stat50p_t ub); } 821388 COMPAT_50 { int netbsd32___fstat30(int fd, \ 822 netbsd32_stat50p_t sb); } 823389 COMPAT_50 { int netbsd32___lstat30( \ 824 netbsd32_charp path, netbsd32_stat50p_t ub); } 825390 STD { int netbsd32___getdents30(int fd, \ 826 netbsd32_charp buf, netbsd32_size_t count); } 827391 IGNORED old posix fadvise 828392 COMPAT_30 { int netbsd32___fhstat30( \ 829 netbsd32_fhandlep_t fhp, \ 830 netbsd32_stat50p_t sb); } 831393 COMPAT_50 { int netbsd32_ntp_gettime( \ 832 netbsd32_ntptimeval50p_t ntvp); } 833394 STD { int netbsd32___socket30(int domain, int type, \ 834 int protocol); } 835395 STD { int netbsd32___getfh30(netbsd32_charp fname, \ 836 netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); } 837396 STD { int netbsd32___fhopen40(netbsd32_pointer_t fhp, \ 838 netbsd32_size_t fh_size, int flags); } 839397 STD { int netbsd32___fhstatvfs140( \ 840 netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ 841 netbsd32_statvfsp_t buf, int flags); } 842398 COMPAT_50 { int netbsd32___fhstat40( \ 843 netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\ 844 netbsd32_stat50p_t sb); } 845 846; Asynchronous I/O system calls 847399 UNIMPL { int sys_aio_cancel(int fildes, \ 848 struct aiocb *aiocbp); } 849400 UNIMPL { int sys_aio_error(const struct aiocb *aiocbp); } 850401 UNIMPL { int sys_aio_fsync(int op, struct aiocb *aiocbp); } 851402 UNIMPL { int sys_aio_read(struct aiocb *aiocbp); } 852403 UNIMPL { int sys_aio_return(struct aiocb *aiocbp); } 853404 UNIMPL { int sys_aio_suspend(const struct aiocb *const *list, \ 854 int nent, const netbsd32_timespecp_t timeout); } 855405 UNIMPL { int sys_aio_write(struct aiocb *aiocbp); } 856406 UNIMPL { int sys_lio_listio(int mode, \ 857 struct aiocb *const *list, \ 858 int nent, netbsd32_sigeventp_t sig); } 859 860407 UNIMPL 861408 UNIMPL 862409 UNIMPL 863 864410 UNIMPL { int sys___mount50(const netbsd32_charp type, \ 865 const netbsd32_charp path, int flags, \ 866 netbsd32_voidp data, netbsd32_size_t data_len); } 867411 STD { netbsd32_voidp netbsd32_mremap( \ 868 netbsd32_voidp old_address, \ 869 netbsd32_size_t old_size, \ 870 netbsd32_voidp new_address, \ 871 netbsd32_size_t new_size, int flags); } 872 873412 UNIMPL 874413 UNIMPL 875414 UNIMPL 876415 UNIMPL 877 878416 STD { int netbsd32___posix_fadvise50(int fd, int pad, \ 879 off_t offset, off_t len, int advice); } 880417 STD { int netbsd32___select50(int nd, \ 881 netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \ 882 netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); } 883418 STD { int netbsd32___gettimeofday50( \ 884 netbsd32_timevalp_t tp, netbsd32_voidp tzp); } 885419 STD { int netbsd32___settimeofday50( \ 886 const netbsd32_timevalp_t tv, \ 887 const netbsd32_voidp tzp); } 888420 STD { int netbsd32___utimes50(const netbsd32_charp path, \ 889 const netbsd32_timevalp_t tptr); } 890421 STD { int netbsd32___adjtime50( \ 891 const netbsd32_timevalp_t delta, \ 892 netbsd32_timevalp_t olddelta); } 893#if defined(LFS) || !defined(_KERNEL_OPT) 894422 STD { int netbsd32___lfs_segwait50( \ 895 netbsd32_fsid_tp_t fsidp, \ 896 netbsd32_timevalp_t tv); } 897#else 898422 EXCL __lfs_segwait50 899#endif 900423 STD { int netbsd32___futimes50(int fd, \ 901 const netbsd32_timevalp_t tptr); } 902424 STD { int netbsd32___lutimes50(const netbsd32_charp path, \ 903 const netbsd32_timevalp_t tptr); } 904425 STD { int netbsd32___setitimer50(int which, \ 905 const netbsd32_itimervalp_t itv, \ 906 netbsd32_itimervalp_t oitv); } 907426 STD { int netbsd32___getitimer50(int which, \ 908 netbsd32_itimervalp_t itv); } 909427 STD { int netbsd32___clock_gettime50(clockid_t clock_id, \ 910 netbsd32_timespecp_t tp); } 911428 STD { int netbsd32___clock_settime50(clockid_t clock_id, \ 912 const netbsd32_timespecp_t tp); } 913429 STD { int netbsd32___clock_getres50(clockid_t clock_id, \ 914 netbsd32_timespecp_t tp); } 915430 STD { int netbsd32___nanosleep50( \ 916 const netbsd32_timespecp_t rqtp, \ 917 netbsd32_timespecp_t rmtp); } 918431 STD { int netbsd32_____sigtimedwait50( \ 919 const netbsd32_sigsetp_t set, \ 920 netbsd32_siginfop_t info, \ 921 netbsd32_timespecp_t timeout); } 922432 UNIMPL { int netbsd32___mq_timedsend50(mqd_t mqdes, \ 923 const netbsd32_charp msg_ptr, \ 924 netbsd32_size_t msg_len, unsigned msg_prio, \ 925 const netbsd32_timespecp_t abs_timeout); } 926433 UNIMPL { netbsd32_ssize_t netbsd32___mq_timedreceive50(\ 927 mqd_t mqdes, netbsd32_charp msg_ptr, \ 928 netbsd32_size_t msg_len, \ 929 netbsd32_pointer_t msg_prio, \ 930 const netbsd32_timespecp_t abs_timeout); } 931434 STD { int netbsd32____lwp_park50( \ 932 const netbsd32_timespecp_t ts, \ 933 lwpid_t unpark, const netbsd32_voidp hint, \ 934 const netbsd32_voidp unparkhint); } 935435 STD { int netbsd32___kevent50(int fd, \ 936 const netbsd32_keventp_t changelist, \ 937 netbsd32_size_t nchanges, \ 938 netbsd32_keventp_t eventlist, \ 939 netbsd32_size_t nevents, \ 940 const netbsd32_timespecp_t timeout); } 941436 STD { int netbsd32___pselect50(int nd, \ 942 netbsd32_fd_setp_t in, \ 943 netbsd32_fd_setp_t ou, \ 944 netbsd32_fd_setp_t ex, \ 945 const netbsd32_timespecp_t ts, \ 946 const netbsd32_sigsetp_t mask); } 947437 STD { int netbsd32___pollts50(netbsd32_pollfdp_t fds, \ 948 u_int nfds, const netbsd32_timespecp_t ts, \ 949 const netbsd32_sigsetp_t mask); } 950438 UNIMPL { int netbsd32___aio_suspend50( \ 951 const struct aiocb *const *list, \ 952 int nent, const netbsd32_timespecp_t timeout); } 953439 STD { int netbsd32___stat50(const netbsd32_charp path, \ 954 netbsd32_statp_t ub); } 955440 STD { int netbsd32___fstat50(int fd, netbsd32_statp_t sb); } 956441 STD { int netbsd32___lstat50(const netbsd32_charp path, \ 957 netbsd32_statp_t ub); } 958#if defined(SYSVSEM) || !defined(_KERNEL_OPT) 959442 STD { int netbsd32_____semctl50(int semid, int semnum, \ 960 int cmd, ... netbsd32_semunp_t arg); } 961#else 962442 EXCL ____semctl50 963#endif 964#if defined(SYSVSHM) || !defined(_KERNEL_OPT) 965443 STD { int netbsd32___shmctl50(int shmid, int cmd, \ 966 netbsd32_shmid_dsp_t buf); } 967#else 968443 EXCL ____shmctl50 969#endif 970#if defined(SYSVMSG) || !defined(_KERNEL_OPT) 971444 STD { int netbsd32___msgctl50(int msqid, int cmd, \ 972 netbsd32_msqid_dsp_t buf); } 973#else 974444 EXCL ____msgctl50 975#endif 976445 STD { int netbsd32___getrusage50(int who, \ 977 netbsd32_rusagep_t rusage); } 978446 STD { int netbsd32___timer_settime50(timer_t timerid, \ 979 int flags, const netbsd32_itimerspecp_t value, \ 980 netbsd32_itimerspecp_t ovalue); } 981447 STD { int netbsd32___timer_gettime50(timer_t timerid, \ 982 netbsd32_itimerspecp_t value); } 983#if defined(NTP) || !defined(_KERNEL_OPT) 984448 STD { int netbsd32___ntp_gettime50( \ 985 netbsd32_ntptimevalp_t ntvp); } 986#else 987448 EXCL ___ntp_gettime50 988#endif 989449 STD { int netbsd32___wait450(int pid, \ 990 netbsd32_intp status, \ 991 int options, netbsd32_rusagep_t rusage); } 992450 STD { int netbsd32___mknod50(const netbsd32_charp path, \ 993 mode_t mode, dev_t dev); } 994451 STD { int netbsd32___fhstat50(const netbsd32_voidp fhp, \ 995 netbsd32_size_t fh_size, netbsd32_statp_t sb); } 996