diff options
author | Denis Vlasenko | 2006-12-30 21:11:57 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-30 21:11:57 +0000 |
commit | cb04ff5c68c1363837d8cd9f2170bdf64625b872 (patch) | |
tree | adde9e8d46920ae48f3768e6b7fa76bdd123f618 /include/shadow_.h | |
parent | 80602a98bcc3100279e09e1291d47a0adb6addb1 (diff) | |
download | busybox-cb04ff5c68c1363837d8cd9f2170bdf64625b872.zip busybox-cb04ff5c68c1363837d8cd9f2170bdf64625b872.tar.gz |
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 634dfb4..fb2153c 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); |