Import readutmp and getcwd changes from gnulib.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Dec 2004 07:31:00 +0000 (07:31 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Dec 2004 07:31:00 +0000 (07:31 +0000)
lib/ChangeLog

index d4170d9d67d97c6464c39a6576f1e26e23a64879..6ebae3fc82211602f83f12fe11ecb2f5a1b1f44b 100644 (file)
@@ -1,3 +1,20 @@
+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 <errno.h>,
+       <sys/param.h>, <time.h>; 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  <jas@extundo.com>
 
        * base64.h, base64.c: New file.