Recent changes to save-cwd, openat.

This commit is contained in:
Paul Eggert committed 2004-12-03 07:13:31 +00:00
1 parent f85b7c2b0c
commit fcf37d8842
2 files changed
+27

No files matched your search

+21
View File
@@ -1,3 +1,24 @@
2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
* 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 <eggert@cs.ucla.edu>
* hard-locale.c: Assume <locale.h> exists.
+6
View File
@@ -1,3 +1,9 @@
2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
* 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 <eggert@cs.ucla.edu>
* hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale