File tree Expand file tree Collapse file tree 13 files changed +26
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 13 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ FICLONE
2+ FICLONERANGE
13KEYCTL_CAPABILITIES
24KEYCTL_CAPS0_BIG_KEY
35KEYCTL_CAPS0_CAPABILITIES
Original file line number Diff line number Diff line change @@ -2909,6 +2909,7 @@ ff_rumble_effect
29092909ff_trigger
29102910fgetpos64
29112911fgetxattr
2912+ file_clone_range
29122913flistxattr
29132914fmemopen
29142915fopen64
Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ cfg_if! {
104104 pub const SO_DETACH_REUSEPORT_BPF : :: c_int = 68 ;
105105 }
106106}
107+
108+ cfg_if ! {
109+ if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
110+ pub const FICLONE : :: c_ulong = 0x40049409 ;
111+ pub const FICLONERANGE : :: c_ulong = 0x4020940D ;
112+ }
113+ }
107114// pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
108115// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70;
109116
Original file line number Diff line number Diff line change @@ -596,6 +596,13 @@ s! {
596596 pub nla_len: u16 ,
597597 pub nla_type: u16 ,
598598 }
599+
600+ pub struct file_clone_range {
601+ pub src_fd: :: __s64,
602+ pub src_offset: :: __u64,
603+ pub src_length: :: __u64,
604+ pub dest_offset: :: __u64,
605+ }
599606}
600607
601608s_no_extra_traits ! {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ pub type c_ulong = u32;
33pub type nlink_t = u32 ;
44pub type blksize_t = :: c_long ;
55pub type __u64 = :: c_ulonglong ;
6+ pub type __s64 = :: c_longlong ;
67pub type regoff_t = :: c_int ;
78
89s ! {
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type __u64 = :: c_ulonglong ;
3+ pub type __s64 = :: c_longlong ;
34pub type wchar_t = u32 ;
45pub type nlink_t = u32 ;
56pub type blksize_t = :: c_int ;
Original file line number Diff line number Diff line change 11pub type c_char = i8 ;
22pub type wchar_t = i32 ;
33pub type __u64 = :: c_ulong ;
4+ pub type __s64 = :: c_long ;
45pub type nlink_t = u64 ;
56pub type blksize_t = i64 ;
67
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type wchar_t = i32 ;
33pub type __u64 = :: c_ulong ;
4+ pub type __s64 = :: c_long ;
45pub type nlink_t = u64 ;
56pub type blksize_t = :: c_long ;
67
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub type blksize_t = ::c_int;
88pub type fsblkcnt64_t = :: c_ulong ;
99pub type fsfilcnt64_t = :: c_ulong ;
1010pub type __u64 = :: c_ulonglong ;
11+ pub type __s64 = :: c_longlong ;
1112
1213s ! {
1314 pub struct pthread_attr_t {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ pub type nlink_t = u64;
44pub type wchar_t = i32 ;
55pub type greg_t = u64 ;
66pub type __u64 = u64 ;
7+ pub type __s64 = i64 ;
78
89s ! {
910 pub struct ipc_perm {
You can’t perform that action at this time.
0 commit comments