Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/include/shadow_.h

    r1765 r2725  
    2020/* Declaration of types and functions for shadow password suite */
    2121
    22 #if !ENABLE_USE_BB_SHADOW
     22#ifndef BB_SHADOW_H
     23#define BB_SHADOW_H 1
    2324
    24 #include <shadow.h>
    25 
    26 #else
    27 
    28 #ifndef _SHADOW_H
    29 #define _SHADOW_H 1
    30 
    31 /* Paths to the user database files */
    32 #ifndef _PATH_SHADOW
    33 #define _PATH_SHADOW "/etc/shadow"
    34 #endif
     25PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
    3526
    3627/* Structure of the password file */
     
    4738};
    4839
     40/* Paths to the user database files */
     41#ifndef _PATH_SHADOW
     42#define _PATH_SHADOW "/etc/shadow"
     43#endif
    4944
    5045#define setspent    bb_internal_setspent
     
    6459
    6560/* All function names below should be remapped by #defines above
    66  * in order to not collide with libc names.
    67  * In theory it isn't necessary, but I saw weird interactions at link time.
    68  * Let's play safe */
     61 * in order to not collide with libc names. */
    6962
    70 
     63#ifdef UNUSED_FOR_NOW
    7164/* Open database for reading */
    7265extern void setspent(void);
     
    7972
    8073/* Get shadow entry matching NAME */
    81 extern struct spwd *getspnam(__const char *__name);
     74extern struct spwd *getspnam(const char *__name);
    8275
    8376/* Read shadow entry from STRING */
    84 extern struct spwd *sgetspent(__const char *__string);
     77extern struct spwd *sgetspent(const char *__string);
    8578
    8679/* Read next shadow entry from STREAM */
     
    8881
    8982/* Write line containing shadow password entry to stream */
    90 extern int putspent(__const struct spwd *__p, FILE *__stream);
     83extern int putspent(const struct spwd *__p, FILE *__stream);
    9184
    9285/* Reentrant versions of some of the functions above */
    9386extern int getspent_r(struct spwd *__result_buf, char *__buffer,
    9487               size_t __buflen, struct spwd **__result);
     88#endif
    9589
    96 extern int getspnam_r(__const char *__name, struct spwd *__result_buf,
     90extern int getspnam_r(const char *__name, struct spwd *__result_buf,
    9791               char *__buffer, size_t __buflen,
    9892               struct spwd **__result);
    9993
    100 extern int sgetspent_r(__const char *__string, struct spwd *__result_buf,
     94#ifdef UNUSED_FOR_NOW
     95extern int sgetspent_r(const char *__string, struct spwd *__result_buf,
    10196            char *__buffer, size_t __buflen,
    10297            struct spwd **__result);
     
    110105/* Unlock password file */
    111106extern int ulckpwdf(void);
     107#endif
     108
     109POP_SAVED_FUNCTION_VISIBILITY
    112110
    113111#endif /* shadow.h */
    114 #endif
Note: See TracChangeset for help on using the changeset viewer.