summaryrefslogtreecommitdiff
path: root/modules/fdopen
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-21 21:16:45 +0200
committerBruno Haible <bruno@clisp.org>2011-09-21 21:16:45 +0200
commit5f12d9389f0d0597c4996dfb15c0a5c64808774a (patch)
treecb2b234c5a677ed042a3f9513b7475a6c565d242 /modules/fdopen
parent03f0d3e22b969990f3a55f2540a9f82680028602 (diff)
downloadgnulib-5f12d9389f0d0597c4996dfb15c0a5c64808774a.tar.gz
New module 'fdopen'.
* lib/stdio.in.h (fdopen): New declaration. * lib/fdopen.c: New file. * m4/fdopen.m4: New file. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN, REPLACE_FDOPEN. * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN, REPLACE_FDOPEN. * modules/fdopen: New file. * modules/stdio-tests (Depends-on): Remove fdopen-tests. * tests/test-stdio-c++.cc: Check signature of fdopen. * doc/posix-functions/fdopen.texi: Mention the new module.
Diffstat (limited to 'modules/fdopen')
-rw-r--r--modules/fdopen28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/fdopen b/modules/fdopen
new file mode 100644
index 0000000000..4054b054da
--- /dev/null
+++ b/modules/fdopen
@@ -0,0 +1,28 @@
+Description:
+fdopen() function: open a stream with a given file descriptor.
+
+Files:
+lib/fdopen.c
+m4/fdopen.m4
+
+Depends-on:
+stdio
+
+configure.ac:
+gl_FUNC_FDOPEN
+if test $REPLACE_FDOPEN = 1; then
+ AC_LIBOBJ([fdopen])
+ gl_PREREQ_FDOPEN
+fi
+gl_STDIO_MODULE_INDICATOR([fdopen])
+
+Makefile.am:
+
+Include:
+<stdio.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Bruno Haible