summaryrefslogtreecommitdiff
path: root/lib/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-12-17 06:56:19 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-12-17 06:56:19 +0000
commit1833362111d5054958ffcbf7aed8b8c308fdf416 (patch)
tree7449febe4e5e5f0be9943b06f13bf7e30ea52482 /lib/ChangeLog
parent25c49ccc1c0a6b0d2bacbf527072fc4c14926371 (diff)
downloadcoreutils-1833362111d5054958ffcbf7aed8b8c308fdf416.tar.xz
remove/openat cleanup
Diffstat (limited to 'lib/ChangeLog')
-rw-r--r--lib/ChangeLog27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 4fcf6487b..c4f4e2571 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,30 @@
+2005-12-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ * openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
+ "gettext.h"; either no longer needed or are guaranteed by openat.h.
+ (_): Remove; no longer needed.
+ (openat): Renamed from rpl_openat; no need for rpl_openat
+ since openat.h renames openat for us.
+ Replace most of the body with a call to openat_permissive,
+ to avoid duplicate code.
+ Port to (probably hypothetical) environments were mode_t is
+ wider than int.
+ (openat_permissive): Require mode arg, so that we can check
+ types better. Put it just after flags. Change cwd failure
+ indicator from pointer-to-bool to pointer-to-errno-value.
+ All callers changed.
+ Invoke openat_save_fail and/or openat_restore_fail if
+ cwd_errno is null, so that openat can call us.
+ (openat_permissive, fdopendir, fstatat, unlinkat):
+ Simplify errno handling to avoid some duplicate code,
+ as it's OK to set errno on success.
+ * openat.h: Revamp code so that function macros depend on
+ __OPENAT_PREFIX only, not also on AT_FDCWD.
+ (openat_ro): Remove. Caller changed to use openat_permissive.
+ (openat_permissive): Now a macro, if not a function.
+ (openat_restore_fail, openat_save_fail): Now always functions,
+ since mkdirat needs them even if __OPENAT_PREFIX is defined.
+
2005-12-14 Jim Meyering <jim@meyering.net>
* Makefile.am (libcoreutils_a_SOURCES): Remove fprintftime.c