delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/06/13/05:34:18

Date: Thu, 13 Jun 1996 12:30:32 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: Printer error
Message-Id: <Pine.SUN.3.91.960613122834.8738D-100000@is>
Mime-Version: 1.0

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;

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019