File tree 3 files changed +30
-0
lines changed
src/unix/linux_like/linux/musl
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -4318,6 +4318,9 @@ fn test_linux(target: &str) {
4318
4318
// FIXME: function pointers changed since Ubuntu 23.10
4319
4319
"strtol" | "strtoll" | "strtoul" | "strtoull" | "fscanf" | "scanf" | "sscanf" => true ,
4320
4320
4321
+ // Added in musl 1.2.5
4322
+ "preadv2" | "pwritev2" if musl => true ,
4323
+
4321
4324
_ => false ,
4322
4325
}
4323
4326
} ) ;
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ PF_XDP
23
23
PIDFD_NONBLOCK
24
24
PR_SET_VMA
25
25
PR_SET_VMA_ANON_NAME
26
+ RWF_APPEND
27
+ RWF_DSYNC
28
+ RWF_HIPRI
29
+ RWF_NOWAIT
30
+ RWF_SYNC
26
31
SOL_XDP
27
32
XDP_SHARED_UMEM
28
33
XDP_COPY
@@ -75,12 +80,14 @@ getutxline
75
80
lio_listio
76
81
ntptimeval
77
82
open_wmemstream
83
+ preadv2
78
84
preadv64
79
85
prlimit
80
86
prlimit64
81
87
process_vm_readv
82
88
process_vm_writev
83
89
pututxline
90
+ pwritev2
84
91
pwritev64
85
92
reallocarray
86
93
setutxent
Original file line number Diff line number Diff line change @@ -667,6 +667,12 @@ pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
667
667
pub const PTRACE_GETSIGMASK : :: c_uint = 0x420a ;
668
668
pub const PTRACE_SETSIGMASK : :: c_uint = 0x420b ;
669
669
670
+ pub const RWF_HIPRI : :: c_int = 0x00000001 ;
671
+ pub const RWF_DSYNC : :: c_int = 0x00000002 ;
672
+ pub const RWF_SYNC : :: c_int = 0x00000004 ;
673
+ pub const RWF_NOWAIT : :: c_int = 0x00000008 ;
674
+ pub const RWF_APPEND : :: c_int = 0x00000010 ;
675
+
670
676
pub const AF_IB : :: c_int = 27 ;
671
677
pub const AF_MPLS : :: c_int = 28 ;
672
678
pub const AF_NFC : :: c_int = 39 ;
@@ -857,6 +863,20 @@ extern "C" {
857
863
dirfd : :: c_int ,
858
864
path : * const :: c_char ,
859
865
) -> :: c_int ;
866
+ pub fn preadv2 (
867
+ fd : :: c_int ,
868
+ iov : * const :: iovec ,
869
+ iovcnt : :: c_int ,
870
+ offset : :: off_t ,
871
+ flags : :: c_int ,
872
+ ) -> :: ssize_t ;
873
+ pub fn pwritev2 (
874
+ fd : :: c_int ,
875
+ iov : * const :: iovec ,
876
+ iovcnt : :: c_int ,
877
+ offset : :: off_t ,
878
+ flags : :: c_int ,
879
+ ) -> :: ssize_t ;
860
880
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
861
881
862
882
// Added in `musl` 1.1.20
You can’t perform that action at this time.
0 commit comments