Annotation of sys/compat/sunos/syscalls.master, Revision 1.1
1.1 ! nbrk 1: $OpenBSD: syscalls.master,v 1.16 2004/07/09 23:52:02 millert Exp $
! 2: ; $NetBSD: syscalls.master,v 1.33 1996/02/28 16:05:43 pk Exp $
! 3:
! 4: ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
! 5:
! 6: ; OpenBSD COMPAT_SUNOS system call name/number "master" file.
! 7: ; (See syscalls.conf to see what it is processed into.)
! 8: ;
! 9: ; Fields: number type [type-dependent ...]
! 10: ; number system call number, must be in order
! 11: ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
! 12: ; the compatibility options defined in syscalls.conf.
! 13: ;
! 14: ; types:
! 15: ; STD always included
! 16: ; OBSOL obsolete, not included in system
! 17: ; UNIMPL unimplemented, not included in system
! 18: ; NODEF included, but don't define the syscall number
! 19: ; NOARGS included, but don't define the syscall args structure
! 20: ;
! 21: ; The compat options are defined in the syscalls.conf file, and the
! 22: ; compat option name is prefixed to the syscall name. Other than
! 23: ; that, they're like NODEF (for 'compat' options), or STD (for
! 24: ; 'libcompat' options).
! 25: ;
! 26: ; The type-dependent arguments are as follows:
! 27: ; For STD, NODEF, NOARGS, and compat syscalls:
! 28: ; { pseudo-proto } [alias]
! 29: ; For other syscalls:
! 30: ; [comment]
! 31: ;
! 32: ; #ifdef's, etc. may be included, and are copied to the output files.
! 33: ; #include's are copied to the syscall switch definition file only.
! 34:
! 35: #include <sys/param.h>
! 36: #include <sys/systm.h>
! 37: #include <sys/signal.h>
! 38: #include <sys/mount.h>
! 39: #include <sys/poll.h>
! 40: #include <sys/syscallargs.h>
! 41:
! 42: #include <compat/sunos/sunos.h>
! 43: #include <compat/sunos/sunos_syscallargs.h>
! 44:
! 45: 0 NOARGS { int sys_nosys(void); } syscall
! 46: 1 NOARGS { int sys_exit(int rval); }
! 47: 2 NOARGS { int sys_fork(void); }
! 48: 3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
! 49: 4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
! 50: 5 STD { int sunos_sys_open(char *path, int flags, int mode); }
! 51: 6 NOARGS { int sys_close(int fd); }
! 52: 7 STD { int sunos_sys_wait4(int pid, int *status, \
! 53: int options, struct rusage *rusage); }
! 54: 8 STD { int sunos_sys_creat(char *path, int mode); }
! 55: 9 NOARGS { int sys_link(char *path, char *link); }
! 56: 10 NOARGS { int sys_unlink(char *path); }
! 57: 11 STD { int sunos_sys_execv(char *path, char **argp); }
! 58: 12 NOARGS { int sys_chdir(char *path); }
! 59: 13 OBSOL time
! 60: 14 STD { int sunos_sys_mknod(char *path, int mode, int dev); }
! 61: 15 NOARGS { int sys_chmod(char *path, int mode); }
! 62: 16 NOARGS { int sys_lchown(char *path, int uid, int gid); }
! 63: 17 NOARGS { int sys_obreak(char *nsize); } break
! 64: 18 OBSOL stat
! 65: 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, int whence); }
! 66: 20 NOARGS { pid_t sys_getpid(void); }
! 67: 21 OBSOL sunos_old_mount
! 68: 22 UNIMPL System V umount
! 69: 23 NOARGS { int sys_setuid(uid_t uid); }
! 70: 24 NOARGS { uid_t sys_getuid(void); }
! 71: 25 STD { int sunos_sys_ostime(int time); }
! 72: #ifdef PTRACE
! 73: 26 STD { long sunos_sys_ptrace(int req, pid_t pid, \
! 74: caddr_t addr, int data, char *addr2); }
! 75: #else
! 76: 26 UNIMPL sunos_ptrace
! 77: #endif
! 78: 27 UNIMPL sunos_alarm
! 79: 28 UNIMPL sunos_fstat
! 80: 29 UNIMPL sunos_pause
! 81: 30 UNIMPL sunos_utime
! 82: 31 UNIMPL sunos_stty
! 83: 32 UNIMPL sunos_gtty
! 84: 33 STD { int sunos_sys_access(char *path, int flags); }
! 85: 34 UNIMPL sunos_nice
! 86: 35 UNIMPL sunos_ftime
! 87: 36 NOARGS { int sys_sync(void); }
! 88: 37 NOARGS { int sys_kill(int pid, int signum); }
! 89: 38 STD { int sunos_sys_stat(char *path, struct stat43 *ub); }
! 90: 39 UNIMPL sunos_setpgrp
! 91: 40 STD { int sunos_sys_lstat(char *path, struct stat43 *ub); }
! 92: 41 NOARGS { int sys_dup(u_int fd); }
! 93: 42 NOARGS { int sys_opipe(void); }
! 94: 43 STD { int sunos_sys_otimes(struct tms *tp); }
! 95: 44 NOARGS { int sys_profil(caddr_t samples, u_int size, \
! 96: u_int offset, u_int scale); }
! 97: 45 UNIMPL
! 98: 46 NOARGS { int sys_setgid(uid_t gid); }
! 99: 47 NOARGS { gid_t sys_getgid(void); }
! 100: 48 UNIMPL sunos_ssig
! 101: 49 UNIMPL reserved for USG
! 102: 50 UNIMPL reserved for USG
! 103: #ifdef ACCOUNTING
! 104: 51 NOARGS { int sys_acct(char *path); }
! 105: #else
! 106: 51 UNIMPL acct
! 107: #endif
! 108: 52 UNIMPL
! 109: 53 STD { int sunos_sys_mctl(caddr_t addr, int len, int func, \
! 110: void *arg); }
! 111: 54 STD { int sunos_sys_ioctl(int fd, u_long com, \
! 112: caddr_t data); }
! 113: 55 STD { int sunos_sys_reboot(int howto, char *bootstr); }
! 114: 56 OBSOL sunos_owait3
! 115: 57 NOARGS { int sys_symlink(char *path, char *link); }
! 116: 58 NOARGS { int sys_readlink(char *path, char *buf, int count); }
! 117: 59 STD { int sunos_sys_execve(char *path, char **argp, \
! 118: char **envp); }
! 119: 60 NOARGS { int sys_umask(int newmask); }
! 120: 61 NOARGS { int sys_chroot(char *path); }
! 121: 62 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); }
! 122: 63 UNIMPL
! 123: 64 NOARGS { int compat_43_sys_getpagesize(void); }
! 124: 65 NOARGS { int sys_msync(void *addr, size_t len, \
! 125: int flags); }
! 126: 66 NOARGS { int sys_vfork(void); }
! 127: 67 OBSOL vread
! 128: 68 OBSOL vwrite
! 129: 69 NOARGS { int sys_sbrk(int incr); }
! 130: 70 NOARGS { int sys_sstk(int incr); }
! 131: 71 STD { int sunos_sys_mmap(caddr_t addr, size_t len, \
! 132: int prot, int flags, int fd, long pos); }
! 133: 72 NOARGS { int sys_ovadvise(int anom); } vadvise
! 134: 73 NOARGS { int sys_munmap(caddr_t addr, size_t len); }
! 135: 74 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \
! 136: int prot); }
! 137: 75 NOARGS { int sys_madvise(caddr_t addr, size_t len, \
! 138: int behav); }
! 139: 76 STD { int sunos_sys_vhangup(void); }
! 140: 77 UNIMPL vlimit
! 141: 78 NOARGS { int sys_mincore(caddr_t addr, size_t len, \
! 142: char *vec); }
! 143: 79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
! 144: 80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
! 145: 81 NOARGS { int sys_getpgrp(void); }
! 146: 82 STD { int sunos_sys_setpgrp(int pid, int pgid); }
! 147: 83 NOARGS { int sys_setitimer(u_int which, \
! 148: struct itimerval *itv, struct itimerval *oitv); }
! 149: 84 UNIMPL { int sunos_sys_wait(void); }
! 150: 85 NOARGS { int compat_25_sys_swapon(char *name); }
! 151: 86 NOARGS { int sys_getitimer(u_int which, \
! 152: struct itimerval *itv); }
! 153: 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
! 154: u_int len); }
! 155: 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
! 156: u_int len); }
! 157: 89 NOARGS { int compat_43_sys_getdtablesize(void); }
! 158: 90 NOARGS { int sys_dup2(u_int from, u_int to); }
! 159: 91 UNIMPL getdopt
! 160: 92 STD { int sunos_sys_fcntl(int fd, int cmd, void *arg); }
! 161: 93 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \
! 162: fd_set *ex, struct timeval *tv); }
! 163: 94 UNIMPL setdopt
! 164: 95 NOARGS { int sys_fsync(int fd); }
! 165: 96 NOARGS { int sys_setpriority(int which, int who, int prio); }
! 166: 97 NOARGS { int sys_socket(int domain, int type, int protocol); }
! 167: 98 NOARGS { int sys_connect(int s, caddr_t name, int namelen); }
! 168: 99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \
! 169: int *anamelen); }
! 170: 100 NOARGS { int sys_getpriority(int which, int who); }
! 171: 101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
! 172: int flags); }
! 173: 102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
! 174: int flags); }
! 175: 103 UNIMPL old socketaddr
! 176: 104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); }
! 177: 105 STD { int sunos_sys_setsockopt(int s, int level, int name, \
! 178: caddr_t val, int valsize); }
! 179: 106 NOARGS { int sys_listen(int s, int backlog); }
! 180: 107 UNIMPL vtimes
! 181: 108 STD { int sunos_sys_sigvec(int signum, struct sigvec *nsv, \
! 182: struct sigvec *osv); }
! 183: 109 NOARGS { int compat_43_sys_sigblock(int mask); }
! 184: 110 NOARGS { int compat_43_sys_sigsetmask(int mask); }
! 185: 111 NOARGS { int sys_sigsuspend(int mask); }
! 186: 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
! 187: struct sigstack *oss); }
! 188: 113 NOARGS { int compat_43_sys_recvmsg(int s, \
! 189: struct omsghdr *msg, int flags); }
! 190: 114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \
! 191: int flags); }
! 192: 115 OBSOL vtrace
! 193: 116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
! 194: struct timezone *tzp); }
! 195: 117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
! 196: 118 NOARGS { int sys_getsockopt(int s, int level, int name, \
! 197: caddr_t val, int *avalsize); }
! 198: 119 UNIMPL
! 199: 120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \
! 200: u_int iovcnt); }
! 201: 121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \
! 202: u_int iovcnt); }
! 203: 122 NOARGS { int sys_settimeofday(struct timeval *tv, \
! 204: struct timezone *tzp); }
! 205: 123 NOARGS { int sys_fchown(int fd, int uid, int gid); }
! 206: 124 NOARGS { int sys_fchmod(int fd, int mode); }
! 207: 125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
! 208: size_t len, int flags, caddr_t from, \
! 209: int *fromlenaddr); }
! 210: 126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
! 211: 127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
! 212: 128 NOARGS { int sys_rename(char *from, char *to); }
! 213: 129 NOARGS { int compat_43_sys_truncate(char *path, long length); }
! 214: 130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
! 215: 131 NOARGS { int sys_flock(int fd, int how); }
! 216: 132 UNIMPL
! 217: 133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \
! 218: int flags, caddr_t to, int tolen); }
! 219: 134 NOARGS { int sys_shutdown(int s, int how); }
! 220: 135 NOARGS { int sys_socketpair(int domain, int type, \
! 221: int protocol, int *rsv); }
! 222: 136 NOARGS { int sys_mkdir(char *path, int mode); }
! 223: 137 NOARGS { int sys_rmdir(char *path); }
! 224: 138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); }
! 225: 139 STD { int sunos_sys_sigreturn(struct sigcontext *sigcntxp); }
! 226: 140 NOARGS { int sys_adjtime(struct timeval *delta, \
! 227: struct timeval *olddelta); }
! 228: 141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \
! 229: int *alen); }
! 230: 142 NOARGS { int compat_43_sys_gethostid(void); }
! 231: 143 UNIMPL old sethostid
! 232: 144 STD { int sunos_sys_getrlimit(u_int which, \
! 233: struct orlimit *rlp); }
! 234: 145 STD { int sunos_sys_setrlimit(u_int which, \
! 235: struct orlimit *rlp); }
! 236: 146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); }
! 237: 147 UNIMPL
! 238: 148 UNIMPL
! 239: 149 UNIMPL
! 240: 150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \
! 241: int *alen); }
! 242: 151 UNIMPL getmsg
! 243: 152 UNIMPL putmsg
! 244: 153 NOARGS { int sys_poll(struct pollfd *fds, \
! 245: unsigned long nfds, int timeout); }
! 246: 154 UNIMPL
! 247: #ifdef NFSSERVER
! 248: 155 STD { int sunos_sys_nfssvc(int fd); }
! 249: #else
! 250: 155 UNIMPL
! 251: #endif
! 252: 156 NOARGS { int sys_getdirentries(int fd, char *buf, \
! 253: u_int count, long *basep); }
! 254: 157 STD { int sunos_sys_statfs(char *path, \
! 255: struct sunos_statfs *buf); }
! 256: 158 STD { int sunos_sys_fstatfs(int fd, \
! 257: struct sunos_statfs *buf); }
! 258: 159 STD { int sunos_sys_unmount(char *path); }
! 259: #ifdef NFSCLIENT
! 260: 160 NOARGS { int async_daemon(void); }
! 261: 161 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); }
! 262: #else
! 263: 160 UNIMPL
! 264: 161 UNIMPL
! 265: #endif
! 266: 162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
! 267: int len); }
! 268: 163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
! 269: int len); }
! 270: 164 UNIMPL rtschedule
! 271: 165 STD { int sunos_sys_quotactl(int cmd, char *special, \
! 272: int uid, caddr_t addr); }
! 273: 166 STD { int sunos_sys_exportfs(char *path, char *ex); }
! 274: 167 STD { int sunos_sys_mount(char *type, char *dir, \
! 275: int flags, caddr_t data); }
! 276: 168 STD { int sunos_sys_ustat(int dev, \
! 277: struct sunos_ustat *buf); }
! 278: #ifdef SYSVSEM
! 279: 169 NOARGS { int compat_10_sys_semsys(int which, int a2, int a3, \
! 280: int a4, int a5); }
! 281: #else
! 282: 169 UNIMPL semsys
! 283: #endif
! 284: #ifdef SYSVMSG
! 285: 170 NOARGS { int compat_10_sys_msgsys(int which, int a2, int a3, \
! 286: int a4, int a5, int a6); }
! 287: #else
! 288: 170 UNIMPL msgsys
! 289: #endif
! 290: #ifdef SYSVSHM
! 291: 171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \
! 292: int a4); }
! 293: #else
! 294: 171 UNIMPL shmsys
! 295: #endif
! 296: 172 STD { int sunos_sys_auditsys(char *record); }
! 297: 173 UNIMPL rfssys
! 298: 174 STD { int sunos_sys_getdents(int fd, char *buf, \
! 299: int nbytes); }
! 300: 175 NOARGS { int sys_setsid(void); }
! 301: 176 NOARGS { int sys_fchdir(int fd); }
! 302: 177 STD { int sunos_sys_fchroot(int fd); }
! 303: 178 UNIMPL vpixsys
! 304: 179 UNIMPL aioread
! 305: 180 UNIMPL aiowrite
! 306: 181 UNIMPL aiowait
! 307: 182 UNIMPL aiocancel
! 308: 183 STD { int sunos_sys_sigpending(int *mask); }
! 309: 184 UNIMPL
! 310: 185 NOARGS { int sys_setpgid(int pid, int pgid); }
! 311: 186 NOARGS { long sys_pathconf(char *path, int name); }
! 312: 187 NOARGS { long sys_fpathconf(int fd, int name); }
! 313: 188 STD { int sunos_sys_sysconf(int name); }
! 314: 189 STD { int sunos_sys_uname(struct sunos_utsname *name); }
CVSweb