Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/include/shadow_.h
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/include/shadow_.h
r1765 r2725 20 20 /* Declaration of types and functions for shadow password suite */ 21 21 22 #if !ENABLE_USE_BB_SHADOW 22 #ifndef BB_SHADOW_H 23 #define BB_SHADOW_H 1 23 24 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 25 PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 35 26 36 27 /* Structure of the password file */ … … 47 38 }; 48 39 40 /* Paths to the user database files */ 41 #ifndef _PATH_SHADOW 42 #define _PATH_SHADOW "/etc/shadow" 43 #endif 49 44 50 45 #define setspent bb_internal_setspent … … 64 59 65 60 /* 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. */ 69 62 70 63 #ifdef UNUSED_FOR_NOW 71 64 /* Open database for reading */ 72 65 extern void setspent(void); … … 79 72 80 73 /* Get shadow entry matching NAME */ 81 extern struct spwd *getspnam( __const char *__name);74 extern struct spwd *getspnam(const char *__name); 82 75 83 76 /* Read shadow entry from STRING */ 84 extern struct spwd *sgetspent( __const char *__string);77 extern struct spwd *sgetspent(const char *__string); 85 78 86 79 /* Read next shadow entry from STREAM */ … … 88 81 89 82 /* Write line containing shadow password entry to stream */ 90 extern int putspent( __const struct spwd *__p, FILE *__stream);83 extern int putspent(const struct spwd *__p, FILE *__stream); 91 84 92 85 /* Reentrant versions of some of the functions above */ 93 86 extern int getspent_r(struct spwd *__result_buf, char *__buffer, 94 87 size_t __buflen, struct spwd **__result); 88 #endif 95 89 96 extern int getspnam_r( __const char *__name, struct spwd *__result_buf,90 extern int getspnam_r(const char *__name, struct spwd *__result_buf, 97 91 char *__buffer, size_t __buflen, 98 92 struct spwd **__result); 99 93 100 extern int sgetspent_r(__const char *__string, struct spwd *__result_buf, 94 #ifdef UNUSED_FOR_NOW 95 extern int sgetspent_r(const char *__string, struct spwd *__result_buf, 101 96 char *__buffer, size_t __buflen, 102 97 struct spwd **__result); … … 110 105 /* Unlock password file */ 111 106 extern int ulckpwdf(void); 107 #endif 108 109 POP_SAVED_FUNCTION_VISIBILITY 112 110 113 111 #endif /* shadow.h */ 114 #endif
Note:
See TracChangeset
for help on using the changeset viewer.