syscalls.master revision 1.35
1 $NetBSD: syscalls.master,v 1.35 1996/08/26 22:49:48 thorpej 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 switch definition file only. 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/signal.h> 37#include <sys/mount.h> 38#include <sys/syscallargs.h> 39#include <compat/sunos/sunos.h> 40#include <compat/sunos/sunos_syscallargs.h> 41 420 NOARGS { int sys_nosys(void); } syscall 431 NOARGS { int sys_exit(int rval); } 442 NOARGS { int sys_fork(void); } 453 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 464 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 475 STD { int sunos_sys_open(char *path, int flags, int mode); } 486 NOARGS { int sys_close(int fd); } 497 STD { int sunos_sys_wait4(int pid, int *status, \ 50 int options, struct rusage *rusage); } 518 STD { int sunos_sys_creat(char *path, int mode); } 529 NOARGS { int sys_link(char *path, char *link); } 5310 NOARGS { int sys_unlink(char *path); } 5411 STD { int sunos_sys_execv(char *path, char **argp); } 5512 NOARGS { int sys_chdir(char *path); } 5613 OBSOL time 5714 STD { int sunos_sys_mknod(char *path, int mode, int dev); } 5815 NOARGS { int sys_chmod(char *path, int mode); } 5916 NOARGS { int sys_chown(char *path, int uid, int gid); } 6017 NOARGS { int sys_obreak(char *nsize); } break 6118 OBSOL stat 6219 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); } 6320 NOARGS { pid_t sys_getpid(void); } 6421 OBSOL sunos_old_mount 6522 UNIMPL System V umount 6623 NOARGS { int sys_setuid(uid_t uid); } 6724 NOARGS { uid_t sys_getuid(void); } 6825 UNIMPL sunos_stime 6926 STD { long sunos_sys_ptrace(int req, pid_t pid, \ 70 caddr_t addr, int data, char *addr2); } 7127 UNIMPL sunos_alarm 7228 UNIMPL sunos_fstat 7329 UNIMPL sunos_pause 7430 UNIMPL sunos_utime 7531 UNIMPL sunos_stty 7632 UNIMPL sunos_gtty 7733 STD { int sunos_sys_access(char *path, int flags); } 7834 UNIMPL sunos_nice 7935 UNIMPL sunos_ftime 8036 NOARGS { int sys_sync(void); } 8137 NOARGS { int sys_kill(int pid, int signum); } 8238 STD { int sunos_sys_stat(char *path, struct ostat *ub); } 8339 UNIMPL sunos_setpgrp 8440 STD { int sunos_sys_lstat(char *path, struct ostat *ub); } 8541 NOARGS { int sys_dup(u_int fd); } 8642 NOARGS { int sys_pipe(void); } 8743 UNIMPL sunos_times 8844 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 89 u_int offset, u_int scale); } 9045 UNIMPL 9146 NOARGS { int sys_setgid(uid_t gid); } 9247 NOARGS { gid_t sys_getgid(void); } 9348 UNIMPL sunos_ssig 9449 UNIMPL reserved for USG 9550 UNIMPL reserved for USG 9651 NOARGS { int sys_acct(char *path); } 9752 UNIMPL 9853 STD { int sunos_sys_mctl(caddr_t addr, int len, int func, \ 99 void *arg); } 10054 STD { int sunos_sys_ioctl(int fd, u_long com, \ 101 caddr_t data); } 10255 STD { int sunos_sys_reboot(int howto, char *bootstr); } 10356 OBSOL sunos_owait3 10457 NOARGS { int sys_symlink(char *path, char *link); } 10558 NOARGS { int sys_readlink(char *path, char *buf, int count); } 10659 STD { int sunos_sys_execve(char *path, char **argp, \ 107 char **envp); } 10860 NOARGS { int sys_umask(int newmask); } 10961 NOARGS { int sys_chroot(char *path); } 11062 NOARGS { int compat_43_sys_fstat(int fd, struct ostat *sb); } 11163 UNIMPL 11264 NOARGS { int compat_43_sys_getpagesize(void); } 11365 STD { int sunos_sys_omsync(caddr_t addr, size_t len, \ 114 int flags); } 11566 NOARGS { int sys_vfork(void); } 11667 OBSOL vread 11768 OBSOL vwrite 11869 NOARGS { int sys_sbrk(int incr); } 11970 NOARGS { int sys_sstk(int incr); } 12071 STD { int sunos_sys_mmap(caddr_t addr, size_t len, \ 121 int prot, int flags, int fd, long pos); } 12272 NOARGS { int sys_ovadvise(int anom); } vadvise 12373 NOARGS { int sys_munmap(caddr_t addr, size_t len); } 12474 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \ 125 int prot); } 12675 NOARGS { int sys_madvise(caddr_t addr, size_t len, \ 127 int behav); } 12876 STD { int sunos_sys_vhangup(void); } 12977 UNIMPL vlimit 13078 NOARGS { int sys_mincore(caddr_t addr, size_t len, \ 131 char *vec); } 13279 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 13380 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 13481 NOARGS { int sys_getpgrp(void); } 13582 STD { int sunos_sys_setpgrp(int pid, int pgid); } 13683 NOARGS { int sys_setitimer(u_int which, \ 137 struct itimerval *itv, struct itimerval *oitv); } 13884 UNIMPL { int sunos_sys_wait(void); } 13985 NOARGS { int sys_swapon(char *name); } 14086 NOARGS { int sys_getitimer(u_int which, \ 141 struct itimerval *itv); } 14287 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 143 u_int len); } 14488 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 145 u_int len); } 14689 NOARGS { int compat_43_sys_getdtablesize(void); } 14790 NOARGS { int sys_dup2(u_int from, u_int to); } 14891 UNIMPL getdopt 14992 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); } 15093 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 151 fd_set *ex, struct timeval *tv); } 15294 UNIMPL setdopt 15395 NOARGS { int sys_fsync(int fd); } 15496 NOARGS { int sys_setpriority(int which, int who, int prio); } 15597 NOARGS { int sys_socket(int domain, int type, int protocol); } 15698 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 15799 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 158 int *anamelen); } 159100 NOARGS { int sys_getpriority(int which, int who); } 160101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 161 int flags); } 162102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 163 int flags); } 164103 UNIMPL old socketaddr 165104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 166105 STD { int sunos_sys_setsockopt(int s, int level, int name, \ 167 caddr_t val, int valsize); } 168106 NOARGS { int sys_listen(int s, int backlog); } 169107 UNIMPL vtimes 170108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \ 171 struct sigvec *osv); } 172109 NOARGS { int compat_43_sys_sigblock(int mask); } 173110 NOARGS { int compat_43_sys_sigsetmask(int mask); } 174111 NOARGS { int sys_sigsuspend(int mask); } 175112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 176 struct sigstack *oss); } 177113 NOARGS { int compat_43_sys_recvmsg(int s, \ 178 struct omsghdr *msg, int flags); } 179114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 180 int flags); } 181115 OBSOL vtrace 182116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 183 struct timezone *tzp); } 184117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 185118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 186 caddr_t val, int *avalsize); } 187119 UNIMPL 188120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 189 u_int iovcnt); } 190121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 191 u_int iovcnt); } 192122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 193 struct timezone *tzp); } 194123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 195124 NOARGS { int sys_fchmod(int fd, int mode); } 196125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 197 size_t len, int flags, caddr_t from, \ 198 int *fromlenaddr); } 199126 NOARGS { int sys_setreuid(int ruid, int euid); } 200127 NOARGS { int sys_setregid(int rgid, int egid); } 201128 NOARGS { int sys_rename(char *from, char *to); } 202129 NOARGS { int compat_43_sys_truncate(char *path, long length); } 203130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 204131 NOARGS { int sys_flock(int fd, int how); } 205132 UNIMPL 206133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 207 int flags, caddr_t to, int tolen); } 208134 NOARGS { int sys_shutdown(int s, int how); } 209135 NOARGS { int sys_socketpair(int domain, int type, \ 210 int protocol, int *rsv); } 211136 NOARGS { int sys_mkdir(char *path, int mode); } 212137 NOARGS { int sys_rmdir(char *path); } 213138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 214139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); } 215140 NOARGS { int sys_adjtime(struct timeval *delta, \ 216 struct timeval *olddelta); } 217141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 218 int *alen); } 219142 NOARGS { int compat_43_sys_gethostid(void); } 220143 UNIMPL old sethostid 221144 STD { int sunos_sys_getrlimit(u_int which, \ 222 struct orlimit *rlp); } 223145 STD { int sunos_sys_setrlimit(u_int which, \ 224 struct orlimit *rlp); } 225146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } 226147 UNIMPL 227148 UNIMPL 228149 UNIMPL 229150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \ 230 int *alen); } 231151 UNIMPL getmsg 232152 UNIMPL putmsg 233153 STD { int sunos_sys_poll(struct sunos_pollfd *fds, \ 234 long nfds, int timeout); } 235154 UNIMPL 236#ifdef NFSSERVER 237155 STD { int sunos_sys_nfssvc(int fd); } 238#else 239155 UNIMPL 240#endif 241156 NOARGS { int sys_getdirentries(int fd, char *buf, \ 242 u_int count, long *basep); } 243157 STD { int sunos_sys_statfs(char *path, \ 244 struct sunos_statfs *buf); } 245158 STD { int sunos_sys_fstatfs(int fd, \ 246 struct sunos_statfs *buf); } 247159 STD { int sunos_sys_unmount(char *path); } 248#ifdef NFSCLIENT 249160 NOARGS { int async_daemon(void); } 250161 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); } 251#else 252160 UNIMPL 253161 UNIMPL 254#endif 255162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 256 int len); } 257163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 258 int len); } 259164 UNIMPL rtschedule 260165 STD { int sunos_sys_quotactl(int cmd, char *special, \ 261 int uid, caddr_t addr); } 262166 STD { int sunos_sys_exportfs(char *path, char *ex); } 263167 STD { int sunos_sys_mount(char *type, char *dir, \ 264 int flags, caddr_t data); } 265168 STD { int sunos_sys_ustat(int dev, \ 266 struct sunos_ustat *buf); } 267#ifdef SYSVSEM 268169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \ 269 int a4, int a5); } 270#else 271169 UNIMPL semsys 272#endif 273#ifdef SYSVMSG 274170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \ 275 int a4, int a5, int a6); } 276#else 277170 UNIMPL msgsys 278#endif 279#ifdef SYSVSHM 280171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \ 281 int a4); } 282#else 283171 UNIMPL shmsys 284#endif 285172 STD { int sunos_sys_auditsys(char *record); } 286173 UNIMPL rfssys 287174 STD { int sunos_sys_getdents(int fd, char *buf, \ 288 int nbytes); } 289175 NOARGS { int sys_setsid(void); } 290176 NOARGS { int sys_fchdir(int fd); } 291177 STD { int sunos_sys_fchroot(int fd); } 292178 UNIMPL vpixsys 293179 UNIMPL aioread 294180 UNIMPL aiowrite 295181 UNIMPL aiowait 296182 UNIMPL aiocancel 297183 STD { int sunos_sys_sigpending(int *mask); } 298184 UNIMPL 299185 NOARGS { int sys_setpgid(int pid, int pgid); } 300186 NOARGS { long sys_pathconf(char *path, int name); } 301187 NOARGS { long sys_fpathconf(int fd, int name); } 302188 STD { int sunos_sys_sysconf(int name); } 303189 STD { int sunos_sys_uname(struct sunos_utsname *name); } 304