diff options
Diffstat (limited to 'include/pwd_.h')
-rw-r--r-- | include/pwd_.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/pwd_.h b/include/pwd_.h index f52445ceb..aa63ac940 100644 --- a/include/pwd_.h +++ b/include/pwd_.h | |||
@@ -42,7 +42,6 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | |||
42 | #define getpwuid_r bb_internal_getpwuid_r | 42 | #define getpwuid_r bb_internal_getpwuid_r |
43 | #define getpwnam_r bb_internal_getpwnam_r | 43 | #define getpwnam_r bb_internal_getpwnam_r |
44 | #define fgetpwent_r bb_internal_fgetpwent_r | 44 | #define fgetpwent_r bb_internal_fgetpwent_r |
45 | //#define getpw bb_internal_getpw | ||
46 | 45 | ||
47 | 46 | ||
48 | /* All function names below should be remapped by #defines above | 47 | /* All function names below should be remapped by #defines above |
@@ -55,6 +54,7 @@ extern void setpwent(void); | |||
55 | /* Close the password-file stream. */ | 54 | /* Close the password-file stream. */ |
56 | extern void endpwent(void); | 55 | extern void endpwent(void); |
57 | 56 | ||
57 | #ifdef UNUSED_SINCE_WE_AVOID_STATIC_BUFS | ||
58 | /* Read an entry from the password-file stream, opening it if necessary. */ | 58 | /* Read an entry from the password-file stream, opening it if necessary. */ |
59 | extern struct passwd *getpwent(void); | 59 | extern struct passwd *getpwent(void); |
60 | 60 | ||
@@ -64,6 +64,7 @@ extern struct passwd *fgetpwent(FILE *__stream); | |||
64 | /* Write the given entry onto the given stream. */ | 64 | /* Write the given entry onto the given stream. */ |
65 | extern int putpwent(const struct passwd *__restrict __p, | 65 | extern int putpwent(const struct passwd *__restrict __p, |
66 | FILE *__restrict __f); | 66 | FILE *__restrict __f); |
67 | #endif | ||
67 | 68 | ||
68 | /* Search for an entry with a matching user ID. */ | 69 | /* Search for an entry with a matching user ID. */ |
69 | extern struct passwd *getpwuid(uid_t __uid); | 70 | extern struct passwd *getpwuid(uid_t __uid); |
@@ -100,11 +101,6 @@ extern int fgetpwent_r(FILE *__restrict __stream, | |||
100 | char *__restrict __buffer, size_t __buflen, | 101 | char *__restrict __buffer, size_t __buflen, |
101 | struct passwd **__restrict __result); | 102 | struct passwd **__restrict __result); |
102 | 103 | ||
103 | /* Re-construct the password-file line for the given uid | ||
104 | in the given buffer. This knows the format that the caller | ||
105 | will expect, but this need not be the format of the password file. */ | ||
106 | /* UNUSED extern int getpw(uid_t __uid, char *__buffer); */ | ||
107 | |||
108 | POP_SAVED_FUNCTION_VISIBILITY | 104 | POP_SAVED_FUNCTION_VISIBILITY |
109 | 105 | ||
110 | #endif /* pwd.h */ | 106 | #endif |