Skip to content

Commit 8517146

Browse files
committed
Add reentrant glibc getmntent_r
1 parent ad7bbf4 commit 8517146

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,3 +670,4 @@ strptime
670670
dirname
671671
posix_basename
672672
gnu_basename
673+
getmntent_r

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,16 @@ extern "C" {
13951395
) -> ::c_int;
13961396
}
13971397

1398+
// mntent.h
1399+
extern "C" {
1400+
pub fn getmntent_r(
1401+
stream: *mut ::FILE,
1402+
mntbuf: *mut ::mntent,
1403+
buf: *mut ::c_char,
1404+
buflen: ::c_int,
1405+
) -> *mut ::mntent;
1406+
}
1407+
13981408
cfg_if! {
13991409
if #[cfg(any(target_arch = "x86",
14001410
target_arch = "arm",

0 commit comments

Comments
 (0)