aboutsummaryrefslogtreecommitdiff
path: root/gunzip.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-13 06:43:03 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-13 06:43:03 +0000
commit6b6a65414f52e9135a5e3168124b14fcd961020a (patch)
treec00537b1d8474c837312818bc48f6b822e8fb4d1 /gunzip.c
parent7baffca714b6264cd5cfd05c314a59aeea938f8f (diff)
downloadbusybox-w32-6b6a65414f52e9135a5e3168124b14fcd961020a.tar.gz
busybox-w32-6b6a65414f52e9135a5e3168124b14fcd961020a.tar.bz2
busybox-w32-6b6a65414f52e9135a5e3168124b14fcd961020a.zip
Move setvbuf calls from gz_open() to calling functions, setvbuf is only supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt.
git-svn-id: svn://busybox.net/trunk/busybox@3087 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'gunzip.c')
-rw-r--r--gunzip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gunzip.c b/gunzip.c
index c4e84260b..430bc630e 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -118,6 +118,9 @@ extern int gunzip_main(int argc, char **argv)
118 /* Open input file */ 118 /* Open input file */
119 in_file = xfopen(if_name, "r"); 119 in_file = xfopen(if_name, "r");
120 120
121 /* set the buffer size */
122 setvbuf(in_file, NULL, _IOFBF, 0x8000);
123
121 /* Get the time stamp on the input file. */ 124 /* Get the time stamp on the input file. */
122 if (stat(if_name, &stat_buf) < 0) { 125 if (stat(if_name, &stat_buf) < 0) {
123 error_msg_and_die("Couldn't stat file %s", if_name); 126 error_msg_and_die("Couldn't stat file %s", if_name);