fdopendir: split into its own module
authorEric Blake <ebb9@byu.net>
Tue, 1 Sep 2009 02:37:59 +0000 (20:37 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 3 Sep 2009 01:14:47 +0000 (19:14 -0600)
commitd1aa3e40286ed2b0ad1045b326a37167ac5d8847
tree32d49df867d41bdbf658a777b1198285f50f68eb
parentdd66a62cc2d76ab463e1167824ea4ca5fd4ef2ae
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>
17 files changed:
ChangeLog
MODULES.html.sh
doc/posix-functions/fdopendir.texi
lib/dirent.in.h
lib/fdopendir.c [new file with mode: 0644]
lib/openat.c
lib/openat.h
lib/savedir.c
m4/dirent_h.m4
m4/fdopendir.m4 [new file with mode: 0644]
m4/openat.m4
modules/dirent
modules/fdopendir [new file with mode: 0644]
modules/fdopendir-tests [new file with mode: 0644]
modules/openat
modules/savedir
tests/test-fdopendir.c [new file with mode: 0644]