Skip to content

Add get/set/endpwent to android target #3017

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
5 changes: 4 additions & 1 deletion libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3594,4 +3594,7 @@ wmemchr
write
writev
dirname
basename
basename
setpwent
endpwent
getpwent
4 changes: 4 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3471,6 +3471,10 @@ extern "C" {

pub fn dirname(path: *const ::c_char) -> *mut ::c_char;
pub fn basename(path: *const ::c_char) -> *mut ::c_char;

pub fn setpwent();
pub fn endpwent();
pub fn getpwent() -> *mut passwd;
}

cfg_if! {
Expand Down