summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fpurge.c
Commit message (Collapse)AuthorAgeFilesLines
* * libc/stdio/local.h (_newlib_flockfile_start): New macro toCorinna Vinschen2012-05-301-3/+3
| | | | | | | | | | | | | | | secure stream related critical section against thread cancellation. (_newlib_flockfile_exit): Ditto. (_newlib_sfp_lock_end): Ditto. (_newlib_sfp_lock_start): Ditto for the list of streams. (_newlib_sfp_lock_exit): Ditto. (_newlib_sfp_lock_end): Ditto. Use aforementioned macros in place of _flockfile/_funlockfile and __sfp_lock_acquire/__sfp_lock_release throughout the code. * libc/stdio/fclose.c: Explicitely disable and re-enable thread cancellation. Explain why. * libc/stdio/freopen.c: Ditto. * libc/stdio64/freopen64.c: Ditto.
* * libc/include/stdio_ext.h: New header.Yaakov Selkowitz2011-05-191-0/+23
| | | | * libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.
* Add fpurge.Eric Blake2009-07-031-0/+90
* 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.