File tree 1 file changed +23
-0
lines changed
src/unix/linux_like/linux/gnu
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -862,6 +862,15 @@ pub const EPOLLWAKEUP: ::c_int = 0x20000000;
862
862
pub const SEEK_DATA : :: c_int = 3 ;
863
863
pub const SEEK_HOLE : :: c_int = 4 ;
864
864
865
+ // linux/fs.h
866
+
867
+ // Flags for preadv2/pwritev2
868
+ pub const RWF_HIPRI : :: c_int = 0x00000001 ;
869
+ pub const RWF_DSYNC : :: c_int = 0x00000002 ;
870
+ pub const RWF_SYNC : :: c_int = 0x00000004 ;
871
+ pub const RWF_NOWAIT : :: c_int = 0x00000008 ;
872
+ pub const RWF_APPEND : :: c_int = 0x00000010 ;
873
+
865
874
// linux/rtnetlink.h
866
875
pub const TCA_PAD : :: c_ushort = 9 ;
867
876
pub const TCA_DUMP_INVISIBLE : :: c_ushort = 10 ;
@@ -1423,6 +1432,20 @@ extern "C" {
1423
1432
dirfd : :: c_int ,
1424
1433
path : * const :: c_char ,
1425
1434
) -> :: c_int ;
1435
+ pub fn preadv2 (
1436
+ fd : :: c_int ,
1437
+ iov : * const :: iovec ,
1438
+ iovcnt : :: c_int ,
1439
+ offset : :: off_t ,
1440
+ flags : :: c_int ,
1441
+ ) -> :: ssize_t ;
1442
+ pub fn pwritev2 (
1443
+ fd : :: c_int ,
1444
+ iov : * const :: iovec ,
1445
+ iovcnt : :: c_int ,
1446
+ offset : :: off_t ,
1447
+ flags : :: c_int ,
1448
+ ) -> :: ssize_t ;
1426
1449
}
1427
1450
1428
1451
extern "C" {
You can’t perform that action at this time.
0 commit comments