@@ -1263,6 +1263,14 @@ s! {
12631263 pub sched_deadline: crate :: __u64,
12641264 pub sched_period: crate :: __u64,
12651265 }
1266+
1267+ // linux/fcntl.h
1268+
1269+ pub struct file_handle {
1270+ pub handle_bytes: c_uint,
1271+ pub handle_type: c_int,
1272+ pub f_handle: [ c_uchar; 0 ] ,
1273+ }
12661274}
12671275
12681276cfg_if ! {
@@ -1398,6 +1406,11 @@ pub const IFF_ECHO: c_int = 0x40000;
13981406// linux/fcntl.h
13991407pub const AT_EXECVE_CHECK : c_int = 0x10000 ;
14001408
1409+ pub const MAX_HANDLE_SZ : c_int = 128 ;
1410+ pub const AT_HANDLE_FID : c_int = 0x200 ;
1411+ pub const AT_HANDLE_MNT_ID_UNIQUE : c_int = 0x001 ;
1412+ pub const AT_HANDLE_CONNECTABLE : c_int = 0x002 ;
1413+
14011414// linux/if_addr.h
14021415pub const IFA_UNSPEC : c_ushort = 0 ;
14031416pub const IFA_ADDRESS : c_ushort = 1 ;
@@ -4366,6 +4379,15 @@ extern "C" {
43664379 pub fn gethostid ( ) -> c_long ;
43674380
43684381 pub fn klogctl ( syslog_type : c_int , bufp : * mut c_char , len : c_int ) -> c_int ;
4382+
4383+ pub fn name_to_handle_at (
4384+ dirfd : c_int ,
4385+ path : * const c_char ,
4386+ handle : * mut file_handle ,
4387+ mount_id : * mut c_int ,
4388+ flags : c_int ,
4389+ ) -> c_int ;
4390+ pub fn open_by_handle_at ( mount_fd : c_int , handle : * mut file_handle , flags : c_int ) -> c_int ;
43694391}
43704392
43714393// LFS64 extensions
0 commit comments