From 02496d03b5845843423be3bf9ba2c6b3f8cf6222 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 1 Dec 2004 07:13:35 +0000 Subject: [PATCH] * getcwd.c: Use system getcwd first, if appropriate. --- lib/ChangeLog | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index abefd19cf3..c0f8caffb9 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,10 +1,15 @@ 2004-11-30 Paul Eggert + * 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 , since readutmp.h no longer does that. - * readutmp.h: Don't include , , + * readutmp.h: Don't include , , ; not needed to establish interface. - Include instead. (errno): Remove decl. (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed. (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME, -- 2.47.2