lib/closein.c


Log

Author Commit Date CI Message
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible 70427758 2007-08-20T22:09:08 Optimization: no need to flush stdin if we can determine quickly that stdin's input buffer is empty.
Eric Blake 5c323b50 2007-04-27T17:14:39 Fix closein for mingw. * modules/closein-tests: Add tests for closein. * tests/test-closein.c: New file. * tests/test-closein.sh: Likewise. * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit. * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
Eric Blake 88a56a14 2007-04-12T20:51:24 Work around glibc's failure to flush stdin on fclose. * lib/closein.c (close_stdin): Flush stdin before closing.
Eric Blake cc133e18 2007-04-12T16:11:40 Work around glibc's failure to reset seekable stdin on exit. * modules/closein: New module. * lib/closein.c: New file. * lib/closein.h: Likewise. * m4/closein.m4: Likewise. * MODULES.html.sh (File stream based Input/Output): Document it.