Hash :
a690f1be
Author :
Date :
2022-01-03T16:17:18
fopen-gnu: Allow use as dependency from test modules. * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Set REPLACE_FOPEN_FOR_FOPEN_GNU instead of REPLACE_FOPEN. * m4/stdio_h.m4 (gl_STDIO_H_REQUIRE_DEFAULTS): Initialize the fopen-gnu module indicator. (gl_STDIO_H_DEFAULTS): Initialize REPLACE_FOPEN_FOR_FOPEN_GNU. * modules/stdio (Makefile.am): Substitute GNULIB_FOPEN_GNU, REPLACE_FOPEN_FOR_FOPEN_GNU. * modules/fopen-gnu (Depends-on): Add more dependencies. (configure.ac): Test REPLACE_FOPEN_FOR_FOPEN_GNU instead of REPLACE_FOPEN. * lib/stdio.in.h (fopen): Test REPLACE_FOPEN, REPLACE_FOPEN_FOR_FOPEN_GNU, and the respective module indicators instead of just REPLACE_FOPEN.
Description:
fopen() function: open a stream to a file, with GNU extensions.
Files:
lib/fopen.c
Depends-on:
fopen
open [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
fcntl-h [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
stdbool [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
unistd [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
close [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
fstat [test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1]
configure.ac:
gl_FUNC_FOPEN_GNU
if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
AC_LIBOBJ([fopen])
gl_PREREQ_FOPEN
fi
gl_MODULE_INDICATOR([fopen-gnu])
Makefile.am:
Include:
<stdio.h>
License:
LGPLv2+
Maintainer:
all