| ... | @@ -887,6 +887,7 @@ pub const CLONE_VM = 0x00000100; | ... | @@ -887,6 +887,7 @@ pub const CLONE_VM = 0x00000100; |
| 887 | pub const CLONE_FS = 0x00000200; | 887 | pub const CLONE_FS = 0x00000200; |
| 888 | pub const CLONE_FILES = 0x00000400; | 888 | pub const CLONE_FILES = 0x00000400; |
| 889 | pub const CLONE_SIGHAND = 0x00000800; | 889 | pub const CLONE_SIGHAND = 0x00000800; |
| | 890 | pub const CLONE_PIDFD = 0x00001000; |
| 890 | pub const CLONE_PTRACE = 0x00002000; | 891 | pub const CLONE_PTRACE = 0x00002000; |
| 891 | pub const CLONE_VFORK = 0x00004000; | 892 | pub const CLONE_VFORK = 0x00004000; |
| 892 | pub const CLONE_PARENT = 0x00008000; | 893 | pub const CLONE_PARENT = 0x00008000; |
| ... | @@ -911,6 +912,8 @@ pub const CLONE_IO = 0x80000000; | ... | @@ -911,6 +912,8 @@ pub const CLONE_IO = 0x80000000; |
| 911 | | 912 | |
| 912 | /// Clear any signal handler and reset to SIG_DFL. | 913 | /// Clear any signal handler and reset to SIG_DFL. |
| 913 | pub const CLONE_CLEAR_SIGHAND = 0x100000000; | 914 | pub const CLONE_CLEAR_SIGHAND = 0x100000000; |
| | 915 | /// Clone into a specific cgroup given the right permissions. |
| | 916 | pub const CLONE_INTO_CGROUP = 0x200000000; |
| 914 | | 917 | |
| 915 | // cloning flags intersect with CSIGNAL so can be used with unshare and clone3 syscalls only. | 918 | // cloning flags intersect with CSIGNAL so can be used with unshare and clone3 syscalls only. |
| 916 | | 919 | |
| ... | @@ -1131,6 +1134,9 @@ pub const SIG_IGN = @intToPtr(?Sigaction.sigaction_fn, 1); | ... | @@ -1131,6 +1134,9 @@ pub const SIG_IGN = @intToPtr(?Sigaction.sigaction_fn, 1); |
| 1131 | | 1134 | |
| 1132 | pub const empty_sigset = [_]u32{0} ** @typeInfo(sigset_t).Array.len; | 1135 | pub const empty_sigset = [_]u32{0} ** @typeInfo(sigset_t).Array.len; |
| 1133 | | 1136 | |
| | 1137 | pub const SFD_CLOEXEC = O_CLOEXEC; |
| | 1138 | pub const SFD_NONBLOCK = O_NONBLOCK; |
| | 1139 | |
| 1134 | pub const signalfd_siginfo = extern struct { | 1140 | pub const signalfd_siginfo = extern struct { |
| 1135 | signo: u32, | 1141 | signo: u32, |
| 1136 | errno: i32, | 1142 | errno: i32, |