diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 00:11:57 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 00:11:57 +0300 |
commit | cb04ff5c68c1363837d8cd9f2170bdf64625b872 (patch) | |
tree | adde9e8d46920ae48f3768e6b7fa76bdd123f618 /include/shadow_.h | |
parent | 80602a98bcc3100279e09e1291d47a0adb6addb1 (diff) |
fixdep.c: avoit doing memcmp in most cases
uidgid_get.c: add forgotten copyright notice
pwd/grp/shadow: avoid collisions with libc names
Diffstat (limited to 'include/shadow_.h')
-rw-r--r-- | include/shadow_.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/shadow_.h b/include/shadow_.h index 634dfb466..fb2153c52 100644 --- a/include/shadow_.h +++ b/include/shadow_.h @@ -20,11 +20,13 @@ /* Declaration of types and functions for shadow password suite */ #if !ENABLE_USE_BB_SHADOW + #include <shadow.h> + #else #ifndef _SHADOW_H -#define _SHADOW_H 1 +#define _SHADOW_H 1 /* Paths to the user database files */ #ifndef _PATH_SHADOW @@ -44,6 +46,28 @@ struct spwd { unsigned long int sp_flag; /* Reserved */ }; + +#define setspent bb_internal_setspent +#define endspent bb_internal_endspent +#define getspent bb_internal_getspent +#define getspnam bb_internal_getspnam +#define sgetspent bb_internal_sgetspent +#define fgetspent bb_internal_fgetspent +#define putspent bb_internal_putspent +#define getspent_r bb_internal_getspent_r +#define getspnam_r bb_internal_getspnam_r +#define sgetspent_r bb_internal_sgetspent_r +#define fgetspent_r bb_internal_fgetspent_r +#define lckpwdf bb_internal_lckpwdf +#define ulckpwdf bb_internal_ulckpwdf + + +/* All function names below should be remapped by #defines above + * in order to not collide with libc names. + * In theory it isn't necessary, but I saw weird interactions at link time. + * Let's play safe */ + + /* Open database for reading */ extern void setspent(void); |