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