syscalls.master revision 1.44
1 $NetBSD: syscalls.master,v 1.44 1997/10/19 18:48:16 christos 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/poll.h> 39#include <sys/syscallargs.h> 40 41#include <compat/sunos/sunos.h> 42#include <compat/sunos/sunos_syscallargs.h> 43 440 NOARGS { int sys_nosys(void); } syscall 451 NOARGS { int sys_exit(int rval); } 462 NOARGS { int sys_fork(void); } 473 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 484 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 495 STD { int sunos_sys_open(char *path, int flags, int mode); } 506 NOARGS { int sys_close(int fd); } 517 STD { int sunos_sys_wait4(int pid, int *status, \ 52 int options, struct rusage *rusage); } 538 STD { int sunos_sys_creat(char *path, int mode); } 549 NOARGS { int sys_link(char *path, char *link); } 5510 NOARGS { int sys_unlink(char *path); } 5611 STD { int sunos_sys_execv(char *path, char **argp); } 5712 NOARGS { int sys_chdir(char *path); } 5813 OBSOL time 5914 STD { int sunos_sys_mknod(char *path, int mode, int dev); } 6015 NOARGS { int sys_chmod(char *path, int mode); } 6116 NOARGS { int sys_chown(char *path, int uid, int gid); } 6217 NOARGS { int sys_obreak(char *nsize); } break 6318 OBSOL stat 6419 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); } 6520 NOARGS { pid_t sys_getpid(void); } 6621 OBSOL sunos_old_mount 6722 UNIMPL System V umount 6823 NOARGS { int sys_setuid(uid_t uid); } 6924 NOARGS { uid_t sys_getuid(void); } 7025 STD { int sunos_sys_stime(time_t *tp); } 7126 STD { long sunos_sys_ptrace(int req, pid_t pid, \ 72 caddr_t addr, int data, char *addr2); } 7327 UNIMPL sunos_alarm 7428 UNIMPL sunos_fstat 7529 UNIMPL sunos_pause 7630 UNIMPL sunos_utime 7731 UNIMPL sunos_stty 7832 UNIMPL sunos_gtty 7933 STD { int sunos_sys_access(char *path, int flags); } 8034 UNIMPL sunos_nice 8135 UNIMPL sunos_ftime 8236 NOARGS { int sys_sync(void); } 8337 NOARGS { int sys_kill(int pid, int signum); } 8438 STD { int sunos_sys_stat(char *path, struct stat43 *ub); } 8539 UNIMPL sunos_setpgrp 8640 STD { int sunos_sys_lstat(char *path, struct stat43 *ub); } 8741 NOARGS { int sys_dup(u_int fd); } 8842 NOARGS { int sys_pipe(void); } 8943 UNIMPL sunos_times 9044 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 91 u_int offset, u_int scale); } 9245 UNIMPL 9346 NOARGS { int sys_setgid(uid_t gid); } 9447 NOARGS { gid_t sys_getgid(void); } 9548 UNIMPL sunos_ssig 9649 UNIMPL reserved for USG 9750 UNIMPL reserved for USG 9851 NOARGS { int sys_acct(char *path); } 9952 UNIMPL 10053 STD { int sunos_sys_mctl(void *addr, int len, int func, \ 101 void *arg); } 10254 STD { int sunos_sys_ioctl(int fd, u_long com, \ 103 caddr_t data); } 10455 STD { int sunos_sys_reboot(int howto, char *bootstr); } 10556 OBSOL sunos_owait3 10657 NOARGS { int sys_symlink(char *path, char *link); } 10758 NOARGS { int sys_readlink(char *path, char *buf, int count); } 10859 STD { int sunos_sys_execve(char *path, char **argp, \ 109 char **envp); } 11060 NOARGS { int sys_umask(int newmask); } 11161 NOARGS { int sys_chroot(char *path); } 11262 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } 11363 UNIMPL 11464 NOARGS { int compat_43_sys_getpagesize(void); } 11565 STD { int sunos_sys_omsync(caddr_t addr, size_t len, \ 116 int flags); } 11766 NOARGS { int sys_vfork(void); } 11867 OBSOL vread 11968 OBSOL vwrite 12069 NOARGS { int sys_sbrk(int incr); } 12170 NOARGS { int sys_sstk(int incr); } 12271 STD { void *sunos_sys_mmap(void *addr, size_t len, \ 123 int prot, int flags, int fd, long pos); } 12472 NOARGS { int sys_ovadvise(int anom); } vadvise 12573 NOARGS { int sys_munmap(void *addr, size_t len); } 12674 NOARGS { int sys_mprotect(void *addr, size_t len, \ 127 int prot); } 12875 NOARGS { int sys_madvise(void *addr, size_t len, \ 129 int behav); } 13076 STD { int sunos_sys_vhangup(void); } 13177 UNIMPL vlimit 13278 NOARGS { int sys_mincore(void *addr, size_t len, \ 133 char *vec); } 13479 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 13580 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 13681 NOARGS { int sys_getpgrp(void); } 13782 STD { int sunos_sys_setpgrp(int pid, int pgid); } 13883 NOARGS { int sys_setitimer(u_int which, \ 139 struct itimerval *itv, struct itimerval *oitv); } 14084 UNIMPL { int sunos_sys_wait(void); } 14185 NOARGS { int compat_12_sys_swapon(char *name); } 14286 NOARGS { int sys_getitimer(u_int which, \ 143 struct itimerval *itv); } 14487 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 145 u_int len); } 14688 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 147 u_int len); } 14889 NOARGS { int compat_43_sys_getdtablesize(void); } 14990 NOARGS { int sys_dup2(u_int from, u_int to); } 15091 UNIMPL getdopt 15192 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); } 15293 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 153 fd_set *ex, struct timeval *tv); } 15494 UNIMPL setdopt 15595 NOARGS { int sys_fsync(int fd); } 15696 NOARGS { int sys_setpriority(int which, int who, int prio); } 15797 NOARGS { int sys_socket(int domain, int type, int protocol); } 15898 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 15999 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 160 int *anamelen); } 161100 NOARGS { int sys_getpriority(int which, int who); } 162101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 163 int flags); } 164102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 165 int flags); } 166103 UNIMPL old socketaddr 167104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 168105 STD { int sunos_sys_setsockopt(int s, int level, int name, \ 169 caddr_t val, int valsize); } 170106 NOARGS { int sys_listen(int s, int backlog); } 171107 UNIMPL vtimes 172108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \ 173 struct sigvec *osv); } 174109 NOARGS { int compat_43_sys_sigblock(int mask); } 175110 NOARGS { int compat_43_sys_sigsetmask(int mask); } 176111 NOARGS { int sys_sigsuspend(int mask); } 177112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 178 struct sigstack *oss); } 179113 NOARGS { int compat_43_sys_recvmsg(int s, \ 180 struct omsghdr *msg, int flags); } 181114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 182 int flags); } 183115 OBSOL vtrace 184116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 185 struct timezone *tzp); } 186117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 187118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 188 caddr_t val, int *avalsize); } 189119 UNIMPL 190120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 191 u_int iovcnt); } 192121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 193 u_int iovcnt); } 194122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 195 struct timezone *tzp); } 196123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 197124 NOARGS { int sys_fchmod(int fd, int mode); } 198125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 199 size_t len, int flags, caddr_t from, \ 200 int *fromlenaddr); } 201126 NOARGS { int sys_setreuid(int ruid, int euid); } 202127 NOARGS { int sys_setregid(int rgid, int egid); } 203128 NOARGS { int sys_rename(char *from, char *to); } 204129 NOARGS { int compat_43_sys_truncate(char *path, long length); } 205130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 206131 NOARGS { int sys_flock(int fd, int how); } 207132 UNIMPL 208133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 209 int flags, caddr_t to, int tolen); } 210134 NOARGS { int sys_shutdown(int s, int how); } 211135 NOARGS { int sys_socketpair(int domain, int type, \ 212 int protocol, int *rsv); } 213136 NOARGS { int sys_mkdir(char *path, int mode); } 214137 NOARGS { int sys_rmdir(char *path); } 215138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 216139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); } 217140 NOARGS { int sys_adjtime(struct timeval *delta, \ 218 struct timeval *olddelta); } 219141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 220 int *alen); } 221142 NOARGS { int compat_43_sys_gethostid(void); } 222143 UNIMPL old sethostid 223144 STD { int sunos_sys_getrlimit(u_int which, \ 224 struct orlimit *rlp); } 225145 STD { int sunos_sys_setrlimit(u_int which, \ 226 struct orlimit *rlp); } 227146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } 228147 UNIMPL 229148 UNIMPL 230149 UNIMPL 231150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \ 232 int *alen); } 233151 UNIMPL getmsg 234152 UNIMPL putmsg 235153 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ 236 int timeout); } 237154 UNIMPL 238#ifdef NFSSERVER 239155 STD { int sunos_sys_nfssvc(int fd); } 240#else 241155 UNIMPL 242#endif 243156 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ 244 u_int count, long *basep); } 245157 STD { int sunos_sys_statfs(char *path, \ 246 struct sunos_statfs *buf); } 247158 STD { int sunos_sys_fstatfs(int fd, \ 248 struct sunos_statfs *buf); } 249159 STD { int sunos_sys_unmount(char *path); } 250#ifdef NFS 251160 NOARGS { int async_daemon(void); } 252161 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); } 253#else 254160 UNIMPL 255161 UNIMPL 256#endif 257162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 258 int len); } 259163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 260 int len); } 261164 UNIMPL rtschedule 262165 STD { int sunos_sys_quotactl(int cmd, char *special, \ 263 int uid, caddr_t addr); } 264166 STD { int sunos_sys_exportfs(char *path, char *ex); } 265167 STD { int sunos_sys_mount(char *type, char *dir, \ 266 int flags, caddr_t data); } 267168 STD { int sunos_sys_ustat(int dev, \ 268 struct sunos_ustat *buf); } 269#ifdef SYSVSEM 270169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \ 271 int a4, int a5); } 272#else 273169 UNIMPL semsys 274#endif 275#ifdef SYSVMSG 276170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \ 277 int a4, int a5, int a6); } 278#else 279170 UNIMPL msgsys 280#endif 281#ifdef SYSVSHM 282171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \ 283 int a4); } 284#else 285171 UNIMPL shmsys 286#endif 287172 STD { int sunos_sys_auditsys(char *record); } 288173 UNIMPL rfssys 289174 STD { int sunos_sys_getdents(int fd, char *buf, \ 290 int nbytes); } 291175 NOARGS { int sys_setsid(void); } 292176 NOARGS { int sys_fchdir(int fd); } 293177 STD { int sunos_sys_fchroot(int fd); } 294178 UNIMPL vpixsys 295179 UNIMPL aioread 296180 UNIMPL aiowrite 297181 UNIMPL aiowait 298182 UNIMPL aiocancel 299183 STD { int sunos_sys_sigpending(int *mask); } 300184 UNIMPL 301185 NOARGS { int sys_setpgid(int pid, int pgid); } 302186 NOARGS { long sys_pathconf(char *path, int name); } 303187 NOARGS { long sys_fpathconf(int fd, int name); } 304188 STD { int sunos_sys_sysconf(int name); } 305189 STD { int sunos_sys_uname(struct sunos_utsname *name); } 306