| author | |
| committer | |
| log | afe26bbcbdfd7d6fc5ed141688dd9baeb2f1c104 |
| tree | d2a5fa2e1769e2c6ff5dcad434ede5534c93b7f8 |
| parent | 7a3f0a55d9a481f260935f26426ee4508d44cb18 |
But e.g. sbrk is only removed in new architectures (aarch64, riscv),
so keep it in x86_644 files changed, 530 insertions(+), 509 deletions(-)
CMakeLists.txt+1| ... | @@ -582,6 +582,7 @@ set(ZIG_STD_FILES | ... | @@ -582,6 +582,7 @@ set(ZIG_STD_FILES |
| 582 | "os/linux/arm64.zig" | 582 | "os/linux/arm64.zig" |
| 583 | "os/freebsd/errno.zig" | 583 | "os/freebsd/errno.zig" |
| 584 | "os/freebsd/index.zig" | 584 | "os/freebsd/index.zig" |
| 585 | "os/freebsd/syscall.zig" | ||
| 585 | "os/freebsd/x86_64.zig" | 586 | "os/freebsd/x86_64.zig" |
| 586 | "os/path.zig" | 587 | "os/path.zig" |
| 587 | "os/time.zig" | 588 | "os/time.zig" |
std/os/freebsd/index.zig+36-35| ... | @@ -4,6 +4,7 @@ const arch = switch (builtin.arch) { | ... | @@ -4,6 +4,7 @@ const arch = switch (builtin.arch) { |
| 4 | builtin.Arch.x86_64 => @import("x86_64.zig"), | 4 | builtin.Arch.x86_64 => @import("x86_64.zig"), |
| 5 | else => @compileError("unsupported arch"), | 5 | else => @compileError("unsupported arch"), |
| 6 | }; | 6 | }; |
| 7 | pub use @import("syscall.zig"); | ||
| 7 | pub use @import("errno.zig"); | 8 | pub use @import("errno.zig"); |
| 8 | 9 | ||
| 9 | pub const PATH_MAX = 1024; | 10 | pub const PATH_MAX = 1024; |
| ... | @@ -367,64 +368,64 @@ pub fn getErrno(r: usize) usize { | ... | @@ -367,64 +368,64 @@ pub fn getErrno(r: usize) usize { |
| 367 | } | 368 | } |
| 368 | 369 | ||
| 369 | pub fn dup2(old: i32, new: i32) usize { | 370 | pub fn dup2(old: i32, new: i32) usize { |
| 370 | return arch.syscall2(arch.SYS_dup2, @intCast(usize, old), @intCast(usize, new)); | 371 | return arch.syscall2(SYS_dup2, @intCast(usize, old), @intCast(usize, new)); |
| 371 | } | 372 | } |
| 372 | 373 | ||
| 373 | pub fn chdir(path: [*]const u8) usize { | 374 | pub fn chdir(path: [*]const u8) usize { |
| 374 | return arch.syscall1(arch.SYS_chdir, @ptrToInt(path)); | 375 | return arch.syscall1(SYS_chdir, @ptrToInt(path)); |
| 375 | } | 376 | } |
| 376 | 377 | ||
| 377 | pub fn execve(path: [*]const u8, argv: [*]const ?[*]const u8, envp: [*]const ?[*]const u8) usize { | 378 | pub fn execve(path: [*]const u8, argv: [*]const ?[*]const u8, envp: [*]const ?[*]const u8) usize { |
| 378 | return arch.syscall3(arch.SYS_execve, @ptrToInt(path), @ptrToInt(argv), @ptrToInt(envp)); | 379 | return arch.syscall3(SYS_execve, @ptrToInt(path), @ptrToInt(argv), @ptrToInt(envp)); |
| 379 | } | 380 | } |
| 380 | 381 | ||
| 381 | pub fn fork() usize { | 382 | pub fn fork() usize { |
| 382 | return arch.syscall0(arch.SYS_fork); | 383 | return arch.syscall0(SYS_fork); |
| 383 | } | 384 | } |
| 384 | 385 | ||
| 385 | pub fn getcwd(buf: [*]u8, size: usize) usize { | 386 | pub fn getcwd(buf: [*]u8, size: usize) usize { |
| 386 | return arch.syscall2(arch.SYS___getcwd, @ptrToInt(buf), size); | 387 | return arch.syscall2(SYS___getcwd, @ptrToInt(buf), size); |
| 387 | } | 388 | } |
| 388 | 389 | ||
| 389 | pub fn getdents(fd: i32, dirp: [*]u8, count: usize) usize { | 390 | pub fn getdents(fd: i32, dirp: [*]u8, count: usize) usize { |
| 390 | return arch.syscall3(arch.SYS_getdents, @intCast(usize, fd), @ptrToInt(dirp), count); | 391 | return arch.syscall3(SYS_getdents, @intCast(usize, fd), @ptrToInt(dirp), count); |
| 391 | } | 392 | } |
| 392 | 393 | ||
| 393 | pub fn isatty(fd: i32) bool { | 394 | pub fn isatty(fd: i32) bool { |
| 394 | var wsz: winsize = undefined; | 395 | var wsz: winsize = undefined; |
| 395 | return arch.syscall3(arch.SYS_ioctl, @intCast(usize, fd), TIOCGWINSZ, @ptrToInt(&wsz)) == 0; | 396 | return arch.syscall3(SYS_ioctl, @intCast(usize, fd), TIOCGWINSZ, @ptrToInt(&wsz)) == 0; |
| 396 | } | 397 | } |
| 397 | 398 | ||
| 398 | pub fn readlink(noalias path: [*]const u8, noalias buf_ptr: [*]u8, buf_len: usize) usize { | 399 | pub fn readlink(noalias path: [*]const u8, noalias buf_ptr: [*]u8, buf_len: usize) usize { |
| 399 | return arch.syscall3(arch.SYS_readlink, @ptrToInt(path), @ptrToInt(buf_ptr), buf_len); | 400 | return arch.syscall3(SYS_readlink, @ptrToInt(path), @ptrToInt(buf_ptr), buf_len); |
| 400 | } | 401 | } |
| 401 | 402 | ||
| 402 | pub fn mkdir(path: [*]const u8, mode: u32) usize { | 403 | pub fn mkdir(path: [*]const u8, mode: u32) usize { |
| 403 | return arch.syscall2(arch.SYS_mkdir, @ptrToInt(path), mode); | 404 | return arch.syscall2(SYS_mkdir, @ptrToInt(path), mode); |
| 404 | } | 405 | } |
| 405 | 406 | ||
| 406 | pub fn mmap(address: ?*u8, length: usize, prot: usize, flags: usize, fd: i32, offset: isize) usize { | 407 | pub fn mmap(address: ?*u8, length: usize, prot: usize, flags: usize, fd: i32, offset: isize) usize { |
| 407 | return arch.syscall6(arch.SYS_mmap, @ptrToInt(address), length, prot, flags, @intCast(usize, fd), @bitCast(usize, offset)); | 408 | return arch.syscall6(SYS_mmap, @ptrToInt(address), length, prot, flags, @intCast(usize, fd), @bitCast(usize, offset)); |
| 408 | } | 409 | } |
| 409 | 410 | ||
| 410 | pub fn munmap(address: usize, length: usize) usize { | 411 | pub fn munmap(address: usize, length: usize) usize { |
| 411 | return arch.syscall2(arch.SYS_munmap, address, length); | 412 | return arch.syscall2(SYS_munmap, address, length); |
| 412 | } | 413 | } |
| 413 | 414 | ||
| 414 | pub fn read(fd: i32, buf: [*]u8, count: usize) usize { | 415 | pub fn read(fd: i32, buf: [*]u8, count: usize) usize { |
| 415 | return arch.syscall3(arch.SYS_read, @intCast(usize, fd), @ptrToInt(buf), count); | 416 | return arch.syscall3(SYS_read, @intCast(usize, fd), @ptrToInt(buf), count); |
| 416 | } | 417 | } |
| 417 | 418 | ||
| 418 | pub fn rmdir(path: [*]const u8) usize { | 419 | pub fn rmdir(path: [*]const u8) usize { |
| 419 | return arch.syscall1(arch.SYS_rmdir, @ptrToInt(path)); | 420 | return arch.syscall1(SYS_rmdir, @ptrToInt(path)); |
| 420 | } | 421 | } |
| 421 | 422 | ||
| 422 | pub fn symlink(existing: [*]const u8, new: [*]const u8) usize { | 423 | pub fn symlink(existing: [*]const u8, new: [*]const u8) usize { |
| 423 | return arch.syscall2(arch.SYS_symlink, @ptrToInt(existing), @ptrToInt(new)); | 424 | return arch.syscall2(SYS_symlink, @ptrToInt(existing), @ptrToInt(new)); |
| 424 | } | 425 | } |
| 425 | 426 | ||
| 426 | pub fn pread(fd: i32, buf: [*]u8, count: usize, offset: usize) usize { | 427 | pub fn pread(fd: i32, buf: [*]u8, count: usize, offset: usize) usize { |
| 427 | return arch.syscall4(arch.SYS_pread, usize(fd), @ptrToInt(buf), count, offset); | 428 | return arch.syscall4(SYS_pread, usize(fd), @ptrToInt(buf), count, offset); |
| 428 | } | 429 | } |
| 429 | 430 | ||
| 430 | pub fn pipe(fd: *[2]i32) usize { | 431 | pub fn pipe(fd: *[2]i32) usize { |
| ... | @@ -432,80 +433,80 @@ pub fn pipe(fd: *[2]i32) usize { | ... | @@ -432,80 +433,80 @@ pub fn pipe(fd: *[2]i32) usize { |
| 432 | } | 433 | } |
| 433 | 434 | ||
| 434 | pub fn pipe2(fd: *[2]i32, flags: usize) usize { | 435 | pub fn pipe2(fd: *[2]i32, flags: usize) usize { |
| 435 | return arch.syscall2(arch.SYS_pipe2, @ptrToInt(fd), flags); | 436 | return arch.syscall2(SYS_pipe2, @ptrToInt(fd), flags); |
| 436 | } | 437 | } |
| 437 | 438 | ||
| 438 | pub fn write(fd: i32, buf: [*]const u8, count: usize) usize { | 439 | pub fn write(fd: i32, buf: [*]const u8, count: usize) usize { |
| 439 | return arch.syscall3(arch.SYS_write, @intCast(usize, fd), @ptrToInt(buf), count); | 440 | return arch.syscall3(SYS_write, @intCast(usize, fd), @ptrToInt(buf), count); |
| 440 | } | 441 | } |
| 441 | 442 | ||
| 442 | pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: usize) usize { | 443 | pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: usize) usize { |
| 443 | return arch.syscall4(arch.SYS_pwrite, @intCast(usize, fd), @ptrToInt(buf), count, offset); | 444 | return arch.syscall4(SYS_pwrite, @intCast(usize, fd), @ptrToInt(buf), count, offset); |
| 444 | } | 445 | } |
| 445 | 446 | ||
| 446 | pub fn rename(old: [*]const u8, new: [*]const u8) usize { | 447 | pub fn rename(old: [*]const u8, new: [*]const u8) usize { |
| 447 | return arch.syscall2(arch.SYS_rename, @ptrToInt(old), @ptrToInt(new)); | 448 | return arch.syscall2(SYS_rename, @ptrToInt(old), @ptrToInt(new)); |
| 448 | } | 449 | } |
| 449 | 450 | ||
| 450 | pub fn open(path: [*]const u8, flags: u32, perm: usize) usize { | 451 | pub fn open(path: [*]const u8, flags: u32, perm: usize) usize { |
| 451 | return arch.syscall3(arch.SYS_open, @ptrToInt(path), flags, perm); | 452 | return arch.syscall3(SYS_open, @ptrToInt(path), flags, perm); |
| 452 | } | 453 | } |
| 453 | 454 | ||
| 454 | pub fn create(path: [*]const u8, perm: usize) usize { | 455 | pub fn create(path: [*]const u8, perm: usize) usize { |
| 455 | return arch.syscall2(arch.SYS_creat, @ptrToInt(path), perm); | 456 | return arch.syscall2(SYS_creat, @ptrToInt(path), perm); |
| 456 | } | 457 | } |
| 457 | 458 | ||
| 458 | pub fn openat(dirfd: i32, path: [*]const u8, flags: usize, mode: usize) usize { | 459 | pub fn openat(dirfd: i32, path: [*]const u8, flags: usize, mode: usize) usize { |
| 459 | return arch.syscall4(arch.SYS_openat, @intCast(usize, dirfd), @ptrToInt(path), flags, mode); | 460 | return arch.syscall4(SYS_openat, @intCast(usize, dirfd), @ptrToInt(path), flags, mode); |
| 460 | } | 461 | } |
| 461 | 462 | ||
| 462 | pub fn close(fd: i32) usize { | 463 | pub fn close(fd: i32) usize { |
| 463 | return arch.syscall1(arch.SYS_close, @intCast(usize, fd)); | 464 | return arch.syscall1(SYS_close, @intCast(usize, fd)); |
| 464 | } | 465 | } |
| 465 | 466 | ||
| 466 | pub fn lseek(fd: i32, offset: isize, ref_pos: usize) usize { | 467 | pub fn lseek(fd: i32, offset: isize, ref_pos: usize) usize { |
| 467 | return arch.syscall3(arch.SYS_lseek, @intCast(usize, fd), @bitCast(usize, offset), ref_pos); | 468 | return arch.syscall3(SYS_lseek, @intCast(usize, fd), @bitCast(usize, offset), ref_pos); |
| 468 | } | 469 | } |
| 469 | 470 | ||
| 470 | pub fn exit(status: i32) noreturn { | 471 | pub fn exit(status: i32) noreturn { |
| 471 | _ = arch.syscall1(arch.SYS_exit, @bitCast(usize, isize(status))); | 472 | _ = arch.syscall1(SYS_exit, @bitCast(usize, isize(status))); |
| 472 | unreachable; | 473 | unreachable; |
| 473 | } | 474 | } |
| 474 | 475 | ||
| 475 | pub fn getrandom(buf: [*]u8, count: usize, flags: u32) usize { | 476 | pub fn getrandom(buf: [*]u8, count: usize, flags: u32) usize { |
| 476 | return arch.syscall3(arch.SYS_getrandom, @ptrToInt(buf), count, @intCast(usize, flags)); | 477 | return arch.syscall3(SYS_getrandom, @ptrToInt(buf), count, @intCast(usize, flags)); |
| 477 | } | 478 | } |
| 478 | 479 | ||
| 479 | pub fn kill(pid: i32, sig: i32) usize { | 480 | pub fn kill(pid: i32, sig: i32) usize { |
| 480 | return arch.syscall2(arch.SYS_kill, @bitCast(usize, @intCast(isize, pid)), @intCast(usize, sig)); | 481 | return arch.syscall2(SYS_kill, @bitCast(usize, @intCast(isize, pid)), @intCast(usize, sig)); |
| 481 | } | 482 | } |
| 482 | 483 | ||
| 483 | pub fn unlink(path: [*]const u8) usize { | 484 | pub fn unlink(path: [*]const u8) usize { |
| 484 | return arch.syscall1(arch.SYS_unlink, @ptrToInt(path)); | 485 | return arch.syscall1(SYS_unlink, @ptrToInt(path)); |
| 485 | } | 486 | } |
| 486 | 487 | ||
| 487 | pub fn waitpid(pid: i32, status: *i32, options: i32) usize { | 488 | pub fn waitpid(pid: i32, status: *i32, options: i32) usize { |
| 488 | return arch.syscall4(arch.SYS_wait4, @bitCast(usize, isize(pid)), @ptrToInt(status), @bitCast(usize, isize(options)), 0); | 489 | return arch.syscall4(SYS_wait4, @bitCast(usize, isize(pid)), @ptrToInt(status), @bitCast(usize, isize(options)), 0); |
| 489 | } | 490 | } |
| 490 | 491 | ||
| 491 | pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize { | 492 | pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize { |
| 492 | return arch.syscall2(arch.SYS_nanosleep, @ptrToInt(req), @ptrToInt(rem)); | 493 | return arch.syscall2(SYS_nanosleep, @ptrToInt(req), @ptrToInt(rem)); |
| 493 | } | 494 | } |
| 494 | 495 | ||
| 495 | pub fn setuid(uid: u32) usize { | 496 | pub fn setuid(uid: u32) usize { |
| 496 | return arch.syscall1(arch.SYS_setuid, uid); | 497 | return arch.syscall1(SYS_setuid, uid); |
| 497 | } | 498 | } |
| 498 | 499 | ||
| 499 | pub fn setgid(gid: u32) usize { | 500 | pub fn setgid(gid: u32) usize { |
| 500 | return arch.syscall1(arch.SYS_setgid, gid); | 501 | return arch.syscall1(SYS_setgid, gid); |
| 501 | } | 502 | } |
| 502 | 503 | ||
| 503 | pub fn setreuid(ruid: u32, euid: u32) usize { | 504 | pub fn setreuid(ruid: u32, euid: u32) usize { |
| 504 | return arch.syscall2(arch.SYS_setreuid, ruid, euid); | 505 | return arch.syscall2(SYS_setreuid, ruid, euid); |
| 505 | } | 506 | } |
| 506 | 507 | ||
| 507 | pub fn setregid(rgid: u32, egid: u32) usize { | 508 | pub fn setregid(rgid: u32, egid: u32) usize { |
| 508 | return arch.syscall2(arch.SYS_setregid, rgid, egid); | 509 | return arch.syscall2(SYS_setregid, rgid, egid); |
| 509 | } | 510 | } |
| 510 | 511 | ||
| 511 | pub fn sigprocmask(flags: u32, noalias set: *const sigset_t, noalias oldset: ?*sigset_t) usize { | 512 | pub fn sigprocmask(flags: u32, noalias set: *const sigset_t, noalias oldset: ?*sigset_t) usize { |
| ... | @@ -567,5 +568,5 @@ pub const Stat = arch.Stat; | ... | @@ -567,5 +568,5 @@ pub const Stat = arch.Stat; |
| 567 | pub const timespec = arch.timespec; | 568 | pub const timespec = arch.timespec; |
| 568 | 569 | ||
| 569 | pub fn fstat(fd: i32, stat_buf: *Stat) usize { | 570 | pub fn fstat(fd: i32, stat_buf: *Stat) usize { |
| 570 | return arch.syscall2(arch.SYS_fstat, @intCast(usize, fd), @ptrToInt(stat_buf)); | 571 | return arch.syscall2(SYS_fstat, @intCast(usize, fd), @ptrToInt(stat_buf)); |
| 571 | } | 572 | } |
std/os/freebsd/syscall.zig created+493| ... | @@ -0,0 +1,493 @@ | ||
| 1 | pub const SYS_syscall = 0; | ||
| 2 | pub const SYS_exit = 1; | ||
| 3 | pub const SYS_fork = 2; | ||
| 4 | pub const SYS_read = 3; | ||
| 5 | pub const SYS_write = 4; | ||
| 6 | pub const SYS_open = 5; | ||
| 7 | pub const SYS_close = 6; | ||
| 8 | pub const SYS_wait4 = 7; | ||
| 9 | // 8 is old creat | ||
| 10 | pub const SYS_link = 9; | ||
| 11 | pub const SYS_unlink = 10; | ||
| 12 | // 11 is obsolete execv | ||
| 13 | pub const SYS_chdir = 12; | ||
| 14 | pub const SYS_fchdir = 13; | ||
| 15 | pub const SYS_freebsd11_mknod = 14; | ||
| 16 | pub const SYS_chmod = 15; | ||
| 17 | pub const SYS_chown = 16; | ||
| 18 | pub const SYS_break = 17; | ||
| 19 | // 18 is freebsd4 getfsstat | ||
| 20 | // 19 is old lseek | ||
| 21 | pub const SYS_getpid = 20; | ||
| 22 | pub const SYS_mount = 21; | ||
| 23 | pub const SYS_unmount = 22; | ||
| 24 | pub const SYS_setuid = 23; | ||
| 25 | pub const SYS_getuid = 24; | ||
| 26 | pub const SYS_geteuid = 25; | ||
| 27 | pub const SYS_ptrace = 26; | ||
| 28 | pub const SYS_recvmsg = 27; | ||
| 29 | pub const SYS_sendmsg = 28; | ||
| 30 | pub const SYS_recvfrom = 29; | ||
| 31 | pub const SYS_accept = 30; | ||
| 32 | pub const SYS_getpeername = 31; | ||
| 33 | pub const SYS_getsockname = 32; | ||
| 34 | pub const SYS_access = 33; | ||
| 35 | pub const SYS_chflags = 34; | ||
| 36 | pub const SYS_fchflags = 35; | ||
| 37 | pub const SYS_sync = 36; | ||
| 38 | pub const SYS_kill = 37; | ||
| 39 | // 38 is old stat | ||
| 40 | pub const SYS_getppid = 39; | ||
| 41 | // 40 is old lstat | ||
| 42 | pub const SYS_dup = 41; | ||
| 43 | pub const SYS_freebsd10_pipe = 42; | ||
| 44 | pub const SYS_getegid = 43; | ||
| 45 | pub const SYS_profil = 44; | ||
| 46 | pub const SYS_ktrace = 45; | ||
| 47 | // 46 is old sigaction | ||
| 48 | pub const SYS_getgid = 47; | ||
| 49 | // 48 is old sigprocmask | ||
| 50 | pub const SYS_getlogin = 49; | ||
| 51 | pub const SYS_setlogin = 50; | ||
| 52 | pub const SYS_acct = 51; | ||
| 53 | // 52 is old sigpending | ||
| 54 | pub const SYS_sigaltstack = 53; | ||
| 55 | pub const SYS_ioctl = 54; | ||
| 56 | pub const SYS_reboot = 55; | ||
| 57 | pub const SYS_revoke = 56; | ||
| 58 | pub const SYS_symlink = 57; | ||
| 59 | pub const SYS_readlink = 58; | ||
| 60 | pub const SYS_execve = 59; | ||
| 61 | pub const SYS_umask = 60; | ||
| 62 | pub const SYS_chroot = 61; | ||
| 63 | // 62 is old fstat | ||
| 64 | // 63 is old getkerninfo | ||
| 65 | // 64 is old getpagesize | ||
| 66 | pub const SYS_msync = 65; | ||
| 67 | pub const SYS_vfork = 66; | ||
| 68 | // 67 is obsolete vread | ||
| 69 | // 68 is obsolete vwrite | ||
| 70 | // 69 is obsolete sbrk (still present on some platforms) | ||
| 71 | pub const SYS_sstk = 70; | ||
| 72 | // 71 is old mmap | ||
| 73 | pub const SYS_vadvise = 72; | ||
| 74 | pub const SYS_munmap = 73; | ||
| 75 | pub const SYS_mprotect = 74; | ||
| 76 | pub const SYS_madvise = 75; | ||
| 77 | // 76 is obsolete vhangup | ||
| 78 | // 77 is obsolete vlimit | ||
| 79 | pub const SYS_mincore = 78; | ||
| 80 | pub const SYS_getgroups = 79; | ||
| 81 | pub const SYS_setgroups = 80; | ||
| 82 | pub const SYS_getpgrp = 81; | ||
| 83 | pub const SYS_setpgid = 82; | ||
| 84 | pub const SYS_setitimer = 83; | ||
| 85 | // 84 is old wait | ||
| 86 | pub const SYS_swapon = 85; | ||
| 87 | pub const SYS_getitimer = 86; | ||
| 88 | // 87 is old gethostname | ||
| 89 | // 88 is old sethostname | ||
| 90 | pub const SYS_getdtablesize = 89; | ||
| 91 | pub const SYS_dup2 = 90; | ||
| 92 | pub const SYS_fcntl = 92; | ||
| 93 | pub const SYS_select = 93; | ||
| 94 | pub const SYS_fsync = 95; | ||
| 95 | pub const SYS_setpriority = 96; | ||
| 96 | pub const SYS_socket = 97; | ||
| 97 | pub const SYS_connect = 98; | ||
| 98 | // 99 is old accept | ||
| 99 | pub const SYS_getpriority = 100; | ||
| 100 | // 101 is old send | ||
| 101 | // 102 is old recv | ||
| 102 | // 103 is old sigreturn | ||
| 103 | pub const SYS_bind = 104; | ||
| 104 | pub const SYS_setsockopt = 105; | ||
| 105 | pub const SYS_listen = 106; | ||
| 106 | // 107 is obsolete vtimes | ||
| 107 | // 108 is old sigvec | ||
| 108 | // 109 is old sigblock | ||
| 109 | // 110 is old sigsetmask | ||
| 110 | // 111 is old sigsuspend | ||
| 111 | // 112 is old sigstack | ||
| 112 | // 113 is old recvmsg | ||
| 113 | // 114 is old sendmsg | ||
| 114 | // 115 is obsolete vtrace | ||
| 115 | pub const SYS_gettimeofday = 116; | ||
| 116 | pub const SYS_getrusage = 117; | ||
| 117 | pub const SYS_getsockopt = 118; | ||
| 118 | pub const SYS_readv = 120; | ||
| 119 | pub const SYS_writev = 121; | ||
| 120 | pub const SYS_settimeofday = 122; | ||
| 121 | pub const SYS_fchown = 123; | ||
| 122 | pub const SYS_fchmod = 124; | ||
| 123 | // 125 is old recvfrom | ||
| 124 | pub const SYS_setreuid = 126; | ||
| 125 | pub const SYS_setregid = 127; | ||
| 126 | pub const SYS_rename = 128; | ||
| 127 | // 129 is old truncate | ||
| 128 | // 130 is old ftruncate | ||
| 129 | pub const SYS_flock = 131; | ||
| 130 | pub const SYS_mkfifo = 132; | ||
| 131 | pub const SYS_sendto = 133; | ||
| 132 | pub const SYS_shutdown = 134; | ||
| 133 | pub const SYS_socketpair = 135; | ||
| 134 | pub const SYS_mkdir = 136; | ||
| 135 | pub const SYS_rmdir = 137; | ||
| 136 | pub const SYS_utimes = 138; | ||
| 137 | // 139 is obsolete 4.2 sigreturn | ||
| 138 | pub const SYS_adjtime = 140; | ||
| 139 | // 141 is old getpeername | ||
| 140 | // 142 is old gethostid | ||
| 141 | // 143 is old sethostid | ||
| 142 | // 144 is old getrlimit | ||
| 143 | // 145 is old setrlimit | ||
| 144 | // 146 is old killpg | ||
| 145 | pub const SYS_setsid = 147; | ||
| 146 | pub const SYS_quotactl = 148; | ||
| 147 | // 149 is old quota | ||
| 148 | // 150 is old getsockname | ||
| 149 | pub const SYS_nlm_syscall = 154; | ||
| 150 | pub const SYS_nfssvc = 155; | ||
| 151 | // 156 is old getdirentries | ||
| 152 | // 157 is freebsd4 statfs | ||
| 153 | // 158 is freebsd4 fstatfs | ||
| 154 | pub const SYS_lgetfh = 160; | ||
| 155 | pub const SYS_getfh = 161; | ||
| 156 | // 162 is freebsd4 getdomainname | ||
| 157 | // 163 is freebsd4 setdomainname | ||
| 158 | // 164 is freebsd4 uname | ||
| 159 | pub const SYS_sysarch = 165; | ||
| 160 | pub const SYS_rtprio = 166; | ||
| 161 | pub const SYS_semsys = 169; | ||
| 162 | pub const SYS_msgsys = 170; | ||
| 163 | pub const SYS_shmsys = 171; | ||
| 164 | // 173 is freebsd6 pread | ||
| 165 | // 174 is freebsd6 pwrite | ||
| 166 | pub const SYS_setfib = 175; | ||
| 167 | pub const SYS_ntp_adjtime = 176; | ||
| 168 | pub const SYS_setgid = 181; | ||
| 169 | pub const SYS_setegid = 182; | ||
| 170 | pub const SYS_seteuid = 183; | ||
| 171 | // 184 is obsolete lfs_bmapv | ||
| 172 | // 185 is obsolete lfs_markv | ||
| 173 | // 186 is obsolete lfs_segclean | ||
| 174 | // 187 is obsolete lfs_segwait | ||
| 175 | pub const SYS_freebsd11_stat = 188; | ||
| 176 | pub const SYS_freebsd11_fstat = 189; | ||
| 177 | pub const SYS_freebsd11_lstat = 190; | ||
| 178 | pub const SYS_pathconf = 191; | ||
| 179 | pub const SYS_fpathconf = 192; | ||
| 180 | pub const SYS_getrlimit = 194; | ||
| 181 | pub const SYS_setrlimit = 195; | ||
| 182 | pub const SYS_freebsd11_getdirentries = 196; | ||
| 183 | // 197 is freebsd6 mmap | ||
| 184 | pub const SYS___syscall = 198; | ||
| 185 | // 199 is freebsd6 lseek | ||
| 186 | // 200 is freebsd6 truncate | ||
| 187 | // 201 is freebsd6 ftruncate | ||
| 188 | pub const SYS___sysctl = 202; | ||
| 189 | pub const SYS_mlock = 203; | ||
| 190 | pub const SYS_munlock = 204; | ||
| 191 | pub const SYS_undelete = 205; | ||
| 192 | pub const SYS_futimes = 206; | ||
| 193 | pub const SYS_getpgid = 207; | ||
| 194 | pub const SYS_poll = 209; | ||
| 195 | pub const SYS_freebsd7___semctl = 220; | ||
| 196 | pub const SYS_semget = 221; | ||
| 197 | pub const SYS_semop = 222; | ||
| 198 | pub const SYS_freebsd7_msgctl = 224; | ||
| 199 | pub const SYS_msgget = 225; | ||
| 200 | pub const SYS_msgsnd = 226; | ||
| 201 | pub const SYS_msgrcv = 227; | ||
| 202 | pub const SYS_shmat = 228; | ||
| 203 | pub const SYS_freebsd7_shmctl = 229; | ||
| 204 | pub const SYS_shmdt = 230; | ||
| 205 | pub const SYS_shmget = 231; | ||
| 206 | pub const SYS_clock_gettime = 232; | ||
| 207 | pub const SYS_clock_settime = 233; | ||
| 208 | pub const SYS_clock_getres = 234; | ||
| 209 | pub const SYS_ktimer_create = 235; | ||
| 210 | pub const SYS_ktimer_delete = 236; | ||
| 211 | pub const SYS_ktimer_settime = 237; | ||
| 212 | pub const SYS_ktimer_gettime = 238; | ||
| 213 | pub const SYS_ktimer_getoverrun = 239; | ||
| 214 | pub const SYS_nanosleep = 240; | ||
| 215 | pub const SYS_ffclock_getcounter = 241; | ||
| 216 | pub const SYS_ffclock_setestimate = 242; | ||
| 217 | pub const SYS_ffclock_getestimate = 243; | ||
| 218 | pub const SYS_clock_nanosleep = 244; | ||
| 219 | pub const SYS_clock_getcpuclockid2 = 247; | ||
| 220 | pub const SYS_ntp_gettime = 248; | ||
| 221 | pub const SYS_minherit = 250; | ||
| 222 | pub const SYS_rfork = 251; | ||
| 223 | // 252 is obsolete openbsd_poll | ||
| 224 | pub const SYS_issetugid = 253; | ||
| 225 | pub const SYS_lchown = 254; | ||
| 226 | pub const SYS_aio_read = 255; | ||
| 227 | pub const SYS_aio_write = 256; | ||
| 228 | pub const SYS_lio_listio = 257; | ||
| 229 | pub const SYS_freebsd11_getdents = 272; | ||
| 230 | pub const SYS_lchmod = 274; | ||
| 231 | // 275 is obsolete netbsd_lchown | ||
| 232 | pub const SYS_lutimes = 276; | ||
| 233 | // 277 is obsolete netbsd_msync | ||
| 234 | pub const SYS_freebsd11_nstat = 278; | ||
| 235 | pub const SYS_freebsd11_nfstat = 279; | ||
| 236 | pub const SYS_freebsd11_nlstat = 280; | ||
| 237 | pub const SYS_preadv = 289; | ||
| 238 | pub const SYS_pwritev = 290; | ||
| 239 | // 297 is freebsd4 fhstatfs | ||
| 240 | pub const SYS_fhopen = 298; | ||
| 241 | pub const SYS_freebsd11_fhstat = 299; | ||
| 242 | pub const SYS_modnext = 300; | ||
| 243 | pub const SYS_modstat = 301; | ||
| 244 | pub const SYS_modfnext = 302; | ||
| 245 | pub const SYS_modfind = 303; | ||
| 246 | pub const SYS_kldload = 304; | ||
| 247 | pub const SYS_kldunload = 305; | ||
| 248 | pub const SYS_kldfind = 306; | ||
| 249 | pub const SYS_kldnext = 307; | ||
| 250 | pub const SYS_kldstat = 308; | ||
| 251 | pub const SYS_kldfirstmod = 309; | ||
| 252 | pub const SYS_getsid = 310; | ||
| 253 | pub const SYS_setresuid = 311; | ||
| 254 | pub const SYS_setresgid = 312; | ||
| 255 | // 313 is obsolete signanosleep | ||
| 256 | pub const SYS_aio_return = 314; | ||
| 257 | pub const SYS_aio_suspend = 315; | ||
| 258 | pub const SYS_aio_cancel = 316; | ||
| 259 | pub const SYS_aio_error = 317; | ||
| 260 | // 318 is freebsd6 aio_read | ||
| 261 | // 319 is freebsd6 aio_write | ||
| 262 | // 320 is freebsd6 lio_listio | ||
| 263 | pub const SYS_yield = 321; | ||
| 264 | // 322 is obsolete thr_sleep | ||
| 265 | // 323 is obsolete thr_wakeup | ||
| 266 | pub const SYS_mlockall = 324; | ||
| 267 | pub const SYS_munlockall = 325; | ||
| 268 | pub const SYS___getcwd = 326; | ||
| 269 | pub const SYS_sched_setparam = 327; | ||
| 270 | pub const SYS_sched_getparam = 328; | ||
| 271 | pub const SYS_sched_setscheduler = 329; | ||
| 272 | pub const SYS_sched_getscheduler = 330; | ||
| 273 | pub const SYS_sched_yield = 331; | ||
| 274 | pub const SYS_sched_get_priority_max = 332; | ||
| 275 | pub const SYS_sched_get_priority_min = 333; | ||
| 276 | pub const SYS_sched_rr_get_interval = 334; | ||
| 277 | pub const SYS_utrace = 335; | ||
| 278 | // 336 is freebsd4 sendfile | ||
| 279 | pub const SYS_kldsym = 337; | ||
| 280 | pub const SYS_jail = 338; | ||
| 281 | pub const SYS_nnpfs_syscall = 339; | ||
| 282 | pub const SYS_sigprocmask = 340; | ||
| 283 | pub const SYS_sigsuspend = 341; | ||
| 284 | // 342 is freebsd4 sigaction | ||
| 285 | pub const SYS_sigpending = 343; | ||
| 286 | // 344 is freebsd4 sigreturn | ||
| 287 | pub const SYS_sigtimedwait = 345; | ||
| 288 | pub const SYS_sigwaitinfo = 346; | ||
| 289 | pub const SYS___acl_get_file = 347; | ||
| 290 | pub const SYS___acl_set_file = 348; | ||
| 291 | pub const SYS___acl_get_fd = 349; | ||
| 292 | pub const SYS___acl_set_fd = 350; | ||
| 293 | pub const SYS___acl_delete_file = 351; | ||
| 294 | pub const SYS___acl_delete_fd = 352; | ||
| 295 | pub const SYS___acl_aclcheck_file = 353; | ||
| 296 | pub const SYS___acl_aclcheck_fd = 354; | ||
| 297 | pub const SYS_extattrctl = 355; | ||
| 298 | pub const SYS_extattr_set_file = 356; | ||
| 299 | pub const SYS_extattr_get_file = 357; | ||
| 300 | pub const SYS_extattr_delete_file = 358; | ||
| 301 | pub const SYS_aio_waitcomplete = 359; | ||
| 302 | pub const SYS_getresuid = 360; | ||
| 303 | pub const SYS_getresgid = 361; | ||
| 304 | pub const SYS_kqueue = 362; | ||
| 305 | pub const SYS_freebsd11_kevent = 363; | ||
| 306 | // 364 is obsolete __cap_get_proc | ||
| 307 | // 365 is obsolete __cap_set_proc | ||
| 308 | // 366 is obsolete __cap_get_fd | ||
| 309 | // 367 is obsolete __cap_get_file | ||
| 310 | // 368 is obsolete __cap_set_fd | ||
| 311 | // 369 is obsolete __cap_set_file | ||
| 312 | pub const SYS_extattr_set_fd = 371; | ||
| 313 | pub const SYS_extattr_get_fd = 372; | ||
| 314 | pub const SYS_extattr_delete_fd = 373; | ||
| 315 | pub const SYS___setugid = 374; | ||
| 316 | pub const SYS_eaccess = 376; | ||
| 317 | pub const SYS_afs3_syscall = 377; | ||
| 318 | pub const SYS_nmount = 378; | ||
| 319 | // 379 is obsolete kse_exit | ||
| 320 | // 380 is obsolete kse_wakeup | ||
| 321 | // 381 is obsolete kse_create | ||
| 322 | // 382 is obsolete kse_thr_interrupt | ||
| 323 | // 383 is obsolete kse_release | ||
| 324 | pub const SYS___mac_get_proc = 384; | ||
| 325 | pub const SYS___mac_set_proc = 385; | ||
| 326 | pub const SYS___mac_get_fd = 386; | ||
| 327 | pub const SYS___mac_get_file = 387; | ||
| 328 | pub const SYS___mac_set_fd = 388; | ||
| 329 | pub const SYS___mac_set_file = 389; | ||
| 330 | pub const SYS_kenv = 390; | ||
| 331 | pub const SYS_lchflags = 391; | ||
| 332 | pub const SYS_uuidgen = 392; | ||
| 333 | pub const SYS_sendfile = 393; | ||
| 334 | pub const SYS_mac_syscall = 394; | ||
| 335 | pub const SYS_freebsd11_getfsstat = 395; | ||
| 336 | pub const SYS_freebsd11_statfs = 396; | ||
| 337 | pub const SYS_freebsd11_fstatfs = 397; | ||
| 338 | pub const SYS_freebsd11_fhstatfs = 398; | ||
| 339 | pub const SYS_ksem_close = 400; | ||
| 340 | pub const SYS_ksem_post = 401; | ||
| 341 | pub const SYS_ksem_wait = 402; | ||
| 342 | pub const SYS_ksem_trywait = 403; | ||
| 343 | pub const SYS_ksem_init = 404; | ||
| 344 | pub const SYS_ksem_open = 405; | ||
| 345 | pub const SYS_ksem_unlink = 406; | ||
| 346 | pub const SYS_ksem_getvalue = 407; | ||
| 347 | pub const SYS_ksem_destroy = 408; | ||
| 348 | pub const SYS___mac_get_pid = 409; | ||
| 349 | pub const SYS___mac_get_link = 410; | ||
| 350 | pub const SYS___mac_set_link = 411; | ||
| 351 | pub const SYS_extattr_set_link = 412; | ||
| 352 | pub const SYS_extattr_get_link = 413; | ||
| 353 | pub const SYS_extattr_delete_link = 414; | ||
| 354 | pub const SYS___mac_execve = 415; | ||
| 355 | pub const SYS_sigaction = 416; | ||
| 356 | pub const SYS_sigreturn = 417; | ||
| 357 | pub const SYS_getcontext = 421; | ||
| 358 | pub const SYS_setcontext = 422; | ||
| 359 | pub const SYS_swapcontext = 423; | ||
| 360 | pub const SYS_swapoff = 424; | ||
| 361 | pub const SYS___acl_get_link = 425; | ||
| 362 | pub const SYS___acl_set_link = 426; | ||
| 363 | pub const SYS___acl_delete_link = 427; | ||
| 364 | pub const SYS___acl_aclcheck_link = 428; | ||
| 365 | pub const SYS_sigwait = 429; | ||
| 366 | pub const SYS_thr_create = 430; | ||
| 367 | pub const SYS_thr_exit = 431; | ||
| 368 | pub const SYS_thr_self = 432; | ||
| 369 | pub const SYS_thr_kill = 433; | ||
| 370 | pub const SYS_jail_attach = 436; | ||
| 371 | pub const SYS_extattr_list_fd = 437; | ||
| 372 | pub const SYS_extattr_list_file = 438; | ||
| 373 | pub const SYS_extattr_list_link = 439; | ||
| 374 | // 440 is obsolete kse_switchin | ||
| 375 | pub const SYS_ksem_timedwait = 441; | ||
| 376 | pub const SYS_thr_suspend = 442; | ||
| 377 | pub const SYS_thr_wake = 443; | ||
| 378 | pub const SYS_kldunloadf = 444; | ||
| 379 | pub const SYS_audit = 445; | ||
| 380 | pub const SYS_auditon = 446; | ||
| 381 | pub const SYS_getauid = 447; | ||
| 382 | pub const SYS_setauid = 448; | ||
| 383 | pub const SYS_getaudit = 449; | ||
| 384 | pub const SYS_setaudit = 450; | ||
| 385 | pub const SYS_getaudit_addr = 451; | ||
| 386 | pub const SYS_setaudit_addr = 452; | ||
| 387 | pub const SYS_auditctl = 453; | ||
| 388 | pub const SYS__umtx_op = 454; | ||
| 389 | pub const SYS_thr_new = 455; | ||
| 390 | pub const SYS_sigqueue = 456; | ||
| 391 | pub const SYS_kmq_open = 457; | ||
| 392 | pub const SYS_kmq_setattr = 458; | ||
| 393 | pub const SYS_kmq_timedreceive = 459; | ||
| 394 | pub const SYS_kmq_timedsend = 460; | ||
| 395 | pub const SYS_kmq_notify = 461; | ||
| 396 | pub const SYS_kmq_unlink = 462; | ||
| 397 | pub const SYS_abort2 = 463; | ||
| 398 | pub const SYS_thr_set_name = 464; | ||
| 399 | pub const SYS_aio_fsync = 465; | ||
| 400 | pub const SYS_rtprio_thread = 466; | ||
| 401 | pub const SYS_sctp_peeloff = 471; | ||
| 402 | pub const SYS_sctp_generic_sendmsg = 472; | ||
| 403 | pub const SYS_sctp_generic_sendmsg_iov = 473; | ||
| 404 | pub const SYS_sctp_generic_recvmsg = 474; | ||
| 405 | pub const SYS_pread = 475; | ||
| 406 | pub const SYS_pwrite = 476; | ||
| 407 | pub const SYS_mmap = 477; | ||
| 408 | pub const SYS_lseek = 478; | ||
| 409 | pub const SYS_truncate = 479; | ||
| 410 | pub const SYS_ftruncate = 480; | ||
| 411 | pub const SYS_thr_kill2 = 481; | ||
| 412 | pub const SYS_shm_open = 482; | ||
| 413 | pub const SYS_shm_unlink = 483; | ||
| 414 | pub const SYS_cpuset = 484; | ||
| 415 | pub const SYS_cpuset_setid = 485; | ||
| 416 | pub const SYS_cpuset_getid = 486; | ||
| 417 | pub const SYS_cpuset_getaffinity = 487; | ||
| 418 | pub const SYS_cpuset_setaffinity = 488; | ||
| 419 | pub const SYS_faccessat = 489; | ||
| 420 | pub const SYS_fchmodat = 490; | ||
| 421 | pub const SYS_fchownat = 491; | ||
| 422 | pub const SYS_fexecve = 492; | ||
| 423 | pub const SYS_freebsd11_fstatat = 493; | ||
| 424 | pub const SYS_futimesat = 494; | ||
| 425 | pub const SYS_linkat = 495; | ||
| 426 | pub const SYS_mkdirat = 496; | ||
| 427 | pub const SYS_mkfifoat = 497; | ||
| 428 | pub const SYS_freebsd11_mknodat = 498; | ||
| 429 | pub const SYS_openat = 499; | ||
| 430 | pub const SYS_readlinkat = 500; | ||
| 431 | pub const SYS_renameat = 501; | ||
| 432 | pub const SYS_symlinkat = 502; | ||
| 433 | pub const SYS_unlinkat = 503; | ||
| 434 | pub const SYS_posix_openpt = 504; | ||
| 435 | pub const SYS_gssd_syscall = 505; | ||
| 436 | pub const SYS_jail_get = 506; | ||
| 437 | pub const SYS_jail_set = 507; | ||
| 438 | pub const SYS_jail_remove = 508; | ||
| 439 | pub const SYS_closefrom = 509; | ||
| 440 | pub const SYS___semctl = 510; | ||
| 441 | pub const SYS_msgctl = 511; | ||
| 442 | pub const SYS_shmctl = 512; | ||
| 443 | pub const SYS_lpathconf = 513; | ||
| 444 | // 514 is obsolete cap_new | ||
| 445 | pub const SYS___cap_rights_get = 515; | ||
| 446 | pub const SYS_cap_enter = 516; | ||
| 447 | pub const SYS_cap_getmode = 517; | ||
| 448 | pub const SYS_pdfork = 518; | ||
| 449 | pub const SYS_pdkill = 519; | ||
| 450 | pub const SYS_pdgetpid = 520; | ||
| 451 | pub const SYS_pselect = 522; | ||
| 452 | pub const SYS_getloginclass = 523; | ||
| 453 | pub const SYS_setloginclass = 524; | ||
| 454 | pub const SYS_rctl_get_racct = 525; | ||
| 455 | pub const SYS_rctl_get_rules = 526; | ||
| 456 | pub const SYS_rctl_get_limits = 527; | ||
| 457 | pub const SYS_rctl_add_rule = 528; | ||
| 458 | pub const SYS_rctl_remove_rule = 529; | ||
| 459 | pub const SYS_posix_fallocate = 530; | ||
| 460 | pub const SYS_posix_fadvise = 531; | ||
| 461 | pub const SYS_wait6 = 532; | ||
| 462 | pub const SYS_cap_rights_limit = 533; | ||
| 463 | pub const SYS_cap_ioctls_limit = 534; | ||
| 464 | pub const SYS_cap_ioctls_get = 535; | ||
| 465 | pub const SYS_cap_fcntls_limit = 536; | ||
| 466 | pub const SYS_cap_fcntls_get = 537; | ||
| 467 | pub const SYS_bindat = 538; | ||
| 468 | pub const SYS_connectat = 539; | ||
| 469 | pub const SYS_chflagsat = 540; | ||
| 470 | pub const SYS_accept4 = 541; | ||
| 471 | pub const SYS_pipe2 = 542; | ||
| 472 | pub const SYS_aio_mlock = 543; | ||
| 473 | pub const SYS_procctl = 544; | ||
| 474 | pub const SYS_ppoll = 545; | ||
| 475 | pub const SYS_futimens = 546; | ||
| 476 | pub const SYS_utimensat = 547; | ||
| 477 | // 548 is obsolete numa_getaffinity | ||
| 478 | // 549 is obsolete numa_setaffinity | ||
| 479 | pub const SYS_fdatasync = 550; | ||
| 480 | pub const SYS_fstat = 551; | ||
| 481 | pub const SYS_fstatat = 552; | ||
| 482 | pub const SYS_fhstat = 553; | ||
| 483 | pub const SYS_getdirentries = 554; | ||
| 484 | pub const SYS_statfs = 555; | ||
| 485 | pub const SYS_fstatfs = 556; | ||
| 486 | pub const SYS_getfsstat = 557; | ||
| 487 | pub const SYS_fhstatfs = 558; | ||
| 488 | pub const SYS_mknodat = 559; | ||
| 489 | pub const SYS_kevent = 560; | ||
| 490 | pub const SYS_cpuset_getdomain = 561; | ||
| 491 | pub const SYS_cpuset_setdomain = 562; | ||
| 492 | pub const SYS_getrandom = 563; | ||
| 493 | pub const SYS_MAXSYSCALL = 564; | ||
std/os/freebsd/x86_64.zig-474| ... | @@ -2,481 +2,7 @@ const freebsd = @import("index.zig"); | ... | @@ -2,481 +2,7 @@ const freebsd = @import("index.zig"); |
| 2 | const socklen_t = freebsd.socklen_t; | 2 | const socklen_t = freebsd.socklen_t; |
| 3 | const iovec = freebsd.iovec; | 3 | const iovec = freebsd.iovec; |
| 4 | 4 | ||
| 5 | pub const SYS_syscall = 0; | ||
| 6 | pub const SYS_exit = 1; | ||
| 7 | pub const SYS_fork = 2; | ||
| 8 | pub const SYS_read = 3; | ||
| 9 | pub const SYS_write = 4; | ||
| 10 | pub const SYS_open = 5; | ||
| 11 | pub const SYS_close = 6; | ||
| 12 | pub const SYS_wait4 = 7; | ||
| 13 | // 8 is old creat | ||
| 14 | pub const SYS_link = 9; | ||
| 15 | pub const SYS_unlink = 10; | ||
| 16 | // 11 is obsolete execv | ||
| 17 | pub const SYS_chdir = 12; | ||
| 18 | pub const SYS_fchdir = 13; | ||
| 19 | pub const SYS_freebsd11_mknod = 14; | ||
| 20 | pub const SYS_chmod = 15; | ||
| 21 | pub const SYS_chown = 16; | ||
| 22 | pub const SYS_break = 17; | ||
| 23 | // 18 is freebsd4 getfsstat | ||
| 24 | // 19 is old lseek | ||
| 25 | pub const SYS_getpid = 20; | ||
| 26 | pub const SYS_mount = 21; | ||
| 27 | pub const SYS_unmount = 22; | ||
| 28 | pub const SYS_setuid = 23; | ||
| 29 | pub const SYS_getuid = 24; | ||
| 30 | pub const SYS_geteuid = 25; | ||
| 31 | pub const SYS_ptrace = 26; | ||
| 32 | pub const SYS_recvmsg = 27; | ||
| 33 | pub const SYS_sendmsg = 28; | ||
| 34 | pub const SYS_recvfrom = 29; | ||
| 35 | pub const SYS_accept = 30; | ||
| 36 | pub const SYS_getpeername = 31; | ||
| 37 | pub const SYS_getsockname = 32; | ||
| 38 | pub const SYS_access = 33; | ||
| 39 | pub const SYS_chflags = 34; | ||
| 40 | pub const SYS_fchflags = 35; | ||
| 41 | pub const SYS_sync = 36; | ||
| 42 | pub const SYS_kill = 37; | ||
| 43 | // 38 is old stat | ||
| 44 | pub const SYS_getppid = 39; | ||
| 45 | // 40 is old lstat | ||
| 46 | pub const SYS_dup = 41; | ||
| 47 | pub const SYS_freebsd10_pipe = 42; | ||
| 48 | pub const SYS_getegid = 43; | ||
| 49 | pub const SYS_profil = 44; | ||
| 50 | pub const SYS_ktrace = 45; | ||
| 51 | // 46 is old sigaction | ||
| 52 | pub const SYS_getgid = 47; | ||
| 53 | // 48 is old sigprocmask | ||
| 54 | pub const SYS_getlogin = 49; | ||
| 55 | pub const SYS_setlogin = 50; | ||
| 56 | pub const SYS_acct = 51; | ||
| 57 | // 52 is old sigpending | ||
| 58 | pub const SYS_sigaltstack = 53; | ||
| 59 | pub const SYS_ioctl = 54; | ||
| 60 | pub const SYS_reboot = 55; | ||
| 61 | pub const SYS_revoke = 56; | ||
| 62 | pub const SYS_symlink = 57; | ||
| 63 | pub const SYS_readlink = 58; | ||
| 64 | pub const SYS_execve = 59; | ||
| 65 | pub const SYS_umask = 60; | ||
| 66 | pub const SYS_chroot = 61; | ||
| 67 | // 62 is old fstat | ||
| 68 | // 63 is old getkerninfo | ||
| 69 | // 64 is old getpagesize | ||
| 70 | pub const SYS_msync = 65; | ||
| 71 | pub const SYS_vfork = 66; | ||
| 72 | // 67 is obsolete vread | ||
| 73 | // 68 is obsolete vwrite | ||
| 74 | pub const SYS_sbrk = 69; | 5 | pub const SYS_sbrk = 69; |
| 75 | pub const SYS_sstk = 70; | ||
| 76 | // 71 is old mmap | ||
| 77 | pub const SYS_vadvise = 72; | ||
| 78 | pub const SYS_munmap = 73; | ||
| 79 | pub const SYS_mprotect = 74; | ||
| 80 | pub const SYS_madvise = 75; | ||
| 81 | // 76 is obsolete vhangup | ||
| 82 | // 77 is obsolete vlimit | ||
| 83 | pub const SYS_mincore = 78; | ||
| 84 | pub const SYS_getgroups = 79; | ||
| 85 | pub const SYS_setgroups = 80; | ||
| 86 | pub const SYS_getpgrp = 81; | ||
| 87 | pub const SYS_setpgid = 82; | ||
| 88 | pub const SYS_setitimer = 83; | ||
| 89 | // 84 is old wait | ||
| 90 | pub const SYS_swapon = 85; | ||
| 91 | pub const SYS_getitimer = 86; | ||
| 92 | // 87 is old gethostname | ||
| 93 | // 88 is old sethostname | ||
| 94 | pub const SYS_getdtablesize = 89; | ||
| 95 | pub const SYS_dup2 = 90; | ||
| 96 | pub const SYS_fcntl = 92; | ||
| 97 | pub const SYS_select = 93; | ||
| 98 | pub const SYS_fsync = 95; | ||
| 99 | pub const SYS_setpriority = 96; | ||
| 100 | pub const SYS_socket = 97; | ||
| 101 | pub const SYS_connect = 98; | ||
| 102 | // 99 is old accept | ||
| 103 | pub const SYS_getpriority = 100; | ||
| 104 | // 101 is old send | ||
| 105 | // 102 is old recv | ||
| 106 | // 103 is old sigreturn | ||
| 107 | pub const SYS_bind = 104; | ||
| 108 | pub const SYS_setsockopt = 105; | ||
| 109 | pub const SYS_listen = 106; | ||
| 110 | // 107 is obsolete vtimes | ||
| 111 | // 108 is old sigvec | ||
| 112 | // 109 is old sigblock | ||
| 113 | // 110 is old sigsetmask | ||
| 114 | // 111 is old sigsuspend | ||
| 115 | // 112 is old sigstack | ||
| 116 | // 113 is old recvmsg | ||
| 117 | // 114 is old sendmsg | ||
| 118 | // 115 is obsolete vtrace | ||
| 119 | pub const SYS_gettimeofday = 116; | ||
| 120 | pub const SYS_getrusage = 117; | ||
| 121 | pub const SYS_getsockopt = 118; | ||
| 122 | pub const SYS_readv = 120; | ||
| 123 | pub const SYS_writev = 121; | ||
| 124 | pub const SYS_settimeofday = 122; | ||
| 125 | pub const SYS_fchown = 123; | ||
| 126 | pub const SYS_fchmod = 124; | ||
| 127 | // 125 is old recvfrom | ||
| 128 | pub const SYS_setreuid = 126; | ||
| 129 | pub const SYS_setregid = 127; | ||
| 130 | pub const SYS_rename = 128; | ||
| 131 | // 129 is old truncate | ||
| 132 | // 130 is old ftruncate | ||
| 133 | pub const SYS_flock = 131; | ||
| 134 | pub const SYS_mkfifo = 132; | ||
| 135 | pub const SYS_sendto = 133; | ||
| 136 | pub const SYS_shutdown = 134; | ||
| 137 | pub const SYS_socketpair = 135; | ||
| 138 | pub const SYS_mkdir = 136; | ||
| 139 | pub const SYS_rmdir = 137; | ||
| 140 | pub const SYS_utimes = 138; | ||
| 141 | // 139 is obsolete 4.2 sigreturn | ||
| 142 | pub const SYS_adjtime = 140; | ||
| 143 | // 141 is old getpeername | ||
| 144 | // 142 is old gethostid | ||
| 145 | // 143 is old sethostid | ||
| 146 | // 144 is old getrlimit | ||
| 147 | // 145 is old setrlimit | ||
| 148 | // 146 is old killpg | ||
| 149 | pub const SYS_setsid = 147; | ||
| 150 | pub const SYS_quotactl = 148; | ||
| 151 | // 149 is old quota | ||
| 152 | // 150 is old getsockname | ||
| 153 | pub const SYS_nlm_syscall = 154; | ||
| 154 | pub const SYS_nfssvc = 155; | ||
| 155 | // 156 is old getdirentries | ||
| 156 | // 157 is freebsd4 statfs | ||
| 157 | // 158 is freebsd4 fstatfs | ||
| 158 | pub const SYS_lgetfh = 160; | ||
| 159 | pub const SYS_getfh = 161; | ||
| 160 | // 162 is freebsd4 getdomainname | ||
| 161 | // 163 is freebsd4 setdomainname | ||
| 162 | // 164 is freebsd4 uname | ||
| 163 | pub const SYS_sysarch = 165; | ||
| 164 | pub const SYS_rtprio = 166; | ||
| 165 | pub const SYS_semsys = 169; | ||
| 166 | pub const SYS_msgsys = 170; | ||
| 167 | pub const SYS_shmsys = 171; | ||
| 168 | // 173 is freebsd6 pread | ||
| 169 | // 174 is freebsd6 pwrite | ||
| 170 | pub const SYS_setfib = 175; | ||
| 171 | pub const SYS_ntp_adjtime = 176; | ||
| 172 | pub const SYS_setgid = 181; | ||
| 173 | pub const SYS_setegid = 182; | ||
| 174 | pub const SYS_seteuid = 183; | ||
| 175 | pub const SYS_freebsd11_stat = 188; | ||
| 176 | pub const SYS_freebsd11_fstat = 189; | ||
| 177 | pub const SYS_freebsd11_lstat = 190; | ||
| 178 | pub const SYS_pathconf = 191; | ||
| 179 | pub const SYS_fpathconf = 192; | ||
| 180 | pub const SYS_getrlimit = 194; | ||
| 181 | pub const SYS_setrlimit = 195; | ||
| 182 | pub const SYS_freebsd11_getdirentries = 196; | ||
| 183 | // 197 is freebsd6 mmap | ||
| 184 | pub const SYS___syscall = 198; | ||
| 185 | // 199 is freebsd6 lseek | ||
| 186 | // 200 is freebsd6 truncate | ||
| 187 | // 201 is freebsd6 ftruncate | ||
| 188 | pub const SYS___sysctl = 202; | ||
| 189 | pub const SYS_mlock = 203; | ||
| 190 | pub const SYS_munlock = 204; | ||
| 191 | pub const SYS_undelete = 205; | ||
| 192 | pub const SYS_futimes = 206; | ||
| 193 | pub const SYS_getpgid = 207; | ||
| 194 | pub const SYS_poll = 209; | ||
| 195 | pub const SYS_freebsd7___semctl = 220; | ||
| 196 | pub const SYS_semget = 221; | ||
| 197 | pub const SYS_semop = 222; | ||
| 198 | pub const SYS_freebsd7_msgctl = 224; | ||
| 199 | pub const SYS_msgget = 225; | ||
| 200 | pub const SYS_msgsnd = 226; | ||
| 201 | pub const SYS_msgrcv = 227; | ||
| 202 | pub const SYS_shmat = 228; | ||
| 203 | pub const SYS_freebsd7_shmctl = 229; | ||
| 204 | pub const SYS_shmdt = 230; | ||
| 205 | pub const SYS_shmget = 231; | ||
| 206 | pub const SYS_clock_gettime = 232; | ||
| 207 | pub const SYS_clock_settime = 233; | ||
| 208 | pub const SYS_clock_getres = 234; | ||
| 209 | pub const SYS_ktimer_create = 235; | ||
| 210 | pub const SYS_ktimer_delete = 236; | ||
| 211 | pub const SYS_ktimer_settime = 237; | ||
| 212 | pub const SYS_ktimer_gettime = 238; | ||
| 213 | pub const SYS_ktimer_getoverrun = 239; | ||
| 214 | pub const SYS_nanosleep = 240; | ||
| 215 | pub const SYS_ffclock_getcounter = 241; | ||
| 216 | pub const SYS_ffclock_setestimate = 242; | ||
| 217 | pub const SYS_ffclock_getestimate = 243; | ||
| 218 | pub const SYS_clock_nanosleep = 244; | ||
| 219 | pub const SYS_clock_getcpuclockid2 = 247; | ||
| 220 | pub const SYS_ntp_gettime = 248; | ||
| 221 | pub const SYS_minherit = 250; | ||
| 222 | pub const SYS_rfork = 251; | ||
| 223 | // 252 is obsolete openbsd_poll | ||
| 224 | pub const SYS_issetugid = 253; | ||
| 225 | pub const SYS_lchown = 254; | ||
| 226 | pub const SYS_aio_read = 255; | ||
| 227 | pub const SYS_aio_write = 256; | ||
| 228 | pub const SYS_lio_listio = 257; | ||
| 229 | pub const SYS_freebsd11_getdents = 272; | ||
| 230 | pub const SYS_lchmod = 274; | ||
| 231 | pub const SYS_netbsd_lchown = 275; | ||
| 232 | pub const SYS_lutimes = 276; | ||
| 233 | pub const SYS_netbsd_msync = 277; | ||
| 234 | pub const SYS_freebsd11_nstat = 278; | ||
| 235 | pub const SYS_freebsd11_nfstat = 279; | ||
| 236 | pub const SYS_freebsd11_nlstat = 280; | ||
| 237 | pub const SYS_preadv = 289; | ||
| 238 | pub const SYS_pwritev = 290; | ||
| 239 | // 297 is freebsd4 fhstatfs | ||
| 240 | pub const SYS_fhopen = 298; | ||
| 241 | pub const SYS_freebsd11_fhstat = 299; | ||
| 242 | pub const SYS_modnext = 300; | ||
| 243 | pub const SYS_modstat = 301; | ||
| 244 | pub const SYS_modfnext = 302; | ||
| 245 | pub const SYS_modfind = 303; | ||
| 246 | pub const SYS_kldload = 304; | ||
| 247 | pub const SYS_kldunload = 305; | ||
| 248 | pub const SYS_kldfind = 306; | ||
| 249 | pub const SYS_kldnext = 307; | ||
| 250 | pub const SYS_kldstat = 308; | ||
| 251 | pub const SYS_kldfirstmod = 309; | ||
| 252 | pub const SYS_getsid = 310; | ||
| 253 | pub const SYS_setresuid = 311; | ||
| 254 | pub const SYS_setresgid = 312; | ||
| 255 | // 313 is obsolete signanosleep | ||
| 256 | pub const SYS_aio_return = 314; | ||
| 257 | pub const SYS_aio_suspend = 315; | ||
| 258 | pub const SYS_aio_cancel = 316; | ||
| 259 | pub const SYS_aio_error = 317; | ||
| 260 | // 318 is freebsd6 aio_read | ||
| 261 | // 319 is freebsd6 aio_write | ||
| 262 | // 320 is freebsd6 lio_listio | ||
| 263 | pub const SYS_yield = 321; | ||
| 264 | // 322 is obsolete thr_sleep | ||
| 265 | // 323 is obsolete thr_wakeup | ||
| 266 | pub const SYS_mlockall = 324; | ||
| 267 | pub const SYS_munlockall = 325; | ||
| 268 | pub const SYS___getcwd = 326; | ||
| 269 | pub const SYS_sched_setparam = 327; | ||
| 270 | pub const SYS_sched_getparam = 328; | ||
| 271 | pub const SYS_sched_setscheduler = 329; | ||
| 272 | pub const SYS_sched_getscheduler = 330; | ||
| 273 | pub const SYS_sched_yield = 331; | ||
| 274 | pub const SYS_sched_get_priority_max = 332; | ||
| 275 | pub const SYS_sched_get_priority_min = 333; | ||
| 276 | pub const SYS_sched_rr_get_interval = 334; | ||
| 277 | pub const SYS_utrace = 335; | ||
| 278 | // 336 is freebsd4 sendfile | ||
| 279 | pub const SYS_kldsym = 337; | ||
| 280 | pub const SYS_jail = 338; | ||
| 281 | pub const SYS_nnpfs_syscall = 339; | ||
| 282 | pub const SYS_sigprocmask = 340; | ||
| 283 | pub const SYS_sigsuspend = 341; | ||
| 284 | // 342 is freebsd4 sigaction | ||
| 285 | pub const SYS_sigpending = 343; | ||
| 286 | // 344 is freebsd4 sigreturn | ||
| 287 | pub const SYS_sigtimedwait = 345; | ||
| 288 | pub const SYS_sigwaitinfo = 346; | ||
| 289 | pub const SYS___acl_get_file = 347; | ||
| 290 | pub const SYS___acl_set_file = 348; | ||
| 291 | pub const SYS___acl_get_fd = 349; | ||
| 292 | pub const SYS___acl_set_fd = 350; | ||
| 293 | pub const SYS___acl_delete_file = 351; | ||
| 294 | pub const SYS___acl_delete_fd = 352; | ||
| 295 | pub const SYS___acl_aclcheck_file = 353; | ||
| 296 | pub const SYS___acl_aclcheck_fd = 354; | ||
| 297 | pub const SYS_extattrctl = 355; | ||
| 298 | pub const SYS_extattr_set_file = 356; | ||
| 299 | pub const SYS_extattr_get_file = 357; | ||
| 300 | pub const SYS_extattr_delete_file = 358; | ||
| 301 | pub const SYS_aio_waitcomplete = 359; | ||
| 302 | pub const SYS_getresuid = 360; | ||
| 303 | pub const SYS_getresgid = 361; | ||
| 304 | pub const SYS_kqueue = 362; | ||
| 305 | pub const SYS_freebsd11_kevent = 363; | ||
| 306 | pub const SYS_extattr_set_fd = 371; | ||
| 307 | pub const SYS_extattr_get_fd = 372; | ||
| 308 | pub const SYS_extattr_delete_fd = 373; | ||
| 309 | pub const SYS___setugid = 374; | ||
| 310 | pub const SYS_eaccess = 376; | ||
| 311 | pub const SYS_afs3_syscall = 377; | ||
| 312 | pub const SYS_nmount = 378; | ||
| 313 | pub const SYS___mac_get_proc = 384; | ||
| 314 | pub const SYS___mac_set_proc = 385; | ||
| 315 | pub const SYS___mac_get_fd = 386; | ||
| 316 | pub const SYS___mac_get_file = 387; | ||
| 317 | pub const SYS___mac_set_fd = 388; | ||
| 318 | pub const SYS___mac_set_file = 389; | ||
| 319 | pub const SYS_kenv = 390; | ||
| 320 | pub const SYS_lchflags = 391; | ||
| 321 | pub const SYS_uuidgen = 392; | ||
| 322 | pub const SYS_sendfile = 393; | ||
| 323 | pub const SYS_mac_syscall = 394; | ||
| 324 | pub const SYS_freebsd11_getfsstat = 395; | ||
| 325 | pub const SYS_freebsd11_statfs = 396; | ||
| 326 | pub const SYS_freebsd11_fstatfs = 397; | ||
| 327 | pub const SYS_freebsd11_fhstatfs = 398; | ||
| 328 | pub const SYS_ksem_close = 400; | ||
| 329 | pub const SYS_ksem_post = 401; | ||
| 330 | pub const SYS_ksem_wait = 402; | ||
| 331 | pub const SYS_ksem_trywait = 403; | ||
| 332 | pub const SYS_ksem_init = 404; | ||
| 333 | pub const SYS_ksem_open = 405; | ||
| 334 | pub const SYS_ksem_unlink = 406; | ||
| 335 | pub const SYS_ksem_getvalue = 407; | ||
| 336 | pub const SYS_ksem_destroy = 408; | ||
| 337 | pub const SYS___mac_get_pid = 409; | ||
| 338 | pub const SYS___mac_get_link = 410; | ||
| 339 | pub const SYS___mac_set_link = 411; | ||
| 340 | pub const SYS_extattr_set_link = 412; | ||
| 341 | pub const SYS_extattr_get_link = 413; | ||
| 342 | pub const SYS_extattr_delete_link = 414; | ||
| 343 | pub const SYS___mac_execve = 415; | ||
| 344 | pub const SYS_sigaction = 416; | ||
| 345 | pub const SYS_sigreturn = 417; | ||
| 346 | pub const SYS_getcontext = 421; | ||
| 347 | pub const SYS_setcontext = 422; | ||
| 348 | pub const SYS_swapcontext = 423; | ||
| 349 | pub const SYS_swapoff = 424; | ||
| 350 | pub const SYS___acl_get_link = 425; | ||
| 351 | pub const SYS___acl_set_link = 426; | ||
| 352 | pub const SYS___acl_delete_link = 427; | ||
| 353 | pub const SYS___acl_aclcheck_link = 428; | ||
| 354 | pub const SYS_sigwait = 429; | ||
| 355 | pub const SYS_thr_create = 430; | ||
| 356 | pub const SYS_thr_exit = 431; | ||
| 357 | pub const SYS_thr_self = 432; | ||
| 358 | pub const SYS_thr_kill = 433; | ||
| 359 | pub const SYS_jail_attach = 436; | ||
| 360 | pub const SYS_extattr_list_fd = 437; | ||
| 361 | pub const SYS_extattr_list_file = 438; | ||
| 362 | pub const SYS_extattr_list_link = 439; | ||
| 363 | pub const SYS_ksem_timedwait = 441; | ||
| 364 | pub const SYS_thr_suspend = 442; | ||
| 365 | pub const SYS_thr_wake = 443; | ||
| 366 | pub const SYS_kldunloadf = 444; | ||
| 367 | pub const SYS_audit = 445; | ||
| 368 | pub const SYS_auditon = 446; | ||
| 369 | pub const SYS_getauid = 447; | ||
| 370 | pub const SYS_setauid = 448; | ||
| 371 | pub const SYS_getaudit = 449; | ||
| 372 | pub const SYS_setaudit = 450; | ||
| 373 | pub const SYS_getaudit_addr = 451; | ||
| 374 | pub const SYS_setaudit_addr = 452; | ||
| 375 | pub const SYS_auditctl = 453; | ||
| 376 | pub const SYS__umtx_op = 454; | ||
| 377 | pub const SYS_thr_new = 455; | ||
| 378 | pub const SYS_sigqueue = 456; | ||
| 379 | pub const SYS_kmq_open = 457; | ||
| 380 | pub const SYS_kmq_setattr = 458; | ||
| 381 | pub const SYS_kmq_timedreceive = 459; | ||
| 382 | pub const SYS_kmq_timedsend = 460; | ||
| 383 | pub const SYS_kmq_notify = 461; | ||
| 384 | pub const SYS_kmq_unlink = 462; | ||
| 385 | pub const SYS_abort2 = 463; | ||
| 386 | pub const SYS_thr_set_name = 464; | ||
| 387 | pub const SYS_aio_fsync = 465; | ||
| 388 | pub const SYS_rtprio_thread = 466; | ||
| 389 | pub const SYS_sctp_peeloff = 471; | ||
| 390 | pub const SYS_sctp_generic_sendmsg = 472; | ||
| 391 | pub const SYS_sctp_generic_sendmsg_iov = 473; | ||
| 392 | pub const SYS_sctp_generic_recvmsg = 474; | ||
| 393 | pub const SYS_pread = 475; | ||
| 394 | pub const SYS_pwrite = 476; | ||
| 395 | pub const SYS_mmap = 477; | ||
| 396 | pub const SYS_lseek = 478; | ||
| 397 | pub const SYS_truncate = 479; | ||
| 398 | pub const SYS_ftruncate = 480; | ||
| 399 | pub const SYS_thr_kill2 = 481; | ||
| 400 | pub const SYS_shm_open = 482; | ||
| 401 | pub const SYS_shm_unlink = 483; | ||
| 402 | pub const SYS_cpuset = 484; | ||
| 403 | pub const SYS_cpuset_setid = 485; | ||
| 404 | pub const SYS_cpuset_getid = 486; | ||
| 405 | pub const SYS_cpuset_getaffinity = 487; | ||
| 406 | pub const SYS_cpuset_setaffinity = 488; | ||
| 407 | pub const SYS_faccessat = 489; | ||
| 408 | pub const SYS_fchmodat = 490; | ||
| 409 | pub const SYS_fchownat = 491; | ||
| 410 | pub const SYS_fexecve = 492; | ||
| 411 | pub const SYS_freebsd11_fstatat = 493; | ||
| 412 | pub const SYS_futimesat = 494; | ||
| 413 | pub const SYS_linkat = 495; | ||
| 414 | pub const SYS_mkdirat = 496; | ||
| 415 | pub const SYS_mkfifoat = 497; | ||
| 416 | pub const SYS_freebsd11_mknodat = 498; | ||
| 417 | pub const SYS_openat = 499; | ||
| 418 | pub const SYS_readlinkat = 500; | ||
| 419 | pub const SYS_renameat = 501; | ||
| 420 | pub const SYS_symlinkat = 502; | ||
| 421 | pub const SYS_unlinkat = 503; | ||
| 422 | pub const SYS_posix_openpt = 504; | ||
| 423 | pub const SYS_gssd_syscall = 505; | ||
| 424 | pub const SYS_jail_get = 506; | ||
| 425 | pub const SYS_jail_set = 507; | ||
| 426 | pub const SYS_jail_remove = 508; | ||
| 427 | pub const SYS_closefrom = 509; | ||
| 428 | pub const SYS___semctl = 510; | ||
| 429 | pub const SYS_msgctl = 511; | ||
| 430 | pub const SYS_shmctl = 512; | ||
| 431 | pub const SYS_lpathconf = 513; | ||
| 432 | // 514 is obsolete cap_new | ||
| 433 | pub const SYS___cap_rights_get = 515; | ||
| 434 | pub const SYS_cap_enter = 516; | ||
| 435 | pub const SYS_cap_getmode = 517; | ||
| 436 | pub const SYS_pdfork = 518; | ||
| 437 | pub const SYS_pdkill = 519; | ||
| 438 | pub const SYS_pdgetpid = 520; | ||
| 439 | pub const SYS_pselect = 522; | ||
| 440 | pub const SYS_getloginclass = 523; | ||
| 441 | pub const SYS_setloginclass = 524; | ||
| 442 | pub const SYS_rctl_get_racct = 525; | ||
| 443 | pub const SYS_rctl_get_rules = 526; | ||
| 444 | pub const SYS_rctl_get_limits = 527; | ||
| 445 | pub const SYS_rctl_add_rule = 528; | ||
| 446 | pub const SYS_rctl_remove_rule = 529; | ||
| 447 | pub const SYS_posix_fallocate = 530; | ||
| 448 | pub const SYS_posix_fadvise = 531; | ||
| 449 | pub const SYS_wait6 = 532; | ||
| 450 | pub const SYS_cap_rights_limit = 533; | ||
| 451 | pub const SYS_cap_ioctls_limit = 534; | ||
| 452 | pub const SYS_cap_ioctls_get = 535; | ||
| 453 | pub const SYS_cap_fcntls_limit = 536; | ||
| 454 | pub const SYS_cap_fcntls_get = 537; | ||
| 455 | pub const SYS_bindat = 538; | ||
| 456 | pub const SYS_connectat = 539; | ||
| 457 | pub const SYS_chflagsat = 540; | ||
| 458 | pub const SYS_accept4 = 541; | ||
| 459 | pub const SYS_pipe2 = 542; | ||
| 460 | pub const SYS_aio_mlock = 543; | ||
| 461 | pub const SYS_procctl = 544; | ||
| 462 | pub const SYS_ppoll = 545; | ||
| 463 | pub const SYS_futimens = 546; | ||
| 464 | pub const SYS_utimensat = 547; | ||
| 465 | pub const SYS_numa_getaffinity = 548; | ||
| 466 | pub const SYS_numa_setaffinity = 549; | ||
| 467 | pub const SYS_fdatasync = 550; | ||
| 468 | pub const SYS_fstat = 551; | ||
| 469 | pub const SYS_fstatat = 552; | ||
| 470 | pub const SYS_fhstat = 553; | ||
| 471 | pub const SYS_getdirentries = 554; | ||
| 472 | pub const SYS_statfs = 555; | ||
| 473 | pub const SYS_fstatfs = 556; | ||
| 474 | pub const SYS_getfsstat = 557; | ||
| 475 | pub const SYS_fhstatfs = 558; | ||
| 476 | pub const SYS_mknodat = 559; | ||
| 477 | pub const SYS_kevent = 560; | ||
| 478 | pub const SYS_MAXSYSCALL = 561; | ||
| 479 | pub const SYS_getrandom = 563; | ||
| 480 | 6 | ||
| 481 | pub const O_CREAT = 0o100; | 7 | pub const O_CREAT = 0o100; |
| 482 | pub const O_EXCL = 0o200; | 8 | pub const O_EXCL = 0o200; |