[BACK]Return to sunos_syscall.h CVS log [TXT][DIR] Up to [local] / sys / compat / sunos

Annotation of sys/compat/sunos/sunos_syscall.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: sunos_syscall.h,v 1.18 2004/07/09 23:56:33 millert Exp $      */
                      2:
                      3: /*
                      4:  * System call numbers.
                      5:  *
                      6:  * DO NOT EDIT-- this file is automatically generated.
                      7:  * created from        OpenBSD: syscalls.master,v 1.16 2004/07/09 23:52:02 millert Exp
                      8:  */
                      9:
                     10: /* syscall: "syscall" ret: "int" args: */
                     11: #define        SUNOS_SYS_syscall       0
                     12:
                     13: /* syscall: "exit" ret: "int" args: "int" */
                     14: #define        SUNOS_SYS_exit  1
                     15:
                     16: /* syscall: "fork" ret: "int" args: */
                     17: #define        SUNOS_SYS_fork  2
                     18:
                     19: /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
                     20: #define        SUNOS_SYS_read  3
                     21:
                     22: /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
                     23: #define        SUNOS_SYS_write 4
                     24:
                     25: /* syscall: "open" ret: "int" args: "char *" "int" "int" */
                     26: #define        SUNOS_SYS_open  5
                     27:
                     28: /* syscall: "close" ret: "int" args: "int" */
                     29: #define        SUNOS_SYS_close 6
                     30:
                     31: /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
                     32: #define        SUNOS_SYS_wait4 7
                     33:
                     34: /* syscall: "creat" ret: "int" args: "char *" "int" */
                     35: #define        SUNOS_SYS_creat 8
                     36:
                     37: /* syscall: "link" ret: "int" args: "char *" "char *" */
                     38: #define        SUNOS_SYS_link  9
                     39:
                     40: /* syscall: "unlink" ret: "int" args: "char *" */
                     41: #define        SUNOS_SYS_unlink        10
                     42:
                     43: /* syscall: "execv" ret: "int" args: "char *" "char **" */
                     44: #define        SUNOS_SYS_execv 11
                     45:
                     46: /* syscall: "chdir" ret: "int" args: "char *" */
                     47: #define        SUNOS_SYS_chdir 12
                     48:
                     49:                                /* 13 is obsolete time */
                     50: /* syscall: "mknod" ret: "int" args: "char *" "int" "int" */
                     51: #define        SUNOS_SYS_mknod 14
                     52:
                     53: /* syscall: "chmod" ret: "int" args: "char *" "int" */
                     54: #define        SUNOS_SYS_chmod 15
                     55:
                     56: /* syscall: "lchown" ret: "int" args: "char *" "int" "int" */
                     57: #define        SUNOS_SYS_lchown        16
                     58:
                     59: /* syscall: "break" ret: "int" args: "char *" */
                     60: #define        SUNOS_SYS_break 17
                     61:
                     62:                                /* 18 is obsolete stat */
                     63: /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
                     64: #define        SUNOS_SYS_lseek 19
                     65:
                     66: /* syscall: "getpid" ret: "pid_t" args: */
                     67: #define        SUNOS_SYS_getpid        20
                     68:
                     69:                                /* 21 is obsolete sunos_old_mount */
                     70: /* syscall: "setuid" ret: "int" args: "uid_t" */
                     71: #define        SUNOS_SYS_setuid        23
                     72:
                     73: /* syscall: "getuid" ret: "uid_t" args: */
                     74: #define        SUNOS_SYS_getuid        24
                     75:
                     76: /* syscall: "ostime" ret: "int" args: "int" */
                     77: #define        SUNOS_SYS_ostime        25
                     78:
                     79: /* syscall: "ptrace" ret: "long" args: "int" "pid_t" "caddr_t" "int" "char *" */
                     80: #define        SUNOS_SYS_ptrace        26
                     81:
                     82: /* syscall: "access" ret: "int" args: "char *" "int" */
                     83: #define        SUNOS_SYS_access        33
                     84:
                     85: /* syscall: "sync" ret: "int" args: */
                     86: #define        SUNOS_SYS_sync  36
                     87:
                     88: /* syscall: "kill" ret: "int" args: "int" "int" */
                     89: #define        SUNOS_SYS_kill  37
                     90:
                     91: /* syscall: "stat" ret: "int" args: "char *" "struct stat43 *" */
                     92: #define        SUNOS_SYS_stat  38
                     93:
                     94: /* syscall: "lstat" ret: "int" args: "char *" "struct stat43 *" */
                     95: #define        SUNOS_SYS_lstat 40
                     96:
                     97: /* syscall: "dup" ret: "int" args: "u_int" */
                     98: #define        SUNOS_SYS_dup   41
                     99:
                    100: /* syscall: "opipe" ret: "int" args: */
                    101: #define        SUNOS_SYS_opipe 42
                    102:
                    103: /* syscall: "otimes" ret: "int" args: "struct tms *" */
                    104: #define        SUNOS_SYS_otimes        43
                    105:
                    106: /* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
                    107: #define        SUNOS_SYS_profil        44
                    108:
                    109: /* syscall: "setgid" ret: "int" args: "uid_t" */
                    110: #define        SUNOS_SYS_setgid        46
                    111:
                    112: /* syscall: "getgid" ret: "gid_t" args: */
                    113: #define        SUNOS_SYS_getgid        47
                    114:
                    115: /* syscall: "acct" ret: "int" args: "char *" */
                    116: #define        SUNOS_SYS_acct  51
                    117:
                    118: /* syscall: "mctl" ret: "int" args: "caddr_t" "int" "int" "void *" */
                    119: #define        SUNOS_SYS_mctl  53
                    120:
                    121: /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
                    122: #define        SUNOS_SYS_ioctl 54
                    123:
                    124: /* syscall: "reboot" ret: "int" args: "int" "char *" */
                    125: #define        SUNOS_SYS_reboot        55
                    126:
                    127:                                /* 56 is obsolete sunos_owait3 */
                    128: /* syscall: "symlink" ret: "int" args: "char *" "char *" */
                    129: #define        SUNOS_SYS_symlink       57
                    130:
                    131: /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
                    132: #define        SUNOS_SYS_readlink      58
                    133:
                    134: /* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */
                    135: #define        SUNOS_SYS_execve        59
                    136:
                    137: /* syscall: "umask" ret: "int" args: "int" */
                    138: #define        SUNOS_SYS_umask 60
                    139:
                    140: /* syscall: "chroot" ret: "int" args: "char *" */
                    141: #define        SUNOS_SYS_chroot        61
                    142:
                    143: /* syscall: "fstat" ret: "int" args: "int" "struct stat43 *" */
                    144: #define        SUNOS_SYS_fstat 62
                    145:
                    146: /* syscall: "getpagesize" ret: "int" args: */
                    147: #define        SUNOS_SYS_getpagesize   64
                    148:
                    149: /* syscall: "msync" ret: "int" args: "void *" "size_t" "int" */
                    150: #define        SUNOS_SYS_msync 65
                    151:
                    152: /* syscall: "vfork" ret: "int" args: */
                    153: #define        SUNOS_SYS_vfork 66
                    154:
                    155:                                /* 67 is obsolete vread */
                    156:                                /* 68 is obsolete vwrite */
                    157: /* syscall: "sbrk" ret: "int" args: "int" */
                    158: #define        SUNOS_SYS_sbrk  69
                    159:
                    160: /* syscall: "sstk" ret: "int" args: "int" */
                    161: #define        SUNOS_SYS_sstk  70
                    162:
                    163: /* syscall: "mmap" ret: "int" args: "caddr_t" "size_t" "int" "int" "int" "long" */
                    164: #define        SUNOS_SYS_mmap  71
                    165:
                    166: /* syscall: "vadvise" ret: "int" args: "int" */
                    167: #define        SUNOS_SYS_vadvise       72
                    168:
                    169: /* syscall: "munmap" ret: "int" args: "caddr_t" "size_t" */
                    170: #define        SUNOS_SYS_munmap        73
                    171:
                    172: /* syscall: "mprotect" ret: "int" args: "caddr_t" "size_t" "int" */
                    173: #define        SUNOS_SYS_mprotect      74
                    174:
                    175: /* syscall: "madvise" ret: "int" args: "caddr_t" "size_t" "int" */
                    176: #define        SUNOS_SYS_madvise       75
                    177:
                    178: /* syscall: "vhangup" ret: "int" args: */
                    179: #define        SUNOS_SYS_vhangup       76
                    180:
                    181: /* syscall: "mincore" ret: "int" args: "caddr_t" "size_t" "char *" */
                    182: #define        SUNOS_SYS_mincore       78
                    183:
                    184: /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
                    185: #define        SUNOS_SYS_getgroups     79
                    186:
                    187: /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
                    188: #define        SUNOS_SYS_setgroups     80
                    189:
                    190: /* syscall: "getpgrp" ret: "int" args: */
                    191: #define        SUNOS_SYS_getpgrp       81
                    192:
                    193: /* syscall: "setpgrp" ret: "int" args: "int" "int" */
                    194: #define        SUNOS_SYS_setpgrp       82
                    195:
                    196: /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
                    197: #define        SUNOS_SYS_setitimer     83
                    198:
                    199: /* syscall: "swapon" ret: "int" args: "char *" */
                    200: #define        SUNOS_SYS_swapon        85
                    201:
                    202: /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
                    203: #define        SUNOS_SYS_getitimer     86
                    204:
                    205: /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
                    206: #define        SUNOS_SYS_gethostname   87
                    207:
                    208: /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
                    209: #define        SUNOS_SYS_sethostname   88
                    210:
                    211: /* syscall: "getdtablesize" ret: "int" args: */
                    212: #define        SUNOS_SYS_getdtablesize 89
                    213:
                    214: /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
                    215: #define        SUNOS_SYS_dup2  90
                    216:
                    217: /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
                    218: #define        SUNOS_SYS_fcntl 92
                    219:
                    220: /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
                    221: #define        SUNOS_SYS_select        93
                    222:
                    223: /* syscall: "fsync" ret: "int" args: "int" */
                    224: #define        SUNOS_SYS_fsync 95
                    225:
                    226: /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
                    227: #define        SUNOS_SYS_setpriority   96
                    228:
                    229: /* syscall: "socket" ret: "int" args: "int" "int" "int" */
                    230: #define        SUNOS_SYS_socket        97
                    231:
                    232: /* syscall: "connect" ret: "int" args: "int" "caddr_t" "int" */
                    233: #define        SUNOS_SYS_connect       98
                    234:
                    235: /* syscall: "accept" ret: "int" args: "int" "caddr_t" "int *" */
                    236: #define        SUNOS_SYS_accept        99
                    237:
                    238: /* syscall: "getpriority" ret: "int" args: "int" "int" */
                    239: #define        SUNOS_SYS_getpriority   100
                    240:
                    241: /* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
                    242: #define        SUNOS_SYS_send  101
                    243:
                    244: /* syscall: "recv" ret: "int" args: "int" "caddr_t" "int" "int" */
                    245: #define        SUNOS_SYS_recv  102
                    246:
                    247: /* syscall: "bind" ret: "int" args: "int" "caddr_t" "int" */
                    248: #define        SUNOS_SYS_bind  104
                    249:
                    250: /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int" */
                    251: #define        SUNOS_SYS_setsockopt    105
                    252:
                    253: /* syscall: "listen" ret: "int" args: "int" "int" */
                    254: #define        SUNOS_SYS_listen        106
                    255:
                    256: /* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
                    257: #define        SUNOS_SYS_sigvec        108
                    258:
                    259: /* syscall: "sigblock" ret: "int" args: "int" */
                    260: #define        SUNOS_SYS_sigblock      109
                    261:
                    262: /* syscall: "sigsetmask" ret: "int" args: "int" */
                    263: #define        SUNOS_SYS_sigsetmask    110
                    264:
                    265: /* syscall: "sigsuspend" ret: "int" args: "int" */
                    266: #define        SUNOS_SYS_sigsuspend    111
                    267:
                    268: /* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
                    269: #define        SUNOS_SYS_sigstack      112
                    270:
                    271: /* syscall: "recvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
                    272: #define        SUNOS_SYS_recvmsg       113
                    273:
                    274: /* syscall: "sendmsg" ret: "int" args: "int" "caddr_t" "int" */
                    275: #define        SUNOS_SYS_sendmsg       114
                    276:
                    277:                                /* 115 is obsolete vtrace */
                    278: /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
                    279: #define        SUNOS_SYS_gettimeofday  116
                    280:
                    281: /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
                    282: #define        SUNOS_SYS_getrusage     117
                    283:
                    284: /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int *" */
                    285: #define        SUNOS_SYS_getsockopt    118
                    286:
                    287: /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
                    288: #define        SUNOS_SYS_readv 120
                    289:
                    290: /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
                    291: #define        SUNOS_SYS_writev        121
                    292:
                    293: /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
                    294: #define        SUNOS_SYS_settimeofday  122
                    295:
                    296: /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
                    297: #define        SUNOS_SYS_fchown        123
                    298:
                    299: /* syscall: "fchmod" ret: "int" args: "int" "int" */
                    300: #define        SUNOS_SYS_fchmod        124
                    301:
                    302: /* syscall: "recvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */
                    303: #define        SUNOS_SYS_recvfrom      125
                    304:
                    305: /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
                    306: #define        SUNOS_SYS_setreuid      126
                    307:
                    308: /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
                    309: #define        SUNOS_SYS_setregid      127
                    310:
                    311: /* syscall: "rename" ret: "int" args: "char *" "char *" */
                    312: #define        SUNOS_SYS_rename        128
                    313:
                    314: /* syscall: "truncate" ret: "int" args: "char *" "long" */
                    315: #define        SUNOS_SYS_truncate      129
                    316:
                    317: /* syscall: "ftruncate" ret: "int" args: "int" "long" */
                    318: #define        SUNOS_SYS_ftruncate     130
                    319:
                    320: /* syscall: "flock" ret: "int" args: "int" "int" */
                    321: #define        SUNOS_SYS_flock 131
                    322:
                    323: /* syscall: "sendto" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int" */
                    324: #define        SUNOS_SYS_sendto        133
                    325:
                    326: /* syscall: "shutdown" ret: "int" args: "int" "int" */
                    327: #define        SUNOS_SYS_shutdown      134
                    328:
                    329: /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
                    330: #define        SUNOS_SYS_socketpair    135
                    331:
                    332: /* syscall: "mkdir" ret: "int" args: "char *" "int" */
                    333: #define        SUNOS_SYS_mkdir 136
                    334:
                    335: /* syscall: "rmdir" ret: "int" args: "char *" */
                    336: #define        SUNOS_SYS_rmdir 137
                    337:
                    338: /* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */
                    339: #define        SUNOS_SYS_utimes        138
                    340:
                    341: /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
                    342: #define        SUNOS_SYS_sigreturn     139
                    343:
                    344: /* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */
                    345: #define        SUNOS_SYS_adjtime       140
                    346:
                    347: /* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */
                    348: #define        SUNOS_SYS_getpeername   141
                    349:
                    350: /* syscall: "gethostid" ret: "int" args: */
                    351: #define        SUNOS_SYS_gethostid     142
                    352:
                    353: /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
                    354: #define        SUNOS_SYS_getrlimit     144
                    355:
                    356: /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
                    357: #define        SUNOS_SYS_setrlimit     145
                    358:
                    359: /* syscall: "killpg" ret: "int" args: "int" "int" */
                    360: #define        SUNOS_SYS_killpg        146
                    361:
                    362: /* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */
                    363: #define        SUNOS_SYS_getsockname   150
                    364:
                    365: /* syscall: "poll" ret: "int" args: "struct pollfd *" "unsigned long" "int" */
                    366: #define        SUNOS_SYS_poll  153
                    367:
                    368: /* syscall: "nfssvc" ret: "int" args: "int" */
                    369: #define        SUNOS_SYS_nfssvc        155
                    370:
                    371: /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
                    372: #define        SUNOS_SYS_getdirentries 156
                    373:
                    374: /* syscall: "statfs" ret: "int" args: "char *" "struct sunos_statfs *" */
                    375: #define        SUNOS_SYS_statfs        157
                    376:
                    377: /* syscall: "fstatfs" ret: "int" args: "int" "struct sunos_statfs *" */
                    378: #define        SUNOS_SYS_fstatfs       158
                    379:
                    380: /* syscall: "unmount" ret: "int" args: "char *" */
                    381: #define        SUNOS_SYS_unmount       159
                    382:
                    383: /* syscall: "async_daemon" ret: "int" args: */
                    384: #define        SUNOS_SYS_async_daemon  160
                    385:
                    386: /* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */
                    387: #define        SUNOS_SYS_getfh 161
                    388:
                    389: /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
                    390: #define        SUNOS_SYS_getdomainname 162
                    391:
                    392: /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
                    393: #define        SUNOS_SYS_setdomainname 163
                    394:
                    395: /* syscall: "quotactl" ret: "int" args: "int" "char *" "int" "caddr_t" */
                    396: #define        SUNOS_SYS_quotactl      165
                    397:
                    398: /* syscall: "exportfs" ret: "int" args: "char *" "char *" */
                    399: #define        SUNOS_SYS_exportfs      166
                    400:
                    401: /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "caddr_t" */
                    402: #define        SUNOS_SYS_mount 167
                    403:
                    404: /* syscall: "ustat" ret: "int" args: "int" "struct sunos_ustat *" */
                    405: #define        SUNOS_SYS_ustat 168
                    406:
                    407: /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
                    408: #define        SUNOS_SYS_semsys        169
                    409:
                    410: /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
                    411: #define        SUNOS_SYS_msgsys        170
                    412:
                    413: /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
                    414: #define        SUNOS_SYS_shmsys        171
                    415:
                    416: /* syscall: "auditsys" ret: "int" args: "char *" */
                    417: #define        SUNOS_SYS_auditsys      172
                    418:
                    419: /* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
                    420: #define        SUNOS_SYS_getdents      174
                    421:
                    422: /* syscall: "setsid" ret: "int" args: */
                    423: #define        SUNOS_SYS_setsid        175
                    424:
                    425: /* syscall: "fchdir" ret: "int" args: "int" */
                    426: #define        SUNOS_SYS_fchdir        176
                    427:
                    428: /* syscall: "fchroot" ret: "int" args: "int" */
                    429: #define        SUNOS_SYS_fchroot       177
                    430:
                    431: /* syscall: "sigpending" ret: "int" args: "int *" */
                    432: #define        SUNOS_SYS_sigpending    183
                    433:
                    434: /* syscall: "setpgid" ret: "int" args: "int" "int" */
                    435: #define        SUNOS_SYS_setpgid       185
                    436:
                    437: /* syscall: "pathconf" ret: "long" args: "char *" "int" */
                    438: #define        SUNOS_SYS_pathconf      186
                    439:
                    440: /* syscall: "fpathconf" ret: "long" args: "int" "int" */
                    441: #define        SUNOS_SYS_fpathconf     187
                    442:
                    443: /* syscall: "sysconf" ret: "int" args: "int" */
                    444: #define        SUNOS_SYS_sysconf       188
                    445:
                    446: /* syscall: "uname" ret: "int" args: "struct sunos_utsname *" */
                    447: #define        SUNOS_SYS_uname 189
                    448:
                    449: #define        SUNOS_SYS_MAXSYSCALL    190

CVSweb