+2005-03-10 Jim Meyering <jim@meyering.net>
+
+ * save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
+ so that this module works on systems without fchdir.
+
+2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ Factor int-properties macros into a single file, except for
+ glibc-related files.
+ * intprops.h: New file.
+ * getloadavg.c: Include it instead of limits.h.
+ (INT_STRLEN_BOUND): Remove.
+ * human.c: Include intprops.h.
+ (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
+ * human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000.
+ * inttostr.h: Include intprops.h instead of limits.h.
+ (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
+ * mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
+ for consistency with intprops.h.
+ (time_t_is_integer, twos_complement_arithmetic): Use them.
+ * sig2str.h: Include <signal.h>, intprops.h.
+ (INT_STRLEN_BOUND): Remove.
+ * strftime.c (TYPE_SIGNED): Remove.
+ (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
+ * strtol.c: Adjust comments to match intprops.h.
+ * userspec.c: Include intprops.h.
+ (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
+ * utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
+ * utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
+ instead of rolling our own expressions.
+ * xstrtol.c: Include xstrtol.h first, to test interface.
+
+ * strftime.c: Include <stdbool.h>. Use bool where appropriate,
+ instead of int.
+ (my_strftime): Do not mishandle years close to INT_MAX, by doing
+ the right thing even if adding 1900 would overflow. Similarly
+ for tm_mon + 1 and tm_yday + 1.
+ Make %Y always equivalent to %C%y, and similarly for %G and %g.
+ (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
+ (DO_SIGNED_NUMBER): New macro.
+ (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
+
+2005-03-07 Bruno Haible <bruno@clisp.org>
+
+ * pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
+
2005-03-03 Derek R. Price <derek@ximbiot.com>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
* pagealign_alloc.h: New file.
* pagealign_alloc.c: New file.
2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
- HAVE_DECL_STRTOLD.
+ HAVE_DECL_STRTOLD.
2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
with MAXSIZE.
2004-11-02 Derek R. Price <derek@ximbiot.com>
- and Paul Eggert <eggert@cs.ucla.edu>
+ and Paul Eggert <eggert@cs.ucla.edu>
* getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
(get_date): Overparenthesize to avoid GCC warning.
* snprintf.c (snprintf): Handle size==0.
2004-10-01 Simon Josefsson <jas@extundo.com>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
* snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
(snprintf): Declare 'args'.
Problem reported by Dan Jacobson.
2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
- and Jim Meyering <jim@meyering.net>
+ and Jim Meyering <jim@meyering.net>
Merge from coreutils CVS.
* getndelim2.c (getndelim2): Upon realloc failure, don't leak memory.
2004-04-20 Jim Meyering <jim@meyering.net>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
* localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
memory when realloc fails.
* getopt.h: Sync with libc CVS.
2004-03-18 Paul Eggert <eggert@twinsun.com>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
* mbswidth.h: Include <wchar.h> only if HAVE_DECL_MBSWIDTH_IN_WCHAR_H,
not on all platforms that have <wchar.h>.
* argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
2003-11-23 Paul Eggert <eggert@twinsun.com>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
* printf-parse.h: Don't include sys/types.h.
(ARG_NONE): New macro.
Reported by Geoff Collyer via Arnold Robbins.
2003-11-16 Paul Eggert <eggert@twinsun.com>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
Protect against address arithmetic overflow.
* printf-args.h: Include stddef.h.
* linebuffer.c: Include <string.h> for declaration of memset.
2003-10-30 Paul Eggert <eggert@twinsun.com>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
* vasprintf.c: Include <limits.h>, <stdlib.h>.
(vasprintf): Fail if the resulting length doesn't fit in an 'int'.
* version-etc-2.c: Remove file.
2003-09-25 Jim Meyering <jim@meyering.net>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
This lets translators provide better translations for the
"Written by ..." part of --version output.
* xgetdomainname.c: New file.
2003-09-25 Simon Josefsson <jas@extundo.com>
- Bruno Haible <bruno@clisp.org>
+ Bruno Haible <bruno@clisp.org>
* getdomainname.h: New file.
* getdomainname.c: New file.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
- Free Software Foundation, Inc.
+Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted provided the copyright notice and this notice are preserved.