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

linux-gnu: add putpwent/putgrent #3257

Merged
merged 1 commit into from Jun 1, 2023
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 @@ -654,3 +654,5 @@ dirname
posix_basename
gnu_basename
getmntent_r
putpwent
putgrent
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -1302,6 +1302,9 @@ extern "C" {
result: *mut *mut ::group,
) -> ::c_int;

pub fn putpwent(p: *const ::passwd, stream: *mut ::FILE) -> ::c_int;
pub fn putgrent(grp: *const ::group, stream: *mut ::FILE) -> ::c_int;

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

pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int;
Expand Down