From: Paul Eggert Date: Wed, 17 Nov 2004 07:32:27 +0000 (+0000) Subject: Add log for human.h, xgetcwd.c (import from coreutils). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf42e7bf9a6a652e3d9498441a1700db724aabe;p=pspp Add log for human.h, xgetcwd.c (import from coreutils). --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 8670508a1e..35743b03ff 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -4,6 +4,15 @@ (canon_host): Use getaddrinfo if available, so that IPv6 works. Use strdup instead of malloc/strcpy to duplicate strings. + * human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit. + (human_space_before_unit): New constant. + * human.c (human_readable): Support it. + + * xgetcwd.c: Include , for PATH_MAX. + (xgetcwd): Set errno correctly when failing. + Work around Solaris 9 bug: getcwd sets errno==ERANGE even though + the failure is actually due to a PATH_MAX problem. + Further getopt changes to make it more likely that glibc will buy the changes back. * getopt.c (POSIXLY_CORRECT): New constant.