aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-21 02:14:19 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-21 02:14:19 +0200
commit44b3f2ffbc01c0a9fcfb5d60af3e292f505ac67c (patch)
treef892e9df211798dd5335b6bc363c0afa0effd462 /include
parentec2482e966c505d9076cf8581dabc4925c4c8bfe (diff)
downloadbusybox-44b3f2ffbc01c0a9fcfb5d60af3e292f505ac67c.tar.gz
libbb: move capability names code to libbb
function old new delta cap_name_to_number - 77 +77 parse_cap 117 29 -88 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/1 up/down: 77/-88) Total: -11 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 86ad0a057..9535f5fb3 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1473,6 +1473,12 @@ extern void run_shell(const char *shell, int loginshell, const char **args) NORE
*/
const char *get_shell_name(void) FAST_FUNC;
+unsigned cap_name_to_number(const char *cap) FAST_FUNC;
+void printf_cap(const char *pfx, unsigned cap_no) FAST_FUNC;
+
+unsigned cap_name_to_number(const char *name) FAST_FUNC;
+void printf_cap(const char *pfx, unsigned cap_no) FAST_FUNC;
+
#if ENABLE_SELINUX
extern void renew_current_security_context(void) FAST_FUNC;
extern void set_current_security_context(security_context_t sid) FAST_FUNC;