Skip to content

Commit

Permalink
Auto merge of #3421 - ids1024:redox-group, r=JohnTitor
Browse files Browse the repository at this point in the history
redox: Add remaining `grp.h` functions
  • Loading branch information
bors committed Nov 2, 2023
2 parents 00f48a6 + a685037 commit 68f46d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libc-test/semver/redox.txt
Expand Up @@ -180,6 +180,7 @@ bsearch
chroot
clearerr
difftime
endgrent
endpwent
endservent
epoll_create
Expand All @@ -191,7 +192,10 @@ explicit_bzero
fchdir
fmemopen
getdtablesize
getgrent
getgrgid
getgrgid_r
getgrnam
getgrnam_r
getgrouplist
getline
Expand All @@ -212,6 +216,7 @@ pipe2
pthread_condattr_setclock
qsort
reallocarray
setgrent
setpwent
setrlimit
setservent
Expand Down
5 changes: 5 additions & 0 deletions src/unix/redox/mod.rs
Expand Up @@ -1080,13 +1080,18 @@ extern "C" {
pub fn getdtablesize() -> ::c_int;

// grp.h
pub fn getgrent() -> *mut ::group;
pub fn setgrent();
pub fn endgrent();
pub fn getgrgid(gid: ::gid_t) -> *mut ::group;
pub fn getgrgid_r(
gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut ::group,
) -> ::c_int;
pub fn getgrnam(name: *const ::c_char) -> *mut ::group;
pub fn getgrnam_r(
name: *const ::c_char,
grp: *mut ::group,
Expand Down

0 comments on commit 68f46d3

Please sign in to comment.