diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-01 07:13:35 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-01 07:13:35 +0000 |
commit | 02496d03b5845843423be3bf9ba2c6b3f8cf6222 (patch) | |
tree | 435d4ef38402c05b24c5b91305ae23e3c0803535 /lib | |
parent | 2e9a7b5621752c34f54822cc553d4a6df276e72d (diff) | |
download | coreutils-02496d03b5845843423be3bf9ba2c6b3f8cf6222.tar.xz |
* getcwd.c: Use system getcwd first, if appropriate.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index abefd19cf..c0f8caffb 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,10 +1,15 @@ 2004-11-30 Paul Eggert <eggert@cs.ucla.edu> + * getcwd.c (is_ENAMETOOLONG): New macro. + (__getcwd.c): Don't restore errno; glibc doesn't. + [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd + first, falling back to our code only if its results look suspicious. + Ensure that the resulting buffer is only as large as necessary. + * readutmp.c: Include readutmp.h first. Include <errno.h>, since readutmp.h no longer does that. - * readutmp.h: Don't include <sys/types.h>, <errno.h>, + * readutmp.h: Don't include <errno.h>, <sys/param.h>, <time.h>; not needed to establish interface. - Include <stddef.h> instead. (errno): Remove decl. (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed. (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME, |