diff options
author | Bruno Haible <bruno@clisp.org> | 2020-05-24 20:38:53 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-05-24 21:20:45 +0200 |
commit | 10cb4be2a2114dd6fff347acc9841d7904636adf (patch) | |
tree | 27cd0e13406412448ba2e4097d89780f66bf889a /modules/fopen-gnu | |
parent | ed8d8e847ab8c26165eaf8b446aee78c493dfce3 (diff) | |
download | gnulib-10cb4be2a2114dd6fff347acc9841d7904636adf.tar.gz |
fopen-gnu: New module.
Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
* lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
mode contains an 'x' or 'e' flag, use open() followed by fdopen().
* m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
* modules/fopen-gnu: New file.
* doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
Diffstat (limited to 'modules/fopen-gnu')
-rw-r--r-- | modules/fopen-gnu | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/fopen-gnu b/modules/fopen-gnu new file mode 100644 index 0000000000..f0f20548ee --- /dev/null +++ b/modules/fopen-gnu @@ -0,0 +1,27 @@ +Description: +fopen() function: open a stream to a file, with GNU extensions. + +Files: + +Depends-on: +fopen +open [test $REPLACE_FOPEN = 1] + +configure.ac: +gl_FUNC_FOPEN_GNU +if test $REPLACE_FOPEN = 1; then + AC_LIBOBJ([fopen]) + gl_PREREQ_FOPEN +fi +gl_MODULE_INDICATOR([fopen-gnu]) + +Makefile.am: + +Include: +<stdio.h> + +License: +LGPLv2+ + +Maintainer: +all |