Date: Thu, 13 Jun 1996 12:30:32 +0200 (IST) From: Eli Zaretskii To: "Alexander V. Lukyanov" Cc: djgpp-workers AT delorie DOT com Subject: Re: Printer error Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Here are some more patches to make the buffering bits disjoint: *** src/libc/ansi/stdio/flsbuf.c~1 Wed Jun 12 13:44:44 1996 --- src/libc/ansi/stdio/flsbuf.c Thu Jun 13 10:34:00 1996 *************** _flsbuf(int c, FILE *f) *** 28,40 **** --- 28,46 ---- { size = _go32_info_block.size_of_transfer_buffer; if ((f->_base = base = malloc (size)) == NULL) + { f->_flag |= _IONBF; + f->_flag &= ~(_IOLBF | _IOFBF); + } else { f->_flag |= _IOMYBUF; f->_bufsiz = size; if (f == stdout && isatty (fileno (stdout))) + { f->_flag |= _IOLBF; + f->_flag &= ~(_IONBF | _IOFBF); + } else rn = n = 0; *** src/libc/ansi/stdio/filbuf.c~0 Fri Jun 23 09:49:38 1995 --- src/libc/ansi/stdio/filbuf.c Thu Jun 13 10:36:16 1996 *************** _filbuf(FILE *f) *** 30,35 **** --- 30,36 ---- size = _go32_info_block.size_of_transfer_buffer; if ((f->_base = malloc(size)) == NULL) { f->_flag |= _IONBF; + f->_flag &= ~(_IOFBF|_IOLBF); goto tryagain; } f->_flag |= _IOMYBUF;