Skip to content

Commit ac00e0c

Browse files
committed
linux-gnu: add putpwent/putgrent
1 parent e2d90cd commit ac00e0c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/semver/linux-gnu.txt

+2
Original file line numberDiff line numberDiff line change
@@ -654,3 +654,5 @@ dirname
654654
posix_basename
655655
gnu_basename
656656
getmntent_r
657+
putpwent
658+
putgrent

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

+3
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,9 @@ extern "C" {
13021302
result: *mut *mut ::group,
13031303
) -> ::c_int;
13041304

1305+
pub fn putpwent(p: *const ::passwd, stream: *mut ::FILE) -> ::c_int;
1306+
pub fn putgrent(grp: *const ::group, stream: *mut ::FILE) -> ::c_int;
1307+
13051308
pub fn sethostid(hostid: ::c_long) -> ::c_int;
13061309

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

0 commit comments

Comments
 (0)