File tree 3 files changed +10
-0
lines changed
src/unix/linux_like/linux
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2924,6 +2924,10 @@ fn test_linux(target: &str) {
2924
2924
| "SW_CNT"
2925
2925
if mips || ppc64 || riscv64 || sparc64 => true ,
2926
2926
2927
+ // FIXME: Requires more recent kernel headers (5.9 / 5.11):
2928
+ | "CLOSE_RANGE_UNSHARE"
2929
+ | "CLOSE_RANGE_CLOEXEC" => true ,
2930
+
2927
2931
// kernel constants not available in uclibc 1.0.34
2928
2932
| "ADDR_COMPAT_LAYOUT"
2929
2933
| "ADDR_LIMIT_3GB"
Original file line number Diff line number Diff line change @@ -265,6 +265,8 @@ CLONE_THREAD
265
265
CLONE_UNTRACED
266
266
CLONE_VFORK
267
267
CLONE_VM
268
+ CLOSE_RANGE_CLOEXEC
269
+ CLOSE_RANGE_UNSHARE
268
270
CMSG_DATA
269
271
CMSG_FIRSTHDR
270
272
CMSG_LEN
Original file line number Diff line number Diff line change @@ -1818,6 +1818,10 @@ pub const MFD_CLOEXEC: ::c_uint = 0x0001;
1818
1818
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
1819
1819
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
1820
1820
1821
+ // linux/close_range.h
1822
+ pub const CLOSE_RANGE_UNSHARE : :: c_uint = 1 << 1 ;
1823
+ pub const CLOSE_RANGE_CLOEXEC : :: c_uint = 1 << 2 ;
1824
+
1821
1825
// these are used in the p_type field of Elf32_Phdr and Elf64_Phdr, which has
1822
1826
// the type Elf32Word and Elf64Word respectively. Luckily, both of those are u32
1823
1827
// so we can use that type here to avoid having to cast.
You can’t perform that action at this time.
0 commit comments