www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/07/12/13:04:06

Date: Sun, 12 Jul 1998 20:02:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp-workers AT delorie DOT com, Kbwms AT aol DOT com
Subject: Bug in setvbuf in alpha 980628
Message-ID: <Pine.SUN.3.91.980712200011.27114h-100000@is>
MIME-Version: 1.0

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 -


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