Skip to content

Commit 9a7334c

Browse files
remove posix_getdents() from musl
the musl bundled with rust appears to be from january 2024
1 parent 354b8c3 commit 9a7334c

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

libc-test/semver/linux-musl.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ getutxline
7474
lio_listio
7575
ntptimeval
7676
open_wmemstream
77-
posix_dent
78-
posix_getdents
7977
posix_spawn_file_actions_addchdir_np
8078
posix_spawn_file_actions_addfchdir_np
8179
preadv2

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ cfg_if! {
3737
}
3838
}
3939

40-
s_no_extra_traits! {
41-
#[repr(C)]
42-
pub struct posix_dent {
43-
pub d_ino: ino_t,
44-
pub d_off: off_t,
45-
pub d_reclen: c_ushort,
46-
pub d_type: c_uchar,
47-
pub d_name: *mut c_char,
48-
}
49-
}
50-
5140
impl siginfo_t {
5241
pub unsafe fn si_addr(&self) -> *mut c_void {
5342
#[repr(C)]
@@ -987,8 +976,6 @@ extern "C" {
987976
}
988977

989978
extern "C" {
990-
pub fn posix_getdents(fd: c_int, buf: *mut c_void, len: usize, flags: c_int) -> isize;
991-
992979
pub fn getdents(fd: c_int, buf: *mut crate::dirent, len: usize) -> c_int;
993980
}
994981

0 commit comments

Comments
 (0)