summaryrefslogtreecommitdiff
path: root/coreutils/dd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-2/+2
|
* more -Wall warning fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-131-2/+2
| | | | | | | | | | | | | This time it resulted in small code changes: function old new delta nexpr 820 828 +8 tail_main 1200 1202 +2 wrapf 166 167 +1 parse_mount_options 227 209 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18) Total: -7 bytes
* dd: fix recent breakage (was comparing "if" with "if=" etc).Denis Vlasenko2008-04-231-2/+2
|
* dd: support conv=fsyncDenis Vlasenko2008-04-021-60/+86
| | | | | | | | | | | | dd: support "dd --" if CONFIG_DESKTOP=y function old new delta static.conv_words - 28 +28 dd_main 1369 1373 +4 static.keywords 848 827 -21 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 32/-21) Total: 11 bytes
* libbb: introduse and use signal_[no_]SA_RESTART_empty_mask and sigaction_setDenis Vlasenko2008-03-121-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | signal_SA_RESTART_empty_mask - 65 +65 signal_no_SA_RESTART_empty_mask - 54 +54 dd_main 1325 1369 +44 sigaction_set - 19 +19 dname_enc 373 377 +4 UNSPEC_print 64 66 +2 setsignal 296 294 -2 bb_signals_recursive 95 92 -3 bb_askpass 367 361 -6 inetd_main 1810 1797 -13 rx_main 912 883 -29 sigdelset 32 - -32 __sigdelset 32 - -32 __GI_sigdelset 32 - -32 sighup_handler 84 37 -47 arping_main 1844 1797 -47 fsck_main 1869 1807 -62 run_list 1917 1844 -73 vlock_main 492 409 -83 progressmeter 883 798 -85 handle_incoming_and_exit 2737 2651 -86 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 3/12 up/down: 188/-632) Total: -444 bytes
* less,klogd,syslogd,nc,tcpudp: exit on signal by killing itself, not exit(1)Denis Vlasenko2008-02-241-33/+33
| | | | | *: minor shrink
* dd: fix a bug where we don't report write errorsDenis Vlasenko2007-12-021-19/+22
| | | | | | | | | | | testsuite: small cleanup full_write_or_warn 38 40 +2 write_and_stats 66 67 +1 dd_main 1358 1335 -23 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 3/-23) Total: -20 bytes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko2007-10-011-3/+3
| | | | | 263 bytes saved.
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-2/+2
| | | | | | | | | 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
* dd: use unsigned printf specifier for # of blocksDenis Vlasenko2007-07-301-2/+3
|
* dd: fix newly introduced bug (introduced by me)Denis Vlasenko2007-07-291-1/+1
|
* multiplier suffixes are short, store them directly in struct suffix_multDenis Vlasenko2007-07-271-1/+1
| | | | | | | | | | | | function old new delta xstrtoul_range_sfx 226 217 -9 xstrtoull_range_sfx 291 280 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-20) Total: -20 bytes text data bss dec hex filename 669128 2668 13616 685412 a7564 busybox_old 669108 2668 13616 685392 a7550 busybox_unstripped
* dd: fix bug where we assume count=INT_MAX when count is unspecified;Denis Vlasenko2007-07-271-32/+53
| | | | | | | | | | | | | shrink dd while at it function old new delta dd_main 1453 1368 -85 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-85) Total: -85 bytes text data bss dec hex filename 669216 2668 13616 685500 a75bc busybox_old 669128 2668 13616 685412 a7564 busybox_unstripped
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-12/+11
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* dd: NOEXEC fixDenis Vlasenko2007-04-191-2/+4
| | | | dd: correct wrongly capitalized constant
* dd: fix skip= parse error (spotted by Dirk Clemens <develop@cle-mens.de>)Denis Vlasenko2007-04-191-25/+24
|
* - fix compilation if ENABLE_FEATURE_DD_IBS_OBS is offBernhard Reutner-Fischer2007-04-161-4/+4
|
* - use enum for the OPs as suggested by vda. No obj-code changes.Bernhard Reutner-Fischer2007-04-101-14/+18
|
* audit small applets and mark some of them as NOFORK.Denis Vlasenko2007-04-101-1/+4
| | | | | Put big scary warnings in relevant places.
* add some missed statics on constant objects.Denis Vlasenko2007-04-081-1/+1
| | | | | | | | | | fix few #ifndef ENABLE_xxx # size busybox_old busybox_unstripped text data bss dec hex filename 677152 2920 18208 698280 aa7a8 busybox_old 676420 2920 18208 697548 aa4cc busybox_unstripped
* - remove bss users. Shrinkage while at it. See XXX for further, pre-existing ↵Bernhard Reutner-Fischer2007-04-041-74/+130
| | | | | | | | bugs text data bss dec hex filename 1969 0 32 2001 7d1 dd.o.oorig 1941 0 0 1941 795 dd.o
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* small fixes:Denis Vlasenko2006-11-261-1/+1
| | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
* dd: support >2gb values for seek, skip, countDenis Vlasenko2006-11-251-4/+10
|
* header_verbose_list: stop truncating file size in listingDenis Vlasenko2006-11-241-2/+2
|
* dd: fix bugs: always assumed conv=sync, died on write errorsDenis Vlasenko2006-10-311-50/+69
| | | | w/o perror and statictics. Several small improvements
* ls: cleanup part 1Denis Vlasenko2006-10-281-2/+2
|
* remove bb_printf and the likeDenis Vlasenko2006-10-261-1/+1
|
* correct largefile support, add comments about it.Denis Vlasenko2006-10-081-8/+8
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-6/+6
|
* dd: make it recognize not only 'k' but 'K' too;Denis Vlasenko2006-10-071-14/+17
| | | | make it (partially) CONFIG_LFS-aware
* whitespace cleanupDenis Vlasenko2006-09-171-1/+1
|
* - pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer2006-08-281-63/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-10/+2
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-9/+3
| | | | xlseek and fdlength() for the new mkswap.
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-1/+1
|
* Rob Sullivan cleaned up the longstanding patch from Hideki IWAMOTO to addRob Landley2006-05-161-56/+83
| | | | | | ibs and obs support to dd, and made it configurable. I cleaned it up a bit further and moved conv= into the same config option.
* Patch from Jason Schoon to add optional SIGUSR1 support to dd.Rob Landley2006-05-021-8/+25
|
* - patch from Denis Vlasenko to add and use bb_xopen3()Bernhard Reutner-Fischer2006-04-131-17/+2
|
* avoid signed<->unsigned warning"Vladimir N. Oleynik"2006-01-311-2/+2
|
* Avoid symbol naming conflict with libmEric Andersen2004-01-301-4/+4
|
* last_patch89 from vodz:Eric Andersen2003-06-201-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
* Major coreutils update.Manuel Novoa III2003-03-191-23/+24
|
* StyleGlenn L McGrath2002-11-281-21/+46
|
* Woops, forgot they printout applet name as well....Glenn L McGrath2002-11-281-2/+2
|
* Use error_msg instead of fprintf(stderrGlenn L McGrath2002-11-281-2/+2
|
* Support noerror optionEric Andersen2002-04-271-3/+16
|
* * fileutils/dd.c (dd_main): Ignore ftruncate error if the output is not aMatt Kraai2002-02-051-2/+8
| | | | file or directory.