Auto merge of #818 - malbarbo:powerpc64le-test, r=alexcrichton
Add powerpc64le to CI
diff --git a/.travis.yml b/.travis.yml
index fe0e7e4..c60f092 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -44,7 +44,8 @@
osx_image: xcode8.3
- env: TARGET=arm-linux-androideabi
- env: TARGET=aarch64-linux-android
- - env: TARGET=i686-linux-android
+ # FIXME(#826) should reenable
+ #- env: TARGET=i686-linux-android
- env: TARGET=x86_64-linux-android
- env: TARGET=x86_64-unknown-linux-musl
- env: TARGET=i686-unknown-linux-musl
diff --git a/ci/android-accept-licenses.sh b/ci/android-accept-licenses.sh
deleted file mode 100755
index 8d8f60a..0000000
--- a/ci/android-accept-licenses.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/expect -f
-# ignore-license
-
-set timeout 1800
-set cmd [lindex $argv 0]
-set licenses [lindex $argv 1]
-
-spawn {*}$cmd
-expect {
- "Do you accept the license '*'*" {
- exp_send "y\r"
- exp_continue
- }
- eof
-}
diff --git a/ci/android-install-sdk.sh b/ci/android-install-sdk.sh
index 7e6147c..ab7e14d 100644
--- a/ci/android-install-sdk.sh
+++ b/ci/android-install-sdk.sh
@@ -19,10 +19,8 @@
# which apparently magically accepts the licenses.
mkdir sdk
-curl https://dl.google.com/android/repository/tools_r25.2.5-linux.zip -O
-unzip -d sdk tools_r25.2.5-linux.zip
-
-filter="platform-tools,android-24"
+curl https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O
+unzip -d sdk sdk-tools-linux-3859397.zip
case "$1" in
arm | armv7)
@@ -47,11 +45,16 @@
;;
esac;
-filter="$filter,sys-img-$abi-android-24"
+# --no_https avoids
+# javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
+echo "yes" | \
+ ./sdk/tools/bin/sdkmanager --no_https \
+ "emulator" \
+ "platform-tools" \
+ "platforms;android-24" \
+ "system-images;android-24;default;$abi"
-./android-accept-licenses.sh "android - update sdk -a --no-ui --filter $filter --no-https"
-
-echo "no" | android create avd \
- --name $1 \
- --target android-24 \
- --abi $abi
+echo "no" |
+ ./sdk/tools/bin/avdmanager create avd \
+ --name $1 \
+ --package "system-images;android-24;default;$abi"
diff --git a/ci/docker/aarch64-linux-android/Dockerfile b/ci/docker/aarch64-linux-android/Dockerfile
index 345540a..5fc83aa 100644
--- a/ci/docker/aarch64-linux-android/Dockerfile
+++ b/ci/docker/aarch64-linux-android/Dockerfile
@@ -25,7 +25,7 @@
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH
RUN mv /root/.android /tmp
RUN chmod 777 -R /tmp/.android
-RUN chmod 755 /android/sdk/tools/* /android/sdk/tools/qemu/linux-x86_64/*
+RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
ENV PATH=$PATH:/rust/bin \
CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android-gcc \
@@ -38,7 +38,7 @@
"-c", \
# set SHELL so android can detect a 64bits system, see
# http://stackoverflow.com/a/41789144
- "SHELL=/bin/dash emulator @aarch64 -no-window & \
+ "SHELL=/bin/dash /android/sdk/emulator/emulator @aarch64 -no-window & \
rustc /tmp/runtest.rs -o /tmp/runtest && \
exec \"$@\"", \
"--" \
diff --git a/ci/docker/arm-linux-androideabi/Dockerfile b/ci/docker/arm-linux-androideabi/Dockerfile
index 554f078..a3fc64b 100644
--- a/ci/docker/arm-linux-androideabi/Dockerfile
+++ b/ci/docker/arm-linux-androideabi/Dockerfile
@@ -25,7 +25,7 @@
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH
RUN mv /root/.android /tmp
RUN chmod 777 -R /tmp/.android
-RUN chmod 755 /android/sdk/tools/* /android/sdk/tools/qemu/linux-x86_64/*
+RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
ENV PATH=$PATH:/rust/bin \
CARGO_TARGET_ARM_LINUX_ANDROIDEABI_LINKER=arm-linux-androideabi-gcc \
@@ -38,7 +38,7 @@
"-c", \
# set SHELL so android can detect a 64bits system, see
# http://stackoverflow.com/a/41789144
- "SHELL=/bin/dash emulator @arm -no-window & \
+ "SHELL=/bin/dash /android/sdk/emulator/emulator @arm -no-window & \
rustc /tmp/runtest.rs -o /tmp/runtest && \
exec \"$@\"", \
"--" \
diff --git a/ci/docker/i686-linux-android/Dockerfile b/ci/docker/i686-linux-android/Dockerfile
index 7671f78..f0836c3 100644
--- a/ci/docker/i686-linux-android/Dockerfile
+++ b/ci/docker/i686-linux-android/Dockerfile
@@ -25,7 +25,7 @@
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH
RUN mv /root/.android /tmp
RUN chmod 777 -R /tmp/.android
-RUN chmod 755 /android/sdk/tools/* /android/sdk/tools/qemu/linux-x86_64/*
+RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
ENV PATH=$PATH:/rust/bin \
CARGO_TARGET_I686_LINUX_ANDROID_LINKER=i686-linux-android-gcc \
@@ -38,7 +38,7 @@
"-c", \
# set SHELL so android can detect a 64bits system, see
# http://stackoverflow.com/a/41789144
- "SHELL=/bin/dash emulator @i686 -no-window -no-accel & \
+ "SHELL=/bin/dash /android/sdk/emulator/emulator @i686 -no-window -no-accel & \
rustc /tmp/runtest.rs -o /tmp/runtest && \
exec \"$@\"", \
"--" \
diff --git a/libc-test/build.rs b/libc-test/build.rs
index b7f7890..22b4f7c 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -9,6 +9,7 @@
let aarch64 = target.contains("aarch64");
let i686 = target.contains("i686");
let x86_64 = target.contains("x86_64");
+ let x32 = target.ends_with("gnux32");
let windows = target.contains("windows");
let mingw = target.contains("windows-gnu");
let linux = target.contains("unknown-linux");
@@ -135,9 +136,10 @@
cfg.header("sys/quota.h");
}
- if !musl {
+ if !musl && !x32 {
cfg.header("sys/sysctl.h");
}
+
if !musl && !uclibc {
if !netbsd && !openbsd && !uclibc {
@@ -190,7 +192,6 @@
cfg.header("sys/msg.h");
cfg.header("sys/shm.h");
cfg.header("sys/user.h");
- cfg.header("sys/fsuid.h");
cfg.header("sys/timerfd.h");
cfg.header("shadow.h");
if !emscripten {
@@ -241,6 +242,8 @@
}
if linux || android {
+ cfg.header("sys/fsuid.h");
+
// DCCP support
if !uclibc && !musl && !emscripten {
cfg.header("linux/dccp.h");
@@ -377,6 +380,10 @@
// FIXME: unskip it for next major release
"stat" | "stat64" if android => true,
+ // These are tested as part of the linux_fcntl tests since there are
+ // header conflicts when including them with all the other structs.
+ "termios2" => true,
+
_ => false
}
});
@@ -489,6 +496,7 @@
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => true,
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW" | "F_SEAL_WRITE" => true,
"QFMT_VFS_OLD" | "QFMT_VFS_V0" | "QFMT_VFS_V1" if mips && linux => true, // Only on MIPS
+ "BOTHER" => true,
_ => false,
}
@@ -670,8 +678,7 @@
// fails on a lot of platforms.
let mut cfg = ctest::TestGenerator::new();
cfg.skip_type(|_| true)
- .skip_struct(|_| true)
- .skip_fn(|_| true);
+ .skip_fn(|_| true);
if android || linux {
// musl defines these directly in `fcntl.h`
if musl {
@@ -684,16 +691,28 @@
cfg.header("linux/if.h");
}
cfg.header("linux/quota.h");
+ cfg.header("asm/termbits.h");
cfg.skip_const(move |name| {
match name {
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => false,
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW" | "F_SEAL_WRITE" => false,
"QFMT_VFS_OLD" | "QFMT_VFS_V0" | "QFMT_VFS_V1" if mips && linux => false,
+ "BOTHER" => false,
_ => true,
}
});
+ cfg.skip_struct(|s| {
+ s != "termios2"
+ });
+ cfg.type_name(move |ty, is_struct| {
+ match ty {
+ t if is_struct => format!("struct {}", t),
+ t => t.to_string(),
+ }
+ });
} else {
cfg.skip_const(|_| true);
+ cfg.skip_struct(|_| true);
}
cfg.generate("../src/lib.rs", "linux_fcntl.rs");
}
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs
index ab256d1..a9f9fa8 100644
--- a/src/unix/bsd/mod.rs
+++ b/src/unix/bsd/mod.rs
@@ -491,6 +491,9 @@
oldset: *mut sigset_t) -> ::c_int;
pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t;
pub fn getgrnam(name: *const ::c_char) -> *mut ::group;
+ #[cfg_attr(all(target_os = "macos", target_arch = "x86"),
+ link_name = "pthread_cancel$UNIX2003")]
+ pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
pub fn sem_unlink(name: *const ::c_char) -> ::c_int;
pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int;
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index c2638e7..cc9798c 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -649,13 +649,13 @@
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
-pub const EVFILT_AIO: ::int32_t = 2;
-pub const EVFILT_PROC: ::int32_t = 4;
-pub const EVFILT_READ: ::int32_t = 0;
-pub const EVFILT_SIGNAL: ::int32_t = 5;
-pub const EVFILT_TIMER: ::int32_t = 6;
-pub const EVFILT_VNODE: ::int32_t = 3;
-pub const EVFILT_WRITE: ::int32_t = 1;
+pub const EVFILT_AIO: ::uint32_t = 2;
+pub const EVFILT_PROC: ::uint32_t = 4;
+pub const EVFILT_READ: ::uint32_t = 0;
+pub const EVFILT_SIGNAL: ::uint32_t = 5;
+pub const EVFILT_TIMER: ::uint32_t = 6;
+pub const EVFILT_VNODE: ::uint32_t = 3;
+pub const EVFILT_WRITE: ::uint32_t = 1;
pub const EV_ADD: ::uint32_t = 0x1;
pub const EV_DELETE: ::uint32_t = 0x2;
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index c2a45ff..d326d88 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -34,9 +34,14 @@
pub tv_usec: suseconds_t,
}
+ // linux x32 compatibility
+ // See https://sourceware.org/bugzilla/show_bug.cgi?id=16437
pub struct timespec {
pub tv_sec: time_t,
- pub tv_nsec: c_long,
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
+ pub tv_nsec: i64,
+ #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
+ pub tv_nsec: ::c_long,
}
pub struct rlimit {
diff --git a/src/unix/notbsd/android/b32/arm.rs b/src/unix/notbsd/android/b32/arm.rs
index 395d734..1320b16 100644
--- a/src/unix/notbsd/android/b32/arm.rs
+++ b/src/unix/notbsd/android/b32/arm.rs
@@ -6,352 +6,352 @@
pub const O_NOFOLLOW: ::c_int = 0x8000;
pub const O_LARGEFILE: ::c_int = 0o400000;
-pub const SYS_restart_syscall: ::c_ulong = 0;
-pub const SYS_exit: ::c_ulong = 1;
-pub const SYS_fork: ::c_ulong = 2;
-pub const SYS_read: ::c_ulong = 3;
-pub const SYS_write: ::c_ulong = 4;
-pub const SYS_open: ::c_ulong = 5;
-pub const SYS_close: ::c_ulong = 6;
-pub const SYS_creat: ::c_ulong = 8;
-pub const SYS_link: ::c_ulong = 9;
-pub const SYS_unlink: ::c_ulong = 10;
-pub const SYS_execve: ::c_ulong = 11;
-pub const SYS_chdir: ::c_ulong = 12;
-pub const SYS_mknod: ::c_ulong = 14;
-pub const SYS_chmod: ::c_ulong = 15;
-pub const SYS_lchown: ::c_ulong = 16;
-pub const SYS_lseek: ::c_ulong = 19;
-pub const SYS_getpid: ::c_ulong = 20;
-pub const SYS_mount: ::c_ulong = 21;
-pub const SYS_setuid: ::c_ulong = 23;
-pub const SYS_getuid: ::c_ulong = 24;
-pub const SYS_ptrace: ::c_ulong = 26;
-pub const SYS_pause: ::c_ulong = 29;
-pub const SYS_access: ::c_ulong = 33;
-pub const SYS_nice: ::c_ulong = 34;
-pub const SYS_sync: ::c_ulong = 36;
-pub const SYS_kill: ::c_ulong = 37;
-pub const SYS_rename: ::c_ulong = 38;
-pub const SYS_mkdir: ::c_ulong = 39;
-pub const SYS_rmdir: ::c_ulong = 40;
-pub const SYS_dup: ::c_ulong = 41;
-pub const SYS_pipe: ::c_ulong = 42;
-pub const SYS_times: ::c_ulong = 43;
-pub const SYS_brk: ::c_ulong = 45;
-pub const SYS_setgid: ::c_ulong = 46;
-pub const SYS_getgid: ::c_ulong = 47;
-pub const SYS_geteuid: ::c_ulong = 49;
-pub const SYS_getegid: ::c_ulong = 50;
-pub const SYS_acct: ::c_ulong = 51;
-pub const SYS_umount2: ::c_ulong = 52;
-pub const SYS_ioctl: ::c_ulong = 54;
-pub const SYS_fcntl: ::c_ulong = 55;
-pub const SYS_setpgid: ::c_ulong = 57;
-pub const SYS_umask: ::c_ulong = 60;
-pub const SYS_chroot: ::c_ulong = 61;
-pub const SYS_ustat: ::c_ulong = 62;
-pub const SYS_dup2: ::c_ulong = 63;
-pub const SYS_getppid: ::c_ulong = 64;
-pub const SYS_getpgrp: ::c_ulong = 65;
-pub const SYS_setsid: ::c_ulong = 66;
-pub const SYS_sigaction: ::c_ulong = 67;
-pub const SYS_setreuid: ::c_ulong = 70;
-pub const SYS_setregid: ::c_ulong = 71;
-pub const SYS_sigsuspend: ::c_ulong = 72;
-pub const SYS_sigpending: ::c_ulong = 73;
-pub const SYS_sethostname: ::c_ulong = 74;
-pub const SYS_setrlimit: ::c_ulong = 75;
-pub const SYS_getrusage: ::c_ulong = 77;
-pub const SYS_gettimeofday: ::c_ulong = 78;
-pub const SYS_settimeofday: ::c_ulong = 79;
-pub const SYS_getgroups: ::c_ulong = 80;
-pub const SYS_setgroups: ::c_ulong = 81;
-pub const SYS_symlink: ::c_ulong = 83;
-pub const SYS_readlink: ::c_ulong = 85;
-pub const SYS_uselib: ::c_ulong = 86;
-pub const SYS_swapon: ::c_ulong = 87;
-pub const SYS_reboot: ::c_ulong = 88;
-pub const SYS_munmap: ::c_ulong = 91;
-pub const SYS_truncate: ::c_ulong = 92;
-pub const SYS_ftruncate: ::c_ulong = 93;
-pub const SYS_fchmod: ::c_ulong = 94;
-pub const SYS_fchown: ::c_ulong = 95;
-pub const SYS_getpriority: ::c_ulong = 96;
-pub const SYS_setpriority: ::c_ulong = 97;
-pub const SYS_statfs: ::c_ulong = 99;
-pub const SYS_fstatfs: ::c_ulong = 100;
-pub const SYS_syslog: ::c_ulong = 103;
-pub const SYS_setitimer: ::c_ulong = 104;
-pub const SYS_getitimer: ::c_ulong = 105;
-pub const SYS_stat: ::c_ulong = 106;
-pub const SYS_lstat: ::c_ulong = 107;
-pub const SYS_fstat: ::c_ulong = 108;
-pub const SYS_vhangup: ::c_ulong = 111;
-pub const SYS_wait4: ::c_ulong = 114;
-pub const SYS_swapoff: ::c_ulong = 115;
-pub const SYS_sysinfo: ::c_ulong = 116;
-pub const SYS_fsync: ::c_ulong = 118;
-pub const SYS_sigreturn: ::c_ulong = 119;
-pub const SYS_clone: ::c_ulong = 120;
-pub const SYS_setdomainname: ::c_ulong = 121;
-pub const SYS_uname: ::c_ulong = 122;
-pub const SYS_adjtimex: ::c_ulong = 124;
-pub const SYS_mprotect: ::c_ulong = 125;
-pub const SYS_sigprocmask: ::c_ulong = 126;
-pub const SYS_init_module: ::c_ulong = 128;
-pub const SYS_delete_module: ::c_ulong = 129;
-pub const SYS_quotactl: ::c_ulong = 131;
-pub const SYS_getpgid: ::c_ulong = 132;
-pub const SYS_fchdir: ::c_ulong = 133;
-pub const SYS_bdflush: ::c_ulong = 134;
-pub const SYS_sysfs: ::c_ulong = 135;
-pub const SYS_personality: ::c_ulong = 136;
-pub const SYS_setfsuid: ::c_ulong = 138;
-pub const SYS_setfsgid: ::c_ulong = 139;
-pub const SYS_getdents: ::c_ulong = 141;
-pub const SYS_flock: ::c_ulong = 143;
-pub const SYS_msync: ::c_ulong = 144;
-pub const SYS_readv: ::c_ulong = 145;
-pub const SYS_writev: ::c_ulong = 146;
-pub const SYS_getsid: ::c_ulong = 147;
-pub const SYS_fdatasync: ::c_ulong = 148;
-pub const SYS_mlock: ::c_ulong = 150;
-pub const SYS_munlock: ::c_ulong = 151;
-pub const SYS_mlockall: ::c_ulong = 152;
-pub const SYS_munlockall: ::c_ulong = 153;
-pub const SYS_sched_setparam: ::c_ulong = 154;
-pub const SYS_sched_getparam: ::c_ulong = 155;
-pub const SYS_sched_setscheduler: ::c_ulong = 156;
-pub const SYS_sched_getscheduler: ::c_ulong = 157;
-pub const SYS_sched_yield: ::c_ulong = 158;
-pub const SYS_sched_get_priority_max: ::c_ulong = 159;
-pub const SYS_sched_get_priority_min: ::c_ulong = 160;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 161;
-pub const SYS_nanosleep: ::c_ulong = 162;
-pub const SYS_mremap: ::c_ulong = 163;
-pub const SYS_setresuid: ::c_ulong = 164;
-pub const SYS_getresuid: ::c_ulong = 165;
-pub const SYS_poll: ::c_ulong = 168;
-pub const SYS_nfsservctl: ::c_ulong = 169;
-pub const SYS_setresgid: ::c_ulong = 170;
-pub const SYS_getresgid: ::c_ulong = 171;
-pub const SYS_prctl: ::c_ulong = 172;
-pub const SYS_rt_sigreturn: ::c_ulong = 173;
-pub const SYS_rt_sigaction: ::c_ulong = 174;
-pub const SYS_rt_sigprocmask: ::c_ulong = 175;
-pub const SYS_rt_sigpending: ::c_ulong = 176;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 177;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 178;
-pub const SYS_rt_sigsuspend: ::c_ulong = 179;
-pub const SYS_pread64: ::c_ulong = 180;
-pub const SYS_pwrite64: ::c_ulong = 181;
-pub const SYS_chown: ::c_ulong = 182;
-pub const SYS_getcwd: ::c_ulong = 183;
-pub const SYS_capget: ::c_ulong = 184;
-pub const SYS_capset: ::c_ulong = 185;
-pub const SYS_sigaltstack: ::c_ulong = 186;
-pub const SYS_sendfile: ::c_ulong = 187;
-pub const SYS_vfork: ::c_ulong = 190;
-pub const SYS_ugetrlimit: ::c_ulong = 191;
-pub const SYS_mmap2: ::c_ulong = 192;
-pub const SYS_truncate64: ::c_ulong = 193;
-pub const SYS_ftruncate64: ::c_ulong = 194;
-pub const SYS_stat64: ::c_ulong = 195;
-pub const SYS_lstat64: ::c_ulong = 196;
-pub const SYS_fstat64: ::c_ulong = 197;
-pub const SYS_lchown32: ::c_ulong = 198;
-pub const SYS_getuid32: ::c_ulong = 199;
-pub const SYS_getgid32: ::c_ulong = 200;
-pub const SYS_geteuid32: ::c_ulong = 201;
-pub const SYS_getegid32: ::c_ulong = 202;
-pub const SYS_setreuid32: ::c_ulong = 203;
-pub const SYS_setregid32: ::c_ulong = 204;
-pub const SYS_getgroups32: ::c_ulong = 205;
-pub const SYS_setgroups32: ::c_ulong = 206;
-pub const SYS_fchown32: ::c_ulong = 207;
-pub const SYS_setresuid32: ::c_ulong = 208;
-pub const SYS_getresuid32: ::c_ulong = 209;
-pub const SYS_setresgid32: ::c_ulong = 210;
-pub const SYS_getresgid32: ::c_ulong = 211;
-pub const SYS_chown32: ::c_ulong = 212;
-pub const SYS_setuid32: ::c_ulong = 213;
-pub const SYS_setgid32: ::c_ulong = 214;
-pub const SYS_setfsuid32: ::c_ulong = 215;
-pub const SYS_setfsgid32: ::c_ulong = 216;
-pub const SYS_getdents64: ::c_ulong = 217;
-pub const SYS_pivot_root: ::c_ulong = 218;
-pub const SYS_mincore: ::c_ulong = 219;
-pub const SYS_madvise: ::c_ulong = 220;
-pub const SYS_fcntl64: ::c_ulong = 221;
-pub const SYS_gettid: ::c_ulong = 224;
-pub const SYS_readahead: ::c_ulong = 225;
-pub const SYS_setxattr: ::c_ulong = 226;
-pub const SYS_lsetxattr: ::c_ulong = 227;
-pub const SYS_fsetxattr: ::c_ulong = 228;
-pub const SYS_getxattr: ::c_ulong = 229;
-pub const SYS_lgetxattr: ::c_ulong = 230;
-pub const SYS_fgetxattr: ::c_ulong = 231;
-pub const SYS_listxattr: ::c_ulong = 232;
-pub const SYS_llistxattr: ::c_ulong = 233;
-pub const SYS_flistxattr: ::c_ulong = 234;
-pub const SYS_removexattr: ::c_ulong = 235;
-pub const SYS_lremovexattr: ::c_ulong = 236;
-pub const SYS_fremovexattr: ::c_ulong = 237;
-pub const SYS_tkill: ::c_ulong = 238;
-pub const SYS_sendfile64: ::c_ulong = 239;
-pub const SYS_futex: ::c_ulong = 240;
-pub const SYS_sched_setaffinity: ::c_ulong = 241;
-pub const SYS_sched_getaffinity: ::c_ulong = 242;
-pub const SYS_io_setup: ::c_ulong = 243;
-pub const SYS_io_destroy: ::c_ulong = 244;
-pub const SYS_io_getevents: ::c_ulong = 245;
-pub const SYS_io_submit: ::c_ulong = 246;
-pub const SYS_io_cancel: ::c_ulong = 247;
-pub const SYS_exit_group: ::c_ulong = 248;
-pub const SYS_lookup_dcookie: ::c_ulong = 249;
-pub const SYS_epoll_create: ::c_ulong = 250;
-pub const SYS_epoll_ctl: ::c_ulong = 251;
-pub const SYS_epoll_wait: ::c_ulong = 252;
-pub const SYS_remap_file_pages: ::c_ulong = 253;
-pub const SYS_set_tid_address: ::c_ulong = 256;
-pub const SYS_timer_create: ::c_ulong = 257;
-pub const SYS_timer_settime: ::c_ulong = 258;
-pub const SYS_timer_gettime: ::c_ulong = 259;
-pub const SYS_timer_getoverrun: ::c_ulong = 260;
-pub const SYS_timer_delete: ::c_ulong = 261;
-pub const SYS_clock_settime: ::c_ulong = 262;
-pub const SYS_clock_gettime: ::c_ulong = 263;
-pub const SYS_clock_getres: ::c_ulong = 264;
-pub const SYS_clock_nanosleep: ::c_ulong = 265;
-pub const SYS_statfs64: ::c_ulong = 266;
-pub const SYS_fstatfs64: ::c_ulong = 267;
-pub const SYS_tgkill: ::c_ulong = 268;
-pub const SYS_utimes: ::c_ulong = 269;
-pub const SYS_arm_fadvise64_64: ::c_ulong = 270;
-pub const SYS_pciconfig_iobase: ::c_ulong = 271;
-pub const SYS_pciconfig_read: ::c_ulong = 272;
-pub const SYS_pciconfig_write: ::c_ulong = 273;
-pub const SYS_mq_open: ::c_ulong = 274;
-pub const SYS_mq_unlink: ::c_ulong = 275;
-pub const SYS_mq_timedsend: ::c_ulong = 276;
-pub const SYS_mq_timedreceive: ::c_ulong = 277;
-pub const SYS_mq_notify: ::c_ulong = 278;
-pub const SYS_mq_getsetattr: ::c_ulong = 279;
-pub const SYS_waitid: ::c_ulong = 280;
-pub const SYS_socket: ::c_ulong = 281;
-pub const SYS_bind: ::c_ulong = 282;
-pub const SYS_connect: ::c_ulong = 283;
-pub const SYS_listen: ::c_ulong = 284;
-pub const SYS_accept: ::c_ulong = 285;
-pub const SYS_getsockname: ::c_ulong = 286;
-pub const SYS_getpeername: ::c_ulong = 287;
-pub const SYS_socketpair: ::c_ulong = 288;
-pub const SYS_send: ::c_ulong = 289;
-pub const SYS_sendto: ::c_ulong = 290;
-pub const SYS_recv: ::c_ulong = 291;
-pub const SYS_recvfrom: ::c_ulong = 292;
-pub const SYS_shutdown: ::c_ulong = 293;
-pub const SYS_setsockopt: ::c_ulong = 294;
-pub const SYS_getsockopt: ::c_ulong = 295;
-pub const SYS_sendmsg: ::c_ulong = 296;
-pub const SYS_recvmsg: ::c_ulong = 297;
-pub const SYS_semop: ::c_ulong = 298;
-pub const SYS_semget: ::c_ulong = 299;
-pub const SYS_semctl: ::c_ulong = 300;
-pub const SYS_msgsnd: ::c_ulong = 301;
-pub const SYS_msgrcv: ::c_ulong = 302;
-pub const SYS_msgget: ::c_ulong = 303;
-pub const SYS_msgctl: ::c_ulong = 304;
-pub const SYS_shmat: ::c_ulong = 305;
-pub const SYS_shmdt: ::c_ulong = 306;
-pub const SYS_shmget: ::c_ulong = 307;
-pub const SYS_shmctl: ::c_ulong = 308;
-pub const SYS_add_key: ::c_ulong = 309;
-pub const SYS_request_key: ::c_ulong = 310;
-pub const SYS_keyctl: ::c_ulong = 311;
-pub const SYS_semtimedop: ::c_ulong = 312;
-pub const SYS_vserver: ::c_ulong = 313;
-pub const SYS_ioprio_set: ::c_ulong = 314;
-pub const SYS_ioprio_get: ::c_ulong = 315;
-pub const SYS_inotify_init: ::c_ulong = 316;
-pub const SYS_inotify_add_watch: ::c_ulong = 317;
-pub const SYS_inotify_rm_watch: ::c_ulong = 318;
-pub const SYS_mbind: ::c_ulong = 319;
-pub const SYS_get_mempolicy: ::c_ulong = 320;
-pub const SYS_set_mempolicy: ::c_ulong = 321;
-pub const SYS_openat: ::c_ulong = 322;
-pub const SYS_mkdirat: ::c_ulong = 323;
-pub const SYS_mknodat: ::c_ulong = 324;
-pub const SYS_fchownat: ::c_ulong = 325;
-pub const SYS_futimesat: ::c_ulong = 326;
-pub const SYS_fstatat64: ::c_ulong = 327;
-pub const SYS_unlinkat: ::c_ulong = 328;
-pub const SYS_renameat: ::c_ulong = 329;
-pub const SYS_linkat: ::c_ulong = 330;
-pub const SYS_symlinkat: ::c_ulong = 331;
-pub const SYS_readlinkat: ::c_ulong = 332;
-pub const SYS_fchmodat: ::c_ulong = 333;
-pub const SYS_faccessat: ::c_ulong = 334;
-pub const SYS_pselect6: ::c_ulong = 335;
-pub const SYS_ppoll: ::c_ulong = 336;
-pub const SYS_unshare: ::c_ulong = 337;
-pub const SYS_set_robust_list: ::c_ulong = 338;
-pub const SYS_get_robust_list: ::c_ulong = 339;
-pub const SYS_splice: ::c_ulong = 340;
-pub const SYS_arm_sync_file_range: ::c_ulong = 341;
-pub const SYS_tee: ::c_ulong = 342;
-pub const SYS_vmsplice: ::c_ulong = 343;
-pub const SYS_move_pages: ::c_ulong = 344;
-pub const SYS_getcpu: ::c_ulong = 345;
-pub const SYS_epoll_pwait: ::c_ulong = 346;
-pub const SYS_kexec_load: ::c_ulong = 347;
-pub const SYS_utimensat: ::c_ulong = 348;
-pub const SYS_signalfd: ::c_ulong = 349;
-pub const SYS_timerfd_create: ::c_ulong = 350;
-pub const SYS_eventfd: ::c_ulong = 351;
-pub const SYS_fallocate: ::c_ulong = 352;
-pub const SYS_timerfd_settime: ::c_ulong = 353;
-pub const SYS_timerfd_gettime: ::c_ulong = 354;
-pub const SYS_signalfd4: ::c_ulong = 355;
-pub const SYS_eventfd2: ::c_ulong = 356;
-pub const SYS_epoll_create1: ::c_ulong = 357;
-pub const SYS_dup3: ::c_ulong = 358;
-pub const SYS_pipe2: ::c_ulong = 359;
-pub const SYS_inotify_init1: ::c_ulong = 360;
-pub const SYS_preadv: ::c_ulong = 361;
-pub const SYS_pwritev: ::c_ulong = 362;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 363;
-pub const SYS_perf_event_open: ::c_ulong = 364;
-pub const SYS_recvmmsg: ::c_ulong = 365;
-pub const SYS_accept4: ::c_ulong = 366;
-pub const SYS_fanotify_init: ::c_ulong = 367;
-pub const SYS_fanotify_mark: ::c_ulong = 368;
-pub const SYS_prlimit64: ::c_ulong = 369;
-pub const SYS_name_to_handle_at: ::c_ulong = 370;
-pub const SYS_open_by_handle_at: ::c_ulong = 371;
-pub const SYS_clock_adjtime: ::c_ulong = 372;
-pub const SYS_syncfs: ::c_ulong = 373;
-pub const SYS_sendmmsg: ::c_ulong = 374;
-pub const SYS_setns: ::c_ulong = 375;
-pub const SYS_process_vm_readv: ::c_ulong = 376;
-pub const SYS_process_vm_writev: ::c_ulong = 377;
-pub const SYS_kcmp: ::c_ulong = 378;
-pub const SYS_finit_module: ::c_ulong = 379;
-pub const SYS_sched_setattr: ::c_ulong = 380;
-pub const SYS_sched_getattr: ::c_ulong = 381;
-pub const SYS_renameat2: ::c_ulong = 382;
-pub const SYS_seccomp: ::c_ulong = 383;
-pub const SYS_getrandom: ::c_ulong = 384;
-pub const SYS_memfd_create: ::c_ulong = 385;
-pub const SYS_bpf: ::c_ulong = 386;
-pub const SYS_execveat: ::c_ulong = 387;
-pub const SYS_userfaultfd: ::c_ulong = 388;
-pub const SYS_membarrier: ::c_ulong = 389;
-pub const SYS_mlock2: ::c_ulong = 390;
-pub const SYS_copy_file_range: ::c_ulong = 391;
-pub const SYS_preadv2: ::c_ulong = 392;
-pub const SYS_pwritev2: ::c_ulong = 393;
-pub const SYS_pkey_mprotect: ::c_ulong = 394;
-pub const SYS_pkey_alloc: ::c_ulong = 395;
-pub const SYS_pkey_free: ::c_ulong = 396;
+pub const SYS_restart_syscall: ::c_long = 0;
+pub const SYS_exit: ::c_long = 1;
+pub const SYS_fork: ::c_long = 2;
+pub const SYS_read: ::c_long = 3;
+pub const SYS_write: ::c_long = 4;
+pub const SYS_open: ::c_long = 5;
+pub const SYS_close: ::c_long = 6;
+pub const SYS_creat: ::c_long = 8;
+pub const SYS_link: ::c_long = 9;
+pub const SYS_unlink: ::c_long = 10;
+pub const SYS_execve: ::c_long = 11;
+pub const SYS_chdir: ::c_long = 12;
+pub const SYS_mknod: ::c_long = 14;
+pub const SYS_chmod: ::c_long = 15;
+pub const SYS_lchown: ::c_long = 16;
+pub const SYS_lseek: ::c_long = 19;
+pub const SYS_getpid: ::c_long = 20;
+pub const SYS_mount: ::c_long = 21;
+pub const SYS_setuid: ::c_long = 23;
+pub const SYS_getuid: ::c_long = 24;
+pub const SYS_ptrace: ::c_long = 26;
+pub const SYS_pause: ::c_long = 29;
+pub const SYS_access: ::c_long = 33;
+pub const SYS_nice: ::c_long = 34;
+pub const SYS_sync: ::c_long = 36;
+pub const SYS_kill: ::c_long = 37;
+pub const SYS_rename: ::c_long = 38;
+pub const SYS_mkdir: ::c_long = 39;
+pub const SYS_rmdir: ::c_long = 40;
+pub const SYS_dup: ::c_long = 41;
+pub const SYS_pipe: ::c_long = 42;
+pub const SYS_times: ::c_long = 43;
+pub const SYS_brk: ::c_long = 45;
+pub const SYS_setgid: ::c_long = 46;
+pub const SYS_getgid: ::c_long = 47;
+pub const SYS_geteuid: ::c_long = 49;
+pub const SYS_getegid: ::c_long = 50;
+pub const SYS_acct: ::c_long = 51;
+pub const SYS_umount2: ::c_long = 52;
+pub const SYS_ioctl: ::c_long = 54;
+pub const SYS_fcntl: ::c_long = 55;
+pub const SYS_setpgid: ::c_long = 57;
+pub const SYS_umask: ::c_long = 60;
+pub const SYS_chroot: ::c_long = 61;
+pub const SYS_ustat: ::c_long = 62;
+pub const SYS_dup2: ::c_long = 63;
+pub const SYS_getppid: ::c_long = 64;
+pub const SYS_getpgrp: ::c_long = 65;
+pub const SYS_setsid: ::c_long = 66;
+pub const SYS_sigaction: ::c_long = 67;
+pub const SYS_setreuid: ::c_long = 70;
+pub const SYS_setregid: ::c_long = 71;
+pub const SYS_sigsuspend: ::c_long = 72;
+pub const SYS_sigpending: ::c_long = 73;
+pub const SYS_sethostname: ::c_long = 74;
+pub const SYS_setrlimit: ::c_long = 75;
+pub const SYS_getrusage: ::c_long = 77;
+pub const SYS_gettimeofday: ::c_long = 78;
+pub const SYS_settimeofday: ::c_long = 79;
+pub const SYS_getgroups: ::c_long = 80;
+pub const SYS_setgroups: ::c_long = 81;
+pub const SYS_symlink: ::c_long = 83;
+pub const SYS_readlink: ::c_long = 85;
+pub const SYS_uselib: ::c_long = 86;
+pub const SYS_swapon: ::c_long = 87;
+pub const SYS_reboot: ::c_long = 88;
+pub const SYS_munmap: ::c_long = 91;
+pub const SYS_truncate: ::c_long = 92;
+pub const SYS_ftruncate: ::c_long = 93;
+pub const SYS_fchmod: ::c_long = 94;
+pub const SYS_fchown: ::c_long = 95;
+pub const SYS_getpriority: ::c_long = 96;
+pub const SYS_setpriority: ::c_long = 97;
+pub const SYS_statfs: ::c_long = 99;
+pub const SYS_fstatfs: ::c_long = 100;
+pub const SYS_syslog: ::c_long = 103;
+pub const SYS_setitimer: ::c_long = 104;
+pub const SYS_getitimer: ::c_long = 105;
+pub const SYS_stat: ::c_long = 106;
+pub const SYS_lstat: ::c_long = 107;
+pub const SYS_fstat: ::c_long = 108;
+pub const SYS_vhangup: ::c_long = 111;
+pub const SYS_wait4: ::c_long = 114;
+pub const SYS_swapoff: ::c_long = 115;
+pub const SYS_sysinfo: ::c_long = 116;
+pub const SYS_fsync: ::c_long = 118;
+pub const SYS_sigreturn: ::c_long = 119;
+pub const SYS_clone: ::c_long = 120;
+pub const SYS_setdomainname: ::c_long = 121;
+pub const SYS_uname: ::c_long = 122;
+pub const SYS_adjtimex: ::c_long = 124;
+pub const SYS_mprotect: ::c_long = 125;
+pub const SYS_sigprocmask: ::c_long = 126;
+pub const SYS_init_module: ::c_long = 128;
+pub const SYS_delete_module: ::c_long = 129;
+pub const SYS_quotactl: ::c_long = 131;
+pub const SYS_getpgid: ::c_long = 132;
+pub const SYS_fchdir: ::c_long = 133;
+pub const SYS_bdflush: ::c_long = 134;
+pub const SYS_sysfs: ::c_long = 135;
+pub const SYS_personality: ::c_long = 136;
+pub const SYS_setfsuid: ::c_long = 138;
+pub const SYS_setfsgid: ::c_long = 139;
+pub const SYS_getdents: ::c_long = 141;
+pub const SYS_flock: ::c_long = 143;
+pub const SYS_msync: ::c_long = 144;
+pub const SYS_readv: ::c_long = 145;
+pub const SYS_writev: ::c_long = 146;
+pub const SYS_getsid: ::c_long = 147;
+pub const SYS_fdatasync: ::c_long = 148;
+pub const SYS_mlock: ::c_long = 150;
+pub const SYS_munlock: ::c_long = 151;
+pub const SYS_mlockall: ::c_long = 152;
+pub const SYS_munlockall: ::c_long = 153;
+pub const SYS_sched_setparam: ::c_long = 154;
+pub const SYS_sched_getparam: ::c_long = 155;
+pub const SYS_sched_setscheduler: ::c_long = 156;
+pub const SYS_sched_getscheduler: ::c_long = 157;
+pub const SYS_sched_yield: ::c_long = 158;
+pub const SYS_sched_get_priority_max: ::c_long = 159;
+pub const SYS_sched_get_priority_min: ::c_long = 160;
+pub const SYS_sched_rr_get_interval: ::c_long = 161;
+pub const SYS_nanosleep: ::c_long = 162;
+pub const SYS_mremap: ::c_long = 163;
+pub const SYS_setresuid: ::c_long = 164;
+pub const SYS_getresuid: ::c_long = 165;
+pub const SYS_poll: ::c_long = 168;
+pub const SYS_nfsservctl: ::c_long = 169;
+pub const SYS_setresgid: ::c_long = 170;
+pub const SYS_getresgid: ::c_long = 171;
+pub const SYS_prctl: ::c_long = 172;
+pub const SYS_rt_sigreturn: ::c_long = 173;
+pub const SYS_rt_sigaction: ::c_long = 174;
+pub const SYS_rt_sigprocmask: ::c_long = 175;
+pub const SYS_rt_sigpending: ::c_long = 176;
+pub const SYS_rt_sigtimedwait: ::c_long = 177;
+pub const SYS_rt_sigqueueinfo: ::c_long = 178;
+pub const SYS_rt_sigsuspend: ::c_long = 179;
+pub const SYS_pread64: ::c_long = 180;
+pub const SYS_pwrite64: ::c_long = 181;
+pub const SYS_chown: ::c_long = 182;
+pub const SYS_getcwd: ::c_long = 183;
+pub const SYS_capget: ::c_long = 184;
+pub const SYS_capset: ::c_long = 185;
+pub const SYS_sigaltstack: ::c_long = 186;
+pub const SYS_sendfile: ::c_long = 187;
+pub const SYS_vfork: ::c_long = 190;
+pub const SYS_ugetrlimit: ::c_long = 191;
+pub const SYS_mmap2: ::c_long = 192;
+pub const SYS_truncate64: ::c_long = 193;
+pub const SYS_ftruncate64: ::c_long = 194;
+pub const SYS_stat64: ::c_long = 195;
+pub const SYS_lstat64: ::c_long = 196;
+pub const SYS_fstat64: ::c_long = 197;
+pub const SYS_lchown32: ::c_long = 198;
+pub const SYS_getuid32: ::c_long = 199;
+pub const SYS_getgid32: ::c_long = 200;
+pub const SYS_geteuid32: ::c_long = 201;
+pub const SYS_getegid32: ::c_long = 202;
+pub const SYS_setreuid32: ::c_long = 203;
+pub const SYS_setregid32: ::c_long = 204;
+pub const SYS_getgroups32: ::c_long = 205;
+pub const SYS_setgroups32: ::c_long = 206;
+pub const SYS_fchown32: ::c_long = 207;
+pub const SYS_setresuid32: ::c_long = 208;
+pub const SYS_getresuid32: ::c_long = 209;
+pub const SYS_setresgid32: ::c_long = 210;
+pub const SYS_getresgid32: ::c_long = 211;
+pub const SYS_chown32: ::c_long = 212;
+pub const SYS_setuid32: ::c_long = 213;
+pub const SYS_setgid32: ::c_long = 214;
+pub const SYS_setfsuid32: ::c_long = 215;
+pub const SYS_setfsgid32: ::c_long = 216;
+pub const SYS_getdents64: ::c_long = 217;
+pub const SYS_pivot_root: ::c_long = 218;
+pub const SYS_mincore: ::c_long = 219;
+pub const SYS_madvise: ::c_long = 220;
+pub const SYS_fcntl64: ::c_long = 221;
+pub const SYS_gettid: ::c_long = 224;
+pub const SYS_readahead: ::c_long = 225;
+pub const SYS_setxattr: ::c_long = 226;
+pub const SYS_lsetxattr: ::c_long = 227;
+pub const SYS_fsetxattr: ::c_long = 228;
+pub const SYS_getxattr: ::c_long = 229;
+pub const SYS_lgetxattr: ::c_long = 230;
+pub const SYS_fgetxattr: ::c_long = 231;
+pub const SYS_listxattr: ::c_long = 232;
+pub const SYS_llistxattr: ::c_long = 233;
+pub const SYS_flistxattr: ::c_long = 234;
+pub const SYS_removexattr: ::c_long = 235;
+pub const SYS_lremovexattr: ::c_long = 236;
+pub const SYS_fremovexattr: ::c_long = 237;
+pub const SYS_tkill: ::c_long = 238;
+pub const SYS_sendfile64: ::c_long = 239;
+pub const SYS_futex: ::c_long = 240;
+pub const SYS_sched_setaffinity: ::c_long = 241;
+pub const SYS_sched_getaffinity: ::c_long = 242;
+pub const SYS_io_setup: ::c_long = 243;
+pub const SYS_io_destroy: ::c_long = 244;
+pub const SYS_io_getevents: ::c_long = 245;
+pub const SYS_io_submit: ::c_long = 246;
+pub const SYS_io_cancel: ::c_long = 247;
+pub const SYS_exit_group: ::c_long = 248;
+pub const SYS_lookup_dcookie: ::c_long = 249;
+pub const SYS_epoll_create: ::c_long = 250;
+pub const SYS_epoll_ctl: ::c_long = 251;
+pub const SYS_epoll_wait: ::c_long = 252;
+pub const SYS_remap_file_pages: ::c_long = 253;
+pub const SYS_set_tid_address: ::c_long = 256;
+pub const SYS_timer_create: ::c_long = 257;
+pub const SYS_timer_settime: ::c_long = 258;
+pub const SYS_timer_gettime: ::c_long = 259;
+pub const SYS_timer_getoverrun: ::c_long = 260;
+pub const SYS_timer_delete: ::c_long = 261;
+pub const SYS_clock_settime: ::c_long = 262;
+pub const SYS_clock_gettime: ::c_long = 263;
+pub const SYS_clock_getres: ::c_long = 264;
+pub const SYS_clock_nanosleep: ::c_long = 265;
+pub const SYS_statfs64: ::c_long = 266;
+pub const SYS_fstatfs64: ::c_long = 267;
+pub const SYS_tgkill: ::c_long = 268;
+pub const SYS_utimes: ::c_long = 269;
+pub const SYS_arm_fadvise64_64: ::c_long = 270;
+pub const SYS_pciconfig_iobase: ::c_long = 271;
+pub const SYS_pciconfig_read: ::c_long = 272;
+pub const SYS_pciconfig_write: ::c_long = 273;
+pub const SYS_mq_open: ::c_long = 274;
+pub const SYS_mq_unlink: ::c_long = 275;
+pub const SYS_mq_timedsend: ::c_long = 276;
+pub const SYS_mq_timedreceive: ::c_long = 277;
+pub const SYS_mq_notify: ::c_long = 278;
+pub const SYS_mq_getsetattr: ::c_long = 279;
+pub const SYS_waitid: ::c_long = 280;
+pub const SYS_socket: ::c_long = 281;
+pub const SYS_bind: ::c_long = 282;
+pub const SYS_connect: ::c_long = 283;
+pub const SYS_listen: ::c_long = 284;
+pub const SYS_accept: ::c_long = 285;
+pub const SYS_getsockname: ::c_long = 286;
+pub const SYS_getpeername: ::c_long = 287;
+pub const SYS_socketpair: ::c_long = 288;
+pub const SYS_send: ::c_long = 289;
+pub const SYS_sendto: ::c_long = 290;
+pub const SYS_recv: ::c_long = 291;
+pub const SYS_recvfrom: ::c_long = 292;
+pub const SYS_shutdown: ::c_long = 293;
+pub const SYS_setsockopt: ::c_long = 294;
+pub const SYS_getsockopt: ::c_long = 295;
+pub const SYS_sendmsg: ::c_long = 296;
+pub const SYS_recvmsg: ::c_long = 297;
+pub const SYS_semop: ::c_long = 298;
+pub const SYS_semget: ::c_long = 299;
+pub const SYS_semctl: ::c_long = 300;
+pub const SYS_msgsnd: ::c_long = 301;
+pub const SYS_msgrcv: ::c_long = 302;
+pub const SYS_msgget: ::c_long = 303;
+pub const SYS_msgctl: ::c_long = 304;
+pub const SYS_shmat: ::c_long = 305;
+pub const SYS_shmdt: ::c_long = 306;
+pub const SYS_shmget: ::c_long = 307;
+pub const SYS_shmctl: ::c_long = 308;
+pub const SYS_add_key: ::c_long = 309;
+pub const SYS_request_key: ::c_long = 310;
+pub const SYS_keyctl: ::c_long = 311;
+pub const SYS_semtimedop: ::c_long = 312;
+pub const SYS_vserver: ::c_long = 313;
+pub const SYS_ioprio_set: ::c_long = 314;
+pub const SYS_ioprio_get: ::c_long = 315;
+pub const SYS_inotify_init: ::c_long = 316;
+pub const SYS_inotify_add_watch: ::c_long = 317;
+pub const SYS_inotify_rm_watch: ::c_long = 318;
+pub const SYS_mbind: ::c_long = 319;
+pub const SYS_get_mempolicy: ::c_long = 320;
+pub const SYS_set_mempolicy: ::c_long = 321;
+pub const SYS_openat: ::c_long = 322;
+pub const SYS_mkdirat: ::c_long = 323;
+pub const SYS_mknodat: ::c_long = 324;
+pub const SYS_fchownat: ::c_long = 325;
+pub const SYS_futimesat: ::c_long = 326;
+pub const SYS_fstatat64: ::c_long = 327;
+pub const SYS_unlinkat: ::c_long = 328;
+pub const SYS_renameat: ::c_long = 329;
+pub const SYS_linkat: ::c_long = 330;
+pub const SYS_symlinkat: ::c_long = 331;
+pub const SYS_readlinkat: ::c_long = 332;
+pub const SYS_fchmodat: ::c_long = 333;
+pub const SYS_faccessat: ::c_long = 334;
+pub const SYS_pselect6: ::c_long = 335;
+pub const SYS_ppoll: ::c_long = 336;
+pub const SYS_unshare: ::c_long = 337;
+pub const SYS_set_robust_list: ::c_long = 338;
+pub const SYS_get_robust_list: ::c_long = 339;
+pub const SYS_splice: ::c_long = 340;
+pub const SYS_arm_sync_file_range: ::c_long = 341;
+pub const SYS_tee: ::c_long = 342;
+pub const SYS_vmsplice: ::c_long = 343;
+pub const SYS_move_pages: ::c_long = 344;
+pub const SYS_getcpu: ::c_long = 345;
+pub const SYS_epoll_pwait: ::c_long = 346;
+pub const SYS_kexec_load: ::c_long = 347;
+pub const SYS_utimensat: ::c_long = 348;
+pub const SYS_signalfd: ::c_long = 349;
+pub const SYS_timerfd_create: ::c_long = 350;
+pub const SYS_eventfd: ::c_long = 351;
+pub const SYS_fallocate: ::c_long = 352;
+pub const SYS_timerfd_settime: ::c_long = 353;
+pub const SYS_timerfd_gettime: ::c_long = 354;
+pub const SYS_signalfd4: ::c_long = 355;
+pub const SYS_eventfd2: ::c_long = 356;
+pub const SYS_epoll_create1: ::c_long = 357;
+pub const SYS_dup3: ::c_long = 358;
+pub const SYS_pipe2: ::c_long = 359;
+pub const SYS_inotify_init1: ::c_long = 360;
+pub const SYS_preadv: ::c_long = 361;
+pub const SYS_pwritev: ::c_long = 362;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 363;
+pub const SYS_perf_event_open: ::c_long = 364;
+pub const SYS_recvmmsg: ::c_long = 365;
+pub const SYS_accept4: ::c_long = 366;
+pub const SYS_fanotify_init: ::c_long = 367;
+pub const SYS_fanotify_mark: ::c_long = 368;
+pub const SYS_prlimit64: ::c_long = 369;
+pub const SYS_name_to_handle_at: ::c_long = 370;
+pub const SYS_open_by_handle_at: ::c_long = 371;
+pub const SYS_clock_adjtime: ::c_long = 372;
+pub const SYS_syncfs: ::c_long = 373;
+pub const SYS_sendmmsg: ::c_long = 374;
+pub const SYS_setns: ::c_long = 375;
+pub const SYS_process_vm_readv: ::c_long = 376;
+pub const SYS_process_vm_writev: ::c_long = 377;
+pub const SYS_kcmp: ::c_long = 378;
+pub const SYS_finit_module: ::c_long = 379;
+pub const SYS_sched_setattr: ::c_long = 380;
+pub const SYS_sched_getattr: ::c_long = 381;
+pub const SYS_renameat2: ::c_long = 382;
+pub const SYS_seccomp: ::c_long = 383;
+pub const SYS_getrandom: ::c_long = 384;
+pub const SYS_memfd_create: ::c_long = 385;
+pub const SYS_bpf: ::c_long = 386;
+pub const SYS_execveat: ::c_long = 387;
+pub const SYS_userfaultfd: ::c_long = 388;
+pub const SYS_membarrier: ::c_long = 389;
+pub const SYS_mlock2: ::c_long = 390;
+pub const SYS_copy_file_range: ::c_long = 391;
+pub const SYS_preadv2: ::c_long = 392;
+pub const SYS_pwritev2: ::c_long = 393;
+pub const SYS_pkey_mprotect: ::c_long = 394;
+pub const SYS_pkey_alloc: ::c_long = 395;
+pub const SYS_pkey_free: ::c_long = 396;
diff --git a/src/unix/notbsd/android/b64/aarch64.rs b/src/unix/notbsd/android/b64/aarch64.rs
index c1120af..44dfee6 100644
--- a/src/unix/notbsd/android/b64/aarch64.rs
+++ b/src/unix/notbsd/android/b64/aarch64.rs
@@ -57,269 +57,269 @@
pub const SIGSTKSZ: ::size_t = 16384;
pub const MINSIGSTKSZ: ::size_t = 5120;
-pub const SYS_io_setup: ::c_ulong = 0;
-pub const SYS_io_destroy: ::c_ulong = 1;
-pub const SYS_io_submit: ::c_ulong = 2;
-pub const SYS_io_cancel: ::c_ulong = 3;
-pub const SYS_io_getevents: ::c_ulong = 4;
-pub const SYS_setxattr: ::c_ulong = 5;
-pub const SYS_lsetxattr: ::c_ulong = 6;
-pub const SYS_fsetxattr: ::c_ulong = 7;
-pub const SYS_getxattr: ::c_ulong = 8;
-pub const SYS_lgetxattr: ::c_ulong = 9;
-pub const SYS_fgetxattr: ::c_ulong = 10;
-pub const SYS_listxattr: ::c_ulong = 11;
-pub const SYS_llistxattr: ::c_ulong = 12;
-pub const SYS_flistxattr: ::c_ulong = 13;
-pub const SYS_removexattr: ::c_ulong = 14;
-pub const SYS_lremovexattr: ::c_ulong = 15;
-pub const SYS_fremovexattr: ::c_ulong = 16;
-pub const SYS_getcwd: ::c_ulong = 17;
-pub const SYS_lookup_dcookie: ::c_ulong = 18;
-pub const SYS_eventfd2: ::c_ulong = 19;
-pub const SYS_epoll_create1: ::c_ulong = 20;
-pub const SYS_epoll_ctl: ::c_ulong = 21;
-pub const SYS_epoll_pwait: ::c_ulong = 22;
-pub const SYS_dup: ::c_ulong = 23;
-pub const SYS_dup3: ::c_ulong = 24;
-pub const SYS_inotify_init1: ::c_ulong = 26;
-pub const SYS_inotify_add_watch: ::c_ulong = 27;
-pub const SYS_inotify_rm_watch: ::c_ulong = 28;
-pub const SYS_ioctl: ::c_ulong = 29;
-pub const SYS_ioprio_set: ::c_ulong = 30;
-pub const SYS_ioprio_get: ::c_ulong = 31;
-pub const SYS_flock: ::c_ulong = 32;
-pub const SYS_mknodat: ::c_ulong = 33;
-pub const SYS_mkdirat: ::c_ulong = 34;
-pub const SYS_unlinkat: ::c_ulong = 35;
-pub const SYS_symlinkat: ::c_ulong = 36;
-pub const SYS_linkat: ::c_ulong = 37;
-pub const SYS_renameat: ::c_ulong = 38;
-pub const SYS_umount2: ::c_ulong = 39;
-pub const SYS_mount: ::c_ulong = 40;
-pub const SYS_pivot_root: ::c_ulong = 41;
-pub const SYS_nfsservctl: ::c_ulong = 42;
-pub const SYS_fallocate: ::c_ulong = 47;
-pub const SYS_faccessat: ::c_ulong = 48;
-pub const SYS_chdir: ::c_ulong = 49;
-pub const SYS_fchdir: ::c_ulong = 50;
-pub const SYS_chroot: ::c_ulong = 51;
-pub const SYS_fchmod: ::c_ulong = 52;
-pub const SYS_fchmodat: ::c_ulong = 53;
-pub const SYS_fchownat: ::c_ulong = 54;
-pub const SYS_fchown: ::c_ulong = 55;
-pub const SYS_openat: ::c_ulong = 56;
-pub const SYS_close: ::c_ulong = 57;
-pub const SYS_vhangup: ::c_ulong = 58;
-pub const SYS_pipe2: ::c_ulong = 59;
-pub const SYS_quotactl: ::c_ulong = 60;
-pub const SYS_getdents64: ::c_ulong = 61;
-pub const SYS_read: ::c_ulong = 63;
-pub const SYS_write: ::c_ulong = 64;
-pub const SYS_readv: ::c_ulong = 65;
-pub const SYS_writev: ::c_ulong = 66;
-pub const SYS_pread64: ::c_ulong = 67;
-pub const SYS_pwrite64: ::c_ulong = 68;
-pub const SYS_preadv: ::c_ulong = 69;
-pub const SYS_pwritev: ::c_ulong = 70;
-pub const SYS_pselect6: ::c_ulong = 72;
-pub const SYS_ppoll: ::c_ulong = 73;
-pub const SYS_signalfd4: ::c_ulong = 74;
-pub const SYS_vmsplice: ::c_ulong = 75;
-pub const SYS_splice: ::c_ulong = 76;
-pub const SYS_tee: ::c_ulong = 77;
-pub const SYS_readlinkat: ::c_ulong = 78;
-pub const SYS_sync: ::c_ulong = 81;
-pub const SYS_fsync: ::c_ulong = 82;
-pub const SYS_fdatasync: ::c_ulong = 83;
-pub const SYS_sync_file_range: ::c_ulong = 84;
-pub const SYS_timerfd_create: ::c_ulong = 85;
-pub const SYS_timerfd_settime: ::c_ulong = 86;
-pub const SYS_timerfd_gettime: ::c_ulong = 87;
-pub const SYS_utimensat: ::c_ulong = 88;
-pub const SYS_acct: ::c_ulong = 89;
-pub const SYS_capget: ::c_ulong = 90;
-pub const SYS_capset: ::c_ulong = 91;
-pub const SYS_personality: ::c_ulong = 92;
-pub const SYS_exit: ::c_ulong = 93;
-pub const SYS_exit_group: ::c_ulong = 94;
-pub const SYS_waitid: ::c_ulong = 95;
-pub const SYS_set_tid_address: ::c_ulong = 96;
-pub const SYS_unshare: ::c_ulong = 97;
-pub const SYS_futex: ::c_ulong = 98;
-pub const SYS_set_robust_list: ::c_ulong = 99;
-pub const SYS_get_robust_list: ::c_ulong = 100;
-pub const SYS_nanosleep: ::c_ulong = 101;
-pub const SYS_getitimer: ::c_ulong = 102;
-pub const SYS_setitimer: ::c_ulong = 103;
-pub const SYS_kexec_load: ::c_ulong = 104;
-pub const SYS_init_module: ::c_ulong = 105;
-pub const SYS_delete_module: ::c_ulong = 106;
-pub const SYS_timer_create: ::c_ulong = 107;
-pub const SYS_timer_gettime: ::c_ulong = 108;
-pub const SYS_timer_getoverrun: ::c_ulong = 109;
-pub const SYS_timer_settime: ::c_ulong = 110;
-pub const SYS_timer_delete: ::c_ulong = 111;
-pub const SYS_clock_settime: ::c_ulong = 112;
-pub const SYS_clock_gettime: ::c_ulong = 113;
-pub const SYS_clock_getres: ::c_ulong = 114;
-pub const SYS_clock_nanosleep: ::c_ulong = 115;
-pub const SYS_syslog: ::c_ulong = 116;
-pub const SYS_ptrace: ::c_ulong = 117;
-pub const SYS_sched_setparam: ::c_ulong = 118;
-pub const SYS_sched_setscheduler: ::c_ulong = 119;
-pub const SYS_sched_getscheduler: ::c_ulong = 120;
-pub const SYS_sched_getparam: ::c_ulong = 121;
-pub const SYS_sched_setaffinity: ::c_ulong = 122;
-pub const SYS_sched_getaffinity: ::c_ulong = 123;
-pub const SYS_sched_yield: ::c_ulong = 124;
-pub const SYS_sched_get_priority_max: ::c_ulong = 125;
-pub const SYS_sched_get_priority_min: ::c_ulong = 126;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 127;
-pub const SYS_restart_syscall: ::c_ulong = 128;
-pub const SYS_kill: ::c_ulong = 129;
-pub const SYS_tkill: ::c_ulong = 130;
-pub const SYS_tgkill: ::c_ulong = 131;
-pub const SYS_sigaltstack: ::c_ulong = 132;
-pub const SYS_rt_sigsuspend: ::c_ulong = 133;
-pub const SYS_rt_sigaction: ::c_ulong = 134;
-pub const SYS_rt_sigprocmask: ::c_ulong = 135;
-pub const SYS_rt_sigpending: ::c_ulong = 136;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 137;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 138;
-pub const SYS_rt_sigreturn: ::c_ulong = 139;
-pub const SYS_setpriority: ::c_ulong = 140;
-pub const SYS_getpriority: ::c_ulong = 141;
-pub const SYS_reboot: ::c_ulong = 142;
-pub const SYS_setregid: ::c_ulong = 143;
-pub const SYS_setgid: ::c_ulong = 144;
-pub const SYS_setreuid: ::c_ulong = 145;
-pub const SYS_setuid: ::c_ulong = 146;
-pub const SYS_setresuid: ::c_ulong = 147;
-pub const SYS_getresuid: ::c_ulong = 148;
-pub const SYS_setresgid: ::c_ulong = 149;
-pub const SYS_getresgid: ::c_ulong = 150;
-pub const SYS_setfsuid: ::c_ulong = 151;
-pub const SYS_setfsgid: ::c_ulong = 152;
-pub const SYS_times: ::c_ulong = 153;
-pub const SYS_setpgid: ::c_ulong = 154;
-pub const SYS_getpgid: ::c_ulong = 155;
-pub const SYS_getsid: ::c_ulong = 156;
-pub const SYS_setsid: ::c_ulong = 157;
-pub const SYS_getgroups: ::c_ulong = 158;
-pub const SYS_setgroups: ::c_ulong = 159;
-pub const SYS_uname: ::c_ulong = 160;
-pub const SYS_sethostname: ::c_ulong = 161;
-pub const SYS_setdomainname: ::c_ulong = 162;
-pub const SYS_getrlimit: ::c_ulong = 163;
-pub const SYS_setrlimit: ::c_ulong = 164;
-pub const SYS_getrusage: ::c_ulong = 165;
-pub const SYS_umask: ::c_ulong = 166;
-pub const SYS_prctl: ::c_ulong = 167;
-pub const SYS_getcpu: ::c_ulong = 168;
-pub const SYS_gettimeofday: ::c_ulong = 169;
-pub const SYS_settimeofday: ::c_ulong = 170;
-pub const SYS_adjtimex: ::c_ulong = 171;
-pub const SYS_getpid: ::c_ulong = 172;
-pub const SYS_getppid: ::c_ulong = 173;
-pub const SYS_getuid: ::c_ulong = 174;
-pub const SYS_geteuid: ::c_ulong = 175;
-pub const SYS_getgid: ::c_ulong = 176;
-pub const SYS_getegid: ::c_ulong = 177;
-pub const SYS_gettid: ::c_ulong = 178;
-pub const SYS_sysinfo: ::c_ulong = 179;
-pub const SYS_mq_open: ::c_ulong = 180;
-pub const SYS_mq_unlink: ::c_ulong = 181;
-pub const SYS_mq_timedsend: ::c_ulong = 182;
-pub const SYS_mq_timedreceive: ::c_ulong = 183;
-pub const SYS_mq_notify: ::c_ulong = 184;
-pub const SYS_mq_getsetattr: ::c_ulong = 185;
-pub const SYS_msgget: ::c_ulong = 186;
-pub const SYS_msgctl: ::c_ulong = 187;
-pub const SYS_msgrcv: ::c_ulong = 188;
-pub const SYS_msgsnd: ::c_ulong = 189;
-pub const SYS_semget: ::c_ulong = 190;
-pub const SYS_semctl: ::c_ulong = 191;
-pub const SYS_semtimedop: ::c_ulong = 192;
-pub const SYS_semop: ::c_ulong = 193;
-pub const SYS_shmget: ::c_ulong = 194;
-pub const SYS_shmctl: ::c_ulong = 195;
-pub const SYS_shmat: ::c_ulong = 196;
-pub const SYS_shmdt: ::c_ulong = 197;
-pub const SYS_socket: ::c_ulong = 198;
-pub const SYS_socketpair: ::c_ulong = 199;
-pub const SYS_bind: ::c_ulong = 200;
-pub const SYS_listen: ::c_ulong = 201;
-pub const SYS_accept: ::c_ulong = 202;
-pub const SYS_connect: ::c_ulong = 203;
-pub const SYS_getsockname: ::c_ulong = 204;
-pub const SYS_getpeername: ::c_ulong = 205;
-pub const SYS_sendto: ::c_ulong = 206;
-pub const SYS_recvfrom: ::c_ulong = 207;
-pub const SYS_setsockopt: ::c_ulong = 208;
-pub const SYS_getsockopt: ::c_ulong = 209;
-pub const SYS_shutdown: ::c_ulong = 210;
-pub const SYS_sendmsg: ::c_ulong = 211;
-pub const SYS_recvmsg: ::c_ulong = 212;
-pub const SYS_readahead: ::c_ulong = 213;
-pub const SYS_brk: ::c_ulong = 214;
-pub const SYS_munmap: ::c_ulong = 215;
-pub const SYS_mremap: ::c_ulong = 216;
-pub const SYS_add_key: ::c_ulong = 217;
-pub const SYS_request_key: ::c_ulong = 218;
-pub const SYS_keyctl: ::c_ulong = 219;
-pub const SYS_clone: ::c_ulong = 220;
-pub const SYS_execve: ::c_ulong = 221;
-pub const SYS_swapon: ::c_ulong = 224;
-pub const SYS_swapoff: ::c_ulong = 225;
-pub const SYS_mprotect: ::c_ulong = 226;
-pub const SYS_msync: ::c_ulong = 227;
-pub const SYS_mlock: ::c_ulong = 228;
-pub const SYS_munlock: ::c_ulong = 229;
-pub const SYS_mlockall: ::c_ulong = 230;
-pub const SYS_munlockall: ::c_ulong = 231;
-pub const SYS_mincore: ::c_ulong = 232;
-pub const SYS_madvise: ::c_ulong = 233;
-pub const SYS_remap_file_pages: ::c_ulong = 234;
-pub const SYS_mbind: ::c_ulong = 235;
-pub const SYS_get_mempolicy: ::c_ulong = 236;
-pub const SYS_set_mempolicy: ::c_ulong = 237;
-pub const SYS_migrate_pages: ::c_ulong = 238;
-pub const SYS_move_pages: ::c_ulong = 239;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 240;
-pub const SYS_perf_event_open: ::c_ulong = 241;
-pub const SYS_accept4: ::c_ulong = 242;
-pub const SYS_recvmmsg: ::c_ulong = 243;
-pub const SYS_arch_specific_syscall: ::c_ulong = 244;
-pub const SYS_wait4: ::c_ulong = 260;
-pub const SYS_prlimit64: ::c_ulong = 261;
-pub const SYS_fanotify_init: ::c_ulong = 262;
-pub const SYS_fanotify_mark: ::c_ulong = 263;
-pub const SYS_name_to_handle_at: ::c_ulong = 264;
-pub const SYS_open_by_handle_at: ::c_ulong = 265;
-pub const SYS_clock_adjtime: ::c_ulong = 266;
-pub const SYS_syncfs: ::c_ulong = 267;
-pub const SYS_setns: ::c_ulong = 268;
-pub const SYS_sendmmsg: ::c_ulong = 269;
-pub const SYS_process_vm_readv: ::c_ulong = 270;
-pub const SYS_process_vm_writev: ::c_ulong = 271;
-pub const SYS_kcmp: ::c_ulong = 272;
-pub const SYS_finit_module: ::c_ulong = 273;
-pub const SYS_sched_setattr: ::c_ulong = 274;
-pub const SYS_sched_getattr: ::c_ulong = 275;
-pub const SYS_renameat2: ::c_ulong = 276;
-pub const SYS_seccomp: ::c_ulong = 277;
-pub const SYS_getrandom: ::c_ulong = 278;
-pub const SYS_memfd_create: ::c_ulong = 279;
-pub const SYS_bpf: ::c_ulong = 280;
-pub const SYS_execveat: ::c_ulong = 281;
-pub const SYS_userfaultfd: ::c_ulong = 282;
-pub const SYS_membarrier: ::c_ulong = 283;
-pub const SYS_mlock2: ::c_ulong = 284;
-pub const SYS_copy_file_range: ::c_ulong = 285;
-pub const SYS_preadv2: ::c_ulong = 286;
-pub const SYS_pwritev2: ::c_ulong = 287;
-pub const SYS_pkey_mprotect: ::c_ulong = 288;
-pub const SYS_pkey_alloc: ::c_ulong = 289;
-pub const SYS_pkey_free: ::c_ulong = 290;
-pub const SYS_syscalls: ::c_ulong = 291;
+pub const SYS_io_setup: ::c_long = 0;
+pub const SYS_io_destroy: ::c_long = 1;
+pub const SYS_io_submit: ::c_long = 2;
+pub const SYS_io_cancel: ::c_long = 3;
+pub const SYS_io_getevents: ::c_long = 4;
+pub const SYS_setxattr: ::c_long = 5;
+pub const SYS_lsetxattr: ::c_long = 6;
+pub const SYS_fsetxattr: ::c_long = 7;
+pub const SYS_getxattr: ::c_long = 8;
+pub const SYS_lgetxattr: ::c_long = 9;
+pub const SYS_fgetxattr: ::c_long = 10;
+pub const SYS_listxattr: ::c_long = 11;
+pub const SYS_llistxattr: ::c_long = 12;
+pub const SYS_flistxattr: ::c_long = 13;
+pub const SYS_removexattr: ::c_long = 14;
+pub const SYS_lremovexattr: ::c_long = 15;
+pub const SYS_fremovexattr: ::c_long = 16;
+pub const SYS_getcwd: ::c_long = 17;
+pub const SYS_lookup_dcookie: ::c_long = 18;
+pub const SYS_eventfd2: ::c_long = 19;
+pub const SYS_epoll_create1: ::c_long = 20;
+pub const SYS_epoll_ctl: ::c_long = 21;
+pub const SYS_epoll_pwait: ::c_long = 22;
+pub const SYS_dup: ::c_long = 23;
+pub const SYS_dup3: ::c_long = 24;
+pub const SYS_inotify_init1: ::c_long = 26;
+pub const SYS_inotify_add_watch: ::c_long = 27;
+pub const SYS_inotify_rm_watch: ::c_long = 28;
+pub const SYS_ioctl: ::c_long = 29;
+pub const SYS_ioprio_set: ::c_long = 30;
+pub const SYS_ioprio_get: ::c_long = 31;
+pub const SYS_flock: ::c_long = 32;
+pub const SYS_mknodat: ::c_long = 33;
+pub const SYS_mkdirat: ::c_long = 34;
+pub const SYS_unlinkat: ::c_long = 35;
+pub const SYS_symlinkat: ::c_long = 36;
+pub const SYS_linkat: ::c_long = 37;
+pub const SYS_renameat: ::c_long = 38;
+pub const SYS_umount2: ::c_long = 39;
+pub const SYS_mount: ::c_long = 40;
+pub const SYS_pivot_root: ::c_long = 41;
+pub const SYS_nfsservctl: ::c_long = 42;
+pub const SYS_fallocate: ::c_long = 47;
+pub const SYS_faccessat: ::c_long = 48;
+pub const SYS_chdir: ::c_long = 49;
+pub const SYS_fchdir: ::c_long = 50;
+pub const SYS_chroot: ::c_long = 51;
+pub const SYS_fchmod: ::c_long = 52;
+pub const SYS_fchmodat: ::c_long = 53;
+pub const SYS_fchownat: ::c_long = 54;
+pub const SYS_fchown: ::c_long = 55;
+pub const SYS_openat: ::c_long = 56;
+pub const SYS_close: ::c_long = 57;
+pub const SYS_vhangup: ::c_long = 58;
+pub const SYS_pipe2: ::c_long = 59;
+pub const SYS_quotactl: ::c_long = 60;
+pub const SYS_getdents64: ::c_long = 61;
+pub const SYS_read: ::c_long = 63;
+pub const SYS_write: ::c_long = 64;
+pub const SYS_readv: ::c_long = 65;
+pub const SYS_writev: ::c_long = 66;
+pub const SYS_pread64: ::c_long = 67;
+pub const SYS_pwrite64: ::c_long = 68;
+pub const SYS_preadv: ::c_long = 69;
+pub const SYS_pwritev: ::c_long = 70;
+pub const SYS_pselect6: ::c_long = 72;
+pub const SYS_ppoll: ::c_long = 73;
+pub const SYS_signalfd4: ::c_long = 74;
+pub const SYS_vmsplice: ::c_long = 75;
+pub const SYS_splice: ::c_long = 76;
+pub const SYS_tee: ::c_long = 77;
+pub const SYS_readlinkat: ::c_long = 78;
+pub const SYS_sync: ::c_long = 81;
+pub const SYS_fsync: ::c_long = 82;
+pub const SYS_fdatasync: ::c_long = 83;
+pub const SYS_sync_file_range: ::c_long = 84;
+pub const SYS_timerfd_create: ::c_long = 85;
+pub const SYS_timerfd_settime: ::c_long = 86;
+pub const SYS_timerfd_gettime: ::c_long = 87;
+pub const SYS_utimensat: ::c_long = 88;
+pub const SYS_acct: ::c_long = 89;
+pub const SYS_capget: ::c_long = 90;
+pub const SYS_capset: ::c_long = 91;
+pub const SYS_personality: ::c_long = 92;
+pub const SYS_exit: ::c_long = 93;
+pub const SYS_exit_group: ::c_long = 94;
+pub const SYS_waitid: ::c_long = 95;
+pub const SYS_set_tid_address: ::c_long = 96;
+pub const SYS_unshare: ::c_long = 97;
+pub const SYS_futex: ::c_long = 98;
+pub const SYS_set_robust_list: ::c_long = 99;
+pub const SYS_get_robust_list: ::c_long = 100;
+pub const SYS_nanosleep: ::c_long = 101;
+pub const SYS_getitimer: ::c_long = 102;
+pub const SYS_setitimer: ::c_long = 103;
+pub const SYS_kexec_load: ::c_long = 104;
+pub const SYS_init_module: ::c_long = 105;
+pub const SYS_delete_module: ::c_long = 106;
+pub const SYS_timer_create: ::c_long = 107;
+pub const SYS_timer_gettime: ::c_long = 108;
+pub const SYS_timer_getoverrun: ::c_long = 109;
+pub const SYS_timer_settime: ::c_long = 110;
+pub const SYS_timer_delete: ::c_long = 111;
+pub const SYS_clock_settime: ::c_long = 112;
+pub const SYS_clock_gettime: ::c_long = 113;
+pub const SYS_clock_getres: ::c_long = 114;
+pub const SYS_clock_nanosleep: ::c_long = 115;
+pub const SYS_syslog: ::c_long = 116;
+pub const SYS_ptrace: ::c_long = 117;
+pub const SYS_sched_setparam: ::c_long = 118;
+pub const SYS_sched_setscheduler: ::c_long = 119;
+pub const SYS_sched_getscheduler: ::c_long = 120;
+pub const SYS_sched_getparam: ::c_long = 121;
+pub const SYS_sched_setaffinity: ::c_long = 122;
+pub const SYS_sched_getaffinity: ::c_long = 123;
+pub const SYS_sched_yield: ::c_long = 124;
+pub const SYS_sched_get_priority_max: ::c_long = 125;
+pub const SYS_sched_get_priority_min: ::c_long = 126;
+pub const SYS_sched_rr_get_interval: ::c_long = 127;
+pub const SYS_restart_syscall: ::c_long = 128;
+pub const SYS_kill: ::c_long = 129;
+pub const SYS_tkill: ::c_long = 130;
+pub const SYS_tgkill: ::c_long = 131;
+pub const SYS_sigaltstack: ::c_long = 132;
+pub const SYS_rt_sigsuspend: ::c_long = 133;
+pub const SYS_rt_sigaction: ::c_long = 134;
+pub const SYS_rt_sigprocmask: ::c_long = 135;
+pub const SYS_rt_sigpending: ::c_long = 136;
+pub const SYS_rt_sigtimedwait: ::c_long = 137;
+pub const SYS_rt_sigqueueinfo: ::c_long = 138;
+pub const SYS_rt_sigreturn: ::c_long = 139;
+pub const SYS_setpriority: ::c_long = 140;
+pub const SYS_getpriority: ::c_long = 141;
+pub const SYS_reboot: ::c_long = 142;
+pub const SYS_setregid: ::c_long = 143;
+pub const SYS_setgid: ::c_long = 144;
+pub const SYS_setreuid: ::c_long = 145;
+pub const SYS_setuid: ::c_long = 146;
+pub const SYS_setresuid: ::c_long = 147;
+pub const SYS_getresuid: ::c_long = 148;
+pub const SYS_setresgid: ::c_long = 149;
+pub const SYS_getresgid: ::c_long = 150;
+pub const SYS_setfsuid: ::c_long = 151;
+pub const SYS_setfsgid: ::c_long = 152;
+pub const SYS_times: ::c_long = 153;
+pub const SYS_setpgid: ::c_long = 154;
+pub const SYS_getpgid: ::c_long = 155;
+pub const SYS_getsid: ::c_long = 156;
+pub const SYS_setsid: ::c_long = 157;
+pub const SYS_getgroups: ::c_long = 158;
+pub const SYS_setgroups: ::c_long = 159;
+pub const SYS_uname: ::c_long = 160;
+pub const SYS_sethostname: ::c_long = 161;
+pub const SYS_setdomainname: ::c_long = 162;
+pub const SYS_getrlimit: ::c_long = 163;
+pub const SYS_setrlimit: ::c_long = 164;
+pub const SYS_getrusage: ::c_long = 165;
+pub const SYS_umask: ::c_long = 166;
+pub const SYS_prctl: ::c_long = 167;
+pub const SYS_getcpu: ::c_long = 168;
+pub const SYS_gettimeofday: ::c_long = 169;
+pub const SYS_settimeofday: ::c_long = 170;
+pub const SYS_adjtimex: ::c_long = 171;
+pub const SYS_getpid: ::c_long = 172;
+pub const SYS_getppid: ::c_long = 173;
+pub const SYS_getuid: ::c_long = 174;
+pub const SYS_geteuid: ::c_long = 175;
+pub const SYS_getgid: ::c_long = 176;
+pub const SYS_getegid: ::c_long = 177;
+pub const SYS_gettid: ::c_long = 178;
+pub const SYS_sysinfo: ::c_long = 179;
+pub const SYS_mq_open: ::c_long = 180;
+pub const SYS_mq_unlink: ::c_long = 181;
+pub const SYS_mq_timedsend: ::c_long = 182;
+pub const SYS_mq_timedreceive: ::c_long = 183;
+pub const SYS_mq_notify: ::c_long = 184;
+pub const SYS_mq_getsetattr: ::c_long = 185;
+pub const SYS_msgget: ::c_long = 186;
+pub const SYS_msgctl: ::c_long = 187;
+pub const SYS_msgrcv: ::c_long = 188;
+pub const SYS_msgsnd: ::c_long = 189;
+pub const SYS_semget: ::c_long = 190;
+pub const SYS_semctl: ::c_long = 191;
+pub const SYS_semtimedop: ::c_long = 192;
+pub const SYS_semop: ::c_long = 193;
+pub const SYS_shmget: ::c_long = 194;
+pub const SYS_shmctl: ::c_long = 195;
+pub const SYS_shmat: ::c_long = 196;
+pub const SYS_shmdt: ::c_long = 197;
+pub const SYS_socket: ::c_long = 198;
+pub const SYS_socketpair: ::c_long = 199;
+pub const SYS_bind: ::c_long = 200;
+pub const SYS_listen: ::c_long = 201;
+pub const SYS_accept: ::c_long = 202;
+pub const SYS_connect: ::c_long = 203;
+pub const SYS_getsockname: ::c_long = 204;
+pub const SYS_getpeername: ::c_long = 205;
+pub const SYS_sendto: ::c_long = 206;
+pub const SYS_recvfrom: ::c_long = 207;
+pub const SYS_setsockopt: ::c_long = 208;
+pub const SYS_getsockopt: ::c_long = 209;
+pub const SYS_shutdown: ::c_long = 210;
+pub const SYS_sendmsg: ::c_long = 211;
+pub const SYS_recvmsg: ::c_long = 212;
+pub const SYS_readahead: ::c_long = 213;
+pub const SYS_brk: ::c_long = 214;
+pub const SYS_munmap: ::c_long = 215;
+pub const SYS_mremap: ::c_long = 216;
+pub const SYS_add_key: ::c_long = 217;
+pub const SYS_request_key: ::c_long = 218;
+pub const SYS_keyctl: ::c_long = 219;
+pub const SYS_clone: ::c_long = 220;
+pub const SYS_execve: ::c_long = 221;
+pub const SYS_swapon: ::c_long = 224;
+pub const SYS_swapoff: ::c_long = 225;
+pub const SYS_mprotect: ::c_long = 226;
+pub const SYS_msync: ::c_long = 227;
+pub const SYS_mlock: ::c_long = 228;
+pub const SYS_munlock: ::c_long = 229;
+pub const SYS_mlockall: ::c_long = 230;
+pub const SYS_munlockall: ::c_long = 231;
+pub const SYS_mincore: ::c_long = 232;
+pub const SYS_madvise: ::c_long = 233;
+pub const SYS_remap_file_pages: ::c_long = 234;
+pub const SYS_mbind: ::c_long = 235;
+pub const SYS_get_mempolicy: ::c_long = 236;
+pub const SYS_set_mempolicy: ::c_long = 237;
+pub const SYS_migrate_pages: ::c_long = 238;
+pub const SYS_move_pages: ::c_long = 239;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 240;
+pub const SYS_perf_event_open: ::c_long = 241;
+pub const SYS_accept4: ::c_long = 242;
+pub const SYS_recvmmsg: ::c_long = 243;
+pub const SYS_arch_specific_syscall: ::c_long = 244;
+pub const SYS_wait4: ::c_long = 260;
+pub const SYS_prlimit64: ::c_long = 261;
+pub const SYS_fanotify_init: ::c_long = 262;
+pub const SYS_fanotify_mark: ::c_long = 263;
+pub const SYS_name_to_handle_at: ::c_long = 264;
+pub const SYS_open_by_handle_at: ::c_long = 265;
+pub const SYS_clock_adjtime: ::c_long = 266;
+pub const SYS_syncfs: ::c_long = 267;
+pub const SYS_setns: ::c_long = 268;
+pub const SYS_sendmmsg: ::c_long = 269;
+pub const SYS_process_vm_readv: ::c_long = 270;
+pub const SYS_process_vm_writev: ::c_long = 271;
+pub const SYS_kcmp: ::c_long = 272;
+pub const SYS_finit_module: ::c_long = 273;
+pub const SYS_sched_setattr: ::c_long = 274;
+pub const SYS_sched_getattr: ::c_long = 275;
+pub const SYS_renameat2: ::c_long = 276;
+pub const SYS_seccomp: ::c_long = 277;
+pub const SYS_getrandom: ::c_long = 278;
+pub const SYS_memfd_create: ::c_long = 279;
+pub const SYS_bpf: ::c_long = 280;
+pub const SYS_execveat: ::c_long = 281;
+pub const SYS_userfaultfd: ::c_long = 282;
+pub const SYS_membarrier: ::c_long = 283;
+pub const SYS_mlock2: ::c_long = 284;
+pub const SYS_copy_file_range: ::c_long = 285;
+pub const SYS_preadv2: ::c_long = 286;
+pub const SYS_pwritev2: ::c_long = 287;
+pub const SYS_pkey_mprotect: ::c_long = 288;
+pub const SYS_pkey_alloc: ::c_long = 289;
+pub const SYS_pkey_free: ::c_long = 290;
+pub const SYS_syscalls: ::c_long = 291;
diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs
index 065a5bd..88e5cea 100644
--- a/src/unix/notbsd/android/mod.rs
+++ b/src/unix/notbsd/android/mod.rs
@@ -84,6 +84,17 @@
pub c_cc: [::cc_t; ::NCCS],
}
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
+
pub struct flock {
pub l_type: ::c_short,
pub l_whence: ::c_short,
@@ -763,6 +774,7 @@
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;
@@ -1038,6 +1050,8 @@
in_fd: ::c_int,
offset: *mut off_t,
count: ::size_t) -> ::ssize_t;
+ pub fn setfsgid(gid: ::gid_t) -> ::c_int;
+ pub fn setfsuid(uid: ::uid_t) -> ::c_int;
pub fn sigsuspend(mask: *const ::sigset_t) -> ::c_int;
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
diff --git a/src/unix/notbsd/linux/mips/mips32.rs b/src/unix/notbsd/linux/mips/mips32.rs
index da3f1d5..8fad85b 100644
--- a/src/unix/notbsd/linux/mips/mips32.rs
+++ b/src/unix/notbsd/linux/mips/mips32.rs
@@ -269,369 +269,369 @@
pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
-pub const SYS_syscall: ::c_ulong = 4000 + 0;
-pub const SYS_exit: ::c_ulong = 4000 + 1;
-pub const SYS_fork: ::c_ulong = 4000 + 2;
-pub const SYS_read: ::c_ulong = 4000 + 3;
-pub const SYS_write: ::c_ulong = 4000 + 4;
-pub const SYS_open: ::c_ulong = 4000 + 5;
-pub const SYS_close: ::c_ulong = 4000 + 6;
-pub const SYS_waitpid: ::c_ulong = 4000 + 7;
-pub const SYS_creat: ::c_ulong = 4000 + 8;
-pub const SYS_link: ::c_ulong = 4000 + 9;
-pub const SYS_unlink: ::c_ulong = 4000 + 10;
-pub const SYS_execve: ::c_ulong = 4000 + 11;
-pub const SYS_chdir: ::c_ulong = 4000 + 12;
-pub const SYS_time: ::c_ulong = 4000 + 13;
-pub const SYS_mknod: ::c_ulong = 4000 + 14;
-pub const SYS_chmod: ::c_ulong = 4000 + 15;
-pub const SYS_lchown: ::c_ulong = 4000 + 16;
-pub const SYS_break: ::c_ulong = 4000 + 17;
-pub const SYS_unused18: ::c_ulong = 4000 + 18;
-pub const SYS_lseek: ::c_ulong = 4000 + 19;
-pub const SYS_getpid: ::c_ulong = 4000 + 20;
-pub const SYS_mount: ::c_ulong = 4000 + 21;
-pub const SYS_umount: ::c_ulong = 4000 + 22;
-pub const SYS_setuid: ::c_ulong = 4000 + 23;
-pub const SYS_getuid: ::c_ulong = 4000 + 24;
-pub const SYS_stime: ::c_ulong = 4000 + 25;
-pub const SYS_ptrace: ::c_ulong = 4000 + 26;
-pub const SYS_alarm: ::c_ulong = 4000 + 27;
-pub const SYS_unused28: ::c_ulong = 4000 + 28;
-pub const SYS_pause: ::c_ulong = 4000 + 29;
-pub const SYS_utime: ::c_ulong = 4000 + 30;
-pub const SYS_stty: ::c_ulong = 4000 + 31;
-pub const SYS_gtty: ::c_ulong = 4000 + 32;
-pub const SYS_access: ::c_ulong = 4000 + 33;
-pub const SYS_nice: ::c_ulong = 4000 + 34;
-pub const SYS_ftime: ::c_ulong = 4000 + 35;
-pub const SYS_sync: ::c_ulong = 4000 + 36;
-pub const SYS_kill: ::c_ulong = 4000 + 37;
-pub const SYS_rename: ::c_ulong = 4000 + 38;
-pub const SYS_mkdir: ::c_ulong = 4000 + 39;
-pub const SYS_rmdir: ::c_ulong = 4000 + 40;
-pub const SYS_dup: ::c_ulong = 4000 + 41;
-pub const SYS_pipe: ::c_ulong = 4000 + 42;
-pub const SYS_times: ::c_ulong = 4000 + 43;
-pub const SYS_prof: ::c_ulong = 4000 + 44;
-pub const SYS_brk: ::c_ulong = 4000 + 45;
-pub const SYS_setgid: ::c_ulong = 4000 + 46;
-pub const SYS_getgid: ::c_ulong = 4000 + 47;
-pub const SYS_signal: ::c_ulong = 4000 + 48;
-pub const SYS_geteuid: ::c_ulong = 4000 + 49;
-pub const SYS_getegid: ::c_ulong = 4000 + 50;
-pub const SYS_acct: ::c_ulong = 4000 + 51;
-pub const SYS_umount2: ::c_ulong = 4000 + 52;
-pub const SYS_lock: ::c_ulong = 4000 + 53;
-pub const SYS_ioctl: ::c_ulong = 4000 + 54;
-pub const SYS_fcntl: ::c_ulong = 4000 + 55;
-pub const SYS_mpx: ::c_ulong = 4000 + 56;
-pub const SYS_setpgid: ::c_ulong = 4000 + 57;
-pub const SYS_ulimit: ::c_ulong = 4000 + 58;
-pub const SYS_unused59: ::c_ulong = 4000 + 59;
-pub const SYS_umask: ::c_ulong = 4000 + 60;
-pub const SYS_chroot: ::c_ulong = 4000 + 61;
-pub const SYS_ustat: ::c_ulong = 4000 + 62;
-pub const SYS_dup2: ::c_ulong = 4000 + 63;
-pub const SYS_getppid: ::c_ulong = 4000 + 64;
-pub const SYS_getpgrp: ::c_ulong = 4000 + 65;
-pub const SYS_setsid: ::c_ulong = 4000 + 66;
-pub const SYS_sigaction: ::c_ulong = 4000 + 67;
-pub const SYS_sgetmask: ::c_ulong = 4000 + 68;
-pub const SYS_ssetmask: ::c_ulong = 4000 + 69;
-pub const SYS_setreuid: ::c_ulong = 4000 + 70;
-pub const SYS_setregid: ::c_ulong = 4000 + 71;
-pub const SYS_sigsuspend: ::c_ulong = 4000 + 72;
-pub const SYS_sigpending: ::c_ulong = 4000 + 73;
-pub const SYS_sethostname: ::c_ulong = 4000 + 74;
-pub const SYS_setrlimit: ::c_ulong = 4000 + 75;
-pub const SYS_getrlimit: ::c_ulong = 4000 + 76;
-pub const SYS_getrusage: ::c_ulong = 4000 + 77;
-pub const SYS_gettimeofday: ::c_ulong = 4000 + 78;
-pub const SYS_settimeofday: ::c_ulong = 4000 + 79;
-pub const SYS_getgroups: ::c_ulong = 4000 + 80;
-pub const SYS_setgroups: ::c_ulong = 4000 + 81;
-pub const SYS_reserved82: ::c_ulong = 4000 + 82;
-pub const SYS_symlink: ::c_ulong = 4000 + 83;
-pub const SYS_unused84: ::c_ulong = 4000 + 84;
-pub const SYS_readlink: ::c_ulong = 4000 + 85;
-pub const SYS_uselib: ::c_ulong = 4000 + 86;
-pub const SYS_swapon: ::c_ulong = 4000 + 87;
-pub const SYS_reboot: ::c_ulong = 4000 + 88;
-pub const SYS_readdir: ::c_ulong = 4000 + 89;
-pub const SYS_mmap: ::c_ulong = 4000 + 90;
-pub const SYS_munmap: ::c_ulong = 4000 + 91;
-pub const SYS_truncate: ::c_ulong = 4000 + 92;
-pub const SYS_ftruncate: ::c_ulong = 4000 + 93;
-pub const SYS_fchmod: ::c_ulong = 4000 + 94;
-pub const SYS_fchown: ::c_ulong = 4000 + 95;
-pub const SYS_getpriority: ::c_ulong = 4000 + 96;
-pub const SYS_setpriority: ::c_ulong = 4000 + 97;
-pub const SYS_profil: ::c_ulong = 4000 + 98;
-pub const SYS_statfs: ::c_ulong = 4000 + 99;
-pub const SYS_fstatfs: ::c_ulong = 4000 + 100;
-pub const SYS_ioperm: ::c_ulong = 4000 + 101;
-pub const SYS_socketcall: ::c_ulong = 4000 + 102;
-pub const SYS_syslog: ::c_ulong = 4000 + 103;
-pub const SYS_setitimer: ::c_ulong = 4000 + 104;
-pub const SYS_getitimer: ::c_ulong = 4000 + 105;
-pub const SYS_stat: ::c_ulong = 4000 + 106;
-pub const SYS_lstat: ::c_ulong = 4000 + 107;
-pub const SYS_fstat: ::c_ulong = 4000 + 108;
-pub const SYS_unused109: ::c_ulong = 4000 + 109;
-pub const SYS_iopl: ::c_ulong = 4000 + 110;
-pub const SYS_vhangup: ::c_ulong = 4000 + 111;
-pub const SYS_idle: ::c_ulong = 4000 + 112;
-pub const SYS_vm86: ::c_ulong = 4000 + 113;
-pub const SYS_wait4: ::c_ulong = 4000 + 114;
-pub const SYS_swapoff: ::c_ulong = 4000 + 115;
-pub const SYS_sysinfo: ::c_ulong = 4000 + 116;
-pub const SYS_ipc: ::c_ulong = 4000 + 117;
-pub const SYS_fsync: ::c_ulong = 4000 + 118;
-pub const SYS_sigreturn: ::c_ulong = 4000 + 119;
-pub const SYS_clone: ::c_ulong = 4000 + 120;
-pub const SYS_setdomainname: ::c_ulong = 4000 + 121;
-pub const SYS_uname: ::c_ulong = 4000 + 122;
-pub const SYS_modify_ldt: ::c_ulong = 4000 + 123;
-pub const SYS_adjtimex: ::c_ulong = 4000 + 124;
-pub const SYS_mprotect: ::c_ulong = 4000 + 125;
-pub const SYS_sigprocmask: ::c_ulong = 4000 + 126;
-pub const SYS_create_module: ::c_ulong = 4000 + 127;
-pub const SYS_init_module: ::c_ulong = 4000 + 128;
-pub const SYS_delete_module: ::c_ulong = 4000 + 129;
-pub const SYS_get_kernel_syms: ::c_ulong = 4000 + 130;
-pub const SYS_quotactl: ::c_ulong = 4000 + 131;
-pub const SYS_getpgid: ::c_ulong = 4000 + 132;
-pub const SYS_fchdir: ::c_ulong = 4000 + 133;
-pub const SYS_bdflush: ::c_ulong = 4000 + 134;
-pub const SYS_sysfs: ::c_ulong = 4000 + 135;
-pub const SYS_personality: ::c_ulong = 4000 + 136;
-pub const SYS_afs_syscall: ::c_ulong = 4000 + 137;
-pub const SYS_setfsuid: ::c_ulong = 4000 + 138;
-pub const SYS_setfsgid: ::c_ulong = 4000 + 139;
-pub const SYS__llseek: ::c_ulong = 4000 + 140;
-pub const SYS_getdents: ::c_ulong = 4000 + 141;
-pub const SYS__newselect: ::c_ulong = 4000 + 142;
-pub const SYS_flock: ::c_ulong = 4000 + 143;
-pub const SYS_msync: ::c_ulong = 4000 + 144;
-pub const SYS_readv: ::c_ulong = 4000 + 145;
-pub const SYS_writev: ::c_ulong = 4000 + 146;
-pub const SYS_cacheflush: ::c_ulong = 4000 + 147;
-pub const SYS_cachectl: ::c_ulong = 4000 + 148;
-pub const SYS_sysmips: ::c_ulong = 4000 + 149;
-pub const SYS_unused150: ::c_ulong = 4000 + 150;
-pub const SYS_getsid: ::c_ulong = 4000 + 151;
-pub const SYS_fdatasync: ::c_ulong = 4000 + 152;
-pub const SYS__sysctl: ::c_ulong = 4000 + 153;
-pub const SYS_mlock: ::c_ulong = 4000 + 154;
-pub const SYS_munlock: ::c_ulong = 4000 + 155;
-pub const SYS_mlockall: ::c_ulong = 4000 + 156;
-pub const SYS_munlockall: ::c_ulong = 4000 + 157;
-pub const SYS_sched_setparam: ::c_ulong = 4000 + 158;
-pub const SYS_sched_getparam: ::c_ulong = 4000 + 159;
-pub const SYS_sched_setscheduler: ::c_ulong = 4000 + 160;
-pub const SYS_sched_getscheduler: ::c_ulong = 4000 + 161;
-pub const SYS_sched_yield: ::c_ulong = 4000 + 162;
-pub const SYS_sched_get_priority_max: ::c_ulong = 4000 + 163;
-pub const SYS_sched_get_priority_min: ::c_ulong = 4000 + 164;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 4000 + 165;
-pub const SYS_nanosleep: ::c_ulong = 4000 + 166;
-pub const SYS_mremap: ::c_ulong = 4000 + 167;
-pub const SYS_accept: ::c_ulong = 4000 + 168;
-pub const SYS_bind: ::c_ulong = 4000 + 169;
-pub const SYS_connect: ::c_ulong = 4000 + 170;
-pub const SYS_getpeername: ::c_ulong = 4000 + 171;
-pub const SYS_getsockname: ::c_ulong = 4000 + 172;
-pub const SYS_getsockopt: ::c_ulong = 4000 + 173;
-pub const SYS_listen: ::c_ulong = 4000 + 174;
-pub const SYS_recv: ::c_ulong = 4000 + 175;
-pub const SYS_recvfrom: ::c_ulong = 4000 + 176;
-pub const SYS_recvmsg: ::c_ulong = 4000 + 177;
-pub const SYS_send: ::c_ulong = 4000 + 178;
-pub const SYS_sendmsg: ::c_ulong = 4000 + 179;
-pub const SYS_sendto: ::c_ulong = 4000 + 180;
-pub const SYS_setsockopt: ::c_ulong = 4000 + 181;
-pub const SYS_shutdown: ::c_ulong = 4000 + 182;
-pub const SYS_socket: ::c_ulong = 4000 + 183;
-pub const SYS_socketpair: ::c_ulong = 4000 + 184;
-pub const SYS_setresuid: ::c_ulong = 4000 + 185;
-pub const SYS_getresuid: ::c_ulong = 4000 + 186;
-pub const SYS_query_module: ::c_ulong = 4000 + 187;
-pub const SYS_poll: ::c_ulong = 4000 + 188;
-pub const SYS_nfsservctl: ::c_ulong = 4000 + 189;
-pub const SYS_setresgid: ::c_ulong = 4000 + 190;
-pub const SYS_getresgid: ::c_ulong = 4000 + 191;
-pub const SYS_prctl: ::c_ulong = 4000 + 192;
-pub const SYS_rt_sigreturn: ::c_ulong = 4000 + 193;
-pub const SYS_rt_sigaction: ::c_ulong = 4000 + 194;
-pub const SYS_rt_sigprocmask: ::c_ulong = 4000 + 195;
-pub const SYS_rt_sigpending: ::c_ulong = 4000 + 196;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 4000 + 197;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 4000 + 198;
-pub const SYS_rt_sigsuspend: ::c_ulong = 4000 + 199;
-pub const SYS_pread64: ::c_ulong = 4000 + 200;
-pub const SYS_pwrite64: ::c_ulong = 4000 + 201;
-pub const SYS_chown: ::c_ulong = 4000 + 202;
-pub const SYS_getcwd: ::c_ulong = 4000 + 203;
-pub const SYS_capget: ::c_ulong = 4000 + 204;
-pub const SYS_capset: ::c_ulong = 4000 + 205;
-pub const SYS_sigaltstack: ::c_ulong = 4000 + 206;
-pub const SYS_sendfile: ::c_ulong = 4000 + 207;
-pub const SYS_getpmsg: ::c_ulong = 4000 + 208;
-pub const SYS_putpmsg: ::c_ulong = 4000 + 209;
-pub const SYS_mmap2: ::c_ulong = 4000 + 210;
-pub const SYS_truncate64: ::c_ulong = 4000 + 211;
-pub const SYS_ftruncate64: ::c_ulong = 4000 + 212;
-pub const SYS_stat64: ::c_ulong = 4000 + 213;
-pub const SYS_lstat64: ::c_ulong = 4000 + 214;
-pub const SYS_fstat64: ::c_ulong = 4000 + 215;
-pub const SYS_pivot_root: ::c_ulong = 4000 + 216;
-pub const SYS_mincore: ::c_ulong = 4000 + 217;
-pub const SYS_madvise: ::c_ulong = 4000 + 218;
-pub const SYS_getdents64: ::c_ulong = 4000 + 219;
-pub const SYS_fcntl64: ::c_ulong = 4000 + 220;
-pub const SYS_reserved221: ::c_ulong = 4000 + 221;
-pub const SYS_gettid: ::c_ulong = 4000 + 222;
-pub const SYS_readahead: ::c_ulong = 4000 + 223;
-pub const SYS_setxattr: ::c_ulong = 4000 + 224;
-pub const SYS_lsetxattr: ::c_ulong = 4000 + 225;
-pub const SYS_fsetxattr: ::c_ulong = 4000 + 226;
-pub const SYS_getxattr: ::c_ulong = 4000 + 227;
-pub const SYS_lgetxattr: ::c_ulong = 4000 + 228;
-pub const SYS_fgetxattr: ::c_ulong = 4000 + 229;
-pub const SYS_listxattr: ::c_ulong = 4000 + 230;
-pub const SYS_llistxattr: ::c_ulong = 4000 + 231;
-pub const SYS_flistxattr: ::c_ulong = 4000 + 232;
-pub const SYS_removexattr: ::c_ulong = 4000 + 233;
-pub const SYS_lremovexattr: ::c_ulong = 4000 + 234;
-pub const SYS_fremovexattr: ::c_ulong = 4000 + 235;
-pub const SYS_tkill: ::c_ulong = 4000 + 236;
-pub const SYS_sendfile64: ::c_ulong = 4000 + 237;
-pub const SYS_futex: ::c_ulong = 4000 + 238;
-pub const SYS_sched_setaffinity: ::c_ulong = 4000 + 239;
-pub const SYS_sched_getaffinity: ::c_ulong = 4000 + 240;
-pub const SYS_io_setup: ::c_ulong = 4000 + 241;
-pub const SYS_io_destroy: ::c_ulong = 4000 + 242;
-pub const SYS_io_getevents: ::c_ulong = 4000 + 243;
-pub const SYS_io_submit: ::c_ulong = 4000 + 244;
-pub const SYS_io_cancel: ::c_ulong = 4000 + 245;
-pub const SYS_exit_group: ::c_ulong = 4000 + 246;
-pub const SYS_lookup_dcookie: ::c_ulong = 4000 + 247;
-pub const SYS_epoll_create: ::c_ulong = 4000 + 248;
-pub const SYS_epoll_ctl: ::c_ulong = 4000 + 249;
-pub const SYS_epoll_wait: ::c_ulong = 4000 + 250;
-pub const SYS_remap_file_pages: ::c_ulong = 4000 + 251;
-pub const SYS_set_tid_address: ::c_ulong = 4000 + 252;
-pub const SYS_restart_syscall: ::c_ulong = 4000 + 253;
-pub const SYS_fadvise64: ::c_ulong = 4000 + 254;
-pub const SYS_statfs64: ::c_ulong = 4000 + 255;
-pub const SYS_fstatfs64: ::c_ulong = 4000 + 256;
-pub const SYS_timer_create: ::c_ulong = 4000 + 257;
-pub const SYS_timer_settime: ::c_ulong = 4000 + 258;
-pub const SYS_timer_gettime: ::c_ulong = 4000 + 259;
-pub const SYS_timer_getoverrun: ::c_ulong = 4000 + 260;
-pub const SYS_timer_delete: ::c_ulong = 4000 + 261;
-pub const SYS_clock_settime: ::c_ulong = 4000 + 262;
-pub const SYS_clock_gettime: ::c_ulong = 4000 + 263;
-pub const SYS_clock_getres: ::c_ulong = 4000 + 264;
-pub const SYS_clock_nanosleep: ::c_ulong = 4000 + 265;
-pub const SYS_tgkill: ::c_ulong = 4000 + 266;
-pub const SYS_utimes: ::c_ulong = 4000 + 267;
-pub const SYS_mbind: ::c_ulong = 4000 + 268;
-pub const SYS_get_mempolicy: ::c_ulong = 4000 + 269;
-pub const SYS_set_mempolicy: ::c_ulong = 4000 + 270;
-pub const SYS_mq_open: ::c_ulong = 4000 + 271;
-pub const SYS_mq_unlink: ::c_ulong = 4000 + 272;
-pub const SYS_mq_timedsend: ::c_ulong = 4000 + 273;
-pub const SYS_mq_timedreceive: ::c_ulong = 4000 + 274;
-pub const SYS_mq_notify: ::c_ulong = 4000 + 275;
-pub const SYS_mq_getsetattr: ::c_ulong = 4000 + 276;
-pub const SYS_vserver: ::c_ulong = 4000 + 277;
-pub const SYS_waitid: ::c_ulong = 4000 + 278;
-/* pub const SYS_sys_setaltroot: ::c_ulong = 4000 + 279; */
-pub const SYS_add_key: ::c_ulong = 4000 + 280;
-pub const SYS_request_key: ::c_ulong = 4000 + 281;
-pub const SYS_keyctl: ::c_ulong = 4000 + 282;
-pub const SYS_set_thread_area: ::c_ulong = 4000 + 283;
-pub const SYS_inotify_init: ::c_ulong = 4000 + 284;
-pub const SYS_inotify_add_watch: ::c_ulong = 4000 + 285;
-pub const SYS_inotify_rm_watch: ::c_ulong = 4000 + 286;
-pub const SYS_migrate_pages: ::c_ulong = 4000 + 287;
-pub const SYS_openat: ::c_ulong = 4000 + 288;
-pub const SYS_mkdirat: ::c_ulong = 4000 + 289;
-pub const SYS_mknodat: ::c_ulong = 4000 + 290;
-pub const SYS_fchownat: ::c_ulong = 4000 + 291;
-pub const SYS_futimesat: ::c_ulong = 4000 + 292;
-pub const SYS_fstatat64: ::c_ulong = 4000 + 293;
-pub const SYS_unlinkat: ::c_ulong = 4000 + 294;
-pub const SYS_renameat: ::c_ulong = 4000 + 295;
-pub const SYS_linkat: ::c_ulong = 4000 + 296;
-pub const SYS_symlinkat: ::c_ulong = 4000 + 297;
-pub const SYS_readlinkat: ::c_ulong = 4000 + 298;
-pub const SYS_fchmodat: ::c_ulong = 4000 + 299;
-pub const SYS_faccessat: ::c_ulong = 4000 + 300;
-pub const SYS_pselect6: ::c_ulong = 4000 + 301;
-pub const SYS_ppoll: ::c_ulong = 4000 + 302;
-pub const SYS_unshare: ::c_ulong = 4000 + 303;
-pub const SYS_splice: ::c_ulong = 4000 + 304;
-pub const SYS_sync_file_range: ::c_ulong = 4000 + 305;
-pub const SYS_tee: ::c_ulong = 4000 + 306;
-pub const SYS_vmsplice: ::c_ulong = 4000 + 307;
-pub const SYS_move_pages: ::c_ulong = 4000 + 308;
-pub const SYS_set_robust_list: ::c_ulong = 4000 + 309;
-pub const SYS_get_robust_list: ::c_ulong = 4000 + 310;
-pub const SYS_kexec_load: ::c_ulong = 4000 + 311;
-pub const SYS_getcpu: ::c_ulong = 4000 + 312;
-pub const SYS_epoll_pwait: ::c_ulong = 4000 + 313;
-pub const SYS_ioprio_set: ::c_ulong = 4000 + 314;
-pub const SYS_ioprio_get: ::c_ulong = 4000 + 315;
-pub const SYS_utimensat: ::c_ulong = 4000 + 316;
-pub const SYS_signalfd: ::c_ulong = 4000 + 317;
-pub const SYS_timerfd: ::c_ulong = 4000 + 318;
-pub const SYS_eventfd: ::c_ulong = 4000 + 319;
-pub const SYS_fallocate: ::c_ulong = 4000 + 320;
-pub const SYS_timerfd_create: ::c_ulong = 4000 + 321;
-pub const SYS_timerfd_gettime: ::c_ulong = 4000 + 322;
-pub const SYS_timerfd_settime: ::c_ulong = 4000 + 323;
-pub const SYS_signalfd4: ::c_ulong = 4000 + 324;
-pub const SYS_eventfd2: ::c_ulong = 4000 + 325;
-pub const SYS_epoll_create1: ::c_ulong = 4000 + 326;
-pub const SYS_dup3: ::c_ulong = 4000 + 327;
-pub const SYS_pipe2: ::c_ulong = 4000 + 328;
-pub const SYS_inotify_init1: ::c_ulong = 4000 + 329;
-pub const SYS_preadv: ::c_ulong = 4000 + 330;
-pub const SYS_pwritev: ::c_ulong = 4000 + 331;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 4000 + 332;
-pub const SYS_perf_event_open: ::c_ulong = 4000 + 333;
-pub const SYS_accept4: ::c_ulong = 4000 + 334;
-pub const SYS_recvmmsg: ::c_ulong = 4000 + 335;
-pub const SYS_fanotify_init: ::c_ulong = 4000 + 336;
-pub const SYS_fanotify_mark: ::c_ulong = 4000 + 337;
-pub const SYS_prlimit64: ::c_ulong = 4000 + 338;
-pub const SYS_name_to_handle_at: ::c_ulong = 4000 + 339;
-pub const SYS_open_by_handle_at: ::c_ulong = 4000 + 340;
-pub const SYS_clock_adjtime: ::c_ulong = 4000 + 341;
-pub const SYS_syncfs: ::c_ulong = 4000 + 342;
-pub const SYS_sendmmsg: ::c_ulong = 4000 + 343;
-pub const SYS_setns: ::c_ulong = 4000 + 344;
-pub const SYS_process_vm_readv: ::c_ulong = 4000 + 345;
-pub const SYS_process_vm_writev: ::c_ulong = 4000 + 346;
-pub const SYS_kcmp: ::c_ulong = 4000 + 347;
-pub const SYS_finit_module: ::c_ulong = 4000 + 348;
-pub const SYS_sched_setattr: ::c_ulong = 4000 + 349;
-pub const SYS_sched_getattr: ::c_ulong = 4000 + 350;
-pub const SYS_renameat2: ::c_ulong = 4000 + 351;
-pub const SYS_seccomp: ::c_ulong = 4000 + 352;
-pub const SYS_getrandom: ::c_ulong = 4000 + 353;
-pub const SYS_memfd_create: ::c_ulong = 4000 + 354;
-pub const SYS_bpf: ::c_ulong = 4000 + 355;
-pub const SYS_execveat: ::c_ulong = 4000 + 356;
-pub const SYS_userfaultfd: ::c_ulong = 4000 + 357;
-pub const SYS_membarrier: ::c_ulong = 4000 + 358;
-pub const SYS_mlock2: ::c_ulong = 4000 + 359;
-pub const SYS_copy_file_range: ::c_ulong = 4000 + 360;
-pub const SYS_preadv2: ::c_ulong = 4000 + 361;
-pub const SYS_pwritev2: ::c_ulong = 4000 + 362;
-pub const SYS_pkey_mprotect: ::c_ulong = 4000 + 363;
-pub const SYS_pkey_alloc: ::c_ulong = 4000 + 364;
-pub const SYS_pkey_free: ::c_ulong = 4000 + 365;
+pub const SYS_syscall: ::c_long = 4000 + 0;
+pub const SYS_exit: ::c_long = 4000 + 1;
+pub const SYS_fork: ::c_long = 4000 + 2;
+pub const SYS_read: ::c_long = 4000 + 3;
+pub const SYS_write: ::c_long = 4000 + 4;
+pub const SYS_open: ::c_long = 4000 + 5;
+pub const SYS_close: ::c_long = 4000 + 6;
+pub const SYS_waitpid: ::c_long = 4000 + 7;
+pub const SYS_creat: ::c_long = 4000 + 8;
+pub const SYS_link: ::c_long = 4000 + 9;
+pub const SYS_unlink: ::c_long = 4000 + 10;
+pub const SYS_execve: ::c_long = 4000 + 11;
+pub const SYS_chdir: ::c_long = 4000 + 12;
+pub const SYS_time: ::c_long = 4000 + 13;
+pub const SYS_mknod: ::c_long = 4000 + 14;
+pub const SYS_chmod: ::c_long = 4000 + 15;
+pub const SYS_lchown: ::c_long = 4000 + 16;
+pub const SYS_break: ::c_long = 4000 + 17;
+pub const SYS_unused18: ::c_long = 4000 + 18;
+pub const SYS_lseek: ::c_long = 4000 + 19;
+pub const SYS_getpid: ::c_long = 4000 + 20;
+pub const SYS_mount: ::c_long = 4000 + 21;
+pub const SYS_umount: ::c_long = 4000 + 22;
+pub const SYS_setuid: ::c_long = 4000 + 23;
+pub const SYS_getuid: ::c_long = 4000 + 24;
+pub const SYS_stime: ::c_long = 4000 + 25;
+pub const SYS_ptrace: ::c_long = 4000 + 26;
+pub const SYS_alarm: ::c_long = 4000 + 27;
+pub const SYS_unused28: ::c_long = 4000 + 28;
+pub const SYS_pause: ::c_long = 4000 + 29;
+pub const SYS_utime: ::c_long = 4000 + 30;
+pub const SYS_stty: ::c_long = 4000 + 31;
+pub const SYS_gtty: ::c_long = 4000 + 32;
+pub const SYS_access: ::c_long = 4000 + 33;
+pub const SYS_nice: ::c_long = 4000 + 34;
+pub const SYS_ftime: ::c_long = 4000 + 35;
+pub const SYS_sync: ::c_long = 4000 + 36;
+pub const SYS_kill: ::c_long = 4000 + 37;
+pub const SYS_rename: ::c_long = 4000 + 38;
+pub const SYS_mkdir: ::c_long = 4000 + 39;
+pub const SYS_rmdir: ::c_long = 4000 + 40;
+pub const SYS_dup: ::c_long = 4000 + 41;
+pub const SYS_pipe: ::c_long = 4000 + 42;
+pub const SYS_times: ::c_long = 4000 + 43;
+pub const SYS_prof: ::c_long = 4000 + 44;
+pub const SYS_brk: ::c_long = 4000 + 45;
+pub const SYS_setgid: ::c_long = 4000 + 46;
+pub const SYS_getgid: ::c_long = 4000 + 47;
+pub const SYS_signal: ::c_long = 4000 + 48;
+pub const SYS_geteuid: ::c_long = 4000 + 49;
+pub const SYS_getegid: ::c_long = 4000 + 50;
+pub const SYS_acct: ::c_long = 4000 + 51;
+pub const SYS_umount2: ::c_long = 4000 + 52;
+pub const SYS_lock: ::c_long = 4000 + 53;
+pub const SYS_ioctl: ::c_long = 4000 + 54;
+pub const SYS_fcntl: ::c_long = 4000 + 55;
+pub const SYS_mpx: ::c_long = 4000 + 56;
+pub const SYS_setpgid: ::c_long = 4000 + 57;
+pub const SYS_ulimit: ::c_long = 4000 + 58;
+pub const SYS_unused59: ::c_long = 4000 + 59;
+pub const SYS_umask: ::c_long = 4000 + 60;
+pub const SYS_chroot: ::c_long = 4000 + 61;
+pub const SYS_ustat: ::c_long = 4000 + 62;
+pub const SYS_dup2: ::c_long = 4000 + 63;
+pub const SYS_getppid: ::c_long = 4000 + 64;
+pub const SYS_getpgrp: ::c_long = 4000 + 65;
+pub const SYS_setsid: ::c_long = 4000 + 66;
+pub const SYS_sigaction: ::c_long = 4000 + 67;
+pub const SYS_sgetmask: ::c_long = 4000 + 68;
+pub const SYS_ssetmask: ::c_long = 4000 + 69;
+pub const SYS_setreuid: ::c_long = 4000 + 70;
+pub const SYS_setregid: ::c_long = 4000 + 71;
+pub const SYS_sigsuspend: ::c_long = 4000 + 72;
+pub const SYS_sigpending: ::c_long = 4000 + 73;
+pub const SYS_sethostname: ::c_long = 4000 + 74;
+pub const SYS_setrlimit: ::c_long = 4000 + 75;
+pub const SYS_getrlimit: ::c_long = 4000 + 76;
+pub const SYS_getrusage: ::c_long = 4000 + 77;
+pub const SYS_gettimeofday: ::c_long = 4000 + 78;
+pub const SYS_settimeofday: ::c_long = 4000 + 79;
+pub const SYS_getgroups: ::c_long = 4000 + 80;
+pub const SYS_setgroups: ::c_long = 4000 + 81;
+pub const SYS_reserved82: ::c_long = 4000 + 82;
+pub const SYS_symlink: ::c_long = 4000 + 83;
+pub const SYS_unused84: ::c_long = 4000 + 84;
+pub const SYS_readlink: ::c_long = 4000 + 85;
+pub const SYS_uselib: ::c_long = 4000 + 86;
+pub const SYS_swapon: ::c_long = 4000 + 87;
+pub const SYS_reboot: ::c_long = 4000 + 88;
+pub const SYS_readdir: ::c_long = 4000 + 89;
+pub const SYS_mmap: ::c_long = 4000 + 90;
+pub const SYS_munmap: ::c_long = 4000 + 91;
+pub const SYS_truncate: ::c_long = 4000 + 92;
+pub const SYS_ftruncate: ::c_long = 4000 + 93;
+pub const SYS_fchmod: ::c_long = 4000 + 94;
+pub const SYS_fchown: ::c_long = 4000 + 95;
+pub const SYS_getpriority: ::c_long = 4000 + 96;
+pub const SYS_setpriority: ::c_long = 4000 + 97;
+pub const SYS_profil: ::c_long = 4000 + 98;
+pub const SYS_statfs: ::c_long = 4000 + 99;
+pub const SYS_fstatfs: ::c_long = 4000 + 100;
+pub const SYS_ioperm: ::c_long = 4000 + 101;
+pub const SYS_socketcall: ::c_long = 4000 + 102;
+pub const SYS_syslog: ::c_long = 4000 + 103;
+pub const SYS_setitimer: ::c_long = 4000 + 104;
+pub const SYS_getitimer: ::c_long = 4000 + 105;
+pub const SYS_stat: ::c_long = 4000 + 106;
+pub const SYS_lstat: ::c_long = 4000 + 107;
+pub const SYS_fstat: ::c_long = 4000 + 108;
+pub const SYS_unused109: ::c_long = 4000 + 109;
+pub const SYS_iopl: ::c_long = 4000 + 110;
+pub const SYS_vhangup: ::c_long = 4000 + 111;
+pub const SYS_idle: ::c_long = 4000 + 112;
+pub const SYS_vm86: ::c_long = 4000 + 113;
+pub const SYS_wait4: ::c_long = 4000 + 114;
+pub const SYS_swapoff: ::c_long = 4000 + 115;
+pub const SYS_sysinfo: ::c_long = 4000 + 116;
+pub const SYS_ipc: ::c_long = 4000 + 117;
+pub const SYS_fsync: ::c_long = 4000 + 118;
+pub const SYS_sigreturn: ::c_long = 4000 + 119;
+pub const SYS_clone: ::c_long = 4000 + 120;
+pub const SYS_setdomainname: ::c_long = 4000 + 121;
+pub const SYS_uname: ::c_long = 4000 + 122;
+pub const SYS_modify_ldt: ::c_long = 4000 + 123;
+pub const SYS_adjtimex: ::c_long = 4000 + 124;
+pub const SYS_mprotect: ::c_long = 4000 + 125;
+pub const SYS_sigprocmask: ::c_long = 4000 + 126;
+pub const SYS_create_module: ::c_long = 4000 + 127;
+pub const SYS_init_module: ::c_long = 4000 + 128;
+pub const SYS_delete_module: ::c_long = 4000 + 129;
+pub const SYS_get_kernel_syms: ::c_long = 4000 + 130;
+pub const SYS_quotactl: ::c_long = 4000 + 131;
+pub const SYS_getpgid: ::c_long = 4000 + 132;
+pub const SYS_fchdir: ::c_long = 4000 + 133;
+pub const SYS_bdflush: ::c_long = 4000 + 134;
+pub const SYS_sysfs: ::c_long = 4000 + 135;
+pub const SYS_personality: ::c_long = 4000 + 136;
+pub const SYS_afs_syscall: ::c_long = 4000 + 137;
+pub const SYS_setfsuid: ::c_long = 4000 + 138;
+pub const SYS_setfsgid: ::c_long = 4000 + 139;
+pub const SYS__llseek: ::c_long = 4000 + 140;
+pub const SYS_getdents: ::c_long = 4000 + 141;
+pub const SYS__newselect: ::c_long = 4000 + 142;
+pub const SYS_flock: ::c_long = 4000 + 143;
+pub const SYS_msync: ::c_long = 4000 + 144;
+pub const SYS_readv: ::c_long = 4000 + 145;
+pub const SYS_writev: ::c_long = 4000 + 146;
+pub const SYS_cacheflush: ::c_long = 4000 + 147;
+pub const SYS_cachectl: ::c_long = 4000 + 148;
+pub const SYS_sysmips: ::c_long = 4000 + 149;
+pub const SYS_unused150: ::c_long = 4000 + 150;
+pub const SYS_getsid: ::c_long = 4000 + 151;
+pub const SYS_fdatasync: ::c_long = 4000 + 152;
+pub const SYS__sysctl: ::c_long = 4000 + 153;
+pub const SYS_mlock: ::c_long = 4000 + 154;
+pub const SYS_munlock: ::c_long = 4000 + 155;
+pub const SYS_mlockall: ::c_long = 4000 + 156;
+pub const SYS_munlockall: ::c_long = 4000 + 157;
+pub const SYS_sched_setparam: ::c_long = 4000 + 158;
+pub const SYS_sched_getparam: ::c_long = 4000 + 159;
+pub const SYS_sched_setscheduler: ::c_long = 4000 + 160;
+pub const SYS_sched_getscheduler: ::c_long = 4000 + 161;
+pub const SYS_sched_yield: ::c_long = 4000 + 162;
+pub const SYS_sched_get_priority_max: ::c_long = 4000 + 163;
+pub const SYS_sched_get_priority_min: ::c_long = 4000 + 164;
+pub const SYS_sched_rr_get_interval: ::c_long = 4000 + 165;
+pub const SYS_nanosleep: ::c_long = 4000 + 166;
+pub const SYS_mremap: ::c_long = 4000 + 167;
+pub const SYS_accept: ::c_long = 4000 + 168;
+pub const SYS_bind: ::c_long = 4000 + 169;
+pub const SYS_connect: ::c_long = 4000 + 170;
+pub const SYS_getpeername: ::c_long = 4000 + 171;
+pub const SYS_getsockname: ::c_long = 4000 + 172;
+pub const SYS_getsockopt: ::c_long = 4000 + 173;
+pub const SYS_listen: ::c_long = 4000 + 174;
+pub const SYS_recv: ::c_long = 4000 + 175;
+pub const SYS_recvfrom: ::c_long = 4000 + 176;
+pub const SYS_recvmsg: ::c_long = 4000 + 177;
+pub const SYS_send: ::c_long = 4000 + 178;
+pub const SYS_sendmsg: ::c_long = 4000 + 179;
+pub const SYS_sendto: ::c_long = 4000 + 180;
+pub const SYS_setsockopt: ::c_long = 4000 + 181;
+pub const SYS_shutdown: ::c_long = 4000 + 182;
+pub const SYS_socket: ::c_long = 4000 + 183;
+pub const SYS_socketpair: ::c_long = 4000 + 184;
+pub const SYS_setresuid: ::c_long = 4000 + 185;
+pub const SYS_getresuid: ::c_long = 4000 + 186;
+pub const SYS_query_module: ::c_long = 4000 + 187;
+pub const SYS_poll: ::c_long = 4000 + 188;
+pub const SYS_nfsservctl: ::c_long = 4000 + 189;
+pub const SYS_setresgid: ::c_long = 4000 + 190;
+pub const SYS_getresgid: ::c_long = 4000 + 191;
+pub const SYS_prctl: ::c_long = 4000 + 192;
+pub const SYS_rt_sigreturn: ::c_long = 4000 + 193;
+pub const SYS_rt_sigaction: ::c_long = 4000 + 194;
+pub const SYS_rt_sigprocmask: ::c_long = 4000 + 195;
+pub const SYS_rt_sigpending: ::c_long = 4000 + 196;
+pub const SYS_rt_sigtimedwait: ::c_long = 4000 + 197;
+pub const SYS_rt_sigqueueinfo: ::c_long = 4000 + 198;
+pub const SYS_rt_sigsuspend: ::c_long = 4000 + 199;
+pub const SYS_pread64: ::c_long = 4000 + 200;
+pub const SYS_pwrite64: ::c_long = 4000 + 201;
+pub const SYS_chown: ::c_long = 4000 + 202;
+pub const SYS_getcwd: ::c_long = 4000 + 203;
+pub const SYS_capget: ::c_long = 4000 + 204;
+pub const SYS_capset: ::c_long = 4000 + 205;
+pub const SYS_sigaltstack: ::c_long = 4000 + 206;
+pub const SYS_sendfile: ::c_long = 4000 + 207;
+pub const SYS_getpmsg: ::c_long = 4000 + 208;
+pub const SYS_putpmsg: ::c_long = 4000 + 209;
+pub const SYS_mmap2: ::c_long = 4000 + 210;
+pub const SYS_truncate64: ::c_long = 4000 + 211;
+pub const SYS_ftruncate64: ::c_long = 4000 + 212;
+pub const SYS_stat64: ::c_long = 4000 + 213;
+pub const SYS_lstat64: ::c_long = 4000 + 214;
+pub const SYS_fstat64: ::c_long = 4000 + 215;
+pub const SYS_pivot_root: ::c_long = 4000 + 216;
+pub const SYS_mincore: ::c_long = 4000 + 217;
+pub const SYS_madvise: ::c_long = 4000 + 218;
+pub const SYS_getdents64: ::c_long = 4000 + 219;
+pub const SYS_fcntl64: ::c_long = 4000 + 220;
+pub const SYS_reserved221: ::c_long = 4000 + 221;
+pub const SYS_gettid: ::c_long = 4000 + 222;
+pub const SYS_readahead: ::c_long = 4000 + 223;
+pub const SYS_setxattr: ::c_long = 4000 + 224;
+pub const SYS_lsetxattr: ::c_long = 4000 + 225;
+pub const SYS_fsetxattr: ::c_long = 4000 + 226;
+pub const SYS_getxattr: ::c_long = 4000 + 227;
+pub const SYS_lgetxattr: ::c_long = 4000 + 228;
+pub const SYS_fgetxattr: ::c_long = 4000 + 229;
+pub const SYS_listxattr: ::c_long = 4000 + 230;
+pub const SYS_llistxattr: ::c_long = 4000 + 231;
+pub const SYS_flistxattr: ::c_long = 4000 + 232;
+pub const SYS_removexattr: ::c_long = 4000 + 233;
+pub const SYS_lremovexattr: ::c_long = 4000 + 234;
+pub const SYS_fremovexattr: ::c_long = 4000 + 235;
+pub const SYS_tkill: ::c_long = 4000 + 236;
+pub const SYS_sendfile64: ::c_long = 4000 + 237;
+pub const SYS_futex: ::c_long = 4000 + 238;
+pub const SYS_sched_setaffinity: ::c_long = 4000 + 239;
+pub const SYS_sched_getaffinity: ::c_long = 4000 + 240;
+pub const SYS_io_setup: ::c_long = 4000 + 241;
+pub const SYS_io_destroy: ::c_long = 4000 + 242;
+pub const SYS_io_getevents: ::c_long = 4000 + 243;
+pub const SYS_io_submit: ::c_long = 4000 + 244;
+pub const SYS_io_cancel: ::c_long = 4000 + 245;
+pub const SYS_exit_group: ::c_long = 4000 + 246;
+pub const SYS_lookup_dcookie: ::c_long = 4000 + 247;
+pub const SYS_epoll_create: ::c_long = 4000 + 248;
+pub const SYS_epoll_ctl: ::c_long = 4000 + 249;
+pub const SYS_epoll_wait: ::c_long = 4000 + 250;
+pub const SYS_remap_file_pages: ::c_long = 4000 + 251;
+pub const SYS_set_tid_address: ::c_long = 4000 + 252;
+pub const SYS_restart_syscall: ::c_long = 4000 + 253;
+pub const SYS_fadvise64: ::c_long = 4000 + 254;
+pub const SYS_statfs64: ::c_long = 4000 + 255;
+pub const SYS_fstatfs64: ::c_long = 4000 + 256;
+pub const SYS_timer_create: ::c_long = 4000 + 257;
+pub const SYS_timer_settime: ::c_long = 4000 + 258;
+pub const SYS_timer_gettime: ::c_long = 4000 + 259;
+pub const SYS_timer_getoverrun: ::c_long = 4000 + 260;
+pub const SYS_timer_delete: ::c_long = 4000 + 261;
+pub const SYS_clock_settime: ::c_long = 4000 + 262;
+pub const SYS_clock_gettime: ::c_long = 4000 + 263;
+pub const SYS_clock_getres: ::c_long = 4000 + 264;
+pub const SYS_clock_nanosleep: ::c_long = 4000 + 265;
+pub const SYS_tgkill: ::c_long = 4000 + 266;
+pub const SYS_utimes: ::c_long = 4000 + 267;
+pub const SYS_mbind: ::c_long = 4000 + 268;
+pub const SYS_get_mempolicy: ::c_long = 4000 + 269;
+pub const SYS_set_mempolicy: ::c_long = 4000 + 270;
+pub const SYS_mq_open: ::c_long = 4000 + 271;
+pub const SYS_mq_unlink: ::c_long = 4000 + 272;
+pub const SYS_mq_timedsend: ::c_long = 4000 + 273;
+pub const SYS_mq_timedreceive: ::c_long = 4000 + 274;
+pub const SYS_mq_notify: ::c_long = 4000 + 275;
+pub const SYS_mq_getsetattr: ::c_long = 4000 + 276;
+pub const SYS_vserver: ::c_long = 4000 + 277;
+pub const SYS_waitid: ::c_long = 4000 + 278;
+/* pub const SYS_sys_setaltroot: ::c_long = 4000 + 279; */
+pub const SYS_add_key: ::c_long = 4000 + 280;
+pub const SYS_request_key: ::c_long = 4000 + 281;
+pub const SYS_keyctl: ::c_long = 4000 + 282;
+pub const SYS_set_thread_area: ::c_long = 4000 + 283;
+pub const SYS_inotify_init: ::c_long = 4000 + 284;
+pub const SYS_inotify_add_watch: ::c_long = 4000 + 285;
+pub const SYS_inotify_rm_watch: ::c_long = 4000 + 286;
+pub const SYS_migrate_pages: ::c_long = 4000 + 287;
+pub const SYS_openat: ::c_long = 4000 + 288;
+pub const SYS_mkdirat: ::c_long = 4000 + 289;
+pub const SYS_mknodat: ::c_long = 4000 + 290;
+pub const SYS_fchownat: ::c_long = 4000 + 291;
+pub const SYS_futimesat: ::c_long = 4000 + 292;
+pub const SYS_fstatat64: ::c_long = 4000 + 293;
+pub const SYS_unlinkat: ::c_long = 4000 + 294;
+pub const SYS_renameat: ::c_long = 4000 + 295;
+pub const SYS_linkat: ::c_long = 4000 + 296;
+pub const SYS_symlinkat: ::c_long = 4000 + 297;
+pub const SYS_readlinkat: ::c_long = 4000 + 298;
+pub const SYS_fchmodat: ::c_long = 4000 + 299;
+pub const SYS_faccessat: ::c_long = 4000 + 300;
+pub const SYS_pselect6: ::c_long = 4000 + 301;
+pub const SYS_ppoll: ::c_long = 4000 + 302;
+pub const SYS_unshare: ::c_long = 4000 + 303;
+pub const SYS_splice: ::c_long = 4000 + 304;
+pub const SYS_sync_file_range: ::c_long = 4000 + 305;
+pub const SYS_tee: ::c_long = 4000 + 306;
+pub const SYS_vmsplice: ::c_long = 4000 + 307;
+pub const SYS_move_pages: ::c_long = 4000 + 308;
+pub const SYS_set_robust_list: ::c_long = 4000 + 309;
+pub const SYS_get_robust_list: ::c_long = 4000 + 310;
+pub const SYS_kexec_load: ::c_long = 4000 + 311;
+pub const SYS_getcpu: ::c_long = 4000 + 312;
+pub const SYS_epoll_pwait: ::c_long = 4000 + 313;
+pub const SYS_ioprio_set: ::c_long = 4000 + 314;
+pub const SYS_ioprio_get: ::c_long = 4000 + 315;
+pub const SYS_utimensat: ::c_long = 4000 + 316;
+pub const SYS_signalfd: ::c_long = 4000 + 317;
+pub const SYS_timerfd: ::c_long = 4000 + 318;
+pub const SYS_eventfd: ::c_long = 4000 + 319;
+pub const SYS_fallocate: ::c_long = 4000 + 320;
+pub const SYS_timerfd_create: ::c_long = 4000 + 321;
+pub const SYS_timerfd_gettime: ::c_long = 4000 + 322;
+pub const SYS_timerfd_settime: ::c_long = 4000 + 323;
+pub const SYS_signalfd4: ::c_long = 4000 + 324;
+pub const SYS_eventfd2: ::c_long = 4000 + 325;
+pub const SYS_epoll_create1: ::c_long = 4000 + 326;
+pub const SYS_dup3: ::c_long = 4000 + 327;
+pub const SYS_pipe2: ::c_long = 4000 + 328;
+pub const SYS_inotify_init1: ::c_long = 4000 + 329;
+pub const SYS_preadv: ::c_long = 4000 + 330;
+pub const SYS_pwritev: ::c_long = 4000 + 331;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 4000 + 332;
+pub const SYS_perf_event_open: ::c_long = 4000 + 333;
+pub const SYS_accept4: ::c_long = 4000 + 334;
+pub const SYS_recvmmsg: ::c_long = 4000 + 335;
+pub const SYS_fanotify_init: ::c_long = 4000 + 336;
+pub const SYS_fanotify_mark: ::c_long = 4000 + 337;
+pub const SYS_prlimit64: ::c_long = 4000 + 338;
+pub const SYS_name_to_handle_at: ::c_long = 4000 + 339;
+pub const SYS_open_by_handle_at: ::c_long = 4000 + 340;
+pub const SYS_clock_adjtime: ::c_long = 4000 + 341;
+pub const SYS_syncfs: ::c_long = 4000 + 342;
+pub const SYS_sendmmsg: ::c_long = 4000 + 343;
+pub const SYS_setns: ::c_long = 4000 + 344;
+pub const SYS_process_vm_readv: ::c_long = 4000 + 345;
+pub const SYS_process_vm_writev: ::c_long = 4000 + 346;
+pub const SYS_kcmp: ::c_long = 4000 + 347;
+pub const SYS_finit_module: ::c_long = 4000 + 348;
+pub const SYS_sched_setattr: ::c_long = 4000 + 349;
+pub const SYS_sched_getattr: ::c_long = 4000 + 350;
+pub const SYS_renameat2: ::c_long = 4000 + 351;
+pub const SYS_seccomp: ::c_long = 4000 + 352;
+pub const SYS_getrandom: ::c_long = 4000 + 353;
+pub const SYS_memfd_create: ::c_long = 4000 + 354;
+pub const SYS_bpf: ::c_long = 4000 + 355;
+pub const SYS_execveat: ::c_long = 4000 + 356;
+pub const SYS_userfaultfd: ::c_long = 4000 + 357;
+pub const SYS_membarrier: ::c_long = 4000 + 358;
+pub const SYS_mlock2: ::c_long = 4000 + 359;
+pub const SYS_copy_file_range: ::c_long = 4000 + 360;
+pub const SYS_preadv2: ::c_long = 4000 + 361;
+pub const SYS_pwritev2: ::c_long = 4000 + 362;
+pub const SYS_pkey_mprotect: ::c_long = 4000 + 363;
+pub const SYS_pkey_alloc: ::c_long = 4000 + 364;
+pub const SYS_pkey_free: ::c_long = 4000 + 365;
diff --git a/src/unix/notbsd/linux/mips/mips64.rs b/src/unix/notbsd/linux/mips/mips64.rs
index e5142d5..45b3df8 100644
--- a/src/unix/notbsd/linux/mips/mips64.rs
+++ b/src/unix/notbsd/linux/mips/mips64.rs
@@ -251,329 +251,329 @@
pub const RLIM_INFINITY: ::rlim_t = 0xffff_ffff_ffff_ffff;
-pub const SYS_read: ::c_ulong = 5000 + 0;
-pub const SYS_write: ::c_ulong = 5000 + 1;
-pub const SYS_open: ::c_ulong = 5000 + 2;
-pub const SYS_close: ::c_ulong = 5000 + 3;
-pub const SYS_stat: ::c_ulong = 5000 + 4;
-pub const SYS_fstat: ::c_ulong = 5000 + 5;
-pub const SYS_lstat: ::c_ulong = 5000 + 6;
-pub const SYS_poll: ::c_ulong = 5000 + 7;
-pub const SYS_lseek: ::c_ulong = 5000 + 8;
-pub const SYS_mmap: ::c_ulong = 5000 + 9;
-pub const SYS_mprotect: ::c_ulong = 5000 + 10;
-pub const SYS_munmap: ::c_ulong = 5000 + 11;
-pub const SYS_brk: ::c_ulong = 5000 + 12;
-pub const SYS_rt_sigaction: ::c_ulong = 5000 + 13;
-pub const SYS_rt_sigprocmask: ::c_ulong = 5000 + 14;
-pub const SYS_ioctl: ::c_ulong = 5000 + 15;
-pub const SYS_pread64: ::c_ulong = 5000 + 16;
-pub const SYS_pwrite64: ::c_ulong = 5000 + 17;
-pub const SYS_readv: ::c_ulong = 5000 + 18;
-pub const SYS_writev: ::c_ulong = 5000 + 19;
-pub const SYS_access: ::c_ulong = 5000 + 20;
-pub const SYS_pipe: ::c_ulong = 5000 + 21;
-pub const SYS__newselect: ::c_ulong = 5000 + 22;
-pub const SYS_sched_yield: ::c_ulong = 5000 + 23;
-pub const SYS_mremap: ::c_ulong = 5000 + 24;
-pub const SYS_msync: ::c_ulong = 5000 + 25;
-pub const SYS_mincore: ::c_ulong = 5000 + 26;
-pub const SYS_madvise: ::c_ulong = 5000 + 27;
-pub const SYS_shmget: ::c_ulong = 5000 + 28;
-pub const SYS_shmat: ::c_ulong = 5000 + 29;
-pub const SYS_shmctl: ::c_ulong = 5000 + 30;
-pub const SYS_dup: ::c_ulong = 5000 + 31;
-pub const SYS_dup2: ::c_ulong = 5000 + 32;
-pub const SYS_pause: ::c_ulong = 5000 + 33;
-pub const SYS_nanosleep: ::c_ulong = 5000 + 34;
-pub const SYS_getitimer: ::c_ulong = 5000 + 35;
-pub const SYS_setitimer: ::c_ulong = 5000 + 36;
-pub const SYS_alarm: ::c_ulong = 5000 + 37;
-pub const SYS_getpid: ::c_ulong = 5000 + 38;
-pub const SYS_sendfile: ::c_ulong = 5000 + 39;
-pub const SYS_socket: ::c_ulong = 5000 + 40;
-pub const SYS_connect: ::c_ulong = 5000 + 41;
-pub const SYS_accept: ::c_ulong = 5000 + 42;
-pub const SYS_sendto: ::c_ulong = 5000 + 43;
-pub const SYS_recvfrom: ::c_ulong = 5000 + 44;
-pub const SYS_sendmsg: ::c_ulong = 5000 + 45;
-pub const SYS_recvmsg: ::c_ulong = 5000 + 46;
-pub const SYS_shutdown: ::c_ulong = 5000 + 47;
-pub const SYS_bind: ::c_ulong = 5000 + 48;
-pub const SYS_listen: ::c_ulong = 5000 + 49;
-pub const SYS_getsockname: ::c_ulong = 5000 + 50;
-pub const SYS_getpeername: ::c_ulong = 5000 + 51;
-pub const SYS_socketpair: ::c_ulong = 5000 + 52;
-pub const SYS_setsockopt: ::c_ulong = 5000 + 53;
-pub const SYS_getsockopt: ::c_ulong = 5000 + 54;
-pub const SYS_clone: ::c_ulong = 5000 + 55;
-pub const SYS_fork: ::c_ulong = 5000 + 56;
-pub const SYS_execve: ::c_ulong = 5000 + 57;
-pub const SYS_exit: ::c_ulong = 5000 + 58;
-pub const SYS_wait4: ::c_ulong = 5000 + 59;
-pub const SYS_kill: ::c_ulong = 5000 + 60;
-pub const SYS_uname: ::c_ulong = 5000 + 61;
-pub const SYS_semget: ::c_ulong = 5000 + 62;
-pub const SYS_semop: ::c_ulong = 5000 + 63;
-pub const SYS_semctl: ::c_ulong = 5000 + 64;
-pub const SYS_shmdt: ::c_ulong = 5000 + 65;
-pub const SYS_msgget: ::c_ulong = 5000 + 66;
-pub const SYS_msgsnd: ::c_ulong = 5000 + 67;
-pub const SYS_msgrcv: ::c_ulong = 5000 + 68;
-pub const SYS_msgctl: ::c_ulong = 5000 + 69;
-pub const SYS_fcntl: ::c_ulong = 5000 + 70;
-pub const SYS_flock: ::c_ulong = 5000 + 71;
-pub const SYS_fsync: ::c_ulong = 5000 + 72;
-pub const SYS_fdatasync: ::c_ulong = 5000 + 73;
-pub const SYS_truncate: ::c_ulong = 5000 + 74;
-pub const SYS_ftruncate: ::c_ulong = 5000 + 75;
-pub const SYS_getdents: ::c_ulong = 5000 + 76;
-pub const SYS_getcwd: ::c_ulong = 5000 + 77;
-pub const SYS_chdir: ::c_ulong = 5000 + 78;
-pub const SYS_fchdir: ::c_ulong = 5000 + 79;
-pub const SYS_rename: ::c_ulong = 5000 + 80;
-pub const SYS_mkdir: ::c_ulong = 5000 + 81;
-pub const SYS_rmdir: ::c_ulong = 5000 + 82;
-pub const SYS_creat: ::c_ulong = 5000 + 83;
-pub const SYS_link: ::c_ulong = 5000 + 84;
-pub const SYS_unlink: ::c_ulong = 5000 + 85;
-pub const SYS_symlink: ::c_ulong = 5000 + 86;
-pub const SYS_readlink: ::c_ulong = 5000 + 87;
-pub const SYS_chmod: ::c_ulong = 5000 + 88;
-pub const SYS_fchmod: ::c_ulong = 5000 + 89;
-pub const SYS_chown: ::c_ulong = 5000 + 90;
-pub const SYS_fchown: ::c_ulong = 5000 + 91;
-pub const SYS_lchown: ::c_ulong = 5000 + 92;
-pub const SYS_umask: ::c_ulong = 5000 + 93;
-pub const SYS_gettimeofday: ::c_ulong = 5000 + 94;
-pub const SYS_getrlimit: ::c_ulong = 5000 + 95;
-pub const SYS_getrusage: ::c_ulong = 5000 + 96;
-pub const SYS_sysinfo: ::c_ulong = 5000 + 97;
-pub const SYS_times: ::c_ulong = 5000 + 98;
-pub const SYS_ptrace: ::c_ulong = 5000 + 99;
-pub const SYS_getuid: ::c_ulong = 5000 + 100;
-pub const SYS_syslog: ::c_ulong = 5000 + 101;
-pub const SYS_getgid: ::c_ulong = 5000 + 102;
-pub const SYS_setuid: ::c_ulong = 5000 + 103;
-pub const SYS_setgid: ::c_ulong = 5000 + 104;
-pub const SYS_geteuid: ::c_ulong = 5000 + 105;
-pub const SYS_getegid: ::c_ulong = 5000 + 106;
-pub const SYS_setpgid: ::c_ulong = 5000 + 107;
-pub const SYS_getppid: ::c_ulong = 5000 + 108;
-pub const SYS_getpgrp: ::c_ulong = 5000 + 109;
-pub const SYS_setsid: ::c_ulong = 5000 + 110;
-pub const SYS_setreuid: ::c_ulong = 5000 + 111;
-pub const SYS_setregid: ::c_ulong = 5000 + 112;
-pub const SYS_getgroups: ::c_ulong = 5000 + 113;
-pub const SYS_setgroups: ::c_ulong = 5000 + 114;
-pub const SYS_setresuid: ::c_ulong = 5000 + 115;
-pub const SYS_getresuid: ::c_ulong = 5000 + 116;
-pub const SYS_setresgid: ::c_ulong = 5000 + 117;
-pub const SYS_getresgid: ::c_ulong = 5000 + 118;
-pub const SYS_getpgid: ::c_ulong = 5000 + 119;
-pub const SYS_setfsuid: ::c_ulong = 5000 + 120;
-pub const SYS_setfsgid: ::c_ulong = 5000 + 121;
-pub const SYS_getsid: ::c_ulong = 5000 + 122;
-pub const SYS_capget: ::c_ulong = 5000 + 123;
-pub const SYS_capset: ::c_ulong = 5000 + 124;
-pub const SYS_rt_sigpending: ::c_ulong = 5000 + 125;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 5000 + 126;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 5000 + 127;
-pub const SYS_rt_sigsuspend: ::c_ulong = 5000 + 128;
-pub const SYS_sigaltstack: ::c_ulong = 5000 + 129;
-pub const SYS_utime: ::c_ulong = 5000 + 130;
-pub const SYS_mknod: ::c_ulong = 5000 + 131;
-pub const SYS_personality: ::c_ulong = 5000 + 132;
-pub const SYS_ustat: ::c_ulong = 5000 + 133;
-pub const SYS_statfs: ::c_ulong = 5000 + 134;
-pub const SYS_fstatfs: ::c_ulong = 5000 + 135;
-pub const SYS_sysfs: ::c_ulong = 5000 + 136;
-pub const SYS_getpriority: ::c_ulong = 5000 + 137;
-pub const SYS_setpriority: ::c_ulong = 5000 + 138;
-pub const SYS_sched_setparam: ::c_ulong = 5000 + 139;
-pub const SYS_sched_getparam: ::c_ulong = 5000 + 140;
-pub const SYS_sched_setscheduler: ::c_ulong = 5000 + 141;
-pub const SYS_sched_getscheduler: ::c_ulong = 5000 + 142;
-pub const SYS_sched_get_priority_max: ::c_ulong = 5000 + 143;
-pub const SYS_sched_get_priority_min: ::c_ulong = 5000 + 144;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 5000 + 145;
-pub const SYS_mlock: ::c_ulong = 5000 + 146;
-pub const SYS_munlock: ::c_ulong = 5000 + 147;
-pub const SYS_mlockall: ::c_ulong = 5000 + 148;
-pub const SYS_munlockall: ::c_ulong = 5000 + 149;
-pub const SYS_vhangup: ::c_ulong = 5000 + 150;
-pub const SYS_pivot_root: ::c_ulong = 5000 + 151;
-pub const SYS__sysctl: ::c_ulong = 5000 + 152;
-pub const SYS_prctl: ::c_ulong = 5000 + 153;
-pub const SYS_adjtimex: ::c_ulong = 5000 + 154;
-pub const SYS_setrlimit: ::c_ulong = 5000 + 155;
-pub const SYS_chroot: ::c_ulong = 5000 + 156;
-pub const SYS_sync: ::c_ulong = 5000 + 157;
-pub const SYS_acct: ::c_ulong = 5000 + 158;
-pub const SYS_settimeofday: ::c_ulong = 5000 + 159;
-pub const SYS_mount: ::c_ulong = 5000 + 160;
-pub const SYS_umount2: ::c_ulong = 5000 + 161;
-pub const SYS_swapon: ::c_ulong = 5000 + 162;
-pub const SYS_swapoff: ::c_ulong = 5000 + 163;
-pub const SYS_reboot: ::c_ulong = 5000 + 164;
-pub const SYS_sethostname: ::c_ulong = 5000 + 165;
-pub const SYS_setdomainname: ::c_ulong = 5000 + 166;
-pub const SYS_create_module: ::c_ulong = 5000 + 167;
-pub const SYS_init_module: ::c_ulong = 5000 + 168;
-pub const SYS_delete_module: ::c_ulong = 5000 + 169;
-pub const SYS_get_kernel_syms: ::c_ulong = 5000 + 170;
-pub const SYS_query_module: ::c_ulong = 5000 + 171;
-pub const SYS_quotactl: ::c_ulong = 5000 + 172;
-pub const SYS_nfsservctl: ::c_ulong = 5000 + 173;
-pub const SYS_getpmsg: ::c_ulong = 5000 + 174;
-pub const SYS_putpmsg: ::c_ulong = 5000 + 175;
-pub const SYS_afs_syscall: ::c_ulong = 5000 + 176;
-pub const SYS_reserved177: ::c_ulong = 5000 + 177;
-pub const SYS_gettid: ::c_ulong = 5000 + 178;
-pub const SYS_readahead: ::c_ulong = 5000 + 179;
-pub const SYS_setxattr: ::c_ulong = 5000 + 180;
-pub const SYS_lsetxattr: ::c_ulong = 5000 + 181;
-pub const SYS_fsetxattr: ::c_ulong = 5000 + 182;
-pub const SYS_getxattr: ::c_ulong = 5000 + 183;
-pub const SYS_lgetxattr: ::c_ulong = 5000 + 184;
-pub const SYS_fgetxattr: ::c_ulong = 5000 + 185;
-pub const SYS_listxattr: ::c_ulong = 5000 + 186;
-pub const SYS_llistxattr: ::c_ulong = 5000 + 187;
-pub const SYS_flistxattr: ::c_ulong = 5000 + 188;
-pub const SYS_removexattr: ::c_ulong = 5000 + 189;
-pub const SYS_lremovexattr: ::c_ulong = 5000 + 190;
-pub const SYS_fremovexattr: ::c_ulong = 5000 + 191;
-pub const SYS_tkill: ::c_ulong = 5000 + 192;
-pub const SYS_reserved193: ::c_ulong = 5000 + 193;
-pub const SYS_futex: ::c_ulong = 5000 + 194;
-pub const SYS_sched_setaffinity: ::c_ulong = 5000 + 195;
-pub const SYS_sched_getaffinity: ::c_ulong = 5000 + 196;
-pub const SYS_cacheflush: ::c_ulong = 5000 + 197;
-pub const SYS_cachectl: ::c_ulong = 5000 + 198;
-pub const SYS_sysmips: ::c_ulong = 5000 + 199;
-pub const SYS_io_setup: ::c_ulong = 5000 + 200;
-pub const SYS_io_destroy: ::c_ulong = 5000 + 201;
-pub const SYS_io_getevents: ::c_ulong = 5000 + 202;
-pub const SYS_io_submit: ::c_ulong = 5000 + 203;
-pub const SYS_io_cancel: ::c_ulong = 5000 + 204;
-pub const SYS_exit_group: ::c_ulong = 5000 + 205;
-pub const SYS_lookup_dcookie: ::c_ulong = 5000 + 206;
-pub const SYS_epoll_create: ::c_ulong = 5000 + 207;
-pub const SYS_epoll_ctl: ::c_ulong = 5000 + 208;
-pub const SYS_epoll_wait: ::c_ulong = 5000 + 209;
-pub const SYS_remap_file_pages: ::c_ulong = 5000 + 210;
-pub const SYS_rt_sigreturn: ::c_ulong = 5000 + 211;
-pub const SYS_set_tid_address: ::c_ulong = 5000 + 212;
-pub const SYS_restart_syscall: ::c_ulong = 5000 + 213;
-pub const SYS_semtimedop: ::c_ulong = 5000 + 214;
-pub const SYS_fadvise64: ::c_ulong = 5000 + 215;
-pub const SYS_timer_create: ::c_ulong = 5000 + 216;
-pub const SYS_timer_settime: ::c_ulong = 5000 + 217;
-pub const SYS_timer_gettime: ::c_ulong = 5000 + 218;
-pub const SYS_timer_getoverrun: ::c_ulong = 5000 + 219;
-pub const SYS_timer_delete: ::c_ulong = 5000 + 220;
-pub const SYS_clock_settime: ::c_ulong = 5000 + 221;
-pub const SYS_clock_gettime: ::c_ulong = 5000 + 222;
-pub const SYS_clock_getres: ::c_ulong = 5000 + 223;
-pub const SYS_clock_nanosleep: ::c_ulong = 5000 + 224;
-pub const SYS_tgkill: ::c_ulong = 5000 + 225;
-pub const SYS_utimes: ::c_ulong = 5000 + 226;
-pub const SYS_mbind: ::c_ulong = 5000 + 227;
-pub const SYS_get_mempolicy: ::c_ulong = 5000 + 228;
-pub const SYS_set_mempolicy: ::c_ulong = 5000 + 229;
-pub const SYS_mq_open: ::c_ulong = 5000 + 230;
-pub const SYS_mq_unlink: ::c_ulong = 5000 + 231;
-pub const SYS_mq_timedsend: ::c_ulong = 5000 + 232;
-pub const SYS_mq_timedreceive: ::c_ulong = 5000 + 233;
-pub const SYS_mq_notify: ::c_ulong = 5000 + 234;
-pub const SYS_mq_getsetattr: ::c_ulong = 5000 + 235;
-pub const SYS_vserver: ::c_ulong = 5000 + 236;
-pub const SYS_waitid: ::c_ulong = 5000 + 237;
-/* pub const SYS_sys_setaltroot: ::c_ulong = 5000 + 238; */
-pub const SYS_add_key: ::c_ulong = 5000 + 239;
-pub const SYS_request_key: ::c_ulong = 5000 + 240;
-pub const SYS_keyctl: ::c_ulong = 5000 + 241;
-pub const SYS_set_thread_area: ::c_ulong = 5000 + 242;
-pub const SYS_inotify_init: ::c_ulong = 5000 + 243;
-pub const SYS_inotify_add_watch: ::c_ulong = 5000 + 244;
-pub const SYS_inotify_rm_watch: ::c_ulong = 5000 + 245;
-pub const SYS_migrate_pages: ::c_ulong = 5000 + 246;
-pub const SYS_openat: ::c_ulong = 5000 + 247;
-pub const SYS_mkdirat: ::c_ulong = 5000 + 248;
-pub const SYS_mknodat: ::c_ulong = 5000 + 249;
-pub const SYS_fchownat: ::c_ulong = 5000 + 250;
-pub const SYS_futimesat: ::c_ulong = 5000 + 251;
-pub const SYS_newfstatat: ::c_ulong = 5000 + 252;
-pub const SYS_unlinkat: ::c_ulong = 5000 + 253;
-pub const SYS_renameat: ::c_ulong = 5000 + 254;
-pub const SYS_linkat: ::c_ulong = 5000 + 255;
-pub const SYS_symlinkat: ::c_ulong = 5000 + 256;
-pub const SYS_readlinkat: ::c_ulong = 5000 + 257;
-pub const SYS_fchmodat: ::c_ulong = 5000 + 258;
-pub const SYS_faccessat: ::c_ulong = 5000 + 259;
-pub const SYS_pselect6: ::c_ulong = 5000 + 260;
-pub const SYS_ppoll: ::c_ulong = 5000 + 261;
-pub const SYS_unshare: ::c_ulong = 5000 + 262;
-pub const SYS_splice: ::c_ulong = 5000 + 263;
-pub const SYS_sync_file_range: ::c_ulong = 5000 + 264;
-pub const SYS_tee: ::c_ulong = 5000 + 265;
-pub const SYS_vmsplice: ::c_ulong = 5000 + 266;
-pub const SYS_move_pages: ::c_ulong = 5000 + 267;
-pub const SYS_set_robust_list: ::c_ulong = 5000 + 268;
-pub const SYS_get_robust_list: ::c_ulong = 5000 + 269;
-pub const SYS_kexec_load: ::c_ulong = 5000 + 270;
-pub const SYS_getcpu: ::c_ulong = 5000 + 271;
-pub const SYS_epoll_pwait: ::c_ulong = 5000 + 272;
-pub const SYS_ioprio_set: ::c_ulong = 5000 + 273;
-pub const SYS_ioprio_get: ::c_ulong = 5000 + 274;
-pub const SYS_utimensat: ::c_ulong = 5000 + 275;
-pub const SYS_signalfd: ::c_ulong = 5000 + 276;
-pub const SYS_timerfd: ::c_ulong = 5000 + 277;
-pub const SYS_eventfd: ::c_ulong = 5000 + 278;
-pub const SYS_fallocate: ::c_ulong = 5000 + 279;
-pub const SYS_timerfd_create: ::c_ulong = 5000 + 280;
-pub const SYS_timerfd_gettime: ::c_ulong = 5000 + 281;
-pub const SYS_timerfd_settime: ::c_ulong = 5000 + 282;
-pub const SYS_signalfd4: ::c_ulong = 5000 + 283;
-pub const SYS_eventfd2: ::c_ulong = 5000 + 284;
-pub const SYS_epoll_create1: ::c_ulong = 5000 + 285;
-pub const SYS_dup3: ::c_ulong = 5000 + 286;
-pub const SYS_pipe2: ::c_ulong = 5000 + 287;
-pub const SYS_inotify_init1: ::c_ulong = 5000 + 288;
-pub const SYS_preadv: ::c_ulong = 5000 + 289;
-pub const SYS_pwritev: ::c_ulong = 5000 + 290;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 5000 + 291;
-pub const SYS_perf_event_open: ::c_ulong = 5000 + 292;
-pub const SYS_accept4: ::c_ulong = 5000 + 293;
-pub const SYS_recvmmsg: ::c_ulong = 5000 + 294;
-pub const SYS_fanotify_init: ::c_ulong = 5000 + 295;
-pub const SYS_fanotify_mark: ::c_ulong = 5000 + 296;
-pub const SYS_prlimit64: ::c_ulong = 5000 + 297;
-pub const SYS_name_to_handle_at: ::c_ulong = 5000 + 298;
-pub const SYS_open_by_handle_at: ::c_ulong = 5000 + 299;
-pub const SYS_clock_adjtime: ::c_ulong = 5000 + 300;
-pub const SYS_syncfs: ::c_ulong = 5000 + 301;
-pub const SYS_sendmmsg: ::c_ulong = 5000 + 302;
-pub const SYS_setns: ::c_ulong = 5000 + 303;
-pub const SYS_process_vm_readv: ::c_ulong = 5000 + 304;
-pub const SYS_process_vm_writev: ::c_ulong = 5000 + 305;
-pub const SYS_kcmp: ::c_ulong = 5000 + 306;
-pub const SYS_finit_module: ::c_ulong = 5000 + 307;
-pub const SYS_getdents64: ::c_ulong = 5000 + 308;
-pub const SYS_sched_setattr: ::c_ulong = 5000 + 309;
-pub const SYS_sched_getattr: ::c_ulong = 5000 + 310;
-pub const SYS_renameat2: ::c_ulong = 5000 + 311;
-pub const SYS_seccomp: ::c_ulong = 5000 + 312;
-pub const SYS_getrandom: ::c_ulong = 5000 + 313;
-pub const SYS_memfd_create: ::c_ulong = 5000 + 314;
-pub const SYS_bpf: ::c_ulong = 5000 + 315;
-pub const SYS_execveat: ::c_ulong = 5000 + 316;
-pub const SYS_userfaultfd: ::c_ulong = 5000 + 317;
-pub const SYS_membarrier: ::c_ulong = 5000 + 318;
-pub const SYS_mlock2: ::c_ulong = 5000 + 319;
-pub const SYS_copy_file_range: ::c_ulong = 5000 + 320;
-pub const SYS_preadv2: ::c_ulong = 5000 + 321;
-pub const SYS_pwritev2: ::c_ulong = 5000 + 322;
-pub const SYS_pkey_mprotect: ::c_ulong = 5000 + 323;
-pub const SYS_pkey_alloc: ::c_ulong = 5000 + 324;
-pub const SYS_pkey_free: ::c_ulong = 5000 + 325;
+pub const SYS_read: ::c_long = 5000 + 0;
+pub const SYS_write: ::c_long = 5000 + 1;
+pub const SYS_open: ::c_long = 5000 + 2;
+pub const SYS_close: ::c_long = 5000 + 3;
+pub const SYS_stat: ::c_long = 5000 + 4;
+pub const SYS_fstat: ::c_long = 5000 + 5;
+pub const SYS_lstat: ::c_long = 5000 + 6;
+pub const SYS_poll: ::c_long = 5000 + 7;
+pub const SYS_lseek: ::c_long = 5000 + 8;
+pub const SYS_mmap: ::c_long = 5000 + 9;
+pub const SYS_mprotect: ::c_long = 5000 + 10;
+pub const SYS_munmap: ::c_long = 5000 + 11;
+pub const SYS_brk: ::c_long = 5000 + 12;
+pub const SYS_rt_sigaction: ::c_long = 5000 + 13;
+pub const SYS_rt_sigprocmask: ::c_long = 5000 + 14;
+pub const SYS_ioctl: ::c_long = 5000 + 15;
+pub const SYS_pread64: ::c_long = 5000 + 16;
+pub const SYS_pwrite64: ::c_long = 5000 + 17;
+pub const SYS_readv: ::c_long = 5000 + 18;
+pub const SYS_writev: ::c_long = 5000 + 19;
+pub const SYS_access: ::c_long = 5000 + 20;
+pub const SYS_pipe: ::c_long = 5000 + 21;
+pub const SYS__newselect: ::c_long = 5000 + 22;
+pub const SYS_sched_yield: ::c_long = 5000 + 23;
+pub const SYS_mremap: ::c_long = 5000 + 24;
+pub const SYS_msync: ::c_long = 5000 + 25;
+pub const SYS_mincore: ::c_long = 5000 + 26;
+pub const SYS_madvise: ::c_long = 5000 + 27;
+pub const SYS_shmget: ::c_long = 5000 + 28;
+pub const SYS_shmat: ::c_long = 5000 + 29;
+pub const SYS_shmctl: ::c_long = 5000 + 30;
+pub const SYS_dup: ::c_long = 5000 + 31;
+pub const SYS_dup2: ::c_long = 5000 + 32;
+pub const SYS_pause: ::c_long = 5000 + 33;
+pub const SYS_nanosleep: ::c_long = 5000 + 34;
+pub const SYS_getitimer: ::c_long = 5000 + 35;
+pub const SYS_setitimer: ::c_long = 5000 + 36;
+pub const SYS_alarm: ::c_long = 5000 + 37;
+pub const SYS_getpid: ::c_long = 5000 + 38;
+pub const SYS_sendfile: ::c_long = 5000 + 39;
+pub const SYS_socket: ::c_long = 5000 + 40;
+pub const SYS_connect: ::c_long = 5000 + 41;
+pub const SYS_accept: ::c_long = 5000 + 42;
+pub const SYS_sendto: ::c_long = 5000 + 43;
+pub const SYS_recvfrom: ::c_long = 5000 + 44;
+pub const SYS_sendmsg: ::c_long = 5000 + 45;
+pub const SYS_recvmsg: ::c_long = 5000 + 46;
+pub const SYS_shutdown: ::c_long = 5000 + 47;
+pub const SYS_bind: ::c_long = 5000 + 48;
+pub const SYS_listen: ::c_long = 5000 + 49;
+pub const SYS_getsockname: ::c_long = 5000 + 50;
+pub const SYS_getpeername: ::c_long = 5000 + 51;
+pub const SYS_socketpair: ::c_long = 5000 + 52;
+pub const SYS_setsockopt: ::c_long = 5000 + 53;
+pub const SYS_getsockopt: ::c_long = 5000 + 54;
+pub const SYS_clone: ::c_long = 5000 + 55;
+pub const SYS_fork: ::c_long = 5000 + 56;
+pub const SYS_execve: ::c_long = 5000 + 57;
+pub const SYS_exit: ::c_long = 5000 + 58;
+pub const SYS_wait4: ::c_long = 5000 + 59;
+pub const SYS_kill: ::c_long = 5000 + 60;
+pub const SYS_uname: ::c_long = 5000 + 61;
+pub const SYS_semget: ::c_long = 5000 + 62;
+pub const SYS_semop: ::c_long = 5000 + 63;
+pub const SYS_semctl: ::c_long = 5000 + 64;
+pub const SYS_shmdt: ::c_long = 5000 + 65;
+pub const SYS_msgget: ::c_long = 5000 + 66;
+pub const SYS_msgsnd: ::c_long = 5000 + 67;
+pub const SYS_msgrcv: ::c_long = 5000 + 68;
+pub const SYS_msgctl: ::c_long = 5000 + 69;
+pub const SYS_fcntl: ::c_long = 5000 + 70;
+pub const SYS_flock: ::c_long = 5000 + 71;
+pub const SYS_fsync: ::c_long = 5000 + 72;
+pub const SYS_fdatasync: ::c_long = 5000 + 73;
+pub const SYS_truncate: ::c_long = 5000 + 74;
+pub const SYS_ftruncate: ::c_long = 5000 + 75;
+pub const SYS_getdents: ::c_long = 5000 + 76;
+pub const SYS_getcwd: ::c_long = 5000 + 77;
+pub const SYS_chdir: ::c_long = 5000 + 78;
+pub const SYS_fchdir: ::c_long = 5000 + 79;
+pub const SYS_rename: ::c_long = 5000 + 80;
+pub const SYS_mkdir: ::c_long = 5000 + 81;
+pub const SYS_rmdir: ::c_long = 5000 + 82;
+pub const SYS_creat: ::c_long = 5000 + 83;
+pub const SYS_link: ::c_long = 5000 + 84;
+pub const SYS_unlink: ::c_long = 5000 + 85;
+pub const SYS_symlink: ::c_long = 5000 + 86;
+pub const SYS_readlink: ::c_long = 5000 + 87;
+pub const SYS_chmod: ::c_long = 5000 + 88;
+pub const SYS_fchmod: ::c_long = 5000 + 89;
+pub const SYS_chown: ::c_long = 5000 + 90;
+pub const SYS_fchown: ::c_long = 5000 + 91;
+pub const SYS_lchown: ::c_long = 5000 + 92;
+pub const SYS_umask: ::c_long = 5000 + 93;
+pub const SYS_gettimeofday: ::c_long = 5000 + 94;
+pub const SYS_getrlimit: ::c_long = 5000 + 95;
+pub const SYS_getrusage: ::c_long = 5000 + 96;
+pub const SYS_sysinfo: ::c_long = 5000 + 97;
+pub const SYS_times: ::c_long = 5000 + 98;
+pub const SYS_ptrace: ::c_long = 5000 + 99;
+pub const SYS_getuid: ::c_long = 5000 + 100;
+pub const SYS_syslog: ::c_long = 5000 + 101;
+pub const SYS_getgid: ::c_long = 5000 + 102;
+pub const SYS_setuid: ::c_long = 5000 + 103;
+pub const SYS_setgid: ::c_long = 5000 + 104;
+pub const SYS_geteuid: ::c_long = 5000 + 105;
+pub const SYS_getegid: ::c_long = 5000 + 106;
+pub const SYS_setpgid: ::c_long = 5000 + 107;
+pub const SYS_getppid: ::c_long = 5000 + 108;
+pub const SYS_getpgrp: ::c_long = 5000 + 109;
+pub const SYS_setsid: ::c_long = 5000 + 110;
+pub const SYS_setreuid: ::c_long = 5000 + 111;
+pub const SYS_setregid: ::c_long = 5000 + 112;
+pub const SYS_getgroups: ::c_long = 5000 + 113;
+pub const SYS_setgroups: ::c_long = 5000 + 114;
+pub const SYS_setresuid: ::c_long = 5000 + 115;
+pub const SYS_getresuid: ::c_long = 5000 + 116;
+pub const SYS_setresgid: ::c_long = 5000 + 117;
+pub const SYS_getresgid: ::c_long = 5000 + 118;
+pub const SYS_getpgid: ::c_long = 5000 + 119;
+pub const SYS_setfsuid: ::c_long = 5000 + 120;
+pub const SYS_setfsgid: ::c_long = 5000 + 121;
+pub const SYS_getsid: ::c_long = 5000 + 122;
+pub const SYS_capget: ::c_long = 5000 + 123;
+pub const SYS_capset: ::c_long = 5000 + 124;
+pub const SYS_rt_sigpending: ::c_long = 5000 + 125;
+pub const SYS_rt_sigtimedwait: ::c_long = 5000 + 126;
+pub const SYS_rt_sigqueueinfo: ::c_long = 5000 + 127;
+pub const SYS_rt_sigsuspend: ::c_long = 5000 + 128;
+pub const SYS_sigaltstack: ::c_long = 5000 + 129;
+pub const SYS_utime: ::c_long = 5000 + 130;
+pub const SYS_mknod: ::c_long = 5000 + 131;
+pub const SYS_personality: ::c_long = 5000 + 132;
+pub const SYS_ustat: ::c_long = 5000 + 133;
+pub const SYS_statfs: ::c_long = 5000 + 134;
+pub const SYS_fstatfs: ::c_long = 5000 + 135;
+pub const SYS_sysfs: ::c_long = 5000 + 136;
+pub const SYS_getpriority: ::c_long = 5000 + 137;
+pub const SYS_setpriority: ::c_long = 5000 + 138;
+pub const SYS_sched_setparam: ::c_long = 5000 + 139;
+pub const SYS_sched_getparam: ::c_long = 5000 + 140;
+pub const SYS_sched_setscheduler: ::c_long = 5000 + 141;
+pub const SYS_sched_getscheduler: ::c_long = 5000 + 142;
+pub const SYS_sched_get_priority_max: ::c_long = 5000 + 143;
+pub const SYS_sched_get_priority_min: ::c_long = 5000 + 144;
+pub const SYS_sched_rr_get_interval: ::c_long = 5000 + 145;
+pub const SYS_mlock: ::c_long = 5000 + 146;
+pub const SYS_munlock: ::c_long = 5000 + 147;
+pub const SYS_mlockall: ::c_long = 5000 + 148;
+pub const SYS_munlockall: ::c_long = 5000 + 149;
+pub const SYS_vhangup: ::c_long = 5000 + 150;
+pub const SYS_pivot_root: ::c_long = 5000 + 151;
+pub const SYS__sysctl: ::c_long = 5000 + 152;
+pub const SYS_prctl: ::c_long = 5000 + 153;
+pub const SYS_adjtimex: ::c_long = 5000 + 154;
+pub const SYS_setrlimit: ::c_long = 5000 + 155;
+pub const SYS_chroot: ::c_long = 5000 + 156;
+pub const SYS_sync: ::c_long = 5000 + 157;
+pub const SYS_acct: ::c_long = 5000 + 158;
+pub const SYS_settimeofday: ::c_long = 5000 + 159;
+pub const SYS_mount: ::c_long = 5000 + 160;
+pub const SYS_umount2: ::c_long = 5000 + 161;
+pub const SYS_swapon: ::c_long = 5000 + 162;
+pub const SYS_swapoff: ::c_long = 5000 + 163;
+pub const SYS_reboot: ::c_long = 5000 + 164;
+pub const SYS_sethostname: ::c_long = 5000 + 165;
+pub const SYS_setdomainname: ::c_long = 5000 + 166;
+pub const SYS_create_module: ::c_long = 5000 + 167;
+pub const SYS_init_module: ::c_long = 5000 + 168;
+pub const SYS_delete_module: ::c_long = 5000 + 169;
+pub const SYS_get_kernel_syms: ::c_long = 5000 + 170;
+pub const SYS_query_module: ::c_long = 5000 + 171;
+pub const SYS_quotactl: ::c_long = 5000 + 172;
+pub const SYS_nfsservctl: ::c_long = 5000 + 173;
+pub const SYS_getpmsg: ::c_long = 5000 + 174;
+pub const SYS_putpmsg: ::c_long = 5000 + 175;
+pub const SYS_afs_syscall: ::c_long = 5000 + 176;
+pub const SYS_reserved177: ::c_long = 5000 + 177;
+pub const SYS_gettid: ::c_long = 5000 + 178;
+pub const SYS_readahead: ::c_long = 5000 + 179;
+pub const SYS_setxattr: ::c_long = 5000 + 180;
+pub const SYS_lsetxattr: ::c_long = 5000 + 181;
+pub const SYS_fsetxattr: ::c_long = 5000 + 182;
+pub const SYS_getxattr: ::c_long = 5000 + 183;
+pub const SYS_lgetxattr: ::c_long = 5000 + 184;
+pub const SYS_fgetxattr: ::c_long = 5000 + 185;
+pub const SYS_listxattr: ::c_long = 5000 + 186;
+pub const SYS_llistxattr: ::c_long = 5000 + 187;
+pub const SYS_flistxattr: ::c_long = 5000 + 188;
+pub const SYS_removexattr: ::c_long = 5000 + 189;
+pub const SYS_lremovexattr: ::c_long = 5000 + 190;
+pub const SYS_fremovexattr: ::c_long = 5000 + 191;
+pub const SYS_tkill: ::c_long = 5000 + 192;
+pub const SYS_reserved193: ::c_long = 5000 + 193;
+pub const SYS_futex: ::c_long = 5000 + 194;
+pub const SYS_sched_setaffinity: ::c_long = 5000 + 195;
+pub const SYS_sched_getaffinity: ::c_long = 5000 + 196;
+pub const SYS_cacheflush: ::c_long = 5000 + 197;
+pub const SYS_cachectl: ::c_long = 5000 + 198;
+pub const SYS_sysmips: ::c_long = 5000 + 199;
+pub const SYS_io_setup: ::c_long = 5000 + 200;
+pub const SYS_io_destroy: ::c_long = 5000 + 201;
+pub const SYS_io_getevents: ::c_long = 5000 + 202;
+pub const SYS_io_submit: ::c_long = 5000 + 203;
+pub const SYS_io_cancel: ::c_long = 5000 + 204;
+pub const SYS_exit_group: ::c_long = 5000 + 205;
+pub const SYS_lookup_dcookie: ::c_long = 5000 + 206;
+pub const SYS_epoll_create: ::c_long = 5000 + 207;
+pub const SYS_epoll_ctl: ::c_long = 5000 + 208;
+pub const SYS_epoll_wait: ::c_long = 5000 + 209;
+pub const SYS_remap_file_pages: ::c_long = 5000 + 210;
+pub const SYS_rt_sigreturn: ::c_long = 5000 + 211;
+pub const SYS_set_tid_address: ::c_long = 5000 + 212;
+pub const SYS_restart_syscall: ::c_long = 5000 + 213;
+pub const SYS_semtimedop: ::c_long = 5000 + 214;
+pub const SYS_fadvise64: ::c_long = 5000 + 215;
+pub const SYS_timer_create: ::c_long = 5000 + 216;
+pub const SYS_timer_settime: ::c_long = 5000 + 217;
+pub const SYS_timer_gettime: ::c_long = 5000 + 218;
+pub const SYS_timer_getoverrun: ::c_long = 5000 + 219;
+pub const SYS_timer_delete: ::c_long = 5000 + 220;
+pub const SYS_clock_settime: ::c_long = 5000 + 221;
+pub const SYS_clock_gettime: ::c_long = 5000 + 222;
+pub const SYS_clock_getres: ::c_long = 5000 + 223;
+pub const SYS_clock_nanosleep: ::c_long = 5000 + 224;
+pub const SYS_tgkill: ::c_long = 5000 + 225;
+pub const SYS_utimes: ::c_long = 5000 + 226;
+pub const SYS_mbind: ::c_long = 5000 + 227;
+pub const SYS_get_mempolicy: ::c_long = 5000 + 228;
+pub const SYS_set_mempolicy: ::c_long = 5000 + 229;
+pub const SYS_mq_open: ::c_long = 5000 + 230;
+pub const SYS_mq_unlink: ::c_long = 5000 + 231;
+pub const SYS_mq_timedsend: ::c_long = 5000 + 232;
+pub const SYS_mq_timedreceive: ::c_long = 5000 + 233;
+pub const SYS_mq_notify: ::c_long = 5000 + 234;
+pub const SYS_mq_getsetattr: ::c_long = 5000 + 235;
+pub const SYS_vserver: ::c_long = 5000 + 236;
+pub const SYS_waitid: ::c_long = 5000 + 237;
+/* pub const SYS_sys_setaltroot: ::c_long = 5000 + 238; */
+pub const SYS_add_key: ::c_long = 5000 + 239;
+pub const SYS_request_key: ::c_long = 5000 + 240;
+pub const SYS_keyctl: ::c_long = 5000 + 241;
+pub const SYS_set_thread_area: ::c_long = 5000 + 242;
+pub const SYS_inotify_init: ::c_long = 5000 + 243;
+pub const SYS_inotify_add_watch: ::c_long = 5000 + 244;
+pub const SYS_inotify_rm_watch: ::c_long = 5000 + 245;
+pub const SYS_migrate_pages: ::c_long = 5000 + 246;
+pub const SYS_openat: ::c_long = 5000 + 247;
+pub const SYS_mkdirat: ::c_long = 5000 + 248;
+pub const SYS_mknodat: ::c_long = 5000 + 249;
+pub const SYS_fchownat: ::c_long = 5000 + 250;
+pub const SYS_futimesat: ::c_long = 5000 + 251;
+pub const SYS_newfstatat: ::c_long = 5000 + 252;
+pub const SYS_unlinkat: ::c_long = 5000 + 253;
+pub const SYS_renameat: ::c_long = 5000 + 254;
+pub const SYS_linkat: ::c_long = 5000 + 255;
+pub const SYS_symlinkat: ::c_long = 5000 + 256;
+pub const SYS_readlinkat: ::c_long = 5000 + 257;
+pub const SYS_fchmodat: ::c_long = 5000 + 258;
+pub const SYS_faccessat: ::c_long = 5000 + 259;
+pub const SYS_pselect6: ::c_long = 5000 + 260;
+pub const SYS_ppoll: ::c_long = 5000 + 261;
+pub const SYS_unshare: ::c_long = 5000 + 262;
+pub const SYS_splice: ::c_long = 5000 + 263;
+pub const SYS_sync_file_range: ::c_long = 5000 + 264;
+pub const SYS_tee: ::c_long = 5000 + 265;
+pub const SYS_vmsplice: ::c_long = 5000 + 266;
+pub const SYS_move_pages: ::c_long = 5000 + 267;
+pub const SYS_set_robust_list: ::c_long = 5000 + 268;
+pub const SYS_get_robust_list: ::c_long = 5000 + 269;
+pub const SYS_kexec_load: ::c_long = 5000 + 270;
+pub const SYS_getcpu: ::c_long = 5000 + 271;
+pub const SYS_epoll_pwait: ::c_long = 5000 + 272;
+pub const SYS_ioprio_set: ::c_long = 5000 + 273;
+pub const SYS_ioprio_get: ::c_long = 5000 + 274;
+pub const SYS_utimensat: ::c_long = 5000 + 275;
+pub const SYS_signalfd: ::c_long = 5000 + 276;
+pub const SYS_timerfd: ::c_long = 5000 + 277;
+pub const SYS_eventfd: ::c_long = 5000 + 278;
+pub const SYS_fallocate: ::c_long = 5000 + 279;
+pub const SYS_timerfd_create: ::c_long = 5000 + 280;
+pub const SYS_timerfd_gettime: ::c_long = 5000 + 281;
+pub const SYS_timerfd_settime: ::c_long = 5000 + 282;
+pub const SYS_signalfd4: ::c_long = 5000 + 283;
+pub const SYS_eventfd2: ::c_long = 5000 + 284;
+pub const SYS_epoll_create1: ::c_long = 5000 + 285;
+pub const SYS_dup3: ::c_long = 5000 + 286;
+pub const SYS_pipe2: ::c_long = 5000 + 287;
+pub const SYS_inotify_init1: ::c_long = 5000 + 288;
+pub const SYS_preadv: ::c_long = 5000 + 289;
+pub const SYS_pwritev: ::c_long = 5000 + 290;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 5000 + 291;
+pub const SYS_perf_event_open: ::c_long = 5000 + 292;
+pub const SYS_accept4: ::c_long = 5000 + 293;
+pub const SYS_recvmmsg: ::c_long = 5000 + 294;
+pub const SYS_fanotify_init: ::c_long = 5000 + 295;
+pub const SYS_fanotify_mark: ::c_long = 5000 + 296;
+pub const SYS_prlimit64: ::c_long = 5000 + 297;
+pub const SYS_name_to_handle_at: ::c_long = 5000 + 298;
+pub const SYS_open_by_handle_at: ::c_long = 5000 + 299;
+pub const SYS_clock_adjtime: ::c_long = 5000 + 300;
+pub const SYS_syncfs: ::c_long = 5000 + 301;
+pub const SYS_sendmmsg: ::c_long = 5000 + 302;
+pub const SYS_setns: ::c_long = 5000 + 303;
+pub const SYS_process_vm_readv: ::c_long = 5000 + 304;
+pub const SYS_process_vm_writev: ::c_long = 5000 + 305;
+pub const SYS_kcmp: ::c_long = 5000 + 306;
+pub const SYS_finit_module: ::c_long = 5000 + 307;
+pub const SYS_getdents64: ::c_long = 5000 + 308;
+pub const SYS_sched_setattr: ::c_long = 5000 + 309;
+pub const SYS_sched_getattr: ::c_long = 5000 + 310;
+pub const SYS_renameat2: ::c_long = 5000 + 311;
+pub const SYS_seccomp: ::c_long = 5000 + 312;
+pub const SYS_getrandom: ::c_long = 5000 + 313;
+pub const SYS_memfd_create: ::c_long = 5000 + 314;
+pub const SYS_bpf: ::c_long = 5000 + 315;
+pub const SYS_execveat: ::c_long = 5000 + 316;
+pub const SYS_userfaultfd: ::c_long = 5000 + 317;
+pub const SYS_membarrier: ::c_long = 5000 + 318;
+pub const SYS_mlock2: ::c_long = 5000 + 319;
+pub const SYS_copy_file_range: ::c_long = 5000 + 320;
+pub const SYS_preadv2: ::c_long = 5000 + 321;
+pub const SYS_pwritev2: ::c_long = 5000 + 322;
+pub const SYS_pkey_mprotect: ::c_long = 5000 + 323;
+pub const SYS_pkey_alloc: ::c_long = 5000 + 324;
+pub const SYS_pkey_free: ::c_long = 5000 + 325;
diff --git a/src/unix/notbsd/linux/mips/mod.rs b/src/unix/notbsd/linux/mips/mod.rs
index 7681999..6e91f44 100644
--- a/src/unix/notbsd/linux/mips/mod.rs
+++ b/src/unix/notbsd/linux/mips/mod.rs
@@ -25,6 +25,17 @@
__size: [::c_char; 32],
__align: [::c_long; 0],
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 23],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const SFD_CLOEXEC: ::c_int = 0x080000;
@@ -614,6 +625,7 @@
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index 0841dd2..2de88bc 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -213,12 +213,30 @@
__val: [::c_int; 2],
}
+ // x32 compatibility
+ // See https://sourceware.org/bugzilla/show_bug.cgi?id=21279
pub struct mq_attr {
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
+ pub mq_flags: i64,
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
+ pub mq_maxmsg: i64,
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
+ pub mq_msgsize: i64,
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
+ pub mq_curmsgs: i64,
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
+ pad: [i64; 4],
+
+ #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
pub mq_flags: ::c_long,
+ #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
pub mq_maxmsg: ::c_long,
+ #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
pub mq_msgsize: ::c_long,
+ #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
pub mq_curmsgs: ::c_long,
- pad: [::c_long; 4]
+ #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
+ pad: [::c_long; 4],
}
pub struct cpu_set_t {
@@ -1411,6 +1429,7 @@
oldset: *mut sigset_t) -> ::c_int;
pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t;
pub fn getgrnam(name: *const ::c_char) -> *mut ::group;
+ pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
pub fn sem_unlink(name: *const ::c_char) -> ::c_int;
pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int;
diff --git a/src/unix/notbsd/linux/musl/b32/arm.rs b/src/unix/notbsd/linux/musl/b32/arm.rs
index ac09a2f..22bf16c 100644
--- a/src/unix/notbsd/linux/musl/b32/arm.rs
+++ b/src/unix/notbsd/linux/musl/b32/arm.rs
@@ -138,6 +138,17 @@
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const O_DIRECT: ::c_int = 0x10000;
@@ -387,356 +398,356 @@
pub const TIOCM_RI: ::c_int = TIOCM_RNG;
// Syscall table
-pub const SYS_restart_syscall: ::c_ulong = 0;
-pub const SYS_exit: ::c_ulong = 1;
-pub const SYS_fork: ::c_ulong = 2;
-pub const SYS_read: ::c_ulong = 3;
-pub const SYS_write: ::c_ulong = 4;
-pub const SYS_open: ::c_ulong = 5;
-pub const SYS_close: ::c_ulong = 6;
-pub const SYS_creat: ::c_ulong = 8;
-pub const SYS_link: ::c_ulong = 9;
-pub const SYS_unlink: ::c_ulong = 10;
-pub const SYS_execve: ::c_ulong = 11;
-pub const SYS_chdir: ::c_ulong = 12;
-pub const SYS_mknod: ::c_ulong = 14;
-pub const SYS_chmod: ::c_ulong = 15;
-pub const SYS_lchown: ::c_ulong = 16;
-pub const SYS_lseek: ::c_ulong = 19;
-pub const SYS_getpid: ::c_ulong = 20;
-pub const SYS_mount: ::c_ulong = 21;
-pub const SYS_setuid: ::c_ulong = 23;
-pub const SYS_getuid: ::c_ulong = 24;
-pub const SYS_ptrace: ::c_ulong = 26;
-pub const SYS_pause: ::c_ulong = 29;
-pub const SYS_access: ::c_ulong = 33;
-pub const SYS_nice: ::c_ulong = 34;
-pub const SYS_sync: ::c_ulong = 36;
-pub const SYS_kill: ::c_ulong = 37;
-pub const SYS_rename: ::c_ulong = 38;
-pub const SYS_mkdir: ::c_ulong = 39;
-pub const SYS_rmdir: ::c_ulong = 40;
-pub const SYS_dup: ::c_ulong = 41;
-pub const SYS_pipe: ::c_ulong = 42;
-pub const SYS_times: ::c_ulong = 43;
-pub const SYS_brk: ::c_ulong = 45;
-pub const SYS_setgid: ::c_ulong = 46;
-pub const SYS_getgid: ::c_ulong = 47;
-pub const SYS_geteuid: ::c_ulong = 49;
-pub const SYS_getegid: ::c_ulong = 50;
-pub const SYS_acct: ::c_ulong = 51;
-pub const SYS_umount2: ::c_ulong = 52;
-pub const SYS_ioctl: ::c_ulong = 54;
-pub const SYS_fcntl: ::c_ulong = 55;
-pub const SYS_setpgid: ::c_ulong = 57;
-pub const SYS_umask: ::c_ulong = 60;
-pub const SYS_chroot: ::c_ulong = 61;
-pub const SYS_ustat: ::c_ulong = 62;
-pub const SYS_dup2: ::c_ulong = 63;
-pub const SYS_getppid: ::c_ulong = 64;
-pub const SYS_getpgrp: ::c_ulong = 65;
-pub const SYS_setsid: ::c_ulong = 66;
-pub const SYS_sigaction: ::c_ulong = 67;
-pub const SYS_setreuid: ::c_ulong = 70;
-pub const SYS_setregid: ::c_ulong = 71;
-pub const SYS_sigsuspend: ::c_ulong = 72;
-pub const SYS_sigpending: ::c_ulong = 73;
-pub const SYS_sethostname: ::c_ulong = 74;
-pub const SYS_setrlimit: ::c_ulong = 75;
-pub const SYS_getrusage: ::c_ulong = 77;
-pub const SYS_gettimeofday: ::c_ulong = 78;
-pub const SYS_settimeofday: ::c_ulong = 79;
-pub const SYS_getgroups: ::c_ulong = 80;
-pub const SYS_setgroups: ::c_ulong = 81;
-pub const SYS_symlink: ::c_ulong = 83;
-pub const SYS_readlink: ::c_ulong = 85;
-pub const SYS_uselib: ::c_ulong = 86;
-pub const SYS_swapon: ::c_ulong = 87;
-pub const SYS_reboot: ::c_ulong = 88;
-pub const SYS_munmap: ::c_ulong = 91;
-pub const SYS_truncate: ::c_ulong = 92;
-pub const SYS_ftruncate: ::c_ulong = 93;
-pub const SYS_fchmod: ::c_ulong = 94;
-pub const SYS_fchown: ::c_ulong = 95;
-pub const SYS_getpriority: ::c_ulong = 96;
-pub const SYS_setpriority: ::c_ulong = 97;
-pub const SYS_statfs: ::c_ulong = 99;
-pub const SYS_fstatfs: ::c_ulong = 100;
-pub const SYS_syslog: ::c_ulong = 103;
-pub const SYS_setitimer: ::c_ulong = 104;
-pub const SYS_getitimer: ::c_ulong = 105;
-pub const SYS_stat: ::c_ulong = 106;
-pub const SYS_lstat: ::c_ulong = 107;
-pub const SYS_fstat: ::c_ulong = 108;
-pub const SYS_vhangup: ::c_ulong = 111;
-pub const SYS_wait4: ::c_ulong = 114;
-pub const SYS_swapoff: ::c_ulong = 115;
-pub const SYS_sysinfo: ::c_ulong = 116;
-pub const SYS_fsync: ::c_ulong = 118;
-pub const SYS_sigreturn: ::c_ulong = 119;
-pub const SYS_clone: ::c_ulong = 120;
-pub const SYS_setdomainname: ::c_ulong = 121;
-pub const SYS_uname: ::c_ulong = 122;
-pub const SYS_adjtimex: ::c_ulong = 124;
-pub const SYS_mprotect: ::c_ulong = 125;
-pub const SYS_sigprocmask: ::c_ulong = 126;
-pub const SYS_init_module: ::c_ulong = 128;
-pub const SYS_delete_module: ::c_ulong = 129;
-pub const SYS_quotactl: ::c_ulong = 131;
-pub const SYS_getpgid: ::c_ulong = 132;
-pub const SYS_fchdir: ::c_ulong = 133;
-pub const SYS_bdflush: ::c_ulong = 134;
-pub const SYS_sysfs: ::c_ulong = 135;
-pub const SYS_personality: ::c_ulong = 136;
-pub const SYS_setfsuid: ::c_ulong = 138;
-pub const SYS_setfsgid: ::c_ulong = 139;
-pub const SYS__llseek: ::c_ulong = 140;
-pub const SYS_getdents: ::c_ulong = 141;
-pub const SYS__newselect: ::c_ulong = 142;
-pub const SYS_flock: ::c_ulong = 143;
-pub const SYS_msync: ::c_ulong = 144;
-pub const SYS_readv: ::c_ulong = 145;
-pub const SYS_writev: ::c_ulong = 146;
-pub const SYS_getsid: ::c_ulong = 147;
-pub const SYS_fdatasync: ::c_ulong = 148;
-pub const SYS__sysctl: ::c_ulong = 149;
-pub const SYS_mlock: ::c_ulong = 150;
-pub const SYS_munlock: ::c_ulong = 151;
-pub const SYS_mlockall: ::c_ulong = 152;
-pub const SYS_munlockall: ::c_ulong = 153;
-pub const SYS_sched_setparam: ::c_ulong = 154;
-pub const SYS_sched_getparam: ::c_ulong = 155;
-pub const SYS_sched_setscheduler: ::c_ulong = 156;
-pub const SYS_sched_getscheduler: ::c_ulong = 157;
-pub const SYS_sched_yield: ::c_ulong = 158;
-pub const SYS_sched_get_priority_max: ::c_ulong = 159;
-pub const SYS_sched_get_priority_min: ::c_ulong = 160;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 161;
-pub const SYS_nanosleep: ::c_ulong = 162;
-pub const SYS_mremap: ::c_ulong = 163;
-pub const SYS_setresuid: ::c_ulong = 164;
-pub const SYS_getresuid: ::c_ulong = 165;
-pub const SYS_poll: ::c_ulong = 168;
-pub const SYS_nfsservctl: ::c_ulong = 169;
-pub const SYS_setresgid: ::c_ulong = 170;
-pub const SYS_getresgid: ::c_ulong = 171;
-pub const SYS_prctl: ::c_ulong = 172;
-pub const SYS_rt_sigreturn: ::c_ulong = 173;
-pub const SYS_rt_sigaction: ::c_ulong = 174;
-pub const SYS_rt_sigprocmask: ::c_ulong = 175;
-pub const SYS_rt_sigpending: ::c_ulong = 176;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 177;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 178;
-pub const SYS_rt_sigsuspend: ::c_ulong = 179;
-pub const SYS_pread64: ::c_ulong = 180;
-pub const SYS_pwrite64: ::c_ulong = 181;
-pub const SYS_chown: ::c_ulong = 182;
-pub const SYS_getcwd: ::c_ulong = 183;
-pub const SYS_capget: ::c_ulong = 184;
-pub const SYS_capset: ::c_ulong = 185;
-pub const SYS_sigaltstack: ::c_ulong = 186;
-pub const SYS_sendfile: ::c_ulong = 187;
-pub const SYS_vfork: ::c_ulong = 190;
-pub const SYS_ugetrlimit: ::c_ulong = 191;
-pub const SYS_mmap2: ::c_ulong = 192;
-pub const SYS_truncate64: ::c_ulong = 193;
-pub const SYS_ftruncate64: ::c_ulong = 194;
-pub const SYS_stat64: ::c_ulong = 195;
-pub const SYS_lstat64: ::c_ulong = 196;
-pub const SYS_fstat64: ::c_ulong = 197;
-pub const SYS_lchown32: ::c_ulong = 198;
-pub const SYS_getuid32: ::c_ulong = 199;
-pub const SYS_getgid32: ::c_ulong = 200;
-pub const SYS_geteuid32: ::c_ulong = 201;
-pub const SYS_getegid32: ::c_ulong = 202;
-pub const SYS_setreuid32: ::c_ulong = 203;
-pub const SYS_setregid32: ::c_ulong = 204;
-pub const SYS_getgroups32: ::c_ulong = 205;
-pub const SYS_setgroups32: ::c_ulong = 206;
-pub const SYS_fchown32: ::c_ulong = 207;
-pub const SYS_setresuid32: ::c_ulong = 208;
-pub const SYS_getresuid32: ::c_ulong = 209;
-pub const SYS_setresgid32: ::c_ulong = 210;
-pub const SYS_getresgid32: ::c_ulong = 211;
-pub const SYS_chown32: ::c_ulong = 212;
-pub const SYS_setuid32: ::c_ulong = 213;
-pub const SYS_setgid32: ::c_ulong = 214;
-pub const SYS_setfsuid32: ::c_ulong = 215;
-pub const SYS_setfsgid32: ::c_ulong = 216;
-pub const SYS_getdents64: ::c_ulong = 217;
-pub const SYS_pivot_root: ::c_ulong = 218;
-pub const SYS_mincore: ::c_ulong = 219;
-pub const SYS_madvise: ::c_ulong = 220;
-pub const SYS_fcntl64: ::c_ulong = 221;
-pub const SYS_gettid: ::c_ulong = 224;
-pub const SYS_readahead: ::c_ulong = 225;
-pub const SYS_setxattr: ::c_ulong = 226;
-pub const SYS_lsetxattr: ::c_ulong = 227;
-pub const SYS_fsetxattr: ::c_ulong = 228;
-pub const SYS_getxattr: ::c_ulong = 229;
-pub const SYS_lgetxattr: ::c_ulong = 230;
-pub const SYS_fgetxattr: ::c_ulong = 231;
-pub const SYS_listxattr: ::c_ulong = 232;
-pub const SYS_llistxattr: ::c_ulong = 233;
-pub const SYS_flistxattr: ::c_ulong = 234;
-pub const SYS_removexattr: ::c_ulong = 235;
-pub const SYS_lremovexattr: ::c_ulong = 236;
-pub const SYS_fremovexattr: ::c_ulong = 237;
-pub const SYS_tkill: ::c_ulong = 238;
-pub const SYS_sendfile64: ::c_ulong = 239;
-pub const SYS_futex: ::c_ulong = 240;
-pub const SYS_sched_setaffinity: ::c_ulong = 241;
-pub const SYS_sched_getaffinity: ::c_ulong = 242;
-pub const SYS_io_setup: ::c_ulong = 243;
-pub const SYS_io_destroy: ::c_ulong = 244;
-pub const SYS_io_getevents: ::c_ulong = 245;
-pub const SYS_io_submit: ::c_ulong = 246;
-pub const SYS_io_cancel: ::c_ulong = 247;
-pub const SYS_exit_group: ::c_ulong = 248;
-pub const SYS_lookup_dcookie: ::c_ulong = 249;
-pub const SYS_epoll_create: ::c_ulong = 250;
-pub const SYS_epoll_ctl: ::c_ulong = 251;
-pub const SYS_epoll_wait: ::c_ulong = 252;
-pub const SYS_remap_file_pages: ::c_ulong = 253;
-pub const SYS_set_tid_address: ::c_ulong = 256;
-pub const SYS_timer_create: ::c_ulong = 257;
-pub const SYS_timer_settime: ::c_ulong = 258;
-pub const SYS_timer_gettime: ::c_ulong = 259;
-pub const SYS_timer_getoverrun: ::c_ulong = 260;
-pub const SYS_timer_delete: ::c_ulong = 261;
-pub const SYS_clock_settime: ::c_ulong = 262;
-pub const SYS_clock_gettime: ::c_ulong = 263;
-pub const SYS_clock_getres: ::c_ulong = 264;
-pub const SYS_clock_nanosleep: ::c_ulong = 265;
-pub const SYS_statfs64: ::c_ulong = 266;
-pub const SYS_fstatfs64: ::c_ulong = 267;
-pub const SYS_tgkill: ::c_ulong = 268;
-pub const SYS_utimes: ::c_ulong = 269;
-pub const SYS_pciconfig_iobase: ::c_ulong = 271;
-pub const SYS_pciconfig_read: ::c_ulong = 272;
-pub const SYS_pciconfig_write: ::c_ulong = 273;
-pub const SYS_mq_open: ::c_ulong = 274;
-pub const SYS_mq_unlink: ::c_ulong = 275;
-pub const SYS_mq_timedsend: ::c_ulong = 276;
-pub const SYS_mq_timedreceive: ::c_ulong = 277;
-pub const SYS_mq_notify: ::c_ulong = 278;
-pub const SYS_mq_getsetattr: ::c_ulong = 279;
-pub const SYS_waitid: ::c_ulong = 280;
-pub const SYS_socket: ::c_ulong = 281;
-pub const SYS_bind: ::c_ulong = 282;
-pub const SYS_connect: ::c_ulong = 283;
-pub const SYS_listen: ::c_ulong = 284;
-pub const SYS_accept: ::c_ulong = 285;
-pub const SYS_getsockname: ::c_ulong = 286;
-pub const SYS_getpeername: ::c_ulong = 287;
-pub const SYS_socketpair: ::c_ulong = 288;
-pub const SYS_send: ::c_ulong = 289;
-pub const SYS_sendto: ::c_ulong = 290;
-pub const SYS_recv: ::c_ulong = 291;
-pub const SYS_recvfrom: ::c_ulong = 292;
-pub const SYS_shutdown: ::c_ulong = 293;
-pub const SYS_setsockopt: ::c_ulong = 294;
-pub const SYS_getsockopt: ::c_ulong = 295;
-pub const SYS_sendmsg: ::c_ulong = 296;
-pub const SYS_recvmsg: ::c_ulong = 297;
-pub const SYS_semop: ::c_ulong = 298;
-pub const SYS_semget: ::c_ulong = 299;
-pub const SYS_semctl: ::c_ulong = 300;
-pub const SYS_msgsnd: ::c_ulong = 301;
-pub const SYS_msgrcv: ::c_ulong = 302;
-pub const SYS_msgget: ::c_ulong = 303;
-pub const SYS_msgctl: ::c_ulong = 304;
-pub const SYS_shmat: ::c_ulong = 305;
-pub const SYS_shmdt: ::c_ulong = 306;
-pub const SYS_shmget: ::c_ulong = 307;
-pub const SYS_shmctl: ::c_ulong = 308;
-pub const SYS_add_key: ::c_ulong = 309;
-pub const SYS_request_key: ::c_ulong = 310;
-pub const SYS_keyctl: ::c_ulong = 311;
-pub const SYS_semtimedop: ::c_ulong = 312;
-pub const SYS_vserver: ::c_ulong = 313;
-pub const SYS_ioprio_set: ::c_ulong = 314;
-pub const SYS_ioprio_get: ::c_ulong = 315;
-pub const SYS_inotify_init: ::c_ulong = 316;
-pub const SYS_inotify_add_watch: ::c_ulong = 317;
-pub const SYS_inotify_rm_watch: ::c_ulong = 318;
-pub const SYS_mbind: ::c_ulong = 319;
-pub const SYS_get_mempolicy: ::c_ulong = 320;
-pub const SYS_set_mempolicy: ::c_ulong = 321;
-pub const SYS_openat: ::c_ulong = 322;
-pub const SYS_mkdirat: ::c_ulong = 323;
-pub const SYS_mknodat: ::c_ulong = 324;
-pub const SYS_fchownat: ::c_ulong = 325;
-pub const SYS_futimesat: ::c_ulong = 326;
-pub const SYS_fstatat64: ::c_ulong = 327;
-pub const SYS_unlinkat: ::c_ulong = 328;
-pub const SYS_renameat: ::c_ulong = 329;
-pub const SYS_linkat: ::c_ulong = 330;
-pub const SYS_symlinkat: ::c_ulong = 331;
-pub const SYS_readlinkat: ::c_ulong = 332;
-pub const SYS_fchmodat: ::c_ulong = 333;
-pub const SYS_faccessat: ::c_ulong = 334;
-pub const SYS_pselect6: ::c_ulong = 335;
-pub const SYS_ppoll: ::c_ulong = 336;
-pub const SYS_unshare: ::c_ulong = 337;
-pub const SYS_set_robust_list: ::c_ulong = 338;
-pub const SYS_get_robust_list: ::c_ulong = 339;
-pub const SYS_splice: ::c_ulong = 340;
-pub const SYS_tee: ::c_ulong = 342;
-pub const SYS_vmsplice: ::c_ulong = 343;
-pub const SYS_move_pages: ::c_ulong = 344;
-pub const SYS_getcpu: ::c_ulong = 345;
-pub const SYS_epoll_pwait: ::c_ulong = 346;
-pub const SYS_kexec_load: ::c_ulong = 347;
-pub const SYS_utimensat: ::c_ulong = 348;
-pub const SYS_signalfd: ::c_ulong = 349;
-pub const SYS_timerfd_create: ::c_ulong = 350;
-pub const SYS_eventfd: ::c_ulong = 351;
-pub const SYS_fallocate: ::c_ulong = 352;
-pub const SYS_timerfd_settime: ::c_ulong = 353;
-pub const SYS_timerfd_gettime: ::c_ulong = 354;
-pub const SYS_signalfd4: ::c_ulong = 355;
-pub const SYS_eventfd2: ::c_ulong = 356;
-pub const SYS_epoll_create1: ::c_ulong = 357;
-pub const SYS_dup3: ::c_ulong = 358;
-pub const SYS_pipe2: ::c_ulong = 359;
-pub const SYS_inotify_init1: ::c_ulong = 360;
-pub const SYS_preadv: ::c_ulong = 361;
-pub const SYS_pwritev: ::c_ulong = 362;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 363;
-pub const SYS_perf_event_open: ::c_ulong = 364;
-pub const SYS_recvmmsg: ::c_ulong = 365;
-pub const SYS_accept4: ::c_ulong = 366;
-pub const SYS_fanotify_init: ::c_ulong = 367;
-pub const SYS_fanotify_mark: ::c_ulong = 368;
-pub const SYS_prlimit64: ::c_ulong = 369;
-pub const SYS_name_to_handle_at: ::c_ulong = 370;
-pub const SYS_open_by_handle_at: ::c_ulong = 371;
-pub const SYS_clock_adjtime: ::c_ulong = 372;
-pub const SYS_syncfs: ::c_ulong = 373;
-pub const SYS_sendmmsg: ::c_ulong = 374;
-pub const SYS_setns: ::c_ulong = 375;
-pub const SYS_process_vm_readv: ::c_ulong = 376;
-pub const SYS_process_vm_writev: ::c_ulong = 377;
-pub const SYS_kcmp: ::c_ulong = 378;
-pub const SYS_finit_module: ::c_ulong = 379;
-pub const SYS_sched_setattr: ::c_ulong = 380;
-pub const SYS_sched_getattr: ::c_ulong = 381;
-pub const SYS_renameat2: ::c_ulong = 382;
-pub const SYS_seccomp: ::c_ulong = 383;
-pub const SYS_getrandom: ::c_ulong = 384;
-pub const SYS_memfd_create: ::c_ulong = 385;
-pub const SYS_bpf: ::c_ulong = 386;
-pub const SYS_execveat: ::c_ulong = 387;
-pub const SYS_userfaultfd: ::c_ulong = 388;
-pub const SYS_membarrier: ::c_ulong = 389;
-pub const SYS_mlock2: ::c_ulong = 390;
-pub const SYS_copy_file_range: ::c_ulong = 391;
-pub const SYS_preadv2: ::c_ulong = 392;
-pub const SYS_pwritev2: ::c_ulong = 393;
-pub const SYS_pkey_mprotect: ::c_ulong = 394;
-pub const SYS_pkey_alloc: ::c_ulong = 395;
-pub const SYS_pkey_free: ::c_ulong = 396;
+pub const SYS_restart_syscall: ::c_long = 0;
+pub const SYS_exit: ::c_long = 1;
+pub const SYS_fork: ::c_long = 2;
+pub const SYS_read: ::c_long = 3;
+pub const SYS_write: ::c_long = 4;
+pub const SYS_open: ::c_long = 5;
+pub const SYS_close: ::c_long = 6;
+pub const SYS_creat: ::c_long = 8;
+pub const SYS_link: ::c_long = 9;
+pub const SYS_unlink: ::c_long = 10;
+pub const SYS_execve: ::c_long = 11;
+pub const SYS_chdir: ::c_long = 12;
+pub const SYS_mknod: ::c_long = 14;
+pub const SYS_chmod: ::c_long = 15;
+pub const SYS_lchown: ::c_long = 16;
+pub const SYS_lseek: ::c_long = 19;
+pub const SYS_getpid: ::c_long = 20;
+pub const SYS_mount: ::c_long = 21;
+pub const SYS_setuid: ::c_long = 23;
+pub const SYS_getuid: ::c_long = 24;
+pub const SYS_ptrace: ::c_long = 26;
+pub const SYS_pause: ::c_long = 29;
+pub const SYS_access: ::c_long = 33;
+pub const SYS_nice: ::c_long = 34;
+pub const SYS_sync: ::c_long = 36;
+pub const SYS_kill: ::c_long = 37;
+pub const SYS_rename: ::c_long = 38;
+pub const SYS_mkdir: ::c_long = 39;
+pub const SYS_rmdir: ::c_long = 40;
+pub const SYS_dup: ::c_long = 41;
+pub const SYS_pipe: ::c_long = 42;
+pub const SYS_times: ::c_long = 43;
+pub const SYS_brk: ::c_long = 45;
+pub const SYS_setgid: ::c_long = 46;
+pub const SYS_getgid: ::c_long = 47;
+pub const SYS_geteuid: ::c_long = 49;
+pub const SYS_getegid: ::c_long = 50;
+pub const SYS_acct: ::c_long = 51;
+pub const SYS_umount2: ::c_long = 52;
+pub const SYS_ioctl: ::c_long = 54;
+pub const SYS_fcntl: ::c_long = 55;
+pub const SYS_setpgid: ::c_long = 57;
+pub const SYS_umask: ::c_long = 60;
+pub const SYS_chroot: ::c_long = 61;
+pub const SYS_ustat: ::c_long = 62;
+pub const SYS_dup2: ::c_long = 63;
+pub const SYS_getppid: ::c_long = 64;
+pub const SYS_getpgrp: ::c_long = 65;
+pub const SYS_setsid: ::c_long = 66;
+pub const SYS_sigaction: ::c_long = 67;
+pub const SYS_setreuid: ::c_long = 70;
+pub const SYS_setregid: ::c_long = 71;
+pub const SYS_sigsuspend: ::c_long = 72;
+pub const SYS_sigpending: ::c_long = 73;
+pub const SYS_sethostname: ::c_long = 74;
+pub const SYS_setrlimit: ::c_long = 75;
+pub const SYS_getrusage: ::c_long = 77;
+pub const SYS_gettimeofday: ::c_long = 78;
+pub const SYS_settimeofday: ::c_long = 79;
+pub const SYS_getgroups: ::c_long = 80;
+pub const SYS_setgroups: ::c_long = 81;
+pub const SYS_symlink: ::c_long = 83;
+pub const SYS_readlink: ::c_long = 85;
+pub const SYS_uselib: ::c_long = 86;
+pub const SYS_swapon: ::c_long = 87;
+pub const SYS_reboot: ::c_long = 88;
+pub const SYS_munmap: ::c_long = 91;
+pub const SYS_truncate: ::c_long = 92;
+pub const SYS_ftruncate: ::c_long = 93;
+pub const SYS_fchmod: ::c_long = 94;
+pub const SYS_fchown: ::c_long = 95;
+pub const SYS_getpriority: ::c_long = 96;
+pub const SYS_setpriority: ::c_long = 97;
+pub const SYS_statfs: ::c_long = 99;
+pub const SYS_fstatfs: ::c_long = 100;
+pub const SYS_syslog: ::c_long = 103;
+pub const SYS_setitimer: ::c_long = 104;
+pub const SYS_getitimer: ::c_long = 105;
+pub const SYS_stat: ::c_long = 106;
+pub const SYS_lstat: ::c_long = 107;
+pub const SYS_fstat: ::c_long = 108;
+pub const SYS_vhangup: ::c_long = 111;
+pub const SYS_wait4: ::c_long = 114;
+pub const SYS_swapoff: ::c_long = 115;
+pub const SYS_sysinfo: ::c_long = 116;
+pub const SYS_fsync: ::c_long = 118;
+pub const SYS_sigreturn: ::c_long = 119;
+pub const SYS_clone: ::c_long = 120;
+pub const SYS_setdomainname: ::c_long = 121;
+pub const SYS_uname: ::c_long = 122;
+pub const SYS_adjtimex: ::c_long = 124;
+pub const SYS_mprotect: ::c_long = 125;
+pub const SYS_sigprocmask: ::c_long = 126;
+pub const SYS_init_module: ::c_long = 128;
+pub const SYS_delete_module: ::c_long = 129;
+pub const SYS_quotactl: ::c_long = 131;
+pub const SYS_getpgid: ::c_long = 132;
+pub const SYS_fchdir: ::c_long = 133;
+pub const SYS_bdflush: ::c_long = 134;
+pub const SYS_sysfs: ::c_long = 135;
+pub const SYS_personality: ::c_long = 136;
+pub const SYS_setfsuid: ::c_long = 138;
+pub const SYS_setfsgid: ::c_long = 139;
+pub const SYS__llseek: ::c_long = 140;
+pub const SYS_getdents: ::c_long = 141;
+pub const SYS__newselect: ::c_long = 142;
+pub const SYS_flock: ::c_long = 143;
+pub const SYS_msync: ::c_long = 144;
+pub const SYS_readv: ::c_long = 145;
+pub const SYS_writev: ::c_long = 146;
+pub const SYS_getsid: ::c_long = 147;
+pub const SYS_fdatasync: ::c_long = 148;
+pub const SYS__sysctl: ::c_long = 149;
+pub const SYS_mlock: ::c_long = 150;
+pub const SYS_munlock: ::c_long = 151;
+pub const SYS_mlockall: ::c_long = 152;
+pub const SYS_munlockall: ::c_long = 153;
+pub const SYS_sched_setparam: ::c_long = 154;
+pub const SYS_sched_getparam: ::c_long = 155;
+pub const SYS_sched_setscheduler: ::c_long = 156;
+pub const SYS_sched_getscheduler: ::c_long = 157;
+pub const SYS_sched_yield: ::c_long = 158;
+pub const SYS_sched_get_priority_max: ::c_long = 159;
+pub const SYS_sched_get_priority_min: ::c_long = 160;
+pub const SYS_sched_rr_get_interval: ::c_long = 161;
+pub const SYS_nanosleep: ::c_long = 162;
+pub const SYS_mremap: ::c_long = 163;
+pub const SYS_setresuid: ::c_long = 164;
+pub const SYS_getresuid: ::c_long = 165;
+pub const SYS_poll: ::c_long = 168;
+pub const SYS_nfsservctl: ::c_long = 169;
+pub const SYS_setresgid: ::c_long = 170;
+pub const SYS_getresgid: ::c_long = 171;
+pub const SYS_prctl: ::c_long = 172;
+pub const SYS_rt_sigreturn: ::c_long = 173;
+pub const SYS_rt_sigaction: ::c_long = 174;
+pub const SYS_rt_sigprocmask: ::c_long = 175;
+pub const SYS_rt_sigpending: ::c_long = 176;
+pub const SYS_rt_sigtimedwait: ::c_long = 177;
+pub const SYS_rt_sigqueueinfo: ::c_long = 178;
+pub const SYS_rt_sigsuspend: ::c_long = 179;
+pub const SYS_pread64: ::c_long = 180;
+pub const SYS_pwrite64: ::c_long = 181;
+pub const SYS_chown: ::c_long = 182;
+pub const SYS_getcwd: ::c_long = 183;
+pub const SYS_capget: ::c_long = 184;
+pub const SYS_capset: ::c_long = 185;
+pub const SYS_sigaltstack: ::c_long = 186;
+pub const SYS_sendfile: ::c_long = 187;
+pub const SYS_vfork: ::c_long = 190;
+pub const SYS_ugetrlimit: ::c_long = 191;
+pub const SYS_mmap2: ::c_long = 192;
+pub const SYS_truncate64: ::c_long = 193;
+pub const SYS_ftruncate64: ::c_long = 194;
+pub const SYS_stat64: ::c_long = 195;
+pub const SYS_lstat64: ::c_long = 196;
+pub const SYS_fstat64: ::c_long = 197;
+pub const SYS_lchown32: ::c_long = 198;
+pub const SYS_getuid32: ::c_long = 199;
+pub const SYS_getgid32: ::c_long = 200;
+pub const SYS_geteuid32: ::c_long = 201;
+pub const SYS_getegid32: ::c_long = 202;
+pub const SYS_setreuid32: ::c_long = 203;
+pub const SYS_setregid32: ::c_long = 204;
+pub const SYS_getgroups32: ::c_long = 205;
+pub const SYS_setgroups32: ::c_long = 206;
+pub const SYS_fchown32: ::c_long = 207;
+pub const SYS_setresuid32: ::c_long = 208;
+pub const SYS_getresuid32: ::c_long = 209;
+pub const SYS_setresgid32: ::c_long = 210;
+pub const SYS_getresgid32: ::c_long = 211;
+pub const SYS_chown32: ::c_long = 212;
+pub const SYS_setuid32: ::c_long = 213;
+pub const SYS_setgid32: ::c_long = 214;
+pub const SYS_setfsuid32: ::c_long = 215;
+pub const SYS_setfsgid32: ::c_long = 216;
+pub const SYS_getdents64: ::c_long = 217;
+pub const SYS_pivot_root: ::c_long = 218;
+pub const SYS_mincore: ::c_long = 219;
+pub const SYS_madvise: ::c_long = 220;
+pub const SYS_fcntl64: ::c_long = 221;
+pub const SYS_gettid: ::c_long = 224;
+pub const SYS_readahead: ::c_long = 225;
+pub const SYS_setxattr: ::c_long = 226;
+pub const SYS_lsetxattr: ::c_long = 227;
+pub const SYS_fsetxattr: ::c_long = 228;
+pub const SYS_getxattr: ::c_long = 229;
+pub const SYS_lgetxattr: ::c_long = 230;
+pub const SYS_fgetxattr: ::c_long = 231;
+pub const SYS_listxattr: ::c_long = 232;
+pub const SYS_llistxattr: ::c_long = 233;
+pub const SYS_flistxattr: ::c_long = 234;
+pub const SYS_removexattr: ::c_long = 235;
+pub const SYS_lremovexattr: ::c_long = 236;
+pub const SYS_fremovexattr: ::c_long = 237;
+pub const SYS_tkill: ::c_long = 238;
+pub const SYS_sendfile64: ::c_long = 239;
+pub const SYS_futex: ::c_long = 240;
+pub const SYS_sched_setaffinity: ::c_long = 241;
+pub const SYS_sched_getaffinity: ::c_long = 242;
+pub const SYS_io_setup: ::c_long = 243;
+pub const SYS_io_destroy: ::c_long = 244;
+pub const SYS_io_getevents: ::c_long = 245;
+pub const SYS_io_submit: ::c_long = 246;
+pub const SYS_io_cancel: ::c_long = 247;
+pub const SYS_exit_group: ::c_long = 248;
+pub const SYS_lookup_dcookie: ::c_long = 249;
+pub const SYS_epoll_create: ::c_long = 250;
+pub const SYS_epoll_ctl: ::c_long = 251;
+pub const SYS_epoll_wait: ::c_long = 252;
+pub const SYS_remap_file_pages: ::c_long = 253;
+pub const SYS_set_tid_address: ::c_long = 256;
+pub const SYS_timer_create: ::c_long = 257;
+pub const SYS_timer_settime: ::c_long = 258;
+pub const SYS_timer_gettime: ::c_long = 259;
+pub const SYS_timer_getoverrun: ::c_long = 260;
+pub const SYS_timer_delete: ::c_long = 261;
+pub const SYS_clock_settime: ::c_long = 262;
+pub const SYS_clock_gettime: ::c_long = 263;
+pub const SYS_clock_getres: ::c_long = 264;
+pub const SYS_clock_nanosleep: ::c_long = 265;
+pub const SYS_statfs64: ::c_long = 266;
+pub const SYS_fstatfs64: ::c_long = 267;
+pub const SYS_tgkill: ::c_long = 268;
+pub const SYS_utimes: ::c_long = 269;
+pub const SYS_pciconfig_iobase: ::c_long = 271;
+pub const SYS_pciconfig_read: ::c_long = 272;
+pub const SYS_pciconfig_write: ::c_long = 273;
+pub const SYS_mq_open: ::c_long = 274;
+pub const SYS_mq_unlink: ::c_long = 275;
+pub const SYS_mq_timedsend: ::c_long = 276;
+pub const SYS_mq_timedreceive: ::c_long = 277;
+pub const SYS_mq_notify: ::c_long = 278;
+pub const SYS_mq_getsetattr: ::c_long = 279;
+pub const SYS_waitid: ::c_long = 280;
+pub const SYS_socket: ::c_long = 281;
+pub const SYS_bind: ::c_long = 282;
+pub const SYS_connect: ::c_long = 283;
+pub const SYS_listen: ::c_long = 284;
+pub const SYS_accept: ::c_long = 285;
+pub const SYS_getsockname: ::c_long = 286;
+pub const SYS_getpeername: ::c_long = 287;
+pub const SYS_socketpair: ::c_long = 288;
+pub const SYS_send: ::c_long = 289;
+pub const SYS_sendto: ::c_long = 290;
+pub const SYS_recv: ::c_long = 291;
+pub const SYS_recvfrom: ::c_long = 292;
+pub const SYS_shutdown: ::c_long = 293;
+pub const SYS_setsockopt: ::c_long = 294;
+pub const SYS_getsockopt: ::c_long = 295;
+pub const SYS_sendmsg: ::c_long = 296;
+pub const SYS_recvmsg: ::c_long = 297;
+pub const SYS_semop: ::c_long = 298;
+pub const SYS_semget: ::c_long = 299;
+pub const SYS_semctl: ::c_long = 300;
+pub const SYS_msgsnd: ::c_long = 301;
+pub const SYS_msgrcv: ::c_long = 302;
+pub const SYS_msgget: ::c_long = 303;
+pub const SYS_msgctl: ::c_long = 304;
+pub const SYS_shmat: ::c_long = 305;
+pub const SYS_shmdt: ::c_long = 306;
+pub const SYS_shmget: ::c_long = 307;
+pub const SYS_shmctl: ::c_long = 308;
+pub const SYS_add_key: ::c_long = 309;
+pub const SYS_request_key: ::c_long = 310;
+pub const SYS_keyctl: ::c_long = 311;
+pub const SYS_semtimedop: ::c_long = 312;
+pub const SYS_vserver: ::c_long = 313;
+pub const SYS_ioprio_set: ::c_long = 314;
+pub const SYS_ioprio_get: ::c_long = 315;
+pub const SYS_inotify_init: ::c_long = 316;
+pub const SYS_inotify_add_watch: ::c_long = 317;
+pub const SYS_inotify_rm_watch: ::c_long = 318;
+pub const SYS_mbind: ::c_long = 319;
+pub const SYS_get_mempolicy: ::c_long = 320;
+pub const SYS_set_mempolicy: ::c_long = 321;
+pub const SYS_openat: ::c_long = 322;
+pub const SYS_mkdirat: ::c_long = 323;
+pub const SYS_mknodat: ::c_long = 324;
+pub const SYS_fchownat: ::c_long = 325;
+pub const SYS_futimesat: ::c_long = 326;
+pub const SYS_fstatat64: ::c_long = 327;
+pub const SYS_unlinkat: ::c_long = 328;
+pub const SYS_renameat: ::c_long = 329;
+pub const SYS_linkat: ::c_long = 330;
+pub const SYS_symlinkat: ::c_long = 331;
+pub const SYS_readlinkat: ::c_long = 332;
+pub const SYS_fchmodat: ::c_long = 333;
+pub const SYS_faccessat: ::c_long = 334;
+pub const SYS_pselect6: ::c_long = 335;
+pub const SYS_ppoll: ::c_long = 336;
+pub const SYS_unshare: ::c_long = 337;
+pub const SYS_set_robust_list: ::c_long = 338;
+pub const SYS_get_robust_list: ::c_long = 339;
+pub const SYS_splice: ::c_long = 340;
+pub const SYS_tee: ::c_long = 342;
+pub const SYS_vmsplice: ::c_long = 343;
+pub const SYS_move_pages: ::c_long = 344;
+pub const SYS_getcpu: ::c_long = 345;
+pub const SYS_epoll_pwait: ::c_long = 346;
+pub const SYS_kexec_load: ::c_long = 347;
+pub const SYS_utimensat: ::c_long = 348;
+pub const SYS_signalfd: ::c_long = 349;
+pub const SYS_timerfd_create: ::c_long = 350;
+pub const SYS_eventfd: ::c_long = 351;
+pub const SYS_fallocate: ::c_long = 352;
+pub const SYS_timerfd_settime: ::c_long = 353;
+pub const SYS_timerfd_gettime: ::c_long = 354;
+pub const SYS_signalfd4: ::c_long = 355;
+pub const SYS_eventfd2: ::c_long = 356;
+pub const SYS_epoll_create1: ::c_long = 357;
+pub const SYS_dup3: ::c_long = 358;
+pub const SYS_pipe2: ::c_long = 359;
+pub const SYS_inotify_init1: ::c_long = 360;
+pub const SYS_preadv: ::c_long = 361;
+pub const SYS_pwritev: ::c_long = 362;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 363;
+pub const SYS_perf_event_open: ::c_long = 364;
+pub const SYS_recvmmsg: ::c_long = 365;
+pub const SYS_accept4: ::c_long = 366;
+pub const SYS_fanotify_init: ::c_long = 367;
+pub const SYS_fanotify_mark: ::c_long = 368;
+pub const SYS_prlimit64: ::c_long = 369;
+pub const SYS_name_to_handle_at: ::c_long = 370;
+pub const SYS_open_by_handle_at: ::c_long = 371;
+pub const SYS_clock_adjtime: ::c_long = 372;
+pub const SYS_syncfs: ::c_long = 373;
+pub const SYS_sendmmsg: ::c_long = 374;
+pub const SYS_setns: ::c_long = 375;
+pub const SYS_process_vm_readv: ::c_long = 376;
+pub const SYS_process_vm_writev: ::c_long = 377;
+pub const SYS_kcmp: ::c_long = 378;
+pub const SYS_finit_module: ::c_long = 379;
+pub const SYS_sched_setattr: ::c_long = 380;
+pub const SYS_sched_getattr: ::c_long = 381;
+pub const SYS_renameat2: ::c_long = 382;
+pub const SYS_seccomp: ::c_long = 383;
+pub const SYS_getrandom: ::c_long = 384;
+pub const SYS_memfd_create: ::c_long = 385;
+pub const SYS_bpf: ::c_long = 386;
+pub const SYS_execveat: ::c_long = 387;
+pub const SYS_userfaultfd: ::c_long = 388;
+pub const SYS_membarrier: ::c_long = 389;
+pub const SYS_mlock2: ::c_long = 390;
+pub const SYS_copy_file_range: ::c_long = 391;
+pub const SYS_preadv2: ::c_long = 392;
+pub const SYS_pwritev2: ::c_long = 393;
+pub const SYS_pkey_mprotect: ::c_long = 394;
+pub const SYS_pkey_alloc: ::c_long = 395;
+pub const SYS_pkey_free: ::c_long = 396;
#[doc(hidden)]
pub const AF_MAX: ::c_int = 43;
diff --git a/src/unix/notbsd/linux/musl/b32/mips.rs b/src/unix/notbsd/linux/musl/b32/mips.rs
index d320bed..89231a0 100644
--- a/src/unix/notbsd/linux/musl/b32/mips.rs
+++ b/src/unix/notbsd/linux/musl/b32/mips.rs
@@ -149,6 +149,17 @@
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 23],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const O_DIRECT: ::c_int = 0o100000;
@@ -397,364 +408,364 @@
pub const TIOCM_RI: ::c_int = TIOCM_RNG;
pub const TIOCM_DSR: ::c_int = 0x400;
-pub const SYS_syscall: ::c_ulong = 4000 + 0;
-pub const SYS_exit: ::c_ulong = 4000 + 1;
-pub const SYS_fork: ::c_ulong = 4000 + 2;
-pub const SYS_read: ::c_ulong = 4000 + 3;
-pub const SYS_write: ::c_ulong = 4000 + 4;
-pub const SYS_open: ::c_ulong = 4000 + 5;
-pub const SYS_close: ::c_ulong = 4000 + 6;
-pub const SYS_waitpid: ::c_ulong = 4000 + 7;
-pub const SYS_creat: ::c_ulong = 4000 + 8;
-pub const SYS_link: ::c_ulong = 4000 + 9;
-pub const SYS_unlink: ::c_ulong = 4000 + 10;
-pub const SYS_execve: ::c_ulong = 4000 + 11;
-pub const SYS_chdir: ::c_ulong = 4000 + 12;
-pub const SYS_time: ::c_ulong = 4000 + 13;
-pub const SYS_mknod: ::c_ulong = 4000 + 14;
-pub const SYS_chmod: ::c_ulong = 4000 + 15;
-pub const SYS_lchown: ::c_ulong = 4000 + 16;
-pub const SYS_break: ::c_ulong = 4000 + 17;
-pub const SYS_unused18: ::c_ulong = 4000 + 18;
-pub const SYS_lseek: ::c_ulong = 4000 + 19;
-pub const SYS_getpid: ::c_ulong = 4000 + 20;
-pub const SYS_mount: ::c_ulong = 4000 + 21;
-pub const SYS_umount: ::c_ulong = 4000 + 22;
-pub const SYS_setuid: ::c_ulong = 4000 + 23;
-pub const SYS_getuid: ::c_ulong = 4000 + 24;
-pub const SYS_stime: ::c_ulong = 4000 + 25;
-pub const SYS_ptrace: ::c_ulong = 4000 + 26;
-pub const SYS_alarm: ::c_ulong = 4000 + 27;
-pub const SYS_unused28: ::c_ulong = 4000 + 28;
-pub const SYS_pause: ::c_ulong = 4000 + 29;
-pub const SYS_utime: ::c_ulong = 4000 + 30;
-pub const SYS_stty: ::c_ulong = 4000 + 31;
-pub const SYS_gtty: ::c_ulong = 4000 + 32;
-pub const SYS_access: ::c_ulong = 4000 + 33;
-pub const SYS_nice: ::c_ulong = 4000 + 34;
-pub const SYS_ftime: ::c_ulong = 4000 + 35;
-pub const SYS_sync: ::c_ulong = 4000 + 36;
-pub const SYS_kill: ::c_ulong = 4000 + 37;
-pub const SYS_rename: ::c_ulong = 4000 + 38;
-pub const SYS_mkdir: ::c_ulong = 4000 + 39;
-pub const SYS_rmdir: ::c_ulong = 4000 + 40;
-pub const SYS_dup: ::c_ulong = 4000 + 41;
-pub const SYS_pipe: ::c_ulong = 4000 + 42;
-pub const SYS_times: ::c_ulong = 4000 + 43;
-pub const SYS_prof: ::c_ulong = 4000 + 44;
-pub const SYS_brk: ::c_ulong = 4000 + 45;
-pub const SYS_setgid: ::c_ulong = 4000 + 46;
-pub const SYS_getgid: ::c_ulong = 4000 + 47;
-pub const SYS_signal: ::c_ulong = 4000 + 48;
-pub const SYS_geteuid: ::c_ulong = 4000 + 49;
-pub const SYS_getegid: ::c_ulong = 4000 + 50;
-pub const SYS_acct: ::c_ulong = 4000 + 51;
-pub const SYS_umount2: ::c_ulong = 4000 + 52;
-pub const SYS_lock: ::c_ulong = 4000 + 53;
-pub const SYS_ioctl: ::c_ulong = 4000 + 54;
-pub const SYS_fcntl: ::c_ulong = 4000 + 55;
-pub const SYS_mpx: ::c_ulong = 4000 + 56;
-pub const SYS_setpgid: ::c_ulong = 4000 + 57;
-pub const SYS_ulimit: ::c_ulong = 4000 + 58;
-pub const SYS_unused59: ::c_ulong = 4000 + 59;
-pub const SYS_umask: ::c_ulong = 4000 + 60;
-pub const SYS_chroot: ::c_ulong = 4000 + 61;
-pub const SYS_ustat: ::c_ulong = 4000 + 62;
-pub const SYS_dup2: ::c_ulong = 4000 + 63;
-pub const SYS_getppid: ::c_ulong = 4000 + 64;
-pub const SYS_getpgrp: ::c_ulong = 4000 + 65;
-pub const SYS_setsid: ::c_ulong = 4000 + 66;
-pub const SYS_sigaction: ::c_ulong = 4000 + 67;
-pub const SYS_sgetmask: ::c_ulong = 4000 + 68;
-pub const SYS_ssetmask: ::c_ulong = 4000 + 69;
-pub const SYS_setreuid: ::c_ulong = 4000 + 70;
-pub const SYS_setregid: ::c_ulong = 4000 + 71;
-pub const SYS_sigsuspend: ::c_ulong = 4000 + 72;
-pub const SYS_sigpending: ::c_ulong = 4000 + 73;
-pub const SYS_sethostname: ::c_ulong = 4000 + 74;
-pub const SYS_setrlimit: ::c_ulong = 4000 + 75;
-pub const SYS_getrlimit: ::c_ulong = 4000 + 76;
-pub const SYS_getrusage: ::c_ulong = 4000 + 77;
-pub const SYS_gettimeofday: ::c_ulong = 4000 + 78;
-pub const SYS_settimeofday: ::c_ulong = 4000 + 79;
-pub const SYS_getgroups: ::c_ulong = 4000 + 80;
-pub const SYS_setgroups: ::c_ulong = 4000 + 81;
-pub const SYS_reserved82: ::c_ulong = 4000 + 82;
-pub const SYS_symlink: ::c_ulong = 4000 + 83;
-pub const SYS_unused84: ::c_ulong = 4000 + 84;
-pub const SYS_readlink: ::c_ulong = 4000 + 85;
-pub const SYS_uselib: ::c_ulong = 4000 + 86;
-pub const SYS_swapon: ::c_ulong = 4000 + 87;
-pub const SYS_reboot: ::c_ulong = 4000 + 88;
-pub const SYS_readdir: ::c_ulong = 4000 + 89;
-pub const SYS_mmap: ::c_ulong = 4000 + 90;
-pub const SYS_munmap: ::c_ulong = 4000 + 91;
-pub const SYS_truncate: ::c_ulong = 4000 + 92;
-pub const SYS_ftruncate: ::c_ulong = 4000 + 93;
-pub const SYS_fchmod: ::c_ulong = 4000 + 94;
-pub const SYS_fchown: ::c_ulong = 4000 + 95;
-pub const SYS_getpriority: ::c_ulong = 4000 + 96;
-pub const SYS_setpriority: ::c_ulong = 4000 + 97;
-pub const SYS_profil: ::c_ulong = 4000 + 98;
-pub const SYS_statfs: ::c_ulong = 4000 + 99;
-pub const SYS_fstatfs: ::c_ulong = 4000 + 100;
-pub const SYS_ioperm: ::c_ulong = 4000 + 101;
-pub const SYS_socketcall: ::c_ulong = 4000 + 102;
-pub const SYS_syslog: ::c_ulong = 4000 + 103;
-pub const SYS_setitimer: ::c_ulong = 4000 + 104;
-pub const SYS_getitimer: ::c_ulong = 4000 + 105;
-pub const SYS_stat: ::c_ulong = 4000 + 106;
-pub const SYS_lstat: ::c_ulong = 4000 + 107;
-pub const SYS_fstat: ::c_ulong = 4000 + 108;
-pub const SYS_unused109: ::c_ulong = 4000 + 109;
-pub const SYS_iopl: ::c_ulong = 4000 + 110;
-pub const SYS_vhangup: ::c_ulong = 4000 + 111;
-pub const SYS_idle: ::c_ulong = 4000 + 112;
-pub const SYS_vm86: ::c_ulong = 4000 + 113;
-pub const SYS_wait4: ::c_ulong = 4000 + 114;
-pub const SYS_swapoff: ::c_ulong = 4000 + 115;
-pub const SYS_sysinfo: ::c_ulong = 4000 + 116;
-pub const SYS_ipc: ::c_ulong = 4000 + 117;
-pub const SYS_fsync: ::c_ulong = 4000 + 118;
-pub const SYS_sigreturn: ::c_ulong = 4000 + 119;
-pub const SYS_clone: ::c_ulong = 4000 + 120;
-pub const SYS_setdomainname: ::c_ulong = 4000 + 121;
-pub const SYS_uname: ::c_ulong = 4000 + 122;
-pub const SYS_modify_ldt: ::c_ulong = 4000 + 123;
-pub const SYS_adjtimex: ::c_ulong = 4000 + 124;
-pub const SYS_mprotect: ::c_ulong = 4000 + 125;
-pub const SYS_sigprocmask: ::c_ulong = 4000 + 126;
-pub const SYS_create_module: ::c_ulong = 4000 + 127;
-pub const SYS_init_module: ::c_ulong = 4000 + 128;
-pub const SYS_delete_module: ::c_ulong = 4000 + 129;
-pub const SYS_get_kernel_syms: ::c_ulong = 4000 + 130;
-pub const SYS_quotactl: ::c_ulong = 4000 + 131;
-pub const SYS_getpgid: ::c_ulong = 4000 + 132;
-pub const SYS_fchdir: ::c_ulong = 4000 + 133;
-pub const SYS_bdflush: ::c_ulong = 4000 + 134;
-pub const SYS_sysfs: ::c_ulong = 4000 + 135;
-pub const SYS_personality: ::c_ulong = 4000 + 136;
-pub const SYS_afs_syscall: ::c_ulong = 4000 + 137;
-pub const SYS_setfsuid: ::c_ulong = 4000 + 138;
-pub const SYS_setfsgid: ::c_ulong = 4000 + 139;
-pub const SYS__llseek: ::c_ulong = 4000 + 140;
-pub const SYS_getdents: ::c_ulong = 4000 + 141;
-pub const SYS_flock: ::c_ulong = 4000 + 143;
-pub const SYS_msync: ::c_ulong = 4000 + 144;
-pub const SYS_readv: ::c_ulong = 4000 + 145;
-pub const SYS_writev: ::c_ulong = 4000 + 146;
-pub const SYS_cacheflush: ::c_ulong = 4000 + 147;
-pub const SYS_cachectl: ::c_ulong = 4000 + 148;
-pub const SYS_sysmips: ::c_ulong = 4000 + 149;
-pub const SYS_unused150: ::c_ulong = 4000 + 150;
-pub const SYS_getsid: ::c_ulong = 4000 + 151;
-pub const SYS_fdatasync: ::c_ulong = 4000 + 152;
-pub const SYS__sysctl: ::c_ulong = 4000 + 153;
-pub const SYS_mlock: ::c_ulong = 4000 + 154;
-pub const SYS_munlock: ::c_ulong = 4000 + 155;
-pub const SYS_mlockall: ::c_ulong = 4000 + 156;
-pub const SYS_munlockall: ::c_ulong = 4000 + 157;
-pub const SYS_sched_setparam: ::c_ulong = 4000 + 158;
-pub const SYS_sched_getparam: ::c_ulong = 4000 + 159;
-pub const SYS_sched_setscheduler: ::c_ulong = 4000 + 160;
-pub const SYS_sched_getscheduler: ::c_ulong = 4000 + 161;
-pub const SYS_sched_yield: ::c_ulong = 4000 + 162;
-pub const SYS_sched_get_priority_max: ::c_ulong = 4000 + 163;
-pub const SYS_sched_get_priority_min: ::c_ulong = 4000 + 164;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 4000 + 165;
-pub const SYS_nanosleep: ::c_ulong = 4000 + 166;
-pub const SYS_mremap: ::c_ulong = 4000 + 167;
-pub const SYS_accept: ::c_ulong = 4000 + 168;
-pub const SYS_bind: ::c_ulong = 4000 + 169;
-pub const SYS_connect: ::c_ulong = 4000 + 170;
-pub const SYS_getpeername: ::c_ulong = 4000 + 171;
-pub const SYS_getsockname: ::c_ulong = 4000 + 172;
-pub const SYS_getsockopt: ::c_ulong = 4000 + 173;
-pub const SYS_listen: ::c_ulong = 4000 + 174;
-pub const SYS_recv: ::c_ulong = 4000 + 175;
-pub const SYS_recvfrom: ::c_ulong = 4000 + 176;
-pub const SYS_recvmsg: ::c_ulong = 4000 + 177;
-pub const SYS_send: ::c_ulong = 4000 + 178;
-pub const SYS_sendmsg: ::c_ulong = 4000 + 179;
-pub const SYS_sendto: ::c_ulong = 4000 + 180;
-pub const SYS_setsockopt: ::c_ulong = 4000 + 181;
-pub const SYS_shutdown: ::c_ulong = 4000 + 182;
-pub const SYS_socket: ::c_ulong = 4000 + 183;
-pub const SYS_socketpair: ::c_ulong = 4000 + 184;
-pub const SYS_setresuid: ::c_ulong = 4000 + 185;
-pub const SYS_getresuid: ::c_ulong = 4000 + 186;
-pub const SYS_query_module: ::c_ulong = 4000 + 187;
-pub const SYS_poll: ::c_ulong = 4000 + 188;
-pub const SYS_nfsservctl: ::c_ulong = 4000 + 189;
-pub const SYS_setresgid: ::c_ulong = 4000 + 190;
-pub const SYS_getresgid: ::c_ulong = 4000 + 191;
-pub const SYS_prctl: ::c_ulong = 4000 + 192;
-pub const SYS_rt_sigreturn: ::c_ulong = 4000 + 193;
-pub const SYS_rt_sigaction: ::c_ulong = 4000 + 194;
-pub const SYS_rt_sigprocmask: ::c_ulong = 4000 + 195;
-pub const SYS_rt_sigpending: ::c_ulong = 4000 + 196;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 4000 + 197;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 4000 + 198;
-pub const SYS_rt_sigsuspend: ::c_ulong = 4000 + 199;
-pub const SYS_chown: ::c_ulong = 4000 + 202;
-pub const SYS_getcwd: ::c_ulong = 4000 + 203;
-pub const SYS_capget: ::c_ulong = 4000 + 204;
-pub const SYS_capset: ::c_ulong = 4000 + 205;
-pub const SYS_sigaltstack: ::c_ulong = 4000 + 206;
-pub const SYS_sendfile: ::c_ulong = 4000 + 207;
-pub const SYS_getpmsg: ::c_ulong = 4000 + 208;
-pub const SYS_putpmsg: ::c_ulong = 4000 + 209;
-pub const SYS_mmap2: ::c_ulong = 4000 + 210;
-pub const SYS_truncate64: ::c_ulong = 4000 + 211;
-pub const SYS_ftruncate64: ::c_ulong = 4000 + 212;
-pub const SYS_stat64: ::c_ulong = 4000 + 213;
-pub const SYS_lstat64: ::c_ulong = 4000 + 214;
-pub const SYS_fstat64: ::c_ulong = 4000 + 215;
-pub const SYS_pivot_root: ::c_ulong = 4000 + 216;
-pub const SYS_mincore: ::c_ulong = 4000 + 217;
-pub const SYS_madvise: ::c_ulong = 4000 + 218;
-pub const SYS_getdents64: ::c_ulong = 4000 + 219;
-pub const SYS_fcntl64: ::c_ulong = 4000 + 220;
-pub const SYS_reserved221: ::c_ulong = 4000 + 221;
-pub const SYS_gettid: ::c_ulong = 4000 + 222;
-pub const SYS_readahead: ::c_ulong = 4000 + 223;
-pub const SYS_setxattr: ::c_ulong = 4000 + 224;
-pub const SYS_lsetxattr: ::c_ulong = 4000 + 225;
-pub const SYS_fsetxattr: ::c_ulong = 4000 + 226;
-pub const SYS_getxattr: ::c_ulong = 4000 + 227;
-pub const SYS_lgetxattr: ::c_ulong = 4000 + 228;
-pub const SYS_fgetxattr: ::c_ulong = 4000 + 229;
-pub const SYS_listxattr: ::c_ulong = 4000 + 230;
-pub const SYS_llistxattr: ::c_ulong = 4000 + 231;
-pub const SYS_flistxattr: ::c_ulong = 4000 + 232;
-pub const SYS_removexattr: ::c_ulong = 4000 + 233;
-pub const SYS_lremovexattr: ::c_ulong = 4000 + 234;
-pub const SYS_fremovexattr: ::c_ulong = 4000 + 235;
-pub const SYS_tkill: ::c_ulong = 4000 + 236;
-pub const SYS_sendfile64: ::c_ulong = 4000 + 237;
-pub const SYS_futex: ::c_ulong = 4000 + 238;
-pub const SYS_sched_setaffinity: ::c_ulong = 4000 + 239;
-pub const SYS_sched_getaffinity: ::c_ulong = 4000 + 240;
-pub const SYS_io_setup: ::c_ulong = 4000 + 241;
-pub const SYS_io_destroy: ::c_ulong = 4000 + 242;
-pub const SYS_io_getevents: ::c_ulong = 4000 + 243;
-pub const SYS_io_submit: ::c_ulong = 4000 + 244;
-pub const SYS_io_cancel: ::c_ulong = 4000 + 245;
-pub const SYS_exit_group: ::c_ulong = 4000 + 246;
-pub const SYS_lookup_dcookie: ::c_ulong = 4000 + 247;
-pub const SYS_epoll_create: ::c_ulong = 4000 + 248;
-pub const SYS_epoll_ctl: ::c_ulong = 4000 + 249;
-pub const SYS_epoll_wait: ::c_ulong = 4000 + 250;
-pub const SYS_remap_file_pages: ::c_ulong = 4000 + 251;
-pub const SYS_set_tid_address: ::c_ulong = 4000 + 252;
-pub const SYS_restart_syscall: ::c_ulong = 4000 + 253;
-pub const SYS_statfs64: ::c_ulong = 4000 + 255;
-pub const SYS_fstatfs64: ::c_ulong = 4000 + 256;
-pub const SYS_timer_create: ::c_ulong = 4000 + 257;
-pub const SYS_timer_settime: ::c_ulong = 4000 + 258;
-pub const SYS_timer_gettime: ::c_ulong = 4000 + 259;
-pub const SYS_timer_getoverrun: ::c_ulong = 4000 + 260;
-pub const SYS_timer_delete: ::c_ulong = 4000 + 261;
-pub const SYS_clock_settime: ::c_ulong = 4000 + 262;
-pub const SYS_clock_gettime: ::c_ulong = 4000 + 263;
-pub const SYS_clock_getres: ::c_ulong = 4000 + 264;
-pub const SYS_clock_nanosleep: ::c_ulong = 4000 + 265;
-pub const SYS_tgkill: ::c_ulong = 4000 + 266;
-pub const SYS_utimes: ::c_ulong = 4000 + 267;
-pub const SYS_mbind: ::c_ulong = 4000 + 268;
-pub const SYS_get_mempolicy: ::c_ulong = 4000 + 269;
-pub const SYS_set_mempolicy: ::c_ulong = 4000 + 270;
-pub const SYS_mq_open: ::c_ulong = 4000 + 271;
-pub const SYS_mq_unlink: ::c_ulong = 4000 + 272;
-pub const SYS_mq_timedsend: ::c_ulong = 4000 + 273;
-pub const SYS_mq_timedreceive: ::c_ulong = 4000 + 274;
-pub const SYS_mq_notify: ::c_ulong = 4000 + 275;
-pub const SYS_mq_getsetattr: ::c_ulong = 4000 + 276;
-pub const SYS_vserver: ::c_ulong = 4000 + 277;
-pub const SYS_waitid: ::c_ulong = 4000 + 278;
-/* pub const SYS_sys_setaltroot: ::c_ulong = 4000 + 279; */
-pub const SYS_add_key: ::c_ulong = 4000 + 280;
-pub const SYS_request_key: ::c_ulong = 4000 + 281;
-pub const SYS_keyctl: ::c_ulong = 4000 + 282;
-pub const SYS_set_thread_area: ::c_ulong = 4000 + 283;
-pub const SYS_inotify_init: ::c_ulong = 4000 + 284;
-pub const SYS_inotify_add_watch: ::c_ulong = 4000 + 285;
-pub const SYS_inotify_rm_watch: ::c_ulong = 4000 + 286;
-pub const SYS_migrate_pages: ::c_ulong = 4000 + 287;
-pub const SYS_openat: ::c_ulong = 4000 + 288;
-pub const SYS_mkdirat: ::c_ulong = 4000 + 289;
-pub const SYS_mknodat: ::c_ulong = 4000 + 290;
-pub const SYS_fchownat: ::c_ulong = 4000 + 291;
-pub const SYS_futimesat: ::c_ulong = 4000 + 292;
-pub const SYS_unlinkat: ::c_ulong = 4000 + 294;
-pub const SYS_renameat: ::c_ulong = 4000 + 295;
-pub const SYS_linkat: ::c_ulong = 4000 + 296;
-pub const SYS_symlinkat: ::c_ulong = 4000 + 297;
-pub const SYS_readlinkat: ::c_ulong = 4000 + 298;
-pub const SYS_fchmodat: ::c_ulong = 4000 + 299;
-pub const SYS_faccessat: ::c_ulong = 4000 + 300;
-pub const SYS_pselect6: ::c_ulong = 4000 + 301;
-pub const SYS_ppoll: ::c_ulong = 4000 + 302;
-pub const SYS_unshare: ::c_ulong = 4000 + 303;
-pub const SYS_splice: ::c_ulong = 4000 + 304;
-pub const SYS_sync_file_range: ::c_ulong = 4000 + 305;
-pub const SYS_tee: ::c_ulong = 4000 + 306;
-pub const SYS_vmsplice: ::c_ulong = 4000 + 307;
-pub const SYS_move_pages: ::c_ulong = 4000 + 308;
-pub const SYS_set_robust_list: ::c_ulong = 4000 + 309;
-pub const SYS_get_robust_list: ::c_ulong = 4000 + 310;
-pub const SYS_kexec_load: ::c_ulong = 4000 + 311;
-pub const SYS_getcpu: ::c_ulong = 4000 + 312;
-pub const SYS_epoll_pwait: ::c_ulong = 4000 + 313;
-pub const SYS_ioprio_set: ::c_ulong = 4000 + 314;
-pub const SYS_ioprio_get: ::c_ulong = 4000 + 315;
-pub const SYS_utimensat: ::c_ulong = 4000 + 316;
-pub const SYS_signalfd: ::c_ulong = 4000 + 317;
-pub const SYS_timerfd: ::c_ulong = 4000 + 318;
-pub const SYS_eventfd: ::c_ulong = 4000 + 319;
-pub const SYS_fallocate: ::c_ulong = 4000 + 320;
-pub const SYS_timerfd_create: ::c_ulong = 4000 + 321;
-pub const SYS_timerfd_gettime: ::c_ulong = 4000 + 322;
-pub const SYS_timerfd_settime: ::c_ulong = 4000 + 323;
-pub const SYS_signalfd4: ::c_ulong = 4000 + 324;
-pub const SYS_eventfd2: ::c_ulong = 4000 + 325;
-pub const SYS_epoll_create1: ::c_ulong = 4000 + 326;
-pub const SYS_dup3: ::c_ulong = 4000 + 327;
-pub const SYS_pipe2: ::c_ulong = 4000 + 328;
-pub const SYS_inotify_init1: ::c_ulong = 4000 + 329;
-pub const SYS_preadv: ::c_ulong = 4000 + 330;
-pub const SYS_pwritev: ::c_ulong = 4000 + 331;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 4000 + 332;
-pub const SYS_perf_event_open: ::c_ulong = 4000 + 333;
-pub const SYS_accept4: ::c_ulong = 4000 + 334;
-pub const SYS_recvmmsg: ::c_ulong = 4000 + 335;
-pub const SYS_fanotify_init: ::c_ulong = 4000 + 336;
-pub const SYS_fanotify_mark: ::c_ulong = 4000 + 337;
-pub const SYS_prlimit64: ::c_ulong = 4000 + 338;
-pub const SYS_name_to_handle_at: ::c_ulong = 4000 + 339;
-pub const SYS_open_by_handle_at: ::c_ulong = 4000 + 340;
-pub const SYS_clock_adjtime: ::c_ulong = 4000 + 341;
-pub const SYS_syncfs: ::c_ulong = 4000 + 342;
-pub const SYS_sendmmsg: ::c_ulong = 4000 + 343;
-pub const SYS_setns: ::c_ulong = 4000 + 344;
-pub const SYS_process_vm_readv: ::c_ulong = 4000 + 345;
-pub const SYS_process_vm_writev: ::c_ulong = 4000 + 346;
-pub const SYS_kcmp: ::c_ulong = 4000 + 347;
-pub const SYS_finit_module: ::c_ulong = 4000 + 348;
-pub const SYS_sched_setattr: ::c_ulong = 4000 + 349;
-pub const SYS_sched_getattr: ::c_ulong = 4000 + 350;
-pub const SYS_renameat2: ::c_ulong = 4000 + 351;
-pub const SYS_seccomp: ::c_ulong = 4000 + 352;
-pub const SYS_getrandom: ::c_ulong = 4000 + 353;
-pub const SYS_memfd_create: ::c_ulong = 4000 + 354;
-pub const SYS_bpf: ::c_ulong = 4000 + 355;
-pub const SYS_execveat: ::c_ulong = 4000 + 356;
-pub const SYS_userfaultfd: ::c_ulong = 4000 + 357;
-pub const SYS_membarrier: ::c_ulong = 4000 + 358;
-pub const SYS_mlock2: ::c_ulong = 4000 + 359;
-pub const SYS_copy_file_range: ::c_ulong = 4000 + 360;
-pub const SYS_preadv2: ::c_ulong = 4000 + 361;
-pub const SYS_pwritev2: ::c_ulong = 4000 + 362;
+pub const SYS_syscall: ::c_long = 4000 + 0;
+pub const SYS_exit: ::c_long = 4000 + 1;
+pub const SYS_fork: ::c_long = 4000 + 2;
+pub const SYS_read: ::c_long = 4000 + 3;
+pub const SYS_write: ::c_long = 4000 + 4;
+pub const SYS_open: ::c_long = 4000 + 5;
+pub const SYS_close: ::c_long = 4000 + 6;
+pub const SYS_waitpid: ::c_long = 4000 + 7;
+pub const SYS_creat: ::c_long = 4000 + 8;
+pub const SYS_link: ::c_long = 4000 + 9;
+pub const SYS_unlink: ::c_long = 4000 + 10;
+pub const SYS_execve: ::c_long = 4000 + 11;
+pub const SYS_chdir: ::c_long = 4000 + 12;
+pub const SYS_time: ::c_long = 4000 + 13;
+pub const SYS_mknod: ::c_long = 4000 + 14;
+pub const SYS_chmod: ::c_long = 4000 + 15;
+pub const SYS_lchown: ::c_long = 4000 + 16;
+pub const SYS_break: ::c_long = 4000 + 17;
+pub const SYS_unused18: ::c_long = 4000 + 18;
+pub const SYS_lseek: ::c_long = 4000 + 19;
+pub const SYS_getpid: ::c_long = 4000 + 20;
+pub const SYS_mount: ::c_long = 4000 + 21;
+pub const SYS_umount: ::c_long = 4000 + 22;
+pub const SYS_setuid: ::c_long = 4000 + 23;
+pub const SYS_getuid: ::c_long = 4000 + 24;
+pub const SYS_stime: ::c_long = 4000 + 25;
+pub const SYS_ptrace: ::c_long = 4000 + 26;
+pub const SYS_alarm: ::c_long = 4000 + 27;
+pub const SYS_unused28: ::c_long = 4000 + 28;
+pub const SYS_pause: ::c_long = 4000 + 29;
+pub const SYS_utime: ::c_long = 4000 + 30;
+pub const SYS_stty: ::c_long = 4000 + 31;
+pub const SYS_gtty: ::c_long = 4000 + 32;
+pub const SYS_access: ::c_long = 4000 + 33;
+pub const SYS_nice: ::c_long = 4000 + 34;
+pub const SYS_ftime: ::c_long = 4000 + 35;
+pub const SYS_sync: ::c_long = 4000 + 36;
+pub const SYS_kill: ::c_long = 4000 + 37;
+pub const SYS_rename: ::c_long = 4000 + 38;
+pub const SYS_mkdir: ::c_long = 4000 + 39;
+pub const SYS_rmdir: ::c_long = 4000 + 40;
+pub const SYS_dup: ::c_long = 4000 + 41;
+pub const SYS_pipe: ::c_long = 4000 + 42;
+pub const SYS_times: ::c_long = 4000 + 43;
+pub const SYS_prof: ::c_long = 4000 + 44;
+pub const SYS_brk: ::c_long = 4000 + 45;
+pub const SYS_setgid: ::c_long = 4000 + 46;
+pub const SYS_getgid: ::c_long = 4000 + 47;
+pub const SYS_signal: ::c_long = 4000 + 48;
+pub const SYS_geteuid: ::c_long = 4000 + 49;
+pub const SYS_getegid: ::c_long = 4000 + 50;
+pub const SYS_acct: ::c_long = 4000 + 51;
+pub const SYS_umount2: ::c_long = 4000 + 52;
+pub const SYS_lock: ::c_long = 4000 + 53;
+pub const SYS_ioctl: ::c_long = 4000 + 54;
+pub const SYS_fcntl: ::c_long = 4000 + 55;
+pub const SYS_mpx: ::c_long = 4000 + 56;
+pub const SYS_setpgid: ::c_long = 4000 + 57;
+pub const SYS_ulimit: ::c_long = 4000 + 58;
+pub const SYS_unused59: ::c_long = 4000 + 59;
+pub const SYS_umask: ::c_long = 4000 + 60;
+pub const SYS_chroot: ::c_long = 4000 + 61;
+pub const SYS_ustat: ::c_long = 4000 + 62;
+pub const SYS_dup2: ::c_long = 4000 + 63;
+pub const SYS_getppid: ::c_long = 4000 + 64;
+pub const SYS_getpgrp: ::c_long = 4000 + 65;
+pub const SYS_setsid: ::c_long = 4000 + 66;
+pub const SYS_sigaction: ::c_long = 4000 + 67;
+pub const SYS_sgetmask: ::c_long = 4000 + 68;
+pub const SYS_ssetmask: ::c_long = 4000 + 69;
+pub const SYS_setreuid: ::c_long = 4000 + 70;
+pub const SYS_setregid: ::c_long = 4000 + 71;
+pub const SYS_sigsuspend: ::c_long = 4000 + 72;
+pub const SYS_sigpending: ::c_long = 4000 + 73;
+pub const SYS_sethostname: ::c_long = 4000 + 74;
+pub const SYS_setrlimit: ::c_long = 4000 + 75;
+pub const SYS_getrlimit: ::c_long = 4000 + 76;
+pub const SYS_getrusage: ::c_long = 4000 + 77;
+pub const SYS_gettimeofday: ::c_long = 4000 + 78;
+pub const SYS_settimeofday: ::c_long = 4000 + 79;
+pub const SYS_getgroups: ::c_long = 4000 + 80;
+pub const SYS_setgroups: ::c_long = 4000 + 81;
+pub const SYS_reserved82: ::c_long = 4000 + 82;
+pub const SYS_symlink: ::c_long = 4000 + 83;
+pub const SYS_unused84: ::c_long = 4000 + 84;
+pub const SYS_readlink: ::c_long = 4000 + 85;
+pub const SYS_uselib: ::c_long = 4000 + 86;
+pub const SYS_swapon: ::c_long = 4000 + 87;
+pub const SYS_reboot: ::c_long = 4000 + 88;
+pub const SYS_readdir: ::c_long = 4000 + 89;
+pub const SYS_mmap: ::c_long = 4000 + 90;
+pub const SYS_munmap: ::c_long = 4000 + 91;
+pub const SYS_truncate: ::c_long = 4000 + 92;
+pub const SYS_ftruncate: ::c_long = 4000 + 93;
+pub const SYS_fchmod: ::c_long = 4000 + 94;
+pub const SYS_fchown: ::c_long = 4000 + 95;
+pub const SYS_getpriority: ::c_long = 4000 + 96;
+pub const SYS_setpriority: ::c_long = 4000 + 97;
+pub const SYS_profil: ::c_long = 4000 + 98;
+pub const SYS_statfs: ::c_long = 4000 + 99;
+pub const SYS_fstatfs: ::c_long = 4000 + 100;
+pub const SYS_ioperm: ::c_long = 4000 + 101;
+pub const SYS_socketcall: ::c_long = 4000 + 102;
+pub const SYS_syslog: ::c_long = 4000 + 103;
+pub const SYS_setitimer: ::c_long = 4000 + 104;
+pub const SYS_getitimer: ::c_long = 4000 + 105;
+pub const SYS_stat: ::c_long = 4000 + 106;
+pub const SYS_lstat: ::c_long = 4000 + 107;
+pub const SYS_fstat: ::c_long = 4000 + 108;
+pub const SYS_unused109: ::c_long = 4000 + 109;
+pub const SYS_iopl: ::c_long = 4000 + 110;
+pub const SYS_vhangup: ::c_long = 4000 + 111;
+pub const SYS_idle: ::c_long = 4000 + 112;
+pub const SYS_vm86: ::c_long = 4000 + 113;
+pub const SYS_wait4: ::c_long = 4000 + 114;
+pub const SYS_swapoff: ::c_long = 4000 + 115;
+pub const SYS_sysinfo: ::c_long = 4000 + 116;
+pub const SYS_ipc: ::c_long = 4000 + 117;
+pub const SYS_fsync: ::c_long = 4000 + 118;
+pub const SYS_sigreturn: ::c_long = 4000 + 119;
+pub const SYS_clone: ::c_long = 4000 + 120;
+pub const SYS_setdomainname: ::c_long = 4000 + 121;
+pub const SYS_uname: ::c_long = 4000 + 122;
+pub const SYS_modify_ldt: ::c_long = 4000 + 123;
+pub const SYS_adjtimex: ::c_long = 4000 + 124;
+pub const SYS_mprotect: ::c_long = 4000 + 125;
+pub const SYS_sigprocmask: ::c_long = 4000 + 126;
+pub const SYS_create_module: ::c_long = 4000 + 127;
+pub const SYS_init_module: ::c_long = 4000 + 128;
+pub const SYS_delete_module: ::c_long = 4000 + 129;
+pub const SYS_get_kernel_syms: ::c_long = 4000 + 130;
+pub const SYS_quotactl: ::c_long = 4000 + 131;
+pub const SYS_getpgid: ::c_long = 4000 + 132;
+pub const SYS_fchdir: ::c_long = 4000 + 133;
+pub const SYS_bdflush: ::c_long = 4000 + 134;
+pub const SYS_sysfs: ::c_long = 4000 + 135;
+pub const SYS_personality: ::c_long = 4000 + 136;
+pub const SYS_afs_syscall: ::c_long = 4000 + 137;
+pub const SYS_setfsuid: ::c_long = 4000 + 138;
+pub const SYS_setfsgid: ::c_long = 4000 + 139;
+pub const SYS__llseek: ::c_long = 4000 + 140;
+pub const SYS_getdents: ::c_long = 4000 + 141;
+pub const SYS_flock: ::c_long = 4000 + 143;
+pub const SYS_msync: ::c_long = 4000 + 144;
+pub const SYS_readv: ::c_long = 4000 + 145;
+pub const SYS_writev: ::c_long = 4000 + 146;
+pub const SYS_cacheflush: ::c_long = 4000 + 147;
+pub const SYS_cachectl: ::c_long = 4000 + 148;
+pub const SYS_sysmips: ::c_long = 4000 + 149;
+pub const SYS_unused150: ::c_long = 4000 + 150;
+pub const SYS_getsid: ::c_long = 4000 + 151;
+pub const SYS_fdatasync: ::c_long = 4000 + 152;
+pub const SYS__sysctl: ::c_long = 4000 + 153;
+pub const SYS_mlock: ::c_long = 4000 + 154;
+pub const SYS_munlock: ::c_long = 4000 + 155;
+pub const SYS_mlockall: ::c_long = 4000 + 156;
+pub const SYS_munlockall: ::c_long = 4000 + 157;
+pub const SYS_sched_setparam: ::c_long = 4000 + 158;
+pub const SYS_sched_getparam: ::c_long = 4000 + 159;
+pub const SYS_sched_setscheduler: ::c_long = 4000 + 160;
+pub const SYS_sched_getscheduler: ::c_long = 4000 + 161;
+pub const SYS_sched_yield: ::c_long = 4000 + 162;
+pub const SYS_sched_get_priority_max: ::c_long = 4000 + 163;
+pub const SYS_sched_get_priority_min: ::c_long = 4000 + 164;
+pub const SYS_sched_rr_get_interval: ::c_long = 4000 + 165;
+pub const SYS_nanosleep: ::c_long = 4000 + 166;
+pub const SYS_mremap: ::c_long = 4000 + 167;
+pub const SYS_accept: ::c_long = 4000 + 168;
+pub const SYS_bind: ::c_long = 4000 + 169;
+pub const SYS_connect: ::c_long = 4000 + 170;
+pub const SYS_getpeername: ::c_long = 4000 + 171;
+pub const SYS_getsockname: ::c_long = 4000 + 172;
+pub const SYS_getsockopt: ::c_long = 4000 + 173;
+pub const SYS_listen: ::c_long = 4000 + 174;
+pub const SYS_recv: ::c_long = 4000 + 175;
+pub const SYS_recvfrom: ::c_long = 4000 + 176;
+pub const SYS_recvmsg: ::c_long = 4000 + 177;
+pub const SYS_send: ::c_long = 4000 + 178;
+pub const SYS_sendmsg: ::c_long = 4000 + 179;
+pub const SYS_sendto: ::c_long = 4000 + 180;
+pub const SYS_setsockopt: ::c_long = 4000 + 181;
+pub const SYS_shutdown: ::c_long = 4000 + 182;
+pub const SYS_socket: ::c_long = 4000 + 183;
+pub const SYS_socketpair: ::c_long = 4000 + 184;
+pub const SYS_setresuid: ::c_long = 4000 + 185;
+pub const SYS_getresuid: ::c_long = 4000 + 186;
+pub const SYS_query_module: ::c_long = 4000 + 187;
+pub const SYS_poll: ::c_long = 4000 + 188;
+pub const SYS_nfsservctl: ::c_long = 4000 + 189;
+pub const SYS_setresgid: ::c_long = 4000 + 190;
+pub const SYS_getresgid: ::c_long = 4000 + 191;
+pub const SYS_prctl: ::c_long = 4000 + 192;
+pub const SYS_rt_sigreturn: ::c_long = 4000 + 193;
+pub const SYS_rt_sigaction: ::c_long = 4000 + 194;
+pub const SYS_rt_sigprocmask: ::c_long = 4000 + 195;
+pub const SYS_rt_sigpending: ::c_long = 4000 + 196;
+pub const SYS_rt_sigtimedwait: ::c_long = 4000 + 197;
+pub const SYS_rt_sigqueueinfo: ::c_long = 4000 + 198;
+pub const SYS_rt_sigsuspend: ::c_long = 4000 + 199;
+pub const SYS_chown: ::c_long = 4000 + 202;
+pub const SYS_getcwd: ::c_long = 4000 + 203;
+pub const SYS_capget: ::c_long = 4000 + 204;
+pub const SYS_capset: ::c_long = 4000 + 205;
+pub const SYS_sigaltstack: ::c_long = 4000 + 206;
+pub const SYS_sendfile: ::c_long = 4000 + 207;
+pub const SYS_getpmsg: ::c_long = 4000 + 208;
+pub const SYS_putpmsg: ::c_long = 4000 + 209;
+pub const SYS_mmap2: ::c_long = 4000 + 210;
+pub const SYS_truncate64: ::c_long = 4000 + 211;
+pub const SYS_ftruncate64: ::c_long = 4000 + 212;
+pub const SYS_stat64: ::c_long = 4000 + 213;
+pub const SYS_lstat64: ::c_long = 4000 + 214;
+pub const SYS_fstat64: ::c_long = 4000 + 215;
+pub const SYS_pivot_root: ::c_long = 4000 + 216;
+pub const SYS_mincore: ::c_long = 4000 + 217;
+pub const SYS_madvise: ::c_long = 4000 + 218;
+pub const SYS_getdents64: ::c_long = 4000 + 219;
+pub const SYS_fcntl64: ::c_long = 4000 + 220;
+pub const SYS_reserved221: ::c_long = 4000 + 221;
+pub const SYS_gettid: ::c_long = 4000 + 222;
+pub const SYS_readahead: ::c_long = 4000 + 223;
+pub const SYS_setxattr: ::c_long = 4000 + 224;
+pub const SYS_lsetxattr: ::c_long = 4000 + 225;
+pub const SYS_fsetxattr: ::c_long = 4000 + 226;
+pub const SYS_getxattr: ::c_long = 4000 + 227;
+pub const SYS_lgetxattr: ::c_long = 4000 + 228;
+pub const SYS_fgetxattr: ::c_long = 4000 + 229;
+pub const SYS_listxattr: ::c_long = 4000 + 230;
+pub const SYS_llistxattr: ::c_long = 4000 + 231;
+pub const SYS_flistxattr: ::c_long = 4000 + 232;
+pub const SYS_removexattr: ::c_long = 4000 + 233;
+pub const SYS_lremovexattr: ::c_long = 4000 + 234;
+pub const SYS_fremovexattr: ::c_long = 4000 + 235;
+pub const SYS_tkill: ::c_long = 4000 + 236;
+pub const SYS_sendfile64: ::c_long = 4000 + 237;
+pub const SYS_futex: ::c_long = 4000 + 238;
+pub const SYS_sched_setaffinity: ::c_long = 4000 + 239;
+pub const SYS_sched_getaffinity: ::c_long = 4000 + 240;
+pub const SYS_io_setup: ::c_long = 4000 + 241;
+pub const SYS_io_destroy: ::c_long = 4000 + 242;
+pub const SYS_io_getevents: ::c_long = 4000 + 243;
+pub const SYS_io_submit: ::c_long = 4000 + 244;
+pub const SYS_io_cancel: ::c_long = 4000 + 245;
+pub const SYS_exit_group: ::c_long = 4000 + 246;
+pub const SYS_lookup_dcookie: ::c_long = 4000 + 247;
+pub const SYS_epoll_create: ::c_long = 4000 + 248;
+pub const SYS_epoll_ctl: ::c_long = 4000 + 249;
+pub const SYS_epoll_wait: ::c_long = 4000 + 250;
+pub const SYS_remap_file_pages: ::c_long = 4000 + 251;
+pub const SYS_set_tid_address: ::c_long = 4000 + 252;
+pub const SYS_restart_syscall: ::c_long = 4000 + 253;
+pub const SYS_statfs64: ::c_long = 4000 + 255;
+pub const SYS_fstatfs64: ::c_long = 4000 + 256;
+pub const SYS_timer_create: ::c_long = 4000 + 257;
+pub const SYS_timer_settime: ::c_long = 4000 + 258;
+pub const SYS_timer_gettime: ::c_long = 4000 + 259;
+pub const SYS_timer_getoverrun: ::c_long = 4000 + 260;
+pub const SYS_timer_delete: ::c_long = 4000 + 261;
+pub const SYS_clock_settime: ::c_long = 4000 + 262;
+pub const SYS_clock_gettime: ::c_long = 4000 + 263;
+pub const SYS_clock_getres: ::c_long = 4000 + 264;
+pub const SYS_clock_nanosleep: ::c_long = 4000 + 265;
+pub const SYS_tgkill: ::c_long = 4000 + 266;
+pub const SYS_utimes: ::c_long = 4000 + 267;
+pub const SYS_mbind: ::c_long = 4000 + 268;
+pub const SYS_get_mempolicy: ::c_long = 4000 + 269;
+pub const SYS_set_mempolicy: ::c_long = 4000 + 270;
+pub const SYS_mq_open: ::c_long = 4000 + 271;
+pub const SYS_mq_unlink: ::c_long = 4000 + 272;
+pub const SYS_mq_timedsend: ::c_long = 4000 + 273;
+pub const SYS_mq_timedreceive: ::c_long = 4000 + 274;
+pub const SYS_mq_notify: ::c_long = 4000 + 275;
+pub const SYS_mq_getsetattr: ::c_long = 4000 + 276;
+pub const SYS_vserver: ::c_long = 4000 + 277;
+pub const SYS_waitid: ::c_long = 4000 + 278;
+/* pub const SYS_sys_setaltroot: ::c_long = 4000 + 279; */
+pub const SYS_add_key: ::c_long = 4000 + 280;
+pub const SYS_request_key: ::c_long = 4000 + 281;
+pub const SYS_keyctl: ::c_long = 4000 + 282;
+pub const SYS_set_thread_area: ::c_long = 4000 + 283;
+pub const SYS_inotify_init: ::c_long = 4000 + 284;
+pub const SYS_inotify_add_watch: ::c_long = 4000 + 285;
+pub const SYS_inotify_rm_watch: ::c_long = 4000 + 286;
+pub const SYS_migrate_pages: ::c_long = 4000 + 287;
+pub const SYS_openat: ::c_long = 4000 + 288;
+pub const SYS_mkdirat: ::c_long = 4000 + 289;
+pub const SYS_mknodat: ::c_long = 4000 + 290;
+pub const SYS_fchownat: ::c_long = 4000 + 291;
+pub const SYS_futimesat: ::c_long = 4000 + 292;
+pub const SYS_unlinkat: ::c_long = 4000 + 294;
+pub const SYS_renameat: ::c_long = 4000 + 295;
+pub const SYS_linkat: ::c_long = 4000 + 296;
+pub const SYS_symlinkat: ::c_long = 4000 + 297;
+pub const SYS_readlinkat: ::c_long = 4000 + 298;
+pub const SYS_fchmodat: ::c_long = 4000 + 299;
+pub const SYS_faccessat: ::c_long = 4000 + 300;
+pub const SYS_pselect6: ::c_long = 4000 + 301;
+pub const SYS_ppoll: ::c_long = 4000 + 302;
+pub const SYS_unshare: ::c_long = 4000 + 303;
+pub const SYS_splice: ::c_long = 4000 + 304;
+pub const SYS_sync_file_range: ::c_long = 4000 + 305;
+pub const SYS_tee: ::c_long = 4000 + 306;
+pub const SYS_vmsplice: ::c_long = 4000 + 307;
+pub const SYS_move_pages: ::c_long = 4000 + 308;
+pub const SYS_set_robust_list: ::c_long = 4000 + 309;
+pub const SYS_get_robust_list: ::c_long = 4000 + 310;
+pub const SYS_kexec_load: ::c_long = 4000 + 311;
+pub const SYS_getcpu: ::c_long = 4000 + 312;
+pub const SYS_epoll_pwait: ::c_long = 4000 + 313;
+pub const SYS_ioprio_set: ::c_long = 4000 + 314;
+pub const SYS_ioprio_get: ::c_long = 4000 + 315;
+pub const SYS_utimensat: ::c_long = 4000 + 316;
+pub const SYS_signalfd: ::c_long = 4000 + 317;
+pub const SYS_timerfd: ::c_long = 4000 + 318;
+pub const SYS_eventfd: ::c_long = 4000 + 319;
+pub const SYS_fallocate: ::c_long = 4000 + 320;
+pub const SYS_timerfd_create: ::c_long = 4000 + 321;
+pub const SYS_timerfd_gettime: ::c_long = 4000 + 322;
+pub const SYS_timerfd_settime: ::c_long = 4000 + 323;
+pub const SYS_signalfd4: ::c_long = 4000 + 324;
+pub const SYS_eventfd2: ::c_long = 4000 + 325;
+pub const SYS_epoll_create1: ::c_long = 4000 + 326;
+pub const SYS_dup3: ::c_long = 4000 + 327;
+pub const SYS_pipe2: ::c_long = 4000 + 328;
+pub const SYS_inotify_init1: ::c_long = 4000 + 329;
+pub const SYS_preadv: ::c_long = 4000 + 330;
+pub const SYS_pwritev: ::c_long = 4000 + 331;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 4000 + 332;
+pub const SYS_perf_event_open: ::c_long = 4000 + 333;
+pub const SYS_accept4: ::c_long = 4000 + 334;
+pub const SYS_recvmmsg: ::c_long = 4000 + 335;
+pub const SYS_fanotify_init: ::c_long = 4000 + 336;
+pub const SYS_fanotify_mark: ::c_long = 4000 + 337;
+pub const SYS_prlimit64: ::c_long = 4000 + 338;
+pub const SYS_name_to_handle_at: ::c_long = 4000 + 339;
+pub const SYS_open_by_handle_at: ::c_long = 4000 + 340;
+pub const SYS_clock_adjtime: ::c_long = 4000 + 341;
+pub const SYS_syncfs: ::c_long = 4000 + 342;
+pub const SYS_sendmmsg: ::c_long = 4000 + 343;
+pub const SYS_setns: ::c_long = 4000 + 344;
+pub const SYS_process_vm_readv: ::c_long = 4000 + 345;
+pub const SYS_process_vm_writev: ::c_long = 4000 + 346;
+pub const SYS_kcmp: ::c_long = 4000 + 347;
+pub const SYS_finit_module: ::c_long = 4000 + 348;
+pub const SYS_sched_setattr: ::c_long = 4000 + 349;
+pub const SYS_sched_getattr: ::c_long = 4000 + 350;
+pub const SYS_renameat2: ::c_long = 4000 + 351;
+pub const SYS_seccomp: ::c_long = 4000 + 352;
+pub const SYS_getrandom: ::c_long = 4000 + 353;
+pub const SYS_memfd_create: ::c_long = 4000 + 354;
+pub const SYS_bpf: ::c_long = 4000 + 355;
+pub const SYS_execveat: ::c_long = 4000 + 356;
+pub const SYS_userfaultfd: ::c_long = 4000 + 357;
+pub const SYS_membarrier: ::c_long = 4000 + 358;
+pub const SYS_mlock2: ::c_long = 4000 + 359;
+pub const SYS_copy_file_range: ::c_long = 4000 + 360;
+pub const SYS_preadv2: ::c_long = 4000 + 361;
+pub const SYS_pwritev2: ::c_long = 4000 + 362;
#[doc(hidden)]
pub const AF_MAX: ::c_int = 42;
diff --git a/src/unix/notbsd/linux/musl/b32/x86.rs b/src/unix/notbsd/linux/musl/b32/x86.rs
index 5494981..fa57024 100644
--- a/src/unix/notbsd/linux/musl/b32/x86.rs
+++ b/src/unix/notbsd/linux/musl/b32/x86.rs
@@ -151,6 +151,17 @@
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const O_DIRECT: ::c_int = 0x4000;
diff --git a/src/unix/notbsd/linux/musl/b64/aarch64.rs b/src/unix/notbsd/linux/musl/b64/aarch64.rs
index 3e294d8..da0827a 100644
--- a/src/unix/notbsd/linux/musl/b64/aarch64.rs
+++ b/src/unix/notbsd/linux/musl/b64/aarch64.rs
@@ -75,267 +75,267 @@
#[doc(hidden)]
pub const AF_MAX: ::c_int = PF_MAX;
-pub const SYS_io_setup: ::c_ulong = 0;
-pub const SYS_io_destroy: ::c_ulong = 1;
-pub const SYS_io_submit: ::c_ulong = 2;
-pub const SYS_io_cancel: ::c_ulong = 3;
-pub const SYS_io_getevents: ::c_ulong = 4;
-pub const SYS_setxattr: ::c_ulong = 5;
-pub const SYS_lsetxattr: ::c_ulong = 6;
-pub const SYS_fsetxattr: ::c_ulong = 7;
-pub const SYS_getxattr: ::c_ulong = 8;
-pub const SYS_lgetxattr: ::c_ulong = 9;
-pub const SYS_fgetxattr: ::c_ulong = 10;
-pub const SYS_listxattr: ::c_ulong = 11;
-pub const SYS_llistxattr: ::c_ulong = 12;
-pub const SYS_flistxattr: ::c_ulong = 13;
-pub const SYS_removexattr: ::c_ulong = 14;
-pub const SYS_lremovexattr: ::c_ulong = 15;
-pub const SYS_fremovexattr: ::c_ulong = 16;
-pub const SYS_getcwd: ::c_ulong = 17;
-pub const SYS_lookup_dcookie: ::c_ulong = 18;
-pub const SYS_eventfd2: ::c_ulong = 19;
-pub const SYS_epoll_create1: ::c_ulong = 20;
-pub const SYS_epoll_ctl: ::c_ulong = 21;
-pub const SYS_epoll_pwait: ::c_ulong = 22;
-pub const SYS_dup: ::c_ulong = 23;
-pub const SYS_dup3: ::c_ulong = 24;
-pub const SYS_inotify_init1: ::c_ulong = 26;
-pub const SYS_inotify_add_watch: ::c_ulong = 27;
-pub const SYS_inotify_rm_watch: ::c_ulong = 28;
-pub const SYS_ioctl: ::c_ulong = 29;
-pub const SYS_ioprio_set: ::c_ulong = 30;
-pub const SYS_ioprio_get: ::c_ulong = 31;
-pub const SYS_flock: ::c_ulong = 32;
-pub const SYS_mknodat: ::c_ulong = 33;
-pub const SYS_mkdirat: ::c_ulong = 34;
-pub const SYS_unlinkat: ::c_ulong = 35;
-pub const SYS_symlinkat: ::c_ulong = 36;
-pub const SYS_linkat: ::c_ulong = 37;
-pub const SYS_renameat: ::c_ulong = 38;
-pub const SYS_umount2: ::c_ulong = 39;
-pub const SYS_mount: ::c_ulong = 40;
-pub const SYS_pivot_root: ::c_ulong = 41;
-pub const SYS_nfsservctl: ::c_ulong = 42;
-pub const SYS_fallocate: ::c_ulong = 47;
-pub const SYS_faccessat: ::c_ulong = 48;
-pub const SYS_chdir: ::c_ulong = 49;
-pub const SYS_fchdir: ::c_ulong = 50;
-pub const SYS_chroot: ::c_ulong = 51;
-pub const SYS_fchmod: ::c_ulong = 52;
-pub const SYS_fchmodat: ::c_ulong = 53;
-pub const SYS_fchownat: ::c_ulong = 54;
-pub const SYS_fchown: ::c_ulong = 55;
-pub const SYS_openat: ::c_ulong = 56;
-pub const SYS_close: ::c_ulong = 57;
-pub const SYS_vhangup: ::c_ulong = 58;
-pub const SYS_pipe2: ::c_ulong = 59;
-pub const SYS_quotactl: ::c_ulong = 60;
-pub const SYS_getdents64: ::c_ulong = 61;
-pub const SYS_read: ::c_ulong = 63;
-pub const SYS_write: ::c_ulong = 64;
-pub const SYS_readv: ::c_ulong = 65;
-pub const SYS_writev: ::c_ulong = 66;
-pub const SYS_pread64: ::c_ulong = 67;
-pub const SYS_pwrite64: ::c_ulong = 68;
-pub const SYS_preadv: ::c_ulong = 69;
-pub const SYS_pwritev: ::c_ulong = 70;
-pub const SYS_pselect6: ::c_ulong = 72;
-pub const SYS_ppoll: ::c_ulong = 73;
-pub const SYS_signalfd4: ::c_ulong = 74;
-pub const SYS_vmsplice: ::c_ulong = 75;
-pub const SYS_splice: ::c_ulong = 76;
-pub const SYS_tee: ::c_ulong = 77;
-pub const SYS_readlinkat: ::c_ulong = 78;
-pub const SYS_sync: ::c_ulong = 81;
-pub const SYS_fsync: ::c_ulong = 82;
-pub const SYS_fdatasync: ::c_ulong = 83;
-pub const SYS_sync_file_range: ::c_ulong = 84;
-pub const SYS_timerfd_create: ::c_ulong = 85;
-pub const SYS_timerfd_settime: ::c_ulong = 86;
-pub const SYS_timerfd_gettime: ::c_ulong = 87;
-pub const SYS_utimensat: ::c_ulong = 88;
-pub const SYS_acct: ::c_ulong = 89;
-pub const SYS_capget: ::c_ulong = 90;
-pub const SYS_capset: ::c_ulong = 91;
-pub const SYS_personality: ::c_ulong = 92;
-pub const SYS_exit: ::c_ulong = 93;
-pub const SYS_exit_group: ::c_ulong = 94;
-pub const SYS_waitid: ::c_ulong = 95;
-pub const SYS_set_tid_address: ::c_ulong = 96;
-pub const SYS_unshare: ::c_ulong = 97;
-pub const SYS_futex: ::c_ulong = 98;
-pub const SYS_set_robust_list: ::c_ulong = 99;
-pub const SYS_get_robust_list: ::c_ulong = 100;
-pub const SYS_nanosleep: ::c_ulong = 101;
-pub const SYS_getitimer: ::c_ulong = 102;
-pub const SYS_setitimer: ::c_ulong = 103;
-pub const SYS_kexec_load: ::c_ulong = 104;
-pub const SYS_init_module: ::c_ulong = 105;
-pub const SYS_delete_module: ::c_ulong = 106;
-pub const SYS_timer_create: ::c_ulong = 107;
-pub const SYS_timer_gettime: ::c_ulong = 108;
-pub const SYS_timer_getoverrun: ::c_ulong = 109;
-pub const SYS_timer_settime: ::c_ulong = 110;
-pub const SYS_timer_delete: ::c_ulong = 111;
-pub const SYS_clock_settime: ::c_ulong = 112;
-pub const SYS_clock_gettime: ::c_ulong = 113;
-pub const SYS_clock_getres: ::c_ulong = 114;
-pub const SYS_clock_nanosleep: ::c_ulong = 115;
-pub const SYS_syslog: ::c_ulong = 116;
-pub const SYS_ptrace: ::c_ulong = 117;
-pub const SYS_sched_setparam: ::c_ulong = 118;
-pub const SYS_sched_setscheduler: ::c_ulong = 119;
-pub const SYS_sched_getscheduler: ::c_ulong = 120;
-pub const SYS_sched_getparam: ::c_ulong = 121;
-pub const SYS_sched_setaffinity: ::c_ulong = 122;
-pub const SYS_sched_getaffinity: ::c_ulong = 123;
-pub const SYS_sched_yield: ::c_ulong = 124;
-pub const SYS_sched_get_priority_max: ::c_ulong = 125;
-pub const SYS_sched_get_priority_min: ::c_ulong = 126;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 127;
-pub const SYS_restart_syscall: ::c_ulong = 128;
-pub const SYS_kill: ::c_ulong = 129;
-pub const SYS_tkill: ::c_ulong = 130;
-pub const SYS_tgkill: ::c_ulong = 131;
-pub const SYS_sigaltstack: ::c_ulong = 132;
-pub const SYS_rt_sigsuspend: ::c_ulong = 133;
-pub const SYS_rt_sigaction: ::c_ulong = 134;
-pub const SYS_rt_sigprocmask: ::c_ulong = 135;
-pub const SYS_rt_sigpending: ::c_ulong = 136;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 137;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 138;
-pub const SYS_rt_sigreturn: ::c_ulong = 139;
-pub const SYS_setpriority: ::c_ulong = 140;
-pub const SYS_getpriority: ::c_ulong = 141;
-pub const SYS_reboot: ::c_ulong = 142;
-pub const SYS_setregid: ::c_ulong = 143;
-pub const SYS_setgid: ::c_ulong = 144;
-pub const SYS_setreuid: ::c_ulong = 145;
-pub const SYS_setuid: ::c_ulong = 146;
-pub const SYS_setresuid: ::c_ulong = 147;
-pub const SYS_getresuid: ::c_ulong = 148;
-pub const SYS_setresgid: ::c_ulong = 149;
-pub const SYS_getresgid: ::c_ulong = 150;
-pub const SYS_setfsuid: ::c_ulong = 151;
-pub const SYS_setfsgid: ::c_ulong = 152;
-pub const SYS_times: ::c_ulong = 153;
-pub const SYS_setpgid: ::c_ulong = 154;
-pub const SYS_getpgid: ::c_ulong = 155;
-pub const SYS_getsid: ::c_ulong = 156;
-pub const SYS_setsid: ::c_ulong = 157;
-pub const SYS_getgroups: ::c_ulong = 158;
-pub const SYS_setgroups: ::c_ulong = 159;
-pub const SYS_uname: ::c_ulong = 160;
-pub const SYS_sethostname: ::c_ulong = 161;
-pub const SYS_setdomainname: ::c_ulong = 162;
-pub const SYS_getrlimit: ::c_ulong = 163;
-pub const SYS_setrlimit: ::c_ulong = 164;
-pub const SYS_getrusage: ::c_ulong = 165;
-pub const SYS_umask: ::c_ulong = 166;
-pub const SYS_prctl: ::c_ulong = 167;
-pub const SYS_getcpu: ::c_ulong = 168;
-pub const SYS_gettimeofday: ::c_ulong = 169;
-pub const SYS_settimeofday: ::c_ulong = 170;
-pub const SYS_adjtimex: ::c_ulong = 171;
-pub const SYS_getpid: ::c_ulong = 172;
-pub const SYS_getppid: ::c_ulong = 173;
-pub const SYS_getuid: ::c_ulong = 174;
-pub const SYS_geteuid: ::c_ulong = 175;
-pub const SYS_getgid: ::c_ulong = 176;
-pub const SYS_getegid: ::c_ulong = 177;
-pub const SYS_gettid: ::c_ulong = 178;
-pub const SYS_sysinfo: ::c_ulong = 179;
-pub const SYS_mq_open: ::c_ulong = 180;
-pub const SYS_mq_unlink: ::c_ulong = 181;
-pub const SYS_mq_timedsend: ::c_ulong = 182;
-pub const SYS_mq_timedreceive: ::c_ulong = 183;
-pub const SYS_mq_notify: ::c_ulong = 184;
-pub const SYS_mq_getsetattr: ::c_ulong = 185;
-pub const SYS_msgget: ::c_ulong = 186;
-pub const SYS_msgctl: ::c_ulong = 187;
-pub const SYS_msgrcv: ::c_ulong = 188;
-pub const SYS_msgsnd: ::c_ulong = 189;
-pub const SYS_semget: ::c_ulong = 190;
-pub const SYS_semctl: ::c_ulong = 191;
-pub const SYS_semtimedop: ::c_ulong = 192;
-pub const SYS_semop: ::c_ulong = 193;
-pub const SYS_shmget: ::c_ulong = 194;
-pub const SYS_shmctl: ::c_ulong = 195;
-pub const SYS_shmat: ::c_ulong = 196;
-pub const SYS_shmdt: ::c_ulong = 197;
-pub const SYS_socket: ::c_ulong = 198;
-pub const SYS_socketpair: ::c_ulong = 199;
-pub const SYS_bind: ::c_ulong = 200;
-pub const SYS_listen: ::c_ulong = 201;
-pub const SYS_accept: ::c_ulong = 202;
-pub const SYS_connect: ::c_ulong = 203;
-pub const SYS_getsockname: ::c_ulong = 204;
-pub const SYS_getpeername: ::c_ulong = 205;
-pub const SYS_sendto: ::c_ulong = 206;
-pub const SYS_recvfrom: ::c_ulong = 207;
-pub const SYS_setsockopt: ::c_ulong = 208;
-pub const SYS_getsockopt: ::c_ulong = 209;
-pub const SYS_shutdown: ::c_ulong = 210;
-pub const SYS_sendmsg: ::c_ulong = 211;
-pub const SYS_recvmsg: ::c_ulong = 212;
-pub const SYS_readahead: ::c_ulong = 213;
-pub const SYS_brk: ::c_ulong = 214;
-pub const SYS_munmap: ::c_ulong = 215;
-pub const SYS_mremap: ::c_ulong = 216;
-pub const SYS_add_key: ::c_ulong = 217;
-pub const SYS_request_key: ::c_ulong = 218;
-pub const SYS_keyctl: ::c_ulong = 219;
-pub const SYS_clone: ::c_ulong = 220;
-pub const SYS_execve: ::c_ulong = 221;
-pub const SYS_swapon: ::c_ulong = 224;
-pub const SYS_swapoff: ::c_ulong = 225;
-pub const SYS_mprotect: ::c_ulong = 226;
-pub const SYS_msync: ::c_ulong = 227;
-pub const SYS_mlock: ::c_ulong = 228;
-pub const SYS_munlock: ::c_ulong = 229;
-pub const SYS_mlockall: ::c_ulong = 230;
-pub const SYS_munlockall: ::c_ulong = 231;
-pub const SYS_mincore: ::c_ulong = 232;
-pub const SYS_madvise: ::c_ulong = 233;
-pub const SYS_remap_file_pages: ::c_ulong = 234;
-pub const SYS_mbind: ::c_ulong = 235;
-pub const SYS_get_mempolicy: ::c_ulong = 236;
-pub const SYS_set_mempolicy: ::c_ulong = 237;
-pub const SYS_migrate_pages: ::c_ulong = 238;
-pub const SYS_move_pages: ::c_ulong = 239;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 240;
-pub const SYS_perf_event_open: ::c_ulong = 241;
-pub const SYS_accept4: ::c_ulong = 242;
-pub const SYS_recvmmsg: ::c_ulong = 243;
-pub const SYS_wait4: ::c_ulong = 260;
-pub const SYS_prlimit64: ::c_ulong = 261;
-pub const SYS_fanotify_init: ::c_ulong = 262;
-pub const SYS_fanotify_mark: ::c_ulong = 263;
-pub const SYS_name_to_handle_at: ::c_ulong = 264;
-pub const SYS_open_by_handle_at: ::c_ulong = 265;
-pub const SYS_clock_adjtime: ::c_ulong = 266;
-pub const SYS_syncfs: ::c_ulong = 267;
-pub const SYS_setns: ::c_ulong = 268;
-pub const SYS_sendmmsg: ::c_ulong = 269;
-pub const SYS_process_vm_readv: ::c_ulong = 270;
-pub const SYS_process_vm_writev: ::c_ulong = 271;
-pub const SYS_kcmp: ::c_ulong = 272;
-pub const SYS_finit_module: ::c_ulong = 273;
-pub const SYS_sched_setattr: ::c_ulong = 274;
-pub const SYS_sched_getattr: ::c_ulong = 275;
-pub const SYS_renameat2: ::c_ulong = 276;
-pub const SYS_seccomp: ::c_ulong = 277;
-pub const SYS_getrandom: ::c_ulong = 278;
-pub const SYS_memfd_create: ::c_ulong = 279;
-pub const SYS_bpf: ::c_ulong = 280;
-pub const SYS_execveat: ::c_ulong = 281;
-pub const SYS_userfaultfd: ::c_ulong = 282;
-pub const SYS_membarrier: ::c_ulong = 283;
-pub const SYS_mlock2: ::c_ulong = 284;
-pub const SYS_copy_file_range: ::c_ulong = 285;
-pub const SYS_preadv2: ::c_ulong = 286;
-pub const SYS_pwritev2: ::c_ulong = 287;
-pub const SYS_pkey_mprotect: ::c_ulong = 288;
-pub const SYS_pkey_alloc: ::c_ulong = 289;
-pub const SYS_pkey_free: ::c_ulong = 290;
+pub const SYS_io_setup: ::c_long = 0;
+pub const SYS_io_destroy: ::c_long = 1;
+pub const SYS_io_submit: ::c_long = 2;
+pub const SYS_io_cancel: ::c_long = 3;
+pub const SYS_io_getevents: ::c_long = 4;
+pub const SYS_setxattr: ::c_long = 5;
+pub const SYS_lsetxattr: ::c_long = 6;
+pub const SYS_fsetxattr: ::c_long = 7;
+pub const SYS_getxattr: ::c_long = 8;
+pub const SYS_lgetxattr: ::c_long = 9;
+pub const SYS_fgetxattr: ::c_long = 10;
+pub const SYS_listxattr: ::c_long = 11;
+pub const SYS_llistxattr: ::c_long = 12;
+pub const SYS_flistxattr: ::c_long = 13;
+pub const SYS_removexattr: ::c_long = 14;
+pub const SYS_lremovexattr: ::c_long = 15;
+pub const SYS_fremovexattr: ::c_long = 16;
+pub const SYS_getcwd: ::c_long = 17;
+pub const SYS_lookup_dcookie: ::c_long = 18;
+pub const SYS_eventfd2: ::c_long = 19;
+pub const SYS_epoll_create1: ::c_long = 20;
+pub const SYS_epoll_ctl: ::c_long = 21;
+pub const SYS_epoll_pwait: ::c_long = 22;
+pub const SYS_dup: ::c_long = 23;
+pub const SYS_dup3: ::c_long = 24;
+pub const SYS_inotify_init1: ::c_long = 26;
+pub const SYS_inotify_add_watch: ::c_long = 27;
+pub const SYS_inotify_rm_watch: ::c_long = 28;
+pub const SYS_ioctl: ::c_long = 29;
+pub const SYS_ioprio_set: ::c_long = 30;
+pub const SYS_ioprio_get: ::c_long = 31;
+pub const SYS_flock: ::c_long = 32;
+pub const SYS_mknodat: ::c_long = 33;
+pub const SYS_mkdirat: ::c_long = 34;
+pub const SYS_unlinkat: ::c_long = 35;
+pub const SYS_symlinkat: ::c_long = 36;
+pub const SYS_linkat: ::c_long = 37;
+pub const SYS_renameat: ::c_long = 38;
+pub const SYS_umount2: ::c_long = 39;
+pub const SYS_mount: ::c_long = 40;
+pub const SYS_pivot_root: ::c_long = 41;
+pub const SYS_nfsservctl: ::c_long = 42;
+pub const SYS_fallocate: ::c_long = 47;
+pub const SYS_faccessat: ::c_long = 48;
+pub const SYS_chdir: ::c_long = 49;
+pub const SYS_fchdir: ::c_long = 50;
+pub const SYS_chroot: ::c_long = 51;
+pub const SYS_fchmod: ::c_long = 52;
+pub const SYS_fchmodat: ::c_long = 53;
+pub const SYS_fchownat: ::c_long = 54;
+pub const SYS_fchown: ::c_long = 55;
+pub const SYS_openat: ::c_long = 56;
+pub const SYS_close: ::c_long = 57;
+pub const SYS_vhangup: ::c_long = 58;
+pub const SYS_pipe2: ::c_long = 59;
+pub const SYS_quotactl: ::c_long = 60;
+pub const SYS_getdents64: ::c_long = 61;
+pub const SYS_read: ::c_long = 63;
+pub const SYS_write: ::c_long = 64;
+pub const SYS_readv: ::c_long = 65;
+pub const SYS_writev: ::c_long = 66;
+pub const SYS_pread64: ::c_long = 67;
+pub const SYS_pwrite64: ::c_long = 68;
+pub const SYS_preadv: ::c_long = 69;
+pub const SYS_pwritev: ::c_long = 70;
+pub const SYS_pselect6: ::c_long = 72;
+pub const SYS_ppoll: ::c_long = 73;
+pub const SYS_signalfd4: ::c_long = 74;
+pub const SYS_vmsplice: ::c_long = 75;
+pub const SYS_splice: ::c_long = 76;
+pub const SYS_tee: ::c_long = 77;
+pub const SYS_readlinkat: ::c_long = 78;
+pub const SYS_sync: ::c_long = 81;
+pub const SYS_fsync: ::c_long = 82;
+pub const SYS_fdatasync: ::c_long = 83;
+pub const SYS_sync_file_range: ::c_long = 84;
+pub const SYS_timerfd_create: ::c_long = 85;
+pub const SYS_timerfd_settime: ::c_long = 86;
+pub const SYS_timerfd_gettime: ::c_long = 87;
+pub const SYS_utimensat: ::c_long = 88;
+pub const SYS_acct: ::c_long = 89;
+pub const SYS_capget: ::c_long = 90;
+pub const SYS_capset: ::c_long = 91;
+pub const SYS_personality: ::c_long = 92;
+pub const SYS_exit: ::c_long = 93;
+pub const SYS_exit_group: ::c_long = 94;
+pub const SYS_waitid: ::c_long = 95;
+pub const SYS_set_tid_address: ::c_long = 96;
+pub const SYS_unshare: ::c_long = 97;
+pub const SYS_futex: ::c_long = 98;
+pub const SYS_set_robust_list: ::c_long = 99;
+pub const SYS_get_robust_list: ::c_long = 100;
+pub const SYS_nanosleep: ::c_long = 101;
+pub const SYS_getitimer: ::c_long = 102;
+pub const SYS_setitimer: ::c_long = 103;
+pub const SYS_kexec_load: ::c_long = 104;
+pub const SYS_init_module: ::c_long = 105;
+pub const SYS_delete_module: ::c_long = 106;
+pub const SYS_timer_create: ::c_long = 107;
+pub const SYS_timer_gettime: ::c_long = 108;
+pub const SYS_timer_getoverrun: ::c_long = 109;
+pub const SYS_timer_settime: ::c_long = 110;
+pub const SYS_timer_delete: ::c_long = 111;
+pub const SYS_clock_settime: ::c_long = 112;
+pub const SYS_clock_gettime: ::c_long = 113;
+pub const SYS_clock_getres: ::c_long = 114;
+pub const SYS_clock_nanosleep: ::c_long = 115;
+pub const SYS_syslog: ::c_long = 116;
+pub const SYS_ptrace: ::c_long = 117;
+pub const SYS_sched_setparam: ::c_long = 118;
+pub const SYS_sched_setscheduler: ::c_long = 119;
+pub const SYS_sched_getscheduler: ::c_long = 120;
+pub const SYS_sched_getparam: ::c_long = 121;
+pub const SYS_sched_setaffinity: ::c_long = 122;
+pub const SYS_sched_getaffinity: ::c_long = 123;
+pub const SYS_sched_yield: ::c_long = 124;
+pub const SYS_sched_get_priority_max: ::c_long = 125;
+pub const SYS_sched_get_priority_min: ::c_long = 126;
+pub const SYS_sched_rr_get_interval: ::c_long = 127;
+pub const SYS_restart_syscall: ::c_long = 128;
+pub const SYS_kill: ::c_long = 129;
+pub const SYS_tkill: ::c_long = 130;
+pub const SYS_tgkill: ::c_long = 131;
+pub const SYS_sigaltstack: ::c_long = 132;
+pub const SYS_rt_sigsuspend: ::c_long = 133;
+pub const SYS_rt_sigaction: ::c_long = 134;
+pub const SYS_rt_sigprocmask: ::c_long = 135;
+pub const SYS_rt_sigpending: ::c_long = 136;
+pub const SYS_rt_sigtimedwait: ::c_long = 137;
+pub const SYS_rt_sigqueueinfo: ::c_long = 138;
+pub const SYS_rt_sigreturn: ::c_long = 139;
+pub const SYS_setpriority: ::c_long = 140;
+pub const SYS_getpriority: ::c_long = 141;
+pub const SYS_reboot: ::c_long = 142;
+pub const SYS_setregid: ::c_long = 143;
+pub const SYS_setgid: ::c_long = 144;
+pub const SYS_setreuid: ::c_long = 145;
+pub const SYS_setuid: ::c_long = 146;
+pub const SYS_setresuid: ::c_long = 147;
+pub const SYS_getresuid: ::c_long = 148;
+pub const SYS_setresgid: ::c_long = 149;
+pub const SYS_getresgid: ::c_long = 150;
+pub const SYS_setfsuid: ::c_long = 151;
+pub const SYS_setfsgid: ::c_long = 152;
+pub const SYS_times: ::c_long = 153;
+pub const SYS_setpgid: ::c_long = 154;
+pub const SYS_getpgid: ::c_long = 155;
+pub const SYS_getsid: ::c_long = 156;
+pub const SYS_setsid: ::c_long = 157;
+pub const SYS_getgroups: ::c_long = 158;
+pub const SYS_setgroups: ::c_long = 159;
+pub const SYS_uname: ::c_long = 160;
+pub const SYS_sethostname: ::c_long = 161;
+pub const SYS_setdomainname: ::c_long = 162;
+pub const SYS_getrlimit: ::c_long = 163;
+pub const SYS_setrlimit: ::c_long = 164;
+pub const SYS_getrusage: ::c_long = 165;
+pub const SYS_umask: ::c_long = 166;
+pub const SYS_prctl: ::c_long = 167;
+pub const SYS_getcpu: ::c_long = 168;
+pub const SYS_gettimeofday: ::c_long = 169;
+pub const SYS_settimeofday: ::c_long = 170;
+pub const SYS_adjtimex: ::c_long = 171;
+pub const SYS_getpid: ::c_long = 172;
+pub const SYS_getppid: ::c_long = 173;
+pub const SYS_getuid: ::c_long = 174;
+pub const SYS_geteuid: ::c_long = 175;
+pub const SYS_getgid: ::c_long = 176;
+pub const SYS_getegid: ::c_long = 177;
+pub const SYS_gettid: ::c_long = 178;
+pub const SYS_sysinfo: ::c_long = 179;
+pub const SYS_mq_open: ::c_long = 180;
+pub const SYS_mq_unlink: ::c_long = 181;
+pub const SYS_mq_timedsend: ::c_long = 182;
+pub const SYS_mq_timedreceive: ::c_long = 183;
+pub const SYS_mq_notify: ::c_long = 184;
+pub const SYS_mq_getsetattr: ::c_long = 185;
+pub const SYS_msgget: ::c_long = 186;
+pub const SYS_msgctl: ::c_long = 187;
+pub const SYS_msgrcv: ::c_long = 188;
+pub const SYS_msgsnd: ::c_long = 189;
+pub const SYS_semget: ::c_long = 190;
+pub const SYS_semctl: ::c_long = 191;
+pub const SYS_semtimedop: ::c_long = 192;
+pub const SYS_semop: ::c_long = 193;
+pub const SYS_shmget: ::c_long = 194;
+pub const SYS_shmctl: ::c_long = 195;
+pub const SYS_shmat: ::c_long = 196;
+pub const SYS_shmdt: ::c_long = 197;
+pub const SYS_socket: ::c_long = 198;
+pub const SYS_socketpair: ::c_long = 199;
+pub const SYS_bind: ::c_long = 200;
+pub const SYS_listen: ::c_long = 201;
+pub const SYS_accept: ::c_long = 202;
+pub const SYS_connect: ::c_long = 203;
+pub const SYS_getsockname: ::c_long = 204;
+pub const SYS_getpeername: ::c_long = 205;
+pub const SYS_sendto: ::c_long = 206;
+pub const SYS_recvfrom: ::c_long = 207;
+pub const SYS_setsockopt: ::c_long = 208;
+pub const SYS_getsockopt: ::c_long = 209;
+pub const SYS_shutdown: ::c_long = 210;
+pub const SYS_sendmsg: ::c_long = 211;
+pub const SYS_recvmsg: ::c_long = 212;
+pub const SYS_readahead: ::c_long = 213;
+pub const SYS_brk: ::c_long = 214;
+pub const SYS_munmap: ::c_long = 215;
+pub const SYS_mremap: ::c_long = 216;
+pub const SYS_add_key: ::c_long = 217;
+pub const SYS_request_key: ::c_long = 218;
+pub const SYS_keyctl: ::c_long = 219;
+pub const SYS_clone: ::c_long = 220;
+pub const SYS_execve: ::c_long = 221;
+pub const SYS_swapon: ::c_long = 224;
+pub const SYS_swapoff: ::c_long = 225;
+pub const SYS_mprotect: ::c_long = 226;
+pub const SYS_msync: ::c_long = 227;
+pub const SYS_mlock: ::c_long = 228;
+pub const SYS_munlock: ::c_long = 229;
+pub const SYS_mlockall: ::c_long = 230;
+pub const SYS_munlockall: ::c_long = 231;
+pub const SYS_mincore: ::c_long = 232;
+pub const SYS_madvise: ::c_long = 233;
+pub const SYS_remap_file_pages: ::c_long = 234;
+pub const SYS_mbind: ::c_long = 235;
+pub const SYS_get_mempolicy: ::c_long = 236;
+pub const SYS_set_mempolicy: ::c_long = 237;
+pub const SYS_migrate_pages: ::c_long = 238;
+pub const SYS_move_pages: ::c_long = 239;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 240;
+pub const SYS_perf_event_open: ::c_long = 241;
+pub const SYS_accept4: ::c_long = 242;
+pub const SYS_recvmmsg: ::c_long = 243;
+pub const SYS_wait4: ::c_long = 260;
+pub const SYS_prlimit64: ::c_long = 261;
+pub const SYS_fanotify_init: ::c_long = 262;
+pub const SYS_fanotify_mark: ::c_long = 263;
+pub const SYS_name_to_handle_at: ::c_long = 264;
+pub const SYS_open_by_handle_at: ::c_long = 265;
+pub const SYS_clock_adjtime: ::c_long = 266;
+pub const SYS_syncfs: ::c_long = 267;
+pub const SYS_setns: ::c_long = 268;
+pub const SYS_sendmmsg: ::c_long = 269;
+pub const SYS_process_vm_readv: ::c_long = 270;
+pub const SYS_process_vm_writev: ::c_long = 271;
+pub const SYS_kcmp: ::c_long = 272;
+pub const SYS_finit_module: ::c_long = 273;
+pub const SYS_sched_setattr: ::c_long = 274;
+pub const SYS_sched_getattr: ::c_long = 275;
+pub const SYS_renameat2: ::c_long = 276;
+pub const SYS_seccomp: ::c_long = 277;
+pub const SYS_getrandom: ::c_long = 278;
+pub const SYS_memfd_create: ::c_long = 279;
+pub const SYS_bpf: ::c_long = 280;
+pub const SYS_execveat: ::c_long = 281;
+pub const SYS_userfaultfd: ::c_long = 282;
+pub const SYS_membarrier: ::c_long = 283;
+pub const SYS_mlock2: ::c_long = 284;
+pub const SYS_copy_file_range: ::c_long = 285;
+pub const SYS_preadv2: ::c_long = 286;
+pub const SYS_pwritev2: ::c_long = 287;
+pub const SYS_pkey_mprotect: ::c_long = 288;
+pub const SYS_pkey_alloc: ::c_long = 289;
+pub const SYS_pkey_free: ::c_long = 290;
diff --git a/src/unix/notbsd/linux/musl/b64/mod.rs b/src/unix/notbsd/linux/musl/b64/mod.rs
index 9a1243a..70baf82 100644
--- a/src/unix/notbsd/linux/musl/b64/mod.rs
+++ b/src/unix/notbsd/linux/musl/b64/mod.rs
@@ -118,6 +118,17 @@
pub _pad: [::c_int; 29],
_align: [usize; 0],
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
diff --git a/src/unix/notbsd/linux/other/b32/arm.rs b/src/unix/notbsd/linux/other/b32/arm.rs
index d72af86..a70af43 100644
--- a/src/unix/notbsd/linux/other/b32/arm.rs
+++ b/src/unix/notbsd/linux/other/b32/arm.rs
@@ -101,6 +101,17 @@
__glibc_reserved4: ::c_ulong,
__glibc_reserved5: ::c_ulong,
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const O_DIRECT: ::c_int = 0x10000;
@@ -203,6 +214,7 @@
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;
@@ -246,355 +258,355 @@
pub const FIONREAD: ::c_ulong = 0x541B;
// Syscall table
-pub const SYS_restart_syscall: ::c_ulong = 0;
-pub const SYS_exit: ::c_ulong = 1;
-pub const SYS_fork: ::c_ulong = 2;
-pub const SYS_read: ::c_ulong = 3;
-pub const SYS_write: ::c_ulong = 4;
-pub const SYS_open: ::c_ulong = 5;
-pub const SYS_close: ::c_ulong = 6;
-pub const SYS_creat: ::c_ulong = 8;
-pub const SYS_link: ::c_ulong = 9;
-pub const SYS_unlink: ::c_ulong = 10;
-pub const SYS_execve: ::c_ulong = 11;
-pub const SYS_chdir: ::c_ulong = 12;
-pub const SYS_mknod: ::c_ulong = 14;
-pub const SYS_chmod: ::c_ulong = 15;
-pub const SYS_lchown: ::c_ulong = 16;
-pub const SYS_lseek: ::c_ulong = 19;
-pub const SYS_getpid: ::c_ulong = 20;
-pub const SYS_mount: ::c_ulong = 21;
-pub const SYS_setuid: ::c_ulong = 23;
-pub const SYS_getuid: ::c_ulong = 24;
-pub const SYS_ptrace: ::c_ulong = 26;
-pub const SYS_pause: ::c_ulong = 29;
-pub const SYS_access: ::c_ulong = 33;
-pub const SYS_nice: ::c_ulong = 34;
-pub const SYS_sync: ::c_ulong = 36;
-pub const SYS_kill: ::c_ulong = 37;
-pub const SYS_rename: ::c_ulong = 38;
-pub const SYS_mkdir: ::c_ulong = 39;
-pub const SYS_rmdir: ::c_ulong = 40;
-pub const SYS_dup: ::c_ulong = 41;
-pub const SYS_pipe: ::c_ulong = 42;
-pub const SYS_times: ::c_ulong = 43;
-pub const SYS_brk: ::c_ulong = 45;
-pub const SYS_setgid: ::c_ulong = 46;
-pub const SYS_getgid: ::c_ulong = 47;
-pub const SYS_geteuid: ::c_ulong = 49;
-pub const SYS_getegid: ::c_ulong = 50;
-pub const SYS_acct: ::c_ulong = 51;
-pub const SYS_umount2: ::c_ulong = 52;
-pub const SYS_ioctl: ::c_ulong = 54;
-pub const SYS_fcntl: ::c_ulong = 55;
-pub const SYS_setpgid: ::c_ulong = 57;
-pub const SYS_umask: ::c_ulong = 60;
-pub const SYS_chroot: ::c_ulong = 61;
-pub const SYS_ustat: ::c_ulong = 62;
-pub const SYS_dup2: ::c_ulong = 63;
-pub const SYS_getppid: ::c_ulong = 64;
-pub const SYS_getpgrp: ::c_ulong = 65;
-pub const SYS_setsid: ::c_ulong = 66;
-pub const SYS_sigaction: ::c_ulong = 67;
-pub const SYS_setreuid: ::c_ulong = 70;
-pub const SYS_setregid: ::c_ulong = 71;
-pub const SYS_sigsuspend: ::c_ulong = 72;
-pub const SYS_sigpending: ::c_ulong = 73;
-pub const SYS_sethostname: ::c_ulong = 74;
-pub const SYS_setrlimit: ::c_ulong = 75;
-pub const SYS_getrusage: ::c_ulong = 77;
-pub const SYS_gettimeofday: ::c_ulong = 78;
-pub const SYS_settimeofday: ::c_ulong = 79;
-pub const SYS_getgroups: ::c_ulong = 80;
-pub const SYS_setgroups: ::c_ulong = 81;
-pub const SYS_symlink: ::c_ulong = 83;
-pub const SYS_readlink: ::c_ulong = 85;
-pub const SYS_uselib: ::c_ulong = 86;
-pub const SYS_swapon: ::c_ulong = 87;
-pub const SYS_reboot: ::c_ulong = 88;
-pub const SYS_munmap: ::c_ulong = 91;
-pub const SYS_truncate: ::c_ulong = 92;
-pub const SYS_ftruncate: ::c_ulong = 93;
-pub const SYS_fchmod: ::c_ulong = 94;
-pub const SYS_fchown: ::c_ulong = 95;
-pub const SYS_getpriority: ::c_ulong = 96;
-pub const SYS_setpriority: ::c_ulong = 97;
-pub const SYS_statfs: ::c_ulong = 99;
-pub const SYS_fstatfs: ::c_ulong = 100;
-pub const SYS_syslog: ::c_ulong = 103;
-pub const SYS_setitimer: ::c_ulong = 104;
-pub const SYS_getitimer: ::c_ulong = 105;
-pub const SYS_stat: ::c_ulong = 106;
-pub const SYS_lstat: ::c_ulong = 107;
-pub const SYS_fstat: ::c_ulong = 108;
-pub const SYS_vhangup: ::c_ulong = 111;
-pub const SYS_wait4: ::c_ulong = 114;
-pub const SYS_swapoff: ::c_ulong = 115;
-pub const SYS_sysinfo: ::c_ulong = 116;
-pub const SYS_fsync: ::c_ulong = 118;
-pub const SYS_sigreturn: ::c_ulong = 119;
-pub const SYS_clone: ::c_ulong = 120;
-pub const SYS_setdomainname: ::c_ulong = 121;
-pub const SYS_uname: ::c_ulong = 122;
-pub const SYS_adjtimex: ::c_ulong = 124;
-pub const SYS_mprotect: ::c_ulong = 125;
-pub const SYS_sigprocmask: ::c_ulong = 126;
-pub const SYS_init_module: ::c_ulong = 128;
-pub const SYS_delete_module: ::c_ulong = 129;
-pub const SYS_quotactl: ::c_ulong = 131;
-pub const SYS_getpgid: ::c_ulong = 132;
-pub const SYS_fchdir: ::c_ulong = 133;
-pub const SYS_bdflush: ::c_ulong = 134;
-pub const SYS_sysfs: ::c_ulong = 135;
-pub const SYS_personality: ::c_ulong = 136;
-pub const SYS_setfsuid: ::c_ulong = 138;
-pub const SYS_setfsgid: ::c_ulong = 139;
-pub const SYS__llseek: ::c_ulong = 140;
-pub const SYS_getdents: ::c_ulong = 141;
-pub const SYS__newselect: ::c_ulong = 142;
-pub const SYS_flock: ::c_ulong = 143;
-pub const SYS_msync: ::c_ulong = 144;
-pub const SYS_readv: ::c_ulong = 145;
-pub const SYS_writev: ::c_ulong = 146;
-pub const SYS_getsid: ::c_ulong = 147;
-pub const SYS_fdatasync: ::c_ulong = 148;
-pub const SYS__sysctl: ::c_ulong = 149;
-pub const SYS_mlock: ::c_ulong = 150;
-pub const SYS_munlock: ::c_ulong = 151;
-pub const SYS_mlockall: ::c_ulong = 152;
-pub const SYS_munlockall: ::c_ulong = 153;
-pub const SYS_sched_setparam: ::c_ulong = 154;
-pub const SYS_sched_getparam: ::c_ulong = 155;
-pub const SYS_sched_setscheduler: ::c_ulong = 156;
-pub const SYS_sched_getscheduler: ::c_ulong = 157;
-pub const SYS_sched_yield: ::c_ulong = 158;
-pub const SYS_sched_get_priority_max: ::c_ulong = 159;
-pub const SYS_sched_get_priority_min: ::c_ulong = 160;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 161;
-pub const SYS_nanosleep: ::c_ulong = 162;
-pub const SYS_mremap: ::c_ulong = 163;
-pub const SYS_setresuid: ::c_ulong = 164;
-pub const SYS_getresuid: ::c_ulong = 165;
-pub const SYS_poll: ::c_ulong = 168;
-pub const SYS_nfsservctl: ::c_ulong = 169;
-pub const SYS_setresgid: ::c_ulong = 170;
-pub const SYS_getresgid: ::c_ulong = 171;
-pub const SYS_prctl: ::c_ulong = 172;
-pub const SYS_rt_sigreturn: ::c_ulong = 173;
-pub const SYS_rt_sigaction: ::c_ulong = 174;
-pub const SYS_rt_sigprocmask: ::c_ulong = 175;
-pub const SYS_rt_sigpending: ::c_ulong = 176;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 177;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 178;
-pub const SYS_rt_sigsuspend: ::c_ulong = 179;
-pub const SYS_pread64: ::c_ulong = 180;
-pub const SYS_pwrite64: ::c_ulong = 181;
-pub const SYS_chown: ::c_ulong = 182;
-pub const SYS_getcwd: ::c_ulong = 183;
-pub const SYS_capget: ::c_ulong = 184;
-pub const SYS_capset: ::c_ulong = 185;
-pub const SYS_sigaltstack: ::c_ulong = 186;
-pub const SYS_sendfile: ::c_ulong = 187;
-pub const SYS_vfork: ::c_ulong = 190;
-pub const SYS_ugetrlimit: ::c_ulong = 191;
-pub const SYS_mmap2: ::c_ulong = 192;
-pub const SYS_truncate64: ::c_ulong = 193;
-pub const SYS_ftruncate64: ::c_ulong = 194;
-pub const SYS_stat64: ::c_ulong = 195;
-pub const SYS_lstat64: ::c_ulong = 196;
-pub const SYS_fstat64: ::c_ulong = 197;
-pub const SYS_lchown32: ::c_ulong = 198;
-pub const SYS_getuid32: ::c_ulong = 199;
-pub const SYS_getgid32: ::c_ulong = 200;
-pub const SYS_geteuid32: ::c_ulong = 201;
-pub const SYS_getegid32: ::c_ulong = 202;
-pub const SYS_setreuid32: ::c_ulong = 203;
-pub const SYS_setregid32: ::c_ulong = 204;
-pub const SYS_getgroups32: ::c_ulong = 205;
-pub const SYS_setgroups32: ::c_ulong = 206;
-pub const SYS_fchown32: ::c_ulong = 207;
-pub const SYS_setresuid32: ::c_ulong = 208;
-pub const SYS_getresuid32: ::c_ulong = 209;
-pub const SYS_setresgid32: ::c_ulong = 210;
-pub const SYS_getresgid32: ::c_ulong = 211;
-pub const SYS_chown32: ::c_ulong = 212;
-pub const SYS_setuid32: ::c_ulong = 213;
-pub const SYS_setgid32: ::c_ulong = 214;
-pub const SYS_setfsuid32: ::c_ulong = 215;
-pub const SYS_setfsgid32: ::c_ulong = 216;
-pub const SYS_getdents64: ::c_ulong = 217;
-pub const SYS_pivot_root: ::c_ulong = 218;
-pub const SYS_mincore: ::c_ulong = 219;
-pub const SYS_madvise: ::c_ulong = 220;
-pub const SYS_fcntl64: ::c_ulong = 221;
-pub const SYS_gettid: ::c_ulong = 224;
-pub const SYS_readahead: ::c_ulong = 225;
-pub const SYS_setxattr: ::c_ulong = 226;
-pub const SYS_lsetxattr: ::c_ulong = 227;
-pub const SYS_fsetxattr: ::c_ulong = 228;
-pub const SYS_getxattr: ::c_ulong = 229;
-pub const SYS_lgetxattr: ::c_ulong = 230;
-pub const SYS_fgetxattr: ::c_ulong = 231;
-pub const SYS_listxattr: ::c_ulong = 232;
-pub const SYS_llistxattr: ::c_ulong = 233;
-pub const SYS_flistxattr: ::c_ulong = 234;
-pub const SYS_removexattr: ::c_ulong = 235;
-pub const SYS_lremovexattr: ::c_ulong = 236;
-pub const SYS_fremovexattr: ::c_ulong = 237;
-pub const SYS_tkill: ::c_ulong = 238;
-pub const SYS_sendfile64: ::c_ulong = 239;
-pub const SYS_futex: ::c_ulong = 240;
-pub const SYS_sched_setaffinity: ::c_ulong = 241;
-pub const SYS_sched_getaffinity: ::c_ulong = 242;
-pub const SYS_io_setup: ::c_ulong = 243;
-pub const SYS_io_destroy: ::c_ulong = 244;
-pub const SYS_io_getevents: ::c_ulong = 245;
-pub const SYS_io_submit: ::c_ulong = 246;
-pub const SYS_io_cancel: ::c_ulong = 247;
-pub const SYS_exit_group: ::c_ulong = 248;
-pub const SYS_lookup_dcookie: ::c_ulong = 249;
-pub const SYS_epoll_create: ::c_ulong = 250;
-pub const SYS_epoll_ctl: ::c_ulong = 251;
-pub const SYS_epoll_wait: ::c_ulong = 252;
-pub const SYS_remap_file_pages: ::c_ulong = 253;
-pub const SYS_set_tid_address: ::c_ulong = 256;
-pub const SYS_timer_create: ::c_ulong = 257;
-pub const SYS_timer_settime: ::c_ulong = 258;
-pub const SYS_timer_gettime: ::c_ulong = 259;
-pub const SYS_timer_getoverrun: ::c_ulong = 260;
-pub const SYS_timer_delete: ::c_ulong = 261;
-pub const SYS_clock_settime: ::c_ulong = 262;
-pub const SYS_clock_gettime: ::c_ulong = 263;
-pub const SYS_clock_getres: ::c_ulong = 264;
-pub const SYS_clock_nanosleep: ::c_ulong = 265;
-pub const SYS_statfs64: ::c_ulong = 266;
-pub const SYS_fstatfs64: ::c_ulong = 267;
-pub const SYS_tgkill: ::c_ulong = 268;
-pub const SYS_utimes: ::c_ulong = 269;
-pub const SYS_arm_fadvise64_64: ::c_ulong = 270;
-pub const SYS_pciconfig_iobase: ::c_ulong = 271;
-pub const SYS_pciconfig_read: ::c_ulong = 272;
-pub const SYS_pciconfig_write: ::c_ulong = 273;
-pub const SYS_mq_open: ::c_ulong = 274;
-pub const SYS_mq_unlink: ::c_ulong = 275;
-pub const SYS_mq_timedsend: ::c_ulong = 276;
-pub const SYS_mq_timedreceive: ::c_ulong = 277;
-pub const SYS_mq_notify: ::c_ulong = 278;
-pub const SYS_mq_getsetattr: ::c_ulong = 279;
-pub const SYS_waitid: ::c_ulong = 280;
-pub const SYS_socket: ::c_ulong = 281;
-pub const SYS_bind: ::c_ulong = 282;
-pub const SYS_connect: ::c_ulong = 283;
-pub const SYS_listen: ::c_ulong = 284;
-pub const SYS_accept: ::c_ulong = 285;
-pub const SYS_getsockname: ::c_ulong = 286;
-pub const SYS_getpeername: ::c_ulong = 287;
-pub const SYS_socketpair: ::c_ulong = 288;
-pub const SYS_send: ::c_ulong = 289;
-pub const SYS_sendto: ::c_ulong = 290;
-pub const SYS_recv: ::c_ulong = 291;
-pub const SYS_recvfrom: ::c_ulong = 292;
-pub const SYS_shutdown: ::c_ulong = 293;
-pub const SYS_setsockopt: ::c_ulong = 294;
-pub const SYS_getsockopt: ::c_ulong = 295;
-pub const SYS_sendmsg: ::c_ulong = 296;
-pub const SYS_recvmsg: ::c_ulong = 297;
-pub const SYS_semop: ::c_ulong = 298;
-pub const SYS_semget: ::c_ulong = 299;
-pub const SYS_semctl: ::c_ulong = 300;
-pub const SYS_msgsnd: ::c_ulong = 301;
-pub const SYS_msgrcv: ::c_ulong = 302;
-pub const SYS_msgget: ::c_ulong = 303;
-pub const SYS_msgctl: ::c_ulong = 304;
-pub const SYS_shmat: ::c_ulong = 305;
-pub const SYS_shmdt: ::c_ulong = 306;
-pub const SYS_shmget: ::c_ulong = 307;
-pub const SYS_shmctl: ::c_ulong = 308;
-pub const SYS_add_key: ::c_ulong = 309;
-pub const SYS_request_key: ::c_ulong = 310;
-pub const SYS_keyctl: ::c_ulong = 311;
-pub const SYS_semtimedop: ::c_ulong = 312;
-pub const SYS_vserver: ::c_ulong = 313;
-pub const SYS_ioprio_set: ::c_ulong = 314;
-pub const SYS_ioprio_get: ::c_ulong = 315;
-pub const SYS_inotify_init: ::c_ulong = 316;
-pub const SYS_inotify_add_watch: ::c_ulong = 317;
-pub const SYS_inotify_rm_watch: ::c_ulong = 318;
-pub const SYS_mbind: ::c_ulong = 319;
-pub const SYS_get_mempolicy: ::c_ulong = 320;
-pub const SYS_set_mempolicy: ::c_ulong = 321;
-pub const SYS_openat: ::c_ulong = 322;
-pub const SYS_mkdirat: ::c_ulong = 323;
-pub const SYS_mknodat: ::c_ulong = 324;
-pub const SYS_fchownat: ::c_ulong = 325;
-pub const SYS_futimesat: ::c_ulong = 326;
-pub const SYS_fstatat64: ::c_ulong = 327;
-pub const SYS_unlinkat: ::c_ulong = 328;
-pub const SYS_renameat: ::c_ulong = 329;
-pub const SYS_linkat: ::c_ulong = 330;
-pub const SYS_symlinkat: ::c_ulong = 331;
-pub const SYS_readlinkat: ::c_ulong = 332;
-pub const SYS_fchmodat: ::c_ulong = 333;
-pub const SYS_faccessat: ::c_ulong = 334;
-pub const SYS_pselect6: ::c_ulong = 335;
-pub const SYS_ppoll: ::c_ulong = 336;
-pub const SYS_unshare: ::c_ulong = 337;
-pub const SYS_set_robust_list: ::c_ulong = 338;
-pub const SYS_get_robust_list: ::c_ulong = 339;
-pub const SYS_splice: ::c_ulong = 340;
-pub const SYS_arm_sync_file_range: ::c_ulong = 341;
-pub const SYS_tee: ::c_ulong = 342;
-pub const SYS_vmsplice: ::c_ulong = 343;
-pub const SYS_move_pages: ::c_ulong = 344;
-pub const SYS_getcpu: ::c_ulong = 345;
-pub const SYS_epoll_pwait: ::c_ulong = 346;
-pub const SYS_kexec_load: ::c_ulong = 347;
-pub const SYS_utimensat: ::c_ulong = 348;
-pub const SYS_signalfd: ::c_ulong = 349;
-pub const SYS_timerfd_create: ::c_ulong = 350;
-pub const SYS_eventfd: ::c_ulong = 351;
-pub const SYS_fallocate: ::c_ulong = 352;
-pub const SYS_timerfd_settime: ::c_ulong = 353;
-pub const SYS_timerfd_gettime: ::c_ulong = 354;
-pub const SYS_signalfd4: ::c_ulong = 355;
-pub const SYS_eventfd2: ::c_ulong = 356;
-pub const SYS_epoll_create1: ::c_ulong = 357;
-pub const SYS_dup3: ::c_ulong = 358;
-pub const SYS_pipe2: ::c_ulong = 359;
-pub const SYS_inotify_init1: ::c_ulong = 360;
-pub const SYS_preadv: ::c_ulong = 361;
-pub const SYS_pwritev: ::c_ulong = 362;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 363;
-pub const SYS_perf_event_open: ::c_ulong = 364;
-pub const SYS_recvmmsg: ::c_ulong = 365;
-pub const SYS_accept4: ::c_ulong = 366;
-pub const SYS_fanotify_init: ::c_ulong = 367;
-pub const SYS_fanotify_mark: ::c_ulong = 368;
-pub const SYS_prlimit64: ::c_ulong = 369;
-pub const SYS_name_to_handle_at: ::c_ulong = 370;
-pub const SYS_open_by_handle_at: ::c_ulong = 371;
-pub const SYS_clock_adjtime: ::c_ulong = 372;
-pub const SYS_syncfs: ::c_ulong = 373;
-pub const SYS_sendmmsg: ::c_ulong = 374;
-pub const SYS_setns: ::c_ulong = 375;
-pub const SYS_process_vm_readv: ::c_ulong = 376;
-pub const SYS_process_vm_writev: ::c_ulong = 377;
-pub const SYS_kcmp: ::c_ulong = 378;
-pub const SYS_finit_module: ::c_ulong = 379;
-pub const SYS_sched_setattr: ::c_ulong = 380;
-pub const SYS_sched_getattr: ::c_ulong = 381;
-pub const SYS_renameat2: ::c_ulong = 382;
-pub const SYS_seccomp: ::c_ulong = 383;
-pub const SYS_getrandom: ::c_ulong = 384;
-pub const SYS_memfd_create: ::c_ulong = 385;
-pub const SYS_bpf: ::c_ulong = 386;
-pub const SYS_execveat: ::c_ulong = 387;
-pub const SYS_userfaultfd: ::c_ulong = 388;
-pub const SYS_membarrier: ::c_ulong = 389;
-pub const SYS_mlock2: ::c_ulong = 390;
-pub const SYS_copy_file_range: ::c_ulong = 391;
-pub const SYS_preadv2: ::c_ulong = 392;
-pub const SYS_pwritev2: ::c_ulong = 393;
-pub const SYS_pkey_mprotect: ::c_ulong = 394;
-pub const SYS_pkey_alloc: ::c_ulong = 395;
-pub const SYS_pkey_free: ::c_ulong = 396;
+pub const SYS_restart_syscall: ::c_long = 0;
+pub const SYS_exit: ::c_long = 1;
+pub const SYS_fork: ::c_long = 2;
+pub const SYS_read: ::c_long = 3;
+pub const SYS_write: ::c_long = 4;
+pub const SYS_open: ::c_long = 5;
+pub const SYS_close: ::c_long = 6;
+pub const SYS_creat: ::c_long = 8;
+pub const SYS_link: ::c_long = 9;
+pub const SYS_unlink: ::c_long = 10;
+pub const SYS_execve: ::c_long = 11;
+pub const SYS_chdir: ::c_long = 12;
+pub const SYS_mknod: ::c_long = 14;
+pub const SYS_chmod: ::c_long = 15;
+pub const SYS_lchown: ::c_long = 16;
+pub const SYS_lseek: ::c_long = 19;
+pub const SYS_getpid: ::c_long = 20;
+pub const SYS_mount: ::c_long = 21;
+pub const SYS_setuid: ::c_long = 23;
+pub const SYS_getuid: ::c_long = 24;
+pub const SYS_ptrace: ::c_long = 26;
+pub const SYS_pause: ::c_long = 29;
+pub const SYS_access: ::c_long = 33;
+pub const SYS_nice: ::c_long = 34;
+pub const SYS_sync: ::c_long = 36;
+pub const SYS_kill: ::c_long = 37;
+pub const SYS_rename: ::c_long = 38;
+pub const SYS_mkdir: ::c_long = 39;
+pub const SYS_rmdir: ::c_long = 40;
+pub const SYS_dup: ::c_long = 41;
+pub const SYS_pipe: ::c_long = 42;
+pub const SYS_times: ::c_long = 43;
+pub const SYS_brk: ::c_long = 45;
+pub const SYS_setgid: ::c_long = 46;
+pub const SYS_getgid: ::c_long = 47;
+pub const SYS_geteuid: ::c_long = 49;
+pub const SYS_getegid: ::c_long = 50;
+pub const SYS_acct: ::c_long = 51;
+pub const SYS_umount2: ::c_long = 52;
+pub const SYS_ioctl: ::c_long = 54;
+pub const SYS_fcntl: ::c_long = 55;
+pub const SYS_setpgid: ::c_long = 57;
+pub const SYS_umask: ::c_long = 60;
+pub const SYS_chroot: ::c_long = 61;
+pub const SYS_ustat: ::c_long = 62;
+pub const SYS_dup2: ::c_long = 63;
+pub const SYS_getppid: ::c_long = 64;
+pub const SYS_getpgrp: ::c_long = 65;
+pub const SYS_setsid: ::c_long = 66;
+pub const SYS_sigaction: ::c_long = 67;
+pub const SYS_setreuid: ::c_long = 70;
+pub const SYS_setregid: ::c_long = 71;
+pub const SYS_sigsuspend: ::c_long = 72;
+pub const SYS_sigpending: ::c_long = 73;
+pub const SYS_sethostname: ::c_long = 74;
+pub const SYS_setrlimit: ::c_long = 75;
+pub const SYS_getrusage: ::c_long = 77;
+pub const SYS_gettimeofday: ::c_long = 78;
+pub const SYS_settimeofday: ::c_long = 79;
+pub const SYS_getgroups: ::c_long = 80;
+pub const SYS_setgroups: ::c_long = 81;
+pub const SYS_symlink: ::c_long = 83;
+pub const SYS_readlink: ::c_long = 85;
+pub const SYS_uselib: ::c_long = 86;
+pub const SYS_swapon: ::c_long = 87;
+pub const SYS_reboot: ::c_long = 88;
+pub const SYS_munmap: ::c_long = 91;
+pub const SYS_truncate: ::c_long = 92;
+pub const SYS_ftruncate: ::c_long = 93;
+pub const SYS_fchmod: ::c_long = 94;
+pub const SYS_fchown: ::c_long = 95;
+pub const SYS_getpriority: ::c_long = 96;
+pub const SYS_setpriority: ::c_long = 97;
+pub const SYS_statfs: ::c_long = 99;
+pub const SYS_fstatfs: ::c_long = 100;
+pub const SYS_syslog: ::c_long = 103;
+pub const SYS_setitimer: ::c_long = 104;
+pub const SYS_getitimer: ::c_long = 105;
+pub const SYS_stat: ::c_long = 106;
+pub const SYS_lstat: ::c_long = 107;
+pub const SYS_fstat: ::c_long = 108;
+pub const SYS_vhangup: ::c_long = 111;
+pub const SYS_wait4: ::c_long = 114;
+pub const SYS_swapoff: ::c_long = 115;
+pub const SYS_sysinfo: ::c_long = 116;
+pub const SYS_fsync: ::c_long = 118;
+pub const SYS_sigreturn: ::c_long = 119;
+pub const SYS_clone: ::c_long = 120;
+pub const SYS_setdomainname: ::c_long = 121;
+pub const SYS_uname: ::c_long = 122;
+pub const SYS_adjtimex: ::c_long = 124;
+pub const SYS_mprotect: ::c_long = 125;
+pub const SYS_sigprocmask: ::c_long = 126;
+pub const SYS_init_module: ::c_long = 128;
+pub const SYS_delete_module: ::c_long = 129;
+pub const SYS_quotactl: ::c_long = 131;
+pub const SYS_getpgid: ::c_long = 132;
+pub const SYS_fchdir: ::c_long = 133;
+pub const SYS_bdflush: ::c_long = 134;
+pub const SYS_sysfs: ::c_long = 135;
+pub const SYS_personality: ::c_long = 136;
+pub const SYS_setfsuid: ::c_long = 138;
+pub const SYS_setfsgid: ::c_long = 139;
+pub const SYS__llseek: ::c_long = 140;
+pub const SYS_getdents: ::c_long = 141;
+pub const SYS__newselect: ::c_long = 142;
+pub const SYS_flock: ::c_long = 143;
+pub const SYS_msync: ::c_long = 144;
+pub const SYS_readv: ::c_long = 145;
+pub const SYS_writev: ::c_long = 146;
+pub const SYS_getsid: ::c_long = 147;
+pub const SYS_fdatasync: ::c_long = 148;
+pub const SYS__sysctl: ::c_long = 149;
+pub const SYS_mlock: ::c_long = 150;
+pub const SYS_munlock: ::c_long = 151;
+pub const SYS_mlockall: ::c_long = 152;
+pub const SYS_munlockall: ::c_long = 153;
+pub const SYS_sched_setparam: ::c_long = 154;
+pub const SYS_sched_getparam: ::c_long = 155;
+pub const SYS_sched_setscheduler: ::c_long = 156;
+pub const SYS_sched_getscheduler: ::c_long = 157;
+pub const SYS_sched_yield: ::c_long = 158;
+pub const SYS_sched_get_priority_max: ::c_long = 159;
+pub const SYS_sched_get_priority_min: ::c_long = 160;
+pub const SYS_sched_rr_get_interval: ::c_long = 161;
+pub const SYS_nanosleep: ::c_long = 162;
+pub const SYS_mremap: ::c_long = 163;
+pub const SYS_setresuid: ::c_long = 164;
+pub const SYS_getresuid: ::c_long = 165;
+pub const SYS_poll: ::c_long = 168;
+pub const SYS_nfsservctl: ::c_long = 169;
+pub const SYS_setresgid: ::c_long = 170;
+pub const SYS_getresgid: ::c_long = 171;
+pub const SYS_prctl: ::c_long = 172;
+pub const SYS_rt_sigreturn: ::c_long = 173;
+pub const SYS_rt_sigaction: ::c_long = 174;
+pub const SYS_rt_sigprocmask: ::c_long = 175;
+pub const SYS_rt_sigpending: ::c_long = 176;
+pub const SYS_rt_sigtimedwait: ::c_long = 177;
+pub const SYS_rt_sigqueueinfo: ::c_long = 178;
+pub const SYS_rt_sigsuspend: ::c_long = 179;
+pub const SYS_pread64: ::c_long = 180;
+pub const SYS_pwrite64: ::c_long = 181;
+pub const SYS_chown: ::c_long = 182;
+pub const SYS_getcwd: ::c_long = 183;
+pub const SYS_capget: ::c_long = 184;
+pub const SYS_capset: ::c_long = 185;
+pub const SYS_sigaltstack: ::c_long = 186;
+pub const SYS_sendfile: ::c_long = 187;
+pub const SYS_vfork: ::c_long = 190;
+pub const SYS_ugetrlimit: ::c_long = 191;
+pub const SYS_mmap2: ::c_long = 192;
+pub const SYS_truncate64: ::c_long = 193;
+pub const SYS_ftruncate64: ::c_long = 194;
+pub const SYS_stat64: ::c_long = 195;
+pub const SYS_lstat64: ::c_long = 196;
+pub const SYS_fstat64: ::c_long = 197;
+pub const SYS_lchown32: ::c_long = 198;
+pub const SYS_getuid32: ::c_long = 199;
+pub const SYS_getgid32: ::c_long = 200;
+pub const SYS_geteuid32: ::c_long = 201;
+pub const SYS_getegid32: ::c_long = 202;
+pub const SYS_setreuid32: ::c_long = 203;
+pub const SYS_setregid32: ::c_long = 204;
+pub const SYS_getgroups32: ::c_long = 205;
+pub const SYS_setgroups32: ::c_long = 206;
+pub const SYS_fchown32: ::c_long = 207;
+pub const SYS_setresuid32: ::c_long = 208;
+pub const SYS_getresuid32: ::c_long = 209;
+pub const SYS_setresgid32: ::c_long = 210;
+pub const SYS_getresgid32: ::c_long = 211;
+pub const SYS_chown32: ::c_long = 212;
+pub const SYS_setuid32: ::c_long = 213;
+pub const SYS_setgid32: ::c_long = 214;
+pub const SYS_setfsuid32: ::c_long = 215;
+pub const SYS_setfsgid32: ::c_long = 216;
+pub const SYS_getdents64: ::c_long = 217;
+pub const SYS_pivot_root: ::c_long = 218;
+pub const SYS_mincore: ::c_long = 219;
+pub const SYS_madvise: ::c_long = 220;
+pub const SYS_fcntl64: ::c_long = 221;
+pub const SYS_gettid: ::c_long = 224;
+pub const SYS_readahead: ::c_long = 225;
+pub const SYS_setxattr: ::c_long = 226;
+pub const SYS_lsetxattr: ::c_long = 227;
+pub const SYS_fsetxattr: ::c_long = 228;
+pub const SYS_getxattr: ::c_long = 229;
+pub const SYS_lgetxattr: ::c_long = 230;
+pub const SYS_fgetxattr: ::c_long = 231;
+pub const SYS_listxattr: ::c_long = 232;
+pub const SYS_llistxattr: ::c_long = 233;
+pub const SYS_flistxattr: ::c_long = 234;
+pub const SYS_removexattr: ::c_long = 235;
+pub const SYS_lremovexattr: ::c_long = 236;
+pub const SYS_fremovexattr: ::c_long = 237;
+pub const SYS_tkill: ::c_long = 238;
+pub const SYS_sendfile64: ::c_long = 239;
+pub const SYS_futex: ::c_long = 240;
+pub const SYS_sched_setaffinity: ::c_long = 241;
+pub const SYS_sched_getaffinity: ::c_long = 242;
+pub const SYS_io_setup: ::c_long = 243;
+pub const SYS_io_destroy: ::c_long = 244;
+pub const SYS_io_getevents: ::c_long = 245;
+pub const SYS_io_submit: ::c_long = 246;
+pub const SYS_io_cancel: ::c_long = 247;
+pub const SYS_exit_group: ::c_long = 248;
+pub const SYS_lookup_dcookie: ::c_long = 249;
+pub const SYS_epoll_create: ::c_long = 250;
+pub const SYS_epoll_ctl: ::c_long = 251;
+pub const SYS_epoll_wait: ::c_long = 252;
+pub const SYS_remap_file_pages: ::c_long = 253;
+pub const SYS_set_tid_address: ::c_long = 256;
+pub const SYS_timer_create: ::c_long = 257;
+pub const SYS_timer_settime: ::c_long = 258;
+pub const SYS_timer_gettime: ::c_long = 259;
+pub const SYS_timer_getoverrun: ::c_long = 260;
+pub const SYS_timer_delete: ::c_long = 261;
+pub const SYS_clock_settime: ::c_long = 262;
+pub const SYS_clock_gettime: ::c_long = 263;
+pub const SYS_clock_getres: ::c_long = 264;
+pub const SYS_clock_nanosleep: ::c_long = 265;
+pub const SYS_statfs64: ::c_long = 266;
+pub const SYS_fstatfs64: ::c_long = 267;
+pub const SYS_tgkill: ::c_long = 268;
+pub const SYS_utimes: ::c_long = 269;
+pub const SYS_arm_fadvise64_64: ::c_long = 270;
+pub const SYS_pciconfig_iobase: ::c_long = 271;
+pub const SYS_pciconfig_read: ::c_long = 272;
+pub const SYS_pciconfig_write: ::c_long = 273;
+pub const SYS_mq_open: ::c_long = 274;
+pub const SYS_mq_unlink: ::c_long = 275;
+pub const SYS_mq_timedsend: ::c_long = 276;
+pub const SYS_mq_timedreceive: ::c_long = 277;
+pub const SYS_mq_notify: ::c_long = 278;
+pub const SYS_mq_getsetattr: ::c_long = 279;
+pub const SYS_waitid: ::c_long = 280;
+pub const SYS_socket: ::c_long = 281;
+pub const SYS_bind: ::c_long = 282;
+pub const SYS_connect: ::c_long = 283;
+pub const SYS_listen: ::c_long = 284;
+pub const SYS_accept: ::c_long = 285;
+pub const SYS_getsockname: ::c_long = 286;
+pub const SYS_getpeername: ::c_long = 287;
+pub const SYS_socketpair: ::c_long = 288;
+pub const SYS_send: ::c_long = 289;
+pub const SYS_sendto: ::c_long = 290;
+pub const SYS_recv: ::c_long = 291;
+pub const SYS_recvfrom: ::c_long = 292;
+pub const SYS_shutdown: ::c_long = 293;
+pub const SYS_setsockopt: ::c_long = 294;
+pub const SYS_getsockopt: ::c_long = 295;
+pub const SYS_sendmsg: ::c_long = 296;
+pub const SYS_recvmsg: ::c_long = 297;
+pub const SYS_semop: ::c_long = 298;
+pub const SYS_semget: ::c_long = 299;
+pub const SYS_semctl: ::c_long = 300;
+pub const SYS_msgsnd: ::c_long = 301;
+pub const SYS_msgrcv: ::c_long = 302;
+pub const SYS_msgget: ::c_long = 303;
+pub const SYS_msgctl: ::c_long = 304;
+pub const SYS_shmat: ::c_long = 305;
+pub const SYS_shmdt: ::c_long = 306;
+pub const SYS_shmget: ::c_long = 307;
+pub const SYS_shmctl: ::c_long = 308;
+pub const SYS_add_key: ::c_long = 309;
+pub const SYS_request_key: ::c_long = 310;
+pub const SYS_keyctl: ::c_long = 311;
+pub const SYS_semtimedop: ::c_long = 312;
+pub const SYS_vserver: ::c_long = 313;
+pub const SYS_ioprio_set: ::c_long = 314;
+pub const SYS_ioprio_get: ::c_long = 315;
+pub const SYS_inotify_init: ::c_long = 316;
+pub const SYS_inotify_add_watch: ::c_long = 317;
+pub const SYS_inotify_rm_watch: ::c_long = 318;
+pub const SYS_mbind: ::c_long = 319;
+pub const SYS_get_mempolicy: ::c_long = 320;
+pub const SYS_set_mempolicy: ::c_long = 321;
+pub const SYS_openat: ::c_long = 322;
+pub const SYS_mkdirat: ::c_long = 323;
+pub const SYS_mknodat: ::c_long = 324;
+pub const SYS_fchownat: ::c_long = 325;
+pub const SYS_futimesat: ::c_long = 326;
+pub const SYS_fstatat64: ::c_long = 327;
+pub const SYS_unlinkat: ::c_long = 328;
+pub const SYS_renameat: ::c_long = 329;
+pub const SYS_linkat: ::c_long = 330;
+pub const SYS_symlinkat: ::c_long = 331;
+pub const SYS_readlinkat: ::c_long = 332;
+pub const SYS_fchmodat: ::c_long = 333;
+pub const SYS_faccessat: ::c_long = 334;
+pub const SYS_pselect6: ::c_long = 335;
+pub const SYS_ppoll: ::c_long = 336;
+pub const SYS_unshare: ::c_long = 337;
+pub const SYS_set_robust_list: ::c_long = 338;
+pub const SYS_get_robust_list: ::c_long = 339;
+pub const SYS_splice: ::c_long = 340;
+pub const SYS_arm_sync_file_range: ::c_long = 341;
+pub const SYS_tee: ::c_long = 342;
+pub const SYS_vmsplice: ::c_long = 343;
+pub const SYS_move_pages: ::c_long = 344;
+pub const SYS_getcpu: ::c_long = 345;
+pub const SYS_epoll_pwait: ::c_long = 346;
+pub const SYS_kexec_load: ::c_long = 347;
+pub const SYS_utimensat: ::c_long = 348;
+pub const SYS_signalfd: ::c_long = 349;
+pub const SYS_timerfd_create: ::c_long = 350;
+pub const SYS_eventfd: ::c_long = 351;
+pub const SYS_fallocate: ::c_long = 352;
+pub const SYS_timerfd_settime: ::c_long = 353;
+pub const SYS_timerfd_gettime: ::c_long = 354;
+pub const SYS_signalfd4: ::c_long = 355;
+pub const SYS_eventfd2: ::c_long = 356;
+pub const SYS_epoll_create1: ::c_long = 357;
+pub const SYS_dup3: ::c_long = 358;
+pub const SYS_pipe2: ::c_long = 359;
+pub const SYS_inotify_init1: ::c_long = 360;
+pub const SYS_preadv: ::c_long = 361;
+pub const SYS_pwritev: ::c_long = 362;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 363;
+pub const SYS_perf_event_open: ::c_long = 364;
+pub const SYS_recvmmsg: ::c_long = 365;
+pub const SYS_accept4: ::c_long = 366;
+pub const SYS_fanotify_init: ::c_long = 367;
+pub const SYS_fanotify_mark: ::c_long = 368;
+pub const SYS_prlimit64: ::c_long = 369;
+pub const SYS_name_to_handle_at: ::c_long = 370;
+pub const SYS_open_by_handle_at: ::c_long = 371;
+pub const SYS_clock_adjtime: ::c_long = 372;
+pub const SYS_syncfs: ::c_long = 373;
+pub const SYS_sendmmsg: ::c_long = 374;
+pub const SYS_setns: ::c_long = 375;
+pub const SYS_process_vm_readv: ::c_long = 376;
+pub const SYS_process_vm_writev: ::c_long = 377;
+pub const SYS_kcmp: ::c_long = 378;
+pub const SYS_finit_module: ::c_long = 379;
+pub const SYS_sched_setattr: ::c_long = 380;
+pub const SYS_sched_getattr: ::c_long = 381;
+pub const SYS_renameat2: ::c_long = 382;
+pub const SYS_seccomp: ::c_long = 383;
+pub const SYS_getrandom: ::c_long = 384;
+pub const SYS_memfd_create: ::c_long = 385;
+pub const SYS_bpf: ::c_long = 386;
+pub const SYS_execveat: ::c_long = 387;
+pub const SYS_userfaultfd: ::c_long = 388;
+pub const SYS_membarrier: ::c_long = 389;
+pub const SYS_mlock2: ::c_long = 390;
+pub const SYS_copy_file_range: ::c_long = 391;
+pub const SYS_preadv2: ::c_long = 392;
+pub const SYS_pwritev2: ::c_long = 393;
+pub const SYS_pkey_mprotect: ::c_long = 394;
+pub const SYS_pkey_alloc: ::c_long = 395;
+pub const SYS_pkey_free: ::c_long = 396;
diff --git a/src/unix/notbsd/linux/other/b32/mod.rs b/src/unix/notbsd/linux/other/b32/mod.rs
index 247f01b..0d4e66b 100644
--- a/src/unix/notbsd/linux/other/b32/mod.rs
+++ b/src/unix/notbsd/linux/other/b32/mod.rs
@@ -281,6 +281,17 @@
pub const PTRACE_GETREGS: ::c_uint = 12;
pub const PTRACE_SETREGS: ::c_uint = 13;
+#[link(name = "util")]
+extern {
+ pub fn sysctl(name: *mut ::c_int,
+ namelen: ::c_int,
+ oldp: *mut ::c_void,
+ oldlenp: *mut ::size_t,
+ newp: *mut ::c_void,
+ newlen: ::size_t)
+ -> ::c_int;
+}
+
cfg_if! {
if #[cfg(target_arch = "x86")] {
mod x86;
diff --git a/src/unix/notbsd/linux/other/b32/powerpc.rs b/src/unix/notbsd/linux/other/b32/powerpc.rs
index 588cef4..0ea9034 100644
--- a/src/unix/notbsd/linux/other/b32/powerpc.rs
+++ b/src/unix/notbsd/linux/other/b32/powerpc.rs
@@ -215,6 +215,7 @@
pub const B3000000: ::speed_t = 0o0034;
pub const B3500000: ::speed_t = 0o0035;
pub const B4000000: ::speed_t = 0o0036;
+pub const BOTHER: ::speed_t = 0o0037;
pub const VEOL: usize = 6;
pub const VEOL2: usize = 8;
@@ -242,372 +243,372 @@
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
pub const FIONREAD: ::c_ulong = 0x4004667f;
-pub const SYS_restart_syscall: ::c_ulong = 0;
-pub const SYS_exit: ::c_ulong = 1;
-pub const SYS_fork: ::c_ulong = 2;
-pub const SYS_read: ::c_ulong = 3;
-pub const SYS_write: ::c_ulong = 4;
-pub const SYS_open: ::c_ulong = 5;
-pub const SYS_close: ::c_ulong = 6;
-pub const SYS_waitpid: ::c_ulong = 7;
-pub const SYS_creat: ::c_ulong = 8;
-pub const SYS_link: ::c_ulong = 9;
-pub const SYS_unlink: ::c_ulong = 10;
-pub const SYS_execve: ::c_ulong = 11;
-pub const SYS_chdir: ::c_ulong = 12;
-pub const SYS_time: ::c_ulong = 13;
-pub const SYS_mknod: ::c_ulong = 14;
-pub const SYS_chmod: ::c_ulong = 15;
-pub const SYS_lchown: ::c_ulong = 16;
-pub const SYS_break: ::c_ulong = 17;
-pub const SYS_oldstat: ::c_ulong = 18;
-pub const SYS_lseek: ::c_ulong = 19;
-pub const SYS_getpid: ::c_ulong = 20;
-pub const SYS_mount: ::c_ulong = 21;
-pub const SYS_umount: ::c_ulong = 22;
-pub const SYS_setuid: ::c_ulong = 23;
-pub const SYS_getuid: ::c_ulong = 24;
-pub const SYS_stime: ::c_ulong = 25;
-pub const SYS_ptrace: ::c_ulong = 26;
-pub const SYS_alarm: ::c_ulong = 27;
-pub const SYS_oldfstat: ::c_ulong = 28;
-pub const SYS_pause: ::c_ulong = 29;
-pub const SYS_utime: ::c_ulong = 30;
-pub const SYS_stty: ::c_ulong = 31;
-pub const SYS_gtty: ::c_ulong = 32;
-pub const SYS_access: ::c_ulong = 33;
-pub const SYS_nice: ::c_ulong = 34;
-pub const SYS_ftime: ::c_ulong = 35;
-pub const SYS_sync: ::c_ulong = 36;
-pub const SYS_kill: ::c_ulong = 37;
-pub const SYS_rename: ::c_ulong = 38;
-pub const SYS_mkdir: ::c_ulong = 39;
-pub const SYS_rmdir: ::c_ulong = 40;
-pub const SYS_dup: ::c_ulong = 41;
-pub const SYS_pipe: ::c_ulong = 42;
-pub const SYS_times: ::c_ulong = 43;
-pub const SYS_prof: ::c_ulong = 44;
-pub const SYS_brk: ::c_ulong = 45;
-pub const SYS_setgid: ::c_ulong = 46;
-pub const SYS_getgid: ::c_ulong = 47;
-pub const SYS_signal: ::c_ulong = 48;
-pub const SYS_geteuid: ::c_ulong = 49;
-pub const SYS_getegid: ::c_ulong = 50;
-pub const SYS_acct: ::c_ulong = 51;
-pub const SYS_umount2: ::c_ulong = 52;
-pub const SYS_lock: ::c_ulong = 53;
-pub const SYS_ioctl: ::c_ulong = 54;
-pub const SYS_fcntl: ::c_ulong = 55;
-pub const SYS_mpx: ::c_ulong = 56;
-pub const SYS_setpgid: ::c_ulong = 57;
-pub const SYS_ulimit: ::c_ulong = 58;
-pub const SYS_oldolduname: ::c_ulong = 59;
-pub const SYS_umask: ::c_ulong = 60;
-pub const SYS_chroot: ::c_ulong = 61;
-pub const SYS_ustat: ::c_ulong = 62;
-pub const SYS_dup2: ::c_ulong = 63;
-pub const SYS_getppid: ::c_ulong = 64;
-pub const SYS_getpgrp: ::c_ulong = 65;
-pub const SYS_setsid: ::c_ulong = 66;
-pub const SYS_sigaction: ::c_ulong = 67;
-pub const SYS_sgetmask: ::c_ulong = 68;
-pub const SYS_ssetmask: ::c_ulong = 69;
-pub const SYS_setreuid: ::c_ulong = 70;
-pub const SYS_setregid: ::c_ulong = 71;
-pub const SYS_sigsuspend: ::c_ulong = 72;
-pub const SYS_sigpending: ::c_ulong = 73;
-pub const SYS_sethostname: ::c_ulong = 74;
-pub const SYS_setrlimit: ::c_ulong = 75;
-pub const SYS_getrlimit: ::c_ulong = 76;
-pub const SYS_getrusage: ::c_ulong = 77;
-pub const SYS_gettimeofday: ::c_ulong = 78;
-pub const SYS_settimeofday: ::c_ulong = 79;
-pub const SYS_getgroups: ::c_ulong = 80;
-pub const SYS_setgroups: ::c_ulong = 81;
-pub const SYS_select: ::c_ulong = 82;
-pub const SYS_symlink: ::c_ulong = 83;
-pub const SYS_oldlstat: ::c_ulong = 84;
-pub const SYS_readlink: ::c_ulong = 85;
-pub const SYS_uselib: ::c_ulong = 86;
-pub const SYS_swapon: ::c_ulong = 87;
-pub const SYS_reboot: ::c_ulong = 88;
-pub const SYS_readdir: ::c_ulong = 89;
-pub const SYS_mmap: ::c_ulong = 90;
-pub const SYS_munmap: ::c_ulong = 91;
-pub const SYS_truncate: ::c_ulong = 92;
-pub const SYS_ftruncate: ::c_ulong = 93;
-pub const SYS_fchmod: ::c_ulong = 94;
-pub const SYS_fchown: ::c_ulong = 95;
-pub const SYS_getpriority: ::c_ulong = 96;
-pub const SYS_setpriority: ::c_ulong = 97;
-pub const SYS_profil: ::c_ulong = 98;
-pub const SYS_statfs: ::c_ulong = 99;
-pub const SYS_fstatfs: ::c_ulong = 100;
-pub const SYS_ioperm: ::c_ulong = 101;
-pub const SYS_socketcall: ::c_ulong = 102;
-pub const SYS_syslog: ::c_ulong = 103;
-pub const SYS_setitimer: ::c_ulong = 104;
-pub const SYS_getitimer: ::c_ulong = 105;
-pub const SYS_stat: ::c_ulong = 106;
-pub const SYS_lstat: ::c_ulong = 107;
-pub const SYS_fstat: ::c_ulong = 108;
-pub const SYS_olduname: ::c_ulong = 109;
-pub const SYS_iopl: ::c_ulong = 110;
-pub const SYS_vhangup: ::c_ulong = 111;
-pub const SYS_idle: ::c_ulong = 112;
-pub const SYS_vm86: ::c_ulong = 113;
-pub const SYS_wait4: ::c_ulong = 114;
-pub const SYS_swapoff: ::c_ulong = 115;
-pub const SYS_sysinfo: ::c_ulong = 116;
-pub const SYS_ipc: ::c_ulong = 117;
-pub const SYS_fsync: ::c_ulong = 118;
-pub const SYS_sigreturn: ::c_ulong = 119;
-pub const SYS_clone: ::c_ulong = 120;
-pub const SYS_setdomainname: ::c_ulong = 121;
-pub const SYS_uname: ::c_ulong = 122;
-pub const SYS_modify_ldt: ::c_ulong = 123;
-pub const SYS_adjtimex: ::c_ulong = 124;
-pub const SYS_mprotect: ::c_ulong = 125;
-pub const SYS_sigprocmask: ::c_ulong = 126;
-pub const SYS_create_module: ::c_ulong = 127;
-pub const SYS_init_module: ::c_ulong = 128;
-pub const SYS_delete_module: ::c_ulong = 129;
-pub const SYS_get_kernel_syms: ::c_ulong = 130;
-pub const SYS_quotactl: ::c_ulong = 131;
-pub const SYS_getpgid: ::c_ulong = 132;
-pub const SYS_fchdir: ::c_ulong = 133;
-pub const SYS_bdflush: ::c_ulong = 134;
-pub const SYS_sysfs: ::c_ulong = 135;
-pub const SYS_personality: ::c_ulong = 136;
-pub const SYS_afs_syscall: ::c_ulong = 137; /* Syscall for Andrew File System */
-pub const SYS_setfsuid: ::c_ulong = 138;
-pub const SYS_setfsgid: ::c_ulong = 139;
-pub const SYS__llseek: ::c_ulong = 140;
-pub const SYS_getdents: ::c_ulong = 141;
-pub const SYS__newselect: ::c_ulong = 142;
-pub const SYS_flock: ::c_ulong = 143;
-pub const SYS_msync: ::c_ulong = 144;
-pub const SYS_readv: ::c_ulong = 145;
-pub const SYS_writev: ::c_ulong = 146;
-pub const SYS_getsid: ::c_ulong = 147;
-pub const SYS_fdatasync: ::c_ulong = 148;
-pub const SYS__sysctl: ::c_ulong = 149;
-pub const SYS_mlock: ::c_ulong = 150;
-pub const SYS_munlock: ::c_ulong = 151;
-pub const SYS_mlockall: ::c_ulong = 152;
-pub const SYS_munlockall: ::c_ulong = 153;
-pub const SYS_sched_setparam: ::c_ulong = 154;
-pub const SYS_sched_getparam: ::c_ulong = 155;
-pub const SYS_sched_setscheduler: ::c_ulong = 156;
-pub const SYS_sched_getscheduler: ::c_ulong = 157;
-pub const SYS_sched_yield: ::c_ulong = 158;
-pub const SYS_sched_get_priority_max: ::c_ulong = 159;
-pub const SYS_sched_get_priority_min: ::c_ulong = 160;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 161;
-pub const SYS_nanosleep: ::c_ulong = 162;
-pub const SYS_mremap: ::c_ulong = 163;
-pub const SYS_setresuid: ::c_ulong = 164;
-pub const SYS_getresuid: ::c_ulong = 165;
-pub const SYS_query_module: ::c_ulong = 166;
-pub const SYS_poll: ::c_ulong = 167;
-pub const SYS_nfsservctl: ::c_ulong = 168;
-pub const SYS_setresgid: ::c_ulong = 169;
-pub const SYS_getresgid: ::c_ulong = 170;
-pub const SYS_prctl: ::c_ulong = 171;
-pub const SYS_rt_sigreturn: ::c_ulong = 172;
-pub const SYS_rt_sigaction: ::c_ulong = 173;
-pub const SYS_rt_sigprocmask: ::c_ulong = 174;
-pub const SYS_rt_sigpending: ::c_ulong = 175;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 176;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 177;
-pub const SYS_rt_sigsuspend: ::c_ulong = 178;
-pub const SYS_pread64: ::c_ulong = 179;
-pub const SYS_pwrite64: ::c_ulong = 180;
-pub const SYS_chown: ::c_ulong = 181;
-pub const SYS_getcwd: ::c_ulong = 182;
-pub const SYS_capget: ::c_ulong = 183;
-pub const SYS_capset: ::c_ulong = 184;
-pub const SYS_sigaltstack: ::c_ulong = 185;
-pub const SYS_sendfile: ::c_ulong = 186;
-pub const SYS_getpmsg: ::c_ulong = 187; /* some people actually want streams */
-pub const SYS_putpmsg: ::c_ulong = 188; /* some people actually want streams */
-pub const SYS_vfork: ::c_ulong = 189;
-pub const SYS_ugetrlimit: ::c_ulong = 190; /* SuS compliant getrlimit */
-pub const SYS_readahead: ::c_ulong = 191;
-pub const SYS_mmap2: ::c_ulong = 192;
-pub const SYS_truncate64: ::c_ulong = 193;
-pub const SYS_ftruncate64: ::c_ulong = 194;
-pub const SYS_stat64: ::c_ulong = 195;
-pub const SYS_lstat64: ::c_ulong = 196;
-pub const SYS_fstat64: ::c_ulong = 197;
-pub const SYS_pciconfig_read: ::c_ulong = 198;
-pub const SYS_pciconfig_write: ::c_ulong = 199;
-pub const SYS_pciconfig_iobase: ::c_ulong = 200;
-pub const SYS_multiplexer: ::c_ulong = 201;
-pub const SYS_getdents64: ::c_ulong = 202;
-pub const SYS_pivot_root: ::c_ulong = 203;
-pub const SYS_fcntl64: ::c_ulong = 204;
-pub const SYS_madvise: ::c_ulong = 205;
-pub const SYS_mincore: ::c_ulong = 206;
-pub const SYS_gettid: ::c_ulong = 207;
-pub const SYS_tkill: ::c_ulong = 208;
-pub const SYS_setxattr: ::c_ulong = 209;
-pub const SYS_lsetxattr: ::c_ulong = 210;
-pub const SYS_fsetxattr: ::c_ulong = 211;
-pub const SYS_getxattr: ::c_ulong = 212;
-pub const SYS_lgetxattr: ::c_ulong = 213;
-pub const SYS_fgetxattr: ::c_ulong = 214;
-pub const SYS_listxattr: ::c_ulong = 215;
-pub const SYS_llistxattr: ::c_ulong = 216;
-pub const SYS_flistxattr: ::c_ulong = 217;
-pub const SYS_removexattr: ::c_ulong = 218;
-pub const SYS_lremovexattr: ::c_ulong = 219;
-pub const SYS_fremovexattr: ::c_ulong = 220;
-pub const SYS_futex: ::c_ulong = 221;
-pub const SYS_sched_setaffinity: ::c_ulong = 222;
-pub const SYS_sched_getaffinity: ::c_ulong = 223;
-pub const SYS_tuxcall: ::c_ulong = 225;
-pub const SYS_sendfile64: ::c_ulong = 226;
-pub const SYS_io_setup: ::c_ulong = 227;
-pub const SYS_io_destroy: ::c_ulong = 228;
-pub const SYS_io_getevents: ::c_ulong = 229;
-pub const SYS_io_submit: ::c_ulong = 230;
-pub const SYS_io_cancel: ::c_ulong = 231;
-pub const SYS_set_tid_address: ::c_ulong = 232;
-pub const SYS_fadvise64: ::c_ulong = 233;
-pub const SYS_exit_group: ::c_ulong = 234;
-pub const SYS_lookup_dcookie: ::c_ulong = 235;
-pub const SYS_epoll_create: ::c_ulong = 236;
-pub const SYS_epoll_ctl: ::c_ulong = 237;
-pub const SYS_epoll_wait: ::c_ulong = 238;
-pub const SYS_remap_file_pages: ::c_ulong = 239;
-pub const SYS_timer_create: ::c_ulong = 240;
-pub const SYS_timer_settime: ::c_ulong = 241;
-pub const SYS_timer_gettime: ::c_ulong = 242;
-pub const SYS_timer_getoverrun: ::c_ulong = 243;
-pub const SYS_timer_delete: ::c_ulong = 244;
-pub const SYS_clock_settime: ::c_ulong = 245;
-pub const SYS_clock_gettime: ::c_ulong = 246;
-pub const SYS_clock_getres: ::c_ulong = 247;
-pub const SYS_clock_nanosleep: ::c_ulong = 248;
-pub const SYS_swapcontext: ::c_ulong = 249;
-pub const SYS_tgkill: ::c_ulong = 250;
-pub const SYS_utimes: ::c_ulong = 251;
-pub const SYS_statfs64: ::c_ulong = 252;
-pub const SYS_fstatfs64: ::c_ulong = 253;
-pub const SYS_fadvise64_64: ::c_ulong = 254;
-pub const SYS_rtas: ::c_ulong = 255;
-pub const SYS_sys_debug_setcontext: ::c_ulong = 256;
-pub const SYS_migrate_pages: ::c_ulong = 258;
-pub const SYS_mbind: ::c_ulong = 259;
-pub const SYS_get_mempolicy: ::c_ulong = 260;
-pub const SYS_set_mempolicy: ::c_ulong = 261;
-pub const SYS_mq_open: ::c_ulong = 262;
-pub const SYS_mq_unlink: ::c_ulong = 263;
-pub const SYS_mq_timedsend: ::c_ulong = 264;
-pub const SYS_mq_timedreceive: ::c_ulong = 265;
-pub const SYS_mq_notify: ::c_ulong = 266;
-pub const SYS_mq_getsetattr: ::c_ulong = 267;
-pub const SYS_kexec_load: ::c_ulong = 268;
-pub const SYS_add_key: ::c_ulong = 269;
-pub const SYS_request_key: ::c_ulong = 270;
-pub const SYS_keyctl: ::c_ulong = 271;
-pub const SYS_waitid: ::c_ulong = 272;
-pub const SYS_ioprio_set: ::c_ulong = 273;
-pub const SYS_ioprio_get: ::c_ulong = 274;
-pub const SYS_inotify_init: ::c_ulong = 275;
-pub const SYS_inotify_add_watch: ::c_ulong = 276;
-pub const SYS_inotify_rm_watch: ::c_ulong = 277;
-pub const SYS_spu_run: ::c_ulong = 278;
-pub const SYS_spu_create: ::c_ulong = 279;
-pub const SYS_pselect6: ::c_ulong = 280;
-pub const SYS_ppoll: ::c_ulong = 281;
-pub const SYS_unshare: ::c_ulong = 282;
-pub const SYS_splice: ::c_ulong = 283;
-pub const SYS_tee: ::c_ulong = 284;
-pub const SYS_vmsplice: ::c_ulong = 285;
-pub const SYS_openat: ::c_ulong = 286;
-pub const SYS_mkdirat: ::c_ulong = 287;
-pub const SYS_mknodat: ::c_ulong = 288;
-pub const SYS_fchownat: ::c_ulong = 289;
-pub const SYS_futimesat: ::c_ulong = 290;
-pub const SYS_fstatat64: ::c_ulong = 291;
-pub const SYS_unlinkat: ::c_ulong = 292;
-pub const SYS_renameat: ::c_ulong = 293;
-pub const SYS_linkat: ::c_ulong = 294;
-pub const SYS_symlinkat: ::c_ulong = 295;
-pub const SYS_readlinkat: ::c_ulong = 296;
-pub const SYS_fchmodat: ::c_ulong = 297;
-pub const SYS_faccessat: ::c_ulong = 298;
-pub const SYS_get_robust_list: ::c_ulong = 299;
-pub const SYS_set_robust_list: ::c_ulong = 300;
-pub const SYS_move_pages: ::c_ulong = 301;
-pub const SYS_getcpu: ::c_ulong = 302;
-pub const SYS_epoll_pwait: ::c_ulong = 303;
-pub const SYS_utimensat: ::c_ulong = 304;
-pub const SYS_signalfd: ::c_ulong = 305;
-pub const SYS_timerfd_create: ::c_ulong = 306;
-pub const SYS_eventfd: ::c_ulong = 307;
-pub const SYS_sync_file_range2: ::c_ulong = 308;
-pub const SYS_fallocate: ::c_ulong = 309;
-pub const SYS_subpage_prot: ::c_ulong = 310;
-pub const SYS_timerfd_settime: ::c_ulong = 311;
-pub const SYS_timerfd_gettime: ::c_ulong = 312;
-pub const SYS_signalfd4: ::c_ulong = 313;
-pub const SYS_eventfd2: ::c_ulong = 314;
-pub const SYS_epoll_create1: ::c_ulong = 315;
-pub const SYS_dup3: ::c_ulong = 316;
-pub const SYS_pipe2: ::c_ulong = 317;
-pub const SYS_inotify_init1: ::c_ulong = 318;
-pub const SYS_perf_event_open: ::c_ulong = 319;
-pub const SYS_preadv: ::c_ulong = 320;
-pub const SYS_pwritev: ::c_ulong = 321;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 322;
-pub const SYS_fanotify_init: ::c_ulong = 323;
-pub const SYS_fanotify_mark: ::c_ulong = 324;
-pub const SYS_prlimit64: ::c_ulong = 325;
-pub const SYS_socket: ::c_ulong = 326;
-pub const SYS_bind: ::c_ulong = 327;
-pub const SYS_connect: ::c_ulong = 328;
-pub const SYS_listen: ::c_ulong = 329;
-pub const SYS_accept: ::c_ulong = 330;
-pub const SYS_getsockname: ::c_ulong = 331;
-pub const SYS_getpeername: ::c_ulong = 332;
-pub const SYS_socketpair: ::c_ulong = 333;
-pub const SYS_send: ::c_ulong = 334;
-pub const SYS_sendto: ::c_ulong = 335;
-pub const SYS_recv: ::c_ulong = 336;
-pub const SYS_recvfrom: ::c_ulong = 337;
-pub const SYS_shutdown: ::c_ulong = 338;
-pub const SYS_setsockopt: ::c_ulong = 339;
-pub const SYS_getsockopt: ::c_ulong = 340;
-pub const SYS_sendmsg: ::c_ulong = 341;
-pub const SYS_recvmsg: ::c_ulong = 342;
-pub const SYS_recvmmsg: ::c_ulong = 343;
-pub const SYS_accept4: ::c_ulong = 344;
-pub const SYS_name_to_handle_at: ::c_ulong = 345;
-pub const SYS_open_by_handle_at: ::c_ulong = 346;
-pub const SYS_clock_adjtime: ::c_ulong = 347;
-pub const SYS_syncfs: ::c_ulong = 348;
-pub const SYS_sendmmsg: ::c_ulong = 349;
-pub const SYS_setns: ::c_ulong = 350;
-pub const SYS_process_vm_readv: ::c_ulong = 351;
-pub const SYS_process_vm_writev: ::c_ulong = 352;
-pub const SYS_finit_module: ::c_ulong = 353;
-pub const SYS_kcmp: ::c_ulong = 354;
-pub const SYS_sched_setattr: ::c_ulong = 355;
-pub const SYS_sched_getattr: ::c_ulong = 356;
-pub const SYS_renameat2: ::c_ulong = 357;
-pub const SYS_seccomp: ::c_ulong = 358;
-pub const SYS_getrandom: ::c_ulong = 359;
-pub const SYS_memfd_create: ::c_ulong = 360;
-pub const SYS_bpf: ::c_ulong = 361;
-pub const SYS_execveat: ::c_ulong = 362;
-pub const SYS_switch_endian: ::c_ulong = 363;
-pub const SYS_userfaultfd: ::c_ulong = 364;
-pub const SYS_membarrier: ::c_ulong = 365;
-pub const SYS_mlock2: ::c_ulong = 378;
-pub const SYS_copy_file_range: ::c_ulong = 379;
-pub const SYS_preadv2: ::c_ulong = 380;
-pub const SYS_pwritev2: ::c_ulong = 381;
-pub const SYS_kexec_file_load: ::c_ulong = 382;
+pub const SYS_restart_syscall: ::c_long = 0;
+pub const SYS_exit: ::c_long = 1;
+pub const SYS_fork: ::c_long = 2;
+pub const SYS_read: ::c_long = 3;
+pub const SYS_write: ::c_long = 4;
+pub const SYS_open: ::c_long = 5;
+pub const SYS_close: ::c_long = 6;
+pub const SYS_waitpid: ::c_long = 7;
+pub const SYS_creat: ::c_long = 8;
+pub const SYS_link: ::c_long = 9;
+pub const SYS_unlink: ::c_long = 10;
+pub const SYS_execve: ::c_long = 11;
+pub const SYS_chdir: ::c_long = 12;
+pub const SYS_time: ::c_long = 13;
+pub const SYS_mknod: ::c_long = 14;
+pub const SYS_chmod: ::c_long = 15;
+pub const SYS_lchown: ::c_long = 16;
+pub const SYS_break: ::c_long = 17;
+pub const SYS_oldstat: ::c_long = 18;
+pub const SYS_lseek: ::c_long = 19;
+pub const SYS_getpid: ::c_long = 20;
+pub const SYS_mount: ::c_long = 21;
+pub const SYS_umount: ::c_long = 22;
+pub const SYS_setuid: ::c_long = 23;
+pub const SYS_getuid: ::c_long = 24;
+pub const SYS_stime: ::c_long = 25;
+pub const SYS_ptrace: ::c_long = 26;
+pub const SYS_alarm: ::c_long = 27;
+pub const SYS_oldfstat: ::c_long = 28;
+pub const SYS_pause: ::c_long = 29;
+pub const SYS_utime: ::c_long = 30;
+pub const SYS_stty: ::c_long = 31;
+pub const SYS_gtty: ::c_long = 32;
+pub const SYS_access: ::c_long = 33;
+pub const SYS_nice: ::c_long = 34;
+pub const SYS_ftime: ::c_long = 35;
+pub const SYS_sync: ::c_long = 36;
+pub const SYS_kill: ::c_long = 37;
+pub const SYS_rename: ::c_long = 38;
+pub const SYS_mkdir: ::c_long = 39;
+pub const SYS_rmdir: ::c_long = 40;
+pub const SYS_dup: ::c_long = 41;
+pub const SYS_pipe: ::c_long = 42;
+pub const SYS_times: ::c_long = 43;
+pub const SYS_prof: ::c_long = 44;
+pub const SYS_brk: ::c_long = 45;
+pub const SYS_setgid: ::c_long = 46;
+pub const SYS_getgid: ::c_long = 47;
+pub const SYS_signal: ::c_long = 48;
+pub const SYS_geteuid: ::c_long = 49;
+pub const SYS_getegid: ::c_long = 50;
+pub const SYS_acct: ::c_long = 51;
+pub const SYS_umount2: ::c_long = 52;
+pub const SYS_lock: ::c_long = 53;
+pub const SYS_ioctl: ::c_long = 54;
+pub const SYS_fcntl: ::c_long = 55;
+pub const SYS_mpx: ::c_long = 56;
+pub const SYS_setpgid: ::c_long = 57;
+pub const SYS_ulimit: ::c_long = 58;
+pub const SYS_oldolduname: ::c_long = 59;
+pub const SYS_umask: ::c_long = 60;
+pub const SYS_chroot: ::c_long = 61;
+pub const SYS_ustat: ::c_long = 62;
+pub const SYS_dup2: ::c_long = 63;
+pub const SYS_getppid: ::c_long = 64;
+pub const SYS_getpgrp: ::c_long = 65;
+pub const SYS_setsid: ::c_long = 66;
+pub const SYS_sigaction: ::c_long = 67;
+pub const SYS_sgetmask: ::c_long = 68;
+pub const SYS_ssetmask: ::c_long = 69;
+pub const SYS_setreuid: ::c_long = 70;
+pub const SYS_setregid: ::c_long = 71;
+pub const SYS_sigsuspend: ::c_long = 72;
+pub const SYS_sigpending: ::c_long = 73;
+pub const SYS_sethostname: ::c_long = 74;
+pub const SYS_setrlimit: ::c_long = 75;
+pub const SYS_getrlimit: ::c_long = 76;
+pub const SYS_getrusage: ::c_long = 77;
+pub const SYS_gettimeofday: ::c_long = 78;
+pub const SYS_settimeofday: ::c_long = 79;
+pub const SYS_getgroups: ::c_long = 80;
+pub const SYS_setgroups: ::c_long = 81;
+pub const SYS_select: ::c_long = 82;
+pub const SYS_symlink: ::c_long = 83;
+pub const SYS_oldlstat: ::c_long = 84;
+pub const SYS_readlink: ::c_long = 85;
+pub const SYS_uselib: ::c_long = 86;
+pub const SYS_swapon: ::c_long = 87;
+pub const SYS_reboot: ::c_long = 88;
+pub const SYS_readdir: ::c_long = 89;
+pub const SYS_mmap: ::c_long = 90;
+pub const SYS_munmap: ::c_long = 91;
+pub const SYS_truncate: ::c_long = 92;
+pub const SYS_ftruncate: ::c_long = 93;
+pub const SYS_fchmod: ::c_long = 94;
+pub const SYS_fchown: ::c_long = 95;
+pub const SYS_getpriority: ::c_long = 96;
+pub const SYS_setpriority: ::c_long = 97;
+pub const SYS_profil: ::c_long = 98;
+pub const SYS_statfs: ::c_long = 99;
+pub const SYS_fstatfs: ::c_long = 100;
+pub const SYS_ioperm: ::c_long = 101;
+pub const SYS_socketcall: ::c_long = 102;
+pub const SYS_syslog: ::c_long = 103;
+pub const SYS_setitimer: ::c_long = 104;
+pub const SYS_getitimer: ::c_long = 105;
+pub const SYS_stat: ::c_long = 106;
+pub const SYS_lstat: ::c_long = 107;
+pub const SYS_fstat: ::c_long = 108;
+pub const SYS_olduname: ::c_long = 109;
+pub const SYS_iopl: ::c_long = 110;
+pub const SYS_vhangup: ::c_long = 111;
+pub const SYS_idle: ::c_long = 112;
+pub const SYS_vm86: ::c_long = 113;
+pub const SYS_wait4: ::c_long = 114;
+pub const SYS_swapoff: ::c_long = 115;
+pub const SYS_sysinfo: ::c_long = 116;
+pub const SYS_ipc: ::c_long = 117;
+pub const SYS_fsync: ::c_long = 118;
+pub const SYS_sigreturn: ::c_long = 119;
+pub const SYS_clone: ::c_long = 120;
+pub const SYS_setdomainname: ::c_long = 121;
+pub const SYS_uname: ::c_long = 122;
+pub const SYS_modify_ldt: ::c_long = 123;
+pub const SYS_adjtimex: ::c_long = 124;
+pub const SYS_mprotect: ::c_long = 125;
+pub const SYS_sigprocmask: ::c_long = 126;
+pub const SYS_create_module: ::c_long = 127;
+pub const SYS_init_module: ::c_long = 128;
+pub const SYS_delete_module: ::c_long = 129;
+pub const SYS_get_kernel_syms: ::c_long = 130;
+pub const SYS_quotactl: ::c_long = 131;
+pub const SYS_getpgid: ::c_long = 132;
+pub const SYS_fchdir: ::c_long = 133;
+pub const SYS_bdflush: ::c_long = 134;
+pub const SYS_sysfs: ::c_long = 135;
+pub const SYS_personality: ::c_long = 136;
+pub const SYS_afs_syscall: ::c_long = 137; /* Syscall for Andrew File System */
+pub const SYS_setfsuid: ::c_long = 138;
+pub const SYS_setfsgid: ::c_long = 139;
+pub const SYS__llseek: ::c_long = 140;
+pub const SYS_getdents: ::c_long = 141;
+pub const SYS__newselect: ::c_long = 142;
+pub const SYS_flock: ::c_long = 143;
+pub const SYS_msync: ::c_long = 144;
+pub const SYS_readv: ::c_long = 145;
+pub const SYS_writev: ::c_long = 146;
+pub const SYS_getsid: ::c_long = 147;
+pub const SYS_fdatasync: ::c_long = 148;
+pub const SYS__sysctl: ::c_long = 149;
+pub const SYS_mlock: ::c_long = 150;
+pub const SYS_munlock: ::c_long = 151;
+pub const SYS_mlockall: ::c_long = 152;
+pub const SYS_munlockall: ::c_long = 153;
+pub const SYS_sched_setparam: ::c_long = 154;
+pub const SYS_sched_getparam: ::c_long = 155;
+pub const SYS_sched_setscheduler: ::c_long = 156;
+pub const SYS_sched_getscheduler: ::c_long = 157;
+pub const SYS_sched_yield: ::c_long = 158;
+pub const SYS_sched_get_priority_max: ::c_long = 159;
+pub const SYS_sched_get_priority_min: ::c_long = 160;
+pub const SYS_sched_rr_get_interval: ::c_long = 161;
+pub const SYS_nanosleep: ::c_long = 162;
+pub const SYS_mremap: ::c_long = 163;
+pub const SYS_setresuid: ::c_long = 164;
+pub const SYS_getresuid: ::c_long = 165;
+pub const SYS_query_module: ::c_long = 166;
+pub const SYS_poll: ::c_long = 167;
+pub const SYS_nfsservctl: ::c_long = 168;
+pub const SYS_setresgid: ::c_long = 169;
+pub const SYS_getresgid: ::c_long = 170;
+pub const SYS_prctl: ::c_long = 171;
+pub const SYS_rt_sigreturn: ::c_long = 172;
+pub const SYS_rt_sigaction: ::c_long = 173;
+pub const SYS_rt_sigprocmask: ::c_long = 174;
+pub const SYS_rt_sigpending: ::c_long = 175;
+pub const SYS_rt_sigtimedwait: ::c_long = 176;
+pub const SYS_rt_sigqueueinfo: ::c_long = 177;
+pub const SYS_rt_sigsuspend: ::c_long = 178;
+pub const SYS_pread64: ::c_long = 179;
+pub const SYS_pwrite64: ::c_long = 180;
+pub const SYS_chown: ::c_long = 181;
+pub const SYS_getcwd: ::c_long = 182;
+pub const SYS_capget: ::c_long = 183;
+pub const SYS_capset: ::c_long = 184;
+pub const SYS_sigaltstack: ::c_long = 185;
+pub const SYS_sendfile: ::c_long = 186;
+pub const SYS_getpmsg: ::c_long = 187; /* some people actually want streams */
+pub const SYS_putpmsg: ::c_long = 188; /* some people actually want streams */
+pub const SYS_vfork: ::c_long = 189;
+pub const SYS_ugetrlimit: ::c_long = 190; /* SuS compliant getrlimit */
+pub const SYS_readahead: ::c_long = 191;
+pub const SYS_mmap2: ::c_long = 192;
+pub const SYS_truncate64: ::c_long = 193;
+pub const SYS_ftruncate64: ::c_long = 194;
+pub const SYS_stat64: ::c_long = 195;
+pub const SYS_lstat64: ::c_long = 196;
+pub const SYS_fstat64: ::c_long = 197;
+pub const SYS_pciconfig_read: ::c_long = 198;
+pub const SYS_pciconfig_write: ::c_long = 199;
+pub const SYS_pciconfig_iobase: ::c_long = 200;
+pub const SYS_multiplexer: ::c_long = 201;
+pub const SYS_getdents64: ::c_long = 202;
+pub const SYS_pivot_root: ::c_long = 203;
+pub const SYS_fcntl64: ::c_long = 204;
+pub const SYS_madvise: ::c_long = 205;
+pub const SYS_mincore: ::c_long = 206;
+pub const SYS_gettid: ::c_long = 207;
+pub const SYS_tkill: ::c_long = 208;
+pub const SYS_setxattr: ::c_long = 209;
+pub const SYS_lsetxattr: ::c_long = 210;
+pub const SYS_fsetxattr: ::c_long = 211;
+pub const SYS_getxattr: ::c_long = 212;
+pub const SYS_lgetxattr: ::c_long = 213;
+pub const SYS_fgetxattr: ::c_long = 214;
+pub const SYS_listxattr: ::c_long = 215;
+pub const SYS_llistxattr: ::c_long = 216;
+pub const SYS_flistxattr: ::c_long = 217;
+pub const SYS_removexattr: ::c_long = 218;
+pub const SYS_lremovexattr: ::c_long = 219;
+pub const SYS_fremovexattr: ::c_long = 220;
+pub const SYS_futex: ::c_long = 221;
+pub const SYS_sched_setaffinity: ::c_long = 222;
+pub const SYS_sched_getaffinity: ::c_long = 223;
+pub const SYS_tuxcall: ::c_long = 225;
+pub const SYS_sendfile64: ::c_long = 226;
+pub const SYS_io_setup: ::c_long = 227;
+pub const SYS_io_destroy: ::c_long = 228;
+pub const SYS_io_getevents: ::c_long = 229;
+pub const SYS_io_submit: ::c_long = 230;
+pub const SYS_io_cancel: ::c_long = 231;
+pub const SYS_set_tid_address: ::c_long = 232;
+pub const SYS_fadvise64: ::c_long = 233;
+pub const SYS_exit_group: ::c_long = 234;
+pub const SYS_lookup_dcookie: ::c_long = 235;
+pub const SYS_epoll_create: ::c_long = 236;
+pub const SYS_epoll_ctl: ::c_long = 237;
+pub const SYS_epoll_wait: ::c_long = 238;
+pub const SYS_remap_file_pages: ::c_long = 239;
+pub const SYS_timer_create: ::c_long = 240;
+pub const SYS_timer_settime: ::c_long = 241;
+pub const SYS_timer_gettime: ::c_long = 242;
+pub const SYS_timer_getoverrun: ::c_long = 243;
+pub const SYS_timer_delete: ::c_long = 244;
+pub const SYS_clock_settime: ::c_long = 245;
+pub const SYS_clock_gettime: ::c_long = 246;
+pub const SYS_clock_getres: ::c_long = 247;
+pub const SYS_clock_nanosleep: ::c_long = 248;
+pub const SYS_swapcontext: ::c_long = 249;
+pub const SYS_tgkill: ::c_long = 250;
+pub const SYS_utimes: ::c_long = 251;
+pub const SYS_statfs64: ::c_long = 252;
+pub const SYS_fstatfs64: ::c_long = 253;
+pub const SYS_fadvise64_64: ::c_long = 254;
+pub const SYS_rtas: ::c_long = 255;
+pub const SYS_sys_debug_setcontext: ::c_long = 256;
+pub const SYS_migrate_pages: ::c_long = 258;
+pub const SYS_mbind: ::c_long = 259;
+pub const SYS_get_mempolicy: ::c_long = 260;
+pub const SYS_set_mempolicy: ::c_long = 261;
+pub const SYS_mq_open: ::c_long = 262;
+pub const SYS_mq_unlink: ::c_long = 263;
+pub const SYS_mq_timedsend: ::c_long = 264;
+pub const SYS_mq_timedreceive: ::c_long = 265;
+pub const SYS_mq_notify: ::c_long = 266;
+pub const SYS_mq_getsetattr: ::c_long = 267;
+pub const SYS_kexec_load: ::c_long = 268;
+pub const SYS_add_key: ::c_long = 269;
+pub const SYS_request_key: ::c_long = 270;
+pub const SYS_keyctl: ::c_long = 271;
+pub const SYS_waitid: ::c_long = 272;
+pub const SYS_ioprio_set: ::c_long = 273;
+pub const SYS_ioprio_get: ::c_long = 274;
+pub const SYS_inotify_init: ::c_long = 275;
+pub const SYS_inotify_add_watch: ::c_long = 276;
+pub const SYS_inotify_rm_watch: ::c_long = 277;
+pub const SYS_spu_run: ::c_long = 278;
+pub const SYS_spu_create: ::c_long = 279;
+pub const SYS_pselect6: ::c_long = 280;
+pub const SYS_ppoll: ::c_long = 281;
+pub const SYS_unshare: ::c_long = 282;
+pub const SYS_splice: ::c_long = 283;
+pub const SYS_tee: ::c_long = 284;
+pub const SYS_vmsplice: ::c_long = 285;
+pub const SYS_openat: ::c_long = 286;
+pub const SYS_mkdirat: ::c_long = 287;
+pub const SYS_mknodat: ::c_long = 288;
+pub const SYS_fchownat: ::c_long = 289;
+pub const SYS_futimesat: ::c_long = 290;
+pub const SYS_fstatat64: ::c_long = 291;
+pub const SYS_unlinkat: ::c_long = 292;
+pub const SYS_renameat: ::c_long = 293;
+pub const SYS_linkat: ::c_long = 294;
+pub const SYS_symlinkat: ::c_long = 295;
+pub const SYS_readlinkat: ::c_long = 296;
+pub const SYS_fchmodat: ::c_long = 297;
+pub const SYS_faccessat: ::c_long = 298;
+pub const SYS_get_robust_list: ::c_long = 299;
+pub const SYS_set_robust_list: ::c_long = 300;
+pub const SYS_move_pages: ::c_long = 301;
+pub const SYS_getcpu: ::c_long = 302;
+pub const SYS_epoll_pwait: ::c_long = 303;
+pub const SYS_utimensat: ::c_long = 304;
+pub const SYS_signalfd: ::c_long = 305;
+pub const SYS_timerfd_create: ::c_long = 306;
+pub const SYS_eventfd: ::c_long = 307;
+pub const SYS_sync_file_range2: ::c_long = 308;
+pub const SYS_fallocate: ::c_long = 309;
+pub const SYS_subpage_prot: ::c_long = 310;
+pub const SYS_timerfd_settime: ::c_long = 311;
+pub const SYS_timerfd_gettime: ::c_long = 312;
+pub const SYS_signalfd4: ::c_long = 313;
+pub const SYS_eventfd2: ::c_long = 314;
+pub const SYS_epoll_create1: ::c_long = 315;
+pub const SYS_dup3: ::c_long = 316;
+pub const SYS_pipe2: ::c_long = 317;
+pub const SYS_inotify_init1: ::c_long = 318;
+pub const SYS_perf_event_open: ::c_long = 319;
+pub const SYS_preadv: ::c_long = 320;
+pub const SYS_pwritev: ::c_long = 321;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 322;
+pub const SYS_fanotify_init: ::c_long = 323;
+pub const SYS_fanotify_mark: ::c_long = 324;
+pub const SYS_prlimit64: ::c_long = 325;
+pub const SYS_socket: ::c_long = 326;
+pub const SYS_bind: ::c_long = 327;
+pub const SYS_connect: ::c_long = 328;
+pub const SYS_listen: ::c_long = 329;
+pub const SYS_accept: ::c_long = 330;
+pub const SYS_getsockname: ::c_long = 331;
+pub const SYS_getpeername: ::c_long = 332;
+pub const SYS_socketpair: ::c_long = 333;
+pub const SYS_send: ::c_long = 334;
+pub const SYS_sendto: ::c_long = 335;
+pub const SYS_recv: ::c_long = 336;
+pub const SYS_recvfrom: ::c_long = 337;
+pub const SYS_shutdown: ::c_long = 338;
+pub const SYS_setsockopt: ::c_long = 339;
+pub const SYS_getsockopt: ::c_long = 340;
+pub const SYS_sendmsg: ::c_long = 341;
+pub const SYS_recvmsg: ::c_long = 342;
+pub const SYS_recvmmsg: ::c_long = 343;
+pub const SYS_accept4: ::c_long = 344;
+pub const SYS_name_to_handle_at: ::c_long = 345;
+pub const SYS_open_by_handle_at: ::c_long = 346;
+pub const SYS_clock_adjtime: ::c_long = 347;
+pub const SYS_syncfs: ::c_long = 348;
+pub const SYS_sendmmsg: ::c_long = 349;
+pub const SYS_setns: ::c_long = 350;
+pub const SYS_process_vm_readv: ::c_long = 351;
+pub const SYS_process_vm_writev: ::c_long = 352;
+pub const SYS_finit_module: ::c_long = 353;
+pub const SYS_kcmp: ::c_long = 354;
+pub const SYS_sched_setattr: ::c_long = 355;
+pub const SYS_sched_getattr: ::c_long = 356;
+pub const SYS_renameat2: ::c_long = 357;
+pub const SYS_seccomp: ::c_long = 358;
+pub const SYS_getrandom: ::c_long = 359;
+pub const SYS_memfd_create: ::c_long = 360;
+pub const SYS_bpf: ::c_long = 361;
+pub const SYS_execveat: ::c_long = 362;
+pub const SYS_switch_endian: ::c_long = 363;
+pub const SYS_userfaultfd: ::c_long = 364;
+pub const SYS_membarrier: ::c_long = 365;
+pub const SYS_mlock2: ::c_long = 378;
+pub const SYS_copy_file_range: ::c_long = 379;
+pub const SYS_preadv2: ::c_long = 380;
+pub const SYS_pwritev2: ::c_long = 381;
+pub const SYS_kexec_file_load: ::c_long = 382;
diff --git a/src/unix/notbsd/linux/other/b32/x86.rs b/src/unix/notbsd/linux/other/b32/x86.rs
index 1413396..1506aca 100644
--- a/src/unix/notbsd/linux/other/b32/x86.rs
+++ b/src/unix/notbsd/linux/other/b32/x86.rs
@@ -200,6 +200,17 @@
__glibc_reserved4: ::c_ulong,
__glibc_reserved5: ::c_ulong,
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const O_DIRECT: ::c_int = 0x4000;
@@ -304,6 +315,7 @@
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;
diff --git a/src/unix/notbsd/linux/other/b64/aarch64.rs b/src/unix/notbsd/linux/other/b64/aarch64.rs
index 85b6c2d..e86b677 100644
--- a/src/unix/notbsd/linux/other/b64/aarch64.rs
+++ b/src/unix/notbsd/linux/other/b64/aarch64.rs
@@ -1,5 +1,7 @@
//! AArch64-specific definitions for 64-bit linux-like values
+pub type c_long = i64;
+pub type c_ulong = u64;
pub type c_char = u8;
pub type wchar_t = u32;
pub type nlink_t = u32;
@@ -111,6 +113,17 @@
__unused4: ::c_ulong,
__unused5: ::c_ulong
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
@@ -442,6 +455,7 @@
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;
@@ -485,269 +499,280 @@
pub const FIONREAD: ::c_ulong = 0x541B;
// Syscall table
-pub const SYS_io_setup: ::c_ulong = 0;
-pub const SYS_io_destroy: ::c_ulong = 1;
-pub const SYS_io_submit: ::c_ulong = 2;
-pub const SYS_io_cancel: ::c_ulong = 3;
-pub const SYS_io_getevents: ::c_ulong = 4;
-pub const SYS_setxattr: ::c_ulong = 5;
-pub const SYS_lsetxattr: ::c_ulong = 6;
-pub const SYS_fsetxattr: ::c_ulong = 7;
-pub const SYS_getxattr: ::c_ulong = 8;
-pub const SYS_lgetxattr: ::c_ulong = 9;
-pub const SYS_fgetxattr: ::c_ulong = 10;
-pub const SYS_listxattr: ::c_ulong = 11;
-pub const SYS_llistxattr: ::c_ulong = 12;
-pub const SYS_flistxattr: ::c_ulong = 13;
-pub const SYS_removexattr: ::c_ulong = 14;
-pub const SYS_lremovexattr: ::c_ulong = 15;
-pub const SYS_fremovexattr: ::c_ulong = 16;
-pub const SYS_getcwd: ::c_ulong = 17;
-pub const SYS_lookup_dcookie: ::c_ulong = 18;
-pub const SYS_eventfd2: ::c_ulong = 19;
-pub const SYS_epoll_create1: ::c_ulong = 20;
-pub const SYS_epoll_ctl: ::c_ulong = 21;
-pub const SYS_epoll_pwait: ::c_ulong = 22;
-pub const SYS_dup: ::c_ulong = 23;
-pub const SYS_dup3: ::c_ulong = 24;
-pub const SYS_inotify_init1: ::c_ulong = 26;
-pub const SYS_inotify_add_watch: ::c_ulong = 27;
-pub const SYS_inotify_rm_watch: ::c_ulong = 28;
-pub const SYS_ioctl: ::c_ulong = 29;
-pub const SYS_ioprio_set: ::c_ulong = 30;
-pub const SYS_ioprio_get: ::c_ulong = 31;
-pub const SYS_flock: ::c_ulong = 32;
-pub const SYS_mknodat: ::c_ulong = 33;
-pub const SYS_mkdirat: ::c_ulong = 34;
-pub const SYS_unlinkat: ::c_ulong = 35;
-pub const SYS_symlinkat: ::c_ulong = 36;
-pub const SYS_linkat: ::c_ulong = 37;
-pub const SYS_renameat: ::c_ulong = 38;
-pub const SYS_umount2: ::c_ulong = 39;
-pub const SYS_mount: ::c_ulong = 40;
-pub const SYS_pivot_root: ::c_ulong = 41;
-pub const SYS_nfsservctl: ::c_ulong = 42;
-pub const SYS_fallocate: ::c_ulong = 47;
-pub const SYS_faccessat: ::c_ulong = 48;
-pub const SYS_chdir: ::c_ulong = 49;
-pub const SYS_fchdir: ::c_ulong = 50;
-pub const SYS_chroot: ::c_ulong = 51;
-pub const SYS_fchmod: ::c_ulong = 52;
-pub const SYS_fchmodat: ::c_ulong = 53;
-pub const SYS_fchownat: ::c_ulong = 54;
-pub const SYS_fchown: ::c_ulong = 55;
-pub const SYS_openat: ::c_ulong = 56;
-pub const SYS_close: ::c_ulong = 57;
-pub const SYS_vhangup: ::c_ulong = 58;
-pub const SYS_pipe2: ::c_ulong = 59;
-pub const SYS_quotactl: ::c_ulong = 60;
-pub const SYS_getdents64: ::c_ulong = 61;
-pub const SYS_read: ::c_ulong = 63;
-pub const SYS_write: ::c_ulong = 64;
-pub const SYS_readv: ::c_ulong = 65;
-pub const SYS_writev: ::c_ulong = 66;
-pub const SYS_pread64: ::c_ulong = 67;
-pub const SYS_pwrite64: ::c_ulong = 68;
-pub const SYS_preadv: ::c_ulong = 69;
-pub const SYS_pwritev: ::c_ulong = 70;
-pub const SYS_pselect6: ::c_ulong = 72;
-pub const SYS_ppoll: ::c_ulong = 73;
-pub const SYS_signalfd4: ::c_ulong = 74;
-pub const SYS_vmsplice: ::c_ulong = 75;
-pub const SYS_splice: ::c_ulong = 76;
-pub const SYS_tee: ::c_ulong = 77;
-pub const SYS_readlinkat: ::c_ulong = 78;
-pub const SYS_sync: ::c_ulong = 81;
-pub const SYS_fsync: ::c_ulong = 82;
-pub const SYS_fdatasync: ::c_ulong = 83;
-pub const SYS_sync_file_range: ::c_ulong = 84;
-pub const SYS_timerfd_create: ::c_ulong = 85;
-pub const SYS_timerfd_settime: ::c_ulong = 86;
-pub const SYS_timerfd_gettime: ::c_ulong = 87;
-pub const SYS_utimensat: ::c_ulong = 88;
-pub const SYS_acct: ::c_ulong = 89;
-pub const SYS_capget: ::c_ulong = 90;
-pub const SYS_capset: ::c_ulong = 91;
-pub const SYS_personality: ::c_ulong = 92;
-pub const SYS_exit: ::c_ulong = 93;
-pub const SYS_exit_group: ::c_ulong = 94;
-pub const SYS_waitid: ::c_ulong = 95;
-pub const SYS_set_tid_address: ::c_ulong = 96;
-pub const SYS_unshare: ::c_ulong = 97;
-pub const SYS_futex: ::c_ulong = 98;
-pub const SYS_set_robust_list: ::c_ulong = 99;
-pub const SYS_get_robust_list: ::c_ulong = 100;
-pub const SYS_nanosleep: ::c_ulong = 101;
-pub const SYS_getitimer: ::c_ulong = 102;
-pub const SYS_setitimer: ::c_ulong = 103;
-pub const SYS_kexec_load: ::c_ulong = 104;
-pub const SYS_init_module: ::c_ulong = 105;
-pub const SYS_delete_module: ::c_ulong = 106;
-pub const SYS_timer_create: ::c_ulong = 107;
-pub const SYS_timer_gettime: ::c_ulong = 108;
-pub const SYS_timer_getoverrun: ::c_ulong = 109;
-pub const SYS_timer_settime: ::c_ulong = 110;
-pub const SYS_timer_delete: ::c_ulong = 111;
-pub const SYS_clock_settime: ::c_ulong = 112;
-pub const SYS_clock_gettime: ::c_ulong = 113;
-pub const SYS_clock_getres: ::c_ulong = 114;
-pub const SYS_clock_nanosleep: ::c_ulong = 115;
-pub const SYS_syslog: ::c_ulong = 116;
-pub const SYS_ptrace: ::c_ulong = 117;
-pub const SYS_sched_setparam: ::c_ulong = 118;
-pub const SYS_sched_setscheduler: ::c_ulong = 119;
-pub const SYS_sched_getscheduler: ::c_ulong = 120;
-pub const SYS_sched_getparam: ::c_ulong = 121;
-pub const SYS_sched_setaffinity: ::c_ulong = 122;
-pub const SYS_sched_getaffinity: ::c_ulong = 123;
-pub const SYS_sched_yield: ::c_ulong = 124;
-pub const SYS_sched_get_priority_max: ::c_ulong = 125;
-pub const SYS_sched_get_priority_min: ::c_ulong = 126;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 127;
-pub const SYS_restart_syscall: ::c_ulong = 128;
-pub const SYS_kill: ::c_ulong = 129;
-pub const SYS_tkill: ::c_ulong = 130;
-pub const SYS_tgkill: ::c_ulong = 131;
-pub const SYS_sigaltstack: ::c_ulong = 132;
-pub const SYS_rt_sigsuspend: ::c_ulong = 133;
-pub const SYS_rt_sigaction: ::c_ulong = 134;
-pub const SYS_rt_sigprocmask: ::c_ulong = 135;
-pub const SYS_rt_sigpending: ::c_ulong = 136;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 137;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 138;
-pub const SYS_rt_sigreturn: ::c_ulong = 139;
-pub const SYS_setpriority: ::c_ulong = 140;
-pub const SYS_getpriority: ::c_ulong = 141;
-pub const SYS_reboot: ::c_ulong = 142;
-pub const SYS_setregid: ::c_ulong = 143;
-pub const SYS_setgid: ::c_ulong = 144;
-pub const SYS_setreuid: ::c_ulong = 145;
-pub const SYS_setuid: ::c_ulong = 146;
-pub const SYS_setresuid: ::c_ulong = 147;
-pub const SYS_getresuid: ::c_ulong = 148;
-pub const SYS_setresgid: ::c_ulong = 149;
-pub const SYS_getresgid: ::c_ulong = 150;
-pub const SYS_setfsuid: ::c_ulong = 151;
-pub const SYS_setfsgid: ::c_ulong = 152;
-pub const SYS_times: ::c_ulong = 153;
-pub const SYS_setpgid: ::c_ulong = 154;
-pub const SYS_getpgid: ::c_ulong = 155;
-pub const SYS_getsid: ::c_ulong = 156;
-pub const SYS_setsid: ::c_ulong = 157;
-pub const SYS_getgroups: ::c_ulong = 158;
-pub const SYS_setgroups: ::c_ulong = 159;
-pub const SYS_uname: ::c_ulong = 160;
-pub const SYS_sethostname: ::c_ulong = 161;
-pub const SYS_setdomainname: ::c_ulong = 162;
-pub const SYS_getrlimit: ::c_ulong = 163;
-pub const SYS_setrlimit: ::c_ulong = 164;
-pub const SYS_getrusage: ::c_ulong = 165;
-pub const SYS_umask: ::c_ulong = 166;
-pub const SYS_prctl: ::c_ulong = 167;
-pub const SYS_getcpu: ::c_ulong = 168;
-pub const SYS_gettimeofday: ::c_ulong = 169;
-pub const SYS_settimeofday: ::c_ulong = 170;
-pub const SYS_adjtimex: ::c_ulong = 171;
-pub const SYS_getpid: ::c_ulong = 172;
-pub const SYS_getppid: ::c_ulong = 173;
-pub const SYS_getuid: ::c_ulong = 174;
-pub const SYS_geteuid: ::c_ulong = 175;
-pub const SYS_getgid: ::c_ulong = 176;
-pub const SYS_getegid: ::c_ulong = 177;
-pub const SYS_gettid: ::c_ulong = 178;
-pub const SYS_sysinfo: ::c_ulong = 179;
-pub const SYS_mq_open: ::c_ulong = 180;
-pub const SYS_mq_unlink: ::c_ulong = 181;
-pub const SYS_mq_timedsend: ::c_ulong = 182;
-pub const SYS_mq_timedreceive: ::c_ulong = 183;
-pub const SYS_mq_notify: ::c_ulong = 184;
-pub const SYS_mq_getsetattr: ::c_ulong = 185;
-pub const SYS_msgget: ::c_ulong = 186;
-pub const SYS_msgctl: ::c_ulong = 187;
-pub const SYS_msgrcv: ::c_ulong = 188;
-pub const SYS_msgsnd: ::c_ulong = 189;
-pub const SYS_semget: ::c_ulong = 190;
-pub const SYS_semctl: ::c_ulong = 191;
-pub const SYS_semtimedop: ::c_ulong = 192;
-pub const SYS_semop: ::c_ulong = 193;
-pub const SYS_shmget: ::c_ulong = 194;
-pub const SYS_shmctl: ::c_ulong = 195;
-pub const SYS_shmat: ::c_ulong = 196;
-pub const SYS_shmdt: ::c_ulong = 197;
-pub const SYS_socket: ::c_ulong = 198;
-pub const SYS_socketpair: ::c_ulong = 199;
-pub const SYS_bind: ::c_ulong = 200;
-pub const SYS_listen: ::c_ulong = 201;
-pub const SYS_accept: ::c_ulong = 202;
-pub const SYS_connect: ::c_ulong = 203;
-pub const SYS_getsockname: ::c_ulong = 204;
-pub const SYS_getpeername: ::c_ulong = 205;
-pub const SYS_sendto: ::c_ulong = 206;
-pub const SYS_recvfrom: ::c_ulong = 207;
-pub const SYS_setsockopt: ::c_ulong = 208;
-pub const SYS_getsockopt: ::c_ulong = 209;
-pub const SYS_shutdown: ::c_ulong = 210;
-pub const SYS_sendmsg: ::c_ulong = 211;
-pub const SYS_recvmsg: ::c_ulong = 212;
-pub const SYS_readahead: ::c_ulong = 213;
-pub const SYS_brk: ::c_ulong = 214;
-pub const SYS_munmap: ::c_ulong = 215;
-pub const SYS_mremap: ::c_ulong = 216;
-pub const SYS_add_key: ::c_ulong = 217;
-pub const SYS_request_key: ::c_ulong = 218;
-pub const SYS_keyctl: ::c_ulong = 219;
-pub const SYS_clone: ::c_ulong = 220;
-pub const SYS_execve: ::c_ulong = 221;
-pub const SYS_swapon: ::c_ulong = 224;
-pub const SYS_swapoff: ::c_ulong = 225;
-pub const SYS_mprotect: ::c_ulong = 226;
-pub const SYS_msync: ::c_ulong = 227;
-pub const SYS_mlock: ::c_ulong = 228;
-pub const SYS_munlock: ::c_ulong = 229;
-pub const SYS_mlockall: ::c_ulong = 230;
-pub const SYS_munlockall: ::c_ulong = 231;
-pub const SYS_mincore: ::c_ulong = 232;
-pub const SYS_madvise: ::c_ulong = 233;
-pub const SYS_remap_file_pages: ::c_ulong = 234;
-pub const SYS_mbind: ::c_ulong = 235;
-pub const SYS_get_mempolicy: ::c_ulong = 236;
-pub const SYS_set_mempolicy: ::c_ulong = 237;
-pub const SYS_migrate_pages: ::c_ulong = 238;
-pub const SYS_move_pages: ::c_ulong = 239;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 240;
-pub const SYS_perf_event_open: ::c_ulong = 241;
-pub const SYS_accept4: ::c_ulong = 242;
-pub const SYS_recvmmsg: ::c_ulong = 243;
-pub const SYS_arch_specific_syscall: ::c_ulong = 244;
-pub const SYS_wait4: ::c_ulong = 260;
-pub const SYS_prlimit64: ::c_ulong = 261;
-pub const SYS_fanotify_init: ::c_ulong = 262;
-pub const SYS_fanotify_mark: ::c_ulong = 263;
-pub const SYS_name_to_handle_at: ::c_ulong = 264;
-pub const SYS_open_by_handle_at: ::c_ulong = 265;
-pub const SYS_clock_adjtime: ::c_ulong = 266;
-pub const SYS_syncfs: ::c_ulong = 267;
-pub const SYS_setns: ::c_ulong = 268;
-pub const SYS_sendmmsg: ::c_ulong = 269;
-pub const SYS_process_vm_readv: ::c_ulong = 270;
-pub const SYS_process_vm_writev: ::c_ulong = 271;
-pub const SYS_kcmp: ::c_ulong = 272;
-pub const SYS_finit_module: ::c_ulong = 273;
-pub const SYS_sched_setattr: ::c_ulong = 274;
-pub const SYS_sched_getattr: ::c_ulong = 275;
-pub const SYS_renameat2: ::c_ulong = 276;
-pub const SYS_seccomp: ::c_ulong = 277;
-pub const SYS_getrandom: ::c_ulong = 278;
-pub const SYS_memfd_create: ::c_ulong = 279;
-pub const SYS_bpf: ::c_ulong = 280;
-pub const SYS_execveat: ::c_ulong = 281;
-pub const SYS_userfaultfd: ::c_ulong = 282;
-pub const SYS_membarrier: ::c_ulong = 283;
-pub const SYS_mlock2: ::c_ulong = 284;
-pub const SYS_copy_file_range: ::c_ulong = 285;
-pub const SYS_preadv2: ::c_ulong = 286;
-pub const SYS_pwritev2: ::c_ulong = 287;
-pub const SYS_pkey_mprotect: ::c_ulong = 288;
-pub const SYS_pkey_alloc: ::c_ulong = 289;
-pub const SYS_pkey_free: ::c_ulong = 290;
-pub const SYS_syscalls: ::c_ulong = 291;
+pub const SYS_io_setup: ::c_long = 0;
+pub const SYS_io_destroy: ::c_long = 1;
+pub const SYS_io_submit: ::c_long = 2;
+pub const SYS_io_cancel: ::c_long = 3;
+pub const SYS_io_getevents: ::c_long = 4;
+pub const SYS_setxattr: ::c_long = 5;
+pub const SYS_lsetxattr: ::c_long = 6;
+pub const SYS_fsetxattr: ::c_long = 7;
+pub const SYS_getxattr: ::c_long = 8;
+pub const SYS_lgetxattr: ::c_long = 9;
+pub const SYS_fgetxattr: ::c_long = 10;
+pub const SYS_listxattr: ::c_long = 11;
+pub const SYS_llistxattr: ::c_long = 12;
+pub const SYS_flistxattr: ::c_long = 13;
+pub const SYS_removexattr: ::c_long = 14;
+pub const SYS_lremovexattr: ::c_long = 15;
+pub const SYS_fremovexattr: ::c_long = 16;
+pub const SYS_getcwd: ::c_long = 17;
+pub const SYS_lookup_dcookie: ::c_long = 18;
+pub const SYS_eventfd2: ::c_long = 19;
+pub const SYS_epoll_create1: ::c_long = 20;
+pub const SYS_epoll_ctl: ::c_long = 21;
+pub const SYS_epoll_pwait: ::c_long = 22;
+pub const SYS_dup: ::c_long = 23;
+pub const SYS_dup3: ::c_long = 24;
+pub const SYS_inotify_init1: ::c_long = 26;
+pub const SYS_inotify_add_watch: ::c_long = 27;
+pub const SYS_inotify_rm_watch: ::c_long = 28;
+pub const SYS_ioctl: ::c_long = 29;
+pub const SYS_ioprio_set: ::c_long = 30;
+pub const SYS_ioprio_get: ::c_long = 31;
+pub const SYS_flock: ::c_long = 32;
+pub const SYS_mknodat: ::c_long = 33;
+pub const SYS_mkdirat: ::c_long = 34;
+pub const SYS_unlinkat: ::c_long = 35;
+pub const SYS_symlinkat: ::c_long = 36;
+pub const SYS_linkat: ::c_long = 37;
+pub const SYS_renameat: ::c_long = 38;
+pub const SYS_umount2: ::c_long = 39;
+pub const SYS_mount: ::c_long = 40;
+pub const SYS_pivot_root: ::c_long = 41;
+pub const SYS_nfsservctl: ::c_long = 42;
+pub const SYS_fallocate: ::c_long = 47;
+pub const SYS_faccessat: ::c_long = 48;
+pub const SYS_chdir: ::c_long = 49;
+pub const SYS_fchdir: ::c_long = 50;
+pub const SYS_chroot: ::c_long = 51;
+pub const SYS_fchmod: ::c_long = 52;
+pub const SYS_fchmodat: ::c_long = 53;
+pub const SYS_fchownat: ::c_long = 54;
+pub const SYS_fchown: ::c_long = 55;
+pub const SYS_openat: ::c_long = 56;
+pub const SYS_close: ::c_long = 57;
+pub const SYS_vhangup: ::c_long = 58;
+pub const SYS_pipe2: ::c_long = 59;
+pub const SYS_quotactl: ::c_long = 60;
+pub const SYS_getdents64: ::c_long = 61;
+pub const SYS_read: ::c_long = 63;
+pub const SYS_write: ::c_long = 64;
+pub const SYS_readv: ::c_long = 65;
+pub const SYS_writev: ::c_long = 66;
+pub const SYS_pread64: ::c_long = 67;
+pub const SYS_pwrite64: ::c_long = 68;
+pub const SYS_preadv: ::c_long = 69;
+pub const SYS_pwritev: ::c_long = 70;
+pub const SYS_pselect6: ::c_long = 72;
+pub const SYS_ppoll: ::c_long = 73;
+pub const SYS_signalfd4: ::c_long = 74;
+pub const SYS_vmsplice: ::c_long = 75;
+pub const SYS_splice: ::c_long = 76;
+pub const SYS_tee: ::c_long = 77;
+pub const SYS_readlinkat: ::c_long = 78;
+pub const SYS_sync: ::c_long = 81;
+pub const SYS_fsync: ::c_long = 82;
+pub const SYS_fdatasync: ::c_long = 83;
+pub const SYS_sync_file_range: ::c_long = 84;
+pub const SYS_timerfd_create: ::c_long = 85;
+pub const SYS_timerfd_settime: ::c_long = 86;
+pub const SYS_timerfd_gettime: ::c_long = 87;
+pub const SYS_utimensat: ::c_long = 88;
+pub const SYS_acct: ::c_long = 89;
+pub const SYS_capget: ::c_long = 90;
+pub const SYS_capset: ::c_long = 91;
+pub const SYS_personality: ::c_long = 92;
+pub const SYS_exit: ::c_long = 93;
+pub const SYS_exit_group: ::c_long = 94;
+pub const SYS_waitid: ::c_long = 95;
+pub const SYS_set_tid_address: ::c_long = 96;
+pub const SYS_unshare: ::c_long = 97;
+pub const SYS_futex: ::c_long = 98;
+pub const SYS_set_robust_list: ::c_long = 99;
+pub const SYS_get_robust_list: ::c_long = 100;
+pub const SYS_nanosleep: ::c_long = 101;
+pub const SYS_getitimer: ::c_long = 102;
+pub const SYS_setitimer: ::c_long = 103;
+pub const SYS_kexec_load: ::c_long = 104;
+pub const SYS_init_module: ::c_long = 105;
+pub const SYS_delete_module: ::c_long = 106;
+pub const SYS_timer_create: ::c_long = 107;
+pub const SYS_timer_gettime: ::c_long = 108;
+pub const SYS_timer_getoverrun: ::c_long = 109;
+pub const SYS_timer_settime: ::c_long = 110;
+pub const SYS_timer_delete: ::c_long = 111;
+pub const SYS_clock_settime: ::c_long = 112;
+pub const SYS_clock_gettime: ::c_long = 113;
+pub const SYS_clock_getres: ::c_long = 114;
+pub const SYS_clock_nanosleep: ::c_long = 115;
+pub const SYS_syslog: ::c_long = 116;
+pub const SYS_ptrace: ::c_long = 117;
+pub const SYS_sched_setparam: ::c_long = 118;
+pub const SYS_sched_setscheduler: ::c_long = 119;
+pub const SYS_sched_getscheduler: ::c_long = 120;
+pub const SYS_sched_getparam: ::c_long = 121;
+pub const SYS_sched_setaffinity: ::c_long = 122;
+pub const SYS_sched_getaffinity: ::c_long = 123;
+pub const SYS_sched_yield: ::c_long = 124;
+pub const SYS_sched_get_priority_max: ::c_long = 125;
+pub const SYS_sched_get_priority_min: ::c_long = 126;
+pub const SYS_sched_rr_get_interval: ::c_long = 127;
+pub const SYS_restart_syscall: ::c_long = 128;
+pub const SYS_kill: ::c_long = 129;
+pub const SYS_tkill: ::c_long = 130;
+pub const SYS_tgkill: ::c_long = 131;
+pub const SYS_sigaltstack: ::c_long = 132;
+pub const SYS_rt_sigsuspend: ::c_long = 133;
+pub const SYS_rt_sigaction: ::c_long = 134;
+pub const SYS_rt_sigprocmask: ::c_long = 135;
+pub const SYS_rt_sigpending: ::c_long = 136;
+pub const SYS_rt_sigtimedwait: ::c_long = 137;
+pub const SYS_rt_sigqueueinfo: ::c_long = 138;
+pub const SYS_rt_sigreturn: ::c_long = 139;
+pub const SYS_setpriority: ::c_long = 140;
+pub const SYS_getpriority: ::c_long = 141;
+pub const SYS_reboot: ::c_long = 142;
+pub const SYS_setregid: ::c_long = 143;
+pub const SYS_setgid: ::c_long = 144;
+pub const SYS_setreuid: ::c_long = 145;
+pub const SYS_setuid: ::c_long = 146;
+pub const SYS_setresuid: ::c_long = 147;
+pub const SYS_getresuid: ::c_long = 148;
+pub const SYS_setresgid: ::c_long = 149;
+pub const SYS_getresgid: ::c_long = 150;
+pub const SYS_setfsuid: ::c_long = 151;
+pub const SYS_setfsgid: ::c_long = 152;
+pub const SYS_times: ::c_long = 153;
+pub const SYS_setpgid: ::c_long = 154;
+pub const SYS_getpgid: ::c_long = 155;
+pub const SYS_getsid: ::c_long = 156;
+pub const SYS_setsid: ::c_long = 157;
+pub const SYS_getgroups: ::c_long = 158;
+pub const SYS_setgroups: ::c_long = 159;
+pub const SYS_uname: ::c_long = 160;
+pub const SYS_sethostname: ::c_long = 161;
+pub const SYS_setdomainname: ::c_long = 162;
+pub const SYS_getrlimit: ::c_long = 163;
+pub const SYS_setrlimit: ::c_long = 164;
+pub const SYS_getrusage: ::c_long = 165;
+pub const SYS_umask: ::c_long = 166;
+pub const SYS_prctl: ::c_long = 167;
+pub const SYS_getcpu: ::c_long = 168;
+pub const SYS_gettimeofday: ::c_long = 169;
+pub const SYS_settimeofday: ::c_long = 170;
+pub const SYS_adjtimex: ::c_long = 171;
+pub const SYS_getpid: ::c_long = 172;
+pub const SYS_getppid: ::c_long = 173;
+pub const SYS_getuid: ::c_long = 174;
+pub const SYS_geteuid: ::c_long = 175;
+pub const SYS_getgid: ::c_long = 176;
+pub const SYS_getegid: ::c_long = 177;
+pub const SYS_gettid: ::c_long = 178;
+pub const SYS_sysinfo: ::c_long = 179;
+pub const SYS_mq_open: ::c_long = 180;
+pub const SYS_mq_unlink: ::c_long = 181;
+pub const SYS_mq_timedsend: ::c_long = 182;
+pub const SYS_mq_timedreceive: ::c_long = 183;
+pub const SYS_mq_notify: ::c_long = 184;
+pub const SYS_mq_getsetattr: ::c_long = 185;
+pub const SYS_msgget: ::c_long = 186;
+pub const SYS_msgctl: ::c_long = 187;
+pub const SYS_msgrcv: ::c_long = 188;
+pub const SYS_msgsnd: ::c_long = 189;
+pub const SYS_semget: ::c_long = 190;
+pub const SYS_semctl: ::c_long = 191;
+pub const SYS_semtimedop: ::c_long = 192;
+pub const SYS_semop: ::c_long = 193;
+pub const SYS_shmget: ::c_long = 194;
+pub const SYS_shmctl: ::c_long = 195;
+pub const SYS_shmat: ::c_long = 196;
+pub const SYS_shmdt: ::c_long = 197;
+pub const SYS_socket: ::c_long = 198;
+pub const SYS_socketpair: ::c_long = 199;
+pub const SYS_bind: ::c_long = 200;
+pub const SYS_listen: ::c_long = 201;
+pub const SYS_accept: ::c_long = 202;
+pub const SYS_connect: ::c_long = 203;
+pub const SYS_getsockname: ::c_long = 204;
+pub const SYS_getpeername: ::c_long = 205;
+pub const SYS_sendto: ::c_long = 206;
+pub const SYS_recvfrom: ::c_long = 207;
+pub const SYS_setsockopt: ::c_long = 208;
+pub const SYS_getsockopt: ::c_long = 209;
+pub const SYS_shutdown: ::c_long = 210;
+pub const SYS_sendmsg: ::c_long = 211;
+pub const SYS_recvmsg: ::c_long = 212;
+pub const SYS_readahead: ::c_long = 213;
+pub const SYS_brk: ::c_long = 214;
+pub const SYS_munmap: ::c_long = 215;
+pub const SYS_mremap: ::c_long = 216;
+pub const SYS_add_key: ::c_long = 217;
+pub const SYS_request_key: ::c_long = 218;
+pub const SYS_keyctl: ::c_long = 219;
+pub const SYS_clone: ::c_long = 220;
+pub const SYS_execve: ::c_long = 221;
+pub const SYS_swapon: ::c_long = 224;
+pub const SYS_swapoff: ::c_long = 225;
+pub const SYS_mprotect: ::c_long = 226;
+pub const SYS_msync: ::c_long = 227;
+pub const SYS_mlock: ::c_long = 228;
+pub const SYS_munlock: ::c_long = 229;
+pub const SYS_mlockall: ::c_long = 230;
+pub const SYS_munlockall: ::c_long = 231;
+pub const SYS_mincore: ::c_long = 232;
+pub const SYS_madvise: ::c_long = 233;
+pub const SYS_remap_file_pages: ::c_long = 234;
+pub const SYS_mbind: ::c_long = 235;
+pub const SYS_get_mempolicy: ::c_long = 236;
+pub const SYS_set_mempolicy: ::c_long = 237;
+pub const SYS_migrate_pages: ::c_long = 238;
+pub const SYS_move_pages: ::c_long = 239;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 240;
+pub const SYS_perf_event_open: ::c_long = 241;
+pub const SYS_accept4: ::c_long = 242;
+pub const SYS_recvmmsg: ::c_long = 243;
+pub const SYS_arch_specific_syscall: ::c_long = 244;
+pub const SYS_wait4: ::c_long = 260;
+pub const SYS_prlimit64: ::c_long = 261;
+pub const SYS_fanotify_init: ::c_long = 262;
+pub const SYS_fanotify_mark: ::c_long = 263;
+pub const SYS_name_to_handle_at: ::c_long = 264;
+pub const SYS_open_by_handle_at: ::c_long = 265;
+pub const SYS_clock_adjtime: ::c_long = 266;
+pub const SYS_syncfs: ::c_long = 267;
+pub const SYS_setns: ::c_long = 268;
+pub const SYS_sendmmsg: ::c_long = 269;
+pub const SYS_process_vm_readv: ::c_long = 270;
+pub const SYS_process_vm_writev: ::c_long = 271;
+pub const SYS_kcmp: ::c_long = 272;
+pub const SYS_finit_module: ::c_long = 273;
+pub const SYS_sched_setattr: ::c_long = 274;
+pub const SYS_sched_getattr: ::c_long = 275;
+pub const SYS_renameat2: ::c_long = 276;
+pub const SYS_seccomp: ::c_long = 277;
+pub const SYS_getrandom: ::c_long = 278;
+pub const SYS_memfd_create: ::c_long = 279;
+pub const SYS_bpf: ::c_long = 280;
+pub const SYS_execveat: ::c_long = 281;
+pub const SYS_userfaultfd: ::c_long = 282;
+pub const SYS_membarrier: ::c_long = 283;
+pub const SYS_mlock2: ::c_long = 284;
+pub const SYS_copy_file_range: ::c_long = 285;
+pub const SYS_preadv2: ::c_long = 286;
+pub const SYS_pwritev2: ::c_long = 287;
+pub const SYS_pkey_mprotect: ::c_long = 288;
+pub const SYS_pkey_alloc: ::c_long = 289;
+pub const SYS_pkey_free: ::c_long = 290;
+pub const SYS_syscalls: ::c_long = 291;
+
+#[link(name = "util")]
+extern {
+ pub fn sysctl(name: *mut ::c_int,
+ namelen: ::c_int,
+ oldp: *mut ::c_void,
+ oldlenp: *mut ::size_t,
+ newp: *mut ::c_void,
+ newlen: ::size_t)
+ -> ::c_int;
+}
diff --git a/src/unix/notbsd/linux/other/b64/mod.rs b/src/unix/notbsd/linux/other/b64/mod.rs
index aa0e091..b7d23c5 100644
--- a/src/unix/notbsd/linux/other/b64/mod.rs
+++ b/src/unix/notbsd/linux/other/b64/mod.rs
@@ -1,7 +1,5 @@
//! 64-bit specific definitions for linux-like values
-pub type c_long = i64;
-pub type c_ulong = u64;
pub type clock_t = i64;
pub type time_t = i64;
pub type ino_t = u64;
@@ -15,18 +13,18 @@
}
pub struct sysinfo {
- pub uptime: ::c_long,
- pub loads: [::c_ulong; 3],
- pub totalram: ::c_ulong,
- pub freeram: ::c_ulong,
- pub sharedram: ::c_ulong,
- pub bufferram: ::c_ulong,
- pub totalswap: ::c_ulong,
- pub freeswap: ::c_ulong,
+ pub uptime: i64,
+ pub loads: [u64; 3],
+ pub totalram: u64,
+ pub freeram: u64,
+ pub sharedram: u64,
+ pub bufferram: u64,
+ pub totalswap: u64,
+ pub freeswap: u64,
pub procs: ::c_ushort,
pub pad: ::c_ushort,
- pub totalhigh: ::c_ulong,
- pub freehigh: ::c_ulong,
+ pub totalhigh: u64,
+ pub freehigh: u64,
pub mem_unit: ::c_uint,
pub _f: [::c_char; 0],
}
@@ -64,6 +62,15 @@
} else if #[cfg(any(target_arch = "x86_64"))] {
mod x86_64;
pub use self::x86_64::*;
+ cfg_if! {
+ if #[cfg(target_pointer_width = "32")] {
+ mod x32;
+ pub use self::x32::*;
+ } else {
+ mod not_x32;
+ pub use self::not_x32::*;
+ }
+ }
} else {
// Unknown target_arch
}
diff --git a/src/unix/notbsd/linux/other/b64/not_x32.rs b/src/unix/notbsd/linux/other/b64/not_x32.rs
new file mode 100644
index 0000000..fce838c
--- /dev/null
+++ b/src/unix/notbsd/linux/other/b64/not_x32.rs
@@ -0,0 +1,25 @@
+pub type c_long = i64;
+pub type c_ulong = u64;
+
+pub const SYS_uselib: ::c_long = 134;
+pub const SYS__sysctl: ::c_long = 156;
+pub const SYS_create_module: ::c_long = 174;
+pub const SYS_get_kernel_syms: ::c_long = 177;
+pub const SYS_query_module: ::c_long = 178;
+pub const SYS_nfsservctl: ::c_long = 180;
+pub const SYS_set_thread_area: ::c_long = 205;
+pub const SYS_get_thread_area: ::c_long = 211;
+pub const SYS_epoll_ctl_old: ::c_long = 214;
+pub const SYS_epoll_wait_old: ::c_long = 215;
+pub const SYS_vserver: ::c_long = 236;
+
+#[link(name = "util")]
+extern {
+ pub fn sysctl(name: *mut ::c_int,
+ namelen: ::c_int,
+ oldp: *mut ::c_void,
+ oldlenp: *mut ::size_t,
+ newp: *mut ::c_void,
+ newlen: ::size_t)
+ -> ::c_int;
+}
diff --git a/src/unix/notbsd/linux/other/b64/powerpc64.rs b/src/unix/notbsd/linux/other/b64/powerpc64.rs
index cd3701c..4fb30b2 100644
--- a/src/unix/notbsd/linux/other/b64/powerpc64.rs
+++ b/src/unix/notbsd/linux/other/b64/powerpc64.rs
@@ -1,5 +1,7 @@
//! PowerPC64-specific definitions for 64-bit linux-like values
+pub type c_long = i64;
+pub type c_ulong = u64;
pub type c_char = u8;
pub type wchar_t = i32;
pub type nlink_t = u64;
@@ -454,6 +456,7 @@
pub const B3000000: ::speed_t = 0o0034;
pub const B3500000: ::speed_t = 0o0035;
pub const B4000000: ::speed_t = 0o0036;
+pub const BOTHER: ::speed_t = 0o0037;
pub const VEOL: usize = 6;
pub const VEOL2: usize = 8;
@@ -482,362 +485,373 @@
pub const FIONREAD: ::c_ulong = 0x4004667f;
// Syscall table
-pub const SYS_restart_syscall: ::c_ulong = 0;
-pub const SYS_exit: ::c_ulong = 1;
-pub const SYS_fork: ::c_ulong = 2;
-pub const SYS_read: ::c_ulong = 3;
-pub const SYS_write: ::c_ulong = 4;
-pub const SYS_open: ::c_ulong = 5;
-pub const SYS_close: ::c_ulong = 6;
-pub const SYS_waitpid: ::c_ulong = 7;
-pub const SYS_creat: ::c_ulong = 8;
-pub const SYS_link: ::c_ulong = 9;
-pub const SYS_unlink: ::c_ulong = 10;
-pub const SYS_execve: ::c_ulong = 11;
-pub const SYS_chdir: ::c_ulong = 12;
-pub const SYS_time: ::c_ulong = 13;
-pub const SYS_mknod: ::c_ulong = 14;
-pub const SYS_chmod: ::c_ulong = 15;
-pub const SYS_lchown: ::c_ulong = 16;
-pub const SYS_break: ::c_ulong = 17;
-pub const SYS_oldstat: ::c_ulong = 18;
-pub const SYS_lseek: ::c_ulong = 19;
-pub const SYS_getpid: ::c_ulong = 20;
-pub const SYS_mount: ::c_ulong = 21;
-pub const SYS_umount: ::c_ulong = 22;
-pub const SYS_setuid: ::c_ulong = 23;
-pub const SYS_getuid: ::c_ulong = 24;
-pub const SYS_stime: ::c_ulong = 25;
-pub const SYS_ptrace: ::c_ulong = 26;
-pub const SYS_alarm: ::c_ulong = 27;
-pub const SYS_oldfstat: ::c_ulong = 28;
-pub const SYS_pause: ::c_ulong = 29;
-pub const SYS_utime: ::c_ulong = 30;
-pub const SYS_stty: ::c_ulong = 31;
-pub const SYS_gtty: ::c_ulong = 32;
-pub const SYS_access: ::c_ulong = 33;
-pub const SYS_nice: ::c_ulong = 34;
-pub const SYS_ftime: ::c_ulong = 35;
-pub const SYS_sync: ::c_ulong = 36;
-pub const SYS_kill: ::c_ulong = 37;
-pub const SYS_rename: ::c_ulong = 38;
-pub const SYS_mkdir: ::c_ulong = 39;
-pub const SYS_rmdir: ::c_ulong = 40;
-pub const SYS_dup: ::c_ulong = 41;
-pub const SYS_pipe: ::c_ulong = 42;
-pub const SYS_times: ::c_ulong = 43;
-pub const SYS_prof: ::c_ulong = 44;
-pub const SYS_brk: ::c_ulong = 45;
-pub const SYS_setgid: ::c_ulong = 46;
-pub const SYS_getgid: ::c_ulong = 47;
-pub const SYS_signal: ::c_ulong = 48;
-pub const SYS_geteuid: ::c_ulong = 49;
-pub const SYS_getegid: ::c_ulong = 50;
-pub const SYS_acct: ::c_ulong = 51;
-pub const SYS_umount2: ::c_ulong = 52;
-pub const SYS_lock: ::c_ulong = 53;
-pub const SYS_ioctl: ::c_ulong = 54;
-pub const SYS_fcntl: ::c_ulong = 55;
-pub const SYS_mpx: ::c_ulong = 56;
-pub const SYS_setpgid: ::c_ulong = 57;
-pub const SYS_ulimit: ::c_ulong = 58;
-pub const SYS_oldolduname: ::c_ulong = 59;
-pub const SYS_umask: ::c_ulong = 60;
-pub const SYS_chroot: ::c_ulong = 61;
-pub const SYS_ustat: ::c_ulong = 62;
-pub const SYS_dup2: ::c_ulong = 63;
-pub const SYS_getppid: ::c_ulong = 64;
-pub const SYS_getpgrp: ::c_ulong = 65;
-pub const SYS_setsid: ::c_ulong = 66;
-pub const SYS_sigaction: ::c_ulong = 67;
-pub const SYS_sgetmask: ::c_ulong = 68;
-pub const SYS_ssetmask: ::c_ulong = 69;
-pub const SYS_setreuid: ::c_ulong = 70;
-pub const SYS_setregid: ::c_ulong = 71;
-pub const SYS_sigsuspend: ::c_ulong = 72;
-pub const SYS_sigpending: ::c_ulong = 73;
-pub const SYS_sethostname: ::c_ulong = 74;
-pub const SYS_setrlimit: ::c_ulong = 75;
-pub const SYS_getrlimit: ::c_ulong = 76;
-pub const SYS_getrusage: ::c_ulong = 77;
-pub const SYS_gettimeofday: ::c_ulong = 78;
-pub const SYS_settimeofday: ::c_ulong = 79;
-pub const SYS_getgroups: ::c_ulong = 80;
-pub const SYS_setgroups: ::c_ulong = 81;
-pub const SYS_select: ::c_ulong = 82;
-pub const SYS_symlink: ::c_ulong = 83;
-pub const SYS_oldlstat: ::c_ulong = 84;
-pub const SYS_readlink: ::c_ulong = 85;
-pub const SYS_uselib: ::c_ulong = 86;
-pub const SYS_swapon: ::c_ulong = 87;
-pub const SYS_reboot: ::c_ulong = 88;
-pub const SYS_readdir: ::c_ulong = 89;
-pub const SYS_mmap: ::c_ulong = 90;
-pub const SYS_munmap: ::c_ulong = 91;
-pub const SYS_truncate: ::c_ulong = 92;
-pub const SYS_ftruncate: ::c_ulong = 93;
-pub const SYS_fchmod: ::c_ulong = 94;
-pub const SYS_fchown: ::c_ulong = 95;
-pub const SYS_getpriority: ::c_ulong = 96;
-pub const SYS_setpriority: ::c_ulong = 97;
-pub const SYS_profil: ::c_ulong = 98;
-pub const SYS_statfs: ::c_ulong = 99;
-pub const SYS_fstatfs: ::c_ulong = 100;
-pub const SYS_ioperm: ::c_ulong = 101;
-pub const SYS_socketcall: ::c_ulong = 102;
-pub const SYS_syslog: ::c_ulong = 103;
-pub const SYS_setitimer: ::c_ulong = 104;
-pub const SYS_getitimer: ::c_ulong = 105;
-pub const SYS_stat: ::c_ulong = 106;
-pub const SYS_lstat: ::c_ulong = 107;
-pub const SYS_fstat: ::c_ulong = 108;
-pub const SYS_olduname: ::c_ulong = 109;
-pub const SYS_iopl: ::c_ulong = 110;
-pub const SYS_vhangup: ::c_ulong = 111;
-pub const SYS_idle: ::c_ulong = 112;
-pub const SYS_vm86: ::c_ulong = 113;
-pub const SYS_wait4: ::c_ulong = 114;
-pub const SYS_swapoff: ::c_ulong = 115;
-pub const SYS_sysinfo: ::c_ulong = 116;
-pub const SYS_ipc: ::c_ulong = 117;
-pub const SYS_fsync: ::c_ulong = 118;
-pub const SYS_sigreturn: ::c_ulong = 119;
-pub const SYS_clone: ::c_ulong = 120;
-pub const SYS_setdomainname: ::c_ulong = 121;
-pub const SYS_uname: ::c_ulong = 122;
-pub const SYS_modify_ldt: ::c_ulong = 123;
-pub const SYS_adjtimex: ::c_ulong = 124;
-pub const SYS_mprotect: ::c_ulong = 125;
-pub const SYS_sigprocmask: ::c_ulong = 126;
-pub const SYS_create_module: ::c_ulong = 127;
-pub const SYS_init_module: ::c_ulong = 128;
-pub const SYS_delete_module: ::c_ulong = 129;
-pub const SYS_get_kernel_syms: ::c_ulong = 130;
-pub const SYS_quotactl: ::c_ulong = 131;
-pub const SYS_getpgid: ::c_ulong = 132;
-pub const SYS_fchdir: ::c_ulong = 133;
-pub const SYS_bdflush: ::c_ulong = 134;
-pub const SYS_sysfs: ::c_ulong = 135;
-pub const SYS_personality: ::c_ulong = 136;
-pub const SYS_afs_syscall: ::c_ulong = 137; /* Syscall for Andrew File System */
-pub const SYS_setfsuid: ::c_ulong = 138;
-pub const SYS_setfsgid: ::c_ulong = 139;
-pub const SYS__llseek: ::c_ulong = 140;
-pub const SYS_getdents: ::c_ulong = 141;
-pub const SYS__newselect: ::c_ulong = 142;
-pub const SYS_flock: ::c_ulong = 143;
-pub const SYS_msync: ::c_ulong = 144;
-pub const SYS_readv: ::c_ulong = 145;
-pub const SYS_writev: ::c_ulong = 146;
-pub const SYS_getsid: ::c_ulong = 147;
-pub const SYS_fdatasync: ::c_ulong = 148;
-pub const SYS__sysctl: ::c_ulong = 149;
-pub const SYS_mlock: ::c_ulong = 150;
-pub const SYS_munlock: ::c_ulong = 151;
-pub const SYS_mlockall: ::c_ulong = 152;
-pub const SYS_munlockall: ::c_ulong = 153;
-pub const SYS_sched_setparam: ::c_ulong = 154;
-pub const SYS_sched_getparam: ::c_ulong = 155;
-pub const SYS_sched_setscheduler: ::c_ulong = 156;
-pub const SYS_sched_getscheduler: ::c_ulong = 157;
-pub const SYS_sched_yield: ::c_ulong = 158;
-pub const SYS_sched_get_priority_max: ::c_ulong = 159;
-pub const SYS_sched_get_priority_min: ::c_ulong = 160;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 161;
-pub const SYS_nanosleep: ::c_ulong = 162;
-pub const SYS_mremap: ::c_ulong = 163;
-pub const SYS_setresuid: ::c_ulong = 164;
-pub const SYS_getresuid: ::c_ulong = 165;
-pub const SYS_query_module: ::c_ulong = 166;
-pub const SYS_poll: ::c_ulong = 167;
-pub const SYS_nfsservctl: ::c_ulong = 168;
-pub const SYS_setresgid: ::c_ulong = 169;
-pub const SYS_getresgid: ::c_ulong = 170;
-pub const SYS_prctl: ::c_ulong = 171;
-pub const SYS_rt_sigreturn: ::c_ulong = 172;
-pub const SYS_rt_sigaction: ::c_ulong = 173;
-pub const SYS_rt_sigprocmask: ::c_ulong = 174;
-pub const SYS_rt_sigpending: ::c_ulong = 175;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 176;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 177;
-pub const SYS_rt_sigsuspend: ::c_ulong = 178;
-pub const SYS_pread64: ::c_ulong = 179;
-pub const SYS_pwrite64: ::c_ulong = 180;
-pub const SYS_chown: ::c_ulong = 181;
-pub const SYS_getcwd: ::c_ulong = 182;
-pub const SYS_capget: ::c_ulong = 183;
-pub const SYS_capset: ::c_ulong = 184;
-pub const SYS_sigaltstack: ::c_ulong = 185;
-pub const SYS_sendfile: ::c_ulong = 186;
-pub const SYS_getpmsg: ::c_ulong = 187; /* some people actually want streams */
-pub const SYS_putpmsg: ::c_ulong = 188; /* some people actually want streams */
-pub const SYS_vfork: ::c_ulong = 189;
-pub const SYS_ugetrlimit: ::c_ulong = 190; /* SuS compliant getrlimit */
-pub const SYS_readahead: ::c_ulong = 191;
-pub const SYS_pciconfig_read: ::c_ulong = 198;
-pub const SYS_pciconfig_write: ::c_ulong = 199;
-pub const SYS_pciconfig_iobase: ::c_ulong = 200;
-pub const SYS_multiplexer: ::c_ulong = 201;
-pub const SYS_getdents64: ::c_ulong = 202;
-pub const SYS_pivot_root: ::c_ulong = 203;
-pub const SYS_madvise: ::c_ulong = 205;
-pub const SYS_mincore: ::c_ulong = 206;
-pub const SYS_gettid: ::c_ulong = 207;
-pub const SYS_tkill: ::c_ulong = 208;
-pub const SYS_setxattr: ::c_ulong = 209;
-pub const SYS_lsetxattr: ::c_ulong = 210;
-pub const SYS_fsetxattr: ::c_ulong = 211;
-pub const SYS_getxattr: ::c_ulong = 212;
-pub const SYS_lgetxattr: ::c_ulong = 213;
-pub const SYS_fgetxattr: ::c_ulong = 214;
-pub const SYS_listxattr: ::c_ulong = 215;
-pub const SYS_llistxattr: ::c_ulong = 216;
-pub const SYS_flistxattr: ::c_ulong = 217;
-pub const SYS_removexattr: ::c_ulong = 218;
-pub const SYS_lremovexattr: ::c_ulong = 219;
-pub const SYS_fremovexattr: ::c_ulong = 220;
-pub const SYS_futex: ::c_ulong = 221;
-pub const SYS_sched_setaffinity: ::c_ulong = 222;
-pub const SYS_sched_getaffinity: ::c_ulong = 223;
-pub const SYS_tuxcall: ::c_ulong = 225;
-pub const SYS_io_setup: ::c_ulong = 227;
-pub const SYS_io_destroy: ::c_ulong = 228;
-pub const SYS_io_getevents: ::c_ulong = 229;
-pub const SYS_io_submit: ::c_ulong = 230;
-pub const SYS_io_cancel: ::c_ulong = 231;
-pub const SYS_set_tid_address: ::c_ulong = 232;
-pub const SYS_exit_group: ::c_ulong = 234;
-pub const SYS_lookup_dcookie: ::c_ulong = 235;
-pub const SYS_epoll_create: ::c_ulong = 236;
-pub const SYS_epoll_ctl: ::c_ulong = 237;
-pub const SYS_epoll_wait: ::c_ulong = 238;
-pub const SYS_remap_file_pages: ::c_ulong = 239;
-pub const SYS_timer_create: ::c_ulong = 240;
-pub const SYS_timer_settime: ::c_ulong = 241;
-pub const SYS_timer_gettime: ::c_ulong = 242;
-pub const SYS_timer_getoverrun: ::c_ulong = 243;
-pub const SYS_timer_delete: ::c_ulong = 244;
-pub const SYS_clock_settime: ::c_ulong = 245;
-pub const SYS_clock_gettime: ::c_ulong = 246;
-pub const SYS_clock_getres: ::c_ulong = 247;
-pub const SYS_clock_nanosleep: ::c_ulong = 248;
-pub const SYS_swapcontext: ::c_ulong = 249;
-pub const SYS_tgkill: ::c_ulong = 250;
-pub const SYS_utimes: ::c_ulong = 251;
-pub const SYS_statfs64: ::c_ulong = 252;
-pub const SYS_fstatfs64: ::c_ulong = 253;
-pub const SYS_rtas: ::c_ulong = 255;
-pub const SYS_sys_debug_setcontext: ::c_ulong = 256;
-pub const SYS_migrate_pages: ::c_ulong = 258;
-pub const SYS_mbind: ::c_ulong = 259;
-pub const SYS_get_mempolicy: ::c_ulong = 260;
-pub const SYS_set_mempolicy: ::c_ulong = 261;
-pub const SYS_mq_open: ::c_ulong = 262;
-pub const SYS_mq_unlink: ::c_ulong = 263;
-pub const SYS_mq_timedsend: ::c_ulong = 264;
-pub const SYS_mq_timedreceive: ::c_ulong = 265;
-pub const SYS_mq_notify: ::c_ulong = 266;
-pub const SYS_mq_getsetattr: ::c_ulong = 267;
-pub const SYS_kexec_load: ::c_ulong = 268;
-pub const SYS_add_key: ::c_ulong = 269;
-pub const SYS_request_key: ::c_ulong = 270;
-pub const SYS_keyctl: ::c_ulong = 271;
-pub const SYS_waitid: ::c_ulong = 272;
-pub const SYS_ioprio_set: ::c_ulong = 273;
-pub const SYS_ioprio_get: ::c_ulong = 274;
-pub const SYS_inotify_init: ::c_ulong = 275;
-pub const SYS_inotify_add_watch: ::c_ulong = 276;
-pub const SYS_inotify_rm_watch: ::c_ulong = 277;
-pub const SYS_spu_run: ::c_ulong = 278;
-pub const SYS_spu_create: ::c_ulong = 279;
-pub const SYS_pselect6: ::c_ulong = 280;
-pub const SYS_ppoll: ::c_ulong = 281;
-pub const SYS_unshare: ::c_ulong = 282;
-pub const SYS_splice: ::c_ulong = 283;
-pub const SYS_tee: ::c_ulong = 284;
-pub const SYS_vmsplice: ::c_ulong = 285;
-pub const SYS_openat: ::c_ulong = 286;
-pub const SYS_mkdirat: ::c_ulong = 287;
-pub const SYS_mknodat: ::c_ulong = 288;
-pub const SYS_fchownat: ::c_ulong = 289;
-pub const SYS_futimesat: ::c_ulong = 290;
-pub const SYS_newfstatat: ::c_ulong = 291;
-pub const SYS_unlinkat: ::c_ulong = 292;
-pub const SYS_renameat: ::c_ulong = 293;
-pub const SYS_linkat: ::c_ulong = 294;
-pub const SYS_symlinkat: ::c_ulong = 295;
-pub const SYS_readlinkat: ::c_ulong = 296;
-pub const SYS_fchmodat: ::c_ulong = 297;
-pub const SYS_faccessat: ::c_ulong = 298;
-pub const SYS_get_robust_list: ::c_ulong = 299;
-pub const SYS_set_robust_list: ::c_ulong = 300;
-pub const SYS_move_pages: ::c_ulong = 301;
-pub const SYS_getcpu: ::c_ulong = 302;
-pub const SYS_epoll_pwait: ::c_ulong = 303;
-pub const SYS_utimensat: ::c_ulong = 304;
-pub const SYS_signalfd: ::c_ulong = 305;
-pub const SYS_timerfd_create: ::c_ulong = 306;
-pub const SYS_eventfd: ::c_ulong = 307;
-pub const SYS_sync_file_range2: ::c_ulong = 308;
-pub const SYS_fallocate: ::c_ulong = 309;
-pub const SYS_subpage_prot: ::c_ulong = 310;
-pub const SYS_timerfd_settime: ::c_ulong = 311;
-pub const SYS_timerfd_gettime: ::c_ulong = 312;
-pub const SYS_signalfd4: ::c_ulong = 313;
-pub const SYS_eventfd2: ::c_ulong = 314;
-pub const SYS_epoll_create1: ::c_ulong = 315;
-pub const SYS_dup3: ::c_ulong = 316;
-pub const SYS_pipe2: ::c_ulong = 317;
-pub const SYS_inotify_init1: ::c_ulong = 318;
-pub const SYS_perf_event_open: ::c_ulong = 319;
-pub const SYS_preadv: ::c_ulong = 320;
-pub const SYS_pwritev: ::c_ulong = 321;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 322;
-pub const SYS_fanotify_init: ::c_ulong = 323;
-pub const SYS_fanotify_mark: ::c_ulong = 324;
-pub const SYS_prlimit64: ::c_ulong = 325;
-pub const SYS_socket: ::c_ulong = 326;
-pub const SYS_bind: ::c_ulong = 327;
-pub const SYS_connect: ::c_ulong = 328;
-pub const SYS_listen: ::c_ulong = 329;
-pub const SYS_accept: ::c_ulong = 330;
-pub const SYS_getsockname: ::c_ulong = 331;
-pub const SYS_getpeername: ::c_ulong = 332;
-pub const SYS_socketpair: ::c_ulong = 333;
-pub const SYS_send: ::c_ulong = 334;
-pub const SYS_sendto: ::c_ulong = 335;
-pub const SYS_recv: ::c_ulong = 336;
-pub const SYS_recvfrom: ::c_ulong = 337;
-pub const SYS_shutdown: ::c_ulong = 338;
-pub const SYS_setsockopt: ::c_ulong = 339;
-pub const SYS_getsockopt: ::c_ulong = 340;
-pub const SYS_sendmsg: ::c_ulong = 341;
-pub const SYS_recvmsg: ::c_ulong = 342;
-pub const SYS_recvmmsg: ::c_ulong = 343;
-pub const SYS_accept4: ::c_ulong = 344;
-pub const SYS_name_to_handle_at: ::c_ulong = 345;
-pub const SYS_open_by_handle_at: ::c_ulong = 346;
-pub const SYS_clock_adjtime: ::c_ulong = 347;
-pub const SYS_syncfs: ::c_ulong = 348;
-pub const SYS_sendmmsg: ::c_ulong = 349;
-pub const SYS_setns: ::c_ulong = 350;
-pub const SYS_process_vm_readv: ::c_ulong = 351;
-pub const SYS_process_vm_writev: ::c_ulong = 352;
-pub const SYS_finit_module: ::c_ulong = 353;
-pub const SYS_kcmp: ::c_ulong = 354;
-pub const SYS_sched_setattr: ::c_ulong = 355;
-pub const SYS_sched_getattr: ::c_ulong = 356;
-pub const SYS_renameat2: ::c_ulong = 357;
-pub const SYS_seccomp: ::c_ulong = 358;
-pub const SYS_getrandom: ::c_ulong = 359;
-pub const SYS_memfd_create: ::c_ulong = 360;
-pub const SYS_bpf: ::c_ulong = 361;
-pub const SYS_execveat: ::c_ulong = 362;
-pub const SYS_switch_endian: ::c_ulong = 363;
-pub const SYS_userfaultfd: ::c_ulong = 364;
-pub const SYS_membarrier: ::c_ulong = 365;
-pub const SYS_mlock2: ::c_ulong = 378;
-pub const SYS_copy_file_range: ::c_ulong = 379;
-pub const SYS_preadv2: ::c_ulong = 380;
-pub const SYS_pwritev2: ::c_ulong = 381;
-pub const SYS_kexec_file_load: ::c_ulong = 382;
+pub const SYS_restart_syscall: ::c_long = 0;
+pub const SYS_exit: ::c_long = 1;
+pub const SYS_fork: ::c_long = 2;
+pub const SYS_read: ::c_long = 3;
+pub const SYS_write: ::c_long = 4;
+pub const SYS_open: ::c_long = 5;
+pub const SYS_close: ::c_long = 6;
+pub const SYS_waitpid: ::c_long = 7;
+pub const SYS_creat: ::c_long = 8;
+pub const SYS_link: ::c_long = 9;
+pub const SYS_unlink: ::c_long = 10;
+pub const SYS_execve: ::c_long = 11;
+pub const SYS_chdir: ::c_long = 12;
+pub const SYS_time: ::c_long = 13;
+pub const SYS_mknod: ::c_long = 14;
+pub const SYS_chmod: ::c_long = 15;
+pub const SYS_lchown: ::c_long = 16;
+pub const SYS_break: ::c_long = 17;
+pub const SYS_oldstat: ::c_long = 18;
+pub const SYS_lseek: ::c_long = 19;
+pub const SYS_getpid: ::c_long = 20;
+pub const SYS_mount: ::c_long = 21;
+pub const SYS_umount: ::c_long = 22;
+pub const SYS_setuid: ::c_long = 23;
+pub const SYS_getuid: ::c_long = 24;
+pub const SYS_stime: ::c_long = 25;
+pub const SYS_ptrace: ::c_long = 26;
+pub const SYS_alarm: ::c_long = 27;
+pub const SYS_oldfstat: ::c_long = 28;
+pub const SYS_pause: ::c_long = 29;
+pub const SYS_utime: ::c_long = 30;
+pub const SYS_stty: ::c_long = 31;
+pub const SYS_gtty: ::c_long = 32;
+pub const SYS_access: ::c_long = 33;
+pub const SYS_nice: ::c_long = 34;
+pub const SYS_ftime: ::c_long = 35;
+pub const SYS_sync: ::c_long = 36;
+pub const SYS_kill: ::c_long = 37;
+pub const SYS_rename: ::c_long = 38;
+pub const SYS_mkdir: ::c_long = 39;
+pub const SYS_rmdir: ::c_long = 40;
+pub const SYS_dup: ::c_long = 41;
+pub const SYS_pipe: ::c_long = 42;
+pub const SYS_times: ::c_long = 43;
+pub const SYS_prof: ::c_long = 44;
+pub const SYS_brk: ::c_long = 45;
+pub const SYS_setgid: ::c_long = 46;
+pub const SYS_getgid: ::c_long = 47;
+pub const SYS_signal: ::c_long = 48;
+pub const SYS_geteuid: ::c_long = 49;
+pub const SYS_getegid: ::c_long = 50;
+pub const SYS_acct: ::c_long = 51;
+pub const SYS_umount2: ::c_long = 52;
+pub const SYS_lock: ::c_long = 53;
+pub const SYS_ioctl: ::c_long = 54;
+pub const SYS_fcntl: ::c_long = 55;
+pub const SYS_mpx: ::c_long = 56;
+pub const SYS_setpgid: ::c_long = 57;
+pub const SYS_ulimit: ::c_long = 58;
+pub const SYS_oldolduname: ::c_long = 59;
+pub const SYS_umask: ::c_long = 60;
+pub const SYS_chroot: ::c_long = 61;
+pub const SYS_ustat: ::c_long = 62;
+pub const SYS_dup2: ::c_long = 63;
+pub const SYS_getppid: ::c_long = 64;
+pub const SYS_getpgrp: ::c_long = 65;
+pub const SYS_setsid: ::c_long = 66;
+pub const SYS_sigaction: ::c_long = 67;
+pub const SYS_sgetmask: ::c_long = 68;
+pub const SYS_ssetmask: ::c_long = 69;
+pub const SYS_setreuid: ::c_long = 70;
+pub const SYS_setregid: ::c_long = 71;
+pub const SYS_sigsuspend: ::c_long = 72;
+pub const SYS_sigpending: ::c_long = 73;
+pub const SYS_sethostname: ::c_long = 74;
+pub const SYS_setrlimit: ::c_long = 75;
+pub const SYS_getrlimit: ::c_long = 76;
+pub const SYS_getrusage: ::c_long = 77;
+pub const SYS_gettimeofday: ::c_long = 78;
+pub const SYS_settimeofday: ::c_long = 79;
+pub const SYS_getgroups: ::c_long = 80;
+pub const SYS_setgroups: ::c_long = 81;
+pub const SYS_select: ::c_long = 82;
+pub const SYS_symlink: ::c_long = 83;
+pub const SYS_oldlstat: ::c_long = 84;
+pub const SYS_readlink: ::c_long = 85;
+pub const SYS_uselib: ::c_long = 86;
+pub const SYS_swapon: ::c_long = 87;
+pub const SYS_reboot: ::c_long = 88;
+pub const SYS_readdir: ::c_long = 89;
+pub const SYS_mmap: ::c_long = 90;
+pub const SYS_munmap: ::c_long = 91;
+pub const SYS_truncate: ::c_long = 92;
+pub const SYS_ftruncate: ::c_long = 93;
+pub const SYS_fchmod: ::c_long = 94;
+pub const SYS_fchown: ::c_long = 95;
+pub const SYS_getpriority: ::c_long = 96;
+pub const SYS_setpriority: ::c_long = 97;
+pub const SYS_profil: ::c_long = 98;
+pub const SYS_statfs: ::c_long = 99;
+pub const SYS_fstatfs: ::c_long = 100;
+pub const SYS_ioperm: ::c_long = 101;
+pub const SYS_socketcall: ::c_long = 102;
+pub const SYS_syslog: ::c_long = 103;
+pub const SYS_setitimer: ::c_long = 104;
+pub const SYS_getitimer: ::c_long = 105;
+pub const SYS_stat: ::c_long = 106;
+pub const SYS_lstat: ::c_long = 107;
+pub const SYS_fstat: ::c_long = 108;
+pub const SYS_olduname: ::c_long = 109;
+pub const SYS_iopl: ::c_long = 110;
+pub const SYS_vhangup: ::c_long = 111;
+pub const SYS_idle: ::c_long = 112;
+pub const SYS_vm86: ::c_long = 113;
+pub const SYS_wait4: ::c_long = 114;
+pub const SYS_swapoff: ::c_long = 115;
+pub const SYS_sysinfo: ::c_long = 116;
+pub const SYS_ipc: ::c_long = 117;
+pub const SYS_fsync: ::c_long = 118;
+pub const SYS_sigreturn: ::c_long = 119;
+pub const SYS_clone: ::c_long = 120;
+pub const SYS_setdomainname: ::c_long = 121;
+pub const SYS_uname: ::c_long = 122;
+pub const SYS_modify_ldt: ::c_long = 123;
+pub const SYS_adjtimex: ::c_long = 124;
+pub const SYS_mprotect: ::c_long = 125;
+pub const SYS_sigprocmask: ::c_long = 126;
+pub const SYS_create_module: ::c_long = 127;
+pub const SYS_init_module: ::c_long = 128;
+pub const SYS_delete_module: ::c_long = 129;
+pub const SYS_get_kernel_syms: ::c_long = 130;
+pub const SYS_quotactl: ::c_long = 131;
+pub const SYS_getpgid: ::c_long = 132;
+pub const SYS_fchdir: ::c_long = 133;
+pub const SYS_bdflush: ::c_long = 134;
+pub const SYS_sysfs: ::c_long = 135;
+pub const SYS_personality: ::c_long = 136;
+pub const SYS_afs_syscall: ::c_long = 137; /* Syscall for Andrew File System */
+pub const SYS_setfsuid: ::c_long = 138;
+pub const SYS_setfsgid: ::c_long = 139;
+pub const SYS__llseek: ::c_long = 140;
+pub const SYS_getdents: ::c_long = 141;
+pub const SYS__newselect: ::c_long = 142;
+pub const SYS_flock: ::c_long = 143;
+pub const SYS_msync: ::c_long = 144;
+pub const SYS_readv: ::c_long = 145;
+pub const SYS_writev: ::c_long = 146;
+pub const SYS_getsid: ::c_long = 147;
+pub const SYS_fdatasync: ::c_long = 148;
+pub const SYS__sysctl: ::c_long = 149;
+pub const SYS_mlock: ::c_long = 150;
+pub const SYS_munlock: ::c_long = 151;
+pub const SYS_mlockall: ::c_long = 152;
+pub const SYS_munlockall: ::c_long = 153;
+pub const SYS_sched_setparam: ::c_long = 154;
+pub const SYS_sched_getparam: ::c_long = 155;
+pub const SYS_sched_setscheduler: ::c_long = 156;
+pub const SYS_sched_getscheduler: ::c_long = 157;
+pub const SYS_sched_yield: ::c_long = 158;
+pub const SYS_sched_get_priority_max: ::c_long = 159;
+pub const SYS_sched_get_priority_min: ::c_long = 160;
+pub const SYS_sched_rr_get_interval: ::c_long = 161;
+pub const SYS_nanosleep: ::c_long = 162;
+pub const SYS_mremap: ::c_long = 163;
+pub const SYS_setresuid: ::c_long = 164;
+pub const SYS_getresuid: ::c_long = 165;
+pub const SYS_query_module: ::c_long = 166;
+pub const SYS_poll: ::c_long = 167;
+pub const SYS_nfsservctl: ::c_long = 168;
+pub const SYS_setresgid: ::c_long = 169;
+pub const SYS_getresgid: ::c_long = 170;
+pub const SYS_prctl: ::c_long = 171;
+pub const SYS_rt_sigreturn: ::c_long = 172;
+pub const SYS_rt_sigaction: ::c_long = 173;
+pub const SYS_rt_sigprocmask: ::c_long = 174;
+pub const SYS_rt_sigpending: ::c_long = 175;
+pub const SYS_rt_sigtimedwait: ::c_long = 176;
+pub const SYS_rt_sigqueueinfo: ::c_long = 177;
+pub const SYS_rt_sigsuspend: ::c_long = 178;
+pub const SYS_pread64: ::c_long = 179;
+pub const SYS_pwrite64: ::c_long = 180;
+pub const SYS_chown: ::c_long = 181;
+pub const SYS_getcwd: ::c_long = 182;
+pub const SYS_capget: ::c_long = 183;
+pub const SYS_capset: ::c_long = 184;
+pub const SYS_sigaltstack: ::c_long = 185;
+pub const SYS_sendfile: ::c_long = 186;
+pub const SYS_getpmsg: ::c_long = 187; /* some people actually want streams */
+pub const SYS_putpmsg: ::c_long = 188; /* some people actually want streams */
+pub const SYS_vfork: ::c_long = 189;
+pub const SYS_ugetrlimit: ::c_long = 190; /* SuS compliant getrlimit */
+pub const SYS_readahead: ::c_long = 191;
+pub const SYS_pciconfig_read: ::c_long = 198;
+pub const SYS_pciconfig_write: ::c_long = 199;
+pub const SYS_pciconfig_iobase: ::c_long = 200;
+pub const SYS_multiplexer: ::c_long = 201;
+pub const SYS_getdents64: ::c_long = 202;
+pub const SYS_pivot_root: ::c_long = 203;
+pub const SYS_madvise: ::c_long = 205;
+pub const SYS_mincore: ::c_long = 206;
+pub const SYS_gettid: ::c_long = 207;
+pub const SYS_tkill: ::c_long = 208;
+pub const SYS_setxattr: ::c_long = 209;
+pub const SYS_lsetxattr: ::c_long = 210;
+pub const SYS_fsetxattr: ::c_long = 211;
+pub const SYS_getxattr: ::c_long = 212;
+pub const SYS_lgetxattr: ::c_long = 213;
+pub const SYS_fgetxattr: ::c_long = 214;
+pub const SYS_listxattr: ::c_long = 215;
+pub const SYS_llistxattr: ::c_long = 216;
+pub const SYS_flistxattr: ::c_long = 217;
+pub const SYS_removexattr: ::c_long = 218;
+pub const SYS_lremovexattr: ::c_long = 219;
+pub const SYS_fremovexattr: ::c_long = 220;
+pub const SYS_futex: ::c_long = 221;
+pub const SYS_sched_setaffinity: ::c_long = 222;
+pub const SYS_sched_getaffinity: ::c_long = 223;
+pub const SYS_tuxcall: ::c_long = 225;
+pub const SYS_io_setup: ::c_long = 227;
+pub const SYS_io_destroy: ::c_long = 228;
+pub const SYS_io_getevents: ::c_long = 229;
+pub const SYS_io_submit: ::c_long = 230;
+pub const SYS_io_cancel: ::c_long = 231;
+pub const SYS_set_tid_address: ::c_long = 232;
+pub const SYS_exit_group: ::c_long = 234;
+pub const SYS_lookup_dcookie: ::c_long = 235;
+pub const SYS_epoll_create: ::c_long = 236;
+pub const SYS_epoll_ctl: ::c_long = 237;
+pub const SYS_epoll_wait: ::c_long = 238;
+pub const SYS_remap_file_pages: ::c_long = 239;
+pub const SYS_timer_create: ::c_long = 240;
+pub const SYS_timer_settime: ::c_long = 241;
+pub const SYS_timer_gettime: ::c_long = 242;
+pub const SYS_timer_getoverrun: ::c_long = 243;
+pub const SYS_timer_delete: ::c_long = 244;
+pub const SYS_clock_settime: ::c_long = 245;
+pub const SYS_clock_gettime: ::c_long = 246;
+pub const SYS_clock_getres: ::c_long = 247;
+pub const SYS_clock_nanosleep: ::c_long = 248;
+pub const SYS_swapcontext: ::c_long = 249;
+pub const SYS_tgkill: ::c_long = 250;
+pub const SYS_utimes: ::c_long = 251;
+pub const SYS_statfs64: ::c_long = 252;
+pub const SYS_fstatfs64: ::c_long = 253;
+pub const SYS_rtas: ::c_long = 255;
+pub const SYS_sys_debug_setcontext: ::c_long = 256;
+pub const SYS_migrate_pages: ::c_long = 258;
+pub const SYS_mbind: ::c_long = 259;
+pub const SYS_get_mempolicy: ::c_long = 260;
+pub const SYS_set_mempolicy: ::c_long = 261;
+pub const SYS_mq_open: ::c_long = 262;
+pub const SYS_mq_unlink: ::c_long = 263;
+pub const SYS_mq_timedsend: ::c_long = 264;
+pub const SYS_mq_timedreceive: ::c_long = 265;
+pub const SYS_mq_notify: ::c_long = 266;
+pub const SYS_mq_getsetattr: ::c_long = 267;
+pub const SYS_kexec_load: ::c_long = 268;
+pub const SYS_add_key: ::c_long = 269;
+pub const SYS_request_key: ::c_long = 270;
+pub const SYS_keyctl: ::c_long = 271;
+pub const SYS_waitid: ::c_long = 272;
+pub const SYS_ioprio_set: ::c_long = 273;
+pub const SYS_ioprio_get: ::c_long = 274;
+pub const SYS_inotify_init: ::c_long = 275;
+pub const SYS_inotify_add_watch: ::c_long = 276;
+pub const SYS_inotify_rm_watch: ::c_long = 277;
+pub const SYS_spu_run: ::c_long = 278;
+pub const SYS_spu_create: ::c_long = 279;
+pub const SYS_pselect6: ::c_long = 280;
+pub const SYS_ppoll: ::c_long = 281;
+pub const SYS_unshare: ::c_long = 282;
+pub const SYS_splice: ::c_long = 283;
+pub const SYS_tee: ::c_long = 284;
+pub const SYS_vmsplice: ::c_long = 285;
+pub const SYS_openat: ::c_long = 286;
+pub const SYS_mkdirat: ::c_long = 287;
+pub const SYS_mknodat: ::c_long = 288;
+pub const SYS_fchownat: ::c_long = 289;
+pub const SYS_futimesat: ::c_long = 290;
+pub const SYS_newfstatat: ::c_long = 291;
+pub const SYS_unlinkat: ::c_long = 292;
+pub const SYS_renameat: ::c_long = 293;
+pub const SYS_linkat: ::c_long = 294;
+pub const SYS_symlinkat: ::c_long = 295;
+pub const SYS_readlinkat: ::c_long = 296;
+pub const SYS_fchmodat: ::c_long = 297;
+pub const SYS_faccessat: ::c_long = 298;
+pub const SYS_get_robust_list: ::c_long = 299;
+pub const SYS_set_robust_list: ::c_long = 300;
+pub const SYS_move_pages: ::c_long = 301;
+pub const SYS_getcpu: ::c_long = 302;
+pub const SYS_epoll_pwait: ::c_long = 303;
+pub const SYS_utimensat: ::c_long = 304;
+pub const SYS_signalfd: ::c_long = 305;
+pub const SYS_timerfd_create: ::c_long = 306;
+pub const SYS_eventfd: ::c_long = 307;
+pub const SYS_sync_file_range2: ::c_long = 308;
+pub const SYS_fallocate: ::c_long = 309;
+pub const SYS_subpage_prot: ::c_long = 310;
+pub const SYS_timerfd_settime: ::c_long = 311;
+pub const SYS_timerfd_gettime: ::c_long = 312;
+pub const SYS_signalfd4: ::c_long = 313;
+pub const SYS_eventfd2: ::c_long = 314;
+pub const SYS_epoll_create1: ::c_long = 315;
+pub const SYS_dup3: ::c_long = 316;
+pub const SYS_pipe2: ::c_long = 317;
+pub const SYS_inotify_init1: ::c_long = 318;
+pub const SYS_perf_event_open: ::c_long = 319;
+pub const SYS_preadv: ::c_long = 320;
+pub const SYS_pwritev: ::c_long = 321;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 322;
+pub const SYS_fanotify_init: ::c_long = 323;
+pub const SYS_fanotify_mark: ::c_long = 324;
+pub const SYS_prlimit64: ::c_long = 325;
+pub const SYS_socket: ::c_long = 326;
+pub const SYS_bind: ::c_long = 327;
+pub const SYS_connect: ::c_long = 328;
+pub const SYS_listen: ::c_long = 329;
+pub const SYS_accept: ::c_long = 330;
+pub const SYS_getsockname: ::c_long = 331;
+pub const SYS_getpeername: ::c_long = 332;
+pub const SYS_socketpair: ::c_long = 333;
+pub const SYS_send: ::c_long = 334;
+pub const SYS_sendto: ::c_long = 335;
+pub const SYS_recv: ::c_long = 336;
+pub const SYS_recvfrom: ::c_long = 337;
+pub const SYS_shutdown: ::c_long = 338;
+pub const SYS_setsockopt: ::c_long = 339;
+pub const SYS_getsockopt: ::c_long = 340;
+pub const SYS_sendmsg: ::c_long = 341;
+pub const SYS_recvmsg: ::c_long = 342;
+pub const SYS_recvmmsg: ::c_long = 343;
+pub const SYS_accept4: ::c_long = 344;
+pub const SYS_name_to_handle_at: ::c_long = 345;
+pub const SYS_open_by_handle_at: ::c_long = 346;
+pub const SYS_clock_adjtime: ::c_long = 347;
+pub const SYS_syncfs: ::c_long = 348;
+pub const SYS_sendmmsg: ::c_long = 349;
+pub const SYS_setns: ::c_long = 350;
+pub const SYS_process_vm_readv: ::c_long = 351;
+pub const SYS_process_vm_writev: ::c_long = 352;
+pub const SYS_finit_module: ::c_long = 353;
+pub const SYS_kcmp: ::c_long = 354;
+pub const SYS_sched_setattr: ::c_long = 355;
+pub const SYS_sched_getattr: ::c_long = 356;
+pub const SYS_renameat2: ::c_long = 357;
+pub const SYS_seccomp: ::c_long = 358;
+pub const SYS_getrandom: ::c_long = 359;
+pub const SYS_memfd_create: ::c_long = 360;
+pub const SYS_bpf: ::c_long = 361;
+pub const SYS_execveat: ::c_long = 362;
+pub const SYS_switch_endian: ::c_long = 363;
+pub const SYS_userfaultfd: ::c_long = 364;
+pub const SYS_membarrier: ::c_long = 365;
+pub const SYS_mlock2: ::c_long = 378;
+pub const SYS_copy_file_range: ::c_long = 379;
+pub const SYS_preadv2: ::c_long = 380;
+pub const SYS_pwritev2: ::c_long = 381;
+pub const SYS_kexec_file_load: ::c_long = 382;
+
+#[link(name = "util")]
+extern {
+ pub fn sysctl(name: *mut ::c_int,
+ namelen: ::c_int,
+ oldp: *mut ::c_void,
+ oldlenp: *mut ::size_t,
+ newp: *mut ::c_void,
+ newlen: ::size_t)
+ -> ::c_int;
+}
diff --git a/src/unix/notbsd/linux/other/b64/sparc64.rs b/src/unix/notbsd/linux/other/b64/sparc64.rs
index d998530..fa8e5b1 100644
--- a/src/unix/notbsd/linux/other/b64/sparc64.rs
+++ b/src/unix/notbsd/linux/other/b64/sparc64.rs
@@ -1,5 +1,7 @@
//! SPARC64-specific definitions for 64-bit linux-like values
+pub type c_long = i64;
+pub type c_ulong = u64;
pub type c_char = i8;
pub type wchar_t = i32;
pub type nlink_t = u32;
@@ -111,6 +113,17 @@
__reserved1: ::c_ulong,
__reserved2: ::c_ulong
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const TIOCGSOFTCAR: ::c_ulong = 0x40047464;
@@ -419,3 +432,14 @@
pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
pub const FIONREAD: ::c_ulong = 0x4004667f;
+
+#[link(name = "util")]
+extern {
+ pub fn sysctl(name: *mut ::c_int,
+ namelen: ::c_int,
+ oldp: *mut ::c_void,
+ oldlenp: *mut ::size_t,
+ newp: *mut ::c_void,
+ newlen: ::size_t)
+ -> ::c_int;
+}
diff --git a/src/unix/notbsd/linux/other/b64/x32.rs b/src/unix/notbsd/linux/other/b64/x32.rs
new file mode 100644
index 0000000..9b0b338
--- /dev/null
+++ b/src/unix/notbsd/linux/other/b64/x32.rs
@@ -0,0 +1,2 @@
+pub type c_long = i32;
+pub type c_ulong = u32;
diff --git a/src/unix/notbsd/linux/other/b64/x86_64.rs b/src/unix/notbsd/linux/other/b64/x86_64.rs
index 81b2384..ce5a6f4 100644
--- a/src/unix/notbsd/linux/other/b64/x86_64.rs
+++ b/src/unix/notbsd/linux/other/b64/x86_64.rs
@@ -22,11 +22,11 @@
pub st_blksize: ::blksize_t,
pub st_blocks: ::blkcnt_t,
pub st_atime: ::time_t,
- pub st_atime_nsec: ::c_long,
+ pub st_atime_nsec: i64,
pub st_mtime: ::time_t,
- pub st_mtime_nsec: ::c_long,
+ pub st_mtime_nsec: i64,
pub st_ctime: ::time_t,
- pub st_ctime_nsec: ::c_long,
+ pub st_ctime_nsec: i64,
__unused: [::c_long; 3],
}
@@ -43,11 +43,11 @@
pub st_blksize: ::blksize_t,
pub st_blocks: ::blkcnt64_t,
pub st_atime: ::time_t,
- pub st_atime_nsec: ::c_long,
+ pub st_atime_nsec: i64,
pub st_mtime: ::time_t,
- pub st_mtime_nsec: ::c_long,
+ pub st_mtime_nsec: i64,
pub st_ctime: ::time_t,
- pub st_ctime_nsec: ::c_long,
+ pub st_ctime_nsec: i64,
__reserved: [::c_long; 3],
}
@@ -212,6 +212,17 @@
__unused4: ::c_ulong,
__unused5: ::c_ulong
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
@@ -552,6 +563,7 @@
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;
@@ -730,7 +742,6 @@
pub const SYS_sigaltstack: ::c_long = 131;
pub const SYS_utime: ::c_long = 132;
pub const SYS_mknod: ::c_long = 133;
-pub const SYS_uselib: ::c_long = 134;
pub const SYS_personality: ::c_long = 135;
pub const SYS_ustat: ::c_long = 136;
pub const SYS_statfs: ::c_long = 137;
@@ -752,7 +763,6 @@
pub const SYS_vhangup: ::c_long = 153;
pub const SYS_modify_ldt: ::c_long = 154;
pub const SYS_pivot_root: ::c_long = 155;
-pub const SYS__sysctl: ::c_long = 156;
pub const SYS_prctl: ::c_long = 157;
pub const SYS_arch_prctl: ::c_long = 158;
pub const SYS_adjtimex: ::c_long = 159;
@@ -770,13 +780,9 @@
pub const SYS_setdomainname: ::c_long = 171;
pub const SYS_iopl: ::c_long = 172;
pub const SYS_ioperm: ::c_long = 173;
-pub const SYS_create_module: ::c_long = 174;
pub const SYS_init_module: ::c_long = 175;
pub const SYS_delete_module: ::c_long = 176;
-pub const SYS_get_kernel_syms: ::c_long = 177;
-pub const SYS_query_module: ::c_long = 178;
pub const SYS_quotactl: ::c_long = 179;
-pub const SYS_nfsservctl: ::c_long = 180;
pub const SYS_getpmsg: ::c_long = 181;
pub const SYS_putpmsg: ::c_long = 182;
pub const SYS_afs_syscall: ::c_long = 183;
@@ -801,17 +807,13 @@
pub const SYS_futex: ::c_long = 202;
pub const SYS_sched_setaffinity: ::c_long = 203;
pub const SYS_sched_getaffinity: ::c_long = 204;
-pub const SYS_set_thread_area: ::c_long = 205;
pub const SYS_io_setup: ::c_long = 206;
pub const SYS_io_destroy: ::c_long = 207;
pub const SYS_io_getevents: ::c_long = 208;
pub const SYS_io_submit: ::c_long = 209;
pub const SYS_io_cancel: ::c_long = 210;
-pub const SYS_get_thread_area: ::c_long = 211;
pub const SYS_lookup_dcookie: ::c_long = 212;
pub const SYS_epoll_create: ::c_long = 213;
-pub const SYS_epoll_ctl_old: ::c_long = 214;
-pub const SYS_epoll_wait_old: ::c_long = 215;
pub const SYS_remap_file_pages: ::c_long = 216;
pub const SYS_getdents64: ::c_long = 217;
pub const SYS_set_tid_address: ::c_long = 218;
@@ -832,7 +834,6 @@
pub const SYS_epoll_ctl: ::c_long = 233;
pub const SYS_tgkill: ::c_long = 234;
pub const SYS_utimes: ::c_long = 235;
-pub const SYS_vserver: ::c_long = 236;
pub const SYS_mbind: ::c_long = 237;
pub const SYS_set_mempolicy: ::c_long = 238;
pub const SYS_get_mempolicy: ::c_long = 239;
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index 7a58c18..2013e60 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -44,7 +44,8 @@
#[cfg(any(target_arch = "aarch64",
target_arch = "sparc64",
- target_pointer_width = "32"))]
+ all(target_pointer_width = "32",
+ not(target_arch = "x86_64"))))]
pub ut_session: ::c_long,
#[cfg(any(target_arch = "aarch64",
target_arch = "sparc64",
@@ -53,7 +54,8 @@
#[cfg(not(any(target_arch = "aarch64",
target_arch = "sparc64",
- target_pointer_width = "32")))]
+ all(target_pointer_width = "32",
+ not(target_arch = "x86_64")))))]
pub ut_session: ::int32_t,
#[cfg(not(any(target_arch = "aarch64",
target_arch = "sparc64",
@@ -568,13 +570,6 @@
#[link(name = "util")]
extern {
- pub fn sysctl(name: *mut ::c_int,
- namelen: ::c_int,
- oldp: *mut ::c_void,
- oldlenp: *mut ::size_t,
- newp: *mut ::c_void,
- newlen: ::size_t)
- -> ::c_int;
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
pub fn backtrace(buf: *mut *mut ::c_void,
sz: ::c_int) -> ::c_int;
diff --git a/src/unix/notbsd/linux/s390x.rs b/src/unix/notbsd/linux/s390x.rs
index e8595e9..32a5940 100644
--- a/src/unix/notbsd/linux/s390x.rs
+++ b/src/unix/notbsd/linux/s390x.rs
@@ -177,6 +177,17 @@
pub c_ospeed: ::speed_t,
}
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 19],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
+
pub struct sysinfo {
pub uptime: ::c_long,
pub loads: [::c_ulong; 3],
@@ -869,6 +880,7 @@
pub const HUPCL: ::tcflag_t = 0o002000;
pub const CLOCAL: ::tcflag_t = 0o004000;
pub const CBAUDEX: ::tcflag_t = 0o010000;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;
@@ -904,328 +916,328 @@
pub const IXON: ::tcflag_t = 0o002000;
pub const IXOFF: ::tcflag_t = 0o010000;
-pub const SYS_exit: ::c_ulong = 1;
-pub const SYS_fork: ::c_ulong = 2;
-pub const SYS_read: ::c_ulong = 3;
-pub const SYS_write: ::c_ulong = 4;
-pub const SYS_open: ::c_ulong = 5;
-pub const SYS_close: ::c_ulong = 6;
-pub const SYS_restart_syscall: ::c_ulong = 7;
-pub const SYS_creat: ::c_ulong = 8;
-pub const SYS_link: ::c_ulong = 9;
-pub const SYS_unlink: ::c_ulong = 10;
-pub const SYS_execve: ::c_ulong = 11;
-pub const SYS_chdir: ::c_ulong = 12;
-pub const SYS_mknod: ::c_ulong = 14;
-pub const SYS_chmod: ::c_ulong = 15;
-pub const SYS_lseek: ::c_ulong = 19;
-pub const SYS_getpid: ::c_ulong = 20;
-pub const SYS_mount: ::c_ulong = 21;
-pub const SYS_umount: ::c_ulong = 22;
-pub const SYS_ptrace: ::c_ulong = 26;
-pub const SYS_alarm: ::c_ulong = 27;
-pub const SYS_pause: ::c_ulong = 29;
-pub const SYS_utime: ::c_ulong = 30;
-pub const SYS_access: ::c_ulong = 33;
-pub const SYS_nice: ::c_ulong = 34;
-pub const SYS_sync: ::c_ulong = 36;
-pub const SYS_kill: ::c_ulong = 37;
-pub const SYS_rename: ::c_ulong = 38;
-pub const SYS_mkdir: ::c_ulong = 39;
-pub const SYS_rmdir: ::c_ulong = 40;
-pub const SYS_dup: ::c_ulong = 41;
-pub const SYS_pipe: ::c_ulong = 42;
-pub const SYS_times: ::c_ulong = 43;
-pub const SYS_brk: ::c_ulong = 45;
-pub const SYS_signal: ::c_ulong = 48;
-pub const SYS_acct: ::c_ulong = 51;
-pub const SYS_umount2: ::c_ulong = 52;
-pub const SYS_ioctl: ::c_ulong = 54;
-pub const SYS_fcntl: ::c_ulong = 55;
-pub const SYS_setpgid: ::c_ulong = 57;
-pub const SYS_umask: ::c_ulong = 60;
-pub const SYS_chroot: ::c_ulong = 61;
-pub const SYS_ustat: ::c_ulong = 62;
-pub const SYS_dup2: ::c_ulong = 63;
-pub const SYS_getppid: ::c_ulong = 64;
-pub const SYS_getpgrp: ::c_ulong = 65;
-pub const SYS_setsid: ::c_ulong = 66;
-pub const SYS_sigaction: ::c_ulong = 67;
-pub const SYS_sigsuspend: ::c_ulong = 72;
-pub const SYS_sigpending: ::c_ulong = 73;
-pub const SYS_sethostname: ::c_ulong = 74;
-pub const SYS_setrlimit: ::c_ulong = 75;
-pub const SYS_getrusage: ::c_ulong = 77;
-pub const SYS_gettimeofday: ::c_ulong = 78;
-pub const SYS_settimeofday: ::c_ulong = 79;
-pub const SYS_symlink: ::c_ulong = 83;
-pub const SYS_readlink: ::c_ulong = 85;
-pub const SYS_uselib: ::c_ulong = 86;
-pub const SYS_swapon: ::c_ulong = 87;
-pub const SYS_reboot: ::c_ulong = 88;
-pub const SYS_readdir: ::c_ulong = 89;
-pub const SYS_mmap: ::c_ulong = 90;
-pub const SYS_munmap: ::c_ulong = 91;
-pub const SYS_truncate: ::c_ulong = 92;
-pub const SYS_ftruncate: ::c_ulong = 93;
-pub const SYS_fchmod: ::c_ulong = 94;
-pub const SYS_getpriority: ::c_ulong = 96;
-pub const SYS_setpriority: ::c_ulong = 97;
-pub const SYS_statfs: ::c_ulong = 99;
-pub const SYS_fstatfs: ::c_ulong = 100;
-pub const SYS_socketcall: ::c_ulong = 102;
-pub const SYS_syslog: ::c_ulong = 103;
-pub const SYS_setitimer: ::c_ulong = 104;
-pub const SYS_getitimer: ::c_ulong = 105;
-pub const SYS_stat: ::c_ulong = 106;
-pub const SYS_lstat: ::c_ulong = 107;
-pub const SYS_fstat: ::c_ulong = 108;
-pub const SYS_lookup_dcookie: ::c_ulong = 110;
-pub const SYS_vhangup: ::c_ulong = 111;
-pub const SYS_idle: ::c_ulong = 112;
-pub const SYS_wait4: ::c_ulong = 114;
-pub const SYS_swapoff: ::c_ulong = 115;
-pub const SYS_sysinfo: ::c_ulong = 116;
-pub const SYS_ipc: ::c_ulong = 117;
-pub const SYS_fsync: ::c_ulong = 118;
-pub const SYS_sigreturn: ::c_ulong = 119;
-pub const SYS_clone: ::c_ulong = 120;
-pub const SYS_setdomainname: ::c_ulong = 121;
-pub const SYS_uname: ::c_ulong = 122;
-pub const SYS_adjtimex: ::c_ulong = 124;
-pub const SYS_mprotect: ::c_ulong = 125;
-pub const SYS_sigprocmask: ::c_ulong = 126;
-pub const SYS_create_module: ::c_ulong = 127;
-pub const SYS_init_module: ::c_ulong = 128;
-pub const SYS_delete_module: ::c_ulong = 129;
-pub const SYS_get_kernel_syms: ::c_ulong = 130;
-pub const SYS_quotactl: ::c_ulong = 131;
-pub const SYS_getpgid: ::c_ulong = 132;
-pub const SYS_fchdir: ::c_ulong = 133;
-pub const SYS_bdflush: ::c_ulong = 134;
-pub const SYS_sysfs: ::c_ulong = 135;
-pub const SYS_personality: ::c_ulong = 136;
-pub const SYS_afs_syscall: ::c_ulong = 137; /* Syscall for Andrew File System */
-pub const SYS_getdents: ::c_ulong = 141;
-pub const SYS_flock: ::c_ulong = 143;
-pub const SYS_msync: ::c_ulong = 144;
-pub const SYS_readv: ::c_ulong = 145;
-pub const SYS_writev: ::c_ulong = 146;
-pub const SYS_getsid: ::c_ulong = 147;
-pub const SYS_fdatasync: ::c_ulong = 148;
-pub const SYS__sysctl: ::c_ulong = 149;
-pub const SYS_mlock: ::c_ulong = 150;
-pub const SYS_munlock: ::c_ulong = 151;
-pub const SYS_mlockall: ::c_ulong = 152;
-pub const SYS_munlockall: ::c_ulong = 153;
-pub const SYS_sched_setparam: ::c_ulong = 154;
-pub const SYS_sched_getparam: ::c_ulong = 155;
-pub const SYS_sched_setscheduler: ::c_ulong = 156;
-pub const SYS_sched_getscheduler: ::c_ulong = 157;
-pub const SYS_sched_yield: ::c_ulong = 158;
-pub const SYS_sched_get_priority_max: ::c_ulong = 159;
-pub const SYS_sched_get_priority_min: ::c_ulong = 160;
-pub const SYS_sched_rr_get_interval: ::c_ulong = 161;
-pub const SYS_nanosleep: ::c_ulong = 162;
-pub const SYS_mremap: ::c_ulong = 163;
-pub const SYS_query_module: ::c_ulong = 167;
-pub const SYS_poll: ::c_ulong = 168;
-pub const SYS_nfsservctl: ::c_ulong = 169;
-pub const SYS_prctl: ::c_ulong = 172;
-pub const SYS_rt_sigreturn: ::c_ulong = 173;
-pub const SYS_rt_sigaction: ::c_ulong = 174;
-pub const SYS_rt_sigprocmask: ::c_ulong = 175;
-pub const SYS_rt_sigpending: ::c_ulong = 176;
-pub const SYS_rt_sigtimedwait: ::c_ulong = 177;
-pub const SYS_rt_sigqueueinfo: ::c_ulong = 178;
-pub const SYS_rt_sigsuspend: ::c_ulong = 179;
-pub const SYS_pread64: ::c_ulong = 180;
-pub const SYS_pwrite64: ::c_ulong = 181;
-pub const SYS_getcwd: ::c_ulong = 183;
-pub const SYS_capget: ::c_ulong = 184;
-pub const SYS_capset: ::c_ulong = 185;
-pub const SYS_sigaltstack: ::c_ulong = 186;
-pub const SYS_sendfile: ::c_ulong = 187;
-pub const SYS_getpmsg: ::c_ulong = 188;
-pub const SYS_putpmsg: ::c_ulong = 189;
-pub const SYS_vfork: ::c_ulong = 190;
-pub const SYS_pivot_root: ::c_ulong = 217;
-pub const SYS_mincore: ::c_ulong = 218;
-pub const SYS_madvise: ::c_ulong = 219;
-pub const SYS_getdents64: ::c_ulong = 220;
-pub const SYS_readahead: ::c_ulong = 222;
-pub const SYS_setxattr: ::c_ulong = 224;
-pub const SYS_lsetxattr: ::c_ulong = 225;
-pub const SYS_fsetxattr: ::c_ulong = 226;
-pub const SYS_getxattr: ::c_ulong = 227;
-pub const SYS_lgetxattr: ::c_ulong = 228;
-pub const SYS_fgetxattr: ::c_ulong = 229;
-pub const SYS_listxattr: ::c_ulong = 230;
-pub const SYS_llistxattr: ::c_ulong = 231;
-pub const SYS_flistxattr: ::c_ulong = 232;
-pub const SYS_removexattr: ::c_ulong = 233;
-pub const SYS_lremovexattr: ::c_ulong = 234;
-pub const SYS_fremovexattr: ::c_ulong = 235;
-pub const SYS_gettid: ::c_ulong = 236;
-pub const SYS_tkill: ::c_ulong = 237;
-pub const SYS_futex: ::c_ulong = 238;
-pub const SYS_sched_setaffinity: ::c_ulong = 239;
-pub const SYS_sched_getaffinity: ::c_ulong = 240;
-pub const SYS_tgkill: ::c_ulong = 241;
-pub const SYS_io_setup: ::c_ulong = 243;
-pub const SYS_io_destroy: ::c_ulong = 244;
-pub const SYS_io_getevents: ::c_ulong = 245;
-pub const SYS_io_submit: ::c_ulong = 246;
-pub const SYS_io_cancel: ::c_ulong = 247;
-pub const SYS_exit_group: ::c_ulong = 248;
-pub const SYS_epoll_create: ::c_ulong = 249;
-pub const SYS_epoll_ctl: ::c_ulong = 250;
-pub const SYS_epoll_wait: ::c_ulong = 251;
-pub const SYS_set_tid_address: ::c_ulong = 252;
-pub const SYS_fadvise64: ::c_ulong = 253;
-pub const SYS_timer_create: ::c_ulong = 254;
-pub const SYS_timer_settime: ::c_ulong = 255;
-pub const SYS_timer_gettime: ::c_ulong = 256;
-pub const SYS_timer_getoverrun: ::c_ulong = 257;
-pub const SYS_timer_delete: ::c_ulong = 258;
-pub const SYS_clock_settime: ::c_ulong = 259;
-pub const SYS_clock_gettime: ::c_ulong = 260;
-pub const SYS_clock_getres: ::c_ulong = 261;
-pub const SYS_clock_nanosleep: ::c_ulong = 262;
-pub const SYS_statfs64: ::c_ulong = 265;
-pub const SYS_fstatfs64: ::c_ulong = 266;
-pub const SYS_remap_file_pages: ::c_ulong = 267;
-pub const SYS_mbind: ::c_ulong = 268;
-pub const SYS_get_mempolicy: ::c_ulong = 269;
-pub const SYS_set_mempolicy: ::c_ulong = 270;
-pub const SYS_mq_open: ::c_ulong = 271;
-pub const SYS_mq_unlink: ::c_ulong = 272;
-pub const SYS_mq_timedsend: ::c_ulong = 273;
-pub const SYS_mq_timedreceive: ::c_ulong = 274;
-pub const SYS_mq_notify: ::c_ulong = 275;
-pub const SYS_mq_getsetattr: ::c_ulong = 276;
-pub const SYS_kexec_load: ::c_ulong = 277;
-pub const SYS_add_key: ::c_ulong = 278;
-pub const SYS_request_key: ::c_ulong = 279;
-pub const SYS_keyctl: ::c_ulong = 280;
-pub const SYS_waitid: ::c_ulong = 281;
-pub const SYS_ioprio_set: ::c_ulong = 282;
-pub const SYS_ioprio_get: ::c_ulong = 283;
-pub const SYS_inotify_init: ::c_ulong = 284;
-pub const SYS_inotify_add_watch: ::c_ulong = 285;
-pub const SYS_inotify_rm_watch: ::c_ulong = 286;
-pub const SYS_migrate_pages: ::c_ulong = 287;
-pub const SYS_openat: ::c_ulong = 288;
-pub const SYS_mkdirat: ::c_ulong = 289;
-pub const SYS_mknodat: ::c_ulong = 290;
-pub const SYS_fchownat: ::c_ulong = 291;
-pub const SYS_futimesat: ::c_ulong = 292;
-pub const SYS_unlinkat: ::c_ulong = 294;
-pub const SYS_renameat: ::c_ulong = 295;
-pub const SYS_linkat: ::c_ulong = 296;
-pub const SYS_symlinkat: ::c_ulong = 297;
-pub const SYS_readlinkat: ::c_ulong = 298;
-pub const SYS_fchmodat: ::c_ulong = 299;
-pub const SYS_faccessat: ::c_ulong = 300;
-pub const SYS_pselect6: ::c_ulong = 301;
-pub const SYS_ppoll: ::c_ulong = 302;
-pub const SYS_unshare: ::c_ulong = 303;
-pub const SYS_set_robust_list: ::c_ulong = 304;
-pub const SYS_get_robust_list: ::c_ulong = 305;
-pub const SYS_splice: ::c_ulong = 306;
-pub const SYS_sync_file_range: ::c_ulong = 307;
-pub const SYS_tee: ::c_ulong = 308;
-pub const SYS_vmsplice: ::c_ulong = 309;
-pub const SYS_move_pages: ::c_ulong = 310;
-pub const SYS_getcpu: ::c_ulong = 311;
-pub const SYS_epoll_pwait: ::c_ulong = 312;
-pub const SYS_utimes: ::c_ulong = 313;
-pub const SYS_fallocate: ::c_ulong = 314;
-pub const SYS_utimensat: ::c_ulong = 315;
-pub const SYS_signalfd: ::c_ulong = 316;
-pub const SYS_timerfd: ::c_ulong = 317;
-pub const SYS_eventfd: ::c_ulong = 318;
-pub const SYS_timerfd_create: ::c_ulong = 319;
-pub const SYS_timerfd_settime: ::c_ulong = 320;
-pub const SYS_timerfd_gettime: ::c_ulong = 321;
-pub const SYS_signalfd4: ::c_ulong = 322;
-pub const SYS_eventfd2: ::c_ulong = 323;
-pub const SYS_inotify_init1: ::c_ulong = 324;
-pub const SYS_pipe2: ::c_ulong = 325;
-pub const SYS_dup3: ::c_ulong = 326;
-pub const SYS_epoll_create1: ::c_ulong = 327;
-pub const SYS_preadv: ::c_ulong = 328;
-pub const SYS_pwritev: ::c_ulong = 329;
-pub const SYS_rt_tgsigqueueinfo: ::c_ulong = 330;
-pub const SYS_perf_event_open: ::c_ulong = 331;
-pub const SYS_fanotify_init: ::c_ulong = 332;
-pub const SYS_fanotify_mark: ::c_ulong = 333;
-pub const SYS_prlimit64: ::c_ulong = 334;
-pub const SYS_name_to_handle_at: ::c_ulong = 335;
-pub const SYS_open_by_handle_at: ::c_ulong = 336;
-pub const SYS_clock_adjtime: ::c_ulong = 337;
-pub const SYS_syncfs: ::c_ulong = 338;
-pub const SYS_setns: ::c_ulong = 339;
-pub const SYS_process_vm_readv: ::c_ulong = 340;
-pub const SYS_process_vm_writev: ::c_ulong = 341;
-pub const SYS_s390_runtime_instr: ::c_ulong = 342;
-pub const SYS_kcmp: ::c_ulong = 343;
-pub const SYS_finit_module: ::c_ulong = 344;
-pub const SYS_sched_setattr: ::c_ulong = 345;
-pub const SYS_sched_getattr: ::c_ulong = 346;
-pub const SYS_renameat2: ::c_ulong = 347;
-pub const SYS_seccomp: ::c_ulong = 348;
-pub const SYS_getrandom: ::c_ulong = 349;
-pub const SYS_memfd_create: ::c_ulong = 350;
-pub const SYS_bpf: ::c_ulong = 351;
-pub const SYS_s390_pci_mmio_write: ::c_ulong = 352;
-pub const SYS_s390_pci_mmio_read: ::c_ulong = 353;
-pub const SYS_execveat: ::c_ulong = 354;
-pub const SYS_userfaultfd: ::c_ulong = 355;
-pub const SYS_membarrier: ::c_ulong = 356;
-pub const SYS_recvmmsg: ::c_ulong = 357;
-pub const SYS_sendmmsg: ::c_ulong = 358;
-pub const SYS_socket: ::c_ulong = 359;
-pub const SYS_socketpair: ::c_ulong = 360;
-pub const SYS_bind: ::c_ulong = 361;
-pub const SYS_connect: ::c_ulong = 362;
-pub const SYS_listen: ::c_ulong = 363;
-pub const SYS_accept4: ::c_ulong = 364;
-pub const SYS_getsockopt: ::c_ulong = 365;
-pub const SYS_setsockopt: ::c_ulong = 366;
-pub const SYS_getsockname: ::c_ulong = 367;
-pub const SYS_getpeername: ::c_ulong = 368;
-pub const SYS_sendto: ::c_ulong = 369;
-pub const SYS_sendmsg: ::c_ulong = 370;
-pub const SYS_recvfrom: ::c_ulong = 371;
-pub const SYS_recvmsg: ::c_ulong = 372;
-pub const SYS_shutdown: ::c_ulong = 373;
-pub const SYS_mlock2: ::c_ulong = 374;
-pub const SYS_copy_file_range: ::c_ulong = 375;
-pub const SYS_preadv2: ::c_ulong = 376;
-pub const SYS_pwritev2: ::c_ulong = 377;
-pub const SYS_lchown: ::c_ulong = 16;
-pub const SYS_setuid: ::c_ulong = 23;
-pub const SYS_getuid: ::c_ulong = 24;
-pub const SYS_setgid: ::c_ulong = 46;
-pub const SYS_getgid: ::c_ulong = 47;
-pub const SYS_geteuid: ::c_ulong = 49;
-pub const SYS_setreuid: ::c_ulong = 70;
-pub const SYS_setregid: ::c_ulong = 71;
-pub const SYS_getrlimit: ::c_ulong = 76;
-pub const SYS_getgroups: ::c_ulong = 80;
-pub const SYS_fchown: ::c_ulong = 95;
-pub const SYS_setresuid: ::c_ulong = 164;
-pub const SYS_setresgid: ::c_ulong = 170;
-pub const SYS_getresgid: ::c_ulong = 171;
-pub const SYS_select: ::c_ulong = 142;
-pub const SYS_getegid: ::c_ulong = 202;
-pub const SYS_setgroups: ::c_ulong = 206;
-pub const SYS_getresuid: ::c_ulong = 209;
-pub const SYS_chown: ::c_ulong = 212;
-pub const SYS_setfsuid: ::c_ulong = 215;
-pub const SYS_setfsgid: ::c_ulong = 216;
-pub const SYS_newfstatat: ::c_ulong = 293;
+pub const SYS_exit: ::c_long = 1;
+pub const SYS_fork: ::c_long = 2;
+pub const SYS_read: ::c_long = 3;
+pub const SYS_write: ::c_long = 4;
+pub const SYS_open: ::c_long = 5;
+pub const SYS_close: ::c_long = 6;
+pub const SYS_restart_syscall: ::c_long = 7;
+pub const SYS_creat: ::c_long = 8;
+pub const SYS_link: ::c_long = 9;
+pub const SYS_unlink: ::c_long = 10;
+pub const SYS_execve: ::c_long = 11;
+pub const SYS_chdir: ::c_long = 12;
+pub const SYS_mknod: ::c_long = 14;
+pub const SYS_chmod: ::c_long = 15;
+pub const SYS_lseek: ::c_long = 19;
+pub const SYS_getpid: ::c_long = 20;
+pub const SYS_mount: ::c_long = 21;
+pub const SYS_umount: ::c_long = 22;
+pub const SYS_ptrace: ::c_long = 26;
+pub const SYS_alarm: ::c_long = 27;
+pub const SYS_pause: ::c_long = 29;
+pub const SYS_utime: ::c_long = 30;
+pub const SYS_access: ::c_long = 33;
+pub const SYS_nice: ::c_long = 34;
+pub const SYS_sync: ::c_long = 36;
+pub const SYS_kill: ::c_long = 37;
+pub const SYS_rename: ::c_long = 38;
+pub const SYS_mkdir: ::c_long = 39;
+pub const SYS_rmdir: ::c_long = 40;
+pub const SYS_dup: ::c_long = 41;
+pub const SYS_pipe: ::c_long = 42;
+pub const SYS_times: ::c_long = 43;
+pub const SYS_brk: ::c_long = 45;
+pub const SYS_signal: ::c_long = 48;
+pub const SYS_acct: ::c_long = 51;
+pub const SYS_umount2: ::c_long = 52;
+pub const SYS_ioctl: ::c_long = 54;
+pub const SYS_fcntl: ::c_long = 55;
+pub const SYS_setpgid: ::c_long = 57;
+pub const SYS_umask: ::c_long = 60;
+pub const SYS_chroot: ::c_long = 61;
+pub const SYS_ustat: ::c_long = 62;
+pub const SYS_dup2: ::c_long = 63;
+pub const SYS_getppid: ::c_long = 64;
+pub const SYS_getpgrp: ::c_long = 65;
+pub const SYS_setsid: ::c_long = 66;
+pub const SYS_sigaction: ::c_long = 67;
+pub const SYS_sigsuspend: ::c_long = 72;
+pub const SYS_sigpending: ::c_long = 73;
+pub const SYS_sethostname: ::c_long = 74;
+pub const SYS_setrlimit: ::c_long = 75;
+pub const SYS_getrusage: ::c_long = 77;
+pub const SYS_gettimeofday: ::c_long = 78;
+pub const SYS_settimeofday: ::c_long = 79;
+pub const SYS_symlink: ::c_long = 83;
+pub const SYS_readlink: ::c_long = 85;
+pub const SYS_uselib: ::c_long = 86;
+pub const SYS_swapon: ::c_long = 87;
+pub const SYS_reboot: ::c_long = 88;
+pub const SYS_readdir: ::c_long = 89;
+pub const SYS_mmap: ::c_long = 90;
+pub const SYS_munmap: ::c_long = 91;
+pub const SYS_truncate: ::c_long = 92;
+pub const SYS_ftruncate: ::c_long = 93;
+pub const SYS_fchmod: ::c_long = 94;
+pub const SYS_getpriority: ::c_long = 96;
+pub const SYS_setpriority: ::c_long = 97;
+pub const SYS_statfs: ::c_long = 99;
+pub const SYS_fstatfs: ::c_long = 100;
+pub const SYS_socketcall: ::c_long = 102;
+pub const SYS_syslog: ::c_long = 103;
+pub const SYS_setitimer: ::c_long = 104;
+pub const SYS_getitimer: ::c_long = 105;
+pub const SYS_stat: ::c_long = 106;
+pub const SYS_lstat: ::c_long = 107;
+pub const SYS_fstat: ::c_long = 108;
+pub const SYS_lookup_dcookie: ::c_long = 110;
+pub const SYS_vhangup: ::c_long = 111;
+pub const SYS_idle: ::c_long = 112;
+pub const SYS_wait4: ::c_long = 114;
+pub const SYS_swapoff: ::c_long = 115;
+pub const SYS_sysinfo: ::c_long = 116;
+pub const SYS_ipc: ::c_long = 117;
+pub const SYS_fsync: ::c_long = 118;
+pub const SYS_sigreturn: ::c_long = 119;
+pub const SYS_clone: ::c_long = 120;
+pub const SYS_setdomainname: ::c_long = 121;
+pub const SYS_uname: ::c_long = 122;
+pub const SYS_adjtimex: ::c_long = 124;
+pub const SYS_mprotect: ::c_long = 125;
+pub const SYS_sigprocmask: ::c_long = 126;
+pub const SYS_create_module: ::c_long = 127;
+pub const SYS_init_module: ::c_long = 128;
+pub const SYS_delete_module: ::c_long = 129;
+pub const SYS_get_kernel_syms: ::c_long = 130;
+pub const SYS_quotactl: ::c_long = 131;
+pub const SYS_getpgid: ::c_long = 132;
+pub const SYS_fchdir: ::c_long = 133;
+pub const SYS_bdflush: ::c_long = 134;
+pub const SYS_sysfs: ::c_long = 135;
+pub const SYS_personality: ::c_long = 136;
+pub const SYS_afs_syscall: ::c_long = 137; /* Syscall for Andrew File System */
+pub const SYS_getdents: ::c_long = 141;
+pub const SYS_flock: ::c_long = 143;
+pub const SYS_msync: ::c_long = 144;
+pub const SYS_readv: ::c_long = 145;
+pub const SYS_writev: ::c_long = 146;
+pub const SYS_getsid: ::c_long = 147;
+pub const SYS_fdatasync: ::c_long = 148;
+pub const SYS__sysctl: ::c_long = 149;
+pub const SYS_mlock: ::c_long = 150;
+pub const SYS_munlock: ::c_long = 151;
+pub const SYS_mlockall: ::c_long = 152;
+pub const SYS_munlockall: ::c_long = 153;
+pub const SYS_sched_setparam: ::c_long = 154;
+pub const SYS_sched_getparam: ::c_long = 155;
+pub const SYS_sched_setscheduler: ::c_long = 156;
+pub const SYS_sched_getscheduler: ::c_long = 157;
+pub const SYS_sched_yield: ::c_long = 158;
+pub const SYS_sched_get_priority_max: ::c_long = 159;
+pub const SYS_sched_get_priority_min: ::c_long = 160;
+pub const SYS_sched_rr_get_interval: ::c_long = 161;
+pub const SYS_nanosleep: ::c_long = 162;
+pub const SYS_mremap: ::c_long = 163;
+pub const SYS_query_module: ::c_long = 167;
+pub const SYS_poll: ::c_long = 168;
+pub const SYS_nfsservctl: ::c_long = 169;
+pub const SYS_prctl: ::c_long = 172;
+pub const SYS_rt_sigreturn: ::c_long = 173;
+pub const SYS_rt_sigaction: ::c_long = 174;
+pub const SYS_rt_sigprocmask: ::c_long = 175;
+pub const SYS_rt_sigpending: ::c_long = 176;
+pub const SYS_rt_sigtimedwait: ::c_long = 177;
+pub const SYS_rt_sigqueueinfo: ::c_long = 178;
+pub const SYS_rt_sigsuspend: ::c_long = 179;
+pub const SYS_pread64: ::c_long = 180;
+pub const SYS_pwrite64: ::c_long = 181;
+pub const SYS_getcwd: ::c_long = 183;
+pub const SYS_capget: ::c_long = 184;
+pub const SYS_capset: ::c_long = 185;
+pub const SYS_sigaltstack: ::c_long = 186;
+pub const SYS_sendfile: ::c_long = 187;
+pub const SYS_getpmsg: ::c_long = 188;
+pub const SYS_putpmsg: ::c_long = 189;
+pub const SYS_vfork: ::c_long = 190;
+pub const SYS_pivot_root: ::c_long = 217;
+pub const SYS_mincore: ::c_long = 218;
+pub const SYS_madvise: ::c_long = 219;
+pub const SYS_getdents64: ::c_long = 220;
+pub const SYS_readahead: ::c_long = 222;
+pub const SYS_setxattr: ::c_long = 224;
+pub const SYS_lsetxattr: ::c_long = 225;
+pub const SYS_fsetxattr: ::c_long = 226;
+pub const SYS_getxattr: ::c_long = 227;
+pub const SYS_lgetxattr: ::c_long = 228;
+pub const SYS_fgetxattr: ::c_long = 229;
+pub const SYS_listxattr: ::c_long = 230;
+pub const SYS_llistxattr: ::c_long = 231;
+pub const SYS_flistxattr: ::c_long = 232;
+pub const SYS_removexattr: ::c_long = 233;
+pub const SYS_lremovexattr: ::c_long = 234;
+pub const SYS_fremovexattr: ::c_long = 235;
+pub const SYS_gettid: ::c_long = 236;
+pub const SYS_tkill: ::c_long = 237;
+pub const SYS_futex: ::c_long = 238;
+pub const SYS_sched_setaffinity: ::c_long = 239;
+pub const SYS_sched_getaffinity: ::c_long = 240;
+pub const SYS_tgkill: ::c_long = 241;
+pub const SYS_io_setup: ::c_long = 243;
+pub const SYS_io_destroy: ::c_long = 244;
+pub const SYS_io_getevents: ::c_long = 245;
+pub const SYS_io_submit: ::c_long = 246;
+pub const SYS_io_cancel: ::c_long = 247;
+pub const SYS_exit_group: ::c_long = 248;
+pub const SYS_epoll_create: ::c_long = 249;
+pub const SYS_epoll_ctl: ::c_long = 250;
+pub const SYS_epoll_wait: ::c_long = 251;
+pub const SYS_set_tid_address: ::c_long = 252;
+pub const SYS_fadvise64: ::c_long = 253;
+pub const SYS_timer_create: ::c_long = 254;
+pub const SYS_timer_settime: ::c_long = 255;
+pub const SYS_timer_gettime: ::c_long = 256;
+pub const SYS_timer_getoverrun: ::c_long = 257;
+pub const SYS_timer_delete: ::c_long = 258;
+pub const SYS_clock_settime: ::c_long = 259;
+pub const SYS_clock_gettime: ::c_long = 260;
+pub const SYS_clock_getres: ::c_long = 261;
+pub const SYS_clock_nanosleep: ::c_long = 262;
+pub const SYS_statfs64: ::c_long = 265;
+pub const SYS_fstatfs64: ::c_long = 266;
+pub const SYS_remap_file_pages: ::c_long = 267;
+pub const SYS_mbind: ::c_long = 268;
+pub const SYS_get_mempolicy: ::c_long = 269;
+pub const SYS_set_mempolicy: ::c_long = 270;
+pub const SYS_mq_open: ::c_long = 271;
+pub const SYS_mq_unlink: ::c_long = 272;
+pub const SYS_mq_timedsend: ::c_long = 273;
+pub const SYS_mq_timedreceive: ::c_long = 274;
+pub const SYS_mq_notify: ::c_long = 275;
+pub const SYS_mq_getsetattr: ::c_long = 276;
+pub const SYS_kexec_load: ::c_long = 277;
+pub const SYS_add_key: ::c_long = 278;
+pub const SYS_request_key: ::c_long = 279;
+pub const SYS_keyctl: ::c_long = 280;
+pub const SYS_waitid: ::c_long = 281;
+pub const SYS_ioprio_set: ::c_long = 282;
+pub const SYS_ioprio_get: ::c_long = 283;
+pub const SYS_inotify_init: ::c_long = 284;
+pub const SYS_inotify_add_watch: ::c_long = 285;
+pub const SYS_inotify_rm_watch: ::c_long = 286;
+pub const SYS_migrate_pages: ::c_long = 287;
+pub const SYS_openat: ::c_long = 288;
+pub const SYS_mkdirat: ::c_long = 289;
+pub const SYS_mknodat: ::c_long = 290;
+pub const SYS_fchownat: ::c_long = 291;
+pub const SYS_futimesat: ::c_long = 292;
+pub const SYS_unlinkat: ::c_long = 294;
+pub const SYS_renameat: ::c_long = 295;
+pub const SYS_linkat: ::c_long = 296;
+pub const SYS_symlinkat: ::c_long = 297;
+pub const SYS_readlinkat: ::c_long = 298;
+pub const SYS_fchmodat: ::c_long = 299;
+pub const SYS_faccessat: ::c_long = 300;
+pub const SYS_pselect6: ::c_long = 301;
+pub const SYS_ppoll: ::c_long = 302;
+pub const SYS_unshare: ::c_long = 303;
+pub const SYS_set_robust_list: ::c_long = 304;
+pub const SYS_get_robust_list: ::c_long = 305;
+pub const SYS_splice: ::c_long = 306;
+pub const SYS_sync_file_range: ::c_long = 307;
+pub const SYS_tee: ::c_long = 308;
+pub const SYS_vmsplice: ::c_long = 309;
+pub const SYS_move_pages: ::c_long = 310;
+pub const SYS_getcpu: ::c_long = 311;
+pub const SYS_epoll_pwait: ::c_long = 312;
+pub const SYS_utimes: ::c_long = 313;
+pub const SYS_fallocate: ::c_long = 314;
+pub const SYS_utimensat: ::c_long = 315;
+pub const SYS_signalfd: ::c_long = 316;
+pub const SYS_timerfd: ::c_long = 317;
+pub const SYS_eventfd: ::c_long = 318;
+pub const SYS_timerfd_create: ::c_long = 319;
+pub const SYS_timerfd_settime: ::c_long = 320;
+pub const SYS_timerfd_gettime: ::c_long = 321;
+pub const SYS_signalfd4: ::c_long = 322;
+pub const SYS_eventfd2: ::c_long = 323;
+pub const SYS_inotify_init1: ::c_long = 324;
+pub const SYS_pipe2: ::c_long = 325;
+pub const SYS_dup3: ::c_long = 326;
+pub const SYS_epoll_create1: ::c_long = 327;
+pub const SYS_preadv: ::c_long = 328;
+pub const SYS_pwritev: ::c_long = 329;
+pub const SYS_rt_tgsigqueueinfo: ::c_long = 330;
+pub const SYS_perf_event_open: ::c_long = 331;
+pub const SYS_fanotify_init: ::c_long = 332;
+pub const SYS_fanotify_mark: ::c_long = 333;
+pub const SYS_prlimit64: ::c_long = 334;
+pub const SYS_name_to_handle_at: ::c_long = 335;
+pub const SYS_open_by_handle_at: ::c_long = 336;
+pub const SYS_clock_adjtime: ::c_long = 337;
+pub const SYS_syncfs: ::c_long = 338;
+pub const SYS_setns: ::c_long = 339;
+pub const SYS_process_vm_readv: ::c_long = 340;
+pub const SYS_process_vm_writev: ::c_long = 341;
+pub const SYS_s390_runtime_instr: ::c_long = 342;
+pub const SYS_kcmp: ::c_long = 343;
+pub const SYS_finit_module: ::c_long = 344;
+pub const SYS_sched_setattr: ::c_long = 345;
+pub const SYS_sched_getattr: ::c_long = 346;
+pub const SYS_renameat2: ::c_long = 347;
+pub const SYS_seccomp: ::c_long = 348;
+pub const SYS_getrandom: ::c_long = 349;
+pub const SYS_memfd_create: ::c_long = 350;
+pub const SYS_bpf: ::c_long = 351;
+pub const SYS_s390_pci_mmio_write: ::c_long = 352;
+pub const SYS_s390_pci_mmio_read: ::c_long = 353;
+pub const SYS_execveat: ::c_long = 354;
+pub const SYS_userfaultfd: ::c_long = 355;
+pub const SYS_membarrier: ::c_long = 356;
+pub const SYS_recvmmsg: ::c_long = 357;
+pub const SYS_sendmmsg: ::c_long = 358;
+pub const SYS_socket: ::c_long = 359;
+pub const SYS_socketpair: ::c_long = 360;
+pub const SYS_bind: ::c_long = 361;
+pub const SYS_connect: ::c_long = 362;
+pub const SYS_listen: ::c_long = 363;
+pub const SYS_accept4: ::c_long = 364;
+pub const SYS_getsockopt: ::c_long = 365;
+pub const SYS_setsockopt: ::c_long = 366;
+pub const SYS_getsockname: ::c_long = 367;
+pub const SYS_getpeername: ::c_long = 368;
+pub const SYS_sendto: ::c_long = 369;
+pub const SYS_sendmsg: ::c_long = 370;
+pub const SYS_recvfrom: ::c_long = 371;
+pub const SYS_recvmsg: ::c_long = 372;
+pub const SYS_shutdown: ::c_long = 373;
+pub const SYS_mlock2: ::c_long = 374;
+pub const SYS_copy_file_range: ::c_long = 375;
+pub const SYS_preadv2: ::c_long = 376;
+pub const SYS_pwritev2: ::c_long = 377;
+pub const SYS_lchown: ::c_long = 16;
+pub const SYS_setuid: ::c_long = 23;
+pub const SYS_getuid: ::c_long = 24;
+pub const SYS_setgid: ::c_long = 46;
+pub const SYS_getgid: ::c_long = 47;
+pub const SYS_geteuid: ::c_long = 49;
+pub const SYS_setreuid: ::c_long = 70;
+pub const SYS_setregid: ::c_long = 71;
+pub const SYS_getrlimit: ::c_long = 76;
+pub const SYS_getgroups: ::c_long = 80;
+pub const SYS_fchown: ::c_long = 95;
+pub const SYS_setresuid: ::c_long = 164;
+pub const SYS_setresgid: ::c_long = 170;
+pub const SYS_getresgid: ::c_long = 171;
+pub const SYS_select: ::c_long = 142;
+pub const SYS_getegid: ::c_long = 202;
+pub const SYS_setgroups: ::c_long = 206;
+pub const SYS_getresuid: ::c_long = 209;
+pub const SYS_chown: ::c_long = 212;
+pub const SYS_setfsuid: ::c_long = 215;
+pub const SYS_setfsgid: ::c_long = 216;
+pub const SYS_newfstatat: ::c_long = 293;
#[link(name = "util")]
extern {