summaryrefslogtreecommitdiff
path: root/coreutils/tail.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tail: free tailbuf upon cleaning upAlexander Shishkin2010-10-211-0/+1
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> 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>
* *: better string sharingDenys Vlasenko2010-06-021-4/+4
| | | | | | | | text data bss dec hex filename 849427 441 7556 857424 d1550 busybox_old 849355 441 7556 857352 d1508 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tailk: fix error detected by testsuiteDenys Vlasenko2010-03-121-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more C standard compat fixes from Dan FandrichDenys Vlasenko2009-09-061-1/+1
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: read only a portion of a file if it's huge. closes bug 551Denys Vlasenko2009-08-101-16/+33
| | | | | | | | function old new delta tail_main 1494 1526 +32 tail_read 125 129 +4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: fix "tail +N file_shorter_than_N"Denys Vlasenko2009-08-091-6/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: implement -FEric Lammerts2009-07-221-20/+65
| | | | | | | | function old new delta tail_main 1190 1494 +304 Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-211-3/+3
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* tail: fix tail +N syntax not working. Closes bug 221.Denis Vlasenko2009-03-271-1/+1
|
* more -Wall warning fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-131-4/+5
| | | | | | | | | | | | | 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
* tail: fix fallout from tail -c optimizationDenis Vlasenko2008-03-231-13/+9
|
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Denis Vlasenko2008-03-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta getopt32 1370 1385 +15 sulogin_main 490 494 +4 realpath_main 84 86 +2 sleep_main 76 77 +1 mt_main 256 257 +1 printenv_main 75 74 -1 fdformat_main 546 545 -1 usleep_main 44 42 -2 setlogcons_main 77 75 -2 ed_main 2654 2649 -5 deallocvt_main 69 64 -5 addgroup_main 373 368 -5 mkfs_minix_main 2989 2982 -7 tail_main 1221 1213 -8 sv_main 1254 1241 -13 du_main 348 328 -20 tftp_main 325 302 -23 split_main 581 558 -23 nc_main 1000 977 -23 diff_main 891 868 -23 arping_main 1797 1770 -27 ls_main 893 847 -46 od_main 2797 2750 -47 readprofile_main 1944 1895 -49 tcpudpsvd_main 1973 1922 -51 udhcpc_main 2590 2513 -77 grep_main 824 722 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/22 up/down: 23/-560) Total: -537 bytes text data bss dec hex filename 796973 658 7428 805059 c48c3 busybox_old 796479 662 7420 804561 c46d1 busybox_unstripped
* *: shrink by using [f]open_or_warn_stdin where appropriateDenis Vlasenko2008-03-171-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta lsattr_main 62 143 +81 open_or_warn_stdin - 36 +36 fclose_if_not_stdin 20 47 +27 xfopen_stdin - 20 +20 tac_main 336 356 +20 cksum_main 249 259 +10 bb_argv_dash - 8 +8 su_main 448 455 +7 cmp_main 630 633 +3 passwd_main 1072 1074 +2 uudecode_main 317 315 -2 text_yank 110 108 -2 handle_incoming_and_exit 2653 2651 -2 flags 5 1 -4 write_leases 235 230 -5 fopen_or_warn_stdin 48 42 -6 fold_main 648 642 -6 static.argv_dash 8 - -8 sum_main 142 128 -14 tail_main 1237 1221 -16 sed_main 711 695 -16 cmp_xfopen_input 17 - -17 bb_cat 113 96 -17 catv_main 328 306 -22 strings_main 457 434 -23 hash_file 298 274 -24 sum_file 353 325 -28 sort_main 904 859 -45 expand_main 736 686 -50 cut_main 1116 1065 -51 md5_sha1_sum_main 549 493 -56 lsattr_args 90 - -90 read_stduu 408 255 -153 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 7/20 up/down: 214/-657) Total: -443 bytes text data bss dec hex filename 797417 658 7428 805503 c4a7f busybox_old 796973 658 7428 805059 c48c3 busybox_unstripped
* tail: fix "tail -c 20 /dev/huge_disk" (was taking ages)Denis Vlasenko2008-02-191-37/+42
| | | | | | tail: a few variables renamed wc: tiny optimization.
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* tail: sizeof(buf) is sizeof(char*)! must be BUFSIZDenis Vlasenko2007-10-051-2/+2
|
* tail: work correctly on /proc files (Kazuo TAKADA <kztakada@sm.sony.co.jp>)Denis Vlasenko2007-10-021-7/+14
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | 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
* 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
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* tail: fix SEGV on "tail -N"Denis Vlasenko2007-05-081-5/+11
| | | | | config system: clarify PREFER_APPLETS/SH_STANDALONE effects in help text
* style fixes, no code changesDenis Vlasenko2007-04-161-1/+2
|
* - minor shrinkageBernhard Reutner-Fischer2007-04-041-26/+21
| | | | | | text data bss dec hex filename 1431 0 4 1435 59b tail.o.orig 1396 0 0 1396 574 tail.o
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #1Denis Vlasenko2007-01-291-1/+1
|
* - remove nested function. Saves ~30 bytes.Bernhard Reutner-Fischer2007-01-241-11/+11
|
* - small size tweakBernhard Reutner-Fischer2007-01-201-1/+1
|
* Remove networking/libiproute/linux/pkt_sched.hDenis Vlasenko2007-01-021-1/+1
| | | | | (and networking/libiproute/linux/ since it become empty). Style fixes.
* tail: -50 text bytesDenis Vlasenko2006-12-221-88/+48
|
* convert "negaite" config option into reversed (INCLUDE_SUSv2)Denis Vlasenko2006-12-221-2/+2
|
* tail: fix tail +NDenis Vlasenko2006-12-211-11/+9
|
* remove casts from xmalloc()Denis Vlasenko2006-12-191-1/+1
|
* A bunch of defined(__GLIBC__) added. static-linking warning expandedDenis Vlasenko2006-12-181-7/+0
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-2/+2
|
* Provide our own isdigit macro. saves more than 400 bytes.Denis Vlasenko2006-11-271-5/+4
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-2/+2
|
* - pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer2006-08-281-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-2/+1
| | | | xlseek and fdlength() for the new mkswap.
* - use bb_msg_{read,write}_error where appropriate.Bernhard Reutner-Fischer2006-06-031-1/+1
| | | | | | text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
* Move SUSv2 obsolete feature disabling to debug menu, invert meaning ofRob Landley2006-01-301-21/+4
| | | | | | | | symbol (switched on to remove now: test your apps to make sure they _don't_ do this, because as some point we should just yank it), fixup head/tail/fold. Also tweak "make allyesconfig" so anything starting with CONFIG_DEBUG gets left switched off. Possibly other things we want to put in the debug menu?
* - Stephane Billiart writes:Bernhard Reutner-Fischer2005-12-151-2/+2
| | | | | | Fix the compilation of head and tail. thanks!
* - wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warningBernhard Reutner-Fischer2005-12-131-2/+4
| | | | about unused label.
* Add build options to control SuS compatability, allows numeric Glenn L McGrath2005-12-111-0/+2
| | | | | option handling to be disabled. Defaults to enabled, so no changes in default behaviour
* Very minor tweak to tail.Rob Landley2005-08-131-4/+1
|
* remove unused variable ret as reported by apgo in Bug 350 and touchup syntax ↵Mike Frysinger2005-07-261-8/+5
| | | | along the way
* applying fix for:Paul Fox2005-07-201-0/+12
| | | | | | 0000265: tail -f should keep following files even if they were truncated
* Manuel points out that if printf needs a flush to act like dprintf, the resultRob Landley2005-05-071-2/+1
| | | | | is bigger. Revert last patch.