Assume POSIX 1003.1-1988 or later for dirent.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Nov 2012 07:48:43 +0000 (23:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Nov 2012 07:48:43 +0000 (23:48 -0800)
commit56e7104dd8706092b83246b1b6aed3e450a3a76f
treee83a60551fbd3cb2884fffabdbaf80dc8de51ad5
parent501ce6ff9fd2ad6260d7a54449aa178048564d54
Assume POSIX 1003.1-1988 or later for dirent.h.

* admin/CPP-DEFINES (HAVE_CLOSEDIR, HAVE_DIRENT_H): Remove.
* admin/notes/copyright: Adjust to src/ndir.h -> nt/inc/dirent.h renaming.
* configure.ac: Do not check for dirent.h or closdir.
* nt/inc/dirent.h: Rename from ../src/ndir.h, with these changes:
(struct dirent): Rename from struct direct.  All uses changed.
* nt/inc/sys/dir.h: Remove.
* src/dired.c: Assume HAVE_DIRENT_H.
(NAMLEN): Remove, replacing with ...
(dirent_namelen): New function.  All uses changed.  Use the GNU macro
_D_EXACT_NAMELEN if available, as it's faster than strlen.
(DIRENTRY): Remove, replacing all uses with 'struct dirent'.
(DIRENTRY_NONEMPTY): Remove.  All callers now assume it's nonzero.
* src/makefile.w32-in (DIR_H): Remove.  All uses replaced with
$(NT_INC)/dirent.h.
($(BLD)/w32.$(O)): Do not depend on $(SRC)/ndir.h.
* src/ndir.h: Rename to ../nt/inc/dirent.h.
* src/sysdep.h (closedir) [!HAVE_CLOSEDIR]: Remove.
Do not include <dirent.h>; no longer needed.
* src/w32.c: Include <dirent.h> rather than "ndir.h".
13 files changed:
ChangeLog
admin/CPP-DEFINES
admin/ChangeLog
admin/notes/copyright
configure.ac
nt/ChangeLog
nt/inc/dirent.h [moved from src/ndir.h with 84% similarity]
nt/inc/sys/dir.h [deleted file]
src/ChangeLog
src/dired.c
src/makefile.w32-in
src/sysdep.c
src/w32.c