Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/include/pwd_.h
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/include/pwd_.h
r3232 r3621 35 35 #define endpwent bb_internal_endpwent 36 36 #define getpwent bb_internal_getpwent 37 #define fgetpwent bb_internal_fgetpwent38 #define putpwent bb_internal_putpwent39 37 #define getpwuid bb_internal_getpwuid 40 38 #define getpwnam bb_internal_getpwnam 41 #define getpwent_r bb_internal_getpwent_r42 #define getpwuid_r bb_internal_getpwuid_r43 39 #define getpwnam_r bb_internal_getpwnam_r 44 #define fgetpwent_r bb_internal_fgetpwent_r45 46 40 47 41 /* All function names below should be remapped by #defines above 48 42 * in order to not collide with libc names. */ 49 43 50 51 44 /* Rewind the password-file stream. */ 52 extern voidsetpwent(void);45 void FAST_FUNC setpwent(void); 53 46 54 47 /* Close the password-file stream. */ 55 extern voidendpwent(void);48 void FAST_FUNC endpwent(void); 56 49 57 #ifdef UNUSED_SINCE_WE_AVOID_STATIC_BUFS58 50 /* Read an entry from the password-file stream, opening it if necessary. */ 59 extern struct passwd *getpwent(void); 60 61 /* Read an entry from STREAM. */ 62 extern struct passwd *fgetpwent(FILE *__stream); 63 64 /* Write the given entry onto the given stream. */ 65 extern int putpwent(const struct passwd *__restrict __p, 66 FILE *__restrict __f); 67 #endif 51 struct passwd* FAST_FUNC getpwent(void); 68 52 69 53 /* Search for an entry with a matching user ID. */ 70 extern struct passwd *getpwuid(uid_t __uid);54 struct passwd* FAST_FUNC getpwuid(uid_t __uid); 71 55 72 56 /* Search for an entry with a matching username. */ 73 extern struct passwd *getpwnam(const char *__name);57 struct passwd* FAST_FUNC getpwnam(const char *__name); 74 58 75 /* Reentrant versions of some of the functions above. 76 77 PLEASE NOTE: the `getpwent_r' function is not (yet) standardized. 78 The interface may change in later versions of this library. But 79 the interface is designed following the principals used for the 80 other reentrant functions so the chances are good this is what the 81 POSIX people would choose. */ 82 83 extern int getpwent_r(struct passwd *__restrict __resultbuf, 84 char *__restrict __buffer, size_t __buflen, 85 struct passwd **__restrict __result); 86 87 extern int getpwuid_r(uid_t __uid, 88 struct passwd *__restrict __resultbuf, 89 char *__restrict __buffer, size_t __buflen, 90 struct passwd **__restrict __result); 91 92 extern int getpwnam_r(const char *__restrict __name, 93 struct passwd *__restrict __resultbuf, 94 char *__restrict __buffer, size_t __buflen, 95 struct passwd **__restrict __result); 96 97 /* Read an entry from STREAM. This function is not standardized and 98 probably never will. */ 99 extern int fgetpwent_r(FILE *__restrict __stream, 59 /* Reentrant versions of some of the functions above. */ 60 int FAST_FUNC getpwnam_r(const char *__restrict __name, 100 61 struct passwd *__restrict __resultbuf, 101 62 char *__restrict __buffer, size_t __buflen,
Note:
See TracChangeset
for help on using the changeset viewer.