wok annotate busybox/stuff/busybox-1.31-cmdline.u @ rev 22057
updated tumbler and tumbler-dev (0.1.27 -> 0.2.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:26:38 2019 +0100 (2019-10-23) |
parents | |
children |
rev | line source |
---|---|
pascal@21761 | 1 --- busybox-1.30/libbb/appletlib.c |
pascal@21761 | 2 +++ busybox-1.30/libbb/appletlib.c |
pascal@21761 | 3 @@ -118,9 +118,16 @@ |
pascal@21761 | 4 |
pascal@21761 | 5 #endif /* FEATURE_COMPRESS_USAGE */ |
pascal@21761 | 6 |
pascal@21761 | 7 - |
pascal@21761 | 8 +static char **bb_argv; |
pascal@21761 | 9 void FAST_FUNC bb_show_usage(void) |
pascal@21761 | 10 { |
pascal@21761 | 11 + full_write2_str("\nCommand line: "); |
pascal@21761 | 12 + while (*bb_argv) { |
pascal@21761 | 13 + full_write2_str(*bb_argv++); |
pascal@21761 | 14 + full_write2_str(" "); |
pascal@21761 | 15 + } |
pascal@21761 | 16 + full_write2_str("\n\n"); |
pascal@21761 | 17 + |
pascal@21761 | 18 if (ENABLE_SHOW_USAGE) { |
pascal@21761 | 19 #ifdef SINGLE_APPLET_STR |
pascal@21761 | 20 /* Imagine that this applet is "true". Dont link in printf! */ |
pascal@21761 | 21 @@ -820,6 +827,7 @@ |
pascal@21761 | 22 # endif |
pascal@21761 | 23 int busybox_main(int argc UNUSED_PARAM, char **argv) |
pascal@21761 | 24 { |
pascal@21761 | 25 + bb_argv = argv; |
pascal@21761 | 26 if (!argv[1]) { |
pascal@21761 | 27 /* Called without arguments */ |
pascal@21761 | 28 const char *a; |
pascal@21761 | 29 @@ -1033,6 +1041,7 @@ |
pascal@21761 | 30 int main(int argc UNUSED_PARAM, char **argv) |
pascal@21761 | 31 #endif |
pascal@21761 | 32 { |
pascal@21761 | 33 + bb_argv = argv; |
pascal@21761 | 34 #if 0 |
pascal@21761 | 35 /* TODO: find a use for a block of memory between end of .bss |
pascal@21761 | 36 * and end of page. For example, I'm getting "_end:0x812e698 2408 bytes" |