libbb: move capability names code to libbb
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 21 Aug 2017 00:14:19 +0000 (02:14 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 21 Aug 2017 00:14:19 +0000 (02:14 +0200)
commit44b3f2ffbc01c0a9fcfb5d60af3e292f505ac67c
treef892e9df211798dd5335b6bc363c0afa0effd462
parentec2482e966c505d9076cf8581dabc4925c4c8bfe
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>
include/libbb.h
libbb/capability.c [new file with mode: 0644]
util-linux/setpriv.c