+2003-09-26 Paul Eggert <eggert@twinsun.com>
+
+ * error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
+ (error_tail): Do not loop, reallocating temporary buffer, since
+ the original size is big enough. This avoids one potential size
+ overflow calculation. Check for size overflow when calculating
+ temporary buffer size. Free temporary buffer when done, if
+ it was allocated with malloc; this closes a memory leak.
+
+ Merge error changes from glibc.
+
+ * error.c, error.h: Update copyright notice header to match glibc.
+ * error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
+ (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
+ Disable cancellation while printing error.
+ * error.h: Prepend __ to parameter names.
+
+2003-09-25 Karl Berry <karl@gnu.org>
+
+ * argp-fmtstream.c, argp-help.c: update from libc.
+
+2003-09-25 Bruno Haible <bruno@clisp.org>
+
+ * version-etc-2.h: New file, from version-etc.h with modifications.
+ * version-etc-2.c: New file, from version-etc.c with modifications.
+
+2003-09-25 Simon Josefsson <jas@extundo.com>
+
+ * xgetdomainname.h: New file.
+ * xgetdomainname.c: New file.
+
+2003-09-25 Simon Josefsson <jas@extundo.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * getdomainname.h: New file.
+ * getdomainname.c: New file.
+
+2003-09-24 Paul Eggert <eggert@twinsun.com>
+
+ * linebuffer.c (freebuffer): Don't free the argument, just
+ the buffer associated with the argument. Bug reported by
+ Simon Josefsson.
+
+2003-09-19 Karl Berry <karl@gnu.org>
+
+ * argp.h: update from libc.
+
+2003-09-16 Paul Eggert <eggert@twinsun.com>
+
+ * linebuffer.c (readlinebuffer): Return NULL immediately upon
+ input error, instead of returning NULL the next time we are called
+ (and therefore losing track of errno).
+
+2003-09-15 Paul Eggert <eggert@twinsun.com>
+
+ * getndelim2.c (getndelim2): Don't trash errno when a read
+ fails, so that the caller gets the proper errno.
+
+ * readutmp.c (read_utmp): Likewise.
+ Check for fstat error. Close stream and free storage
+ when failing.
+
+2003-09-14 Bruno Haible <bruno@clisp.org>
+
+ * fwriteerror.h: New file.
+ * fwriteerror.c: New file.
+
+2003-09-14 Jim Meyering <jim@meyering.net>
+
+ * getloadavg.c: Correct cpp indentation.
+ * strdup.c: Likewise.
+ * vasnprintf.c: Likewise.
+
+2003-09-12 Paul Eggert <eggert@twinsun.com>
+
+ * argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
+ * obstack.c [!defined _LIBC]: Likewise.
+ * argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
+ * exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
+ * exitfail.c: Don't include stdlib.h; no longer needed.
+
+ More changes to assume C89 or better.
+
+ * error.c (error_tail): Assume vprintf.
+
+ * argmatch.c (getenv): Remove decl.
+ * progreloc.c (get_full_program_name): Define via prototype.
+ * setenv.c (clearenv): Likewise.
+ * stpncpy.c: Do not include <string.h> or <sys/types.h>; not
+ needed.
+ * strdup.c: Include <stdlib.h>, <string.h> unconditionally.
+ (malloc, memcpy): Remove decls.
+ * strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
+ (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
+ Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
+ (memcpy): Remove macro.
+ (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
+ (__P): Remove. All uses removed.
+ (PTR): Remove. All uses changed to void *.
+ (CHAR_BIT, NULL): Remove.
+ (spaces, zeros, memset_space, memset_zero)
+ [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
+ Remove.
+ (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
+ (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
+ Define with prototype.
+ Remove now-unnecessary prototype decl.
+ (extra_args_spec): Assume ANSI C. All uses changed.
+ (extra_args_spec_iso): Remove.
+ (my_strftime, emacs_strftimeu): Define via prototype.
+ * strtod.c: Include <float.h>, <stdlib.h>, <string.h>
+ unconditionally.
+ (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
+ * strtoimax.c: Include <stdlib.h> unconditionally.
+ (strtoul, strtol): Remove decls.
+ * strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
+ LONG_MAX): Remove.
+ Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
+ (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
+ (LOCALE_PARAM_PROTO): New macro.
+ (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
+ (INTERNAL (strtol), strtol): Define with a prototype.
+ (PARAMS): Remove. All uses removed.
+ * tempname.c: Include <string.h> unconditionally.
+ * userspec.c: Include <stdlib.h>, <string.h> unconditionally.
+ * xgethostname.c (main): Define with a prototype.
+ * xmalloc.c: Include "xalloc.h" first, to check interface.
+ Include <stdlib.h> unconditionally.
+ (calloc, malloc, realloc, free): Remove decls.
+ * xstrtod.c: Include "xstrtod.h" first, to check interface.
+ Include <stdlib.h> unconditionally. Sort include file names.
+ (strtod): Remove.
+ (xstrtod): Define with a prototype.
+ * xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
+ (strtol, strtoul): Remove decls.
+
+2003-09-11 Paul Eggert <eggert@twinsun.com>
+
+ * strndup.c: Don't include <stdio.h>, <sys/types.h>.
+ Include <stdlib.h>, <string.h> unconditionally.
+ Remove now-unnecessary cast to char *.
+ * strnlen.c: Include <string.h> unconditionally.
+ * yesno.c (yesno): Define with a prototype.
+
2003-09-10 Bruno Haible <bruno@clisp.org>
* strcspn.c: Include <string.h> unconditionally.
* unicodeio.c: Include <string.h> unconditionally.
* setenv.c: Include <stdlib.h> and <string.h> unconditionally.
* unsetenv.c: Likewise.
+ * xreadlink.c: Include <stdlib.h> unconditionally.
+ * yesno.c: Include <stdlib.h> unconditionally.
+ (rpmatch): Add prototype.
2003-09-10 Jim Meyering <jim@meyering.net>