From ce1eb6bba042d759a2fd8f57dfc01fcc8c478b57 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 3 Jul 2009 11:58:04 +0000 Subject: Add fpurge. * libc/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. * libc/stdio/stdio.tex: Build documentation. --- newlib/libc/stdio/stdio.tex | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/libc/stdio/stdio.tex') diff --git a/newlib/libc/stdio/stdio.tex b/newlib/libc/stdio/stdio.tex index 28feffbcc..2088d74ed 100644 --- a/newlib/libc/stdio/stdio.tex +++ b/newlib/libc/stdio/stdio.tex @@ -42,6 +42,7 @@ structure. * fmemopen:: Open a stream around a fixed-length buffer * fopen:: Open a file * fopencookie:: Open a stream with custom callbacks +* fpurge:: Discard all pending I/O on a stream * fputc:: Write a character on a stream or file * fputs:: Write a character string in a file or stream * fputwc:: Write a wide character to a file or stream @@ -152,6 +153,9 @@ structure. @page @include stdio/fopencookie.def +@page +@include stdio/fpurge.def + @page @include stdio/fputc.def -- cgit v1.2.3