summaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * sha3: rename KeccakF->sha3_process_block76.Denys Vlasenko2013-01-161-79/+81
| | | | | | | | | | | | | | | | This brings the naming more in line with other hashes. Pulled most statics and constants into it. Also noticed that two byte arrays are 1 element too big. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: cache ctx->bytes_queuedDenys Vlasenko2013-01-151-11/+11
| | | | | | | | | | | | | | function old new delta sha3_hash 171 155 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: remove two "small code" codepaths: I can't reproduce code size win on ↵Denys Vlasenko2013-01-151-43/+18
| | | | | | | | | | | | them anymore Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: tweak choice of a fast code path for 64-bitDenys Vlasenko2013-01-151-1/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: cosmetic tweaks to various names, comments. No logic changes.Denys Vlasenko2013-01-151-61/+63
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: code shrinkDenys Vlasenko2013-01-151-26/+36
| | | | | | | | | | | | | | | | function old new delta KeccakF 1053 1078 +25 KeccakF_RoundConstants 192 48 -144 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: code shrinkDenys Vlasenko2013-01-151-13/+18
| | | | | | | | | | | | | | function old new delta KeccakF 1064 1053 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: another speedup for SHA3_SMALL=0 caseDenys Vlasenko2013-01-151-10/+25
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace fixes. no code changesDenys Vlasenko2013-01-151-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3: make size/speed optimization decision configurableDenys Vlasenko2013-01-152-19/+68
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace cleanup. no code changesDenys Vlasenko2013-01-144-7/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * sha3sum: new appletLauri Kasanen2013-01-141-0/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta KeccakF - 496 +496 KeccakF_RoundConstants - 192 +192 sha3_hash - 171 +171 sha3_end - 40 +40 hash_file 274 299 +25 KeccakF_RotationConstants - 25 +25 KeccakF_PiLane - 25 +25 packed_usage 29213 29232 +19 sha3_begin - 18 +18 KeccakF_Mod5 - 10 +10 applet_names 2445 2453 +8 applet_main 1420 1424 +4 applet_nameofs 710 712 +2 ------------------------------------------------------------------------------ (add/remove: 8/0 grow/shrink: 9/7 up/down: 1049/-54) Total: ~995 bytes Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Add a build option to turn MSVCRT globbing on or offRon Yorston2012-12-101-1/+1
| |
* | Ensure mingw_stat is called when necessaryRon Yorston2012-11-292-2/+4
| | | | | | | | | | | | In some cases a funtion pointer to the stat function is used. The preprocessor can't replace these with the mingw_stat, so make alternative arrangements in those cases.
* | Merge branch 'busybox' into mergeRon Yorston2012-10-104-5/+8
|\|
| * mark get_shell_name FAST_FUNCDenys Vlasenko2012-10-031-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * top/ps: argv0:"gdm-session-worker [pam/gdm-password]" == comm:"gdm-session-wor"Denys Vlasenko2012-10-021-0/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * lineedit: in !EDITING config, return -1 on fgets errorDenys Vlasenko2012-09-271-1/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb: correctness/size tweaks in signal-related helpersDenys Vlasenko2012-09-271-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Revised quoting of command line arguments for WIN32Ron Yorston2012-10-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * We only need to quote an argument if it contains whitespace. * There's no point in quoting ? or * because Windows still expands them. Anyhow, if the command line comes from a BusyBox shell it will usually have handled the globbing, so we should turn off Windows globbing for any wildcard that has made it through the shell without expansion. This means that BusyBox commands run from cmd.exe won't do wildcard expansion, though. * Backslashes only need to be doubled if they occur immediately before double quotes. * Double quotes need to be escaped with a backslash.
* | Simplify recursive directory creationRon Yorston2012-09-071-8/+5
| |
* | Merge branch 'busybox' into mergeRon Yorston2012-09-079-25/+76
|\| | | | | | | | | | | Conflicts: include/libbb.h shell/ash.c
| * top: fix "last CPU" parsingDenys Vlasenko2012-09-061-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * refactor correct_password.c to avoid one ifwalter harms2012-09-041-6/+3
| | | | | | | | | | Signed-off-by: walter harms <wharms@bfs.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * lineedit: fix Alt-D when cursor==0Cliff Frey2012-08-071-3/+3
| | | | | | | | | | Signed-off-by: Cliff Frey <cliff@meraki.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Simplify copyright/license notice that appears in the binary.Bradley M. Kuhn2012-07-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | Existing copyright notice for binary would need to be longer to achieve optimal accuracy. This compromise punts to the source for full notices, but does note the years of the copyrights and that there are many authors, all licensing under GPLv2. Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org> Signed-off-by: Tony Sebro <tony@sfconservancy.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * su: do not change to home dir unless -lPascal Bellard2012-06-122-5/+7
| | | | | | | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Add comments in keyboard escape sequences tableDenys Vlasenko2012-06-111-5/+10
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb: add missing_syscalls.c: for now, only Android syscallsTias Guns2012-06-101-0/+42
| | | | | | | | | | Signed-off-by: Tias Guns <tias@ulyssis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * unzip: ignore chmod errorsNatanael Copa2012-05-281-1/+6
| | | | | | | | | | | | | | | | This makes unzip to FAT filesystems not exit with error. This is similar to how the "normal" unzip works. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * busybox: tweak help text and copyright yearDenys Vlasenko2012-05-141-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2012-05-092-8/+5
|\|
| * ln: support -T and -vSimon B2012-05-061-1/+1
| | | | | | | | | | | | | | | | | | function old new delta ln_main 445 524 +79 packed_usage 29182 29179 -3 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * get_linux_version_code: don't fail on Linux version strints like "3.0-foo"Andreas Oberritter2012-05-051-7/+4
| | | | | | | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Use win32_execable_file() in test, which and execable.cRon Yorston2012-05-091-22/+9
| |
* | mingw32: make access(2) check file format for executablesRon Yorston2012-05-091-25/+1
| |
* | lineedit: disable hack for wrong width on MinGWRon Yorston2012-05-011-1/+1
| |
* | Merge branch 'busybox' into mergeRon Yorston2012-04-292-26/+2
|\|
| * sendmail: use host rather than NIS domain name for HELORon Yorston2012-04-281-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | According to RFC 5321 the argument to HELO "contains the fully-qualified domain name of the SMTP client" or its IP address if no FQDN is available. BusyBox sendmail uses the NIS domain name instead which, in many cases, is likely to be the default "(none)". [vda: yes, I checked my machine and its uts.domainname was indeed "(none)"] Using the host name is more likely to satisfy the intent of the RFC while allowing the otherwise unused safe_getdomainname function to be removed. Signed-off-by: Ron Yorston <rmy@tigress.co.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * lineedit: histfile can get emptied when CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=yDennis Groenen2012-04-261-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is set to y, the histfile will get cleared if the total amount of history lines is less than MAX_HISTORY. Only if the histfile is not empty _and_ the amount of lines currently in memory are equal to or greater than MAX_HISTORY, history saving will work as expected with this feature enabled. Output from defconfig + CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y: $ echo "foo" > ~/.ash_history $ ./busybox ash ~/busybox/a $ echo "bar" > /dev/null ~/busybox/a $ exit $ cat ~/.ash_history $ Output with the patch applied and same config as above: $ echo "foo" > ~/.ash_history $ ./busybox ash ~/busybox/b $ echo "bar" > /dev/null ~/busybox/b $ exit $ cat ~/.ash_history foo echo "bar" > /dev/null exit $ Signed-off-by: Dennis Groenen <tj.groenen at gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Initialise winsock once in appletlib, not in appletsRon Yorston2012-04-241-0/+2
| |
* | win32: add pw_shell to struct passwdRon Yorston2012-04-231-2/+0
| |
* | win32: support fancy prompts and (limited) tilde expansionRon Yorston2012-04-231-0/+10
| |
* | Merge commit '1_20_0' into mergeRon Yorston2012-04-232-1/+2
|\|
| * whitespace fixesDenys Vlasenko2012-04-201-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * fix build breakage found by randconfigDenys Vlasenko2012-04-201-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | win32: use uname/getdomainname in safe_gethostname.cRon Yorston2012-04-231-10/+0
| |
* | win32: implement ioctlRon Yorston2012-04-231-4/+0
| |
* | Detect and execute shell scripts based on presence of '#!'Ron Yorston2012-04-171-6/+24
| |
* | Strip trailing CR in xmalloc_fgetlineRon Yorston2012-04-021-0/+4
| |