syscalls.master revision 1.2
1 $NetBSD: syscalls.master,v 1.2 1998/08/26 13:42:50 mrg Exp $ 2 3; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp 4; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 5 6; NetBSD system call name/number "master" file. 7; (See syscalls.conf to see what it is processed into.) 8; 9; Fields: number type [type-dependent ...] 10; number system call number, must be in order 11; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 12; the compatibility options defined in syscalls.conf. 13; 14; types: 15; STD always included 16; OBSOL obsolete, not included in system 17; UNIMPL unimplemented, not included in system 18; 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 41#include "fs_lfs.h" 42#include "fs_nfs.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/signal.h> 47#include <sys/mount.h> 48#include <sys/syscallargs.h> 49 50#include <compat/sparc32/sparc32.h> 51#include <compat/sparc32/sparc32_syscallargs.h> 52 53; Reserved/unimplemented system calls in the range 0-150 inclusive 54; are reserved for use in future Berkeley releases. 55; Additional system calls implemented in vendor and other 56; redistributions should be placed in the reserved range at the end 57; of the current calls. 58 590 INDIR { int sys_syscall(int number, ...); } 601 NOARGS { void sys_exit(int rval); } 612 NOARGS { int sys_fork(void); } 623 STD { sparc32_ssize_t compat_sparc32_read(int fd, sparc32_voidp buf, sparc32_size_t nbyte); } 634 STD { sparc32_ssize_t compat_sparc32_write(int fd, const sparc32_voidp buf, sparc32_size_t nbyte); } 645 STD { int compat_sparc32_open(const sparc32_charp path, int flags, ... mode_t mode); } 656 NOARGS { int sys_close(int fd); } 667 STD { int compat_sparc32_wait4(int pid, sparc32_intp status, int options, sparc32_rusagep_t rusage); } 678 COMPAT_43 { int compat_sparc32_ocreat(const sparc32_charp path, mode_t mode); } 689 STD { int compat_sparc32_link(const sparc32_charp path, const sparc32_charp link); } 6910 STD { int compat_sparc32_unlink(const sparc32_charp path); } 7011 OBSOL execv 7112 STD { int compat_sparc32_chdir(const sparc32_charp path); } 7213 NOARGS { int sys_fchdir(int fd); } 7314 STD { int compat_sparc32_mknod(const sparc32_charp path, mode_t mode, dev_t dev); } 7415 STD { int compat_sparc32_chmod(const sparc32_charp path, mode_t mode); } 7516 STD { int compat_sparc32_chown(const sparc32_charp path, uid_t uid, gid_t gid); } 7617 STD { int compat_sparc32_break(sparc32_charp nsize); } 7718 STD { int compat_sparc32_getfsstat(sparc32_statfsp_t buf, sparc32_long bufsize, int flags); } 7819 COMPAT_43 { sparc32_long compat_sparc32_olseek(int fd, sparc32_long offset, int whence); } 7920 NOARGS { pid_t sys_getpid(void); } 8021 STD { int compat_sparc32_mount(const sparc32_charp type, const sparc32_charp path, int flags, sparc32_voidp data); } 8122 STD { int compat_sparc32_unmount(const sparc32_charp path, int flags); } 8223 NOARGS { int sys_setuid(uid_t uid); } 8324 NOARGS { uid_t sys_getuid(void); } 8425 NOARGS { uid_t sys_geteuid(void); } 8526 STD { int compat_sparc32_ptrace(int req, pid_t pid, sparc32_caddr_t addr, int data); } 8627 STD { sparc32_ssize_t compat_sparc32_recvmsg(int s, sparc32_msghdrp_t msg, int flags); } 8728 STD { sparc32_ssize_t compat_sparc32_sendmsg(int s, const sparc32_msghdrp_t msg, int flags); } 8829 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); } 8930 STD { int compat_sparc32_accept(int s, sparc32_sockaddrp_t name, sparc32_intp anamelen); } 9031 STD { int compat_sparc32_getpeername(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); } 9132 STD { int compat_sparc32_getsockname(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); } 9233 STD { int compat_sparc32_access(const sparc32_charp path, int flags); } 9334 STD { int compat_sparc32_chflags(const sparc32_charp path, sparc32_u_long flags); } 9435 STD { int compat_sparc32_fchflags(int fd, sparc32_u_long flags); } 9536 NOARGS { void sys_sync(void); } 9637 NOARGS { int sys_kill(int pid, int signum); } 9738 COMPAT_43 { int compat_sparc32_stat43(const sparc32_charp path, sparc32_stat43p_t ub); } 9839 NOARGS { pid_t sys_getppid(void); } 9940 COMPAT_43 { int compat_sparc32_lstat43(const sparc32_charp path, sparc32_stat43p_t ub); } 10041 NOARGS { int sys_dup(int fd); } 10142 NOARGS { int sys_pipe(void); } 10243 NOARGS { gid_t sys_getegid(void); } 10344 STD { int compat_sparc32_profil(sparc32_caddr_t samples, sparc32_size_t size, sparc32_u_long offset, u_int scale); } 104#ifdef KTRACE 10545 STD { int compat_sparc32_ktrace(const sparc32_charp fname, int ops, int facs, int pid); } 106#else 10745 UNIMPL compat_sparc32_ktrace 108#endif 10946 STD { int compat_sparc32_sigaction(int signum, const sparc32_sigactionp_t nsa, sparc32_sigactionp_t osa); } 11047 NOARGS { gid_t sys_getgid(void); } 11148 NOARGS { int sys_sigprocmask(int how, sigset_t mask); } 11249 STD { int compat_sparc32___getlogin(sparc32_charp namebuf, u_int namelen); } 11350 STD { int compat_sparc32_setlogin(const sparc32_charp namebuf); } 11451 STD { int compat_sparc32_acct(const sparc32_charp path); } 11552 NOARGS { int sys_sigpending(void); } 11653 COMPAT_13 { int compat_sparc32_sigaltstack13(const sparc32_sigaltstack13p_t nss, sparc32_sigaltstack13p_t oss); } 11754 STD { int compat_sparc32_ioctl(int fd, sparc32_u_long com, ... sparc32_voidp data); } 118#ifdef COMPAT_12 11955 NOARGS { int compat_12_sys_reboot(int opt); } 120#else 12155 OBSOL oreboot 122#endif 12356 STD { int compat_sparc32_revoke(const sparc32_charp path); } 12457 STD { int compat_sparc32_symlink(const sparc32_charp path, const sparc32_charp link); } 12558 STD { int compat_sparc32_readlink(const sparc32_charp path, sparc32_charp buf, sparc32_size_t count); } 12659 STD { int compat_sparc32_execve(const sparc32_charp path, sparc32_charpp argp, sparc32_charpp envp); } 12760 NOARGS { mode_t sys_umask(mode_t newmask); } 12861 STD { int compat_sparc32_chroot(const sparc32_charp path); } 12962 COMPAT_43 { int compat_sparc32_fstat43(int fd, sparc32_stat43p_t sb); } 13063 COMPAT_43 { int compat_sparc32_ogetkerninfo(int op, sparc32_charp where, sparc32_intp size, int arg); } 13164 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 13265 COMPAT_12 { int compat_sparc32_msync(sparc32_caddr_t addr, sparc32_size_t len); } 133; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)? 13466 NOARGS { int sys_vfork(void); } 13567 OBSOL vread 13668 OBSOL vwrite 13769 NOARGS { int sys_sbrk(int incr); } 13870 NOARGS { int sys_sstk(int incr); } 13971 COMPAT_43 { int compat_sparc32_ommap(sparc32_caddr_t addr, sparc32_size_t len, int prot, int flags, int fd, sparc32_long pos); } 14072 NOARGS { int sys_ovadvise(int anom); } vadvise 14173 STD { int compat_sparc32_munmap(sparc32_voidp addr, sparc32_size_t len); } 14274 STD { int compat_sparc32_mprotect(sparc32_voidp addr, sparc32_size_t len, int prot); } 14375 STD { int compat_sparc32_madvise(sparc32_voidp addr, sparc32_size_t len, int behav); } 14476 OBSOL vhangup 14577 OBSOL vlimit 14678 STD { int compat_sparc32_mincore(sparc32_caddr_t addr, sparc32_size_t len, sparc32_charp vec); } 14779 STD { int compat_sparc32_getgroups(int gidsetsize, sparc32_gid_tp gidset); } 14880 STD { int compat_sparc32_setgroups(int gidsetsize, const sparc32_gid_tp gidset); } 14981 NOARGS { int sys_getpgrp(void); } 15082 NOARGS { int sys_setpgid(int pid, int pgid); } 15183 STD { int compat_sparc32_setitimer(int which, const sparc32_itimervalp_t itv, sparc32_itimervalp_t oitv); } 15284 COMPAT_43 { int sys_wait(void); } owait 15385 COMPAT_12 { int compat_sparc32_oswapon(const sparc32_charp name); } 15486 STD { int compat_sparc32_getitimer(int which, sparc32_itimervalp_t itv); } 15587 COMPAT_43 { int compat_sparc32_ogethostname(sparc32_charp hostname, u_int len); } 15688 COMPAT_43 { int compat_sparc32_osethostname(sparc32_charp hostname, u_int len); } 15789 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize 15890 NOARGS { int sys_dup2(int from, int to); } 15991 UNIMPL getdopt 16092 STD { int compat_sparc32_fcntl(int fd, int cmd, ... sparc32_voidp arg); } 16193 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); } 16294 UNIMPL setdopt 16395 NOARGS { int sys_fsync(int fd); } 16496 NOARGS { int sys_setpriority(int which, int who, int prio); } 16597 NOARGS { int sys_socket(int domain, int type, int protocol); } 16698 STD { int compat_sparc32_connect(int s, const sparc32_sockaddrp_t name, int namelen); } 16799 COMPAT_43 { int compat_sparc32_oaccept(int s, sparc32_caddr_t name, sparc32_intp anamelen); } 168100 NOARGS { int sys_getpriority(int which, int who); } 169101 COMPAT_43 { int compat_sparc32_osend(int s, sparc32_caddr_t buf, int len, int flags); } 170102 COMPAT_43 { int compat_sparc32_orecv(int s, sparc32_caddr_t buf, int len, int flags); } 171103 STD { int compat_sparc32_sigreturn(sparc32_sigcontextp_t sigcntxp); } 172104 STD { int compat_sparc32_bind(int s, const sparc32_sockaddrp_t name, int namelen); } 173105 STD { int compat_sparc32_setsockopt(int s, int level, int name, const sparc32_voidp val, int valsize); } 174106 NOARGS { int sys_listen(int s, int backlog); } 175107 OBSOL vtimes 176108 COMPAT_43 { int compat_sparc32_osigvec(int signum, sparc32_sigvecp_t nsv, sparc32_sigvecp_t osv); } 177#ifdef COMPAT_43 178109 NOARGS { int compat_43_sys_sigblock(int mask); } 179110 NOARGS { int compat_43_sys_sigsetmask(int mask); } 180#else 181109 OBSOL sigblock 182110 OBSOL sigsetmask 183#endif 184111 NOARGS { int sys_sigsuspend(int mask); } 185112 COMPAT_43 { int compat_sparc32_osigstack(sparc32_sigstackp_t nss, sparc32_sigstackp_t oss); } 186113 COMPAT_43 { int compat_sparc32_orecvmsg(int s, sparc32_omsghdrp_t msg, int flags); } 187114 COMPAT_43 { int compat_sparc32_osendmsg(int s, sparc32_caddr_t msg, int flags); } 188#ifdef TRACE 189115 NOARGS { int sys_vtrace(int request, int value); } 190#else 191115 OBSOL vtrace 192#endif 193116 STD { int compat_sparc32_gettimeofday(sparc32_timevalp_t tp, sparc32_timezonep_t tzp); } 194117 STD { int compat_sparc32_getrusage(int who, sparc32_rusagep_t rusage); } 195118 STD { int compat_sparc32_getsockopt(int s, int level, int name, sparc32_voidp val, sparc32_intp avalsize); } 196119 OBSOL resuba 197120 STD { sparc32_ssize_t compat_sparc32_readv(int fd, const sparc32_iovecp_t iovp, int iovcnt); } 198121 STD { sparc32_ssize_t compat_sparc32_writev(int fd, const sparc32_iovecp_t iovp, int iovcnt); } 199122 STD { int compat_sparc32_settimeofday(const sparc32_timevalp_t tv, const sparc32_timezonep_t tzp); } 200123 NOARGS { int sys_fchown(int fd, uid_t uid, gid_t gid); } 201124 NOARGS { int sys_fchmod(int fd, mode_t mode); } 202125 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); } 203126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 204127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } 205128 STD { int compat_sparc32_rename(const sparc32_charp from, const sparc32_charp to); } 206129 COMPAT_43 { int compat_sparc32_otruncate(const sparc32_charp path, sparc32_long length); } 207130 COMPAT_43 { int compat_sparc32_oftruncate(int fd, sparc32_long length); } 208131 NOARGS { int sys_flock(int fd, int how); } 209132 STD { int compat_sparc32_mkfifo(const sparc32_charp path, mode_t mode); } 210133 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); } 211134 NOARGS { int sys_shutdown(int s, int how); } 212135 STD { int compat_sparc32_socketpair(int domain, int type, int protocol, sparc32_intp rsv); } 213136 STD { int compat_sparc32_mkdir(const sparc32_charp path, mode_t mode); } 214137 STD { int compat_sparc32_rmdir(const sparc32_charp path); } 215138 STD { int compat_sparc32_utimes(const sparc32_charp path, const sparc32_timevalp_t tptr); } 216139 OBSOL 4.2 sigreturn 217140 STD { int compat_sparc32_adjtime(const sparc32_timevalp_t delta, sparc32_timevalp_t olddelta); } 218141 COMPAT_43 { int compat_sparc32_ogetpeername(int fdes, sparc32_caddr_t asa, sparc32_intp alen); } 219142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid 220#ifdef COMPAT_43 221143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } 222#else 223143 OBSOL sethostid 224#endif 225144 COMPAT_43 { int compat_sparc32_ogetrlimit(int which, sparc32_orlimitp_t rlp); } 226145 COMPAT_43 { int compat_sparc32_osetrlimit(int which, const sparc32_orlimitp_t rlp); } 227#ifdef COMPAT_43 228146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } 229#else 230146 OBSOL killpg 231#endif 232147 NOARGS { int sys_setsid(void); } 233148 STD { int compat_sparc32_quotactl(const sparc32_charp path, int cmd, int uid, sparc32_caddr_t arg); } 234149 COMPAT_43 { int sys_quota(void); } oquota 235150 COMPAT_43 { int compat_sparc32_ogetsockname(int fdec, sparc32_caddr_t asa, sparc32_intp alen); } 236 237; Syscalls 151-180 inclusive are reserved for vendor-specific 238; system calls. (This includes various calls added for compatibity 239; with other Unix variants.) 240; Some of these calls are now supported by BSD... 241151 UNIMPL 242152 UNIMPL 243153 UNIMPL 244154 UNIMPL 245#if defined(NFS) || defined(NFSSERVER) 246155 STD { int compat_sparc32_nfssvc(int flag, sparc32_voidp argp); } 247#else 248155 UNIMPL 249#endif 250156 COMPAT_43 { int compat_sparc32_ogetdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); } 251157 STD { int compat_sparc32_statfs(const sparc32_charp path, sparc32_statfsp_t buf); } 252158 STD { int compat_sparc32_fstatfs(int fd, sparc32_statfsp_t buf); } 253159 UNIMPL 254160 UNIMPL 255#if defined(NFS) || defined(NFSSERVER) 256161 STD { int compat_sparc32_getfh(const sparc32_charp fname, sparc32_fhandlep_t fhp); } 257#else 258161 UNIMPL compat_sparc32_getfh 259#endif 260162 COMPAT_09 { int compat_sparc32_ogetdomainname(sparc32_charp domainname, int len); } 261163 COMPAT_09 { int compat_sparc32_osetdomainname(sparc32_charp domainname, int len); } 262164 COMPAT_09 { int compat_sparc32_uname(sparc32_outsnamep_t name); } 263165 STD { int compat_sparc32_sysarch(int op, sparc32_voidp parms); } 264166 UNIMPL 265167 UNIMPL 266168 UNIMPL 267; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int) 268#if defined(SYSVSEM) && !defined(alpha) 269169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys 270#else 271169 UNIMPL 1.0 semsys 272#endif 273; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int) 274#if defined(SYSVMSG) && !defined(alpha) 275170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys 276#else 277170 UNIMPL 1.0 msgsys 278#endif 279; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int) 280#if defined(SYSVSHM) && !defined(alpha) 281171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys 282#else 283171 UNIMPL 1.0 shmsys 284#endif 285172 UNIMPL 286173 STD { sparc32_ssize_t compat_sparc32_pread(int fd, sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); } 287174 STD { sparc32_ssize_t compat_sparc32_pwrite(int fd, const sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); } 288175 STD { int compat_sparc32_ntp_gettime(sparc32_ntptimevalp_t ntvp); } 289176 STD { int compat_sparc32_ntp_adjtime(sparc32_timexp_t tp); } 290177 UNIMPL 291178 UNIMPL 292179 UNIMPL 293180 UNIMPL 294 295; Syscalls 180-199 are used by/reserved for BSD 296181 NOARGS { int sys_setgid(gid_t gid); } 297182 NOARGS { int sys_setegid(gid_t egid); } 298183 NOARGS { int sys_seteuid(uid_t euid); } 299#ifdef LFS 300184 STD { int compat_sparc32_lfs_bmapv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); } 301185 STD { int compat_sparc32_lfs_markv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); } 302186 STD { int compat_sparc32_lfs_segclean(sparc32_fsid_tp_t fsidp, sparc32_u_long segment); } 303187 STD { int compat_sparc32_lfs_segwait(sparc32_fsid_tp_t fsidp, sparc32_timevalp_t tv); } 304#else 305184 UNIMPL 306185 UNIMPL 307186 UNIMPL 308187 UNIMPL 309#endif 310188 COMPAT_12 { int compat_sparc32_stat12(const sparc32_charp path, sparc32_stat12p_t ub); } 311189 COMPAT_12 { int compat_sparc32_fstat12(int fd, sparc32_stat12p_t sb); } 312190 COMPAT_12 { int compat_sparc32_lstat12(const sparc32_charp path, sparc32_stat12p_t ub); } 313191 STD { sparc32_long compat_sparc32_pathconf(const sparc32_charp path, int name); } 314192 STD { sparc32_long compat_sparc32_fpathconf(int fd, int name); } 315193 UNIMPL 316194 STD { int compat_sparc32_getrlimit(int which, sparc32_rlimitp_t rlp); } 317195 STD { int compat_sparc32_setrlimit(int which, const sparc32_rlimitp_t rlp); } 318196 COMPAT_12 { int compat_sparc32_getdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); } 319197 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); } 320198 INDIR { quad_t sys___syscall(quad_t num, ...); } 321199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } 322200 STD { int compat_sparc32_truncate(const sparc32_charp path, int pad, off_t length); } 323201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); } 324202 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); } 325203 STD { int compat_sparc32_mlock(const sparc32_voidp addr, sparc32_size_t len); } 326204 STD { int compat_sparc32_munlock(const sparc32_voidp addr, sparc32_size_t len); } 327205 STD { int compat_sparc32_undelete(const sparc32_charp path); } 328206 STD { int compat_sparc32_futimes(int fd, const sparc32_timevalp_t tptr); } 329207 NOARGS { int sys_getpgid(pid_t pid); } 330208 STD { int compat_sparc32_reboot(int opt, sparc32_charp bootstr); } 331209 STD { int compat_sparc32_poll(sparc32_pollfdp_t fds, u_int nfds, int timeout); } 332; 333; Syscalls 210-219 are reserved for dynamically loaded syscalls 334; 335#ifdef LKM 336210 NODEF { int sys_lkmnosys(void); } 337211 NODEF { int sys_lkmnosys(void); } 338212 NODEF { int sys_lkmnosys(void); } 339213 NODEF { int sys_lkmnosys(void); } 340214 NODEF { int sys_lkmnosys(void); } 341215 NODEF { int sys_lkmnosys(void); } 342216 NODEF { int sys_lkmnosys(void); } 343217 NODEF { int sys_lkmnosys(void); } 344218 NODEF { int sys_lkmnosys(void); } 345219 NODEF { int sys_lkmnosys(void); } 346#else /* !LKM */ 347210 UNIMPL 348211 UNIMPL 349212 UNIMPL 350213 UNIMPL 351214 UNIMPL 352215 UNIMPL 353216 UNIMPL 354217 UNIMPL 355218 UNIMPL 356219 UNIMPL 357#endif /* !LKM */ 358; System calls 220-300 are reserved for use by NetBSD 359#ifdef SYSVSEM 360220 STD { int compat_sparc32___semctl(int semid, int semnum, int cmd, sparc32_semunu_t arg); } 361221 STD { int compat_sparc32_semget(sparc32_key_t key, int nsems, int semflg); } 362222 STD { int compat_sparc32_semop(int semid, sparc32_sembufp_t sops, sparc32_size_t nsops); } 363223 NOARGS { int sys_semconfig(int flag); } 364#else 365220 UNIMPL compat_sparc32_semctl 366221 UNIMPL compat_sparc32_semget 367222 UNIMPL compat_sparc32_semop 368223 UNIMPL compat_sparc32_semconfig 369#endif 370#ifdef SYSVMSG 371224 STD { int compat_sparc32_msgctl(int msqid, int cmd, sparc32_msqid_dsp_t buf); } 372225 STD { int compat_sparc32_msgget(sparc32_key_t key, int msgflg); } 373226 STD { int compat_sparc32_msgsnd(int msqid, const sparc32_voidp msgp, sparc32_size_t msgsz, int msgflg); } 374227 STD { sparc32_ssize_t compat_sparc32_msgrcv(int msqid, sparc32_voidp msgp, sparc32_size_t msgsz, sparc32_long msgtyp, int msgflg); } 375#else 376224 UNIMPL compat_sparc32_msgctl 377225 UNIMPL compat_sparc32_msgget 378226 UNIMPL compat_sparc32_msgsnd 379227 UNIMPL compat_sparc32_msgrcv 380#endif 381#ifdef SYSVSHM 382228 STD { sparc32_voidp compat_sparc32_shmat(int shmid, const sparc32_voidp shmaddr, int shmflg); } 383229 STD { int compat_sparc32_shmctl(int shmid, int cmd, sparc32_shmid_dsp_t buf); } 384230 STD { int compat_sparc32_shmdt(const sparc32_voidp shmaddr); } 385231 STD { int compat_sparc32_shmget(sparc32_key_t key, sparc32_size_t size, int shmflg); } 386#else 387228 UNIMPL compat_sparc32_shmat 388229 UNIMPL compat_sparc32_shmctl 389230 UNIMPL compat_sparc32_shmdt 390231 UNIMPL compat_sparc32_shmget 391#endif 392232 STD { int compat_sparc32_clock_gettime(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); } 393233 STD { int compat_sparc32_clock_settime(sparc32_clockid_t clock_id, const sparc32_timespecp_t tp); } 394234 STD { int compat_sparc32_clock_getres(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); } 395235 UNIMPL timer_create 396236 UNIMPL timer_delete 397237 UNIMPL timer_settime 398238 UNIMPL timer_gettime 399239 UNIMPL timer_getoverrun 400; 401; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls 402; 403240 STD { int compat_sparc32_nanosleep(const sparc32_timespecp_t rqtp, sparc32_timespecp_t rmtp); } 404241 NOARGS { int sys_fdatasync(int fd); } 405242 UNIMPL 406243 UNIMPL 407244 UNIMPL 408245 UNIMPL 409246 UNIMPL 410247 UNIMPL 411248 UNIMPL 412249 UNIMPL 413250 UNIMPL 414251 UNIMPL 415252 UNIMPL 416253 UNIMPL 417254 UNIMPL 418255 UNIMPL 419256 UNIMPL 420257 UNIMPL 421258 UNIMPL 422259 UNIMPL 423260 UNIMPL 424261 UNIMPL 425262 UNIMPL 426263 UNIMPL 427264 UNIMPL 428265 UNIMPL 429266 UNIMPL 430267 UNIMPL 431268 UNIMPL 432269 UNIMPL 433270 STD { int compat_sparc32___posix_rename(const sparc32_charp from, const sparc32_charp to); } 434271 STD { int compat_sparc32_swapctl(int cmd, const sparc32_voidp arg, int misc); } 435272 STD { int compat_sparc32_getdents(int fd, sparc32_charp buf, sparc32_size_t count); } 436273 STD { int compat_sparc32_minherit(sparc32_voidp addr, sparc32_size_t len, int inherit); } 437274 STD { int compat_sparc32_lchmod(const sparc32_charp path, mode_t mode); } 438275 STD { int compat_sparc32_lchown(const sparc32_charp path, uid_t uid, gid_t gid); } 439276 STD { int compat_sparc32_lutimes(const sparc32_charp path, const sparc32_timevalp_t tptr); } 440277 STD { int compat_sparc32___msync13(sparc32_voidp addr, sparc32_size_t len, int flags); } 441278 STD { int compat_sparc32___stat13(const sparc32_charp path, sparc32_statp_t ub); } 442279 STD { int compat_sparc32___fstat13(int fd, sparc32_statp_t sb); } 443280 STD { int compat_sparc32___lstat13(const sparc32_charp path, sparc32_statp_t ub); } 444281 STD { int compat_sparc32___sigaltstack14(const sparc32_sigaltstackp_t nss, sparc32_sigaltstackp_t oss); } 445282 NOARGS { int sys___vfork14(void); } 446283 STD { int compat_sparc32___posix_chown(const sparc32_charp path, uid_t uid, gid_t gid); } 447284 NOARGS { int sys___posix_fchown(int fd, uid_t uid, gid_t gid); } 448285 STD { int compat_sparc32___posix_lchown(const sparc32_charp path, uid_t uid, gid_t gid); } 449286 NOARGS { pid_t sys_getsid(pid_t pid); } 450287 UNIMPL 451#ifdef KTRACE 452288 NOARGS { int sys_fktrace(const int fd, int ops, int facs, int pid); } 453#else 454288 UNIMPL 455#endif 456289 STD { sparc32_ssize_t compat_sparc32_preadv(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 457290 STD { sparc32_ssize_t compat_sparc32_pwritev(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); } 458