Mail Archives: djgpp-workers/1998/07/12/13:04:06
I was told that `setvbuf' in the alpha release causes strange behavior in
functions that read files. Here's a patch:
*** src/libc/ansi/stdio/setvbuf.c~0 Sat Mar 23 01:20:18 1996
--- src/libc/ansi/stdio/setvbuf.c Fri Jul 10 18:47:18 1998
***************
*** 23,28 ****
--- 23,30 ----
return -1;
mine = 1;
}
+ f->_fillsize = len; /* make it read in `len'-byte chunks */
+ /* FALLTHROUGH */
case _IONBF:
if (f->_base != NULL && f->_flag & _IOMYBUF)
free(f->_base);
- Raw text -