From fcf37d884264f8b24f9f32071c90db178c6ca1f4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 3 Dec 2004 07:13:31 +0000 Subject: [PATCH] Recent changes to save-cwd, openat. --- lib/ChangeLog | 21 +++++++++++++++++++++ m4/ChangeLog | 6 ++++++ 2 files changed, 27 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index c3e5bbeab3..95235b7b07 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,24 @@ +2004-12-02 Paul Eggert + + * openat.c: Include "openat.h" before other include files. + Include "exitfail.h". + (openat): Remove #undef; no longer needed now that we include openat.h + first. + (rpl_openat): Add comment about mode_t promotion. Simplify + code a bit by moving initializations around. Use exit_failure + rather than EXIT_FAILURE. + * openat.h: Add copyright and authorship notice. + (AT_FDCWD): Use the same value Solaris 9 uses, except of type + 'int' not 'unsigned int'. + + * save-cwd.c: Include "save-cwd.h" before other include files. + (O_DIRECTORY): Remove; not needed here, since "." must be + a directory. All uses removed. + (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is + universal on Suns, and we also need to test for IRIX. + Revamp code to use 'if' rather than '#if'. + Avoid unnecessary comparison of cwd->desc to 0. + 2004-12-01 Paul Eggert * hard-locale.c: Assume exists. diff --git a/m4/ChangeLog b/m4/ChangeLog index 2e0a31f67e..2ecf3b93ee 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,9 @@ +2004-12-02 Paul Eggert + + * openat.m4 (gl_FUNC_OPENAT): Require + gl_USE_SYSTEM_EXTENSIONS, since Solaris requires __EXTENSIONS__ + to be defined when compiling pedantically. + 2004-12-01 Paul Eggert * hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale -- 2.47.2