This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: add fpurge
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Sun, 28 Jun 2009 13:51:13 +0200
- Subject: Re: add fpurge
- References: <4A4669B6.2070801@byu.net>
- Reply-to: newlib at sourceware dot org
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