This is the mail archive of the newlib@sourceware.org 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]

Re: add fpurge


On Jun 27 12:49, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Bash would like to use fpurge, as part of making file redirections to
> builtin operators work correctly.  It is not (yet) standardized, but does
> provide some useful semantics.  BSD has fpurge in <stdio.h>, Linux has
> __fpurge (same behavior, but no return value) in <stdio_ext.h>.
> 
> OK to commit?  I wrote this implementation from scratch using fflush.c as
> a reference, then tested it in cygwin, and verified that it passes the
> gnulib unit test for fpurge (some BSD implementations fail the gnulib unit
> test, because they leave read-write FILEs in an inconsistent state,
> otherwise I might have just copied a BSD version).
> 
> I'm not sure why my rebuilt Makefile.in diff is larger than I expected; I
> used autoconf 2.59 and automake 1.9.6 as directed in README.
> 
> 2009-06-27  Eric Blake  <ebb9@byu.net>
> 
> 	Add fpurge.
> 	* stdio/fpurge.c (fpurge, _fpurge_r): New file.
> 	* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
> 	Build it.
> 	* libc/stdio/Makefile.in: Regenerated.
> 	* libc/include/stdio.h (fpurge, _fpurge_r): New declarations.

Since you also created the documentation, isn't the small patch to
libc/stdio/stdio.tex missing?


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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