delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/16/15:46:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <200008161941.AA01020@ha.bekkoame.ne.jp>
Date: Thu, 17 Aug 2000 04:41:29 +0900
To: mingw32 AT egroups DOT com, gcc AT gcc DOT gnu DOT org, cygwin AT sourceware DOT cygnus DOT com
Subject: setvbuf bug (MINGW32)
From: "S.Yoshida" <vzy03312 AT ha DOT bekkoame DOT ne DOT jp>
X-Favorites: =?ISO-2022-JP?B?GyRCNWMkLztSJEglXSVqJTchPCRLJE8+ISRGGyhK?=
=?ISO-2022-JP?B?GyRCJEwbKEI=?=
X-BGM: U2-EXIT
MIME-Version: 1.0
X-Mailer: AL-Mail32 Version 1.11

good news.


#if 0 /* from mingw using crtdll.dll */

/*
 * The three possible buffering mode (nMode) values for setvbuf.
 * NOTE: _IOFBF works, but _IOLBF seems to work like unbuffered...
 * maybe I'm testing it wrong?
 */

#define	_IOFBF	0	/* fully buffered */
#define	_IOLBF	1	/* line buffered */
#define	_IONBF	2	/* unbuffered */

#else /* from lccwin32 using crtdll.dll */

#define _IOFBF		0x0000
#define _IOLBF		0x0040
#define _IONBF		0x0004
#endif

 /*
  * I found these problems in following case
  */

void autoflush( FILE *fp )
{
    setvbuf( fp, NULL, _IONBF, 0 );
}

void gui_emulate_stderr( void )
{
    CreatePipe .....

    autoflush( w_pipout );
    autoflush( w_piperr );
}


Regards,
S.Yoshida vzy03312 AT ha DOT bekkoame DOT ne DOT jp

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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