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

redox: Add remaining grp.h functions #3421

Merged
merged 1 commit into from Nov 2, 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
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