summaryrefslogtreecommitdiff
path: root/modules/fdopendir
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-08-31 20:37:59 -0600
committerEric Blake <ebb9@byu.net>2009-09-02 19:14:47 -0600
commitd1aa3e40286ed2b0ad1045b326a37167ac5d8847 (patch)
tree32d49df867d41bdbf658a777b1198285f50f68eb /modules/fdopendir
parentdd66a62cc2d76ab463e1167824ea4ca5fd4ef2ae (diff)
downloadgnulib-d1aa3e40286ed2b0ad1045b326a37167ac5d8847.tar.gz
fdopendir: split into its own module
* lib/openat.c (fdopendir): Move... * lib/fdopendir.c: ...into new file. * modules/fdopendir: New module. * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file. * modules/openat (Depends-on): Add fdopendir. * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for fdopendir here. * modules/savedir (Depends-on): Only need fdopendir, not full openat. * lib/savedir.c (include): Use <dirent.h>, not "openat.h". * lib/openat.h (fdopendir): Drop prototype. * lib/dirent.in.h (fdopendir): Provide prototype. * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements. * modules/dirent (Makefile.am): Substitute them. * MODULES.html.sh (File system functions): Mention it. * doc/posix-functions/fdopendir.texi (fdopendir): Likewise. * modules/fdopendir-tests: New file. * tests/test-fdopendir.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/fdopendir')
-rw-r--r--modules/fdopendir30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/fdopendir b/modules/fdopendir
new file mode 100644
index 0000000000..7a90aa367f
--- /dev/null
+++ b/modules/fdopendir
@@ -0,0 +1,30 @@
+Description:
+Open a directory stream from a file descriptor.
+
+Files:
+lib/fdopendir.c
+lib/openat-priv.h
+lib/openat-proc.c
+m4/fdopendir.m4
+
+Depends-on:
+extensions
+dirent
+fchdir
+openat-die
+save-cwd
+
+configure.ac:
+gl_FUNC_FDOPENDIR
+gl_DIRENT_MODULE_INDICATOR([fdopendir])
+
+Makefile.am:
+
+Include:
+<dirent.h>
+
+License:
+GPL
+
+Maintainer:
+Jim Meyering, Eric Blake