From: Paul Eggert Date: Wed, 1 Dec 2004 07:31:00 +0000 (+0000) Subject: Import readutmp and getcwd changes from gnulib. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cc70ee04e040d65b4ecc2ad2e41fa76eac31322;p=pspp Import readutmp and getcwd changes from gnulib. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index d4170d9d67..6ebae3fc82 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,20 @@ +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 , + , ; not needed to establish interface. + (errno): Remove decl. + (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed. + (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME, + UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros. + 2004-11-28 Simon Josefsson * base64.h, base64.c: New file.