diff options
| author | Paul Eggert | 2012-11-22 23:48:43 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-11-22 23:48:43 -0800 |
| commit | 95ef7787fb0a5786a2e4f150649aadfa687a15f2 (patch) | |
| tree | c109235849121c6909c8dd5075ddf63ed847ee82 /admin | |
| parent | 6f6b82d66f73e65545865b72f109dbf695934aea (diff) | |
| download | emacs-95ef7787fb0a5786a2e4f150649aadfa687a15f2.tar.gz emacs-95ef7787fb0a5786a2e4f150649aadfa687a15f2.zip | |
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".
Fixes: debbugs:12958
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/CPP-DEFINES | 2 | ||||
| -rw-r--r-- | admin/ChangeLog | 6 | ||||
| -rw-r--r-- | admin/notes/copyright | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index 5c291944766..f4105f00c47 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES | |||
| @@ -118,7 +118,6 @@ HAVE_CFMAKERAW | |||
| 118 | HAVE_CFSETSPEED | 118 | HAVE_CFSETSPEED |
| 119 | HAVE_CLOCK_GETTIME | 119 | HAVE_CLOCK_GETTIME |
| 120 | HAVE_CLOCK_SETTIME | 120 | HAVE_CLOCK_SETTIME |
| 121 | HAVE_CLOSEDIR | ||
| 122 | HAVE_COFF_H | 121 | HAVE_COFF_H |
| 123 | HAVE_COM_ERR_H | 122 | HAVE_COM_ERR_H |
| 124 | HAVE_COPYSIGN | 123 | HAVE_COPYSIGN |
| @@ -143,7 +142,6 @@ HAVE_DES_H | |||
| 143 | HAVE_DEV_PTMX | 142 | HAVE_DEV_PTMX |
| 144 | HAVE_DIALOGS | 143 | HAVE_DIALOGS |
| 145 | HAVE_DIFFTIME | 144 | HAVE_DIFFTIME |
| 146 | HAVE_DIRENT_H | ||
| 147 | HAVE_DUP2 | 145 | HAVE_DUP2 |
| 148 | HAVE_ENDGRENT | 146 | HAVE_ENDGRENT |
| 149 | HAVE_ENDPWENT | 147 | HAVE_ENDPWENT |
diff --git a/admin/ChangeLog b/admin/ChangeLog index b256a0f5dc4..fe75ae57a6d 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-11-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Assume POSIX 1003.1-1988 or later for dirent.h (Bug#12958). | ||
| 4 | * CPP-DEFINES (HAVE_CLOSEDIR, HAVE_DIRENT_H): Remove. | ||
| 5 | * notes/copyright: Adjust to src/ndir.h -> nt/inc/dirent.h renaming. | ||
| 6 | |||
| 1 | 2012-11-21 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2012-11-21 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945). | 9 | Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945). |
diff --git a/admin/notes/copyright b/admin/notes/copyright index 72b7d7e2d23..173ff83343a 100644 --- a/admin/notes/copyright +++ b/admin/notes/copyright | |||
| @@ -380,7 +380,7 @@ Makefile.in does now. | |||
| 380 | src/gmalloc.c | 380 | src/gmalloc.c |
| 381 | - contains numerous copyrights from the GNU C library. Leave them alone. | 381 | - contains numerous copyrights from the GNU C library. Leave them alone. |
| 382 | 382 | ||
| 383 | src/ndir.h | 383 | nt/inc/dirent.h |
| 384 | - see comments below. This file is OK to be released with Emacs | 384 | - see comments below. This file is OK to be released with Emacs |
| 385 | 22, but we may want to revisit it afterwards. | 385 | 22, but we may want to revisit it afterwards. |
| 386 | 386 | ||
| @@ -429,7 +429,7 @@ admin/check-doc-strings | |||
| 429 | File says it's in the public domain, but that might not make it so. | 429 | File says it's in the public domain, but that might not make it so. |
| 430 | 430 | ||
| 431 | etc/e/eterm-color.ti | 431 | etc/e/eterm-color.ti |
| 432 | src/ndir.h | 432 | nt/inc/dirent.h |
| 433 | On legal advice from Matt Norwood, the following comment was added | 433 | On legal advice from Matt Norwood, the following comment was added |
| 434 | to these files in Feb/Mar 2007: | 434 | to these files in Feb/Mar 2007: |
| 435 | 435 | ||