diff --git a/src/number.rs b/src/number.rs index 6b395b0707..f2ffd222c6 100644 --- a/src/number.rs +++ b/src/number.rs @@ -42,6 +42,11 @@ pub const SYS_FTRUNCATE: usize = SYS_CLASS_FILE | 0x1B3; pub const SYS_FUTIMENS: usize = SYS_CLASS_FILE | 0x1B4; pub const SYS_FSTATVFS: usize = SYS_CLASS_FILE | 0x1B5; pub const SYS_MKNS: usize = SYS_CLASS_FILE | 0x1B6; +/// Red Bear: set current namespace to the one referenced by `fd`. +/// `SYS_SETNS = SYS_CLASS_FILE | 0x1B7`. Pairs with `SYS_MKNS` for the +/// `redox_setrens_v1` / `redox-rt::sys::mkns` + `setns` pair that init uses +/// to enter a "null namespace" before its waitpid loop. +pub const SYS_SETNS: usize = SYS_CLASS_FILE | 0x1B7; // SYS_CALL, fd, inout buf ptr, inout buf len, flags, metadata buf ptr, metadata buf len // TODO: new number for SYS_CALL where flags are sent as 6th argument (using syscall6)