aboutsummaryrefslogtreecommitdiff
path: root/coreutils/od.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* od: -l,I,L indeed depend on sizeof(long), fix thisDenys Vlasenko2023-05-261-8/+13
| | | | | | | | | | function old new delta .rodata 105255 105252 -3 od_main 1917 1901 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-19) Total: -19 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: actually remove -IL from --help, as comment saysDenys Vlasenko2023-05-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: support -DOHXILDenys Vlasenko2023-05-261-1/+3
| | | | | | | | | | function old new delta od_main 1866 1917 +51 .rodata 105306 105321 +15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 66/0) Total: 66 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/dump: conditionalize code used only by xxd and odDenys Vlasenko2023-05-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: fix default format, shrinkDenys Vlasenko2023-05-261-20/+22
| | | | | | | | | | function old new delta od_main 556 568 +12 .rodata 104613 104555 -58 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 12/-58) Total: -46 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: stop printing extra trailing spacesDenys Vlasenko2023-05-251-16/+17
| | | | | | | | | | | | function old new delta .rodata 104598 104613 +15 display 1475 1485 +10 od_main 549 556 +7 rewrite 971 967 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 32/-4) Total: 28 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: correct -i, enable tests which pass for DESKTOP tooDenys Vlasenko2023-05-251-0/+2
| | | | | | | function old new delta .rodata 105302 105305 +3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: for !DESKTOP, match output more closely to GNU coreutils 9.1, implement -sDenys Vlasenko2023-05-251-21/+34
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: fix -ODavid Leonard2023-05-251-1/+1
| | | | | | | | od with option -O (4-byte octal) was incorrectly displaying 2-byte decimal when built without CONFIG_DESKTOP Signed-off-by: David Leonard <d+busybox@adaptive-enterprises.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: slap on a few ALIGN* where appropriateDenys Vlasenko2022-02-061-1/+1
| | | | | | | | | | | | | | The result of looking at "grep -F -B2 '*fill*' busybox_unstripped.map" function old new delta .rodata 108586 108460 -126 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-126) Total: -126 bytes text data bss dec hex filename 970412 4219 1848 976479 ee65f busybox_old 970286 4219 1848 976353 ee5e1 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* do not use `a' quoting style in commentsDenys Vlasenko2017-08-021-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* config: deindent all help textsDenys Vlasenko2017-07-211-1/+1
| | | | | | Those two spaces after tab have no effect, and always a nuisance when editing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Update menuconfig items with approximate applet sizesDenys Vlasenko2017-07-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all coreutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-231-0/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: code shrink, fix "od --traditional FILE"Denys Vlasenko2011-05-211-3/+4
| | | | | | | | | function old new delta parse_old_offset 107 125 +18 packed_usage 28715 28691 -24 od_main 2312 2275 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to coreutils/*.cPere Orga2011-03-311-0/+5
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-291-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: whitespace fixesDenys Vlasenko2010-10-281-14/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: optimize most of isXXXXX() macrosDenys Vlasenko2009-10-231-8/+5
| | | | | | | | text data bss dec hex filename 824164 453 6812 831429 cafc5 busybox_old 823730 453 6812 830995 cae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: get rid of statics in dump.c; code shrinks a lot tooDenis Vlasenko2008-07-161-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta alloc_dumper - 26 +26 hexdump_main 600 601 +1 static.done 1 - -1 static.ateof 1 - -1 bb_dump_vflag 1 - -1 static.savp 4 - -4 static.nextfs 4 - -4 static.curp 4 - -4 exitval 4 - -4 endfu 4 - -4 bb_dump_length 4 - -4 bb_dump_fshead 4 - -4 bb_dump_blocksize 4 - -4 _argv 4 - -4 bb_dump_add 365 358 -7 savaddress 8 - -8 eaddress 8 - -8 bb_dump_skip 8 - -8 address 8 - -8 bb_dump_dump 2748 2672 -76 next 538 445 -93 ------------------------------------------------------------------------------ (add/remove: 1/16 grow/shrink: 1/3 up/down: 27/-247) Total: -220 bytes text data bss dec hex filename 789458 607 6764 796829 c289d busybox_old 789309 601 6696 796606 c27be busybox_unstripped
* patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes)Denis Vlasenko2008-03-231-1/+0
| | | | | *: removal of #include <getopt.h>
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-3/+3
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* - include busybox.h before looking at an eventual #if ENABLE_DESKTOPBernhard Reutner-Fischer2007-02-031-2/+2
|
* Provide our own isdigit macro. saves more than 400 bytes.Denis Vlasenko2006-11-271-1/+1
|
* od: provide full-blown od from coreutils if CONFIG_DESKTOPDenis Vlasenko2006-10-101-4/+6
|
* sed: unbreak multiple -e, -f option handling (my fault)Denis Vlasenko2006-10-011-1/+1
|
* g[un]zip: add support for -v (verbose).Denis Vlasenko2006-10-011-0/+2
| | | | | Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
* Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"2006-07-121-13/+1
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-1/+1
|
* clean up yet more annoying signed/unsigned mismatches and fixupEric Andersen2006-01-301-5/+5
| | | | yet more incorrect types
* Felipe Kellermann writes,Glenn L McGrath2004-07-231-5/+5
| | | | | | | | "As noticed today by Steven Scholz, the od's `-v' was broken. I've fixed that and now both the flags `-v' and `-a' are OK" Fixes a segfault in echo "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu\02bar\4"| ./busybox od -av
* Things my compiler didn't catch...Manuel Novoa III2003-03-191-2/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-122/+81
|
* Will the real od.c please stand up! (my previous commit was a mistake)Glenn L McGrath2002-11-101-64/+230
|
* Prevent a segfault if no argument, by Geoffrey Lee <glee@bluesat.unsw.edu.au>Glenn L McGrath2002-11-101-224/+64
|
* Remove advertising clauses in accordance withAaron Lehmann2002-06-231-5/+1
| | | | ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change
* Introduce od and hexdump appletsGlenn L McGrath2001-11-021-0/+270