This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] - add setbuffer/setlinebuf functions


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

Attachment: setbuffer.patch1
Description: Binary data

Attachment: setbuffer.patch2
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]