diff --git a/src/unix/notbsd/android/b32/arm.rs b/src/unix/notbsd/android/b32/arm.rs index de2af291076e7..c38f64428a119 100644 --- a/src/unix/notbsd/android/b32/arm.rs +++ b/src/unix/notbsd/android/b32/arm.rs @@ -6,4 +6,7 @@ pub const O_DIRECTORY: ::c_int = 0x4000; pub const O_NOFOLLOW: ::c_int = 0x8000; pub const O_LARGEFILE: ::c_int = 0o400000; +pub const SYS_pivot_root: ::c_long = 218; pub const SYS_gettid: ::c_long = 224; +pub const SYS_perf_event_open: ::c_long = 364; +pub const SYS_memfd_create: ::c_long = 385; diff --git a/src/unix/notbsd/android/b64/aarch64.rs b/src/unix/notbsd/android/b64/aarch64.rs index b683dcbbe324f..f08f4f1cc43e7 100644 --- a/src/unix/notbsd/android/b64/aarch64.rs +++ b/src/unix/notbsd/android/b64/aarch64.rs @@ -54,7 +54,10 @@ pub const O_DIRECTORY: ::c_int = 0x4000; pub const O_NOFOLLOW: ::c_int = 0x8000; pub const O_LARGEFILE: ::c_int = 0o400000; +pub const SYS_pivot_root: ::c_long = 41; pub const SYS_gettid: ::c_long = 178; +pub const SYS_perf_event_open: ::c_long = 241; +pub const SYS_memfd_create: ::c_long = 279; pub const SIGSTKSZ: ::size_t = 16384; pub const MINSIGSTKSZ: ::size_t = 5120; diff --git a/src/unix/notbsd/linux/mips/mips32.rs b/src/unix/notbsd/linux/mips/mips32.rs index 9e0ebb428e1ee..0bfcc4f84ae3f 100644 --- a/src/unix/notbsd/linux/mips/mips32.rs +++ b/src/unix/notbsd/linux/mips/mips32.rs @@ -269,4 +269,8 @@ pub const O_LARGEFILE: ::c_int = 0x2000; pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff; -pub const SYS_gettid: ::c_long = 4222; // Valid for O32 +// Valid for O32 +pub const SYS_pivot_root: ::c_long = 4216; +pub const SYS_gettid: ::c_long = 4222; +pub const SYS_perf_event_open: ::c_long = 4333; +pub const SYS_memfd_create: ::c_long = 4354; diff --git a/src/unix/notbsd/linux/mips/mips64.rs b/src/unix/notbsd/linux/mips/mips64.rs index 87910c0570d98..2de75355d3d06 100644 --- a/src/unix/notbsd/linux/mips/mips64.rs +++ b/src/unix/notbsd/linux/mips/mips64.rs @@ -251,4 +251,7 @@ pub const O_LARGEFILE: ::c_int = 0; pub const RLIM_INFINITY: ::rlim_t = 0xffff_ffff_ffff_ffff; -pub const SYS_gettid: ::c_long = 5178; // Valid for n64 +// Valid for n64 +pub const SYS_pivot_root: ::c_long = 5151; +pub const SYS_gettid: ::c_long = 5178; +pub const SYS_memfd_create: ::c_long = 5314; diff --git a/src/unix/notbsd/linux/musl/b32/arm.rs b/src/unix/notbsd/linux/musl/b32/arm.rs index 55f65f0e9c657..d0b46600c4a43 100644 --- a/src/unix/notbsd/linux/musl/b32/arm.rs +++ b/src/unix/notbsd/linux/musl/b32/arm.rs @@ -371,8 +371,10 @@ pub const TIOCMSET: ::c_int = 0x5418; pub const FIONREAD: ::c_int = 0x541B; pub const TIOCCONS: ::c_int = 0x541D; +pub const SYS_pivot_root: ::c_long = 218; pub const SYS_gettid: ::c_long = 224; pub const SYS_perf_event_open: ::c_long = 364; +pub const SYS_memfd_create: ::c_long = 385; pub const POLLWRNORM: ::c_short = 0x100; pub const POLLWRBAND: ::c_short = 0x200; diff --git a/src/unix/notbsd/linux/musl/b32/mips.rs b/src/unix/notbsd/linux/musl/b32/mips.rs index 580efff911727..94039773e5d1b 100644 --- a/src/unix/notbsd/linux/musl/b32/mips.rs +++ b/src/unix/notbsd/linux/musl/b32/mips.rs @@ -382,8 +382,11 @@ pub const TIOCMSET: ::c_int = 0x741A; pub const FIONREAD: ::c_int = 0x467F; pub const TIOCCONS: ::c_int = 0x80047478; -pub const SYS_gettid: ::c_long = 4222; // Valid for O32 -pub const SYS_perf_event_open: ::c_long = 4333; // Valid for O32 +// Valid for O32 +pub const SYS_pivot_root: ::c_long = 4216; +pub const SYS_gettid: ::c_long = 4222; +pub const SYS_perf_event_open: ::c_long = 4333; +pub const SYS_memfd_create: ::c_long = 4354; pub const POLLWRNORM: ::c_short = 0x4; pub const POLLWRBAND: ::c_short = 0x100; diff --git a/src/unix/notbsd/linux/musl/b64/aarch64.rs b/src/unix/notbsd/linux/musl/b64/aarch64.rs index 003ee58c4d151..fa103aacaa182 100644 --- a/src/unix/notbsd/linux/musl/b64/aarch64.rs +++ b/src/unix/notbsd/linux/musl/b64/aarch64.rs @@ -1,4 +1,7 @@ pub type c_char = u8; pub type __u64 = ::c_ulonglong; +pub const SYS_pivot_root: ::c_long = 41; +pub const SYS_gettid: ::c_long = 178; pub const SYS_perf_event_open: ::c_long = 241; +pub const SYS_memfd_create: ::c_long = 279; diff --git a/src/unix/notbsd/linux/musl/b64/powerpc64.rs b/src/unix/notbsd/linux/musl/b64/powerpc64.rs index e492107842899..4e8b9adbf748b 100644 --- a/src/unix/notbsd/linux/musl/b64/powerpc64.rs +++ b/src/unix/notbsd/linux/musl/b64/powerpc64.rs @@ -1,4 +1,7 @@ pub type c_char = u8; pub type __u64 = ::c_ulong; +pub const SYS_pivot_root: ::c_long = 203; +pub const SYS_gettid: ::c_long = 207; pub const SYS_perf_event_open: ::c_long = 319; +pub const SYS_memfd_create: ::c_long = 360; diff --git a/src/unix/notbsd/linux/other/b32/arm.rs b/src/unix/notbsd/linux/other/b32/arm.rs index 709be7742be55..4de1f32ba924e 100644 --- a/src/unix/notbsd/linux/other/b32/arm.rs +++ b/src/unix/notbsd/linux/other/b32/arm.rs @@ -125,8 +125,10 @@ pub const SO_RCVBUFFORCE: ::c_int = 33; pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; +pub const SYS_pivot_root: ::c_long = 218; pub const SYS_gettid: ::c_long = 224; pub const SYS_perf_event_open: ::c_long = 364; +pub const SYS_memfd_create: ::c_long = 385; pub const PTRACE_GETFPXREGS: ::c_uint = 18; pub const PTRACE_SETFPXREGS: ::c_uint = 19; diff --git a/src/unix/notbsd/linux/other/b32/powerpc.rs b/src/unix/notbsd/linux/other/b32/powerpc.rs index b1280e8d7a070..13646b7f07fe8 100644 --- a/src/unix/notbsd/linux/other/b32/powerpc.rs +++ b/src/unix/notbsd/linux/other/b32/powerpc.rs @@ -126,8 +126,10 @@ pub const SO_PEERCRED: ::c_int = 21; pub const FIOCLEX: ::c_ulong = 0x20006601; pub const FIONBIO: ::c_ulong = 0x8004667e; +pub const SYS_pivot_root: ::c_long = 203; pub const SYS_gettid: ::c_long = 207; pub const SYS_perf_event_open: ::c_long = 319; +pub const SYS_memfd_create: ::c_long = 360; pub const MCL_CURRENT: ::c_int = 0x2000; pub const MCL_FUTURE: ::c_int = 0x4000; diff --git a/src/unix/notbsd/linux/other/b64/aarch64.rs b/src/unix/notbsd/linux/other/b64/aarch64.rs index 8f8bcd0240ed6..f4583d5893abb 100644 --- a/src/unix/notbsd/linux/other/b64/aarch64.rs +++ b/src/unix/notbsd/linux/other/b64/aarch64.rs @@ -367,8 +367,10 @@ pub const EDEADLOCK: ::c_int = 35; pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; +pub const SYS_pivot_root: ::c_long = 41; pub const SYS_gettid: ::c_long = 178; pub const SYS_perf_event_open: ::c_long = 241; +pub const SYS_memfd_create: ::c_long = 279; pub const MCL_CURRENT: ::c_int = 0x0001; pub const MCL_FUTURE: ::c_int = 0x0002; diff --git a/src/unix/notbsd/linux/other/b64/powerpc64.rs b/src/unix/notbsd/linux/other/b64/powerpc64.rs index 5fe06db7d7411..56a78b0626c7c 100644 --- a/src/unix/notbsd/linux/other/b64/powerpc64.rs +++ b/src/unix/notbsd/linux/other/b64/powerpc64.rs @@ -365,8 +365,10 @@ pub const EDEADLOCK: ::c_int = 58; pub const FIOCLEX: ::c_ulong = 0x20006601; pub const FIONBIO: ::c_ulong = 0x8004667e; +pub const SYS_pivot_root: ::c_long = 203; pub const SYS_gettid: ::c_long = 207; pub const SYS_perf_event_open: ::c_long = 319; +pub const SYS_memfd_create: ::c_long = 360; pub const MCL_CURRENT: ::c_int = 0x2000; pub const MCL_FUTURE: ::c_int = 0x4000; diff --git a/src/unix/notbsd/linux/s390x.rs b/src/unix/notbsd/linux/s390x.rs index 7f5e11a4f2b30..4f8318abd8b66 100644 --- a/src/unix/notbsd/linux/s390x.rs +++ b/src/unix/notbsd/linux/s390x.rs @@ -800,8 +800,10 @@ pub const LINUX_REBOOT_CMD_RESTART2: ::c_int = 0xA1B2C3D4; pub const LINUX_REBOOT_CMD_SW_SUSPEND: ::c_int = 0xD000FCE2; pub const LINUX_REBOOT_CMD_KEXEC: ::c_int = 0x45584543; +pub const SYS_pivot_root: ::c_long = 217; pub const SYS_gettid: ::c_long = 236; pub const SYS_perf_event_open: ::c_long = 331; +pub const SYS_memfd_create: ::c_long = 350; pub const VTIME: usize = 5; pub const VSWTC: usize = 7;