syscalls.master revision 1.4
1 $NetBSD: syscalls.master,v 1.4 1998/10/19 22:39:09 tron 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; NODEF included, but don't define the syscall number 19; NOARGS included, but don't define the syscall args structure 20; INDIR included, but don't define the syscall args structure, 21; and allow it to be "really" varargs. 22; 23; The compat options are defined in the syscalls.conf file, and the 24; compat option name is prefixed to the syscall name. Other than 25; that, they're like NODEF (for 'compat' options), or STD (for 26; 'libcompat' options). 27; 28; The type-dependent arguments are as follows: 29; For STD, NODEF, NOARGS, and compat syscalls: 30; { pseudo-proto } [alias] 31; For other syscalls: 32; [comment] 33; 34; #ifdef's, etc. may be included, and are copied to the output files. 35; #include's are copied to the syscall names and switch definition files only. 36 37#include "opt_ktrace.h" 38#include "opt_nfsserver.h" 39#include "opt_compat_netbsd.h" 40#include "opt_ntp.h" 41#include "opt_sysv.h" 42 43#include "fs_lfs.h" 44#include "fs_nfs.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/signal.h> 49#include <sys/mount.h> 50#include <sys/syscallargs.h> 51 52#include <compat/sparc32/sparc32.h> 53#include <compat/sparc32/sparc32_syscallargs.h> 54 55; Reserved/unimplemented system calls in the range 0-150 inclusive 56; are reserved for use in future Berkeley releases. 57; Additional system calls implemented in vendor and other 58; redistributions should be placed in the reserved range at the end 59; of the current calls. 60 610 INDIR { int sys_syscall(int number, ...); } 621 STD { void compat_sparc32_exit(int rval); } 632 NOARGS { int sys_fork(void); } 643 STD { sparc32_ssize_t compat_sparc32_read(int fd, sparc32_voidp buf, sparc32_size_t nbyte); } 654 STD { sparc32_ssize_t compat_sparc32_write(int fd, const sparc32_voidp buf, sparc32_size_t nbyte); } 665 STD { int compat_sparc32_open(const sparc32_charp path, int flags, ... mode_t mode); } 676 STD { int compat_sparc32_close(int fd); } 687 STD { int compat_sparc32_wait4(int pid, sparc32_intp status, int options, sparc32_rusagep_t rusage); } 698 COMPAT_43 { int compat_sparc32_ocreat(const sparc32_charp path, mode_t mode); } 709 STD { int compat_sparc32_link(const sparc32_charp path, const sparc32_charp link); } 7110 STD { int compat_sparc32_unlink(const sparc32_charp path); } 7211 OBSOL execv 7312 STD { int compat_sparc32_chdir(const sparc32_charp path); } 7413 STD { int compat_sparc32_fchdir(int fd); } 7514 STD { int compat_sparc32_mknod(const sparc32_charp path, mode_t mode, dev_t dev); } 7615 STD { int compat_sparc32_chmod(const sparc32_charp path, mode_t mode); } 7716 STD { int compat_sparc32_chown(const sparc32_charp path, uid_t uid, gid_t gid); } 7817 STD { int compat_sparc32_break(sparc32_charp nsize); } 7918 STD { int compat_sparc32_getfsstat(sparc32_statfsp_t buf, sparc32_long bufsize, int flags); } 8019 COMPAT_43 { sparc32_long compat_sparc32_olseek(int fd, sparc32_long offset, int whence); } 8120 NOARGS { pid_t sys_getpid(void); } 8221 STD { int compat_sparc32_mount(const sparc32_charp type, const sparc32_charp path, int flags, sparc32_voidp data); } 8322 STD { int compat_sparc32_unmount(const sparc32_charp path, int flags); } 8423 STD { int compat_sparc32_setuid(uid_t uid); } 8524 NOARGS { uid_t sys_getuid(void); } 8625 NOARGS { uid_t sys_geteuid(void); } 8726 STD { int compat_sparc32_ptrace(int req, pid_t pid, sparc32_caddr_t addr, int data); } 8827 STD { sparc32_ssize_t compat_sparc32_recvmsg(int s, sparc32_msghdrp_t msg, int flags); } 8928 STD { sparc32_ssize_t compat_sparc32_sendmsg(int s, const sparc32_msghdrp_t msg, int flags); } 9029 STD { sparc32_ssize_t compat_sparc32_recvfrom(int s, sparc32_voidp buf, sparc32_size_t len, int flags, sparc32_sockaddrp_t from, sparc32_intp fromlenaddr); } 9130 STD { int compat_sparc32_accept(int s, sparc32_sockaddrp_t name, sparc32_intp anamelen); } 9231 STD { int compat_sparc32_getpeername(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); } 9332 STD { int compat_sparc32_getsockname(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); } 9433 STD { int compat_sparc32_access(const sparc32_charp path, int flags); } 9534 STD { int compat_sparc32_chflags(const sparc32_charp path, sparc32_u_long flags); } 9635 STD { int compat_sparc32_fchflags(int fd, sparc32_u_long flags); } 9736 NOARGS { void sys_sync(void); } 9837 STD { int compat_sparc32_kill(int pid, int signum); } 9938 COMPAT_43 { int compat_sparc32_stat43(const sparc32_charp path, sparc32_stat43p_t ub); } 10039 NOARGS { pid_t sys_getppid(void); } 10140 COMPAT_43 { int compat_sparc32_lstat43(const sparc32_charp path, sparc32_stat43p_t ub); } 10241 STD { int compat_sparc32_dup(int fd); } 10342 NOARGS { int sys_pipe(void); } 10443 NOARGS { gid_t sys_getegid(void); } 10544 STD { int compat_sparc32_profil(sparc32_caddr_t samples, sparc32_size_t size, sparc32_u_long offset, u_int scale); } 106#ifdef KTRACE 10745 STD { int compat_sparc32_ktrace(const sparc32_charp fname, int ops, int facs, int pid); } 108#else 10945 UNIMPL compat_sparc32_ktrace 110#endif 11146 STD { int compat_sparc32_sigaction(int signum, const sparc32_sigactionp_t nsa, sparc32_sigactionp_t osa); } 11247 NOARGS { gid_t sys_getgid(void); } 11348 COMPAT_13 { int compat_sparc32_sigprocmask(int how, \ 114 int mask); } sigprocmask13 11549 STD { int compat_sparc32___getlogin(sparc32_charp namebuf, u_int namelen); } 11650 STD { int compat_sparc32_setlogin(const sparc32_charp namebuf); } 11751 STD { int compat_sparc32_acct(const sparc32_charp path); } 11852 COMPAT_13 { int sys_sigpending(void); } sigpending13 11953 COMPAT_13 { int compat_sparc32_sigaltstack13(const sparc32_sigaltstack13p_t nss, sparc32_sigaltstack13p_t oss); } 12054 STD { int compat_sparc32_ioctl(int fd, sparc32_u_long com, ... sparc32_voidp data); } 121#ifdef COMPAT_12 12255 COMPAT_12 { int compat_sparc32_reboot(int opt); } 123#else 12455 OBSOL oreboot 125#endif 12656 STD { int compat_sparc32_revoke(const sparc32_charp path); } 12757 STD { int compat_sparc32_symlink(const sparc32_charp path, const sparc32_charp link); } 12858 STD { int compat_sparc32_readlink(const sparc32_charp path, sparc32_charp buf, sparc32_size_t count); } 12959 STD { int compat_sparc32_execve(const sparc32_charp path, sparc32_charpp argp, sparc32_charpp envp); } 13060 STD { mode_t compat_sparc32_umask(mode_t newmask); } 13161 STD { int compat_sparc32_chroot(const sparc32_charp path); } 13262 COMPAT_43 { int compat_sparc32_fstat43(int fd, sparc32_stat43p_t sb); } 13363 COMPAT_43 { int compat_sparc32_ogetkerninfo(int op, sparc32_charp where, sparc32_intp size, int arg); } 13464 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 13565 COMPAT_12 { int compat_sparc32_msync(sparc32_caddr_t addr, sparc32_size_t len); } 136; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 13766 NOARGS { int sys_vfork(void); } 13867 OBSOL vread 13968 OBSOL vwrite 14069 STD { int compat_sparc32_sbrk(int incr); } 14170 STD { int compat_sparc32_sstk(int incr); } 14271 COMPAT_43 { int compat_sparc32_ommap(sparc32_caddr_t addr, sparc32_size_t len, int prot, int flags, int fd, sparc32_long pos); } 14372 STD { int compat_sparc32_ovadvise(int anom); } vadvise 14473 STD { int compat_sparc32_munmap(sparc32_voidp addr, sparc32_size_t len); } 14574 STD { int compat_sparc32_mprotect(sparc32_voidp addr, sparc32_size_t len, int prot); } 14675 STD { int compat_sparc32_madvise(sparc32_voidp addr, sparc32_size_t len, int behav); } 14776 OBSOL vhangup 14877 OBSOL vlimit 14978 STD { int compat_sparc32_mincore(sparc32_caddr_t addr, sparc32_size_t len, sparc32_charp vec); } 15079 STD { int compat_sparc32_getgroups(int gidsetsize, sparc32_gid_tp gidset); } 15180 STD { int compat_sparc32_setgroups(int gidsetsize, const sparc32_gid_tp gidset); } 15281 NOARGS { int sys_getpgrp(void); } 15382 STD { int compat_sparc32_setpgid(int pid, int pgid); } 15483 STD { int compat_sparc32_setitimer(int which, const sparc32_itimervalp_t itv, sparc32_itimervalp_t oitv); } 15584 COMPAT_43 { int sys_wait(void); } owait 15685 COMPAT_12 { int compat_sparc32_oswapon(const sparc32_charp name); } 15786 STD { int compat_sparc32_getitimer(int which, sparc32_itimervalp_t itv); } 15887 COMPAT_43 { int compat_sparc32_ogethostname(sparc32_charp hostname, u_int len); } 15988 COMPAT_43 { int compat_sparc32_osethostname(sparc32_charp hostname, u_int len); } 16089 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 16190 STD { int compat_sparc32_dup2(int from, int to); } 16291 UNIMPL getdopt 16392 STD { int compat_sparc32_fcntl(int fd, int cmd, ... sparc32_voidp arg); } 16493 STD { int compat_sparc32_select(int nd, sparc32_fd_setp_t in, sparc32_fd_setp_t ou, sparc32_fd_setp_t ex, sparc32_timevalp_t tv); } 16594 UNIMPL setdopt 16695 STD { int compat_sparc32_fsync(int fd); } 16796 STD { int compat_sparc32_setpriority(int which, int who, int prio); } 16897 STD { int compat_sparc32_socket(int domain, int type, int protocol); } 16998 STD { int compat_sparc32_connect(int s, const sparc32_sockaddrp_t name, int namelen); } 17099 COMPAT_43 { int compat_sparc32_oaccept(int s, sparc32_caddr_t name, sparc32_intp anamelen); } 171100 STD { int compat_sparc32_getpriority(int which, int who); } 172101 COMPAT_43 { int compat_sparc32_osend(int s, sparc32_caddr_t buf, int len, int flags); } 173102 COMPAT_43 { int compat_sparc32_orecv(int s, sparc32_caddr_t buf, int len, int flags); } 174103 STD { int compat_sparc32_sigreturn(sparc32_sigcontextp_t sigcntxp); } 175104 STD { int compat_sparc32_bind(int s, const sparc32_sockaddrp_t name, int namelen); } 176105 STD { int compat_sparc32_setsockopt(int s, int level, int name, const sparc32_voidp val, int valsize); } 177106 STD { int compat_sparc32_listen(int s, int backlog); } 178107 OBSOL vtimes 179108 COMPAT_43 { int compat_sparc32_osigvec(int signum, sparc32_sigvecp_t nsv, sparc32_sigvecp_t osv); } 180#ifdef COMPAT_43 181109 COMPAT_43 { int compat_sparc32_sigblock(int mask); } 182110 COMPAT_43 { int compat_sparc32_sigsetmask(int mask); } 183#else 184109 OBSOL sigblock 185110 OBSOL sigsetmask 186#endif 187111 COMPAT_13 { int compat_sparc32_sigsuspend(int mask); } sigsuspend13 188112 COMPAT_43 { int compat_sparc32_osigstack(sparc32_sigstackp_t nss, sparc32_sigstackp_t oss); } 189113 COMPAT_43 { int compat_sparc32_orecvmsg(int s, sparc32_omsghdrp_t msg, int flags); } 190114 COMPAT_43 { int compat_sparc32_osendmsg(int s, sparc32_caddr_t msg, int flags); } 191#ifdef TRACE 192115 STD { int compat_sparc32_vtrace(int request, int value); } 193#else 194115 OBSOL vtrace 195#endif 196116 STD { int compat_sparc32_gettimeofday(sparc32_timevalp_t tp, sparc32_timezonep_t tzp); } 197117 STD { int compat_sparc32_getrusage(int who, sparc32_rusagep_t rusage); } 198118 STD { int compat_sparc32_getsockopt(int s, int level, int name, sparc32_voidp val, sparc32_intp avalsize); } 199119 OBSOL resuba 200120 STD { sparc32_ssize_t compat_sparc32_readv(int fd, const sparc32_iovecp_t iovp, int iovcnt); } 201121 STD { sparc32_ssize_t compat_sparc32_writev(int fd, const sparc32_iovecp_t iovp, int iovcnt); } 202122 STD { int compat_sparc32_settimeofday(const sparc32_timevalp_t tv, const sparc32_timezonep_t tzp); } 203123 STD { int compat_sparc32_fchown(int fd, uid_t uid, gid_t gid); } 204124 STD { int compat_sparc32_fchmod(int fd, mode_t mode); } 205125 COMPAT_43 { int compat_sparc32_orecvfrom(int s, sparc32_caddr_t buf, sparc32_size_t len, int flags, sparc32_caddr_t from, sparc32_intp fromlenaddr); } 206126 STD { int compat_sparc32_setreuid(uid_t ruid, uid_t euid); } 207127 STD { int compat_sparc32_setregid(gid_t rgid, gid_t egid); } 208128 STD { int compat_sparc32_rename(const sparc32_charp from, const sparc32_charp to); } 209129 COMPAT_43 { int compat_sparc32_otruncate(const sparc32_charp path, sparc32_long length); } 210130 COMPAT_43 { int compat_sparc32_oftruncate(int fd, sparc32_long length); } 211131 STD { int compat_sparc32_flock(int fd, int how); } 212132 STD { int compat_sparc32_mkfifo(const sparc32_charp path, mode_t mode); } 213133 STD { sparc32_ssize_t compat_sparc32_sendto(int s, const sparc32_voidp buf, sparc32_size_t len, int flags, const sparc32_sockaddrp_t to, int tolen); } 214134 STD { int compat_sparc32_shutdown(int s, int how); } 215135 STD { int compat_sparc32_socketpair(int domain, int type, int protocol, sparc32_intp rsv); } 216136 STD { int compat_sparc32_mkdir(const sparc32_charp path, mode_t mode); } 217137 STD { int compat_sparc32_rmdir(const sparc32_charp path); } 218138 STD { int compat_sparc32_utimes(const sparc32_charp path, const sparc32_timevalp_t tptr); } 219139 OBSOL 4.2 sigreturn 220140 STD { int compat_sparc32_adjtime(const sparc32_timevalp_t delta, sparc32_timevalp_t olddelta); } 221141 COMPAT_43 { int compat_sparc32_ogetpeername(int fdes, sparc32_caddr_t asa, sparc32_intp alen); } 222142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 223#ifdef COMPAT_43 224143 COMPAT_43 { int compat_sparc32_sethostid(int32_t hostid); } 225#else 226143 OBSOL sethostid 227#endif 228144 COMPAT_43 { int compat_sparc32_ogetrlimit(int which, sparc32_orlimitp_t rlp); } 229145 COMPAT_43 { int compat_sparc32_osetrlimit(int which, const sparc32_orlimitp_t rlp); } 230#ifdef COMPAT_43 231146 COMPAT_43 { int compat_sparc32_killpg(int pgid, int signum); } 232#else 233146 OBSOL killpg 234#endif 235147 NOARGS { int sys_setsid(void); } 236148 STD { int compat_sparc32_quotactl(const sparc32_charp path, int cmd, int uid, sparc32_caddr_t arg); } 237149 COMPAT_43 { int sys_quota(void); } oquota 238150 COMPAT_43 { int compat_sparc32_ogetsockname(int fdec, sparc32_caddr_t asa, sparc32_intp alen); } 239 240; Syscalls 151-180 inclusive are reserved for vendor-specific 241; system calls. (This includes various calls added for compatibity 242; with other Unix variants.) 243; Some of these calls are now supported by BSD... 244151 UNIMPL 245152 UNIMPL 246153 UNIMPL 247154 UNIMPL 248#if defined(NFS) || defined(NFSSERVER) 249155 STD { int compat_sparc32_nfssvc(int flag, sparc32_voidp argp); } 250#else 251155 UNIMPL 252#endif 253156 COMPAT_43 { int compat_sparc32_ogetdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); } 254157 STD { int compat_sparc32_statfs(const sparc32_charp path, sparc32_statfsp_t buf); } 255158 STD { int compat_sparc32_fstatfs(int fd, sparc32_statfsp_t buf); } 256159 UNIMPL 257160 UNIMPL 258#if defined(NFS) || defined(NFSSERVER) 259161 STD { int compat_sparc32_getfh(const sparc32_charp fname, sparc32_fhandlep_t fhp); } 260#else 261161 UNIMPL compat_sparc32_getfh 262#endif 263162 COMPAT_09 { int compat_sparc32_ogetdomainname(sparc32_charp domainname, int len); } 264163 COMPAT_09 { int compat_sparc32_osetdomainname(sparc32_charp domainname, int len); } 265164 COMPAT_09 { int compat_sparc32_uname(sparc32_outsnamep_t name); } 266165 STD { int compat_sparc32_sysarch(int op, sparc32_voidp parms); } 267166 UNIMPL 268167 UNIMPL 269168 UNIMPL 270; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int) 271#if defined(SYSVSEM) && !defined(alpha) 272169 STD { int compat_sparc32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys 273#else 274169 UNIMPL 1.0 semsys 275#endif 276; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int) 277#if defined(SYSVMSG) && !defined(alpha) 278170 STD { int compat_sparc32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys 279#else 280170 UNIMPL 1.0 msgsys 281#endif 282; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int) 283#if defined(SYSVSHM) && !defined(alpha) 284171 STD { int compat_sparc32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys 285#else 286171 UNIMPL 1.0 shmsys 287#endif 288172 UNIMPL 289173 STD { sparc32_ssize_t compat_sparc32_pread(int fd, sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); } 290174 STD { sparc32_ssize_t compat_sparc32_pwrite(int fd, const sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); } 291#ifdef NTP 292175 STD { int compat_sparc32_ntp_gettime(sparc32_ntptimevalp_t ntvp); } 293176 STD { int compat_sparc32_ntp_adjtime(sparc32_timexp_t tp); } 294#else 295175 UNIMPL compat_sparc32_ntp_gettime 296176 UNIMPL compat_sparc32_ntp_adjtime 297#endif 298177 UNIMPL 299178 UNIMPL 300179 UNIMPL 301180 UNIMPL 302 303; Syscalls 180-199 are used by/reserved for BSD 304181 STD { int compat_sparc32_setgid(gid_t gid); } 305182 STD { int compat_sparc32_setegid(gid_t egid); } 306183 STD { int compat_sparc32_seteuid(uid_t euid); } 307#ifdef LFS 308184 STD { int compat_sparc32_lfs_bmapv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); } 309185 STD { int compat_sparc32_lfs_markv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); } 310186 STD { int compat_sparc32_lfs_segclean(sparc32_fsid_tp_t fsidp, sparc32_u_long segment); } 311187 STD { int compat_sparc32_lfs_segwait(sparc32_fsid_tp_t fsidp, sparc32_timevalp_t tv); } 312#else 313184 UNIMPL 314185 UNIMPL 315186 UNIMPL 316187 UNIMPL 317#endif 318188 COMPAT_12 { int compat_sparc32_stat12(const sparc32_charp path, sparc32_stat12p_t ub); } 319189 COMPAT_12 { int compat_sparc32_fstat12(int fd, sparc32_stat12p_t sb); } 320190 COMPAT_12 { int compat_sparc32_lstat12(const sparc32_charp path, sparc32_stat12p_t ub); } 321191 STD { sparc32_long compat_sparc32_pathconf(const sparc32_charp path, int name); } 322192 STD { sparc32_long compat_sparc32_fpathconf(int fd, int name); } 323193 UNIMPL 324194 STD { int compat_sparc32_getrlimit(int which, sparc32_rlimitp_t rlp); } 325195 STD { int compat_sparc32_setrlimit(int which, const sparc32_rlimitp_t rlp); } 326196 COMPAT_12 { int compat_sparc32_getdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); } 327197 STD { sparc32_voidp compat_sparc32_mmap(sparc32_voidp addr, sparc32_size_t len, int prot, int flags, int fd, sparc32_long pad, off_t pos); } 328198 INDIR { quad_t sys___syscall(quad_t num, ...); } 329199 STD { off_t compat_sparc32_lseek(int fd, int pad, off_t offset, int whence); } 330200 STD { int compat_sparc32_truncate(const sparc32_charp path, int pad, off_t length); } 331201 STD { int compat_sparc32_ftruncate(int fd, int pad, off_t length); } 332202 STD { int compat_sparc32___sysctl(sparc32_intp name, u_int namelen, sparc32_voidp old, sparc32_size_tp oldlenp, sparc32_voidp new, sparc32_size_t newlen); } 333203 STD { int compat_sparc32_mlock(const sparc32_voidp addr, sparc32_size_t len); } 334204 STD { int compat_sparc32_munlock(const sparc32_voidp addr, sparc32_size_t len); } 335205 STD { int compat_sparc32_undelete(const sparc32_charp path); } 336206 STD { int compat_sparc32_futimes(int fd, const sparc32_timevalp_t tptr); } 337207 STD { int compat_sparc32_getpgid(pid_t pid); } 338208 STD { int compat_sparc32_reboot(int opt, sparc32_charp bootstr); } 339209 STD { int compat_sparc32_poll(sparc32_pollfdp_t fds, u_int nfds, int timeout); } 340; 341; Syscalls 210-219 are reserved for dynamically loaded syscalls 342; 343#ifdef LKM 344210 NODEF { int sys_lkmnosys(void); } 345211 NODEF { int sys_lkmnosys(void); } 346212 NODEF { int sys_lkmnosys(void); } 347213 NODEF { int sys_lkmnosys(void); } 348214 NODEF { int sys_lkmnosys(void); } 349215 NODEF { int sys_lkmnosys(void); } 350216 NODEF { int sys_lkmnosys(void); } 351217 NODEF { int sys_lkmnosys(void); } 352218 NODEF { int sys_lkmnosys(void); } 353219 NODEF { int sys_lkmnosys(void); } 354#else /* !LKM */ 355210 UNIMPL 356211 UNIMPL 357212 UNIMPL 358213 UNIMPL 359214 UNIMPL 360215 UNIMPL 361216 UNIMPL 362217 UNIMPL 363218 UNIMPL 364219 UNIMPL 365#endif /* !LKM */ 366; System calls 220-300 are reserved for use by NetBSD 367#ifdef SYSVSEM 368220 STD { int compat_sparc32___semctl(int semid, int semnum, int cmd, sparc32_semunu_t arg); } 369221 STD { int compat_sparc32_semget(sparc32_key_t key, int nsems, int semflg); } 370222 STD { int compat_sparc32_semop(int semid, sparc32_sembufp_t sops, sparc32_size_t nsops); } 371223 STD { int compat_sparc32_semconfig(int flag); } 372#else 373220 UNIMPL compat_sparc32_semctl 374221 UNIMPL compat_sparc32_semget 375222 UNIMPL compat_sparc32_semop 376223 UNIMPL compat_sparc32_semconfig 377#endif 378#ifdef SYSVMSG 379224 STD { int compat_sparc32_msgctl(int msqid, int cmd, sparc32_msqid_dsp_t buf); } 380225 STD { int compat_sparc32_msgget(sparc32_key_t key, int msgflg); } 381226 STD { int compat_sparc32_msgsnd(int msqid, const sparc32_voidp msgp, sparc32_size_t msgsz, int msgflg); } 382227 STD { sparc32_ssize_t compat_sparc32_msgrcv(int msqid, sparc32_voidp msgp, sparc32_size_t msgsz, sparc32_long msgtyp, int msgflg); } 383#else 384224 UNIMPL compat_sparc32_msgctl 385225 UNIMPL compat_sparc32_msgget 386226 UNIMPL compat_sparc32_msgsnd 387227 UNIMPL compat_sparc32_msgrcv 388#endif 389#ifdef SYSVSHM 390228 STD { sparc32_voidp compat_sparc32_shmat(int shmid, const sparc32_voidp shmaddr, int shmflg); } 391229 STD { int compat_sparc32_shmctl(int shmid, int cmd, sparc32_shmid_dsp_t buf); } 392230 STD { int compat_sparc32_shmdt(const sparc32_voidp shmaddr); } 393231 STD { int compat_sparc32_shmget(sparc32_key_t key, sparc32_size_t size, int shmflg); } 394#else 395228 UNIMPL compat_sparc32_shmat 396229 UNIMPL compat_sparc32_shmctl 397230 UNIMPL compat_sparc32_shmdt 398231 UNIMPL compat_sparc32_shmget 399#endif 400232 STD { int compat_sparc32_clock_gettime(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); } 401233 STD { int compat_sparc32_clock_settime(sparc32_clockid_t clock_id, const sparc32_timespecp_t tp); } 402234 STD { int compat_sparc32_clock_getres(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); } 403235 UNIMPL timer_create 404236 UNIMPL timer_delete 405237 UNIMPL timer_settime 406238 UNIMPL timer_gettime 407239 UNIMPL timer_getoverrun 408; 409; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 410; 411240 STD { int compat_sparc32_nanosleep(const sparc32_timespecp_t rqtp, sparc32_timespecp_t rmtp); } 412241 STD { int compat_sparc32_fdatasync(int fd); } 413242 UNIMPL 414243 UNIMPL 415244 UNIMPL 416245 UNIMPL 417246 UNIMPL 418247 UNIMPL 419248 UNIMPL 420249 UNIMPL 421250 UNIMPL 422251 UNIMPL 423252 UNIMPL 424253 UNIMPL 425254 UNIMPL 426255 UNIMPL 427256 UNIMPL 428257 UNIMPL 429258 UNIMPL 430259 UNIMPL 431260 UNIMPL 432261 UNIMPL 433262 UNIMPL 434263 UNIMPL 435264 UNIMPL 436265 UNIMPL 437266 UNIMPL 438267 UNIMPL 439268 UNIMPL 440269 UNIMPL 441270 STD { int compat_sparc32___posix_rename(const sparc32_charp from, const sparc32_charp to); } 442271 STD { int compat_sparc32_swapctl(int cmd, const sparc32_voidp arg, int misc); } 443272 STD { int compat_sparc32_getdents(int fd, sparc32_charp buf, sparc32_size_t count); } 444273 STD { int compat_sparc32_minherit(sparc32_voidp addr, sparc32_size_t len, int inherit); } 445274 STD { int compat_sparc32_lchmod(const sparc32_charp path, mode_t mode); } 446275 STD { int compat_sparc32_lchown(const sparc32_charp path, uid_t uid, gid_t gid); } 447276 STD { int compat_sparc32_lutimes(const sparc32_charp path, const sparc32_timevalp_t tptr); } 448277 STD { int compat_sparc32___msync13(sparc32_voidp addr, sparc32_size_t len, int flags); } 449278 STD { int compat_sparc32___stat13(const sparc32_charp path, sparc32_statp_t ub); } 450279 STD { int compat_sparc32___fstat13(int fd, sparc32_statp_t sb); } 451280 STD { int compat_sparc32___lstat13(const sparc32_charp path, sparc32_statp_t ub); } 452281 STD { int compat_sparc32___sigaltstack14(const sparc32_sigaltstackp_t nss, sparc32_sigaltstackp_t oss); } 453282 NOARGS { int sys___vfork14(void); } 454283 STD { int compat_sparc32___posix_chown(const sparc32_charp path, uid_t uid, gid_t gid); } 455284 STD { int compat_sparc32___posix_fchown(int fd, uid_t uid, gid_t gid); } 456285 STD { int compat_sparc32___posix_lchown(const sparc32_charp path, uid_t uid, gid_t gid); } 457286 STD { pid_t compat_sparc32_getsid(pid_t pid); } 458287 UNIMPL 459#ifdef KTRACE 460288 STD { int compat_sparc32_fktrace(const int fd, int ops, int facs, int pid); } 461#else 462288 UNIMPL 463#endif 464289 STD { sparc32_ssize_t compat_sparc32_preadv(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 465290 STD { sparc32_ssize_t compat_sparc32_pwritev(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 466