public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc13764
)
fixed freopen() bug by deleting some code
author
eck
<none@none>
Tue, 28 Aug 1990 13:44:48 +0000
(13:44 +0000)
committer
eck
<none@none>
Tue, 28 Aug 1990 13:44:48 +0000
(13:44 +0000)
lang/cem/libcc.ansi/stdio/freopen.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/stdio/freopen.c
b/lang/cem/libcc.ansi/stdio/freopen.c
index
3296536
..
b7b5739
100644
(file)
--- a/
lang/cem/libcc.ansi/stdio/freopen.c
+++ b/
lang/cem/libcc.ansi/stdio/freopen.c
@@
-90,11
+90,6
@@
freopen(const char *name, const char *mode, FILE *stream)
}
stream->_count = 0;
- if (stream->_buf && !(flags & _IONBF) && (flags & _IOWRITE))
- if (flags & _IOLBF)
- stream->_count = 0;
- else stream->_count = stream->_bufsiz;
-
stream->_fd = fd;
stream->_flags = flags;
return stream;