1 /* $OpenBSD: syscall.h,v 1.278 2024/05/18 05:21:02 guenther 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.264 2024/05/18 05:20:22 guenther Exp 8 */ 9 10 /* syscall: "exit" ret: "void" args: "int" */ 11 #define SYS_exit 1 12 13 /* syscall: "fork" ret: "int" args: */ 14 #define SYS_fork 2 15 16 /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */ 17 #define SYS_read 3 18 19 /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */ 20 #define SYS_write 4 21 22 /* syscall: "open" ret: "int" args: "const char *" "int" "..." "mode_t" */ 23 #define SYS_open 5 24 25 /* syscall: "close" ret: "int" args: "int" */ 26 #define SYS_close 6 27 28 /* syscall: "getentropy" ret: "int" args: "void *" "size_t" */ 29 #define SYS_getentropy 7 30 31 /* syscall: "__tfork" ret: "int" args: "const struct __tfork *" "size_t" */ 32 #define SYS___tfork 8 33 34 /* syscall: "link" ret: "int" args: "const char *" "const char *" */ 35 #define SYS_link 9 36 37 /* syscall: "unlink" ret: "int" args: "const char *" */ 38 #define SYS_unlink 10 39 40 /* syscall: "wait4" ret: "pid_t" args: "pid_t" "int *" "int" "struct rusage *" */ 41 #define SYS_wait4 11 42 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: "getdtablecount" ret: "int" args: */ 62 #define SYS_getdtablecount 18 63 64 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ 65 #define SYS_getrusage 19 66 67 /* syscall: "getpid" ret: "pid_t" args: */ 68 #define SYS_getpid 20 69 70 /* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */ 71 #define SYS_mount 21 72 73 /* syscall: "unmount" ret: "int" args: "const char *" "int" */ 74 #define SYS_unmount 22 75 76 /* syscall: "setuid" ret: "int" args: "uid_t" */ 77 #define SYS_setuid 23 78 79 /* syscall: "getuid" ret: "uid_t" args: */ 80 #define SYS_getuid 24 81 82 /* syscall: "geteuid" ret: "uid_t" args: */ 83 #define SYS_geteuid 25 84 85 /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */ 86 #define SYS_ptrace 26 87 88 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */ 89 #define SYS_recvmsg 27 90 91 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */ 92 #define SYS_sendmsg 28 93 94 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "socklen_t *" */ 95 #define SYS_recvfrom 29 96 97 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */ 98 #define SYS_accept 30 99 100 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */ 101 #define SYS_getpeername 31 102 103 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */ 104 #define SYS_getsockname 32 105 106 /* syscall: "access" ret: "int" args: "const char *" "int" */ 107 #define SYS_access 33 108 109 /* syscall: "chflags" ret: "int" args: "const char *" "u_int" */ 110 #define SYS_chflags 34 111 112 /* syscall: "fchflags" ret: "int" args: "int" "u_int" */ 113 #define SYS_fchflags 35 114 115 /* syscall: "sync" ret: "void" args: */ 116 #define SYS_sync 36 117 118 /* 37 is obsolete msyscall */ 119 /* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */ 120 #define SYS_stat 38 121 122 /* syscall: "getppid" ret: "pid_t" args: */ 123 #define SYS_getppid 39 124 125 /* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */ 126 #define SYS_lstat 40 127 128 /* syscall: "dup" ret: "int" args: "int" */ 129 #define SYS_dup 41 130 131 /* syscall: "fstatat" ret: "int" args: "int" "const char *" "struct stat *" "int" */ 132 #define SYS_fstatat 42 133 134 /* syscall: "getegid" ret: "gid_t" args: */ 135 #define SYS_getegid 43 136 137 /* syscall: "profil" ret: "int" args: "caddr_t" "size_t" "u_long" "u_int" */ 138 #define SYS_profil 44 139 140 /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "pid_t" */ 141 #define SYS_ktrace 45 142 143 /* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */ 144 #define SYS_sigaction 46 145 146 /* syscall: "getgid" ret: "gid_t" args: */ 147 #define SYS_getgid 47 148 149 /* syscall: "sigprocmask" ret: "int" args: "int" "sigset_t" */ 150 #define SYS_sigprocmask 48 151 152 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "off_t" */ 153 #define SYS_mmap 49 154 155 /* syscall: "setlogin" ret: "int" args: "const char *" */ 156 #define SYS_setlogin 50 157 158 /* syscall: "acct" ret: "int" args: "const char *" */ 159 #define SYS_acct 51 160 161 /* syscall: "sigpending" ret: "int" args: */ 162 #define SYS_sigpending 52 163 164 /* syscall: "fstat" ret: "int" args: "int" "struct stat *" */ 165 #define SYS_fstat 53 166 167 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." "void *" */ 168 #define SYS_ioctl 54 169 170 /* syscall: "reboot" ret: "int" args: "int" */ 171 #define SYS_reboot 55 172 173 /* syscall: "revoke" ret: "int" args: "const char *" */ 174 #define SYS_revoke 56 175 176 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 177 #define SYS_symlink 57 178 179 /* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "size_t" */ 180 #define SYS_readlink 58 181 182 /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */ 183 #define SYS_execve 59 184 185 /* syscall: "umask" ret: "mode_t" args: "mode_t" */ 186 #define SYS_umask 60 187 188 /* syscall: "chroot" ret: "int" args: "const char *" */ 189 #define SYS_chroot 61 190 191 /* syscall: "getfsstat" ret: "int" args: "struct statfs *" "size_t" "int" */ 192 #define SYS_getfsstat 62 193 194 /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */ 195 #define SYS_statfs 63 196 197 /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */ 198 #define SYS_fstatfs 64 199 200 /* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */ 201 #define SYS_fhstatfs 65 202 203 /* syscall: "vfork" ret: "int" args: */ 204 #define SYS_vfork 66 205 206 /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 207 #define SYS_gettimeofday 67 208 209 /* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */ 210 #define SYS_settimeofday 68 211 212 /* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */ 213 #define SYS_setitimer 69 214 215 /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */ 216 #define SYS_getitimer 70 217 218 /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 219 #define SYS_select 71 220 221 /* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "int" "struct kevent *" "int" "const struct timespec *" */ 222 #define SYS_kevent 72 223 224 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */ 225 #define SYS_munmap 73 226 227 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */ 228 #define SYS_mprotect 74 229 230 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 231 #define SYS_madvise 75 232 233 /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */ 234 #define SYS_utimes 76 235 236 /* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */ 237 #define SYS_futimes 77 238 239 /* syscall: "mquery" ret: "void *" args: "void *" "size_t" "int" "int" "int" "off_t" */ 240 #define SYS_mquery 78 241 242 /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */ 243 #define SYS_getgroups 79 244 245 /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */ 246 #define SYS_setgroups 80 247 248 /* syscall: "getpgrp" ret: "int" args: */ 249 #define SYS_getpgrp 81 250 251 /* syscall: "setpgid" ret: "int" args: "pid_t" "pid_t" */ 252 #define SYS_setpgid 82 253 254 /* syscall: "futex" ret: "int" args: "uint32_t *" "int" "int" "const struct timespec *" "uint32_t *" */ 255 #define SYS_futex 83 256 257 /* syscall: "utimensat" ret: "int" args: "int" "const char *" "const struct timespec *" "int" */ 258 #define SYS_utimensat 84 259 260 /* syscall: "futimens" ret: "int" args: "int" "const struct timespec *" */ 261 #define SYS_futimens 85 262 263 /* syscall: "kbind" ret: "int" args: "const struct __kbind *" "size_t" "int64_t" */ 264 #define SYS_kbind 86 265 266 /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */ 267 #define SYS_clock_gettime 87 268 269 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */ 270 #define SYS_clock_settime 88 271 272 /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */ 273 #define SYS_clock_getres 89 274 275 /* syscall: "dup2" ret: "int" args: "int" "int" */ 276 #define SYS_dup2 90 277 278 /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */ 279 #define SYS_nanosleep 91 280 281 /* syscall: "fcntl" ret: "int" args: "int" "int" "..." "void *" */ 282 #define SYS_fcntl 92 283 284 /* syscall: "accept4" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" "int" */ 285 #define SYS_accept4 93 286 287 /* syscall: "__thrsleep" ret: "int" args: "const volatile void *" "clockid_t" "const struct timespec *" "void *" "const int *" */ 288 #define SYS___thrsleep 94 289 290 /* syscall: "fsync" ret: "int" args: "int" */ 291 #define SYS_fsync 95 292 293 /* syscall: "setpriority" ret: "int" args: "int" "id_t" "int" */ 294 #define SYS_setpriority 96 295 296 /* syscall: "socket" ret: "int" args: "int" "int" "int" */ 297 #define SYS_socket 97 298 299 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */ 300 #define SYS_connect 98 301 302 /* syscall: "getdents" ret: "int" args: "int" "void *" "size_t" */ 303 #define SYS_getdents 99 304 305 /* syscall: "getpriority" ret: "int" args: "int" "id_t" */ 306 #define SYS_getpriority 100 307 308 /* syscall: "pipe2" ret: "int" args: "int *" "int" */ 309 #define SYS_pipe2 101 310 311 /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ 312 #define SYS_dup3 102 313 314 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */ 315 #define SYS_sigreturn 103 316 317 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */ 318 #define SYS_bind 104 319 320 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "socklen_t" */ 321 #define SYS_setsockopt 105 322 323 /* syscall: "listen" ret: "int" args: "int" "int" */ 324 #define SYS_listen 106 325 326 /* syscall: "chflagsat" ret: "int" args: "int" "const char *" "u_int" "int" */ 327 #define SYS_chflagsat 107 328 329 /* syscall: "pledge" ret: "int" args: "const char *" "const char *" */ 330 #define SYS_pledge 108 331 332 /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "const struct timespec *" "const sigset_t *" */ 333 #define SYS_ppoll 109 334 335 /* syscall: "pselect" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "const struct timespec *" "const sigset_t *" */ 336 #define SYS_pselect 110 337 338 /* syscall: "sigsuspend" ret: "int" args: "int" */ 339 #define SYS_sigsuspend 111 340 341 /* syscall: "sendsyslog" ret: "int" args: "const char *" "size_t" "int" */ 342 #define SYS_sendsyslog 112 343 344 /* syscall: "unveil" ret: "int" args: "const char *" "const char *" */ 345 #define SYS_unveil 114 346 347 /* syscall: "__realpath" ret: "int" args: "const char *" "char *" */ 348 #define SYS___realpath 115 349 350 /* syscall: "recvmmsg" ret: "int" args: "int" "struct mmsghdr *" "unsigned int" "int" "struct timespec *" */ 351 #define SYS_recvmmsg 116 352 353 /* syscall: "sendmmsg" ret: "int" args: "int" "struct mmsghdr *" "unsigned int" "int" */ 354 #define SYS_sendmmsg 117 355 356 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "socklen_t *" */ 357 #define SYS_getsockopt 118 358 359 /* syscall: "thrkill" ret: "int" args: "pid_t" "int" "void *" */ 360 #define SYS_thrkill 119 361 362 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 363 #define SYS_readv 120 364 365 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 366 #define SYS_writev 121 367 368 /* syscall: "kill" ret: "int" args: "int" "int" */ 369 #define SYS_kill 122 370 371 /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 372 #define SYS_fchown 123 373 374 /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */ 375 #define SYS_fchmod 124 376 377 /* 125 is obsolete orecvfrom */ 378 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 379 #define SYS_setreuid 126 380 381 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 382 #define SYS_setregid 127 383 384 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */ 385 #define SYS_rename 128 386 387 /* 129 is obsolete otruncate */ 388 /* 130 is obsolete oftruncate */ 389 /* syscall: "flock" ret: "int" args: "int" "int" */ 390 #define SYS_flock 131 391 392 /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */ 393 #define SYS_mkfifo 132 394 395 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "socklen_t" */ 396 #define SYS_sendto 133 397 398 /* syscall: "shutdown" ret: "int" args: "int" "int" */ 399 #define SYS_shutdown 134 400 401 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 402 #define SYS_socketpair 135 403 404 /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */ 405 #define SYS_mkdir 136 406 407 /* syscall: "rmdir" ret: "int" args: "const char *" */ 408 #define SYS_rmdir 137 409 410 /* 138 is obsolete t32_utimes */ 411 /* 139 is obsolete 4.2 sigreturn */ 412 /* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */ 413 #define SYS_adjtime 140 414 415 /* syscall: "getlogin_r" ret: "int" args: "char *" "size_t" */ 416 #define SYS_getlogin_r 141 417 418 /* syscall: "getthrname" ret: "int" args: "pid_t" "char *" "size_t" */ 419 #define SYS_getthrname 142 420 421 /* syscall: "setthrname" ret: "int" args: "pid_t" "const char *" */ 422 #define SYS_setthrname 143 423 424 /* 144 is obsolete ogetrlimit */ 425 /* 145 is obsolete osetrlimit */ 426 /* 146 is obsolete pinsyscall */ 427 /* syscall: "setsid" ret: "int" args: */ 428 #define SYS_setsid 147 429 430 /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "char *" */ 431 #define SYS_quotactl 148 432 433 /* 149 is obsolete oquota */ 434 /* syscall: "ypconnect" ret: "int" args: "int" */ 435 #define SYS_ypconnect 150 436 437 /* syscall: "nfssvc" ret: "int" args: "int" "void *" */ 438 #define SYS_nfssvc 155 439 440 /* 156 is obsolete ogetdirentries */ 441 /* 157 is obsolete statfs25 */ 442 /* syscall: "pinsyscalls" ret: "int" args: "void *" "size_t" "u_int *" "int" */ 443 #define SYS_pinsyscalls 158 444 445 /* syscall: "mimmutable" ret: "int" args: "void *" "size_t" */ 446 #define SYS_mimmutable 159 447 448 /* syscall: "waitid" ret: "int" args: "int" "id_t" "siginfo_t *" "int" */ 449 #define SYS_waitid 160 450 451 /* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */ 452 #define SYS_getfh 161 453 454 /* 162 is obsolete ogetdomainname */ 455 /* 163 is obsolete osetdomainname */ 456 /* syscall: "__tmpfd" ret: "int" args: "int" */ 457 #define SYS___tmpfd 164 458 459 /* syscall: "sysarch" ret: "int" args: "int" "void *" */ 460 #define SYS_sysarch 165 461 462 /* syscall: "lseek" ret: "off_t" args: "int" "off_t" "int" */ 463 #define SYS_lseek 166 464 465 /* syscall: "truncate" ret: "int" args: "const char *" "off_t" */ 466 #define SYS_truncate 167 467 468 /* syscall: "ftruncate" ret: "int" args: "int" "off_t" */ 469 #define SYS_ftruncate 168 470 471 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "off_t" */ 472 #define SYS_pread 169 473 474 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "off_t" */ 475 #define SYS_pwrite 170 476 477 /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "off_t" */ 478 #define SYS_preadv 171 479 480 /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "off_t" */ 481 #define SYS_pwritev 172 482 483 /* 173 is obsolete pad_pread */ 484 /* 174 is obsolete pad_pwrite */ 485 /* syscall: "setgid" ret: "int" args: "gid_t" */ 486 #define SYS_setgid 181 487 488 /* syscall: "setegid" ret: "int" args: "gid_t" */ 489 #define SYS_setegid 182 490 491 /* syscall: "seteuid" ret: "int" args: "uid_t" */ 492 #define SYS_seteuid 183 493 494 /* 184 is obsolete lfs_bmapv */ 495 /* 185 is obsolete lfs_markv */ 496 /* 186 is obsolete lfs_segclean */ 497 /* 187 is obsolete lfs_segwait */ 498 /* 188 is obsolete stat35 */ 499 /* 189 is obsolete fstat35 */ 500 /* syscall: "pathconfat" ret: "long" args: "int" "const char *" "int" "int" */ 501 #define SYS_pathconfat 190 502 503 /* syscall: "pathconf" ret: "long" args: "const char *" "int" */ 504 #define SYS_pathconf 191 505 506 /* syscall: "fpathconf" ret: "long" args: "int" "int" */ 507 #define SYS_fpathconf 192 508 509 /* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */ 510 #define SYS_swapctl 193 511 512 /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */ 513 #define SYS_getrlimit 194 514 515 /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */ 516 #define SYS_setrlimit 195 517 518 /* 196 is obsolete ogetdirentries48 */ 519 /* 197 is obsolete pad_mmap */ 520 /* 198 is obsolete __syscall */ 521 /* 199 is obsolete pad_lseek */ 522 /* 200 is obsolete pad_truncate */ 523 /* 201 is obsolete pad_ftruncate */ 524 /* syscall: "sysctl" ret: "int" args: "const int *" "u_int" "void *" "size_t *" "void *" "size_t" */ 525 #define SYS_sysctl 202 526 527 /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */ 528 #define SYS_mlock 203 529 530 /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */ 531 #define SYS_munlock 204 532 533 /* 206 is obsolete t32_futimes */ 534 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 535 #define SYS_getpgid 207 536 537 /* 208 is obsolete nnpfspioctl */ 538 /* syscall: "utrace" ret: "int" args: "const char *" "const void *" "size_t" */ 539 #define SYS_utrace 209 540 541 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 542 #define SYS_semget 221 543 544 /* 222 is obsolete semop35 */ 545 /* 223 is obsolete semconfig35 */ 546 /* syscall: "msgget" ret: "int" args: "key_t" "int" */ 547 #define SYS_msgget 225 548 549 /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */ 550 #define SYS_msgsnd 226 551 552 /* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */ 553 #define SYS_msgrcv 227 554 555 /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */ 556 #define SYS_shmat 228 557 558 /* syscall: "shmdt" ret: "int" args: "const void *" */ 559 #define SYS_shmdt 230 560 561 /* 231 is obsolete shmget35 */ 562 /* 232 is obsolete t32_clock_gettime */ 563 /* 233 is obsolete t32_clock_settime */ 564 /* 234 is obsolete t32_clock_getres */ 565 /* 240 is obsolete t32_nanosleep */ 566 /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */ 567 #define SYS_minherit 250 568 569 /* 251 is obsolete rfork */ 570 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 571 #define SYS_poll 252 572 573 /* syscall: "issetugid" ret: "int" args: */ 574 #define SYS_issetugid 253 575 576 /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 577 #define SYS_lchown 254 578 579 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 580 #define SYS_getsid 255 581 582 /* syscall: "msync" ret: "int" args: "void *" "size_t" "int" */ 583 #define SYS_msync 256 584 585 /* 257 is obsolete semctl35 */ 586 /* 258 is obsolete shmctl35 */ 587 /* 259 is obsolete msgctl35 */ 588 /* syscall: "pipe" ret: "int" args: "int *" */ 589 #define SYS_pipe 263 590 591 /* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */ 592 #define SYS_fhopen 264 593 594 /* 267 is obsolete pad_preadv */ 595 /* 268 is obsolete pad_pwritev */ 596 /* syscall: "kqueue" ret: "int" args: */ 597 #define SYS_kqueue 269 598 599 /* syscall: "kqueue1" ret: "int" args: "int" */ 600 #define SYS_kqueue1 270 601 602 /* syscall: "mlockall" ret: "int" args: "int" */ 603 #define SYS_mlockall 271 604 605 /* syscall: "munlockall" ret: "int" args: */ 606 #define SYS_munlockall 272 607 608 /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */ 609 #define SYS_getresuid 281 610 611 /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 612 #define SYS_setresuid 282 613 614 /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */ 615 #define SYS_getresgid 283 616 617 /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */ 618 #define SYS_setresgid 284 619 620 /* 285 is obsolete sys_omquery */ 621 /* 286 is obsolete pad_mquery */ 622 /* syscall: "closefrom" ret: "int" args: "int" */ 623 #define SYS_closefrom 287 624 625 /* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */ 626 #define SYS_sigaltstack 288 627 628 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */ 629 #define SYS_shmget 289 630 631 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ 632 #define SYS_semop 290 633 634 /* 291 is obsolete t32_stat */ 635 /* 292 is obsolete t32_fstat */ 636 /* 293 is obsolete t32_lstat */ 637 /* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */ 638 #define SYS_fhstat 294 639 640 /* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union semun *" */ 641 #define SYS___semctl 295 642 643 /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds *" */ 644 #define SYS_shmctl 296 645 646 /* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds *" */ 647 #define SYS_msgctl 297 648 649 /* syscall: "sched_yield" ret: "int" args: */ 650 #define SYS_sched_yield 298 651 652 /* syscall: "getthrid" ret: "pid_t" args: */ 653 #define SYS_getthrid 299 654 655 /* 300 is obsolete t32___thrsleep */ 656 /* syscall: "__thrwakeup" ret: "int" args: "const volatile void *" "int" */ 657 #define SYS___thrwakeup 301 658 659 /* syscall: "__threxit" ret: "void" args: "pid_t *" */ 660 #define SYS___threxit 302 661 662 /* syscall: "__thrsigdivert" ret: "int" args: "sigset_t" "siginfo_t *" "const struct timespec *" */ 663 #define SYS___thrsigdivert 303 664 665 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 666 #define SYS___getcwd 304 667 668 /* syscall: "adjfreq" ret: "int" args: "const int64_t *" "int64_t *" */ 669 #define SYS_adjfreq 305 670 671 /* 306 is obsolete getfsstat53 */ 672 /* 307 is obsolete statfs53 */ 673 /* 308 is obsolete fstatfs53 */ 674 /* 309 is obsolete fhstatfs53 */ 675 /* syscall: "setrtable" ret: "int" args: "int" */ 676 #define SYS_setrtable 310 677 678 /* syscall: "getrtable" ret: "int" args: */ 679 #define SYS_getrtable 311 680 681 /* 312 is obsolete t32_getdirentries */ 682 /* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" "int" */ 683 #define SYS_faccessat 313 684 685 /* syscall: "fchmodat" ret: "int" args: "int" "const char *" "mode_t" "int" */ 686 #define SYS_fchmodat 314 687 688 /* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */ 689 #define SYS_fchownat 315 690 691 /* 316 is obsolete t32_fstatat */ 692 /* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */ 693 #define SYS_linkat 317 694 695 /* syscall: "mkdirat" ret: "int" args: "int" "const char *" "mode_t" */ 696 #define SYS_mkdirat 318 697 698 /* syscall: "mkfifoat" ret: "int" args: "int" "const char *" "mode_t" */ 699 #define SYS_mkfifoat 319 700 701 /* syscall: "mknodat" ret: "int" args: "int" "const char *" "mode_t" "dev_t" */ 702 #define SYS_mknodat 320 703 704 /* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." "mode_t" */ 705 #define SYS_openat 321 706 707 /* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */ 708 #define SYS_readlinkat 322 709 710 /* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */ 711 #define SYS_renameat 323 712 713 /* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */ 714 #define SYS_symlinkat 324 715 716 /* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */ 717 #define SYS_unlinkat 325 718 719 /* 326 is obsolete t32_utimensat */ 720 /* 327 is obsolete t32_futimens */ 721 /* 328 is obsolete __tfork51 */ 722 /* syscall: "__set_tcb" ret: "void" args: "void *" */ 723 #define SYS___set_tcb 329 724 725 /* syscall: "__get_tcb" ret: "void *" args: */ 726 #define SYS___get_tcb 330 727 728 #define SYS_MAXSYSCALL 331 729