[PATCH] - add setbuffer/setlinebuf functions

Gareth Pearce tilps@hotmail.com
Sat Oct 13 21:14:00 GMT 2001


Hi

I noticed that these 2 functions were not part of the newlib library - even
though they are defined in the headers.
Attached is 2 patches one for a new file setbuffer.c in libc/stdio/ and the
other for modifications to the makefiles in that directory.

This is my first go at something like this - so it wouldnt supprise me if I
have something amiss, feel free to tell me what I need to do to correct
this, or if I am out of place trying to get this added.

If this goes in, I will submit another patch for the cygwin.din to export
these if that is needed.

ChangeLog entry

2001-11-17  Gareth Pearce  <tilps@hotmail.com>

        * libc/stdio/Makefile.am: Modify to add setbuffer.c
        * libc/stdio/Makefile.in: Modify to add setbuffer.c
        * libc/stdio/setbuffer.c: New file to add support for
setbuffer/setlinebuf
        (setbuffer): New function - calls setvbuf
        (setlinebuf): New function - calls setvbuf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setbuffer.patch1
Type: application/octet-stream
Size: 1900 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20011013/a3b6135d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setbuffer.patch2
Type: application/octet-stream
Size: 3715 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20011013/a3b6135d/attachment-0001.obj>


More information about the Cygwin-patches mailing list