1 /* $OpenBSD: syscall.h,v 1.97 2006/09/22 17:36:17 pedro 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.86 2006/09/22 17:35:41 pedro Exp 8 */ 9 10 /* syscall: "syscall" ret: "int" args: "int" "..." */ 11 #define SYS_syscall 0 12 13 /* syscall: "exit" ret: "void" args: "int" */ 14 #define SYS_exit 1 15 16 /* syscall: "fork" ret: "int" args: */ 17 #define SYS_fork 2 18 19 /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */ 20 #define SYS_read 3 21 22 /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */ 23 #define SYS_write 4 24 25 /* syscall: "open" ret: "int" args: "const char *" "int" "..." */ 26 #define SYS_open 5 27 28 /* syscall: "close" ret: "int" args: "int" */ 29 #define SYS_close 6 30 31 /* syscall: "wait4" ret: "pid_t" args: "pid_t" "int *" "int" "struct rusage *" */ 32 #define SYS_wait4 7 33 34 /* 8 is compat_43 ocreat */ 35 36 /* syscall: "link" ret: "int" args: "const char *" "const char *" */ 37 #define SYS_link 9 38 39 /* syscall: "unlink" ret: "int" args: "const char *" */ 40 #define SYS_unlink 10 41 42 /* 11 is obsolete execv */ 43 /* syscall: "chdir" ret: "int" args: "const char *" */ 44 #define SYS_chdir 12 45 46 /* syscall: "fchdir" ret: "int" args: "int" */ 47 #define SYS_fchdir 13 48 49 /* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */ 50 #define SYS_mknod 14 51 52 /* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */ 53 #define SYS_chmod 15 54 55 /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 56 #define SYS_chown 16 57 58 /* syscall: "break" ret: "int" args: "char *" */ 59 #define SYS_break 17 60 61 /* 18 is compat_25 ogetfsstat */ 62 63 /* 19 is compat_43 olseek */ 64 65 /* syscall: "getpid" ret: "pid_t" args: */ 66 #define SYS_getpid 20 67 68 /* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */ 69 #define SYS_mount 21 70 71 /* syscall: "unmount" ret: "int" args: "const char *" "int" */ 72 #define SYS_unmount 22 73 74 /* syscall: "setuid" ret: "int" args: "uid_t" */ 75 #define SYS_setuid 23 76 77 /* syscall: "getuid" ret: "uid_t" args: */ 78 #define SYS_getuid 24 79 80 /* syscall: "geteuid" ret: "uid_t" args: */ 81 #define SYS_geteuid 25 82 83 /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */ 84 #define SYS_ptrace 26 85 86 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */ 87 #define SYS_recvmsg 27 88 89 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */ 90 #define SYS_sendmsg 28 91 92 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "socklen_t *" */ 93 #define SYS_recvfrom 29 94 95 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */ 96 #define SYS_accept 30 97 98 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */ 99 #define SYS_getpeername 31 100 101 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */ 102 #define SYS_getsockname 32 103 104 /* syscall: "access" ret: "int" args: "const char *" "int" */ 105 #define SYS_access 33 106 107 /* syscall: "chflags" ret: "int" args: "const char *" "u_int" */ 108 #define SYS_chflags 34 109 110 /* syscall: "fchflags" ret: "int" args: "int" "u_int" */ 111 #define SYS_fchflags 35 112 113 /* syscall: "sync" ret: "void" args: */ 114 #define SYS_sync 36 115 116 /* syscall: "kill" ret: "int" args: "int" "int" */ 117 #define SYS_kill 37 118 119 /* 38 is compat_43 stat43 */ 120 121 /* syscall: "getppid" ret: "pid_t" args: */ 122 #define SYS_getppid 39 123 124 /* 40 is compat_43 lstat43 */ 125 126 /* syscall: "dup" ret: "int" args: "int" */ 127 #define SYS_dup 41 128 129 /* syscall: "opipe" ret: "int" args: */ 130 #define SYS_opipe 42 131 132 /* syscall: "getegid" ret: "gid_t" args: */ 133 #define SYS_getegid 43 134 135 /* syscall: "profil" ret: "int" args: "caddr_t" "size_t" "u_long" "u_int" */ 136 #define SYS_profil 44 137 138 /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "pid_t" */ 139 #define SYS_ktrace 45 140 141 /* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */ 142 #define SYS_sigaction 46 143 144 /* syscall: "getgid" ret: "gid_t" args: */ 145 #define SYS_getgid 47 146 147 /* syscall: "sigprocmask" ret: "int" args: "int" "sigset_t" */ 148 #define SYS_sigprocmask 48 149 150 /* syscall: "getlogin" ret: "int" args: "char *" "u_int" */ 151 #define SYS_getlogin 49 152 153 /* syscall: "setlogin" ret: "int" args: "const char *" */ 154 #define SYS_setlogin 50 155 156 /* syscall: "acct" ret: "int" args: "const char *" */ 157 #define SYS_acct 51 158 159 /* syscall: "sigpending" ret: "int" args: */ 160 #define SYS_sigpending 52 161 162 /* syscall: "osigaltstack" ret: "int" args: "const struct osigaltstack *" "struct osigaltstack *" */ 163 #define SYS_osigaltstack 53 164 165 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */ 166 #define SYS_ioctl 54 167 168 /* syscall: "reboot" ret: "int" args: "int" */ 169 #define SYS_reboot 55 170 171 /* syscall: "revoke" ret: "int" args: "const char *" */ 172 #define SYS_revoke 56 173 174 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 175 #define SYS_symlink 57 176 177 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */ 178 #define SYS_readlink 58 179 180 /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */ 181 #define SYS_execve 59 182 183 /* syscall: "umask" ret: "mode_t" args: "mode_t" */ 184 #define SYS_umask 60 185 186 /* syscall: "chroot" ret: "int" args: "const char *" */ 187 #define SYS_chroot 61 188 189 /* 62 is compat_43 fstat43 */ 190 191 /* 63 is compat_43 ogetkerninfo */ 192 193 /* 64 is compat_43 ogetpagesize */ 194 195 /* 65 is compat_25 omsync */ 196 197 /* syscall: "vfork" ret: "int" args: */ 198 #define SYS_vfork 66 199 200 /* 67 is obsolete vread */ 201 /* 68 is obsolete vwrite */ 202 /* syscall: "sbrk" ret: "int" args: "int" */ 203 #define SYS_sbrk 69 204 205 /* syscall: "sstk" ret: "int" args: "int" */ 206 #define SYS_sstk 70 207 208 /* 71 is compat_43 ommap */ 209 210 /* syscall: "vadvise" ret: "int" args: "int" */ 211 #define SYS_vadvise 72 212 213 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */ 214 #define SYS_munmap 73 215 216 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */ 217 #define SYS_mprotect 74 218 219 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 220 #define SYS_madvise 75 221 222 /* 76 is obsolete vhangup */ 223 /* 77 is obsolete vlimit */ 224 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ 225 #define SYS_mincore 78 226 227 /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */ 228 #define SYS_getgroups 79 229 230 /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */ 231 #define SYS_setgroups 80 232 233 /* syscall: "getpgrp" ret: "int" args: */ 234 #define SYS_getpgrp 81 235 236 /* syscall: "setpgid" ret: "int" args: "pid_t" "int" */ 237 #define SYS_setpgid 82 238 239 /* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */ 240 #define SYS_setitimer 83 241 242 /* 84 is compat_43 owait */ 243 244 /* 85 is compat_25 swapon */ 245 246 /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */ 247 #define SYS_getitimer 86 248 249 /* 87 is compat_43 ogethostname */ 250 251 /* 88 is compat_43 osethostname */ 252 253 /* 89 is compat_43 ogetdtablesize */ 254 255 /* syscall: "dup2" ret: "int" args: "int" "int" */ 256 #define SYS_dup2 90 257 258 /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */ 259 #define SYS_fcntl 92 260 261 /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 262 #define SYS_select 93 263 264 /* syscall: "fsync" ret: "int" args: "int" */ 265 #define SYS_fsync 95 266 267 /* syscall: "setpriority" ret: "int" args: "int" "id_t" "int" */ 268 #define SYS_setpriority 96 269 270 /* syscall: "socket" ret: "int" args: "int" "int" "int" */ 271 #define SYS_socket 97 272 273 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */ 274 #define SYS_connect 98 275 276 /* 99 is compat_43 oaccept */ 277 278 /* syscall: "getpriority" ret: "int" args: "int" "id_t" */ 279 #define SYS_getpriority 100 280 281 /* 101 is compat_43 osend */ 282 283 /* 102 is compat_43 orecv */ 284 285 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */ 286 #define SYS_sigreturn 103 287 288 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */ 289 #define SYS_bind 104 290 291 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "socklen_t" */ 292 #define SYS_setsockopt 105 293 294 /* syscall: "listen" ret: "int" args: "int" "int" */ 295 #define SYS_listen 106 296 297 /* 107 is obsolete vtimes */ 298 /* 108 is compat_43 osigvec */ 299 300 /* 109 is compat_43 osigblock */ 301 302 /* 110 is compat_43 osigsetmask */ 303 304 /* syscall: "sigsuspend" ret: "int" args: "int" */ 305 #define SYS_sigsuspend 111 306 307 /* 112 is compat_43 osigstack */ 308 309 /* 113 is compat_43 orecvmsg */ 310 311 /* 114 is compat_43 osendmsg */ 312 313 /* 115 is obsolete vtrace */ 314 /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 315 #define SYS_gettimeofday 116 316 317 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ 318 #define SYS_getrusage 117 319 320 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "socklen_t *" */ 321 #define SYS_getsockopt 118 322 323 /* 119 is obsolete resuba */ 324 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 325 #define SYS_readv 120 326 327 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 328 #define SYS_writev 121 329 330 /* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */ 331 #define SYS_settimeofday 122 332 333 /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 334 #define SYS_fchown 123 335 336 /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */ 337 #define SYS_fchmod 124 338 339 /* 125 is compat_43 orecvfrom */ 340 341 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 342 #define SYS_setreuid 126 343 344 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 345 #define SYS_setregid 127 346 347 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */ 348 #define SYS_rename 128 349 350 /* 129 is compat_43 otruncate */ 351 352 /* 130 is compat_43 oftruncate */ 353 354 /* syscall: "flock" ret: "int" args: "int" "int" */ 355 #define SYS_flock 131 356 357 /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */ 358 #define SYS_mkfifo 132 359 360 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "socklen_t" */ 361 #define SYS_sendto 133 362 363 /* syscall: "shutdown" ret: "int" args: "int" "int" */ 364 #define SYS_shutdown 134 365 366 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 367 #define SYS_socketpair 135 368 369 /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */ 370 #define SYS_mkdir 136 371 372 /* syscall: "rmdir" ret: "int" args: "const char *" */ 373 #define SYS_rmdir 137 374 375 /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */ 376 #define SYS_utimes 138 377 378 /* 139 is obsolete 4.2 sigreturn */ 379 /* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */ 380 #define SYS_adjtime 140 381 382 /* 141 is compat_43 ogetpeername */ 383 384 /* 142 is compat_43 ogethostid */ 385 386 /* 143 is compat_43 osethostid */ 387 388 /* 144 is compat_43 ogetrlimit */ 389 390 /* 145 is compat_43 osetrlimit */ 391 392 /* 146 is compat_43 okillpg */ 393 394 /* syscall: "setsid" ret: "int" args: */ 395 #define SYS_setsid 147 396 397 /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "char *" */ 398 #define SYS_quotactl 148 399 400 /* 149 is compat_43 oquota */ 401 402 /* 150 is compat_43 ogetsockname */ 403 404 /* syscall: "nfssvc" ret: "int" args: "int" "void *" */ 405 #define SYS_nfssvc 155 406 407 /* 156 is compat_43 ogetdirentries */ 408 409 /* 157 is compat_25 ostatfs */ 410 411 /* 158 is compat_25 ostatfs */ 412 413 /* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */ 414 #define SYS_getfh 161 415 416 /* 162 is compat_09 ogetdomainname */ 417 418 /* 163 is compat_09 osetdomainname */ 419 420 /* 164 is compat_09 ouname */ 421 422 /* syscall: "sysarch" ret: "int" args: "int" "void *" */ 423 #define SYS_sysarch 165 424 425 /* 169 is compat_10 osemsys */ 426 427 /* 170 is compat_10 omsgsys */ 428 429 /* 171 is compat_10 oshmsys */ 430 431 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */ 432 #define SYS_pread 173 433 434 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */ 435 #define SYS_pwrite 174 436 437 /* syscall: "setgid" ret: "int" args: "gid_t" */ 438 #define SYS_setgid 181 439 440 /* syscall: "setegid" ret: "int" args: "gid_t" */ 441 #define SYS_setegid 182 442 443 /* syscall: "seteuid" ret: "int" args: "uid_t" */ 444 #define SYS_seteuid 183 445 446 /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 447 #define SYS_lfs_bmapv 184 448 449 /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 450 #define SYS_lfs_markv 185 451 452 /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */ 453 #define SYS_lfs_segclean 186 454 455 /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ 456 #define SYS_lfs_segwait 187 457 458 /* 188 is compat_35 stat35 */ 459 460 /* 189 is compat_35 fstat35 */ 461 462 /* 190 is compat_35 lstat35 */ 463 464 /* syscall: "pathconf" ret: "long" args: "const char *" "int" */ 465 #define SYS_pathconf 191 466 467 /* syscall: "fpathconf" ret: "long" args: "int" "int" */ 468 #define SYS_fpathconf 192 469 470 /* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */ 471 #define SYS_swapctl 193 472 473 /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */ 474 #define SYS_getrlimit 194 475 476 /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */ 477 #define SYS_setrlimit 195 478 479 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "int" "long *" */ 480 #define SYS_getdirentries 196 481 482 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */ 483 #define SYS_mmap 197 484 485 /* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */ 486 #define SYS___syscall 198 487 488 /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */ 489 #define SYS_lseek 199 490 491 /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */ 492 #define SYS_truncate 200 493 494 /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */ 495 #define SYS_ftruncate 201 496 497 /* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */ 498 #define SYS___sysctl 202 499 500 /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */ 501 #define SYS_mlock 203 502 503 /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */ 504 #define SYS_munlock 204 505 506 /* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */ 507 #define SYS_futimes 206 508 509 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 510 #define SYS_getpgid 207 511 512 /* syscall: "xfspioctl" ret: "int" args: "int" "char *" "int" "struct ViceIoctl *" "int" */ 513 #define SYS_xfspioctl 208 514 515 /* 220 is compat_23 semctl23 */ 516 517 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 518 #define SYS_semget 221 519 520 /* 222 is compat_35 semop */ 521 522 /* 223 is obsolete sys_semconfig */ 523 /* 224 is compat_23 msgctl23 */ 524 525 /* syscall: "msgget" ret: "int" args: "key_t" "int" */ 526 #define SYS_msgget 225 527 528 /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */ 529 #define SYS_msgsnd 226 530 531 /* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */ 532 #define SYS_msgrcv 227 533 534 /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */ 535 #define SYS_shmat 228 536 537 /* 229 is compat_23 shmctl23 */ 538 539 /* syscall: "shmdt" ret: "int" args: "const void *" */ 540 #define SYS_shmdt 230 541 542 /* 231 is compat_35 shmget */ 543 544 /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */ 545 #define SYS_clock_gettime 232 546 547 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */ 548 #define SYS_clock_settime 233 549 550 /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */ 551 #define SYS_clock_getres 234 552 553 /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */ 554 #define SYS_nanosleep 240 555 556 /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */ 557 #define SYS_minherit 250 558 559 /* syscall: "rfork" ret: "int" args: "int" */ 560 #define SYS_rfork 251 561 562 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 563 #define SYS_poll 252 564 565 /* syscall: "issetugid" ret: "int" args: */ 566 #define SYS_issetugid 253 567 568 /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 569 #define SYS_lchown 254 570 571 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 572 #define SYS_getsid 255 573 574 /* syscall: "msync" ret: "int" args: "void *" "size_t" "int" */ 575 #define SYS_msync 256 576 577 /* 257 is compat_35 semctl35 */ 578 579 /* 258 is compat_35 shmctl35 */ 580 581 /* 259 is compat_35 msgctl35 */ 582 583 /* syscall: "getfsstat" ret: "int" args: "struct statfs *" "size_t" "int" */ 584 #define SYS_getfsstat 260 585 586 /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */ 587 #define SYS_statfs 261 588 589 /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */ 590 #define SYS_fstatfs 262 591 592 /* syscall: "pipe" ret: "int" args: "int *" */ 593 #define SYS_pipe 263 594 595 /* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */ 596 #define SYS_fhopen 264 597 598 /* 265 is compat_35 fhstat */ 599 600 /* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */ 601 #define SYS_fhstatfs 266 602 603 /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 604 #define SYS_preadv 267 605 606 /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 607 #define SYS_pwritev 268 608 609 /* syscall: "kqueue" ret: "int" args: */ 610 #define SYS_kqueue 269 611 612 /* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "int" "struct kevent *" "int" "const struct timespec *" */ 613 #define SYS_kevent 270 614 615 /* syscall: "mlockall" ret: "int" args: "int" */ 616 #define SYS_mlockall 271 617 618 /* syscall: "munlockall" ret: "int" args: */ 619 #define SYS_munlockall 272 620 621 /* syscall: "getpeereid" ret: "int" args: "int" "uid_t *" "gid_t *" */ 622 #define SYS_getpeereid 273 623 624 /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */ 625 #define SYS_getresuid 281 626 627 /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 628 #define SYS_setresuid 282 629 630 /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */ 631 #define SYS_getresgid 283 632 633 /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */ 634 #define SYS_setresgid 284 635 636 /* 285 is obsolete sys_omquery */ 637 /* syscall: "mquery" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */ 638 #define SYS_mquery 286 639 640 /* syscall: "closefrom" ret: "int" args: "int" */ 641 #define SYS_closefrom 287 642 643 /* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */ 644 #define SYS_sigaltstack 288 645 646 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */ 647 #define SYS_shmget 289 648 649 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ 650 #define SYS_semop 290 651 652 /* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */ 653 #define SYS_stat 291 654 655 /* syscall: "fstat" ret: "int" args: "int" "struct stat *" */ 656 #define SYS_fstat 292 657 658 /* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */ 659 #define SYS_lstat 293 660 661 /* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */ 662 #define SYS_fhstat 294 663 664 /* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union semun *" */ 665 #define SYS___semctl 295 666 667 /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds *" */ 668 #define SYS_shmctl 296 669 670 /* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds *" */ 671 #define SYS_msgctl 297 672 673 /* syscall: "sched_yield" ret: "int" args: */ 674 #define SYS_sched_yield 298 675 676 /* syscall: "getthrid" ret: "pid_t" args: */ 677 #define SYS_getthrid 299 678 679 /* syscall: "thrsleep" ret: "int" args: "void *" "int" "void *" */ 680 #define SYS_thrsleep 300 681 682 /* syscall: "thrwakeup" ret: "int" args: "void *" "int" */ 683 #define SYS_thrwakeup 301 684 685 /* syscall: "threxit" ret: "int" args: "int" */ 686 #define SYS_threxit 302 687 688 /* syscall: "thrsigdivert" ret: "int" args: "sigset_t" */ 689 #define SYS_thrsigdivert 303 690 691 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 692 #define SYS___getcwd 304 693 694 /* syscall: "adjfreq" ret: "int" args: "const int64_t *" "int64_t *" */ 695 #define SYS_adjfreq 305 696 697 #define SYS_MAXSYSCALL 306