Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/include/pwd_.h


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/include/pwd_.h

    r3232 r3621  
    3535#define endpwent    bb_internal_endpwent
    3636#define getpwent    bb_internal_getpwent
    37 #define fgetpwent   bb_internal_fgetpwent
    38 #define putpwent    bb_internal_putpwent
    3937#define getpwuid    bb_internal_getpwuid
    4038#define getpwnam    bb_internal_getpwnam
    41 #define getpwent_r  bb_internal_getpwent_r
    42 #define getpwuid_r  bb_internal_getpwuid_r
    4339#define getpwnam_r  bb_internal_getpwnam_r
    44 #define fgetpwent_r bb_internal_fgetpwent_r
    45 
    4640
    4741/* All function names below should be remapped by #defines above
    4842 * in order to not collide with libc names. */
    4943
    50 
    5144/* Rewind the password-file stream.  */
    52 extern void setpwent(void);
     45void FAST_FUNC setpwent(void);
    5346
    5447/* Close the password-file stream.  */
    55 extern void endpwent(void);
     48void FAST_FUNC endpwent(void);
    5649
    57 #ifdef UNUSED_SINCE_WE_AVOID_STATIC_BUFS
    5850/* 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
     51struct passwd* FAST_FUNC getpwent(void);
    6852
    6953/* Search for an entry with a matching user ID.  */
    70 extern struct passwd *getpwuid(uid_t __uid);
     54struct passwd* FAST_FUNC getpwuid(uid_t __uid);
    7155
    7256/* Search for an entry with a matching username.  */
    73 extern struct passwd *getpwnam(const char *__name);
     57struct passwd* FAST_FUNC getpwnam(const char *__name);
    7458
    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. */
     60int FAST_FUNC getpwnam_r(const char *__restrict __name,
    10061        struct passwd *__restrict __resultbuf,
    10162        char *__restrict __buffer, size_t __buflen,
Note: See TracChangeset for help on using the changeset viewer.