diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index ceff6a1db..109c5239b 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -358,3 +358,6 @@ extern "C" void setusershell() { } // This is never implemented in bionic, only needed for ABI compatibility with the NDK. extern "C" void endusershell() { } + +// This is never implemented in bionic, only needed for ABI compatibility with the NDK. +extern "C" void endpwent() { } diff --git a/libc/bionic/stubs.cpp b/libc/bionic/stubs.cpp index c192bf83e..f9a31b9af 100644 --- a/libc/bionic/stubs.cpp +++ b/libc/bionic/stubs.cpp @@ -446,18 +446,6 @@ protoent* getprotobynumber(int /*proto*/) { return NULL; } -static void unimplemented_stub(const char* function) { - const char* fmt = "%s(3) is not implemented on Android\n"; - __libc_format_log(ANDROID_LOG_WARN, "libc", fmt, function); - fprintf(stderr, fmt, function); -} - -#define UNIMPLEMENTED unimplemented_stub(__PRETTY_FUNCTION__) - -void endpwent() { - UNIMPLEMENTED; -} - // Portable code should use sysconf(_SC_PAGE_SIZE) directly instead. int getpagesize() { // We dont use sysconf(3) here because that drags in stdio, which makes static binaries fat. diff --git a/libc/include/pwd.h b/libc/include/pwd.h index 6d483c03f..6012b9658 100644 --- a/libc/include/pwd.h +++ b/libc/include/pwd.h @@ -119,10 +119,6 @@ struct passwd* getpwuid(uid_t); int getpwnam_r(const char*, struct passwd*, char*, size_t, struct passwd**); int getpwuid_r(uid_t, struct passwd*, char*, size_t, struct passwd**); -void endpwent(void); -struct passwd* getpwent(void); -int setpwent(void); - __END_DECLS #endif