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
1
3
KEYCTL_CAPABILITIES
2
4
KEYCTL_CAPS0_BIG_KEY
3
5
KEYCTL_CAPS0_CAPABILITIES
Original file line number Diff line number Diff line change @@ -2909,6 +2909,7 @@ ff_rumble_effect
2909
2909
ff_trigger
2910
2910
fgetpos64
2911
2911
fgetxattr
2912
+ file_clone_range
2912
2913
flistxattr
2913
2914
fmemopen
2914
2915
fopen64
Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ cfg_if! {
104
104
pub const SO_DETACH_REUSEPORT_BPF : :: c_int = 68 ;
105
105
}
106
106
}
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
+ }
107
114
// pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
108
115
// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70;
109
116
Original file line number Diff line number Diff line change @@ -596,6 +596,13 @@ s! {
596
596
pub nla_len: u16 ,
597
597
pub nla_type: u16 ,
598
598
}
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
+ }
599
606
}
600
607
601
608
s_no_extra_traits ! {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ pub type c_ulong = u32;
3
3
pub type nlink_t = u32 ;
4
4
pub type blksize_t = :: c_long ;
5
5
pub type __u64 = :: c_ulonglong ;
6
+ pub type __s64 = :: c_longlong ;
6
7
pub type regoff_t = :: c_int ;
7
8
8
9
s ! {
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type __u64 = :: c_ulonglong ;
3
+ pub type __s64 = :: c_longlong ;
3
4
pub type wchar_t = u32 ;
4
5
pub type nlink_t = u32 ;
5
6
pub type blksize_t = :: c_int ;
Original file line number Diff line number Diff line change 1
1
pub type c_char = i8 ;
2
2
pub type wchar_t = i32 ;
3
3
pub type __u64 = :: c_ulong ;
4
+ pub type __s64 = :: c_long ;
4
5
pub type nlink_t = u64 ;
5
6
pub type blksize_t = i64 ;
6
7
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type wchar_t = i32 ;
3
3
pub type __u64 = :: c_ulong ;
4
+ pub type __s64 = :: c_long ;
4
5
pub type nlink_t = u64 ;
5
6
pub type blksize_t = :: c_long ;
6
7
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub type blksize_t = ::c_int;
8
8
pub type fsblkcnt64_t = :: c_ulong ;
9
9
pub type fsfilcnt64_t = :: c_ulong ;
10
10
pub type __u64 = :: c_ulonglong ;
11
+ pub type __s64 = :: c_longlong ;
11
12
12
13
s ! {
13
14
pub struct pthread_attr_t {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ pub type nlink_t = u64;
4
4
pub type wchar_t = i32 ;
5
5
pub type greg_t = u64 ;
6
6
pub type __u64 = u64 ;
7
+ pub type __s64 = i64 ;
7
8
8
9
s ! {
9
10
pub struct ipc_perm {
You can’t perform that action at this time.
0 commit comments