File tree Expand file tree Collapse file tree 9 files changed +22
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 9 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 717
717
FFDLY
718
718
FF_CNT
719
719
FF_MAX
720
+ FICLONE
721
+ FICLONERANGE
720
722
FILENAME_MAX
721
723
FIONCLEX
722
724
FIONREAD
@@ -2909,6 +2911,7 @@ ff_rumble_effect
2909
2911
ff_trigger
2910
2912
fgetpos64
2911
2913
fgetxattr
2914
+ file_clone_range
2912
2915
flistxattr
2913
2916
fmemopen
2914
2917
fopen64
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 ! {
@@ -2380,6 +2387,11 @@ pub const NFQA_SKB_CSUMNOTREADY: ::c_int = 0x0001;
2380
2387
pub const NFQA_SKB_GSO : :: c_int = 0x0002 ;
2381
2388
pub const NFQA_SKB_CSUM_NOTVERIFIED : :: c_int = 0x0004 ;
2382
2389
2390
+ // linux/fs.h
2391
+
2392
+ pub const FICLONE : :: c_ulong = 0x40049409 ;
2393
+ pub const FICLONERANGE : :: c_ulong = 0x4020940D ;
2394
+
2383
2395
// linux/genetlink.h
2384
2396
2385
2397
pub const GENL_NAMSIZ : :: c_int = 16 ;
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_ulonglong ;
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 {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ pub type wchar_t = i32;
3
3
pub type nlink_t = u64 ;
4
4
pub type blksize_t = :: c_long ;
5
5
pub type __u64 = :: c_ulonglong ;
6
+ pub type __s64 = :: c_ulonglong ;
6
7
pub type greg_t = i64 ;
7
8
8
9
s ! {
You can’t perform that action at this time.
0 commit comments