syscalls.master revision 1.49
1 $NetBSD: syscalls.master,v 1.49 1998/12/10 17:03:20 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 names and switch definition files only. 33 34#include "opt_nfsserver.h" 35#include "opt_sysv.h" 36#include "opt_compat_43.h" 37 38#include "fs_nfs.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/signal.h> 43#include <sys/mount.h> 44#include <sys/poll.h> 45#include <sys/syscallargs.h> 46 47#include <compat/sunos/sunos.h> 48#include <compat/sunos/sunos_syscallargs.h> 49 500 NOARGS { int sys_nosys(void); } syscall 511 NOARGS { int sys_exit(int rval); } 522 NOARGS { int sys_fork(void); } 533 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 544 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 555 STD { int sunos_sys_open(char *path, int flags, int mode); } 566 NOARGS { int sys_close(int fd); } 577 STD { int sunos_sys_wait4(int pid, int *status, \ 58 int options, struct rusage *rusage); } 598 STD { int sunos_sys_creat(char *path, int mode); } 609 NOARGS { int sys_link(char *path, char *link); } 6110 NOARGS { int sys_unlink(char *path); } 6211 STD { int sunos_sys_execv(char *path, char **argp); } 6312 NOARGS { int sys_chdir(char *path); } 6413 OBSOL time 6514 STD { int sunos_sys_mknod(char *path, int mode, int dev); } 6615 NOARGS { int sys_chmod(char *path, int mode); } 6716 NOARGS { int sys_chown(char *path, int uid, int gid); } 6817 NOARGS { int sys_obreak(char *nsize); } break 6918 OBSOL stat 7019 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); } 7120 NOARGS { pid_t sys_getpid(void); } 7221 OBSOL sunos_old_mount 7322 UNIMPL System V umount 7423 NOARGS { int sys_setuid(uid_t uid); } 7524 NOARGS { uid_t sys_getuid(void); } 7625 STD { int sunos_sys_stime(time_t *tp); } 7726 STD { long sunos_sys_ptrace(int req, pid_t pid, \ 78 caddr_t addr, int data, char *addr2); } 7927 UNIMPL sunos_alarm 8028 UNIMPL sunos_fstat 8129 UNIMPL sunos_pause 8230 UNIMPL sunos_utime 8331 UNIMPL sunos_stty 8432 UNIMPL sunos_gtty 8533 STD { int sunos_sys_access(char *path, int flags); } 8634 UNIMPL sunos_nice 8735 UNIMPL sunos_ftime 8836 NOARGS { int sys_sync(void); } 8937 NOARGS { int sys_kill(int pid, int signum); } 9038 STD { int sunos_sys_stat(char *path, struct stat43 *ub); } 9139 UNIMPL sunos_setpgrp 9240 STD { int sunos_sys_lstat(char *path, struct stat43 *ub); } 9341 NOARGS { int sys_dup(u_int fd); } 9442 NOARGS { int sys_pipe(void); } 9543 UNIMPL sunos_times 9644 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 97 u_int offset, u_int scale); } 9845 UNIMPL 9946 NOARGS { int sys_setgid(uid_t gid); } 10047 NOARGS { gid_t sys_getgid(void); } 10148 UNIMPL sunos_ssig 10249 UNIMPL reserved for USG 10350 UNIMPL reserved for USG 10451 NOARGS { int sys_acct(char *path); } 10552 UNIMPL 10653 STD { int sunos_sys_mctl(void *addr, int len, int func, \ 107 void *arg); } 10854 STD { int sunos_sys_ioctl(int fd, u_long com, \ 109 caddr_t data); } 11055 STD { int sunos_sys_reboot(int howto, char *bootstr); } 11156 OBSOL sunos_owait3 11257 NOARGS { int sys_symlink(char *path, char *link); } 11358 NOARGS { int sys_readlink(char *path, char *buf, int count); } 11459 STD { int sunos_sys_execve(char *path, char **argp, \ 115 char **envp); } 11660 NOARGS { int sys_umask(int newmask); } 11761 NOARGS { int sys_chroot(char *path); } 11862 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } 11963 UNIMPL 12064 NOARGS { int compat_43_sys_getpagesize(void); } 12165 STD { int sunos_sys_omsync(caddr_t addr, size_t len, \ 122 int flags); } 12366 NOARGS { int sys_vfork(void); } 12467 OBSOL vread 12568 OBSOL vwrite 12669 NOARGS { int sys_sbrk(int incr); } 12770 NOARGS { int sys_sstk(int incr); } 12871 STD { void *sunos_sys_mmap(void *addr, size_t len, \ 129 int prot, int flags, int fd, long pos); } 13072 NOARGS { int sys_ovadvise(int anom); } vadvise 13173 NOARGS { int sys_munmap(void *addr, size_t len); } 13274 NOARGS { int sys_mprotect(void *addr, size_t len, \ 133 int prot); } 13475 NOARGS { int sys_madvise(void *addr, size_t len, \ 135 int behav); } 13676 STD { int sunos_sys_vhangup(void); } 13777 UNIMPL vlimit 13878 NOARGS { int sys_mincore(void *addr, size_t len, \ 139 char *vec); } 14079 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 14180 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 14281 NOARGS { int sys_getpgrp(void); } 14382 STD { int sunos_sys_setpgrp(int pid, int pgid); } 14483 NOARGS { int sys_setitimer(u_int which, \ 145 struct itimerval *itv, struct itimerval *oitv); } 14684 UNIMPL { int sunos_sys_wait(void); } 14785 NOARGS { int compat_12_sys_swapon(char *name); } 14886 NOARGS { int sys_getitimer(u_int which, \ 149 struct itimerval *itv); } 15087 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 151 u_int len); } 15288 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 153 u_int len); } 15489 NOARGS { int compat_43_sys_getdtablesize(void); } 15590 NOARGS { int sys_dup2(u_int from, u_int to); } 15691 UNIMPL getdopt 15792 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); } 15893 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 159 fd_set *ex, struct timeval *tv); } 16094 UNIMPL setdopt 16195 NOARGS { int sys_fsync(int fd); } 16296 NOARGS { int sys_setpriority(int which, int who, int prio); } 16397 NOARGS { int sys_socket(int domain, int type, int protocol); } 16498 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 16599 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 166 int *anamelen); } 167100 NOARGS { int sys_getpriority(int which, int who); } 168101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 169 int flags); } 170102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 171 int flags); } 172103 UNIMPL old socketaddr 173104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 174105 STD { int sunos_sys_setsockopt(int s, int level, int name, \ 175 caddr_t val, int valsize); } 176106 NOARGS { int sys_listen(int s, int backlog); } 177107 UNIMPL vtimes 178108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \ 179 struct sigvec *osv); } 180109 NOARGS { int compat_43_sys_sigblock(int mask); } 181110 NOARGS { int compat_43_sys_sigsetmask(int mask); } 182111 STD { int sunos_sys_sigsuspend(int mask); } 183112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 184 struct sigstack *oss); } 185113 NOARGS { int compat_43_sys_recvmsg(int s, \ 186 struct omsghdr *msg, int flags); } 187114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 188 int flags); } 189115 OBSOL vtrace 190116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 191 struct timezone *tzp); } 192117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 193118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 194 caddr_t val, int *avalsize); } 195119 UNIMPL 196120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 197 u_int iovcnt); } 198121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 199 u_int iovcnt); } 200122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 201 struct timezone *tzp); } 202123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 203124 NOARGS { int sys_fchmod(int fd, int mode); } 204125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 205 size_t len, int flags, caddr_t from, \ 206 int *fromlenaddr); } 207126 NOARGS { int sys_setreuid(int ruid, int euid); } 208127 NOARGS { int sys_setregid(int rgid, int egid); } 209128 NOARGS { int sys_rename(char *from, char *to); } 210129 NOARGS { int compat_43_sys_truncate(char *path, long length); } 211130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 212131 NOARGS { int sys_flock(int fd, int how); } 213132 UNIMPL 214133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 215 int flags, caddr_t to, int tolen); } 216134 NOARGS { int sys_shutdown(int s, int how); } 217135 NOARGS { int sys_socketpair(int domain, int type, \ 218 int protocol, int *rsv); } 219136 NOARGS { int sys_mkdir(char *path, int mode); } 220137 NOARGS { int sys_rmdir(char *path); } 221138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 222139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); } 223140 NOARGS { int sys_adjtime(struct timeval *delta, \ 224 struct timeval *olddelta); } 225141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 226 int *alen); } 227142 NOARGS { int compat_43_sys_gethostid(void); } 228143 UNIMPL old sethostid 229144 STD { int sunos_sys_getrlimit(u_int which, \ 230 struct orlimit *rlp); } 231145 STD { int sunos_sys_setrlimit(u_int which, \ 232 struct orlimit *rlp); } 233146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } 234147 UNIMPL 235148 UNIMPL 236149 UNIMPL 237150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \ 238 int *alen); } 239151 UNIMPL getmsg 240152 UNIMPL putmsg 241153 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ 242 int timeout); } 243154 UNIMPL 244#ifdef NFSSERVER 245155 STD { int sunos_sys_nfssvc(int fd); } 246#else 247155 UNIMPL 248#endif 249156 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ 250 u_int count, long *basep); } 251157 STD { int sunos_sys_statfs(char *path, \ 252 struct sunos_statfs *buf); } 253158 STD { int sunos_sys_fstatfs(int fd, \ 254 struct sunos_statfs *buf); } 255159 STD { int sunos_sys_unmount(char *path); } 256#ifdef NFS 257160 NOARGS { int async_daemon(void); } 258161 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); } 259#else 260160 UNIMPL 261161 UNIMPL 262#endif 263162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 264 int len); } 265163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 266 int len); } 267164 UNIMPL rtschedule 268165 STD { int sunos_sys_quotactl(int cmd, char *special, \ 269 int uid, caddr_t addr); } 270166 STD { int sunos_sys_exportfs(char *path, char *ex); } 271167 STD { int sunos_sys_mount(char *type, char *dir, \ 272 int flags, caddr_t data); } 273168 STD { int sunos_sys_ustat(int dev, \ 274 struct sunos_ustat *buf); } 275#ifdef SYSVSEM 276169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \ 277 int a4, int a5); } 278#else 279169 UNIMPL semsys 280#endif 281#ifdef SYSVMSG 282170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \ 283 int a4, int a5, int a6); } 284#else 285170 UNIMPL msgsys 286#endif 287#ifdef SYSVSHM 288171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \ 289 int a4); } 290#else 291171 UNIMPL shmsys 292#endif 293172 STD { int sunos_sys_auditsys(char *record); } 294173 UNIMPL rfssys 295174 STD { int sunos_sys_getdents(int fd, char *buf, \ 296 int nbytes); } 297175 NOARGS { int sys_setsid(void); } 298176 NOARGS { int sys_fchdir(int fd); } 299177 STD { int sunos_sys_fchroot(int fd); } 300178 UNIMPL vpixsys 301179 UNIMPL aioread 302180 UNIMPL aiowrite 303181 UNIMPL aiowait 304182 UNIMPL aiocancel 305183 STD { int sunos_sys_sigpending(int *mask); } 306184 UNIMPL 307185 NOARGS { int sys_setpgid(int pid, int pgid); } 308186 NOARGS { long sys_pathconf(char *path, int name); } 309187 NOARGS { long sys_fpathconf(int fd, int name); } 310188 STD { int sunos_sys_sysconf(int name); } 311189 STD { int sunos_sys_uname(struct sunos_utsname *name); } 312