view modules/tmpfile-safer @ 14730:f0a9a2cd267c

fclose: preserve fflush errors Caught by gcc -Werror=unused-but-set-variable. * lib/fclose.c (rpl_fclose): Don't lose fflush errors. Reported by Jim Meyering. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 11 May 2011 11:35:06 -0600
parents 18b5c404aa04
children bd3dbc3c91b9
line wrap: on
line source

Description:
tmpfile function that avoids clobbering std{in,out,err}.

Files:
lib/stdio--.h
lib/stdio-safer.h
lib/tmpfile-safer.c
m4/stdio-safer.m4

Depends-on:
binary-io
tmpfile
unistd-safer

configure.ac:
gl_TMPFILE_SAFER
gl_MODULE_INDICATOR([tmpfile-safer])

Makefile.am:

Include:
"stdio-safer.h"

License:
GPL

Maintainer:
Paul Eggert, Jim Meyering