diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
commit | defc1ea34074e7882724c460260d307cdf981a70 (patch) | |
tree | fca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/run_shell.c | |
parent | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff) | |
download | busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.gz busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.bz2 busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.zip |
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename
808035 611 6868 815514 c719a busybox_old
804472 611 6868 811951 c63af busybox_unstripped
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r-- | libbb/run_shell.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libbb/run_shell.c b/libbb/run_shell.c index 239887d85..2ccb3a12c 100644 --- a/libbb/run_shell.c +++ b/libbb/run_shell.c | |||
@@ -36,14 +36,12 @@ | |||
36 | #if ENABLE_SELINUX | 36 | #if ENABLE_SELINUX |
37 | static security_context_t current_sid; | 37 | static security_context_t current_sid; |
38 | 38 | ||
39 | void | 39 | void FAST_FUNC renew_current_security_context(void) |
40 | renew_current_security_context(void) | ||
41 | { | 40 | { |
42 | freecon(current_sid); /* Release old context */ | 41 | freecon(current_sid); /* Release old context */ |
43 | getcon(¤t_sid); /* update */ | 42 | getcon(¤t_sid); /* update */ |
44 | } | 43 | } |
45 | void | 44 | void FAST_FUNC set_current_security_context(security_context_t sid) |
46 | set_current_security_context(security_context_t sid) | ||
47 | { | 45 | { |
48 | freecon(current_sid); /* Release old context */ | 46 | freecon(current_sid); /* Release old context */ |
49 | current_sid = sid; | 47 | current_sid = sid; |
@@ -56,7 +54,7 @@ set_current_security_context(security_context_t sid) | |||
56 | If ADDITIONAL_ARGS is nonzero, pass it to the shell as more | 54 | If ADDITIONAL_ARGS is nonzero, pass it to the shell as more |
57 | arguments. */ | 55 | arguments. */ |
58 | 56 | ||
59 | void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) | 57 | void FAST_FUNC run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) |
60 | { | 58 | { |
61 | const char **args; | 59 | const char **args; |
62 | int argno = 1; | 60 | int argno = 1; |