projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe15457
)
(tee): Use SET_BINARY and SET_BINARY2.
author
Jim Meyering
<jim@meyering.net>
Tue, 1 Aug 2000 07:10:57 +0000
(07:10 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 1 Aug 2000 07:10:57 +0000
(07:10 +0000)
From Prashant TR.
src/tee.c
patch
|
blob
|
history
diff --git
a/src/tee.c
b/src/tee.c
index 2d86fcb80af55685daea2011460c09105644f45f..43fec1e61eca81fc291eae2ce2f59869ace7f04c 100644
(file)
--- a/
src/tee.c
+++ b/
src/tee.c
@@
-175,6
+175,8
@@
tee (int nfiles, const char **files)
for (i = nfiles; i >= 1; i--)
files[i] = files[i - 1];
+ SET_BINARY2 (0, 1);
+
/* In the array of NFILES + 1 descriptors, make
the first one correspond to standard output. */
descriptors[0] = stdout;
@@
-192,6
+194,7
@@
tee (int nfiles, const char **files)
else
{
SETVBUF (descriptors[i], NULL, _IONBF, 0);
+ SET_BINARY (fileno (descriptors[i]));
}
}