Skip to content

Commit

Permalink
Auto merge of #3257 - superwhiskers:add-putpwent, r=JohnTitor
Browse files Browse the repository at this point in the history
linux-gnu: add putpwent/putgrent

adds the [`putpwent(3)`](https://www.man7.org/linux/man-pages/man3/putpwent.3.html) and [`putgrent(3)`](https://www.man7.org/linux/man-pages/man3/putgrent.3.html) glibc extensions. these don't appear to be present anywhere else from what i could tell, correct me if i'm wrong.
  • Loading branch information
bors committed Jun 1, 2023
2 parents afce856 + ac00e0c commit 9469613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit 9469613

Please sign in to comment.