aboutsummaryrefslogtreecommitdiff
path: root/libbb/run_shell.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-27 02:52:20 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-27 02:52:20 +0000
commitdefc1ea34074e7882724c460260d307cdf981a70 (patch)
treefca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/run_shell.c
parent26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff)
downloadbusybox-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.c8
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
37static security_context_t current_sid; 37static security_context_t current_sid;
38 38
39void 39void FAST_FUNC renew_current_security_context(void)
40renew_current_security_context(void)
41{ 40{
42 freecon(current_sid); /* Release old context */ 41 freecon(current_sid); /* Release old context */
43 getcon(&current_sid); /* update */ 42 getcon(&current_sid); /* update */
44} 43}
45void 44void FAST_FUNC set_current_security_context(security_context_t sid)
46set_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
59void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) 57void 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;