syscalls.master revision 1.50
1 $NetBSD: syscalls.master,v 1.50 1998/12/18 18:49:59 drochner Exp $ 2 3; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 4 5; NetBSD COMPAT_SUNOS system call name/number "master" file. 6; (See syscalls.conf to see what it is processed into.) 7; 8; Fields: number type [type-dependent ...] 9; number system call number, must be in order 10; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of 11; the compatibility options defined in syscalls.conf. 12; 13; types: 14; STD always included 15; OBSOL obsolete, not included in system 16; UNIMPL unimplemented, not included in system 17; NODEF included, but don't define the syscall number 18; NOARGS included, but don't define the syscall args structure 19; 20; The compat options are defined in the syscalls.conf file, and the 21; compat option name is prefixed to the syscall name. Other than 22; that, they're like NODEF (for 'compat' options), or STD (for 23; 'libcompat' options). 24; 25; The type-dependent arguments are as follows: 26; For STD, NODEF, NOARGS, and compat syscalls: 27; { pseudo-proto } [alias] 28; For other syscalls: 29; [comment] 30; 31; #ifdef's, etc. may be included, and are copied to the output files. 32; #include's are copied to the syscall names and switch definition files only. 33 34#include "opt_nfsserver.h" 35#include "opt_sysv.h" 36 37#include "fs_nfs.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/signal.h> 42#include <sys/mount.h> 43#include <sys/poll.h> 44#include <sys/syscallargs.h> 45 46#include <compat/sunos/sunos.h> 47#include <compat/sunos/sunos_syscallargs.h> 48 490 NOARGS { int sys_nosys(void); } syscall 501 NOARGS { int sys_exit(int rval); } 512 NOARGS { int sys_fork(void); } 523 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 534 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 545 STD { int sunos_sys_open(char *path, int flags, int mode); } 556 NOARGS { int sys_close(int fd); } 567 STD { int sunos_sys_wait4(int pid, int *status, \ 57 int options, struct rusage *rusage); } 588 STD { int sunos_sys_creat(char *path, int mode); } 599 NOARGS { int sys_link(char *path, char *link); } 6010 NOARGS { int sys_unlink(char *path); } 6111 STD { int sunos_sys_execv(char *path, char **argp); } 6212 NOARGS { int sys_chdir(char *path); } 6313 OBSOL time 6414 STD { int sunos_sys_mknod(char *path, int mode, int dev); } 6515 NOARGS { int sys_chmod(char *path, int mode); } 6616 NOARGS { int sys_chown(char *path, int uid, int gid); } 6717 NOARGS { int sys_obreak(char *nsize); } break 6818 OBSOL stat 6919 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); } 7020 NOARGS { pid_t sys_getpid(void); } 7121 OBSOL sunos_old_mount 7222 UNIMPL System V umount 7323 NOARGS { int sys_setuid(uid_t uid); } 7424 NOARGS { uid_t sys_getuid(void); } 7525 STD { int sunos_sys_stime(time_t *tp); } 7626 STD { long sunos_sys_ptrace(int req, pid_t pid, \ 77 caddr_t addr, int data, char *addr2); } 7827 UNIMPL sunos_alarm 7928 UNIMPL sunos_fstat 8029 UNIMPL sunos_pause 8130 UNIMPL sunos_utime 8231 UNIMPL sunos_stty 8332 UNIMPL sunos_gtty 8433 STD { int sunos_sys_access(char *path, int flags); } 8534 UNIMPL sunos_nice 8635 UNIMPL sunos_ftime 8736 NOARGS { int sys_sync(void); } 8837 NOARGS { int sys_kill(int pid, int signum); } 8938 STD { int sunos_sys_stat(char *path, struct stat43 *ub); } 9039 UNIMPL sunos_setpgrp 9140 STD { int sunos_sys_lstat(char *path, struct stat43 *ub); } 9241 NOARGS { int sys_dup(u_int fd); } 9342 NOARGS { int sys_pipe(void); } 9443 UNIMPL sunos_times 9544 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 96 u_int offset, u_int scale); } 9745 UNIMPL 9846 NOARGS { int sys_setgid(uid_t gid); } 9947 NOARGS { gid_t sys_getgid(void); } 10048 UNIMPL sunos_ssig 10149 UNIMPL reserved for USG 10250 UNIMPL reserved for USG 10351 NOARGS { int sys_acct(char *path); } 10452 UNIMPL 10553 STD { int sunos_sys_mctl(void *addr, int len, int func, \ 106 void *arg); } 10754 STD { int sunos_sys_ioctl(int fd, u_long com, \ 108 caddr_t data); } 10955 STD { int sunos_sys_reboot(int howto, char *bootstr); } 11056 OBSOL sunos_owait3 11157 NOARGS { int sys_symlink(char *path, char *link); } 11258 NOARGS { int sys_readlink(char *path, char *buf, int count); } 11359 STD { int sunos_sys_execve(char *path, char **argp, \ 114 char **envp); } 11560 NOARGS { int sys_umask(int newmask); } 11661 NOARGS { int sys_chroot(char *path); } 11762 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } 11863 UNIMPL 11964 NOARGS { int compat_43_sys_getpagesize(void); } 12065 STD { int sunos_sys_omsync(caddr_t addr, size_t len, \ 121 int flags); } 12266 NOARGS { int sys_vfork(void); } 12367 OBSOL vread 12468 OBSOL vwrite 12569 NOARGS { int sys_sbrk(int incr); } 12670 NOARGS { int sys_sstk(int incr); } 12771 STD { void *sunos_sys_mmap(void *addr, size_t len, \ 128 int prot, int flags, int fd, long pos); } 12972 NOARGS { int sys_ovadvise(int anom); } vadvise 13073 NOARGS { int sys_munmap(void *addr, size_t len); } 13174 NOARGS { int sys_mprotect(void *addr, size_t len, \ 132 int prot); } 13375 NOARGS { int sys_madvise(void *addr, size_t len, \ 134 int behav); } 13576 STD { int sunos_sys_vhangup(void); } 13677 UNIMPL vlimit 13778 NOARGS { int sys_mincore(void *addr, size_t len, \ 138 char *vec); } 13979 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 14080 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 14181 NOARGS { int sys_getpgrp(void); } 14282 STD { int sunos_sys_setpgrp(int pid, int pgid); } 14383 NOARGS { int sys_setitimer(u_int which, \ 144 struct itimerval *itv, struct itimerval *oitv); } 14584 UNIMPL { int sunos_sys_wait(void); } 14685 NOARGS { int compat_12_sys_swapon(char *name); } 14786 NOARGS { int sys_getitimer(u_int which, \ 148 struct itimerval *itv); } 14987 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 150 u_int len); } 15188 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 152 u_int len); } 15389 NOARGS { int compat_43_sys_getdtablesize(void); } 15490 NOARGS { int sys_dup2(u_int from, u_int to); } 15591 UNIMPL getdopt 15692 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); } 15793 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 158 fd_set *ex, struct timeval *tv); } 15994 UNIMPL setdopt 16095 NOARGS { int sys_fsync(int fd); } 16196 NOARGS { int sys_setpriority(int which, int who, int prio); } 16297 NOARGS { int sys_socket(int domain, int type, int protocol); } 16398 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 16499 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 165 int *anamelen); } 166100 NOARGS { int sys_getpriority(int which, int who); } 167101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 168 int flags); } 169102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 170 int flags); } 171103 UNIMPL old socketaddr 172104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 173105 STD { int sunos_sys_setsockopt(int s, int level, int name, \ 174 caddr_t val, int valsize); } 175106 NOARGS { int sys_listen(int s, int backlog); } 176107 UNIMPL vtimes 177108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \ 178 struct sigvec *osv); } 179109 NOARGS { int compat_43_sys_sigblock(int mask); } 180110 NOARGS { int compat_43_sys_sigsetmask(int mask); } 181111 STD { int sunos_sys_sigsuspend(int mask); } 182112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 183 struct sigstack *oss); } 184113 NOARGS { int compat_43_sys_recvmsg(int s, \ 185 struct omsghdr *msg, int flags); } 186114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 187 int flags); } 188115 OBSOL vtrace 189116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 190 struct timezone *tzp); } 191117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 192118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 193 caddr_t val, int *avalsize); } 194119 UNIMPL 195120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 196 u_int iovcnt); } 197121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 198 u_int iovcnt); } 199122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 200 struct timezone *tzp); } 201123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 202124 NOARGS { int sys_fchmod(int fd, int mode); } 203125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 204 size_t len, int flags, caddr_t from, \ 205 int *fromlenaddr); } 206126 NOARGS { int sys_setreuid(int ruid, int euid); } 207127 NOARGS { int sys_setregid(int rgid, int egid); } 208128 NOARGS { int sys_rename(char *from, char *to); } 209129 NOARGS { int compat_43_sys_truncate(char *path, long length); } 210130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 211131 NOARGS { int sys_flock(int fd, int how); } 212132 UNIMPL 213133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 214 int flags, caddr_t to, int tolen); } 215134 NOARGS { int sys_shutdown(int s, int how); } 216135 NOARGS { int sys_socketpair(int domain, int type, \ 217 int protocol, int *rsv); } 218136 NOARGS { int sys_mkdir(char *path, int mode); } 219137 NOARGS { int sys_rmdir(char *path); } 220138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 221139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); } 222140 NOARGS { int sys_adjtime(struct timeval *delta, \ 223 struct timeval *olddelta); } 224141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 225 int *alen); } 226142 NOARGS { int compat_43_sys_gethostid(void); } 227143 UNIMPL old sethostid 228144 STD { int sunos_sys_getrlimit(u_int which, \ 229 struct orlimit *rlp); } 230145 STD { int sunos_sys_setrlimit(u_int which, \ 231 struct orlimit *rlp); } 232146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } 233147 UNIMPL 234148 UNIMPL 235149 UNIMPL 236150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \ 237 int *alen); } 238151 UNIMPL getmsg 239152 UNIMPL putmsg 240153 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ 241 int timeout); } 242154 UNIMPL 243#ifdef NFSSERVER 244155 STD { int sunos_sys_nfssvc(int fd); } 245#else 246155 UNIMPL 247#endif 248156 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ 249 u_int count, long *basep); } 250157 STD { int sunos_sys_statfs(char *path, \ 251 struct sunos_statfs *buf); } 252158 STD { int sunos_sys_fstatfs(int fd, \ 253 struct sunos_statfs *buf); } 254159 STD { int sunos_sys_unmount(char *path); } 255#ifdef NFS 256160 NOARGS { int async_daemon(void); } 257161 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); } 258#else 259160 UNIMPL 260161 UNIMPL 261#endif 262162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 263 int len); } 264163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 265 int len); } 266164 UNIMPL rtschedule 267165 STD { int sunos_sys_quotactl(int cmd, char *special, \ 268 int uid, caddr_t addr); } 269166 STD { int sunos_sys_exportfs(char *path, char *ex); } 270167 STD { int sunos_sys_mount(char *type, char *dir, \ 271 int flags, caddr_t data); } 272168 STD { int sunos_sys_ustat(int dev, \ 273 struct sunos_ustat *buf); } 274#ifdef SYSVSEM 275169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \ 276 int a4, int a5); } 277#else 278169 UNIMPL semsys 279#endif 280#ifdef SYSVMSG 281170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \ 282 int a4, int a5, int a6); } 283#else 284170 UNIMPL msgsys 285#endif 286#ifdef SYSVSHM 287171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \ 288 int a4); } 289#else 290171 UNIMPL shmsys 291#endif 292172 STD { int sunos_sys_auditsys(char *record); } 293173 UNIMPL rfssys 294174 STD { int sunos_sys_getdents(int fd, char *buf, \ 295 int nbytes); } 296175 NOARGS { int sys_setsid(void); } 297176 NOARGS { int sys_fchdir(int fd); } 298177 STD { int sunos_sys_fchroot(int fd); } 299178 UNIMPL vpixsys 300179 UNIMPL aioread 301180 UNIMPL aiowrite 302181 UNIMPL aiowait 303182 UNIMPL aiocancel 304183 STD { int sunos_sys_sigpending(int *mask); } 305184 UNIMPL 306185 NOARGS { int sys_setpgid(int pid, int pgid); } 307186 NOARGS { long sys_pathconf(char *path, int name); } 308187 NOARGS { long sys_fpathconf(int fd, int name); } 309188 STD { int sunos_sys_sysconf(int name); } 310189 STD { int sunos_sys_uname(struct sunos_utsname *name); } 311