aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tee.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* typo fixDenys Vlasenko2010-10-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Avoid side effects in putc(), which may be implemented as a macroDan Fandrich2010-09-091-4/+4
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.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>
* ash,hush: add TODO for rare build failureDenis Vlasenko2008-11-251-1/+0
| | | | | *: remove some redundant includes
* tee: fix infinite looping on open error (echo asd | tee "")Denis Vlasenko2008-07-161-1/+3
|
* tee: "-" is a name for stdout, handle it that wayDenis Vlasenko2008-07-151-4/+7
|
* libbb: introduce bb_signals and bb_signals_recursive,Denis Vlasenko2008-02-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | which sets same handler for many signals. sig_catch is nuked (bb_signals_recursive is more descriptive name). *: use them as appropriate. function old new delta bb_signals_recursive - 95 +95 bb_signals - 52 +52 run_command 258 273 +15 svlogd_main 1368 1377 +9 runsv_main 1746 1752 +6 runsvdir_main 1643 1646 +3 UNSPEC_print 64 66 +2 time_main 1128 1127 -1 ... resize_main 246 210 -36 sig_catch 63 - -63 set_fatal_sighandler 85 14 -71 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 5/24 up/down: 182/-548) Total: -366 bytes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-1/+2
|
* 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
* 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
* - reuse retval for the option handling.Bernhard Reutner-Fischer2007-01-201-5/+5
| | | | - TODO add tee, readahead and splice support to uClibc and use it in busybox!
* tee: fix bug: argv[-1] is a no-no!Denis Vlasenko2006-11-251-38/+38
| | | | | bb_full_fd_action: optimize die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error"
* rename functions to more understandable namesDenis Vlasenko2006-10-261-1/+1
|
* remove bb_printf and the likeDenis Vlasenko2006-10-261-3/+3
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* - pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer2006-08-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+1
| | | | | | | | | | 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.)
* Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"2006-07-121-14/+1
|
* common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"2005-10-151-5/+1
|
* If read were to return with an error, bad things would happen. Fix it.Manuel Novoa III2004-05-261-2/+6
| | | | Also, make sure read errors are reflected in the applet exit code.
* Use STDIN_FILENO rather than '0'Eric Andersen2004-05-261-1/+1
|
* Rob Landley writes:Eric Andersen2004-05-261-1/+1
| | | | | | | | Run this test, against both busybox and a non-busybox version of "tee". while true; do i=$[$i+1]; echo "hello $i"; sleep 1; done | ./busybox tee Now run the busybox one again with the following small patch applied:
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* Disable any buffering to stdoutEric Andersen2003-10-221-0/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-33/+82
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-2/+1
| | | | -Erik
* Use wfopen instead of fopen & error_msg, saves 64 bytesGlenn L McGrath2001-10-051-2/+1
|
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-1/+1
| | | | | a release. Update the website with release details. -Erik
* Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai2000-12-181-1/+1
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-1/+1
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Rewritten by mistake.Matt Kraai2000-08-281-88/+32
|
* Extract usage information into a separate file.Matt Kraai2000-07-161-13/+1
|
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-2/+2
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-2/+2
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-121-3/+5
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* Upates to include copyright 2000 to everythingErik Andersen2000-04-131-2/+2
| | | | -Erik
* My latest ramblings.Erik Andersen2000-03-231-2/+4
| | | | -Erik
* + changed a static array (FileList) into a dynamically allocated oneJohn Beppu2000-03-081-2/+9
| | | | in an attempt to make the .bss section smaller.
* Some formatting updates (ran the code through indent)Erik Andersen2000-02-081-65/+64
| | | | -Erik
* A few minor updates. ;-)Erik Andersen2000-02-071-1/+1
| | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik
* Added poweroff (and adjusted init to use it). Inlined functionEric Andersen1999-12-101-36/+24
| | | | | calls to code only called once in tee. Made BB_KLOGD and option. -Erik
* changed tee_usage from being a function to a char[]John Beppu1999-12-101-20/+11
| | | | that gets used be usage();
* Fix beppu's email address.Eric Andersen1999-12-101-2/+2
| | | | | BTW, John, go to sleep. It is late. :) -Erik
* Implemented tee(1).John Beppu1999-12-101-0/+147