1 /* $NetBSD: syscall.h,v 1.239 2011/01/31 00:06:57 christos 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.243 2011/01/31 00:05:29 christos Exp 8 */ 9 10 #ifndef _SYS_SYSCALL_H_ 11 #define _SYS_SYSCALL_H_ 12 13 #define SYS_MAXSYSARGS 8 14 15 /* syscall: "syscall" ret: "int" args: "int" "..." */ 16 #define SYS_syscall 0 17 18 /* syscall: "exit" ret: "void" args: "int" */ 19 #define SYS_exit 1 20 21 /* syscall: "fork" ret: "int" args: */ 22 #define SYS_fork 2 23 24 /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */ 25 #define SYS_read 3 26 27 /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */ 28 #define SYS_write 4 29 30 /* syscall: "open" ret: "int" args: "const char *" "int" "..." */ 31 #define SYS_open 5 32 33 /* syscall: "close" ret: "int" args: "int" */ 34 #define SYS_close 6 35 36 /* syscall: "compat_50_wait4" ret: "int" args: "pid_t" "int *" "int" "struct rusage50 *" */ 37 #define SYS_compat_50_wait4 7 38 39 /* syscall: "compat_43_ocreat" ret: "int" args: "const char *" "mode_t" */ 40 #define SYS_compat_43_ocreat 8 41 42 /* syscall: "link" ret: "int" args: "const char *" "const char *" */ 43 #define SYS_link 9 44 45 /* syscall: "unlink" ret: "int" args: "const char *" */ 46 #define SYS_unlink 10 47 48 /* 11 is obsolete execv */ 49 /* syscall: "chdir" ret: "int" args: "const char *" */ 50 #define SYS_chdir 12 51 52 /* syscall: "fchdir" ret: "int" args: "int" */ 53 #define SYS_fchdir 13 54 55 /* syscall: "compat_50_mknod" ret: "int" args: "const char *" "mode_t" "uint32_t" */ 56 #define SYS_compat_50_mknod 14 57 58 /* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */ 59 #define SYS_chmod 15 60 61 /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 62 #define SYS_chown 16 63 64 /* syscall: "break" ret: "int" args: "char *" */ 65 #define SYS_break 17 66 67 /* syscall: "compat_20_getfsstat" ret: "int" args: "struct statfs12 *" "long" "int" */ 68 #define SYS_compat_20_getfsstat 18 69 70 /* syscall: "compat_43_olseek" ret: "long" args: "int" "long" "int" */ 71 #define SYS_compat_43_olseek 19 72 73 /* syscall: "getpid" ret: "pid_t" args: */ 74 #define SYS_getpid 20 75 76 /* syscall: "compat_40_mount" ret: "int" args: "const char *" "const char *" "int" "void *" */ 77 #define SYS_compat_40_mount 21 78 79 /* syscall: "unmount" ret: "int" args: "const char *" "int" */ 80 #define SYS_unmount 22 81 82 /* syscall: "setuid" ret: "int" args: "uid_t" */ 83 #define SYS_setuid 23 84 85 /* syscall: "getuid" ret: "uid_t" args: */ 86 #define SYS_getuid 24 87 88 /* syscall: "geteuid" ret: "uid_t" args: */ 89 #define SYS_geteuid 25 90 91 /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "void *" "int" */ 92 #define SYS_ptrace 26 93 94 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */ 95 #define SYS_recvmsg 27 96 97 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */ 98 #define SYS_sendmsg 28 99 100 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "unsigned int *" */ 101 #define SYS_recvfrom 29 102 103 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 104 #define SYS_accept 30 105 106 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 107 #define SYS_getpeername 31 108 109 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 110 #define SYS_getsockname 32 111 112 /* syscall: "access" ret: "int" args: "const char *" "int" */ 113 #define SYS_access 33 114 115 /* syscall: "chflags" ret: "int" args: "const char *" "u_long" */ 116 #define SYS_chflags 34 117 118 /* syscall: "fchflags" ret: "int" args: "int" "u_long" */ 119 #define SYS_fchflags 35 120 121 /* syscall: "sync" ret: "void" args: */ 122 #define SYS_sync 36 123 124 /* syscall: "kill" ret: "int" args: "pid_t" "int" */ 125 #define SYS_kill 37 126 127 /* syscall: "compat_43_stat43" ret: "int" args: "const char *" "struct stat43 *" */ 128 #define SYS_compat_43_stat43 38 129 130 /* syscall: "getppid" ret: "pid_t" args: */ 131 #define SYS_getppid 39 132 133 /* syscall: "compat_43_lstat43" ret: "int" args: "const char *" "struct stat43 *" */ 134 #define SYS_compat_43_lstat43 40 135 136 /* syscall: "dup" ret: "int" args: "int" */ 137 #define SYS_dup 41 138 139 /* syscall: "pipe" ret: "int" args: */ 140 #define SYS_pipe 42 141 142 /* syscall: "getegid" ret: "gid_t" args: */ 143 #define SYS_getegid 43 144 145 /* syscall: "profil" ret: "int" args: "char *" "size_t" "u_long" "u_int" */ 146 #define SYS_profil 44 147 148 /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "pid_t" */ 149 #define SYS_ktrace 45 150 151 /* syscall: "compat_13_sigaction13" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */ 152 #define SYS_compat_13_sigaction13 46 153 154 /* syscall: "getgid" ret: "gid_t" args: */ 155 #define SYS_getgid 47 156 157 /* syscall: "compat_13_sigprocmask13" ret: "int" args: "int" "int" */ 158 #define SYS_compat_13_sigprocmask13 48 159 160 /* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */ 161 #define SYS___getlogin 49 162 163 /* syscall: "__setlogin" ret: "int" args: "const char *" */ 164 #define SYS___setlogin 50 165 166 /* syscall: "acct" ret: "int" args: "const char *" */ 167 #define SYS_acct 51 168 169 /* syscall: "compat_13_sigpending13" ret: "int" args: */ 170 #define SYS_compat_13_sigpending13 52 171 172 /* syscall: "compat_13_sigaltstack13" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */ 173 #define SYS_compat_13_sigaltstack13 53 174 175 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */ 176 #define SYS_ioctl 54 177 178 /* syscall: "compat_12_oreboot" ret: "int" args: "int" */ 179 #define SYS_compat_12_oreboot 55 180 181 /* syscall: "revoke" ret: "int" args: "const char *" */ 182 #define SYS_revoke 56 183 184 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 185 #define SYS_symlink 57 186 187 /* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "size_t" */ 188 #define SYS_readlink 58 189 190 /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */ 191 #define SYS_execve 59 192 193 /* syscall: "umask" ret: "mode_t" args: "mode_t" */ 194 #define SYS_umask 60 195 196 /* syscall: "chroot" ret: "int" args: "const char *" */ 197 #define SYS_chroot 61 198 199 /* syscall: "compat_43_fstat43" ret: "int" args: "int" "struct stat43 *" */ 200 #define SYS_compat_43_fstat43 62 201 202 /* syscall: "compat_43_ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */ 203 #define SYS_compat_43_ogetkerninfo 63 204 205 /* syscall: "compat_43_ogetpagesize" ret: "int" args: */ 206 #define SYS_compat_43_ogetpagesize 64 207 208 /* syscall: "compat_12_msync" ret: "int" args: "void *" "size_t" */ 209 #define SYS_compat_12_msync 65 210 211 /* syscall: "vfork" ret: "int" args: */ 212 #define SYS_vfork 66 213 214 /* 67 is obsolete vread */ 215 /* 68 is obsolete vwrite */ 216 /* syscall: "sbrk" ret: "int" args: "intptr_t" */ 217 #define SYS_sbrk 69 218 219 /* syscall: "sstk" ret: "int" args: "int" */ 220 #define SYS_sstk 70 221 222 /* syscall: "compat_43_ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */ 223 #define SYS_compat_43_ommap 71 224 225 /* syscall: "vadvise" ret: "int" args: "int" */ 226 #define SYS_vadvise 72 227 228 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */ 229 #define SYS_munmap 73 230 231 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */ 232 #define SYS_mprotect 74 233 234 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 235 #define SYS_madvise 75 236 237 /* 76 is obsolete vhangup */ 238 /* 77 is obsolete vlimit */ 239 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ 240 #define SYS_mincore 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: "compat_50_setitimer" ret: "int" args: "int" "const struct itimerval50 *" "struct itimerval50 *" */ 255 #define SYS_compat_50_setitimer 83 256 257 /* syscall: "compat_43_owait" ret: "int" args: */ 258 #define SYS_compat_43_owait 84 259 260 /* syscall: "compat_12_oswapon" ret: "int" args: "const char *" */ 261 #define SYS_compat_12_oswapon 85 262 263 /* syscall: "compat_50_getitimer" ret: "int" args: "int" "struct itimerval50 *" */ 264 #define SYS_compat_50_getitimer 86 265 266 /* syscall: "compat_43_ogethostname" ret: "int" args: "char *" "u_int" */ 267 #define SYS_compat_43_ogethostname 87 268 269 /* syscall: "compat_43_osethostname" ret: "int" args: "char *" "u_int" */ 270 #define SYS_compat_43_osethostname 88 271 272 /* syscall: "compat_43_ogetdtablesize" ret: "int" args: */ 273 #define SYS_compat_43_ogetdtablesize 89 274 275 /* syscall: "dup2" ret: "int" args: "int" "int" */ 276 #define SYS_dup2 90 277 278 /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */ 279 #define SYS_fcntl 92 280 281 /* syscall: "compat_50_select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */ 282 #define SYS_compat_50_select 93 283 284 /* syscall: "fsync" ret: "int" args: "int" */ 285 #define SYS_fsync 95 286 287 /* syscall: "setpriority" ret: "int" args: "int" "id_t" "int" */ 288 #define SYS_setpriority 96 289 290 /* syscall: "compat_30_socket" ret: "int" args: "int" "int" "int" */ 291 #define SYS_compat_30_socket 97 292 293 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "unsigned int" */ 294 #define SYS_connect 98 295 296 /* syscall: "compat_43_oaccept" ret: "int" args: "int" "void *" "int *" */ 297 #define SYS_compat_43_oaccept 99 298 299 /* syscall: "getpriority" ret: "int" args: "int" "id_t" */ 300 #define SYS_getpriority 100 301 302 /* syscall: "compat_43_osend" ret: "int" args: "int" "void *" "int" "int" */ 303 #define SYS_compat_43_osend 101 304 305 /* syscall: "compat_43_orecv" ret: "int" args: "int" "void *" "int" "int" */ 306 #define SYS_compat_43_orecv 102 307 308 /* syscall: "compat_13_sigreturn13" ret: "int" args: "struct sigcontext13 *" */ 309 #define SYS_compat_13_sigreturn13 103 310 311 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "unsigned int" */ 312 #define SYS_bind 104 313 314 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "unsigned int" */ 315 #define SYS_setsockopt 105 316 317 /* syscall: "listen" ret: "int" args: "int" "int" */ 318 #define SYS_listen 106 319 320 /* 107 is obsolete vtimes */ 321 /* syscall: "compat_43_osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */ 322 #define SYS_compat_43_osigvec 108 323 324 /* syscall: "compat_43_osigblock" ret: "int" args: "int" */ 325 #define SYS_compat_43_osigblock 109 326 327 /* syscall: "compat_43_osigsetmask" ret: "int" args: "int" */ 328 #define SYS_compat_43_osigsetmask 110 329 330 /* syscall: "compat_13_sigsuspend13" ret: "int" args: "int" */ 331 #define SYS_compat_13_sigsuspend13 111 332 333 /* syscall: "compat_43_osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */ 334 #define SYS_compat_43_osigstack 112 335 336 /* syscall: "compat_43_orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */ 337 #define SYS_compat_43_orecvmsg 113 338 339 /* syscall: "compat_43_osendmsg" ret: "int" args: "int" "void *" "int" */ 340 #define SYS_compat_43_osendmsg 114 341 342 /* 115 is obsolete vtrace */ 343 /* syscall: "compat_50_gettimeofday" ret: "int" args: "struct timeval50 *" "void *" */ 344 #define SYS_compat_50_gettimeofday 116 345 346 /* syscall: "compat_50_getrusage" ret: "int" args: "int" "struct rusage50 *" */ 347 #define SYS_compat_50_getrusage 117 348 349 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "unsigned int *" */ 350 #define SYS_getsockopt 118 351 352 /* 119 is obsolete resuba */ 353 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 354 #define SYS_readv 120 355 356 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 357 #define SYS_writev 121 358 359 /* syscall: "compat_50_settimeofday" ret: "int" args: "const struct timeval50 *" "const void *" */ 360 #define SYS_compat_50_settimeofday 122 361 362 /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 363 #define SYS_fchown 123 364 365 /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */ 366 #define SYS_fchmod 124 367 368 /* syscall: "compat_43_orecvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */ 369 #define SYS_compat_43_orecvfrom 125 370 371 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 372 #define SYS_setreuid 126 373 374 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 375 #define SYS_setregid 127 376 377 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */ 378 #define SYS_rename 128 379 380 /* syscall: "compat_43_otruncate" ret: "int" args: "const char *" "long" */ 381 #define SYS_compat_43_otruncate 129 382 383 /* syscall: "compat_43_oftruncate" ret: "int" args: "int" "long" */ 384 #define SYS_compat_43_oftruncate 130 385 386 /* syscall: "flock" ret: "int" args: "int" "int" */ 387 #define SYS_flock 131 388 389 /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */ 390 #define SYS_mkfifo 132 391 392 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "unsigned int" */ 393 #define SYS_sendto 133 394 395 /* syscall: "shutdown" ret: "int" args: "int" "int" */ 396 #define SYS_shutdown 134 397 398 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 399 #define SYS_socketpair 135 400 401 /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */ 402 #define SYS_mkdir 136 403 404 /* syscall: "rmdir" ret: "int" args: "const char *" */ 405 #define SYS_rmdir 137 406 407 /* syscall: "compat_50_utimes" ret: "int" args: "const char *" "const struct timeval50 *" */ 408 #define SYS_compat_50_utimes 138 409 410 /* 139 is obsolete 4.2 sigreturn */ 411 /* syscall: "compat_50_adjtime" ret: "int" args: "const struct timeval50 *" "struct timeval50 *" */ 412 #define SYS_compat_50_adjtime 140 413 414 /* syscall: "compat_43_ogetpeername" ret: "int" args: "int" "void *" "int *" */ 415 #define SYS_compat_43_ogetpeername 141 416 417 /* syscall: "compat_43_ogethostid" ret: "int32_t" args: */ 418 #define SYS_compat_43_ogethostid 142 419 420 /* syscall: "compat_43_osethostid" ret: "int" args: "int32_t" */ 421 #define SYS_compat_43_osethostid 143 422 423 /* syscall: "compat_43_ogetrlimit" ret: "int" args: "int" "struct orlimit *" */ 424 #define SYS_compat_43_ogetrlimit 144 425 426 /* syscall: "compat_43_osetrlimit" ret: "int" args: "int" "const struct orlimit *" */ 427 #define SYS_compat_43_osetrlimit 145 428 429 /* syscall: "compat_43_okillpg" ret: "int" args: "int" "int" */ 430 #define SYS_compat_43_okillpg 146 431 432 /* syscall: "setsid" ret: "int" args: */ 433 #define SYS_setsid 147 434 435 /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "void *" */ 436 #define SYS_quotactl 148 437 438 /* syscall: "compat_43_oquota" ret: "int" args: */ 439 #define SYS_compat_43_oquota 149 440 441 /* syscall: "compat_43_ogetsockname" ret: "int" args: "int" "void *" "int *" */ 442 #define SYS_compat_43_ogetsockname 150 443 444 /* syscall: "nfssvc" ret: "int" args: "int" "void *" */ 445 #define SYS_nfssvc 155 446 447 /* syscall: "compat_43_ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 448 #define SYS_compat_43_ogetdirentries 156 449 450 /* syscall: "compat_20_statfs" ret: "int" args: "const char *" "struct statfs12 *" */ 451 #define SYS_compat_20_statfs 157 452 453 /* syscall: "compat_20_fstatfs" ret: "int" args: "int" "struct statfs12 *" */ 454 #define SYS_compat_20_fstatfs 158 455 456 /* syscall: "compat_30_getfh" ret: "int" args: "const char *" "struct compat_30_fhandle *" */ 457 #define SYS_compat_30_getfh 161 458 459 /* syscall: "compat_09_ogetdomainname" ret: "int" args: "char *" "int" */ 460 #define SYS_compat_09_ogetdomainname 162 461 462 /* syscall: "compat_09_osetdomainname" ret: "int" args: "char *" "int" */ 463 #define SYS_compat_09_osetdomainname 163 464 465 /* syscall: "compat_09_ouname" ret: "int" args: "struct outsname *" */ 466 #define SYS_compat_09_ouname 164 467 468 /* syscall: "sysarch" ret: "int" args: "int" "void *" */ 469 #define SYS_sysarch 165 470 471 #if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64) 472 /* syscall: "compat_10_osemsys" ret: "int" args: "int" "int" "int" "int" "int" */ 473 #define SYS_compat_10_osemsys 169 474 475 #else 476 /* 169 is excluded 1.0 semsys */ 477 #endif 478 #if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64) 479 /* syscall: "compat_10_omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */ 480 #define SYS_compat_10_omsgsys 170 481 482 #else 483 /* 170 is excluded 1.0 msgsys */ 484 #endif 485 #if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64) 486 /* syscall: "compat_10_oshmsys" ret: "int" args: "int" "int" "int" "int" */ 487 #define SYS_compat_10_oshmsys 171 488 489 #else 490 /* 171 is excluded 1.0 shmsys */ 491 #endif 492 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */ 493 #define SYS_pread 173 494 495 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */ 496 #define SYS_pwrite 174 497 498 /* syscall: "compat_30_ntp_gettime" ret: "int" args: "struct ntptimeval30 *" */ 499 #define SYS_compat_30_ntp_gettime 175 500 501 #if defined(NTP) || !defined(_KERNEL_OPT) 502 /* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */ 503 #define SYS_ntp_adjtime 176 504 505 #else 506 /* 176 is excluded ntp_adjtime */ 507 #endif 508 /* syscall: "setgid" ret: "int" args: "gid_t" */ 509 #define SYS_setgid 181 510 511 /* syscall: "setegid" ret: "int" args: "gid_t" */ 512 #define SYS_setegid 182 513 514 /* syscall: "seteuid" ret: "int" args: "uid_t" */ 515 #define SYS_seteuid 183 516 517 /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 518 #define SYS_lfs_bmapv 184 519 520 /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 521 #define SYS_lfs_markv 185 522 523 /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */ 524 #define SYS_lfs_segclean 186 525 526 /* syscall: "compat_50_lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval50 *" */ 527 #define SYS_compat_50_lfs_segwait 187 528 529 /* syscall: "compat_12_stat12" ret: "int" args: "const char *" "struct stat12 *" */ 530 #define SYS_compat_12_stat12 188 531 532 /* syscall: "compat_12_fstat12" ret: "int" args: "int" "struct stat12 *" */ 533 #define SYS_compat_12_fstat12 189 534 535 /* syscall: "compat_12_lstat12" ret: "int" args: "const char *" "struct stat12 *" */ 536 #define SYS_compat_12_lstat12 190 537 538 /* syscall: "pathconf" ret: "long" args: "const char *" "int" */ 539 #define SYS_pathconf 191 540 541 /* syscall: "fpathconf" ret: "long" args: "int" "int" */ 542 #define SYS_fpathconf 192 543 544 /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */ 545 #define SYS_getrlimit 194 546 547 /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */ 548 #define SYS_setrlimit 195 549 550 /* syscall: "compat_12_getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 551 #define SYS_compat_12_getdirentries 196 552 553 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */ 554 #define SYS_mmap 197 555 556 /* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */ 557 #define SYS___syscall 198 558 559 /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */ 560 #define SYS_lseek 199 561 562 /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */ 563 #define SYS_truncate 200 564 565 /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */ 566 #define SYS_ftruncate 201 567 568 /* syscall: "__sysctl" ret: "int" args: "const int *" "u_int" "void *" "size_t *" "const void *" "size_t" */ 569 #define SYS___sysctl 202 570 571 /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */ 572 #define SYS_mlock 203 573 574 /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */ 575 #define SYS_munlock 204 576 577 /* syscall: "undelete" ret: "int" args: "const char *" */ 578 #define SYS_undelete 205 579 580 /* syscall: "compat_50_futimes" ret: "int" args: "int" "const struct timeval50 *" */ 581 #define SYS_compat_50_futimes 206 582 583 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 584 #define SYS_getpgid 207 585 586 /* syscall: "reboot" ret: "int" args: "int" "char *" */ 587 #define SYS_reboot 208 588 589 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 590 #define SYS_poll 209 591 592 #if defined(SYSVSEM) || !defined(_KERNEL_OPT) 593 /* syscall: "compat_14___semctl" ret: "int" args: "int" "int" "int" "union __semun *" */ 594 #define SYS_compat_14___semctl 220 595 596 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 597 #define SYS_semget 221 598 599 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ 600 #define SYS_semop 222 601 602 /* syscall: "semconfig" ret: "int" args: "int" */ 603 #define SYS_semconfig 223 604 605 #else 606 /* 220 is excluded compat_14_semctl */ 607 /* 221 is excluded semget */ 608 /* 222 is excluded semop */ 609 /* 223 is excluded semconfig */ 610 #endif 611 #if defined(SYSVMSG) || !defined(_KERNEL_OPT) 612 /* syscall: "compat_14_msgctl" ret: "int" args: "int" "int" "struct msqid_ds14 *" */ 613 #define SYS_compat_14_msgctl 224 614 615 /* syscall: "msgget" ret: "int" args: "key_t" "int" */ 616 #define SYS_msgget 225 617 618 /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */ 619 #define SYS_msgsnd 226 620 621 /* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */ 622 #define SYS_msgrcv 227 623 624 #else 625 /* 224 is excluded compat_14_msgctl */ 626 /* 225 is excluded msgget */ 627 /* 226 is excluded msgsnd */ 628 /* 227 is excluded msgrcv */ 629 #endif 630 #if defined(SYSVSHM) || !defined(_KERNEL_OPT) 631 /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */ 632 #define SYS_shmat 228 633 634 /* syscall: "compat_14_shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */ 635 #define SYS_compat_14_shmctl 229 636 637 /* syscall: "shmdt" ret: "int" args: "const void *" */ 638 #define SYS_shmdt 230 639 640 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */ 641 #define SYS_shmget 231 642 643 #else 644 /* 228 is excluded shmat */ 645 /* 229 is excluded compat_14_shmctl */ 646 /* 230 is excluded shmdt */ 647 /* 231 is excluded shmget */ 648 #endif 649 /* syscall: "compat_50_clock_gettime" ret: "int" args: "clockid_t" "struct timespec50 *" */ 650 #define SYS_compat_50_clock_gettime 232 651 652 /* syscall: "compat_50_clock_settime" ret: "int" args: "clockid_t" "const struct timespec50 *" */ 653 #define SYS_compat_50_clock_settime 233 654 655 /* syscall: "compat_50_clock_getres" ret: "int" args: "clockid_t" "struct timespec50 *" */ 656 #define SYS_compat_50_clock_getres 234 657 658 /* syscall: "timer_create" ret: "int" args: "clockid_t" "struct sigevent *" "timer_t *" */ 659 #define SYS_timer_create 235 660 661 /* syscall: "timer_delete" ret: "int" args: "timer_t" */ 662 #define SYS_timer_delete 236 663 664 /* syscall: "compat_50_timer_settime" ret: "int" args: "timer_t" "int" "const struct itimerspec50 *" "struct itimerspec50 *" */ 665 #define SYS_compat_50_timer_settime 237 666 667 /* syscall: "compat_50_timer_gettime" ret: "int" args: "timer_t" "struct itimerspec50 *" */ 668 #define SYS_compat_50_timer_gettime 238 669 670 /* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */ 671 #define SYS_timer_getoverrun 239 672 673 /* syscall: "compat_50_nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */ 674 #define SYS_compat_50_nanosleep 240 675 676 /* syscall: "fdatasync" ret: "int" args: "int" */ 677 #define SYS_fdatasync 241 678 679 /* syscall: "mlockall" ret: "int" args: "int" */ 680 #define SYS_mlockall 242 681 682 /* syscall: "munlockall" ret: "int" args: */ 683 #define SYS_munlockall 243 684 685 /* syscall: "compat_50___sigtimedwait" ret: "int" args: "const sigset_t *" "siginfo_t *" "struct timespec50 *" */ 686 #define SYS_compat_50___sigtimedwait 244 687 688 /* syscall: "sigqueueinfo" ret: "int" args: "pid_t" "const siginfo_t *" */ 689 #define SYS_sigqueueinfo 245 690 691 /* syscall: "modctl" ret: "int" args: "int" "void *" */ 692 #define SYS_modctl 246 693 694 /* syscall: "_ksem_init" ret: "int" args: "unsigned int" "intptr_t *" */ 695 #define SYS__ksem_init 247 696 697 /* syscall: "_ksem_open" ret: "int" args: "const char *" "int" "mode_t" "unsigned int" "intptr_t *" */ 698 #define SYS__ksem_open 248 699 700 /* syscall: "_ksem_unlink" ret: "int" args: "const char *" */ 701 #define SYS__ksem_unlink 249 702 703 /* syscall: "_ksem_close" ret: "int" args: "intptr_t" */ 704 #define SYS__ksem_close 250 705 706 /* syscall: "_ksem_post" ret: "int" args: "intptr_t" */ 707 #define SYS__ksem_post 251 708 709 /* syscall: "_ksem_wait" ret: "int" args: "intptr_t" */ 710 #define SYS__ksem_wait 252 711 712 /* syscall: "_ksem_trywait" ret: "int" args: "intptr_t" */ 713 #define SYS__ksem_trywait 253 714 715 /* syscall: "_ksem_getvalue" ret: "int" args: "intptr_t" "unsigned int *" */ 716 #define SYS__ksem_getvalue 254 717 718 /* syscall: "_ksem_destroy" ret: "int" args: "intptr_t" */ 719 #define SYS__ksem_destroy 255 720 721 /* syscall: "mq_open" ret: "mqd_t" args: "const char *" "int" "mode_t" "struct mq_attr *" */ 722 #define SYS_mq_open 257 723 724 /* syscall: "mq_close" ret: "int" args: "mqd_t" */ 725 #define SYS_mq_close 258 726 727 /* syscall: "mq_unlink" ret: "int" args: "const char *" */ 728 #define SYS_mq_unlink 259 729 730 /* syscall: "mq_getattr" ret: "int" args: "mqd_t" "struct mq_attr *" */ 731 #define SYS_mq_getattr 260 732 733 /* syscall: "mq_setattr" ret: "int" args: "mqd_t" "const struct mq_attr *" "struct mq_attr *" */ 734 #define SYS_mq_setattr 261 735 736 /* syscall: "mq_notify" ret: "int" args: "mqd_t" "const struct sigevent *" */ 737 #define SYS_mq_notify 262 738 739 /* syscall: "mq_send" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" */ 740 #define SYS_mq_send 263 741 742 /* syscall: "mq_receive" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" */ 743 #define SYS_mq_receive 264 744 745 /* syscall: "compat_50_mq_timedsend" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" "const struct timespec50 *" */ 746 #define SYS_compat_50_mq_timedsend 265 747 748 /* syscall: "compat_50_mq_timedreceive" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" "const struct timespec50 *" */ 749 #define SYS_compat_50_mq_timedreceive 266 750 751 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */ 752 #define SYS___posix_rename 270 753 754 /* syscall: "swapctl" ret: "int" args: "int" "void *" "int" */ 755 #define SYS_swapctl 271 756 757 /* syscall: "compat_30_getdents" ret: "int" args: "int" "char *" "size_t" */ 758 #define SYS_compat_30_getdents 272 759 760 /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */ 761 #define SYS_minherit 273 762 763 /* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */ 764 #define SYS_lchmod 274 765 766 /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 767 #define SYS_lchown 275 768 769 /* syscall: "compat_50_lutimes" ret: "int" args: "const char *" "const struct timeval50 *" */ 770 #define SYS_compat_50_lutimes 276 771 772 /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */ 773 #define SYS___msync13 277 774 775 /* syscall: "compat_30___stat13" ret: "int" args: "const char *" "struct stat13 *" */ 776 #define SYS_compat_30___stat13 278 777 778 /* syscall: "compat_30___fstat13" ret: "int" args: "int" "struct stat13 *" */ 779 #define SYS_compat_30___fstat13 279 780 781 /* syscall: "compat_30___lstat13" ret: "int" args: "const char *" "struct stat13 *" */ 782 #define SYS_compat_30___lstat13 280 783 784 /* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */ 785 #define SYS___sigaltstack14 281 786 787 /* syscall: "__vfork14" ret: "int" args: */ 788 #define SYS___vfork14 282 789 790 /* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 791 #define SYS___posix_chown 283 792 793 /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 794 #define SYS___posix_fchown 284 795 796 /* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 797 #define SYS___posix_lchown 285 798 799 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 800 #define SYS_getsid 286 801 802 /* syscall: "__clone" ret: "pid_t" args: "int" "void *" */ 803 #define SYS___clone 287 804 805 /* syscall: "fktrace" ret: "int" args: "int" "int" "int" "pid_t" */ 806 #define SYS_fktrace 288 807 808 /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 809 #define SYS_preadv 289 810 811 /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 812 #define SYS_pwritev 290 813 814 /* syscall: "compat_16___sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */ 815 #define SYS_compat_16___sigaction14 291 816 817 /* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */ 818 #define SYS___sigpending14 292 819 820 /* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */ 821 #define SYS___sigprocmask14 293 822 823 /* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */ 824 #define SYS___sigsuspend14 294 825 826 /* syscall: "compat_16___sigreturn14" ret: "int" args: "struct sigcontext *" */ 827 #define SYS_compat_16___sigreturn14 295 828 829 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 830 #define SYS___getcwd 296 831 832 /* syscall: "fchroot" ret: "int" args: "int" */ 833 #define SYS_fchroot 297 834 835 /* syscall: "compat_30_fhopen" ret: "int" args: "const struct compat_30_fhandle *" "int" */ 836 #define SYS_compat_30_fhopen 298 837 838 /* syscall: "compat_30_fhstat" ret: "int" args: "const struct compat_30_fhandle *" "struct stat13 *" */ 839 #define SYS_compat_30_fhstat 299 840 841 /* syscall: "compat_20_fhstatfs" ret: "int" args: "const struct compat_30_fhandle *" "struct statfs12 *" */ 842 #define SYS_compat_20_fhstatfs 300 843 844 #if defined(SYSVSEM) || !defined(_KERNEL_OPT) 845 /* syscall: "compat_50_____semctl13" ret: "int" args: "int" "int" "int" "..." */ 846 #define SYS_compat_50_____semctl13 301 847 848 #else 849 /* 301 is excluded ____semctl13 */ 850 #endif 851 #if defined(SYSVMSG) || !defined(_KERNEL_OPT) 852 /* syscall: "compat_50___msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */ 853 #define SYS_compat_50___msgctl13 302 854 855 #else 856 /* 302 is excluded __msgctl13 */ 857 #endif 858 #if defined(SYSVSHM) || !defined(_KERNEL_OPT) 859 /* syscall: "compat_50___shmctl13" ret: "int" args: "int" "int" "struct shmid_ds13 *" */ 860 #define SYS_compat_50___shmctl13 303 861 862 #else 863 /* 303 is excluded __shmctl13 */ 864 #endif 865 /* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */ 866 #define SYS_lchflags 304 867 868 /* syscall: "issetugid" ret: "int" args: */ 869 #define SYS_issetugid 305 870 871 /* syscall: "utrace" ret: "int" args: "const char *" "void *" "size_t" */ 872 #define SYS_utrace 306 873 874 /* syscall: "getcontext" ret: "int" args: "struct __ucontext *" */ 875 #define SYS_getcontext 307 876 877 /* syscall: "setcontext" ret: "int" args: "const struct __ucontext *" */ 878 #define SYS_setcontext 308 879 880 /* syscall: "_lwp_create" ret: "int" args: "const struct __ucontext *" "u_long" "lwpid_t *" */ 881 #define SYS__lwp_create 309 882 883 /* syscall: "_lwp_exit" ret: "int" args: */ 884 #define SYS__lwp_exit 310 885 886 /* syscall: "_lwp_self" ret: "lwpid_t" args: */ 887 #define SYS__lwp_self 311 888 889 /* syscall: "_lwp_wait" ret: "int" args: "lwpid_t" "lwpid_t *" */ 890 #define SYS__lwp_wait 312 891 892 /* syscall: "_lwp_suspend" ret: "int" args: "lwpid_t" */ 893 #define SYS__lwp_suspend 313 894 895 /* syscall: "_lwp_continue" ret: "int" args: "lwpid_t" */ 896 #define SYS__lwp_continue 314 897 898 /* syscall: "_lwp_wakeup" ret: "int" args: "lwpid_t" */ 899 #define SYS__lwp_wakeup 315 900 901 /* syscall: "_lwp_getprivate" ret: "void *" args: */ 902 #define SYS__lwp_getprivate 316 903 904 /* syscall: "_lwp_setprivate" ret: "void" args: "void *" */ 905 #define SYS__lwp_setprivate 317 906 907 /* syscall: "_lwp_kill" ret: "int" args: "lwpid_t" "int" */ 908 #define SYS__lwp_kill 318 909 910 /* syscall: "_lwp_detach" ret: "int" args: "lwpid_t" */ 911 #define SYS__lwp_detach 319 912 913 /* syscall: "compat_50__lwp_park" ret: "int" args: "const struct timespec50 *" "lwpid_t" "const void *" "const void *" */ 914 #define SYS_compat_50__lwp_park 320 915 916 /* syscall: "_lwp_unpark" ret: "int" args: "lwpid_t" "const void *" */ 917 #define SYS__lwp_unpark 321 918 919 /* syscall: "_lwp_unpark_all" ret: "ssize_t" args: "const lwpid_t *" "size_t" "const void *" */ 920 #define SYS__lwp_unpark_all 322 921 922 /* syscall: "_lwp_setname" ret: "int" args: "lwpid_t" "const char *" */ 923 #define SYS__lwp_setname 323 924 925 /* syscall: "_lwp_getname" ret: "int" args: "lwpid_t" "char *" "size_t" */ 926 #define SYS__lwp_getname 324 927 928 /* syscall: "_lwp_ctl" ret: "int" args: "int" "struct lwpctl **" */ 929 #define SYS__lwp_ctl 325 930 931 /* syscall: "sa_register" ret: "int" args: "sa_upcall_t" "sa_upcall_t *" "int" "ssize_t" */ 932 #define SYS_sa_register 330 933 934 /* syscall: "sa_stacks" ret: "int" args: "int" "stack_t *" */ 935 #define SYS_sa_stacks 331 936 937 /* syscall: "sa_enable" ret: "int" args: */ 938 #define SYS_sa_enable 332 939 940 /* syscall: "sa_setconcurrency" ret: "int" args: "int" */ 941 #define SYS_sa_setconcurrency 333 942 943 /* syscall: "sa_yield" ret: "int" args: */ 944 #define SYS_sa_yield 334 945 946 /* syscall: "sa_preempt" ret: "int" args: "int" */ 947 #define SYS_sa_preempt 335 948 949 /* 336 is obsolete sys_sa_unblockyield */ 950 /* syscall: "__sigaction_sigtramp" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" "const void *" "int" */ 951 #define SYS___sigaction_sigtramp 340 952 953 /* syscall: "pmc_get_info" ret: "int" args: "int" "int" "void *" */ 954 #define SYS_pmc_get_info 341 955 956 /* syscall: "pmc_control" ret: "int" args: "int" "int" "void *" */ 957 #define SYS_pmc_control 342 958 959 /* syscall: "rasctl" ret: "int" args: "void *" "size_t" "int" */ 960 #define SYS_rasctl 343 961 962 /* syscall: "kqueue" ret: "int" args: */ 963 #define SYS_kqueue 344 964 965 /* syscall: "compat_50_kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec50 *" */ 966 #define SYS_compat_50_kevent 345 967 968 /* syscall: "_sched_setparam" ret: "int" args: "pid_t" "lwpid_t" "int" "const struct sched_param *" */ 969 #define SYS__sched_setparam 346 970 971 /* syscall: "_sched_getparam" ret: "int" args: "pid_t" "lwpid_t" "int *" "struct sched_param *" */ 972 #define SYS__sched_getparam 347 973 974 /* syscall: "_sched_setaffinity" ret: "int" args: "pid_t" "lwpid_t" "size_t" "const cpuset_t *" */ 975 #define SYS__sched_setaffinity 348 976 977 /* syscall: "_sched_getaffinity" ret: "int" args: "pid_t" "lwpid_t" "size_t" "cpuset_t *" */ 978 #define SYS__sched_getaffinity 349 979 980 /* syscall: "sched_yield" ret: "int" args: */ 981 #define SYS_sched_yield 350 982 983 /* syscall: "fsync_range" ret: "int" args: "int" "int" "off_t" "off_t" */ 984 #define SYS_fsync_range 354 985 986 /* syscall: "uuidgen" ret: "int" args: "struct uuid *" "int" */ 987 #define SYS_uuidgen 355 988 989 /* syscall: "getvfsstat" ret: "int" args: "struct statvfs *" "size_t" "int" */ 990 #define SYS_getvfsstat 356 991 992 /* syscall: "statvfs1" ret: "int" args: "const char *" "struct statvfs *" "int" */ 993 #define SYS_statvfs1 357 994 995 /* syscall: "fstatvfs1" ret: "int" args: "int" "struct statvfs *" "int" */ 996 #define SYS_fstatvfs1 358 997 998 /* syscall: "compat_30_fhstatvfs1" ret: "int" args: "const struct compat_30_fhandle *" "struct statvfs *" "int" */ 999 #define SYS_compat_30_fhstatvfs1 359 1000 1001 /* syscall: "extattrctl" ret: "int" args: "const char *" "int" "const char *" "int" "const char *" */ 1002 #define SYS_extattrctl 360 1003 1004 /* syscall: "extattr_set_file" ret: "int" args: "const char *" "int" "const char *" "const void *" "size_t" */ 1005 #define SYS_extattr_set_file 361 1006 1007 /* syscall: "extattr_get_file" ret: "ssize_t" args: "const char *" "int" "const char *" "void *" "size_t" */ 1008 #define SYS_extattr_get_file 362 1009 1010 /* syscall: "extattr_delete_file" ret: "int" args: "const char *" "int" "const char *" */ 1011 #define SYS_extattr_delete_file 363 1012 1013 /* syscall: "extattr_set_fd" ret: "int" args: "int" "int" "const char *" "const void *" "size_t" */ 1014 #define SYS_extattr_set_fd 364 1015 1016 /* syscall: "extattr_get_fd" ret: "ssize_t" args: "int" "int" "const char *" "void *" "size_t" */ 1017 #define SYS_extattr_get_fd 365 1018 1019 /* syscall: "extattr_delete_fd" ret: "int" args: "int" "int" "const char *" */ 1020 #define SYS_extattr_delete_fd 366 1021 1022 /* syscall: "extattr_set_link" ret: "int" args: "const char *" "int" "const char *" "const void *" "size_t" */ 1023 #define SYS_extattr_set_link 367 1024 1025 /* syscall: "extattr_get_link" ret: "ssize_t" args: "const char *" "int" "const char *" "void *" "size_t" */ 1026 #define SYS_extattr_get_link 368 1027 1028 /* syscall: "extattr_delete_link" ret: "int" args: "const char *" "int" "const char *" */ 1029 #define SYS_extattr_delete_link 369 1030 1031 /* syscall: "extattr_list_fd" ret: "ssize_t" args: "int" "int" "void *" "size_t" */ 1032 #define SYS_extattr_list_fd 370 1033 1034 /* syscall: "extattr_list_file" ret: "ssize_t" args: "const char *" "int" "void *" "size_t" */ 1035 #define SYS_extattr_list_file 371 1036 1037 /* syscall: "extattr_list_link" ret: "ssize_t" args: "const char *" "int" "void *" "size_t" */ 1038 #define SYS_extattr_list_link 372 1039 1040 /* syscall: "compat_50_pselect" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "const struct timespec50 *" "const sigset_t *" */ 1041 #define SYS_compat_50_pselect 373 1042 1043 /* syscall: "compat_50_pollts" ret: "int" args: "struct pollfd *" "u_int" "const struct timespec50 *" "const sigset_t *" */ 1044 #define SYS_compat_50_pollts 374 1045 1046 /* syscall: "setxattr" ret: "int" args: "const char *" "const char *" "void *" "size_t" "int" */ 1047 #define SYS_setxattr 375 1048 1049 /* syscall: "lsetxattr" ret: "int" args: "const char *" "const char *" "void *" "size_t" "int" */ 1050 #define SYS_lsetxattr 376 1051 1052 /* syscall: "fsetxattr" ret: "int" args: "int" "const char *" "void *" "size_t" "int" */ 1053 #define SYS_fsetxattr 377 1054 1055 /* syscall: "getxattr" ret: "int" args: "const char *" "const char *" "void *" "size_t" */ 1056 #define SYS_getxattr 378 1057 1058 /* syscall: "lgetxattr" ret: "int" args: "const char *" "const char *" "void *" "size_t" */ 1059 #define SYS_lgetxattr 379 1060 1061 /* syscall: "fgetxattr" ret: "int" args: "int" "const char *" "void *" "size_t" */ 1062 #define SYS_fgetxattr 380 1063 1064 /* syscall: "listxattr" ret: "int" args: "const char *" "char *" "size_t" */ 1065 #define SYS_listxattr 381 1066 1067 /* syscall: "llistxattr" ret: "int" args: "const char *" "char *" "size_t" */ 1068 #define SYS_llistxattr 382 1069 1070 /* syscall: "flistxattr" ret: "int" args: "int" "char *" "size_t" */ 1071 #define SYS_flistxattr 383 1072 1073 /* syscall: "removexattr" ret: "int" args: "const char *" "const char *" */ 1074 #define SYS_removexattr 384 1075 1076 /* syscall: "lremovexattr" ret: "int" args: "const char *" "const char *" */ 1077 #define SYS_lremovexattr 385 1078 1079 /* syscall: "fremovexattr" ret: "int" args: "int" "const char *" */ 1080 #define SYS_fremovexattr 386 1081 1082 /* syscall: "compat_50___stat30" ret: "int" args: "const char *" "struct stat30 *" */ 1083 #define SYS_compat_50___stat30 387 1084 1085 /* syscall: "compat_50___fstat30" ret: "int" args: "int" "struct stat30 *" */ 1086 #define SYS_compat_50___fstat30 388 1087 1088 /* syscall: "compat_50___lstat30" ret: "int" args: "const char *" "struct stat30 *" */ 1089 #define SYS_compat_50___lstat30 389 1090 1091 /* syscall: "__getdents30" ret: "int" args: "int" "char *" "size_t" */ 1092 #define SYS___getdents30 390 1093 1094 /* 391 is ignored old posix_fadvise */ 1095 /* syscall: "compat_30___fhstat30" ret: "int" args: "const struct compat_30_fhandle *" "struct stat30 *" */ 1096 #define SYS_compat_30___fhstat30 392 1097 1098 /* syscall: "compat_50___ntp_gettime30" ret: "int" args: "struct ntptimeval50 *" */ 1099 #define SYS_compat_50___ntp_gettime30 393 1100 1101 /* syscall: "__socket30" ret: "int" args: "int" "int" "int" */ 1102 #define SYS___socket30 394 1103 1104 /* syscall: "__getfh30" ret: "int" args: "const char *" "void *" "size_t *" */ 1105 #define SYS___getfh30 395 1106 1107 /* syscall: "__fhopen40" ret: "int" args: "const void *" "size_t" "int" */ 1108 #define SYS___fhopen40 396 1109 1110 /* syscall: "__fhstatvfs140" ret: "int" args: "const void *" "size_t" "struct statvfs *" "int" */ 1111 #define SYS___fhstatvfs140 397 1112 1113 /* syscall: "compat_50___fhstat40" ret: "int" args: "const void *" "size_t" "struct stat30 *" */ 1114 #define SYS_compat_50___fhstat40 398 1115 1116 /* syscall: "aio_cancel" ret: "int" args: "int" "struct aiocb *" */ 1117 #define SYS_aio_cancel 399 1118 1119 /* syscall: "aio_error" ret: "int" args: "const struct aiocb *" */ 1120 #define SYS_aio_error 400 1121 1122 /* syscall: "aio_fsync" ret: "int" args: "int" "struct aiocb *" */ 1123 #define SYS_aio_fsync 401 1124 1125 /* syscall: "aio_read" ret: "int" args: "struct aiocb *" */ 1126 #define SYS_aio_read 402 1127 1128 /* syscall: "aio_return" ret: "int" args: "struct aiocb *" */ 1129 #define SYS_aio_return 403 1130 1131 /* syscall: "compat_50_aio_suspend" ret: "int" args: "const struct aiocb *const *" "int" "const struct timespec50 *" */ 1132 #define SYS_compat_50_aio_suspend 404 1133 1134 /* syscall: "aio_write" ret: "int" args: "struct aiocb *" */ 1135 #define SYS_aio_write 405 1136 1137 /* syscall: "lio_listio" ret: "int" args: "int" "struct aiocb *const *" "int" "struct sigevent *" */ 1138 #define SYS_lio_listio 406 1139 1140 /* syscall: "__mount50" ret: "int" args: "const char *" "const char *" "int" "void *" "size_t" */ 1141 #define SYS___mount50 410 1142 1143 /* syscall: "mremap" ret: "void *" args: "void *" "size_t" "void *" "size_t" "int" */ 1144 #define SYS_mremap 411 1145 1146 /* syscall: "pset_create" ret: "int" args: "psetid_t *" */ 1147 #define SYS_pset_create 412 1148 1149 /* syscall: "pset_destroy" ret: "int" args: "psetid_t" */ 1150 #define SYS_pset_destroy 413 1151 1152 /* syscall: "pset_assign" ret: "int" args: "psetid_t" "cpuid_t" "psetid_t *" */ 1153 #define SYS_pset_assign 414 1154 1155 /* syscall: "_pset_bind" ret: "int" args: "idtype_t" "id_t" "id_t" "psetid_t" "psetid_t *" */ 1156 #define SYS__pset_bind 415 1157 1158 /* syscall: "__posix_fadvise50" ret: "int" args: "int" "int" "off_t" "off_t" "int" */ 1159 #define SYS___posix_fadvise50 416 1160 1161 /* syscall: "__select50" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 1162 #define SYS___select50 417 1163 1164 /* syscall: "__gettimeofday50" ret: "int" args: "struct timeval *" "void *" */ 1165 #define SYS___gettimeofday50 418 1166 1167 /* syscall: "__settimeofday50" ret: "int" args: "const struct timeval *" "const void *" */ 1168 #define SYS___settimeofday50 419 1169 1170 /* syscall: "__utimes50" ret: "int" args: "const char *" "const struct timeval *" */ 1171 #define SYS___utimes50 420 1172 1173 /* syscall: "__adjtime50" ret: "int" args: "const struct timeval *" "struct timeval *" */ 1174 #define SYS___adjtime50 421 1175 1176 /* syscall: "__lfs_segwait50" ret: "int" args: "fsid_t *" "struct timeval *" */ 1177 #define SYS___lfs_segwait50 422 1178 1179 /* syscall: "__futimes50" ret: "int" args: "int" "const struct timeval *" */ 1180 #define SYS___futimes50 423 1181 1182 /* syscall: "__lutimes50" ret: "int" args: "const char *" "const struct timeval *" */ 1183 #define SYS___lutimes50 424 1184 1185 /* syscall: "__setitimer50" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */ 1186 #define SYS___setitimer50 425 1187 1188 /* syscall: "__getitimer50" ret: "int" args: "int" "struct itimerval *" */ 1189 #define SYS___getitimer50 426 1190 1191 /* syscall: "__clock_gettime50" ret: "int" args: "clockid_t" "struct timespec *" */ 1192 #define SYS___clock_gettime50 427 1193 1194 /* syscall: "__clock_settime50" ret: "int" args: "clockid_t" "const struct timespec *" */ 1195 #define SYS___clock_settime50 428 1196 1197 /* syscall: "__clock_getres50" ret: "int" args: "clockid_t" "struct timespec *" */ 1198 #define SYS___clock_getres50 429 1199 1200 /* syscall: "__nanosleep50" ret: "int" args: "const struct timespec *" "struct timespec *" */ 1201 #define SYS___nanosleep50 430 1202 1203 /* syscall: "____sigtimedwait50" ret: "int" args: "const sigset_t *" "siginfo_t *" "struct timespec *" */ 1204 #define SYS_____sigtimedwait50 431 1205 1206 /* syscall: "__mq_timedsend50" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" "const struct timespec *" */ 1207 #define SYS___mq_timedsend50 432 1208 1209 /* syscall: "__mq_timedreceive50" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" "const struct timespec *" */ 1210 #define SYS___mq_timedreceive50 433 1211 1212 /* syscall: "___lwp_park50" ret: "int" args: "const struct timespec *" "lwpid_t" "const void *" "const void *" */ 1213 #define SYS____lwp_park50 434 1214 1215 /* syscall: "__kevent50" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" */ 1216 #define SYS___kevent50 435 1217 1218 /* syscall: "__pselect50" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "const struct timespec *" "const sigset_t *" */ 1219 #define SYS___pselect50 436 1220 1221 /* syscall: "__pollts50" ret: "int" args: "struct pollfd *" "u_int" "const struct timespec *" "const sigset_t *" */ 1222 #define SYS___pollts50 437 1223 1224 /* syscall: "__aio_suspend50" ret: "int" args: "const struct aiocb *const *" "int" "const struct timespec *" */ 1225 #define SYS___aio_suspend50 438 1226 1227 /* syscall: "__stat50" ret: "int" args: "const char *" "struct stat *" */ 1228 #define SYS___stat50 439 1229 1230 /* syscall: "__fstat50" ret: "int" args: "int" "struct stat *" */ 1231 #define SYS___fstat50 440 1232 1233 /* syscall: "__lstat50" ret: "int" args: "const char *" "struct stat *" */ 1234 #define SYS___lstat50 441 1235 1236 #if defined(SYSVSEM) || !defined(_KERNEL_OPT) 1237 /* syscall: "____semctl50" ret: "int" args: "int" "int" "int" "..." */ 1238 #define SYS_____semctl50 442 1239 1240 #else 1241 /* 442 is excluded ____semctl50 */ 1242 #endif 1243 #if defined(SYSVSHM) || !defined(_KERNEL_OPT) 1244 /* syscall: "__shmctl50" ret: "int" args: "int" "int" "struct shmid_ds *" */ 1245 #define SYS___shmctl50 443 1246 1247 #else 1248 /* 443 is excluded ____shmctl50 */ 1249 #endif 1250 #if defined(SYSVMSG) || !defined(_KERNEL_OPT) 1251 /* syscall: "__msgctl50" ret: "int" args: "int" "int" "struct msqid_ds *" */ 1252 #define SYS___msgctl50 444 1253 1254 #else 1255 /* 444 is excluded ____msgctl50 */ 1256 #endif 1257 /* syscall: "__getrusage50" ret: "int" args: "int" "struct rusage *" */ 1258 #define SYS___getrusage50 445 1259 1260 /* syscall: "__timer_settime50" ret: "int" args: "timer_t" "int" "const struct itimerspec *" "struct itimerspec *" */ 1261 #define SYS___timer_settime50 446 1262 1263 /* syscall: "__timer_gettime50" ret: "int" args: "timer_t" "struct itimerspec *" */ 1264 #define SYS___timer_gettime50 447 1265 1266 #if defined(NTP) || !defined(_KERNEL_OPT) 1267 /* syscall: "__ntp_gettime50" ret: "int" args: "struct ntptimeval *" */ 1268 #define SYS___ntp_gettime50 448 1269 1270 #else 1271 /* 448 is excluded ___ntp_gettime50 */ 1272 #endif 1273 /* syscall: "__wait450" ret: "int" args: "pid_t" "int *" "int" "struct rusage *" */ 1274 #define SYS___wait450 449 1275 1276 /* syscall: "__mknod50" ret: "int" args: "const char *" "mode_t" "dev_t" */ 1277 #define SYS___mknod50 450 1278 1279 /* syscall: "__fhstat50" ret: "int" args: "const void *" "size_t" "struct stat *" */ 1280 #define SYS___fhstat50 451 1281 1282 #define SYS_MAXSYSCALL 452 1283 #define SYS_NSYSENT 512 1284 #endif /* _SYS_SYSCALL_H_ */ 1285