aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h30
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 */
44typedef unsigned int socklen_t; 54typedef unsigned int socklen_t;
@@ -260,6 +270,15 @@ extern const char * const too_few_args;
260extern const char * const name_longer_than_foo; 270extern const char * const name_longer_than_foo;
261extern const char * const unknown; 271extern const char * const unknown;
262extern const char * const can_not_create_raw_socket; 272extern const char * const can_not_create_raw_socket;
273extern const char * const nologin_file;
274extern const char * const passwd_file;
275extern const char * const shadow_file;
276extern const char * const gshadow_file;
277extern const char * const group_file;
278extern const char * const securetty_file;
279extern const char * const motd_file;
280extern const char * const issue_file;
281extern 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);
299extern size_t xstrlen(const char *string); 318extern 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
323extern void change_identity ( const struct passwd *pw );
324extern void run_shell ( const char *shell, int loginshell, const char *command, const char **additional_args );
325extern int restricted_shell ( const char *shell );
326extern void setup_environment ( const char *shell, int loginshell, int changeenv, const struct passwd *pw );
327extern int correct_password ( const struct passwd *pw );
328extern char *pw_encrypt(const char *clear, const char *salt);
329extern struct spwd *pwd_to_spwd(const struct passwd *pw);
330extern int obscure(const char *old, const char *newval, const struct passwd *pwdp);
331
302#endif /* __LIBCONFIG_H__ */ 332#endif /* __LIBCONFIG_H__ */