Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4633,6 +4633,8 @@ fn test_linux(target: &str) {
"preadv2" | "pwritev2" if musl => true,
// FIXME(musl): Supported in new musl but we don't have a new enough version in CI.
"statx" if musl => true,
// FIXME(musl): Supported since musl 1.2.6 but not yet in CI.
"renameat2" if musl => true,

// Needs glibc 2.33 or later.
"mallinfo2" => true,
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux-musl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pututxline
pwritev2
pwritev64
reallocarray
renameat2
setutxent
tcp_info
timex
Expand Down
7 changes: 7 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,13 @@ extern "C" {
flags: c_int,
) -> ssize_t;
pub fn getauxval(type_: c_ulong) -> c_ulong;
pub fn renameat2(
olddirfd: c_int,
oldpath: *const c_char,
newdirfd: c_int,
newpath: *const c_char,
flags: c_uint,
) -> c_int;

// Added in `musl` 1.1.20
pub fn explicit_bzero(s: *mut c_void, len: size_t);
Expand Down
Loading