diff options
author | Denis Vlasenko | 2007-09-27 10:20:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-09-27 10:20:47 +0000 |
commit | 4daad9004d8f07991516970a1cbd77756fae7041 (patch) | |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /coreutils/tee.c | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff) | |
download | busybox-4daad9004d8f07991516970a1cbd77756fae7041.zip busybox-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r-- | coreutils/tee.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index d253028..8313258 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c @@ -22,6 +22,7 @@ int tee_main(int argc, char **argv) char **names; char **np; char retval; +//TODO: make unconditional #if ENABLE_FEATURE_TEE_USE_BLOCK_IO ssize_t c; # define buf bb_common_bufsiz1 @@ -62,7 +63,7 @@ int tee_main(int argc, char **argv) /* names[0] will be filled later */ #if ENABLE_FEATURE_TEE_USE_BLOCK_IO - while ((c = safe_read(STDIN_FILENO, buf, BUFSIZ)) > 0) { + while ((c = safe_read(STDIN_FILENO, buf, sizeof(buf))) > 0) { fp = files; do fwrite(buf, 1, c, *fp++); |