File tree 6 files changed +19
-0
lines changed 6 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,10 @@ fn main() {
248
248
if !uclibc && !musl && !emscripten {
249
249
cfg. header ( "linux/dccp.h" ) ;
250
250
}
251
+
252
+ if !musl || mips {
253
+ cfg. header ( "linux/memfd.h" ) ;
254
+ }
251
255
}
252
256
253
257
if linux {
Original file line number Diff line number Diff line change @@ -885,6 +885,9 @@ pub const IUTF8: ::tcflag_t = 0x00004000;
885
885
pub const CMSPAR : :: tcflag_t = 0o10000000000 ;
886
886
pub const O_TMPFILE : :: c_int = 0o20000000 | O_DIRECTORY ;
887
887
888
+ pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
889
+ pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
890
+
888
891
f ! {
889
892
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
890
893
for slot in cpuset. __bits. iter_mut( ) {
Original file line number Diff line number Diff line change @@ -667,6 +667,9 @@ pub const AF_MAX: ::c_int = 42;
667
667
#[ doc( hidden) ]
668
668
pub const PF_MAX : :: c_int = AF_MAX ;
669
669
670
+ pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
671
+ pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
672
+
670
673
#[ link( name = "util" ) ]
671
674
extern {
672
675
pub fn sysctl ( name : * mut :: c_int ,
Original file line number Diff line number Diff line change @@ -771,3 +771,6 @@ pub const SYS_pwritev2: ::c_long = 4000 + 362;
771
771
pub const AF_MAX : :: c_int = 42 ;
772
772
#[ doc( hidden) ]
773
773
pub const PF_MAX : :: c_int = AF_MAX ;
774
+
775
+ pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
776
+ pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
Original file line number Diff line number Diff line change @@ -548,6 +548,9 @@ pub const AF_MAX: ::c_int = 42;
548
548
#[ doc( hidden) ]
549
549
pub const PF_MAX : :: c_int = AF_MAX ;
550
550
551
+ pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
552
+ pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
553
+
551
554
cfg_if ! {
552
555
if #[ cfg( any( target_arch = "arm" , target_arch = "x86" ,
553
556
target_arch = "x86_64" ) ) ] {
Original file line number Diff line number Diff line change @@ -1243,6 +1243,9 @@ pub const SYS_setfsuid: ::c_long = 215;
1243
1243
pub const SYS_setfsgid : :: c_long = 216 ;
1244
1244
pub const SYS_newfstatat : :: c_long = 293 ;
1245
1245
1246
+ pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
1247
+ pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
1248
+
1246
1249
#[ link( name = "util" ) ]
1247
1250
extern {
1248
1251
pub fn sysctl ( name : * mut :: c_int ,
You can’t perform that action at this time.
0 commit comments