diff options
Diffstat (limited to 'newlib/libc/include/pwd.h')
-rw-r--r-- | newlib/libc/include/pwd.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/newlib/libc/include/pwd.h b/newlib/libc/include/pwd.h index 3dea4ee2d..1526abfb6 100644 --- a/newlib/libc/include/pwd.h +++ b/newlib/libc/include/pwd.h @@ -39,10 +39,9 @@ extern "C" { #endif #define _PWD_H_ -#include <sys/cdefs.h> #include <sys/types.h> -#if __BSD_VISIBLE +#ifndef _POSIX_SOURCE #define _PATH_PASSWD "/etc/passwd" #define _PASSWORD_LEN 128 /* max length, not counting NULL */ @@ -62,24 +61,16 @@ struct passwd { #ifndef __INSIDE_CYGWIN__ struct passwd *getpwuid (uid_t); struct passwd *getpwnam (const char *); - -#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500 int getpwnam_r (const char *, struct passwd *, char *, size_t , struct passwd **); int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **); -#endif - -#if __XSI_VISIBLE >= 500 +#ifndef _POSIX_SOURCE struct passwd *getpwent (void); void setpwent (void); void endpwent (void); #endif - -#if __BSD_VISIBLE -int setpassent (int); #endif -#endif /*!__INSIDE_CYGWIN__*/ #ifdef __cplusplus } |