public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* setlinebuf
@ 2002-05-06 15:17 Chris January
  2002-05-06 16:57 ` setlinebuf Christopher Faylor
  0 siblings, 1 reply; 7+ messages in thread
From: Chris January @ 2002-05-06 15:17 UTC (permalink / raw)
  To: cygwin

The setlinebuf function is declared in stdio.h, but is not exported in
cygwin1.dll.

Chris

SYNOPSIS
#include <stdio.h>
int setlinebuf(FILE *stream);



DESCRIPTION
The setlinebuf() function lets the program control the buffer of a given
stream. This function may be used after the stream pointed to by stream is
associated with an open file, but before any other operation is performed on
the stream. Except that it returns no value, the setlinebuf() function is
equivalent to the setvbuf() function invoked with the values (char *)NULL
for buffer, _IONBF for mode and zero for size.



PARAMETERS
stream
Points to a FILE structure.



RETURN VALUES
If successful, setlinebuf() returns 0. On failure, it returns non-zero if an
invalid value is given for mode or if the request cannot be honored.



CONFORMANCE
4.4BSD.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* setlinebuf
@ 2001-11-11  8:26 Gareth Pearce
  2001-11-11  8:26 ` setlinebuf Pavel Tsekov
  0 siblings, 1 reply; 7+ messages in thread
From: Gareth Pearce @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

Hi

umm trying to compile a few things and got setlinebuf not defined a few
times.  I poked arround the web abit and found that its a BSD extension on
stdio (provided in glibc as well)- which is used in a few places.  It is
also incredibly easy to implement as its just a 1 line call to the standard
setvbuf - obviously its easy to change code that uses it - but having more
things compile out of the box is seems like a good idea...
Since its so trivial I would like to add it - however I was unsure as to
what the appropriate path to getting something added is when it will be in
the newlib directory.

Anyone want to point me in the right direction ... prehaps I should be
heading to a newlib mailinglist ?

Regards,
Gareth Pearce

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-05-07 21:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-06 15:17 setlinebuf Chris January
2002-05-06 16:57 ` setlinebuf Christopher Faylor
2002-05-06 21:45   ` setlinebuf Gareth Pearce
2002-05-07  7:43     ` setlinebuf Christopher Faylor
2002-05-07 15:00       ` setlinebuf Gareth Pearce
  -- strict thread matches above, loose matches on Subject: below --
2001-11-11  8:26 setlinebuf Gareth Pearce
2001-11-11  8:26 ` setlinebuf Pavel Tsekov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).