diff options
| author | Ron Yorston <rmy@pobox.com> | 2017-01-04 11:32:33 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2017-01-04 11:41:38 +0000 |
| commit | f9cf712f8a640ac2d250dfa77dd809ab033f618a (patch) | |
| tree | c8f6135b5842e0110ca54d6690ab95b28792bb1e /include | |
| parent | 71ecc8033e6989996057b32577e71148fd544596 (diff) | |
| parent | c6725b0af68238a456690146adec763c04f66c82 (diff) | |
| download | busybox-w32-f9cf712f8a640ac2d250dfa77dd809ab033f618a.tar.gz busybox-w32-f9cf712f8a640ac2d250dfa77dd809ab033f618a.tar.bz2 busybox-w32-f9cf712f8a640ac2d250dfa77dd809ab033f618a.zip | |
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
| -rwxr-xr-x | include/applets.h.sh | 11 | ||||
| -rw-r--r-- | include/libbb.h | 17 |
2 files changed, 17 insertions, 11 deletions
diff --git a/include/applets.h.sh b/include/applets.h.sh index bab4e0d72..be117cf84 100755 --- a/include/applets.h.sh +++ b/include/applets.h.sh | |||
| @@ -4,11 +4,7 @@ | |||
| 4 | # enabling it. Run it after applets.h is generated. | 4 | # enabling it. Run it after applets.h is generated. |
| 5 | 5 | ||
| 6 | # CONFIG_applet names | 6 | # CONFIG_applet names |
| 7 | grep ^IF_ applets.h | grep -v IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ | 7 | grep ^IF_ applets.h | grep -v ^IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ |
| 8 | | grep -v MODPROBE_SMALL \ | ||
| 9 | | sed 's/BB_SYSCTL/SYSCTL/' \ | ||
| 10 | | sed 's/TEST1/[/' \ | ||
| 11 | | sed 's/TEST2/[[/' \ | ||
| 12 | | sort | uniq \ | 8 | | sort | uniq \ |
| 13 | >applets_APP1 | 9 | >applets_APP1 |
| 14 | 10 | ||
| @@ -17,8 +13,11 @@ grep ^IF_ applets.h | sed -e's/ //g' -e's/.*(\([a-z[][^,]*\),.*/\1/' \ | |||
| 17 | | grep -v '^bash$' \ | 13 | | grep -v '^bash$' \ |
| 18 | | grep -v '^sh$' \ | 14 | | grep -v '^sh$' \ |
| 19 | | tr a-z A-Z \ | 15 | | tr a-z A-Z \ |
| 16 | | sed 's/^SYSCTL$/BB_SYSCTL/' \ | ||
| 17 | | sed 's/^\[\[$/TEST1/' \ | ||
| 18 | | sed 's/^\[$/TEST2/' \ | ||
| 20 | | sort | uniq \ | 19 | | sort | uniq \ |
| 21 | >applets_APP2 | 20 | >applets_APP2 |
| 22 | 21 | ||
| 23 | diff -u applets_APP1 applets_APP2 >applets_APP.diff | 22 | diff -u applets_APP1 applets_APP2 >applets_APP.diff |
| 24 | rm applets_APP1 applets_APP2 | 23 | #rm applets_APP1 applets_APP2 |
diff --git a/include/libbb.h b/include/libbb.h index a6de5e97b..0b9cfb585 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | #include <sys/stat.h> | 45 | #include <sys/stat.h> |
| 46 | #include <sys/time.h> | 46 | #include <sys/time.h> |
| 47 | #include <sys/types.h> | 47 | #include <sys/types.h> |
| 48 | #ifndef major | 48 | #if !defined(major) || defined(__GLIBC__) |
| 49 | # include <sys/sysmacros.h> | 49 | # include <sys/sysmacros.h> |
| 50 | #endif | 50 | #endif |
| 51 | #include <sys/wait.h> | 51 | #include <sys/wait.h> |
| @@ -81,8 +81,6 @@ | |||
| 81 | #if ENABLE_SELINUX | 81 | #if ENABLE_SELINUX |
| 82 | # include <selinux/selinux.h> | 82 | # include <selinux/selinux.h> |
| 83 | # include <selinux/context.h> | 83 | # include <selinux/context.h> |
| 84 | # include <selinux/flask.h> | ||
| 85 | # include <selinux/av_permissions.h> | ||
| 86 | #endif | 84 | #endif |
| 87 | #if ENABLE_FEATURE_UTMP | 85 | #if ENABLE_FEATURE_UTMP |
| 88 | # if defined __UCLIBC__ && ( \ | 86 | # if defined __UCLIBC__ && ( \ |
| @@ -944,6 +942,7 @@ extern const struct suffix_mult bkm_suffixes[]; | |||
| 944 | #define km_suffixes (bkm_suffixes + 1) | 942 | #define km_suffixes (bkm_suffixes + 1) |
| 945 | extern const struct suffix_mult cwbkMG_suffixes[]; | 943 | extern const struct suffix_mult cwbkMG_suffixes[]; |
| 946 | #define kMG_suffixes (cwbkMG_suffixes + 3) | 944 | #define kMG_suffixes (cwbkMG_suffixes + 3) |
| 945 | extern const struct suffix_mult kmg_i_suffixes[]; | ||
| 947 | 946 | ||
| 948 | #include "xatonum.h" | 947 | #include "xatonum.h" |
| 949 | /* Specialized: */ | 948 | /* Specialized: */ |
| @@ -1210,8 +1209,16 @@ int bb_cat(char** argv); | |||
| 1210 | /* If shell needs them, they exist even if not enabled as applets */ | 1209 | /* If shell needs them, they exist even if not enabled as applets */ |
| 1211 | int echo_main(int argc, char** argv) IF_ECHO(MAIN_EXTERNALLY_VISIBLE); | 1210 | int echo_main(int argc, char** argv) IF_ECHO(MAIN_EXTERNALLY_VISIBLE); |
| 1212 | int printf_main(int argc, char **argv) IF_PRINTF(MAIN_EXTERNALLY_VISIBLE); | 1211 | int printf_main(int argc, char **argv) IF_PRINTF(MAIN_EXTERNALLY_VISIBLE); |
| 1213 | int test_main(int argc, char **argv) IF_TEST(MAIN_EXTERNALLY_VISIBLE); | 1212 | int test_main(int argc, char **argv) |
| 1214 | int kill_main(int argc, char **argv) IF_KILL(MAIN_EXTERNALLY_VISIBLE); | 1213 | #if ENABLE_TEST || ENABLE_TEST1 || ENABLE_TEST2 |
| 1214 | MAIN_EXTERNALLY_VISIBLE | ||
| 1215 | #endif | ||
| 1216 | ; | ||
| 1217 | int kill_main(int argc, char **argv) | ||
| 1218 | #if ENABLE_KILL || ENABLE_KILLALL || ENABLE_KILLALL5 | ||
| 1219 | MAIN_EXTERNALLY_VISIBLE | ||
| 1220 | #endif | ||
| 1221 | ; | ||
| 1215 | /* Similar, but used by chgrp, not shell */ | 1222 | /* Similar, but used by chgrp, not shell */ |
| 1216 | int chown_main(int argc, char **argv) IF_CHOWN(MAIN_EXTERNALLY_VISIBLE); | 1223 | int chown_main(int argc, char **argv) IF_CHOWN(MAIN_EXTERNALLY_VISIBLE); |
| 1217 | /* Used by ftpd */ | 1224 | /* Used by ftpd */ |
