Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fgetpwent_r and fgetgrent_r on GNU/Linux #2943

Merged
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/semver/linux-gnu.txt
Expand Up @@ -589,9 +589,11 @@ futimes
getauxval
getentropy
getgrent_r
fgetgrent_r
getloadavg
getpt
getpwent_r
fgetpwent_r
getpwnam_r
getspent_r
getutxent
Expand Down
14 changes: 14 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -1310,6 +1310,20 @@ extern "C" {
buflen: ::size_t,
result: *mut *mut ::group,
) -> ::c_int;
pub fn fgetpwent_r(
stream: *mut ::FILE,
pwd: *mut ::passwd,
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut ::passwd,
) -> ::c_int;
pub fn fgetgrent_r(
stream: *mut ::FILE,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut ::group,
) -> ::c_int;

pub fn sethostid(hostid: ::c_long) -> ::c_int;

Expand Down