diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-22 13:56:39 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-22 13:56:39 +0000 |
commit | 811c449748d5bd0505f8510e5582892f94ac0cda (patch) | |
tree | 2640249cb2a9605c7cd59467b9861b205e9bcc8a /include/libbb.h | |
parent | c0d4367d6b581eb5989c02815880cf0fa2851ae8 (diff) | |
parent | 19311bfa7b8e8c6effa9c375de9b0eb4338bee12 (diff) | |
download | busybox-w32-811c449748d5bd0505f8510e5582892f94ac0cda.tar.gz busybox-w32-811c449748d5bd0505f8510e5582892f94ac0cda.tar.bz2 busybox-w32-811c449748d5bd0505f8510e5582892f94ac0cda.zip |
Merge commit '19311bfa7b8e8c6effa9c375de9b0eb4338bee12' into merge
Conflicts:
coreutils/ls.c
shell/ash.c
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6564038e9..0006e7e55 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -855,14 +855,14 @@ char* xuid2uname(uid_t uid) FAST_FUNC; | |||
855 | char* xgid2group(gid_t gid) FAST_FUNC; | 855 | char* xgid2group(gid_t gid) FAST_FUNC; |
856 | char* uid2uname(uid_t uid) FAST_FUNC; | 856 | char* uid2uname(uid_t uid) FAST_FUNC; |
857 | char* gid2group(gid_t gid) FAST_FUNC; | 857 | char* gid2group(gid_t gid) FAST_FUNC; |
858 | char* uid2uname_utoa(long uid) FAST_FUNC; | 858 | char* uid2uname_utoa(uid_t uid) FAST_FUNC; |
859 | char* gid2group_utoa(long gid) FAST_FUNC; | 859 | char* gid2group_utoa(gid_t gid) FAST_FUNC; |
860 | /* versions which cache results (useful for ps, ls etc) */ | 860 | /* versions which cache results (useful for ps, ls etc) */ |
861 | const char* get_cached_username(uid_t uid) FAST_FUNC; | 861 | const char* get_cached_username(uid_t uid) FAST_FUNC; |
862 | const char* get_cached_groupname(gid_t gid) FAST_FUNC; | 862 | const char* get_cached_groupname(gid_t gid) FAST_FUNC; |
863 | void clear_username_cache(void) FAST_FUNC; | 863 | void clear_username_cache(void) FAST_FUNC; |
864 | /* internally usernames are saved in fixed-sized char[] buffers */ | 864 | /* internally usernames are saved in fixed-sized char[] buffers */ |
865 | enum { USERNAME_MAX_SIZE = 16 - sizeof(int) }; | 865 | enum { USERNAME_MAX_SIZE = 32 - sizeof(uid_t) }; |
866 | #if ENABLE_FEATURE_CHECK_NAMES | 866 | #if ENABLE_FEATURE_CHECK_NAMES |
867 | void die_if_bad_username(const char* name) FAST_FUNC; | 867 | void die_if_bad_username(const char* name) FAST_FUNC; |
868 | #else | 868 | #else |
@@ -1214,10 +1214,17 @@ char *bb_simplify_path(const char *path) FAST_FUNC; | |||
1214 | /* Returns ptr to NUL */ | 1214 | /* Returns ptr to NUL */ |
1215 | char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC; | 1215 | char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC; |
1216 | 1216 | ||
1217 | #define FAIL_DELAY 3 | 1217 | #define LOGIN_FAIL_DELAY 3 |
1218 | extern void bb_do_delay(int seconds) FAST_FUNC; | 1218 | extern void bb_do_delay(int seconds) FAST_FUNC; |
1219 | extern void change_identity(const struct passwd *pw) FAST_FUNC; | 1219 | extern void change_identity(const struct passwd *pw) FAST_FUNC; |
1220 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC; | 1220 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC; |
1221 | |||
1222 | /* Returns $SHELL, getpwuid(getuid())->pw_shell, or DEFAULT_SHELL. | ||
1223 | * Note that getpwuid result might need xstrdup'ing | ||
1224 | * if there is a possibility of intervening getpwxxx() calls. | ||
1225 | */ | ||
1226 | const char *get_shell_name(void); | ||
1227 | |||
1221 | #if ENABLE_SELINUX | 1228 | #if ENABLE_SELINUX |
1222 | extern void renew_current_security_context(void) FAST_FUNC; | 1229 | extern void renew_current_security_context(void) FAST_FUNC; |
1223 | extern void set_current_security_context(security_context_t sid) FAST_FUNC; | 1230 | extern void set_current_security_context(security_context_t sid) FAST_FUNC; |