Annotation of sys/compat/hpux/m68k/syscalls.master, Revision 1.1
1.1 ! nbrk 1: $OpenBSD: syscalls.master,v 1.1 2004/07/09 21:33:45 mickey Exp $
! 2: ; $NetBSD: syscalls.master,v 1.13 1997/03/16 03:48:04 thorpej Exp $
! 3:
! 4: ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
! 5:
! 6: ; OpenBSD COMPAT_HPUX 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/exec.h>
! 40: #include <sys/syscallargs.h>
! 41:
! 42: #include <compat/hpux/hpux.h>
! 43: #include <compat/hpux/m68k/hpux_syscallargs.h>
! 44:
! 45: #include <machine/hpux_machdep.h>
! 46:
! 47: 0 NOARGS { int sys_nosys(void); } syscall
! 48: 1 NOARGS { int sys_exit(int rval); }
! 49: 2 STD { int hpux_sys_fork(void); }
! 50: 3 STD { int hpux_sys_read(int fd, char *buf, u_int nbyte); }
! 51: 4 STD { int hpux_sys_write(int fd, char *buf, u_int nbyte); }
! 52: 5 STD { int hpux_sys_open(char *path, int flags, int mode); }
! 53: 6 NOARGS { int sys_close(int fd); }
! 54: 7 STD { int hpux_sys_wait(int *status); }
! 55: 8 STD { int hpux_sys_creat(char *path, int mode); }
! 56: 9 NOARGS { int sys_link(char *path, char *link); }
! 57: 10 STD { int hpux_sys_unlink(char *path); }
! 58: 11 STD { int hpux_sys_execv(char * path, char * * argp); }
! 59: 12 STD { int hpux_sys_chdir(char *path); }
! 60: 13 STD { int hpux_sys_time_6x(time_t *t); }
! 61: 14 STD { int hpux_sys_mknod(char *path, int mode, int dev); }
! 62: 15 STD { int hpux_sys_chmod(char *path, int mode); }
! 63: 16 STD { int hpux_sys_chown(char *path, int uid, int gid); }
! 64: 17 NOARGS { int sys_obreak(char *nsize); }
! 65: 18 STD { int hpux_sys_stat_6x(char *path, \
! 66: struct hpux_ostat *sb); }
! 67: 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
! 68: int whence); }
! 69: 20 NOARGS { pid_t sys_getpid(void); }
! 70: 21 UNIMPL mount
! 71: 22 UNIMPL umount
! 72: 23 NOARGS { int sys_setuid(uid_t uid); }
! 73: 24 NOARGS { uid_t sys_getuid(void); }
! 74: 25 STD { int hpux_sys_stime_6x(int time); }
! 75: #ifdef PTRACE
! 76: 26 STD { int hpux_sys_ptrace(int req, int pid, int *addr, \
! 77: int data); }
! 78: #else
! 79: 26 UNIMPL ptrace
! 80: #endif
! 81: 27 STD { int hpux_sys_alarm_6x(int deltat); }
! 82: 28 STD { int hpux_sys_fstat_6x(int fd, \
! 83: struct hpux_ostat *sb); }
! 84: 29 STD { int hpux_sys_pause_6x(void); }
! 85: 30 STD { int hpux_sys_utime_6x(char *fname, time_t *tptr); }
! 86: 31 STD { int hpux_sys_stty_6x(int fd, caddr_t arg); }
! 87: 32 STD { int hpux_sys_gtty_6x(int fd, caddr_t arg); }
! 88: 33 STD { int hpux_sys_access(char *path, int flags); }
! 89: 34 STD { int hpux_sys_nice_6x(int nval); }
! 90: 35 STD { int hpux_sys_ftime_6x(struct hpux_timeb *tp); }
! 91: 36 NOARGS { int sys_sync(void); }
! 92: 37 STD { int hpux_sys_kill(pid_t pid, int signo); }
! 93: 38 STD { int hpux_sys_stat(char *path, struct hpux_stat *sb); }
! 94: 39 STD { int hpux_sys_setpgrp_6x(void); }
! 95: 40 STD { int hpux_sys_lstat(char *path, struct hpux_stat *sb); }
! 96: 41 NOARGS { int sys_dup(int fd); }
! 97: 42 NOARGS { int sys_opipe(void); }
! 98: 43 STD { int hpux_sys_times_6x(struct tms *tms); }
! 99: 44 NOARGS { int sys_profil(caddr_t samples, u_int size, \
! 100: u_int offset, u_int scale); }
! 101:
! 102: 45 UNIMPL ki_syscall
! 103: 46 NOARGS { int sys_setgid(gid_t gid); }
! 104: 47 NOARGS { gid_t sys_getgid(void); }
! 105: 48 STD { int hpux_sys_ssig_6x(int signo, sig_t fun); }
! 106: 49 UNIMPL reserved for USG
! 107: 50 UNIMPL reserved for USG
! 108: 51 UNIMPL acct
! 109: 52 UNIMPL
! 110: 53 UNIMPL
! 111: 54 STD { int hpux_sys_ioctl(int fd, int com, caddr_t data); }
! 112: 55 UNIMPL reboot
! 113: 56 STD { int hpux_sys_symlink(char *path, char *link); }
! 114: 57 STD { int hpux_sys_utssys(struct hpux_utsname *uts, \
! 115: int dev, int request); }
! 116: 58 STD { int hpux_sys_readlink(char *path, char *buf, \
! 117: int count); }
! 118: 59 STD { int hpux_sys_execve(char *path, char **argp, \
! 119: char **envp); }
! 120: 60 NOARGS { int sys_umask(int newmask); }
! 121: 61 NOARGS { int sys_chroot(char *path); }
! 122: 62 STD { int hpux_sys_fcntl(int fd, int cmd, int arg); }
! 123: 63 STD { int hpux_sys_ulimit(int cmd, int newlimit); }
! 124: 64 UNIMPL
! 125: 65 UNIMPL
! 126: 66 STD { int hpux_sys_vfork(void); }
! 127: 67 NOARGS { int hpux_sys_read(int fd, char *buf, u_int nbyte); } vread
! 128: 68 NOARGS { int hpux_sys_write(int fd, char *buf, u_int nbyte); } vwrite
! 129: 69 UNIMPL
! 130: 70 UNIMPL
! 131: 71 STD { int hpux_sys_mmap(caddr_t addr, size_t len, \
! 132: int prot, int flags, int fd, long pos); }
! 133: 72 UNIMPL
! 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 UNIMPL
! 138: 76 UNIMPL
! 139: 77 UNIMPL
! 140: 78 UNIMPL
! 141: 79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
! 142: 80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
! 143: 81 STD { int hpux_sys_getpgrp2(pid_t pid); }
! 144: 82 STD { int hpux_sys_setpgrp2(pid_t pid, pid_t pgid); }
! 145: 83 NOARGS { int sys_setitimer(u_int which, \
! 146: struct itimerval *itv, struct itimerval *oitv); }
! 147: 84 STD { int hpux_sys_wait3(int *status, int options, \
! 148: int rusage); }
! 149: 85 UNIMPL swapon
! 150: 86 NOARGS { int sys_getitimer(u_int which, \
! 151: struct itimerval *itv); }
! 152: 87 UNIMPL
! 153: 88 UNIMPL
! 154: 89 UNIMPL
! 155: 90 NOARGS { int sys_dup2(u_int from, u_int to); }
! 156: 91 UNIMPL
! 157: 92 STD { int hpux_sys_fstat(int fd, struct hpux_stat *sb); }
! 158: 93 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \
! 159: fd_set *ex, struct timeval *tv); }
! 160: 94 UNIMPL
! 161: 95 NOARGS { int sys_fsync(int fd); }
! 162: 96 UNIMPL
! 163: 97 UNIMPL
! 164: 98 UNIMPL
! 165: 99 UNIMPL
! 166: 100 UNIMPL
! 167: 101 UNIMPL
! 168: 102 UNIMPL
! 169: 103 STD { int hpux_sys_sigreturn(struct hpuxsigcontext \
! 170: *sigcntxp); }
! 171: 104 UNIMPL
! 172: 105 UNIMPL
! 173: 106 UNIMPL
! 174: 107 UNIMPL
! 175: 108 STD { int hpux_sys_sigvec(int signo, struct sigvec *nsv, \
! 176: struct sigvec *osv); }
! 177: 109 STD { int hpux_sys_sigblock(int mask); }
! 178: 110 STD { int hpux_sys_sigsetmask(int mask); }
! 179: 111 STD { int hpux_sys_sigpause(int mask); }
! 180: 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
! 181: struct sigstack *oss); }
! 182: 113 UNIMPL
! 183: 114 UNIMPL
! 184: 115 UNIMPL
! 185: 116 NOARGS { int sys_gettimeofday(struct timeval *tp); }
! 186: 117 UNIMPL
! 187: 118 UNIMPL
! 188: 119 UNIMPL io_stub
! 189: 120 STD { int hpux_sys_readv(int fd, struct iovec *iovp, \
! 190: u_int iovcnt); }
! 191: 121 STD { int hpux_sys_writev(int fd, struct iovec *iovp, \
! 192: u_int iovcnt); }
! 193: 122 NOARGS { int sys_settimeofday(struct timeval *tv, \
! 194: struct timezone *tzp); }
! 195: 123 NOARGS { int sys_fchown(int fd, int uid, int gid); }
! 196: 124 NOARGS { int sys_fchmod(int fd, int mode); }
! 197: 125 UNIMPL
! 198: 126 NOARGS { int sys_setresuid(uid_t ruid, uid_t uide, \
! 199: uid_t suid); }
! 200: 127 NOARGS { int sys_setresgid(gid_t rgid, gid_t egid, \
! 201: gid_t sgid); }
! 202: 128 STD { int hpux_sys_rename(char *from, char *to); }
! 203: 129 STD { int hpux_sys_truncate(char *path, long length); }
! 204: 130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
! 205: 131 UNIMPL
! 206: 132 STD { int hpux_sys_sysconf(int name); }
! 207: 133 UNIMPL
! 208: 134 UNIMPL
! 209: 135 UNIMPL
! 210: 136 STD { int hpux_sys_mkdir(char *path, int mode); }
! 211: 137 STD { int hpux_sys_rmdir(char *path); }
! 212: 138 UNIMPL
! 213: 139 UNIMPL
! 214: 140 UNIMPL
! 215: 141 UNIMPL
! 216: 142 UNIMPL
! 217: 143 UNIMPL
! 218: 144 STD { int hpux_sys_getrlimit(u_int which, \
! 219: struct ogetrlimit *rlp); }
! 220: 145 STD { int hpux_sys_setrlimit(u_int which, \
! 221: struct ogetrlimit *rlp); }
! 222: 146 UNIMPL
! 223: 147 UNIMPL
! 224: 148 UNIMPL
! 225: 149 UNIMPL
! 226: 150 UNIMPL
! 227: 151 UNIMPL privgrp
! 228: 152 STD { int hpux_sys_rtprio(pid_t pid, int prio); }
! 229: 153 UNIMPL plock
! 230: 154 STD { int hpux_sys_netioctl(int call, int *args); }
! 231: 155 STD { int hpux_sys_lockf(int fd, int func, long size); }
! 232: #ifdef SYSVSEM
! 233: 156 NOARGS { int sys_semget(key_t key, int nsems, int semflg); }
! 234: 157 NOARGS { int sys___semctl(int semid, int semnum, int cmd, \
! 235: union semun *arg); }
! 236: 158 NOARGS { int sys_semop(int semid, struct sembuf *sops, \
! 237: u_int nsops); }
! 238: #else
! 239: 156 UNIMPL semget
! 240: 157 UNIMPL semctl
! 241: 158 UNIMPL semop
! 242: #endif
! 243: #ifdef SYSVMSG
! 244: 159 NOARGS { int sys_msgget(key_t key, int msgflg); }
! 245: 160 NOARGS { int sys_msgctl(int msqid, int cmd, \
! 246: struct msqid_ds *buf); }
! 247: 161 NOARGS { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
! 248: int msgflg); }
! 249: 162 NOARGS { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
! 250: long msgtyp, int msgflg); }
! 251: #else
! 252: 159 UNIMPL msgget
! 253: 160 UNIMPL msgctl
! 254: 161 UNIMPL msgsnd
! 255: 162 UNIMPL msgrcv
! 256: #endif
! 257: #ifdef SYSVSHM
! 258: 163 NOARGS { int sys_shmget(key_t key, int size, int shmflg); }
! 259: 164 STD { int hpux_sys_shmctl(int shmid, int cmd, \
! 260: caddr_t buf); }
! 261: 165 NOARGS { int sys_shmat(int shmid, void *shmaddr, int shmflg); }
! 262: 166 NOARGS { int sys_shmdt(void *shmaddr); }
! 263: #else
! 264: 163 UNIMPL shmget
! 265: 164 UNIMPL shmctl
! 266: 165 UNIMPL shmat
! 267: 166 UNIMPL shmdt
! 268: #endif
! 269: 167 STD { int hpux_sys_advise(int arg); }
! 270: 168 UNIMPL nsp_init
! 271: 169 UNIMPL cluster
! 272: 170 UNIMPL mkrnod
! 273: 171 UNIMPL
! 274: 172 UNIMPL unsp_open
! 275: 173 UNIMPL
! 276: 174 STD { int hpux_sys_getcontext(char *buf, int len); }
! 277: 175 UNIMPL setcontext
! 278: 176 UNIMPL bigio
! 279: 177 UNIMPL pipenode
! 280: 178 UNIMPL lsync
! 281: 179 UNIMPL getmachineid
! 282: 180 UNIMPL mysite
! 283: 181 UNIMPL sitels
! 284: 182 UNIMPL swapclients
! 285: 183 UNIMPL rmtprocess
! 286: 184 UNIMPL dskless_stats
! 287: 185 UNIMPL
! 288: 186 UNIMPL setacl
! 289: 187 UNIMPL fsetacl
! 290: 188 UNIMPL getacl
! 291: 189 UNIMPL fgetacl
! 292: 190 STD { int hpux_sys_getaccess(char *path, uid_t uid, \
! 293: int ngroups, gid_t *gidset, void *label, \
! 294: void *privs); }
! 295: 191 UNIMPL getaudid
! 296: 192 UNIMPL setaudid
! 297: 193 UNIMPL getaudproc
! 298: 194 UNIMPL setaudproc
! 299: 195 UNIMPL getevent
! 300: 196 UNIMPL setevent
! 301: 197 UNIMPL audwrite
! 302: 198 UNIMPL audswitch
! 303: 199 UNIMPL audctl
! 304: 200 STD { int hpux_sys_waitpid(pid_t pid, int *status, \
! 305: int options, struct rusage *rusage); }
! 306: 201 UNIMPL
! 307: 202 UNIMPL
! 308: 203 UNIMPL
! 309: 204 UNIMPL
! 310: 205 UNIMPL
! 311: 206 UNIMPL
! 312: 207 UNIMPL
! 313: 208 UNIMPL
! 314: 209 UNIMPL
! 315: 210 UNIMPL
! 316: 211 UNIMPL
! 317: 212 UNIMPL
! 318: 213 UNIMPL
! 319: 214 UNIMPL
! 320: 215 UNIMPL
! 321: 216 UNIMPL
! 322: 217 UNIMPL
! 323: 218 UNIMPL
! 324: 219 UNIMPL
! 325: 220 UNIMPL
! 326: 221 UNIMPL
! 327: 222 UNIMPL
! 328: 223 UNIMPL
! 329: 224 UNIMPL set_no_trunc
! 330: 225 NOARGS { int sys_pathconf(char *path, int name); }
! 331: 226 NOARGS { int sys_fpathconf(int fd, int name); }
! 332: 227 UNIMPL
! 333: 228 UNIMPL
! 334: 229 UNIMPL async_daemon
! 335: 230 UNIMPL nfs_fcntl
! 336: 231 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \
! 337: u_int count, long *basep); }
! 338: 232 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
! 339: int len); }
! 340: 233 UNIMPL nfs_getfh
! 341: 234 UNIMPL vfsmount
! 342: 235 UNIMPL nfs_svc
! 343: 236 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
! 344: int len); }
! 345: 237 UNIMPL statfs
! 346: 238 UNIMPL fstatfs
! 347: 239 STD { int hpux_sys_sigaction(int signo, \
! 348: struct hpux_sigaction *nsa, \
! 349: struct hpux_sigaction *osa); }
! 350: 240 STD { int hpux_sys_sigprocmask(int how, \
! 351: hpux_sigset_t *set, hpux_sigset_t *oset); }
! 352: 241 STD { int hpux_sys_sigpending(hpux_sigset_t *set); }
! 353: 242 STD { int hpux_sys_sigsuspend(hpux_sigset_t *set); }
! 354: 243 UNIMPL fsctl
! 355: 244 UNIMPL
! 356: 245 UNIMPL pstat
! 357: 246 UNIMPL
! 358: 247 UNIMPL
! 359: 248 UNIMPL
! 360: 249 UNIMPL
! 361: 250 UNIMPL
! 362: 251 UNIMPL ulconnect
! 363: 252 UNIMPL ulcontrol
! 364: 253 UNIMPL ulcreate
! 365: 254 UNIMPL uldest
! 366: 255 UNIMPL ulrecv
! 367: 256 UNIMPL ulrecvcn
! 368: 257 UNIMPL ulsend
! 369: 258 UNIMPL ulshutdown
! 370: 259 UNIMPL swapfs
! 371: 260 UNIMPL
! 372: 261 UNIMPL
! 373: 262 UNIMPL
! 374: 263 UNIMPL
! 375: 264 UNIMPL
! 376: 265 UNIMPL
! 377: 266 UNIMPL
! 378: 267 UNIMPL tsync
! 379: 268 NOARGS { int compat_43_sys_getdtablesize(void); }
! 380: 269 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
! 381: int timeout); }
! 382: 270 UNIMPL getmsg
! 383: 271 UNIMPL putmsg
! 384: 272 NOARGS { int sys_fchdir(int fd); }
! 385: 273 UNIMPL getmount_cnt
! 386: 274 UNIMPL getmount_entry
! 387: 275 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \
! 388: int *anamelen); }
! 389: 276 NOARGS { int sys_bind(int s, caddr_t name, int namelen); }
! 390: 277 NOARGS { int sys_connect(int s, caddr_t name, int namelen); }
! 391: 278 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \
! 392: int *alen); }
! 393: 279 NOARGS { int compat_43_sys_getsockname(int fdec, caddr_t asa, \
! 394: int *alen); }
! 395: 280 NOARGS { int sys_getsockopt(int s, int level, int name, \
! 396: caddr_t val, int *avalsize); }
! 397: 281 NOARGS { int sys_listen(int s, int backlog); }
! 398: 282 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
! 399: int flags); }
! 400: 283 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
! 401: size_t len, int flags, caddr_t from, \
! 402: int *fromlenaddr); }
! 403: 284 NOARGS { int compat_43_sys_recvmsg(int s, \
! 404: struct omsghdr *msg, int flags); }
! 405: 285 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
! 406: int flags); }
! 407: 286 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \
! 408: int flags); }
! 409: 287 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \
! 410: int flags, caddr_t to, int tolen); }
! 411: 288 STD { int hpux_sys_setsockopt(int s, int level, int name, \
! 412: caddr_t val, int valsize); }
! 413: 289 NOARGS { int sys_shutdown(int s, int how); }
! 414: 290 NOARGS { int sys_socket(int domain, int type, int protocol); }
! 415: 291 NOARGS { int sys_socketpair(int domain, int type, \
! 416: int protocol, int *rsv); }
! 417: 292 UNIMPL
! 418: 293 UNIMPL
! 419: 294 UNIMPL
! 420: 295 UNIMPL
! 421: 296 UNIMPL
! 422: 297 UNIMPL
! 423: 298 UNIMPL ipccreate
! 424: 299 UNIMPL ipcname
! 425: 300 UNIMPL ipcnamerase
! 426: 301 UNIMPL ipclookup
! 427: 302 UNIMPL ipcselect
! 428: 303 UNIMPL ipcconnect
! 429: 304 UNIMPL ipcrecvcn
! 430: 305 UNIMPL ipcsend
! 431: 306 UNIMPL ipcrecv
! 432: 307 UNIMPL ipcgetnodename
! 433: 308 UNIMPL ipcsetnodename
! 434: 309 UNIMPL ipcontrol
! 435: 310 UNIMPL ipcshutdown
! 436: 311 UNIMPL ipcdest
! 437: #ifdef SYSVSEM
! 438: 312 NOARGS { int sys___semctl(int semid, int semnum, int cmd, \
! 439: union semun *arg); } nsemctl
! 440: #else
! 441: 312 UNIMPL semctl
! 442: #endif
! 443: #ifdef SYSVMSG
! 444: 313 NOARGS { int sys_msgctl(int msqid, int cmd, \
! 445: struct msqid_ds *buf); } nmsgctl
! 446: #else
! 447: 313 UNIMPL msgctl
! 448: #endif
! 449: #ifdef SYSVSHM
! 450: 314 STD { int hpux_sys_nshmctl(int shmid, int cmd, \
! 451: caddr_t buf); }
! 452: #else
! 453: 314 UNIMPL shmctl
! 454: #endif
! 455: 315 UNIMPL mpctl
! 456: 316 UNIMPL exportfs
! 457: 317 UNIMPL getpmsg
! 458: 318 UNIMPL putpmsg
! 459: 319 UNIMPL strioctl
! 460: 320 UNIMPL msync
! 461: 321 UNIMPL msleep
! 462: 322 UNIMPL mwakeup
! 463: 323 UNIMPL msem_init
! 464: 324 UNIMPL msem_remove
CVSweb