diff options
author | Ron Yorston <rmy@pobox.com> | 2021-03-24 11:55:30 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-03-24 12:43:15 +0000 |
commit | 355a7a6c1e9626b7afe8758a6095f3cf275c52e1 (patch) | |
tree | 6dab679c15b049cab97212e0b43077132eec1fbe /include | |
parent | 71ecc8033e6989996057b32577e71148fd544596 (diff) | |
parent | 889425812b5cda8b3394d73253cbde7355fb1115 (diff) | |
download | busybox-w32-w32_1_26_2.tar.gz busybox-w32-w32_1_26_2.tar.bz2 busybox-w32-w32_1_26_2.zip |
Merge tag '1_26_2' into w32_1_26_2w32_1_26_2
Diffstat (limited to 'include')
-rwxr-xr-x | include/applets.h.sh | 11 | ||||
-rw-r--r-- | include/libbb.h | 17 | ||||
-rw-r--r-- | include/mingw.h | 2 |
3 files changed, 19 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 */ |
diff --git a/include/mingw.h b/include/mingw.h index 04700963c..569c2c704 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -448,7 +448,9 @@ DIR *mingw_opendir(const char *path); | |||
448 | * MinGW specific | 448 | * MinGW specific |
449 | */ | 449 | */ |
450 | #define is_dir_sep(c) ((c) == '/' || (c) == '\\') | 450 | #define is_dir_sep(c) ((c) == '/' || (c) == '\\') |
451 | #ifndef PRIuMAX | ||
451 | #define PRIuMAX "I64u" | 452 | #define PRIuMAX "I64u" |
453 | #endif | ||
452 | 454 | ||
453 | pid_t FAST_FUNC mingw_spawn(char **argv); | 455 | pid_t FAST_FUNC mingw_spawn(char **argv); |
454 | intptr_t FAST_FUNC mingw_spawn_proc(char **argv); | 456 | intptr_t FAST_FUNC mingw_spawn_proc(char **argv); |