File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1621,6 +1621,7 @@ fn test_android(target: &str) {
16211621 "linux/memfd.h" ,
16221622 "linux/mempolicy.h" ,
16231623 "linux/module.h" ,
1624+ "linux/mount.h" ,
16241625 "linux/net_tstamp.h" ,
16251626 "linux/netfilter/nfnetlink.h" ,
16261627 "linux/netfilter/nfnetlink_log.h" ,
@@ -3197,6 +3198,8 @@ fn test_linux(target: &str) {
31973198 "linux/mempolicy.h" ,
31983199 "linux/mman.h" ,
31993200 "linux/module.h" ,
3201+ // FIXME: requires kernel headers >= 5.1.
3202+ [ !musl] : "linux/mount.h" ,
32003203 "linux/net_tstamp.h" ,
32013204 "linux/netfilter/nfnetlink.h" ,
32023205 "linux/netfilter/nfnetlink_log.h" ,
@@ -3402,6 +3405,7 @@ fn test_linux(target: &str) {
34023405 || name. starts_with ( "IFLA_" )
34033406 || name. starts_with ( "MS_" )
34043407 || name. starts_with ( "MSG_" )
3408+ || name. starts_with ( "OPEN_TREE_" )
34053409 || name. starts_with ( "P_" )
34063410 || name. starts_with ( "PF_" )
34073411 || name. starts_with ( "RLIMIT_" )
Original file line number Diff line number Diff line change @@ -1648,6 +1648,8 @@ ONLCR
16481648ONLRET
16491649ONOCR
16501650OPENPROM_SUPER_MAGIC
1651+ OPEN_TREE_CLOEXEC
1652+ OPEN_TREE_CLONE
16511653OPOST
16521654O_ACCMODE
16531655O_APPEND
Original file line number Diff line number Diff line change @@ -1618,6 +1618,8 @@ NUD_STALE
16181618OFDEL
16191619OFILL
16201620OLCUC
1621+ OPEN_TREE_CLOEXEC
1622+ OPEN_TREE_CLONE
16211623O_ASYNC
16221624O_DIRECT
16231625O_DSYNC
Original file line number Diff line number Diff line change @@ -2121,6 +2121,10 @@ pub const PT_HIOS: u32 = 0x6fffffff;
21212121pub const PT_LOPROC : u32 = 0x70000000 ;
21222122pub const PT_HIPROC : u32 = 0x7fffffff ;
21232123
2124+ // uapi/linux/mount.h
2125+ pub const OPEN_TREE_CLONE : :: c_uint = 0x01 ;
2126+ pub const OPEN_TREE_CLOEXEC : :: c_uint = O_CLOEXEC as :: c_uint ;
2127+
21242128// linux/netfilter.h
21252129pub const NF_DROP : :: c_int = 0 ;
21262130pub const NF_ACCEPT : :: c_int = 1 ;
Original file line number Diff line number Diff line change @@ -3142,6 +3142,10 @@ pub const IN_ALL_EVENTS: u32 = IN_ACCESS
31423142pub const IN_CLOEXEC : :: c_int = O_CLOEXEC ;
31433143pub const IN_NONBLOCK : :: c_int = O_NONBLOCK ;
31443144
3145+ // uapi/linux/mount.h
3146+ pub const OPEN_TREE_CLONE : :: c_uint = 0x01 ;
3147+ pub const OPEN_TREE_CLOEXEC : :: c_uint = O_CLOEXEC as :: c_uint ;
3148+
31453149// uapi/linux/netfilter/nf_tables.h
31463150pub const NFT_TABLE_MAXNAMELEN : :: c_int = 256 ;
31473151pub const NFT_CHAIN_MAXNAMELEN : :: c_int = 256 ;
You can’t perform that action at this time.
0 commit comments