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