File tree 5 files changed +16
-0
lines changed
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) {
1621
1621
"linux/memfd.h" ,
1622
1622
"linux/mempolicy.h" ,
1623
1623
"linux/module.h" ,
1624
+ "linux/mount.h" ,
1624
1625
"linux/net_tstamp.h" ,
1625
1626
"linux/netfilter/nfnetlink.h" ,
1626
1627
"linux/netfilter/nfnetlink_log.h" ,
@@ -3197,6 +3198,8 @@ fn test_linux(target: &str) {
3197
3198
"linux/mempolicy.h" ,
3198
3199
"linux/mman.h" ,
3199
3200
"linux/module.h" ,
3201
+ // FIXME: requires kernel headers >= 5.1.
3202
+ [ !musl] : "linux/mount.h" ,
3200
3203
"linux/net_tstamp.h" ,
3201
3204
"linux/netfilter/nfnetlink.h" ,
3202
3205
"linux/netfilter/nfnetlink_log.h" ,
@@ -3402,6 +3405,7 @@ fn test_linux(target: &str) {
3402
3405
|| name. starts_with ( "IFLA_" )
3403
3406
|| name. starts_with ( "MS_" )
3404
3407
|| name. starts_with ( "MSG_" )
3408
+ || name. starts_with ( "OPEN_TREE_" )
3405
3409
|| name. starts_with ( "P_" )
3406
3410
|| name. starts_with ( "PF_" )
3407
3411
|| name. starts_with ( "RLIMIT_" )
Original file line number Diff line number Diff line change @@ -1648,6 +1648,8 @@ ONLCR
1648
1648
ONLRET
1649
1649
ONOCR
1650
1650
OPENPROM_SUPER_MAGIC
1651
+ OPEN_TREE_CLOEXEC
1652
+ OPEN_TREE_CLONE
1651
1653
OPOST
1652
1654
O_ACCMODE
1653
1655
O_APPEND
Original file line number Diff line number Diff line change @@ -1618,6 +1618,8 @@ NUD_STALE
1618
1618
OFDEL
1619
1619
OFILL
1620
1620
OLCUC
1621
+ OPEN_TREE_CLOEXEC
1622
+ OPEN_TREE_CLONE
1621
1623
O_ASYNC
1622
1624
O_DIRECT
1623
1625
O_DSYNC
Original file line number Diff line number Diff line change @@ -2121,6 +2121,10 @@ pub const PT_HIOS: u32 = 0x6fffffff;
2121
2121
pub const PT_LOPROC : u32 = 0x70000000 ;
2122
2122
pub const PT_HIPROC : u32 = 0x7fffffff ;
2123
2123
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
+
2124
2128
// linux/netfilter.h
2125
2129
pub const NF_DROP : :: c_int = 0 ;
2126
2130
pub 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
3142
3142
pub const IN_CLOEXEC : :: c_int = O_CLOEXEC ;
3143
3143
pub const IN_NONBLOCK : :: c_int = O_NONBLOCK ;
3144
3144
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
+
3145
3149
// uapi/linux/netfilter/nf_tables.h
3146
3150
pub const NFT_TABLE_MAXNAMELEN : :: c_int = 256 ;
3147
3151
pub const NFT_CHAIN_MAXNAMELEN : :: c_int = 256 ;
You can’t perform that action at this time.
0 commit comments