view modules/freopen-safer @ 40179:6823a10c9418

Add script for determining the set of symbols to export from a library. * build-aux/declared.sh: New file, from GNU libunistring. * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries): Mention it.
author Bruno Haible <bruno@clisp.org>
date Sun, 03 Feb 2019 21:44:16 +0100
parents a9daeaa8d991
children
line wrap: on
line source

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

Files:
lib/stdio--.h
lib/stdio-safer.h
lib/freopen-safer.c

Depends-on:
dup2
freopen
open
stdbool

configure.ac:
gl_MODULE_INDICATOR([freopen-safer])

Makefile.am:
lib_SOURCES += freopen-safer.c

Include:
"stdio-safer.h"

License:
GPL

Maintainer:
Eric Blake