Skip to content

adding a handful of get/set*ent calls for android. #3015

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2915,6 +2915,7 @@ dlsym
dup
dup2
duplocale
endgrent
endservent
epoll_create
epoll_create1
Expand Down Expand Up @@ -3014,6 +3015,7 @@ getegid
getenv
geteuid
getgid
getgrent
getgrgid
getgrgid_r
getgrnam
Expand All @@ -3036,6 +3038,7 @@ getprotobyname
getprotobynumber
getpwnam
getpwnam_r
getpwent
getpwuid
getpwuid_r
getresgid
Expand Down Expand Up @@ -3400,13 +3403,15 @@ seteuid
setfsgid
setfsuid
setgid
setgrent
setgroups
sethostname
setlocale
setlogmask
setns
setpgid
setpriority
setpwent
setregid
setresgid
setresuid
Expand Down Expand Up @@ -3594,4 +3599,4 @@ wmemchr
write
writev
dirname
basename
basename
7 changes: 7 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3052,6 +3052,13 @@ safe_f! {
}

extern "C" {
pub fn setpwent();
pub fn endpwent();
pub fn getpwent() -> *mut passwd;
pub fn setgrent();
pub fn endgrent();
pub fn getgrent() -> *mut ::group;

pub fn getrlimit64(resource: ::c_int, rlim: *mut rlimit64) -> ::c_int;
pub fn setrlimit64(resource: ::c_int, rlim: *const rlimit64) -> ::c_int;
pub fn getrlimit(resource: ::c_int, rlim: *mut ::rlimit) -> ::c_int;
Expand Down