diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 0b2411fcd..2b9fd5fd6 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -39,6 +39,16 @@ | |||
39 | 39 | ||
40 | #include "config.h" | 40 | #include "config.h" |
41 | 41 | ||
42 | #include "pwd.h" | ||
43 | #include "grp.h" | ||
44 | #ifdef CONFIG_FEATURE_SHADOWPASSWDS | ||
45 | #include "shadow_.h" | ||
46 | #endif | ||
47 | #ifdef CONFIG_FEATURE_SHA1_PASSWORDS | ||
48 | # include "sha1.h" | ||
49 | #endif | ||
50 | |||
51 | |||
42 | #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__) | 52 | #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__) |
43 | /* libc5 doesn't define socklen_t */ | 53 | /* libc5 doesn't define socklen_t */ |
44 | typedef unsigned int socklen_t; | 54 | typedef unsigned int socklen_t; |
@@ -260,6 +270,15 @@ extern const char * const too_few_args; | |||
260 | extern const char * const name_longer_than_foo; | 270 | extern const char * const name_longer_than_foo; |
261 | extern const char * const unknown; | 271 | extern const char * const unknown; |
262 | extern const char * const can_not_create_raw_socket; | 272 | extern const char * const can_not_create_raw_socket; |
273 | extern const char * const nologin_file; | ||
274 | extern const char * const passwd_file; | ||
275 | extern const char * const shadow_file; | ||
276 | extern const char * const gshadow_file; | ||
277 | extern const char * const group_file; | ||
278 | extern const char * const securetty_file; | ||
279 | extern const char * const motd_file; | ||
280 | extern const char * const issue_file; | ||
281 | extern const char * const _path_login; | ||
263 | 282 | ||
264 | #ifdef CONFIG_FEATURE_DEVFS | 283 | #ifdef CONFIG_FEATURE_DEVFS |
265 | # define CURRENT_VC "/dev/vc/0" | 284 | # define CURRENT_VC "/dev/vc/0" |
@@ -299,4 +318,15 @@ void reset_ino_dev_hashtable(void); | |||
299 | extern size_t xstrlen(const char *string); | 318 | extern size_t xstrlen(const char *string); |
300 | #define strlen(x) xstrlen(x) | 319 | #define strlen(x) xstrlen(x) |
301 | 320 | ||
321 | |||
322 | #define FAIL_DELAY 3 | ||
323 | extern void change_identity ( const struct passwd *pw ); | ||
324 | extern void run_shell ( const char *shell, int loginshell, const char *command, const char **additional_args ); | ||
325 | extern int restricted_shell ( const char *shell ); | ||
326 | extern void setup_environment ( const char *shell, int loginshell, int changeenv, const struct passwd *pw ); | ||
327 | extern int correct_password ( const struct passwd *pw ); | ||
328 | extern char *pw_encrypt(const char *clear, const char *salt); | ||
329 | extern struct spwd *pwd_to_spwd(const struct passwd *pw); | ||
330 | extern int obscure(const char *old, const char *newval, const struct passwd *pwdp); | ||
331 | |||
302 | #endif /* __LIBCONFIG_H__ */ | 332 | #endif /* __LIBCONFIG_H__ */ |