syscalls.master revision 1.34
11.34Smycroft $NetBSD: syscalls.master,v 1.34 1996/06/23 11:15:37 mycroft Exp $ 21.20Scgd 31.17Scgd; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 41.1Sderaadt 51.18Sderaadt; NetBSD COMPAT_SUNOS system call name/number "master" file. 61.18Sderaadt; (See syscalls.conf to see what it is processed into.) 71.18Sderaadt; 81.18Sderaadt; Fields: number type [type-dependent ...] 91.1Sderaadt; number system call number, must be in order 101.18Sderaadt; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 111.18Sderaadt; the compatibility options defined in syscalls.conf. 121.18Sderaadt; 131.1Sderaadt; types: 141.1Sderaadt; STD always included 151.18Sderaadt; OBSOL obsolete, not included in system 161.18Sderaadt; UNIMPL unimplemented, not included in system 171.18Sderaadt; NODEF included, but don't define the syscall number 181.18Sderaadt; NOARGS included, but don't define the syscall args structure 191.18Sderaadt; 201.18Sderaadt; The compat options are defined in the syscalls.conf file, and the 211.18Sderaadt; compat option name is prefixed to the syscall name. Other than 221.18Sderaadt; that, they're like NODEF (for 'compat' options), or STD (for 231.18Sderaadt; 'libcompat' options). 241.18Sderaadt; 251.18Sderaadt; The type-dependent arguments are as follows: 261.18Sderaadt; For STD, NODEF, NOARGS, and compat syscalls: 271.18Sderaadt; { pseudo-proto } [alias] 281.18Sderaadt; For other syscalls: 291.18Sderaadt; [comment] 301.18Sderaadt; 311.18Sderaadt; #ifdef's, etc. may be included, and are copied to the output files. 321.18Sderaadt; #include's are copied to the syscall switch definition file only. 331.1Sderaadt 341.18Sderaadt#include <sys/param.h> 351.18Sderaadt#include <sys/systm.h> 361.18Sderaadt#include <sys/signal.h> 371.18Sderaadt#include <sys/mount.h> 381.18Sderaadt#include <sys/syscallargs.h> 391.18Sderaadt#include <compat/sunos/sunos.h> 401.19Sderaadt#include <compat/sunos/sunos_syscallargs.h> 411.1Sderaadt 421.32Smycroft0 NOARGS { int sys_nosys(void); } syscall 431.32Smycroft1 NOARGS { int sys_exit(int rval); } 441.32Smycroft2 NOARGS { int sys_fork(void); } 451.32Smycroft3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 461.32Smycroft4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 471.32Smycroft5 STD { int sunos_sys_open(char *path, int flags, int mode); } 481.32Smycroft6 NOARGS { int sys_close(int fd); } 491.32Smycroft7 STD { int sunos_sys_wait4(int pid, int *status, \ 501.32Smycroft int options, struct rusage *rusage); } 511.32Smycroft8 STD { int sunos_sys_creat(char *path, int mode); } 521.32Smycroft9 NOARGS { int sys_link(char *path, char *link); } 531.32Smycroft10 NOARGS { int sys_unlink(char *path); } 541.32Smycroft11 STD { int sunos_sys_execv(char *path, char **argp); } 551.32Smycroft12 NOARGS { int sys_chdir(char *path); } 561.18Sderaadt13 OBSOL time 571.32Smycroft14 STD { int sunos_sys_mknod(char *path, int mode, int dev); } 581.32Smycroft15 NOARGS { int sys_chmod(char *path, int mode); } 591.32Smycroft16 NOARGS { int sys_chown(char *path, int uid, int gid); } 601.32Smycroft17 NOARGS { int sys_obreak(char *nsize); } break 611.18Sderaadt18 OBSOL stat 621.32Smycroft19 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); } 631.32Smycroft20 NOARGS { pid_t sys_getpid(void); } 641.18Sderaadt21 OBSOL sunos_old_mount 651.18Sderaadt22 UNIMPL System V umount 661.32Smycroft23 NOARGS { int sys_setuid(uid_t uid); } 671.32Smycroft24 NOARGS { uid_t sys_getuid(void); } 681.18Sderaadt25 UNIMPL sunos_stime 691.32Smycroft26 STD { long sunos_sys_ptrace(int req, pid_t pid, \ 701.32Smycroft caddr_t addr, int data, char *addr2); } 711.18Sderaadt27 UNIMPL sunos_alarm 721.18Sderaadt28 UNIMPL sunos_fstat 731.18Sderaadt29 UNIMPL sunos_pause 741.18Sderaadt30 UNIMPL sunos_utime 751.18Sderaadt31 UNIMPL sunos_stty 761.18Sderaadt32 UNIMPL sunos_gtty 771.32Smycroft33 STD { int sunos_sys_access(char *path, int flags); } 781.18Sderaadt34 UNIMPL sunos_nice 791.18Sderaadt35 UNIMPL sunos_ftime 801.32Smycroft36 NOARGS { int sys_sync(void); } 811.32Smycroft37 NOARGS { int sys_kill(int pid, int signum); } 821.32Smycroft38 STD { int sunos_sys_stat(char *path, struct ostat *ub); } 831.18Sderaadt39 UNIMPL sunos_setpgrp 841.32Smycroft40 STD { int sunos_sys_lstat(char *path, struct ostat *ub); } 851.32Smycroft41 NOARGS { int sys_dup(u_int fd); } 861.32Smycroft42 NOARGS { int sys_pipe(void); } 871.18Sderaadt43 UNIMPL sunos_times 881.32Smycroft44 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 891.18Sderaadt u_int offset, u_int scale); } 901.18Sderaadt45 UNIMPL 911.32Smycroft46 NOARGS { int sys_setgid(uid_t gid); } 921.32Smycroft47 NOARGS { gid_t sys_getgid(void); } 931.18Sderaadt48 UNIMPL sunos_ssig 941.18Sderaadt49 UNIMPL reserved for USG 951.18Sderaadt50 UNIMPL reserved for USG 961.32Smycroft51 NOARGS { int sys_acct(char *path); } 971.18Sderaadt52 UNIMPL 981.32Smycroft53 STD { int sunos_sys_mctl(caddr_t addr, int len, int func, \ 991.18Sderaadt void *arg); } 1001.32Smycroft54 STD { int sunos_sys_ioctl(int fd, u_long com, \ 1011.32Smycroft caddr_t data); } 1021.32Smycroft55 STD { int sunos_sys_reboot(int howto, char *bootstr); } 1031.18Sderaadt56 OBSOL sunos_owait3 1041.32Smycroft57 NOARGS { int sys_symlink(char *path, char *link); } 1051.32Smycroft58 NOARGS { int sys_readlink(char *path, char *buf, int count); } 1061.32Smycroft59 NOARGS { int sys_execve(char *path, char **argp, \ 1071.32Smycroft char **envp); } 1081.32Smycroft60 NOARGS { int sys_umask(int newmask); } 1091.32Smycroft61 NOARGS { int sys_chroot(char *path); } 1101.32Smycroft62 NOARGS { int compat_43_sys_fstat(int fd, struct ostat *sb); } 1111.18Sderaadt63 UNIMPL 1121.32Smycroft64 NOARGS { int compat_43_sys_getpagesize(void); } 1131.32Smycroft65 STD { int sunos_sys_omsync(caddr_t addr, size_t len, \ 1141.32Smycroft int flags); } 1151.32Smycroft66 NOARGS { int sys_vfork(void); } 1161.18Sderaadt67 OBSOL vread 1171.18Sderaadt68 OBSOL vwrite 1181.32Smycroft69 NOARGS { int sys_sbrk(int incr); } 1191.32Smycroft70 NOARGS { int sys_sstk(int incr); } 1201.32Smycroft71 STD { int sunos_sys_mmap(caddr_t addr, size_t len, \ 1211.32Smycroft int prot, int flags, int fd, long pos); } 1221.32Smycroft72 NOARGS { int sys_ovadvise(int anom); } vadvise 1231.32Smycroft73 NOARGS { int sys_munmap(caddr_t addr, size_t len); } 1241.32Smycroft74 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \ 1251.32Smycroft int prot); } 1261.32Smycroft75 NOARGS { int sys_madvise(caddr_t addr, size_t len, \ 1271.32Smycroft int behav); } 1281.32Smycroft76 STD { int sunos_sys_vhangup(void); } 1291.18Sderaadt77 UNIMPL vlimit 1301.32Smycroft78 NOARGS { int sys_mincore(caddr_t addr, size_t len, \ 1311.32Smycroft char *vec); } 1321.32Smycroft79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 1331.32Smycroft80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 1341.32Smycroft81 NOARGS { int sys_getpgrp(void); } 1351.32Smycroft82 STD { int sunos_sys_setpgrp(int pid, int pgid); } 1361.32Smycroft83 NOARGS { int sys_setitimer(u_int which, \ 1371.32Smycroft struct itimerval *itv, struct itimerval *oitv); } 1381.32Smycroft84 UNIMPL { int sunos_sys_wait(void); } 1391.32Smycroft85 NOARGS { int sys_swapon(char *name); } 1401.32Smycroft86 NOARGS { int sys_getitimer(u_int which, \ 1411.32Smycroft struct itimerval *itv); } 1421.32Smycroft87 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 1431.32Smycroft u_int len); } 1441.32Smycroft88 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 1451.32Smycroft u_int len); } 1461.32Smycroft89 NOARGS { int compat_43_sys_getdtablesize(void); } 1471.32Smycroft90 NOARGS { int sys_dup2(u_int from, u_int to); } 1481.18Sderaadt91 UNIMPL getdopt 1491.33Spk92 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); } 1501.32Smycroft93 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 1511.18Sderaadt fd_set *ex, struct timeval *tv); } 1521.18Sderaadt94 UNIMPL setdopt 1531.32Smycroft95 NOARGS { int sys_fsync(int fd); } 1541.32Smycroft96 NOARGS { int sys_setpriority(int which, int who, int prio); } 1551.32Smycroft97 NOARGS { int sys_socket(int domain, int type, int protocol); } 1561.32Smycroft98 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 1571.32Smycroft99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 1581.32Smycroft int *anamelen); } 1591.32Smycroft100 NOARGS { int sys_getpriority(int which, int who); } 1601.32Smycroft101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 1611.32Smycroft int flags); } 1621.32Smycroft102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 1631.32Smycroft int flags); } 1641.18Sderaadt103 UNIMPL old socketaddr 1651.32Smycroft104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 1661.32Smycroft105 STD { int sunos_sys_setsockopt(int s, int level, int name, \ 1671.18Sderaadt caddr_t val, int valsize); } 1681.32Smycroft106 NOARGS { int sys_listen(int s, int backlog); } 1691.18Sderaadt107 UNIMPL vtimes 1701.32Smycroft108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \ 1711.18Sderaadt struct sigvec *osv); } 1721.32Smycroft109 NOARGS { int compat_43_sys_sigblock(int mask); } 1731.32Smycroft110 NOARGS { int compat_43_sys_sigsetmask(int mask); } 1741.32Smycroft111 NOARGS { int sys_sigsuspend(int mask); } 1751.32Smycroft112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 1761.18Sderaadt struct sigstack *oss); } 1771.32Smycroft113 NOARGS { int compat_43_sys_recvmsg(int s, \ 1781.32Smycroft struct omsghdr *msg, int flags); } 1791.32Smycroft114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 1801.32Smycroft int flags); } 1811.18Sderaadt115 OBSOL vtrace 1821.32Smycroft116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 1831.18Sderaadt struct timezone *tzp); } 1841.32Smycroft117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 1851.32Smycroft118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 1861.18Sderaadt caddr_t val, int *avalsize); } 1871.18Sderaadt119 UNIMPL 1881.32Smycroft120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 1891.32Smycroft u_int iovcnt); } 1901.32Smycroft121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 1911.18Sderaadt u_int iovcnt); } 1921.32Smycroft122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 1931.18Sderaadt struct timezone *tzp); } 1941.32Smycroft123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 1951.32Smycroft124 NOARGS { int sys_fchmod(int fd, int mode); } 1961.32Smycroft125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 1971.32Smycroft size_t len, int flags, caddr_t from, \ 1981.32Smycroft int *fromlenaddr); } 1991.34Smycroft126 NOARGS { int sys_setreuid(int ruid, int euid); } 2001.34Smycroft127 NOARGS { int sys_setregid(int rgid, int egid); } 2011.32Smycroft128 NOARGS { int sys_rename(char *from, char *to); } 2021.32Smycroft129 NOARGS { int compat_43_sys_truncate(char *path, long length); } 2031.32Smycroft130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 2041.32Smycroft131 NOARGS { int sys_flock(int fd, int how); } 2051.18Sderaadt132 UNIMPL 2061.32Smycroft133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 2071.18Sderaadt int flags, caddr_t to, int tolen); } 2081.32Smycroft134 NOARGS { int sys_shutdown(int s, int how); } 2091.32Smycroft135 NOARGS { int sys_socketpair(int domain, int type, \ 2101.32Smycroft int protocol, int *rsv); } 2111.32Smycroft136 NOARGS { int sys_mkdir(char *path, int mode); } 2121.32Smycroft137 NOARGS { int sys_rmdir(char *path); } 2131.32Smycroft138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 2141.32Smycroft139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); } 2151.32Smycroft140 NOARGS { int sys_adjtime(struct timeval *delta, \ 2161.18Sderaadt struct timeval *olddelta); } 2171.32Smycroft141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 2181.32Smycroft int *alen); } 2191.32Smycroft142 NOARGS { int compat_43_sys_gethostid(void); } 2201.18Sderaadt143 UNIMPL old sethostid 2211.32Smycroft144 STD { int sunos_sys_getrlimit(u_int which, \ 2221.32Smycroft struct orlimit *rlp); } 2231.32Smycroft145 STD { int sunos_sys_setrlimit(u_int which, \ 2241.32Smycroft struct orlimit *rlp); } 2251.32Smycroft146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } 2261.18Sderaadt147 UNIMPL 2271.18Sderaadt148 UNIMPL 2281.18Sderaadt149 UNIMPL 2291.32Smycroft150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \ 2301.32Smycroft int *alen); } 2311.18Sderaadt151 UNIMPL getmsg 2321.18Sderaadt152 UNIMPL putmsg 2331.32Smycroft153 STD { int sunos_sys_poll(struct sunos_pollfd *fds, \ 2341.32Smycroft long nfds, int timeout); } 2351.18Sderaadt154 UNIMPL 2361.9Sderaadt#ifdef NFSSERVER 2371.32Smycroft155 STD { int sunos_sys_nfssvc(int fd); } 2381.9Sderaadt#else 2391.18Sderaadt155 UNIMPL 2401.9Sderaadt#endif 2411.32Smycroft156 NOARGS { int sys_getdirentries(int fd, char *buf, \ 2421.32Smycroft u_int count, long *basep); } 2431.32Smycroft157 STD { int sunos_sys_statfs(char *path, \ 2441.32Smycroft struct sunos_statfs *buf); } 2451.32Smycroft158 STD { int sunos_sys_fstatfs(int fd, \ 2461.32Smycroft struct sunos_statfs *buf); } 2471.32Smycroft159 STD { int sunos_sys_unmount(char *path); } 2481.9Sderaadt#ifdef NFSCLIENT 2491.18Sderaadt160 NOARGS { int async_daemon(void); } 2501.32Smycroft161 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); } 2511.9Sderaadt#else 2521.18Sderaadt160 UNIMPL 2531.18Sderaadt161 UNIMPL 2541.9Sderaadt#endif 2551.32Smycroft162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 2561.32Smycroft int len); } 2571.32Smycroft163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 2581.32Smycroft int len); } 2591.18Sderaadt164 UNIMPL rtschedule 2601.32Smycroft165 STD { int sunos_sys_quotactl(int cmd, char *special, \ 2611.32Smycroft int uid, caddr_t addr); } 2621.32Smycroft166 STD { int sunos_sys_exportfs(char *path, char *ex); } 2631.32Smycroft167 STD { int sunos_sys_mount(char *type, char *dir, \ 2641.32Smycroft int flags, caddr_t data); } 2651.32Smycroft168 STD { int sunos_sys_ustat(int dev, \ 2661.32Smycroft struct sunos_ustat *buf); } 2671.6Sderaadt#ifdef SYSVSEM 2681.32Smycroft169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \ 2691.32Smycroft int a4, int a5); } 2701.6Sderaadt#else 2711.32Smycroft169 UNIMPL semsys 2721.6Sderaadt#endif 2731.6Sderaadt#ifdef SYSVMSG 2741.32Smycroft170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \ 2751.32Smycroft int a4, int a5, int a6); } 2761.6Sderaadt#else 2771.32Smycroft170 UNIMPL msgsys 2781.6Sderaadt#endif 2791.1Sderaadt#ifdef SYSVSHM 2801.32Smycroft171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \ 2811.32Smycroft int a4); } 2821.1Sderaadt#else 2831.32Smycroft171 UNIMPL shmsys 2841.1Sderaadt#endif 2851.32Smycroft172 STD { int sunos_sys_auditsys(char *record); } 2861.18Sderaadt173 UNIMPL rfssys 2871.32Smycroft174 STD { int sunos_sys_getdents(int fd, char *buf, \ 2881.32Smycroft int nbytes); } 2891.32Smycroft175 NOARGS { int sys_setsid(void); } 2901.32Smycroft176 NOARGS { int sys_fchdir(int fd); } 2911.32Smycroft177 STD { int sunos_sys_fchroot(int fd); } 2921.18Sderaadt178 UNIMPL vpixsys 2931.18Sderaadt179 UNIMPL aioread 2941.18Sderaadt180 UNIMPL aiowrite 2951.18Sderaadt181 UNIMPL aiowait 2961.18Sderaadt182 UNIMPL aiocancel 2971.32Smycroft183 STD { int sunos_sys_sigpending(int *mask); } 2981.18Sderaadt184 UNIMPL 2991.32Smycroft185 NOARGS { int sys_setpgid(int pid, int pgid); } 3001.32Smycroft186 NOARGS { long sys_pathconf(char *path, int name); } 3011.32Smycroft187 NOARGS { long sys_fpathconf(int fd, int name); } 3021.32Smycroft188 STD { int sunos_sys_sysconf(int name); } 3031.32Smycroft189 STD { int sunos_sys_uname(struct sunos_utsname *name); } 304