Home | History | Annotate | Line # | Download | only in sunos
sunos_syscall.h revision 1.71
      1 /* $NetBSD: sunos_syscall.h,v 1.71 2005/02/26 23:20:01 perry Exp $ */
      2 
      3 /*
      4  * System call numbers.
      5  *
      6  * DO NOT EDIT-- this file is automatically generated.
      7  * created from	NetBSD: syscalls.master,v 1.61 2005/02/26 23:10:21 perry 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: "const 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: "const 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: "const 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 old_time */
     50 /* syscall: "mknod" ret: "int" args: "const 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: "chown" ret: "int" args: "char *" "int" "int" */
     57 #define	SUNOS_SYS_chown	16
     58 
     59 /* syscall: "break" ret: "int" args: "char *" */
     60 #define	SUNOS_SYS_break	17
     61 
     62 				/* 18 is obsolete old_stat */
     63 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
     64 #define	SUNOS_SYS_lseek	19
     65 
     66 /* syscall: "getpid_with_ppid" ret: "pid_t" args: */
     67 #define	SUNOS_SYS_getpid_with_ppid	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_with_euid" ret: "uid_t" args: */
     74 #define	SUNOS_SYS_getuid_with_euid	24
     75 
     76 /* syscall: "stime" ret: "int" args: "time_t *" */
     77 #define	SUNOS_SYS_stime	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: "const 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: "const char *" "struct stat43 *" */
     92 #define	SUNOS_SYS_stat	38
     93 
     94 /* syscall: "lstat" ret: "int" args: "const 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: "pipe" ret: "int" args: */
    101 #define	SUNOS_SYS_pipe	42
    102 
    103 /* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
    104 #define	SUNOS_SYS_profil	44
    105 
    106 /* syscall: "setgid" ret: "int" args: "uid_t" */
    107 #define	SUNOS_SYS_setgid	46
    108 
    109 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
    110 #define	SUNOS_SYS_getgid_with_egid	47
    111 
    112 /* syscall: "acct" ret: "int" args: "char *" */
    113 #define	SUNOS_SYS_acct	51
    114 
    115 /* syscall: "mctl" ret: "int" args: "void *" "int" "int" "void *" */
    116 #define	SUNOS_SYS_mctl	53
    117 
    118 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
    119 #define	SUNOS_SYS_ioctl	54
    120 
    121 /* syscall: "reboot" ret: "int" args: "int" "char *" */
    122 #define	SUNOS_SYS_reboot	55
    123 
    124 				/* 56 is obsolete sunos_owait3 */
    125 /* syscall: "symlink" ret: "int" args: "char *" "char *" */
    126 #define	SUNOS_SYS_symlink	57
    127 
    128 /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
    129 #define	SUNOS_SYS_readlink	58
    130 
    131 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
    132 #define	SUNOS_SYS_execve	59
    133 
    134 /* syscall: "umask" ret: "int" args: "int" */
    135 #define	SUNOS_SYS_umask	60
    136 
    137 /* syscall: "chroot" ret: "int" args: "char *" */
    138 #define	SUNOS_SYS_chroot	61
    139 
    140 /* syscall: "fstat" ret: "int" args: "int" "struct stat43 *" */
    141 #define	SUNOS_SYS_fstat	62
    142 
    143 /* syscall: "getpagesize" ret: "int" args: */
    144 #define	SUNOS_SYS_getpagesize	64
    145 
    146 /* syscall: "omsync" ret: "int" args: "caddr_t" "size_t" "int" */
    147 #define	SUNOS_SYS_omsync	65
    148 
    149 /* syscall: "vfork" ret: "int" args: */
    150 #define	SUNOS_SYS_vfork	66
    151 
    152 				/* 67 is obsolete vread */
    153 				/* 68 is obsolete vwrite */
    154 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
    155 #define	SUNOS_SYS_sbrk	69
    156 
    157 /* syscall: "sstk" ret: "int" args: "int" */
    158 #define	SUNOS_SYS_sstk	70
    159 
    160 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
    161 #define	SUNOS_SYS_mmap	71
    162 
    163 /* syscall: "vadvise" ret: "int" args: "int" */
    164 #define	SUNOS_SYS_vadvise	72
    165 
    166 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
    167 #define	SUNOS_SYS_munmap	73
    168 
    169 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
    170 #define	SUNOS_SYS_mprotect	74
    171 
    172 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
    173 #define	SUNOS_SYS_madvise	75
    174 
    175 /* syscall: "vhangup" ret: "int" args: */
    176 #define	SUNOS_SYS_vhangup	76
    177 
    178 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
    179 #define	SUNOS_SYS_mincore	78
    180 
    181 /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
    182 #define	SUNOS_SYS_getgroups	79
    183 
    184 /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
    185 #define	SUNOS_SYS_setgroups	80
    186 
    187 /* syscall: "getpgrp" ret: "int" args: */
    188 #define	SUNOS_SYS_getpgrp	81
    189 
    190 /* syscall: "setpgrp" ret: "int" args: "int" "int" */
    191 #define	SUNOS_SYS_setpgrp	82
    192 
    193 /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
    194 #define	SUNOS_SYS_setitimer	83
    195 
    196 /* syscall: "swapon" ret: "int" args: "char *" */
    197 #define	SUNOS_SYS_swapon	85
    198 
    199 /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
    200 #define	SUNOS_SYS_getitimer	86
    201 
    202 /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
    203 #define	SUNOS_SYS_gethostname	87
    204 
    205 /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
    206 #define	SUNOS_SYS_sethostname	88
    207 
    208 /* syscall: "getdtablesize" ret: "int" args: */
    209 #define	SUNOS_SYS_getdtablesize	89
    210 
    211 /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
    212 #define	SUNOS_SYS_dup2	90
    213 
    214 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
    215 #define	SUNOS_SYS_fcntl	92
    216 
    217 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
    218 #define	SUNOS_SYS_select	93
    219 
    220 /* syscall: "fsync" ret: "int" args: "int" */
    221 #define	SUNOS_SYS_fsync	95
    222 
    223 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
    224 #define	SUNOS_SYS_setpriority	96
    225 
    226 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
    227 #define	SUNOS_SYS_socket	97
    228 
    229 /* syscall: "connect" ret: "int" args: "int" "caddr_t" "int" */
    230 #define	SUNOS_SYS_connect	98
    231 
    232 /* syscall: "accept" ret: "int" args: "int" "caddr_t" "int *" */
    233 #define	SUNOS_SYS_accept	99
    234 
    235 /* syscall: "getpriority" ret: "int" args: "int" "int" */
    236 #define	SUNOS_SYS_getpriority	100
    237 
    238 /* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
    239 #define	SUNOS_SYS_send	101
    240 
    241 /* syscall: "recv" ret: "int" args: "int" "caddr_t" "int" "int" */
    242 #define	SUNOS_SYS_recv	102
    243 
    244 /* syscall: "bind" ret: "int" args: "int" "caddr_t" "int" */
    245 #define	SUNOS_SYS_bind	104
    246 
    247 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int" */
    248 #define	SUNOS_SYS_setsockopt	105
    249 
    250 /* syscall: "listen" ret: "int" args: "int" "int" */
    251 #define	SUNOS_SYS_listen	106
    252 
    253 /* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
    254 #define	SUNOS_SYS_sigvec	108
    255 
    256 /* syscall: "sigblock" ret: "int" args: "int" */
    257 #define	SUNOS_SYS_sigblock	109
    258 
    259 /* syscall: "sigsetmask" ret: "int" args: "int" */
    260 #define	SUNOS_SYS_sigsetmask	110
    261 
    262 /* syscall: "sigsuspend" ret: "int" args: "int" */
    263 #define	SUNOS_SYS_sigsuspend	111
    264 
    265 /* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
    266 #define	SUNOS_SYS_sigstack	112
    267 
    268 /* syscall: "recvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
    269 #define	SUNOS_SYS_recvmsg	113
    270 
    271 /* syscall: "sendmsg" ret: "int" args: "int" "caddr_t" "int" */
    272 #define	SUNOS_SYS_sendmsg	114
    273 
    274 				/* 115 is obsolete vtrace */
    275 /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
    276 #define	SUNOS_SYS_gettimeofday	116
    277 
    278 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
    279 #define	SUNOS_SYS_getrusage	117
    280 
    281 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int *" */
    282 #define	SUNOS_SYS_getsockopt	118
    283 
    284 /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
    285 #define	SUNOS_SYS_readv	120
    286 
    287 /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
    288 #define	SUNOS_SYS_writev	121
    289 
    290 /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
    291 #define	SUNOS_SYS_settimeofday	122
    292 
    293 /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
    294 #define	SUNOS_SYS_fchown	123
    295 
    296 /* syscall: "fchmod" ret: "int" args: "int" "int" */
    297 #define	SUNOS_SYS_fchmod	124
    298 
    299 /* syscall: "recvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */
    300 #define	SUNOS_SYS_recvfrom	125
    301 
    302 /* syscall: "setreuid" ret: "int" args: "int" "int" */
    303 #define	SUNOS_SYS_setreuid	126
    304 
    305 /* syscall: "setregid" ret: "int" args: "int" "int" */
    306 #define	SUNOS_SYS_setregid	127
    307 
    308 /* syscall: "rename" ret: "int" args: "char *" "char *" */
    309 #define	SUNOS_SYS_rename	128
    310 
    311 /* syscall: "truncate" ret: "int" args: "char *" "long" */
    312 #define	SUNOS_SYS_truncate	129
    313 
    314 /* syscall: "ftruncate" ret: "int" args: "int" "long" */
    315 #define	SUNOS_SYS_ftruncate	130
    316 
    317 /* syscall: "flock" ret: "int" args: "int" "int" */
    318 #define	SUNOS_SYS_flock	131
    319 
    320 /* syscall: "sendto" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int" */
    321 #define	SUNOS_SYS_sendto	133
    322 
    323 /* syscall: "shutdown" ret: "int" args: "int" "int" */
    324 #define	SUNOS_SYS_shutdown	134
    325 
    326 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
    327 #define	SUNOS_SYS_socketpair	135
    328 
    329 /* syscall: "mkdir" ret: "int" args: "char *" "int" */
    330 #define	SUNOS_SYS_mkdir	136
    331 
    332 /* syscall: "rmdir" ret: "int" args: "char *" */
    333 #define	SUNOS_SYS_rmdir	137
    334 
    335 /* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */
    336 #define	SUNOS_SYS_utimes	138
    337 
    338 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
    339 #define	SUNOS_SYS_sigreturn	139
    340 
    341 /* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */
    342 #define	SUNOS_SYS_adjtime	140
    343 
    344 /* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */
    345 #define	SUNOS_SYS_getpeername	141
    346 
    347 /* syscall: "gethostid" ret: "int" args: */
    348 #define	SUNOS_SYS_gethostid	142
    349 
    350 /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
    351 #define	SUNOS_SYS_getrlimit	144
    352 
    353 /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
    354 #define	SUNOS_SYS_setrlimit	145
    355 
    356 /* syscall: "killpg" ret: "int" args: "int" "int" */
    357 #define	SUNOS_SYS_killpg	146
    358 
    359 /* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */
    360 #define	SUNOS_SYS_getsockname	150
    361 
    362 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
    363 #define	SUNOS_SYS_poll	153
    364 
    365 #ifdef NFSSERVER
    366 /* syscall: "nfssvc" ret: "int" args: "int" */
    367 #define	SUNOS_SYS_nfssvc	155
    368 
    369 #else
    370 #endif
    371 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
    372 #define	SUNOS_SYS_getdirentries	156
    373 
    374 /* syscall: "statfs" ret: "int" args: "const 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 #ifdef NFS
    384 /* syscall: "async_daemon" ret: "int" args: */
    385 #define	SUNOS_SYS_async_daemon	160
    386 
    387 /* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */
    388 #define	SUNOS_SYS_getfh	161
    389 
    390 #else
    391 #endif
    392 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
    393 #define	SUNOS_SYS_getdomainname	162
    394 
    395 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
    396 #define	SUNOS_SYS_setdomainname	163
    397 
    398 /* syscall: "quotactl" ret: "int" args: "int" "char *" "int" "caddr_t" */
    399 #define	SUNOS_SYS_quotactl	165
    400 
    401 /* syscall: "exportfs" ret: "int" args: "char *" "char *" */
    402 #define	SUNOS_SYS_exportfs	166
    403 
    404 /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "caddr_t" */
    405 #define	SUNOS_SYS_mount	167
    406 
    407 /* syscall: "ustat" ret: "int" args: "int" "struct sunos_ustat *" */
    408 #define	SUNOS_SYS_ustat	168
    409 
    410 #ifdef SYSVSEM
    411 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
    412 #define	SUNOS_SYS_semsys	169
    413 
    414 #else
    415 #endif
    416 #ifdef SYSVMSG
    417 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
    418 #define	SUNOS_SYS_msgsys	170
    419 
    420 #else
    421 #endif
    422 #ifdef SYSVSHM
    423 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
    424 #define	SUNOS_SYS_shmsys	171
    425 
    426 #else
    427 #endif
    428 /* syscall: "auditsys" ret: "int" args: "char *" */
    429 #define	SUNOS_SYS_auditsys	172
    430 
    431 /* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
    432 #define	SUNOS_SYS_getdents	174
    433 
    434 /* syscall: "setsid" ret: "int" args: */
    435 #define	SUNOS_SYS_setsid	175
    436 
    437 /* syscall: "fchdir" ret: "int" args: "int" */
    438 #define	SUNOS_SYS_fchdir	176
    439 
    440 /* syscall: "fchroot" ret: "int" args: "int" */
    441 #define	SUNOS_SYS_fchroot	177
    442 
    443 /* syscall: "sigpending" ret: "int" args: "int *" */
    444 #define	SUNOS_SYS_sigpending	183
    445 
    446 /* syscall: "setpgid" ret: "int" args: "int" "int" */
    447 #define	SUNOS_SYS_setpgid	185
    448 
    449 /* syscall: "pathconf" ret: "long" args: "char *" "int" */
    450 #define	SUNOS_SYS_pathconf	186
    451 
    452 /* syscall: "fpathconf" ret: "long" args: "int" "int" */
    453 #define	SUNOS_SYS_fpathconf	187
    454 
    455 /* syscall: "sysconf" ret: "int" args: "int" */
    456 #define	SUNOS_SYS_sysconf	188
    457 
    458 /* syscall: "uname" ret: "int" args: "struct sunos_utsname *" */
    459 #define	SUNOS_SYS_uname	189
    460 
    461 #define	SUNOS_SYS_MAXSYSCALL	190
    462 #define	SUNOS_SYS_NSYSENT	256
    463