diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-13 01:37:35 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-13 01:39:18 +0200 |
commit | 994c21f30d225cd35a8fa57851df8bc6bd66d97f (patch) | |
tree | 9973bc77402821c421aa3340575345b81a357687 /modules/rewinddir | |
parent | fcb7180c0ff873e26b9ea0aa7ef753df20104384 (diff) | |
download | gnulib-994c21f30d225cd35a8fa57851df8bc6bd66d97f.tar.gz |
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
* lib/dirent.in.h (struct dirent): New type.
(DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
DT_WHT): New macros.
(DIR): New type.
(opendir, closedir): Declare only if the module 'opendir' is enabled.
(readdir, rewinddir): New declarations.
* lib/dirent-private.h: New file.
* lib/opendir.c: New file.
* lib/readdir.c: New file.
* lib/rewinddir.c: New file.
* lib/closedir.c: New file.
* lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
* m4/opendir.m4: New file.
* m4/readdir.m4: New file.
* m4/rewinddir.m4: New file.
* m4/closedir.m4: New file.
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
REPLACE_CLOSEDIR here.
* m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
readdir, rewinddir are declared.
(gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
HAVE_REWINDDIR, HAVE_CLOSEDIR.
* modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
* modules/opendir: New file.
* modules/readdir: New file.
* modules/rewinddir: New file.
* modules/closedir: New file.
* doc/posix-functions/opendir.texi: Mention the 'opendir' module.
* doc/posix-functions/readdir.texi: Mention the 'readdir' module.
* doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
* doc/posix-functions/closedir.texi: Mention the 'closedir' module.
* NEWS: Mention the 'fchdir' change.
Diffstat (limited to 'modules/rewinddir')
-rw-r--r-- | modules/rewinddir | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/rewinddir b/modules/rewinddir new file mode 100644 index 0000000000..050cfe8ccf --- /dev/null +++ b/modules/rewinddir @@ -0,0 +1,30 @@ +Description: +rewinddir() function: restart reading the entries of a directory from the +beginning + +Files: +lib/rewinddir.c +lib/dirent-private.h +m4/rewinddir.m4 + +Depends-on: +dirent +largefile + +configure.ac: +gl_FUNC_REWINDDIR +if test $HAVE_REWINDDIR = 0; then + AC_LIBOBJ([rewinddir]) +fi +gl_DIRENT_MODULE_INDICATOR([rewinddir]) + +Makefile.am: + +Include: +<dirent.h> + +License: +LGPL + +Maintainer: +Bruno Haible |