1 /* $NetBSD: syscall.h,v 1.127 2002/10/23 09:18:19 jdolecek 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.116 2002/10/23 09:14:24 jdolecek 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: "int" args: "int" "int *" "int" "struct rusage *" */ 32 #define SYS_wait4 7 33 34 #define SYS_compat_43_ocreat 8 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 /* syscall: "getfsstat" ret: "int" args: "struct statfs *" "long" "int" */ 62 #define SYS_getfsstat 18 63 64 #define SYS_compat_43_olseek 19 65 66 /* syscall: "getpid" ret: "pid_t" args: */ 67 #define SYS_getpid 20 68 69 /* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */ 70 #define SYS_mount 21 71 72 /* syscall: "unmount" ret: "int" args: "const char *" "int" */ 73 #define SYS_unmount 22 74 75 /* syscall: "setuid" ret: "int" args: "uid_t" */ 76 #define SYS_setuid 23 77 78 /* syscall: "getuid" ret: "uid_t" args: */ 79 #define SYS_getuid 24 80 81 /* syscall: "geteuid" ret: "uid_t" args: */ 82 #define SYS_geteuid 25 83 84 /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */ 85 #define SYS_ptrace 26 86 87 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */ 88 #define SYS_recvmsg 27 89 90 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */ 91 #define SYS_sendmsg 28 92 93 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "unsigned int *" */ 94 #define SYS_recvfrom 29 95 96 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 97 #define SYS_accept 30 98 99 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 100 #define SYS_getpeername 31 101 102 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 103 #define SYS_getsockname 32 104 105 /* syscall: "access" ret: "int" args: "const char *" "int" */ 106 #define SYS_access 33 107 108 /* syscall: "chflags" ret: "int" args: "const char *" "u_long" */ 109 #define SYS_chflags 34 110 111 /* syscall: "fchflags" ret: "int" args: "int" "u_long" */ 112 #define SYS_fchflags 35 113 114 /* syscall: "sync" ret: "void" args: */ 115 #define SYS_sync 36 116 117 /* syscall: "kill" ret: "int" args: "int" "int" */ 118 #define SYS_kill 37 119 120 #define SYS_compat_43_stat43 38 121 122 /* syscall: "getppid" ret: "pid_t" args: */ 123 #define SYS_getppid 39 124 125 #define SYS_compat_43_lstat43 40 126 127 /* syscall: "dup" ret: "int" args: "int" */ 128 #define SYS_dup 41 129 130 /* syscall: "pipe" ret: "int" args: */ 131 #define SYS_pipe 42 132 133 /* syscall: "getegid" ret: "gid_t" args: */ 134 #define SYS_getegid 43 135 136 /* syscall: "profil" ret: "int" args: "caddr_t" "size_t" "u_long" "u_int" */ 137 #define SYS_profil 44 138 139 /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "int" */ 140 #define SYS_ktrace 45 141 142 /* 45 is excluded ktrace */ 143 #define SYS_compat_13_sigaction13 46 144 145 /* syscall: "getgid" ret: "gid_t" args: */ 146 #define SYS_getgid 47 147 148 #define SYS_compat_13_sigprocmask13 48 149 150 /* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */ 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 #define SYS_compat_13_sigpending13 52 160 161 #define SYS_compat_13_sigaltstack13 53 162 163 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */ 164 #define SYS_ioctl 54 165 166 #define SYS_compat_12_oreboot 55 167 168 /* syscall: "revoke" ret: "int" args: "const char *" */ 169 #define SYS_revoke 56 170 171 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 172 #define SYS_symlink 57 173 174 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */ 175 #define SYS_readlink 58 176 177 /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */ 178 #define SYS_execve 59 179 180 /* syscall: "umask" ret: "mode_t" args: "mode_t" */ 181 #define SYS_umask 60 182 183 /* syscall: "chroot" ret: "int" args: "const char *" */ 184 #define SYS_chroot 61 185 186 #define SYS_compat_43_fstat43 62 187 188 #define SYS_compat_43_ogetkerninfo 63 189 190 #define SYS_compat_43_ogetpagesize 64 191 192 #define SYS_compat_12_msync 65 193 194 /* syscall: "vfork" ret: "int" args: */ 195 #define SYS_vfork 66 196 197 /* 67 is obsolete vread */ 198 /* 68 is obsolete vwrite */ 199 /* syscall: "sbrk" ret: "int" args: "intptr_t" */ 200 #define SYS_sbrk 69 201 202 /* syscall: "sstk" ret: "int" args: "int" */ 203 #define SYS_sstk 70 204 205 #define SYS_compat_43_ommap 71 206 207 /* syscall: "vadvise" ret: "int" args: "int" */ 208 #define SYS_vadvise 72 209 210 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */ 211 #define SYS_munmap 73 212 213 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */ 214 #define SYS_mprotect 74 215 216 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 217 #define SYS_madvise 75 218 219 /* 76 is obsolete vhangup */ 220 /* 77 is obsolete vlimit */ 221 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ 222 #define SYS_mincore 78 223 224 /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */ 225 #define SYS_getgroups 79 226 227 /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */ 228 #define SYS_setgroups 80 229 230 /* syscall: "getpgrp" ret: "int" args: */ 231 #define SYS_getpgrp 81 232 233 /* syscall: "setpgid" ret: "int" args: "int" "int" */ 234 #define SYS_setpgid 82 235 236 /* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */ 237 #define SYS_setitimer 83 238 239 #define SYS_compat_43_owait 84 240 241 #define SYS_compat_12_oswapon 85 242 243 /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */ 244 #define SYS_getitimer 86 245 246 #define SYS_compat_43_ogethostname 87 247 248 #define SYS_compat_43_osethostname 88 249 250 #define SYS_compat_43_ogetdtablesize 89 251 252 /* syscall: "dup2" ret: "int" args: "int" "int" */ 253 #define SYS_dup2 90 254 255 /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */ 256 #define SYS_fcntl 92 257 258 /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 259 #define SYS_select 93 260 261 /* syscall: "fsync" ret: "int" args: "int" */ 262 #define SYS_fsync 95 263 264 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 265 #define SYS_setpriority 96 266 267 /* syscall: "socket" ret: "int" args: "int" "int" "int" */ 268 #define SYS_socket 97 269 270 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "unsigned int" */ 271 #define SYS_connect 98 272 273 #define SYS_compat_43_oaccept 99 274 275 /* syscall: "getpriority" ret: "int" args: "int" "int" */ 276 #define SYS_getpriority 100 277 278 #define SYS_compat_43_osend 101 279 280 #define SYS_compat_43_orecv 102 281 282 #define SYS_compat_13_sigreturn13 103 283 284 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "unsigned int" */ 285 #define SYS_bind 104 286 287 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "unsigned int" */ 288 #define SYS_setsockopt 105 289 290 /* syscall: "listen" ret: "int" args: "int" "int" */ 291 #define SYS_listen 106 292 293 /* 107 is obsolete vtimes */ 294 #define SYS_compat_43_osigvec 108 295 296 #define SYS_compat_43_osigblock 109 297 298 #define SYS_compat_43_osigsetmask 110 299 300 #define SYS_compat_13_sigsuspend13 111 301 302 #define SYS_compat_43_osigstack 112 303 304 #define SYS_compat_43_orecvmsg 113 305 306 #define SYS_compat_43_osendmsg 114 307 308 /* 115 is obsolete vtrace */ 309 /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 310 #define SYS_gettimeofday 116 311 312 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ 313 #define SYS_getrusage 117 314 315 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "unsigned int *" */ 316 #define SYS_getsockopt 118 317 318 /* 119 is obsolete resuba */ 319 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 320 #define SYS_readv 120 321 322 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 323 #define SYS_writev 121 324 325 /* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */ 326 #define SYS_settimeofday 122 327 328 /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 329 #define SYS_fchown 123 330 331 /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */ 332 #define SYS_fchmod 124 333 334 #define SYS_compat_43_orecvfrom 125 335 336 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 337 #define SYS_setreuid 126 338 339 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 340 #define SYS_setregid 127 341 342 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */ 343 #define SYS_rename 128 344 345 #define SYS_compat_43_otruncate 129 346 347 #define SYS_compat_43_oftruncate 130 348 349 /* syscall: "flock" ret: "int" args: "int" "int" */ 350 #define SYS_flock 131 351 352 /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */ 353 #define SYS_mkfifo 132 354 355 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "unsigned int" */ 356 #define SYS_sendto 133 357 358 /* syscall: "shutdown" ret: "int" args: "int" "int" */ 359 #define SYS_shutdown 134 360 361 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 362 #define SYS_socketpair 135 363 364 /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */ 365 #define SYS_mkdir 136 366 367 /* syscall: "rmdir" ret: "int" args: "const char *" */ 368 #define SYS_rmdir 137 369 370 /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */ 371 #define SYS_utimes 138 372 373 /* 139 is obsolete 4.2 sigreturn */ 374 /* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */ 375 #define SYS_adjtime 140 376 377 #define SYS_compat_43_ogetpeername 141 378 379 #define SYS_compat_43_ogethostid 142 380 381 #define SYS_compat_43_osethostid 143 382 383 #define SYS_compat_43_ogetrlimit 144 384 385 #define SYS_compat_43_osetrlimit 145 386 387 #define SYS_compat_43_okillpg 146 388 389 /* syscall: "setsid" ret: "int" args: */ 390 #define SYS_setsid 147 391 392 /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "caddr_t" */ 393 #define SYS_quotactl 148 394 395 #define SYS_compat_43_oquota 149 396 397 #define SYS_compat_43_ogetsockname 150 398 399 /* syscall: "nfssvc" ret: "int" args: "int" "void *" */ 400 #define SYS_nfssvc 155 401 402 /* 155 is excluded nfssvc */ 403 #define SYS_compat_43_ogetdirentries 156 404 405 /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */ 406 #define SYS_statfs 157 407 408 /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */ 409 #define SYS_fstatfs 158 410 411 /* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */ 412 #define SYS_getfh 161 413 414 #define SYS_compat_09_ogetdomainname 162 415 416 #define SYS_compat_09_osetdomainname 163 417 418 #define SYS_compat_09_ouname 164 419 420 /* syscall: "sysarch" ret: "int" args: "int" "void *" */ 421 #define SYS_sysarch 165 422 423 #define SYS_compat_10_osemsys 169 424 425 /* 169 is excluded 1.0 semsys */ 426 #define SYS_compat_10_omsgsys 170 427 428 /* 170 is excluded 1.0 msgsys */ 429 #define SYS_compat_10_oshmsys 171 430 431 /* 171 is excluded 1.0 shmsys */ 432 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */ 433 #define SYS_pread 173 434 435 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */ 436 #define SYS_pwrite 174 437 438 /* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */ 439 #define SYS_ntp_gettime 175 440 441 /* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */ 442 #define SYS_ntp_adjtime 176 443 444 /* 176 is excluded ntp_adjtime */ 445 /* syscall: "setgid" ret: "int" args: "gid_t" */ 446 #define SYS_setgid 181 447 448 /* syscall: "setegid" ret: "int" args: "gid_t" */ 449 #define SYS_setegid 182 450 451 /* syscall: "seteuid" ret: "int" args: "uid_t" */ 452 #define SYS_seteuid 183 453 454 /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 455 #define SYS_lfs_bmapv 184 456 457 /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 458 #define SYS_lfs_markv 185 459 460 /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */ 461 #define SYS_lfs_segclean 186 462 463 /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ 464 #define SYS_lfs_segwait 187 465 466 /* 184 is excluded lfs_bmapv */ 467 /* 185 is excluded lfs_markv */ 468 /* 186 is excluded lfs_segclean */ 469 /* 187 is excluded lfs_segwait */ 470 #define SYS_compat_12_stat12 188 471 472 #define SYS_compat_12_fstat12 189 473 474 #define SYS_compat_12_lstat12 190 475 476 /* syscall: "pathconf" ret: "long" args: "const char *" "int" */ 477 #define SYS_pathconf 191 478 479 /* syscall: "fpathconf" ret: "long" args: "int" "int" */ 480 #define SYS_fpathconf 192 481 482 /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */ 483 #define SYS_getrlimit 194 484 485 /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */ 486 #define SYS_setrlimit 195 487 488 #define SYS_compat_12_getdirentries 196 489 490 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */ 491 #define SYS_mmap 197 492 493 /* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */ 494 #define SYS___syscall 198 495 496 /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */ 497 #define SYS_lseek 199 498 499 /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */ 500 #define SYS_truncate 200 501 502 /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */ 503 #define SYS_ftruncate 201 504 505 /* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */ 506 #define SYS___sysctl 202 507 508 /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */ 509 #define SYS_mlock 203 510 511 /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */ 512 #define SYS_munlock 204 513 514 /* syscall: "undelete" ret: "int" args: "const char *" */ 515 #define SYS_undelete 205 516 517 /* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */ 518 #define SYS_futimes 206 519 520 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 521 #define SYS_getpgid 207 522 523 /* syscall: "reboot" ret: "int" args: "int" "char *" */ 524 #define SYS_reboot 208 525 526 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 527 #define SYS_poll 209 528 529 /* 210 is excluded lkmnosys */ 530 /* 211 is excluded lkmnosys */ 531 /* 212 is excluded lkmnosys */ 532 /* 213 is excluded lkmnosys */ 533 /* 214 is excluded lkmnosys */ 534 /* 215 is excluded lkmnosys */ 535 /* 216 is excluded lkmnosys */ 536 /* 217 is excluded lkmnosys */ 537 /* 218 is excluded lkmnosys */ 538 /* 219 is excluded lkmnosys */ 539 #define SYS_compat_14___semctl 220 540 541 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 542 #define SYS_semget 221 543 544 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ 545 #define SYS_semop 222 546 547 /* syscall: "semconfig" ret: "int" args: "int" */ 548 #define SYS_semconfig 223 549 550 /* 220 is excluded compat_14_semctl */ 551 /* 221 is excluded semget */ 552 /* 222 is excluded semop */ 553 /* 223 is excluded semconfig */ 554 #define SYS_compat_14_msgctl 224 555 556 /* syscall: "msgget" ret: "int" args: "key_t" "int" */ 557 #define SYS_msgget 225 558 559 /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */ 560 #define SYS_msgsnd 226 561 562 /* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */ 563 #define SYS_msgrcv 227 564 565 /* 224 is excluded compat_14_msgctl */ 566 /* 225 is excluded msgget */ 567 /* 226 is excluded msgsnd */ 568 /* 227 is excluded msgrcv */ 569 /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */ 570 #define SYS_shmat 228 571 572 #define SYS_compat_14_shmctl 229 573 574 /* syscall: "shmdt" ret: "int" args: "const void *" */ 575 #define SYS_shmdt 230 576 577 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */ 578 #define SYS_shmget 231 579 580 /* 228 is excluded shmat */ 581 /* 229 is excluded compat_14_shmctl */ 582 /* 230 is excluded shmdt */ 583 /* 231 is excluded shmget */ 584 /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */ 585 #define SYS_clock_gettime 232 586 587 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */ 588 #define SYS_clock_settime 233 589 590 /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */ 591 #define SYS_clock_getres 234 592 593 /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */ 594 #define SYS_nanosleep 240 595 596 /* syscall: "fdatasync" ret: "int" args: "int" */ 597 #define SYS_fdatasync 241 598 599 /* syscall: "mlockall" ret: "int" args: "int" */ 600 #define SYS_mlockall 242 601 602 /* syscall: "munlockall" ret: "int" args: */ 603 #define SYS_munlockall 243 604 605 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */ 606 #define SYS___posix_rename 270 607 608 /* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */ 609 #define SYS_swapctl 271 610 611 /* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */ 612 #define SYS_getdents 272 613 614 /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */ 615 #define SYS_minherit 273 616 617 /* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */ 618 #define SYS_lchmod 274 619 620 /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 621 #define SYS_lchown 275 622 623 /* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval *" */ 624 #define SYS_lutimes 276 625 626 /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */ 627 #define SYS___msync13 277 628 629 /* syscall: "__stat13" ret: "int" args: "const char *" "struct stat *" */ 630 #define SYS___stat13 278 631 632 /* syscall: "__fstat13" ret: "int" args: "int" "struct stat *" */ 633 #define SYS___fstat13 279 634 635 /* syscall: "__lstat13" ret: "int" args: "const char *" "struct stat *" */ 636 #define SYS___lstat13 280 637 638 /* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */ 639 #define SYS___sigaltstack14 281 640 641 /* syscall: "__vfork14" ret: "int" args: */ 642 #define SYS___vfork14 282 643 644 /* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 645 #define SYS___posix_chown 283 646 647 /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 648 #define SYS___posix_fchown 284 649 650 /* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 651 #define SYS___posix_lchown 285 652 653 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 654 #define SYS_getsid 286 655 656 /* syscall: "__clone" ret: "pid_t" args: "int" "void *" */ 657 #define SYS___clone 287 658 659 /* syscall: "fktrace" ret: "int" args: "const int" "int" "int" "int" */ 660 #define SYS_fktrace 288 661 662 /* 288 is excluded ktrace */ 663 /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 664 #define SYS_preadv 289 665 666 /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 667 #define SYS_pwritev 290 668 669 /* syscall: "__sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */ 670 #define SYS___sigaction14 291 671 672 /* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */ 673 #define SYS___sigpending14 292 674 675 /* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */ 676 #define SYS___sigprocmask14 293 677 678 /* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */ 679 #define SYS___sigsuspend14 294 680 681 /* syscall: "__sigreturn14" ret: "int" args: "struct sigcontext *" */ 682 #define SYS___sigreturn14 295 683 684 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 685 #define SYS___getcwd 296 686 687 /* syscall: "fchroot" ret: "int" args: "int" */ 688 #define SYS_fchroot 297 689 690 /* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */ 691 #define SYS_fhopen 298 692 693 /* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */ 694 #define SYS_fhstat 299 695 696 /* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */ 697 #define SYS_fhstatfs 300 698 699 /* syscall: "____semctl13" ret: "int" args: "int" "int" "int" "..." */ 700 #define SYS_____semctl13 301 701 702 /* 301 is excluded ____semctl13 */ 703 /* syscall: "__msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */ 704 #define SYS___msgctl13 302 705 706 /* 302 is excluded __msgctl13 */ 707 /* syscall: "__shmctl13" ret: "int" args: "int" "int" "struct shmid_ds *" */ 708 #define SYS___shmctl13 303 709 710 /* 303 is excluded __shmctl13 */ 711 /* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */ 712 #define SYS_lchflags 304 713 714 /* syscall: "issetugid" ret: "int" args: */ 715 #define SYS_issetugid 305 716 717 /* syscall: "utrace" ret: "int" args: "const char *" "void *" "size_t" */ 718 #define SYS_utrace 306 719 720 /* syscall: "__sigaction_sigtramp" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" "void *" "int" */ 721 #define SYS___sigaction_sigtramp 340 722 723 /* syscall: "pmc_get_info" ret: "int" args: "int" "int" "void *" */ 724 #define SYS_pmc_get_info 341 725 726 /* syscall: "pmc_control" ret: "int" args: "int" "int" "void *" */ 727 #define SYS_pmc_control 342 728 729 /* syscall: "rasctl" ret: "int" args: "caddr_t" "size_t" "int" */ 730 #define SYS_rasctl 343 731 732 /* syscall: "kqueue" ret: "int" args: */ 733 #define SYS_kqueue 344 734 735 /* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" */ 736 #define SYS_kevent 345 737 738 #define SYS_MAXSYSCALL 346 739 #define SYS_NSYSENT 512 740