public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9340345
)
fixed problems with flushbuf
author
ceriel
<none@none>
Fri, 22 Feb 1991 16:45:47 +0000
(16:45 +0000)
committer
ceriel
<none@none>
Fri, 22 Feb 1991 16:45:47 +0000
(16:45 +0000)
lang/cem/libcc.ansi/stdio/flushbuf.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/stdio/flushbuf.c
b/lang/cem/libcc.ansi/stdio/flushbuf.c
index
9670ece
..
f7d453b
100644
(file)
--- a/
lang/cem/libcc.ansi/stdio/flushbuf.c
+++ b/
lang/cem/libcc.ansi/stdio/flushbuf.c
@@
-31,7
+31,7
@@
__flushbuf(int c, FILE * stream)
(unsigned char *) malloc(BUFSIZ))) {
stream->_flags |= _IONBF;
} else {
- stream->_flags |= _IOLBF;
+ stream->_flags |= _IOLBF
|_IOMYBUF
;
stream->_bufsiz = BUFSIZ;
stream->_count = -1;
}
@@
-44,6
+44,7
@@
__flushbuf(int c, FILE * stream)
stream->_bufsiz = BUFSIZ;
if (!io_testflag(stream, _IOLBF))
stream->_count = BUFSIZ - 1;
+ else stream->_count = -1;
}
}
stream->_ptr = stream->_buf;