Sync from coreutils.
[gnulib.git] / lib / ChangeLog
index 9b37182..1a79df7 100644 (file)
@@ -1,3 +1,149 @@
+2006-02-14  Jim Meyering  <jim@meyering.net>
+
+       Sync from coreutils.
+
+       Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
+       failure on deficient systems, and simplify gnulib lgpl dependencies.
+       * lstat.c (rpl_lstat): Rewrite to use stat() in place of the
+       xmalloc/lstat combination.  Based on a patch from Bruno Haible.
+
+       * xalloc-die.c: Remove unused definition of N_.
+
+2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
+
+2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * closeout.c (close_stdout): Don't assume 'bool' converts nonzero
+       ints to 0 or 1, as this isn't true for the stdbool.h substitute.
+
+2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp-namefrob.h: Restore changes accidentally lost during the
+       "autoupdate" on 2005-12-12.
+
+2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fnmatch.c (L_): Renamed from L, to work around a bug in
+       Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
+       All uses changed.
+
+2006-01-26  Simon Josefsson  <jas@extundo.com>
+
+       * socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
+       prototype is visible on mingw32.
+
+       * getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
+       for mingw32.
+
+       * gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
+       mingw32).
+
+2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
+       attempt to open for write; this always fails, at least on POSIX
+       hosts.  This reinstates the 2006-01-09 change, which was
+       inadvertently removed.
+
+2006-01-26  Bruno Haible  <bruno@clisp.org>
+            Paul Eggert  <eggert@cs.ucla.edu>
+
+       * stdbool_.h (_Bool)
+       [(! (defined __cplusplus || defined __BEOS__)
+         && !defined __GNUC__
+         && !(defined __HP_cc || defined __xlc__
+              || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
+              || defined __sgi))]:
+       #define to signed char in these cases too; this simplifies
+       the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
+       etc., separately) and makes it more conservative.
+
+2006-01-21  Jim Meyering  <jim@meyering.net>
+
+       Sync from the stable (b5) branch of coreutils:
+
+       * fts.c (fts_children): Don't let close() clobber errno from
+       failed fchdir().
+
+       * fts.c (fts_stat): When following a symlink-to-directory,
+       don't necessarily interpret stat-fails+lstat-succeeds as indicating
+       a dangling symlink.  That can also happen at least for ELOOP.
+       The fix: return FTS_SLNONE only when the stat errno is ENOENT.
+       FYI, this bug predates the inclusion of fts.c in coreutils.
+
+       * fts.c (fts_open): Put new maxarglen declaration and uses
+       in their own block, so pre-c99 compilers don't object.
+
+       Avoid the double-free (first in fts_read, second in fts_close) that
+       would occur when an `active' directory is made inaccessible (e.g.,
+       via chmod a-x) during a traversal.
+       * fts.c (fts_read): After a failed fchdir, update sp->fts_cur
+       before returning.  Reproduce this failure by
+       mkdir -p a/b; cd a; chmod a-x . b
+       Reported by Stavros Passas.
+
+2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp-namefrob.h: Bugfix. Remove stray #
+
+2006-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
+       warnings.
+       Reported by Paul Eggert.
+
+2006-01-25  Jim Meyering  <jim@meyering.net>
+
+       * fileblocks.c: Remove more useless parentheses.
+       * readutmp.h: Likewise.
+
+2006-01-24  Bruno Haible  <bruno@clisp.org>
+
+       * stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler already
+       has it.
+       Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
+       2005-11-26.
+
+       * stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as 'signed char'
+       to avoid problems with the built-in _Bool type.
+       Reported by Paul Eggert on 2005-11-26.
+
+2006-01-24  Jim Meyering  <jim@meyering.net>
+
+       * socket_.h: Remove useless parentheses in uses of cpp `defined'.
+
+2006-01-24  Simon Josefsson  <jas@extundo.com>
+
+       * socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
+       Bruno.
+
+2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Work around porting bugs reported by Dieter in
+       <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
+       * getopt.c (_NOPROTO): Remove; no longer needed.
+       Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
+       Include "getopt.h" first, to check interface.
+       (getenv): Declare only if defined HAVE_DECL_GETENV &&
+       !HAVE_DECL_GETENV.
+       * strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
+       (__strndup): Revert to K&R-style function dfns, the glibc style.
+       * strnlen.c: Don't claim it's taken from glibc; it's not.
+       (strnlen, __strnlen): Remove #defines and #undefs; not needed.
+       Include strnlen.h first, to get prototype properly.
+       (strnlen): Renamed from __strnlen.
+       Remove weak alias.
+
+2006-01-23  Ulrich Drepper  <drepper@redhat.com>
+
+       These changes imported from libc.
+       * getopt.c: Use __fxprintf instead of inline stream orientation
+       test and two separate function calls.
+       * strndup.c (__strndup): Add libc_hidden_def.
+
 2006-01-22  Bruno Haible  <bruno@clisp.org>
 
        * vasnprintf.c (VASNPRINTF): In the computation of the size of the
        shell quoting style.
 
 
-Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 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.