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 @@ -4307,6 +4307,9 @@ fn test_linux(target: &str) {
4307
4307
// FIXME: function pointers changed since Ubuntu 23.10
4308
4308
"strtol" | "strtoll" | "strtoul" | "strtoull" | "fscanf" | "scanf" | "sscanf" => true ,
4309
4309
4310
+ // Added in musl 1.2.5
4311
+ "preadv2" | "pwritev2" if musl => true ,
4312
+
4310
4313
_ => false ,
4311
4314
}
4312
4315
} ) ;
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
@@ -66,11 +71,13 @@ getloadavg
66
71
lio_listio
67
72
ntptimeval
68
73
open_wmemstream
74
+ preadv2
69
75
preadv64
70
76
prlimit
71
77
prlimit64
72
78
process_vm_readv
73
79
process_vm_writev
80
+ pwritev2
74
81
pwritev64
75
82
reallocarray
76
83
timex
Original file line number Diff line number Diff line change @@ -671,6 +671,12 @@ pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
671
671
pub const PTRACE_GETSIGMASK : :: c_uint = 0x420a ;
672
672
pub const PTRACE_SETSIGMASK : :: c_uint = 0x420b ;
673
673
674
+ pub const RWF_HIPRI : :: c_int = 0x00000001 ;
675
+ pub const RWF_DSYNC : :: c_int = 0x00000002 ;
676
+ pub const RWF_SYNC : :: c_int = 0x00000004 ;
677
+ pub const RWF_NOWAIT : :: c_int = 0x00000008 ;
678
+ pub const RWF_APPEND : :: c_int = 0x00000010 ;
679
+
674
680
pub const AF_IB : :: c_int = 27 ;
675
681
pub const AF_MPLS : :: c_int = 28 ;
676
682
pub const AF_NFC : :: c_int = 39 ;
@@ -862,6 +868,20 @@ extern "C" {
862
868
dirfd : :: c_int ,
863
869
path : * const :: c_char ,
864
870
) -> :: c_int ;
871
+ pub fn preadv2 (
872
+ fd : :: c_int ,
873
+ iov : * const :: iovec ,
874
+ iovcnt : :: c_int ,
875
+ offset : :: off_t ,
876
+ flags : :: c_int ,
877
+ ) -> :: ssize_t ;
878
+ pub fn pwritev2 (
879
+ fd : :: c_int ,
880
+ iov : * const :: iovec ,
881
+ iovcnt : :: c_int ,
882
+ offset : :: off_t ,
883
+ flags : :: c_int ,
884
+ ) -> :: ssize_t ;
865
885
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
866
886
867
887
// Added in `musl` 1.1.20
You can’t perform that action at this time.
0 commit comments