1 $NetBSD: syscalls.master,v 1.59 2002/01/03 00:59:00 mrg 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#if defined(_KERNEL_OPT) 35#include "opt_nfsserver.h" 36#include "opt_sysv.h" 37 38#include "fs_nfs.h" 39#endif 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/signal.h> 44#include <sys/mount.h> 45#include <sys/poll.h> 46#include <sys/syscallargs.h> 47 48#include <compat/sunos/sunos.h> 49#include <compat/sunos/sunos_syscallargs.h> 50 51%% 52 530 NOARGS { int sys_nosys(void); } syscall 541 NOARGS { int sys_exit(int rval); } 552 NOARGS { int sys_fork(void); } 563 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } 574 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } 585 STD { int sunos_sys_open(const char *path, int flags, \ 59 int mode); } 606 NOARGS { int sys_close(int fd); } 617 STD { int sunos_sys_wait4(int pid, int *status, \ 62 int options, struct rusage *rusage); } 638 STD { int sunos_sys_creat(const char *path, int mode); } 649 NOARGS { int sys_link(char *path, char *link); } 6510 NOARGS { int sys_unlink(char *path); } 6611 STD { int sunos_sys_execv(const char *path, char **argp); } 6712 NOARGS { int sys_chdir(char *path); } 6813 OBSOL old_time 6914 STD { int sunos_sys_mknod(const char *path, int mode, \ 70 int dev); } 7115 NOARGS { int sys_chmod(char *path, int mode); } 7216 NOARGS { int sys_chown(char *path, int uid, int gid); } 7317 NOARGS { int sys_obreak(char *nsize); } break 7418 OBSOL old_stat 7519 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); } 7620 NOARGS { pid_t sys_getpid_with_ppid(void); } 7721 OBSOL sunos_old_mount 7822 UNIMPL System V umount 7923 NOARGS { int sys_setuid(uid_t uid); } 8024 NOARGS { uid_t sys_getuid_with_euid(void); } 8125 STD { int sunos_sys_stime(time_t *tp); } 8226 STD { long sunos_sys_ptrace(int req, pid_t pid, \ 83 caddr_t addr, int data, char *addr2); } 8427 UNIMPL old_sunos_alarm 8528 UNIMPL old_sunos_fstat 8629 UNIMPL old_sunos_pause 8730 UNIMPL old_sunos_utime 8831 UNIMPL old_sunos_stty 8932 UNIMPL old_sunos_gtty 9033 STD { int sunos_sys_access(const char *path, int flags); } 9134 UNIMPL old_sunos_nice 9235 UNIMPL old_sunos_ftime 9336 NOARGS { int sys_sync(void); } 9437 NOARGS { int sys_kill(int pid, int signum); } 9538 STD { int sunos_sys_stat(const char *path, \ 96 struct stat43 *ub); } 9739 UNIMPL sunos_setpgrp 9840 STD { int sunos_sys_lstat(const char *path, \ 99 struct stat43 *ub); } 10041 NOARGS { int sys_dup(u_int fd); } 10142 NOARGS { int sys_pipe(void); } 10243 UNIMPL sunos_times 10344 NOARGS { int sys_profil(caddr_t samples, u_int size, \ 104 u_int offset, u_int scale); } 10545 UNIMPL 10646 NOARGS { int sys_setgid(uid_t gid); } 10747 NOARGS { gid_t sys_getgid_with_egid(void); } 10848 UNIMPL sunos_ssig 10949 UNIMPL reserved for USG 11050 UNIMPL reserved for USG 11151 NOARGS { int sys_acct(char *path); } 11252 UNIMPL 11353 STD { int sunos_sys_mctl(void *addr, int len, int func, \ 114 void *arg); } 11554 STD { int sunos_sys_ioctl(int fd, u_long com, \ 116 caddr_t data); } 11755 STD { int sunos_sys_reboot(int howto, char *bootstr); } 11856 OBSOL sunos_owait3 11957 NOARGS { int sys_symlink(char *path, char *link); } 12058 NOARGS { int sys_readlink(char *path, char *buf, int count); } 12159 STD { int sunos_sys_execve(const char *path, char **argp, \ 122 char **envp); } 12360 NOARGS { int sys_umask(int newmask); } 12461 NOARGS { int sys_chroot(char *path); } 12562 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); } 12663 UNIMPL 12764 NOARGS { int compat_43_sys_getpagesize(void); } 12865 STD { int sunos_sys_omsync(caddr_t addr, size_t len, \ 129 int flags); } 13066 NOARGS { int sys_vfork(void); } 13167 OBSOL vread 13268 OBSOL vwrite 13369 NOARGS { int sys_sbrk(intptr_t incr); } 13470 NOARGS { int sys_sstk(int incr); } 13571 STD { void *sunos_sys_mmap(void *addr, size_t len, \ 136 int prot, int flags, int fd, long pos); } 13772 NOARGS { int sys_ovadvise(int anom); } vadvise 13873 NOARGS { int sys_munmap(void *addr, size_t len); } 13974 NOARGS { int sys_mprotect(void *addr, size_t len, \ 140 int prot); } 14175 NOARGS { int sys_madvise(void *addr, size_t len, \ 142 int behav); } 14376 STD { int sunos_sys_vhangup(void); } 14477 UNIMPL vlimit 14578 NOARGS { int sys_mincore(void *addr, size_t len, \ 146 char *vec); } 14779 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); } 14880 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); } 14981 NOARGS { int sys_getpgrp(void); } 15082 STD { int sunos_sys_setpgrp(int pid, int pgid); } 15183 NOARGS { int sys_setitimer(u_int which, \ 152 struct itimerval *itv, struct itimerval *oitv); } 15384 UNIMPL { int sunos_sys_wait(void); } 15485 NOARGS { int compat_12_sys_swapon(char *name); } 15586 NOARGS { int sys_getitimer(u_int which, \ 156 struct itimerval *itv); } 15787 NOARGS { int compat_43_sys_gethostname(char *hostname, \ 158 u_int len); } 15988 NOARGS { int compat_43_sys_sethostname(char *hostname, \ 160 u_int len); } 16189 NOARGS { int compat_43_sys_getdtablesize(void); } 16290 NOARGS { int sys_dup2(u_int from, u_int to); } 16391 UNIMPL getdopt 16492 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); } 16593 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ 166 fd_set *ex, struct timeval *tv); } 16794 UNIMPL setdopt 16895 NOARGS { int sys_fsync(int fd); } 16996 NOARGS { int sys_setpriority(int which, int who, int prio); } 17097 STD { int sunos_sys_socket(int domain, int type, int protocol); } 17198 NOARGS { int sys_connect(int s, caddr_t name, int namelen); } 17299 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ 173 int *anamelen); } 174100 NOARGS { int sys_getpriority(int which, int who); } 175101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ 176 int flags); } 177102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ 178 int flags); } 179103 UNIMPL old socketaddr 180104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 181105 STD { int sunos_sys_setsockopt(int s, int level, int name, \ 182 caddr_t val, int valsize); } 183106 NOARGS { int sys_listen(int s, int backlog); } 184107 UNIMPL vtimes 185108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \ 186 struct sigvec *osv); } 187109 NOARGS { int compat_43_sys_sigblock(int mask); } 188110 NOARGS { int compat_43_sys_sigsetmask(int mask); } 189111 STD { int sunos_sys_sigsuspend(int mask); } 190112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ 191 struct sigstack *oss); } 192113 NOARGS { int compat_43_sys_recvmsg(int s, \ 193 struct omsghdr *msg, int flags); } 194114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ 195 int flags); } 196115 OBSOL vtrace 197116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ 198 struct timezone *tzp); } 199117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 200118 NOARGS { int sys_getsockopt(int s, int level, int name, \ 201 caddr_t val, int *avalsize); } 202119 UNIMPL 203120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \ 204 u_int iovcnt); } 205121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \ 206 u_int iovcnt); } 207122 NOARGS { int sys_settimeofday(struct timeval *tv, \ 208 struct timezone *tzp); } 209123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 210124 NOARGS { int sys_fchmod(int fd, int mode); } 211125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ 212 size_t len, int flags, caddr_t from, \ 213 int *fromlenaddr); } 214126 NOARGS { int sys_setreuid(int ruid, int euid); } 215127 NOARGS { int sys_setregid(int rgid, int egid); } 216128 NOARGS { int sys_rename(char *from, char *to); } 217129 NOARGS { int compat_43_sys_truncate(char *path, long length); } 218130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 219131 NOARGS { int sys_flock(int fd, int how); } 220132 UNIMPL 221133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \ 222 int flags, caddr_t to, int tolen); } 223134 NOARGS { int sys_shutdown(int s, int how); } 224135 STD { int sunos_sys_socketpair(int domain, int type, \ 225 int protocol, int *rsv); } 226136 NOARGS { int sys_mkdir(char *path, int mode); } 227137 NOARGS { int sys_rmdir(char *path); } 228138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } 229139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); } 230140 NOARGS { int sys_adjtime(struct timeval *delta, \ 231 struct timeval *olddelta); } 232141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \ 233 int *alen); } 234142 NOARGS { int compat_43_sys_gethostid(void); } 235143 UNIMPL old sethostid 236144 STD { int sunos_sys_getrlimit(u_int which, \ 237 struct orlimit *rlp); } 238145 STD { int sunos_sys_setrlimit(u_int which, \ 239 struct orlimit *rlp); } 240146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } 241147 UNIMPL 242148 UNIMPL 243149 UNIMPL 244150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \ 245 int *alen); } 246151 UNIMPL getmsg 247152 UNIMPL putmsg 248153 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ 249 int timeout); } 250154 UNIMPL 251#ifdef NFSSERVER 252155 STD { int sunos_sys_nfssvc(int fd); } 253#else 254155 UNIMPL 255#endif 256156 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ 257 u_int count, long *basep); } 258157 STD { int sunos_sys_statfs(const char *path, \ 259 struct sunos_statfs *buf); } 260158 STD { int sunos_sys_fstatfs(int fd, \ 261 struct sunos_statfs *buf); } 262159 STD { int sunos_sys_unmount(char *path); } 263#ifdef NFS 264160 NOARGS { int async_daemon(void); } 265161 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); } 266#else 267160 UNIMPL 268161 UNIMPL 269#endif 270162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ 271 int len); } 272163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ 273 int len); } 274164 UNIMPL rtschedule 275165 STD { int sunos_sys_quotactl(int cmd, char *special, \ 276 int uid, caddr_t addr); } 277166 STD { int sunos_sys_exportfs(char *path, char *ex); } 278167 STD { int sunos_sys_mount(char *type, char *dir, \ 279 int flags, caddr_t data); } 280168 STD { int sunos_sys_ustat(int dev, \ 281 struct sunos_ustat *buf); } 282#ifdef SYSVSEM 283169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \ 284 int a4, int a5); } 285#else 286169 UNIMPL semsys 287#endif 288#ifdef SYSVMSG 289170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \ 290 int a4, int a5, int a6); } 291#else 292170 UNIMPL msgsys 293#endif 294#ifdef SYSVSHM 295171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \ 296 int a4); } 297#else 298171 UNIMPL shmsys 299#endif 300172 STD { int sunos_sys_auditsys(char *record); } 301173 UNIMPL rfssys 302174 STD { int sunos_sys_getdents(int fd, char *buf, \ 303 int nbytes); } 304175 NOARGS { int sys_setsid(void); } 305176 NOARGS { int sys_fchdir(int fd); } 306177 NOARGS { int sys_fchroot(int fd); } 307178 UNIMPL vpixsys 308179 UNIMPL aioread 309180 UNIMPL aiowrite 310181 UNIMPL aiowait 311182 UNIMPL aiocancel 312183 STD { int sunos_sys_sigpending(int *mask); } 313184 UNIMPL 314185 NOARGS { int sys_setpgid(int pid, int pgid); } 315186 NOARGS { long sys_pathconf(char *path, int name); } 316187 NOARGS { long sys_fpathconf(int fd, int name); } 317188 STD { int sunos_sys_sysconf(int name); } 318189 STD { int sunos_sys_uname(struct sunos_utsname *name); } 319