This is the mail archive of the
mailing list for the Cygwin project.
Re: Link is breaking for setbuffer()
- To: farshad mahjoubi <firstname.lastname@example.org>
- Subject: Re: Link is breaking for setbuffer()
- From: Mumit Khan <email@example.com.EDU>
- Date: Thu, 15 Jul 1999 23:31:45 -0500 (CDT)
- cc: firstname.lastname@example.org
On Thu, 15 Jul 1999, farshad mahjoubi wrote:
> >I am trying to port our Application to WinNT. My link is breaking with
> >this ERROR that complaines about function setbuffer().
For good reason -- it's non-standard and the runtime library does not
> >Setbuffer() is being called from a C Source code and I see that it is
> >been declared in stdio.h
The prototype is a mistake/bug in the header. It's not implemented in
the runtime library.
> >Does anyone know which library in /cygnus/cygwin contains the setbbuffer()
> >why the standard libraries I am linking (which
> >_should_ contain the setbuffer function) don't do so... ?
Because it's non-standard. Please at least look up the standard (ANSI
and POSIX) before suggesting why a standard library does not provide
Here's a trivial implementation straight out of a Linux man page using
ANSI standard setvbuf:
#define setbuffer(stream,buf,size) \
setvbuf((stream), (buf), (buf) ? _IOFBF : _IONBF, (size))
I'll send a patch to Cygwin team.
Want to unsubscribe from this list?
Send a message to email@example.com