stdalign: Make it work with HP-UX cc.
[gnulib.git] / ChangeLog
blob7087aaf5f8c9f4591661731df13772cb256abdf2
1 2017-03-17  Bruno Haible  <bruno@clisp.org>
3         stdalign: Make it work with HP-UX cc.
4         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
5         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
6         for HP-UX cc.
8 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
10         flexmember: try to detect HP-UX 11.31 cc bug
11         Problem reported by Bruno Haible in:
12         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
13         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
14         Attempt to detect bug in HP-UX 11.31 cc.
16 2017-03-16  Bruno Haible  <bruno@clisp.org>
18         stdint: Fix test compilation failure with HP-UX 11 cc.
19         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
21         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
22         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24 2017-03-14  Bruno Haible  <bruno@clisp.org>
26         gnulib-tool: Don't produce a tests directory with only snippet .h files.
27         * gnulib-tool (func_modules_transitive_closure_separately): If
28         testsrelated_modules ends up with no "real" modules, aside from
29         modules with applicability 'all', set it to empty.
31 2017-03-14  Bruno Haible  <bruno@clisp.org>
33         vma-iter: Add support for HP-UX.
34         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
35         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
36         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
37         * lib/get-rusage-as.c: Update comment about HP-UX.
38         * lib/get-rusage-data.c: Likewise.
39         (get_rusage_data): Use get_rusage_data_via_setrlimit.
41 2017-03-14  Bruno Haible  <bruno@clisp.org>
43         limits-h: Make it work with HP-UX cc.
44         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
45         defined.
47 2017-03-14  Bruno Haible  <bruno@clisp.org>
49         Fix test failures on DragonFlyBSD.
50         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
51         * tests/test-select.h (test_bad_fd): Likewise.
52         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
54 2017-03-14  Bruno Haible  <bruno@clisp.org>
56         freadahead: Silence warning on DragonFlyBSD.
57         * lib/freadahead.c (__sreadahead): Declare ourselves.
59 2017-03-14  Bruno Haible  <bruno@clisp.org>
61         vma-iter: Add comment about AIX.
62         * lib/vma-iter.c: Add comment about why this module is not implemented
63         on AIX.
65 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67         snippets: move unadjusted snippet sources to lib
68         Problem reported by Michal Privoznik in:
69         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
70         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
71         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
72         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
73         * lib/unused-parameter.h: Rename from
74         build-aux/snippet/unused-parameter.h.
75         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
76         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
77         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
78         * modules/snippet/c++defs (Files:, CXXDEFS_H):
79         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
80         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
81         Adjust to file renamings.
83 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
85         gnulib-tool: don't automatically distribute files from top/
86         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
87         not distribute top/README-release by default, don't distribute files
88         from top/ unconditionally.
89         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
90         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
92 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
94         gnulib-tool: fix typo in comment output
95         * gnulib-tool (func_import): Fix typo with previous change.
97         snippets: work around GNU Make 3.82 VPATH
98         When using 'gnulib-tool --gnu-make' on Emacs, and building
99         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
100         an out-of-source (VPATH) build failed because the sans-copyright
101         snippet file was not built before the file that used it.
102         Presumably this is some sort of VPATH thing.  Work around the
103         problem by using the original snippet, i.e., don’t bother to
104         remove its copyright notice.
105         * modules/snippet/_Noreturn, modules/snippet/link-warning:
106         Don’t assume Automake in comments.  Omit long-incorrect comment.
107         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
108         (MOSTLYCLEANFILES):
109         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
110         (MOSTLYCLEANFILES):
111         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
112         (MOSTLYCLEANFILES):
113         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
114         (MOSTLYCLEANFILES):
115         Remove.
116         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
117         * modules/snippet/c++defs (CXXDEFS_H):
118         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
119         * modules/snippet/warn-on-use (WARN_ON_USE_H):
120         Don’t bother to remove the copyright notice; just use the
121         original snippet as-is.
123 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
125         gnulib-tool: minor --gnu-make fixups
126         * gnulib-tool (func_emit_lib_Makefile_am):
127         Remove useless code that was a blind alley during implementation.
128         Problem reported by Thien-Thi Nguyen in:
129         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
130         (func_import): Note the "--gnu-make" option in the output comment.
132 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
134         gnulib-tool: new option --gnu-make
135         This is for applications like GNU Emacs that use GNU Make
136         features instead of Automake.
137         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
138         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
139         Do not assume Automake.
140         * gnulib-tool (func_determine_path_separator)
141         (func_modules_transitive_closure, func_update_file)
142         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
143         (func_import): Add support for --gnu-make.
145 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
147         gnulib-common.m4: avoid aclocal.m4 bloat
148         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
149         Hide AM_PROG_AR from aclocal, so that aclocal does not
150         install irrelevant macro definitions into aclocal.m4.
152 2017-03-10  Bruno Haible  <bruno@clisp.org>
154         vma-iter: Let callers know about error.
155         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
156         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
158 2017-03-05  Bruno Haible  <bruno@clisp.org>
160         Fix value of LD for 64-bit compilers on AIX.
161         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
162         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
164 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
166         dtotimespec: simplify
167         * lib/dtotimespec.c (dtotimespec): Simplify.
169 2017-03-04  Bruno Haible  <bruno@clisp.org>
171         test-calloc-gnu: Reenable test also for GCC 7.
172         * tests/test-calloc-gnu.c (eight): New function.
173         (main): Don't skip test; use eight() instead.
175 2017-03-04  Jim Meyering  <meyering@fb.com>
177         test-calloc-gnu: port to GCC7
178         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
179         that attempts to calloc more than SIZE_MAX bytes, because GCC7
180         and newer would detect that at compilation time.
182 2017-03-04  Bruno Haible  <bruno@clisp.org>
184         tests: Avoid compiler warning about uses of null_ptr.
185         * tests/null-ptr.h: New file.
186         * tests/test-canonicalize.c: Include null-ptr.h.
187         (null_ptr): Remove function.
188         * tests/test-canonicalize-lgpl.c: Likewise.
189         * tests/test-memmem.c: Likewise.
190         * tests/test-ptsname_r.c: Likewise.
191         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
192         * modules/canonicalize-lgpl-tests: Likewise.
193         * modules/memmem-tests: Likewise.
194         * modules/ptsname_r-tests: Likewise.
195         Reported by Jim Meyering.
197 2017-03-03  Bruno Haible  <bruno@clisp.org>
199         doc: Mention Mac OS X deficiencies regarding semaphores.
200         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
201         * doc/posix-functions/sem_destroy.texi: Likewise.
202         * doc/posix-functions/sem_getvalue.texi: Likewise.
204 2017-03-03  Bruno Haible  <bruno@clisp.org>
206         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
207         Reported by Assaf Gordon <assafgordon@gmail.com> via
208         Pádraig Brady <P@draigBrady.com>.
209         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
210         semaphores.
211         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
212         (atomic_int_semaphore): New macro.
214 2017-02-28  Bruno Haible  <bruno@clisp.org>
216         perror tests: Tweak for z/OS.
217         Reported by Daniel Richard G. <skunk@iskunk.org>.
218         * tests/test-perror.sh: Don't fail z/OS style perror output.
220 2017-02-26  Bruno Haible  <bruno@clisp.org>
222         nproc: Refactor large function.
223         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
224         from num_processors.
225         (num_processors): In this function, only deal with OMP.
227 2017-02-26  Pádraig Brady  <P@draigBrady.com>
229         nproc: adjust handling of OpenMP environment variables
230         to match the return value from omp_get_num_threads(), i.e.:
231          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
232          - Treat 0 as an invalid value and ignore
233         Also remove the call to omp_get_num_threads() because
234         it's ineffective without the omp pragmas in place.
235         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
236         so that it can be ignored.
237         (num_processors): Honor OMP_THREAD_LIMIT even without
238         OMP_NUM_THREADS being set.  Also fix a typo in the environment
239         variable being checked, from the previous recent commit.
241 2017-02-26  Pádraig Brady  <P@draigBrady.com>
243         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
244         * lib/nproc.c (parse_omp_threads): A new function refactored
245         from num_processors() to support parsing both of the
246         above environment variables.
247         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
248         to accurately reflect the current OpenMP nesting level.
249         Also support the OMP_THREAD_LIMIT environment variable
250         to limit the max value determined from OMP_NUM_THREADS.
251         * modules/nproc: Depend on minmax header.
252         Suggested by Oliver Heimlich.
254 2017-02-25  Bruno Haible  <bruno@clisp.org>
256         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
257         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
259 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
261         ftoastr: port to -Wdouble-promotion
262         Work around -Wdouble-promotion false alarm in recent GCCs.
263         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
264         (ftoastr_snprintf, FTOASTR): Use it.
266 2017-02-21  Bruno Haible  <bruno@clisp.org>
268         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
269         Reported by Rene Saavedra <rennes@openmailbox.org> in
270         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
271         * lib/glthread/lock.h: On glibc systems without
272         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
273         implementation of rwlocks.
274         * lib/glthread/lock.c: Likewise.
276 2017-02-20  Bruno Haible  <bruno@clisp.org>
278         lock tests: Fix build failure on z/OS.
279         Reported by Daniel Richard G. <skunk@iskunk.org>.
280         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
281         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
282         exist.
284 2017-02-19  Bruno Haible  <bruno@clisp.org>
286         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
287         This helps when CC=clang.
288         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
289         of /usr/bin/gcc.
291         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
292         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
294 2017-02-19  Bruno Haible  <bruno@clisp.org>
296         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
297         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
298         --with-tests --single-configure is specified.
300 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
302         users.txt: Update links, use HTTPS where possible
303         * users.txt: Updated to HTTPS where possible,
304         fixed some links to new locations.
306 2017-02-16  Bruno Haible  <bruno@clisp.org>
308         xbinary-io: Fix inlining.
309         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
311 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
313         xbinary-io: rename from xsetmode
314         This patch is taken from suggestions by Bruno Haible in:
315         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
316         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
317         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
318         not ENOTTY, when it is an inappropriate device.
319         * lib/binary-io.h (SET_BINARY): Resurrect.
320         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
321         (xset_binary_mode_error): Rename from xsetmode_error.
322         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
323         (xset_binary_mode): Rename from xsetmode.
324         All uses changed.
325         * modules/xbinary-io: Rename from modules/xsetmode.
326         Update file names.
327         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
328         * NEWS: Update to match revised behavior.
330 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
332         tests: Adjust to recent SET_BINARY change
333         * tests/test-binary-io.c (main):
334         * tests/test-binary-io.sh: Remove test for SET_BINARY.
335         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
336         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
337         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
339         xsetmode: new module
340         This is to fix a problem noted by Eric Blake.
341         Code was using xfreopen to change files to binary mode, but this
342         fails for stdout when in append mode.  Such code should use
343         xsetmode instead.
344         * NEWS: Document incompatible changes to binary-io module.
345         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
346         New function.
347         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
348         (set_binary_mode): New function, which also checks for tty.
349         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
351 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
353         headers: fix begin-end typos
354         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
355         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
357         selinux-h: port to PGI 16.10
358         * lib/se-selinux.in.h: Don't assume that include_next skips over
359         duplicate -I DIR options.
361         argp: port to PGI 16.10
362         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
364 2017-02-13  Darshit Shah  <darnir@gnu.org>
366         unicase: Update function protoype to match definition.
367         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
368         uses 'size_t' as the datatype for the 'len' parameter in the functions
369         it generates. Update the prototype specified here to match the newly
370         generated function.
372 2017-02-12  Bruno Haible  <bruno@clisp.org>
374         times test: Avoid gcc warnings on Linux/x32.
375         * tests/test-times.c (main): Really cast printf arguments from clock_t
376         to 'long int'.
378 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
380         glob: port better to emscripten
381         Problem reported by Bruno Haible in:
382         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
383         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
385 2017-02-11  Bruno Haible  <bruno@clisp.org>
387         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
388         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
389         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
390         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
391         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
392         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
393         Distinguish hppa64 from hppa.
395 2017-02-10  Bruno Haible  <bruno@clisp.org>
397         search: Don't assume that tsearch() exists if 'VISIT' is defined.
398         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
399         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
400         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
402 2017-02-09  Bruno Haible  <bruno@clisp.org>
404         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
405         * doc/gnulib.texi (Libtool and Windows): Recommend
406         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
407         Reported by Reuben Thomas <rrt@sc3d.org>.
409 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
411         stddef-tests: port to SIZE_MAX <= INT_MAX
412         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
413         Do not assume that INT_MAX < SIZE_MAX.
415 2017-02-01  Bruno Haible  <bruno@clisp.org>
417         lock tests: Fix link error.
418         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
421 2017-01-31  Bruno Haible  <bruno@clisp.org>
423         lock: Fix link error (regression from 2017-01-05).
424         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
425         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
426         pthread_rwlockattr_destroy weak.
427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
429 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
431         Port to PGI 16.10 x86-64
432         This patch fixes one real bug in gl_anylinked_list2.h, along with
433         some minor glitches that are not bugs.  It does not silence PGI’s
434         thousands of bogus warnings when compiling test-intprops.c.
435         Fortunately, the warnings do not cause a failure.
436         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
437         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
438         My goodness, PGI goes back a long ways - this predates C89!
439         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
440         For example, ASYNCSAFE (const void *) should expand to
441         ‘const void *volatile’, not to ‘volatile const void *’.
442         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
443         * lib/verify.h (verify) [!__GNUC__]:
444         Use shorter albeit meaningless string to bypass silly compiler limits.
445         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
446         * tests/nan.h (NaNf, NaNd, NaNl):
447         Use static functions to avoid misguided compiler diagnostics.
448         Is there some reason we don’t use static functions on all platforms?
450 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
452         parse-datetime: handle timezones reentrantly
453         This API change was prompted by a report by Pádraig Brady in:
454         https://bug.debian.org/851934#10
455         To help fix the bug, make parse_datetime2 more reentrant.
456         * NEWS: Document this incompatible change.
457         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
458         Add two arguments, the timezone and the timezone name.
459         All callers changed.  If TZ="..." is specified, use it for
460         calculating defaults.
461         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
462         this code should be usable in a library.
463         (mktime_ok, get_effective_timezone):
464         Accept timezone arg too.  All callers changed.
465         (get_tz): Remove.
466         (get_effective_timezone): Check for failures.
468 2017-01-20  Eric Blake  <eblake@redhat.com>
470         localename: port to cygwin 2.6
471         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
472         Cygwin.
473         * modules/localename (Depends-on): Add extensions, since
474         NL_LOCALE_NAME() is not visible without it.
476 2017-01-17  Pádraig Brady  <P@draigBrady.com>
478         parse-datetime: fix dependence on AC_PROG_SED
479         * modules/parse-datetime: Use `sed` directly like all other modules.
480         Reported by J William Piggott
482 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
484         intprops: update doc URLs
485         * doc/intprops.texi (Integer Range Overflow): Update URLs.
487 2017-01-16  Bruno Haible  <bruno@clisp.org>
489         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
490         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
491         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
492         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
493         distinguish s390 and s390x.
494         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
495         * NEWS: Mention the change regarding 'armel'.
497 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
499         localeinfo: case_folded_counterparts and WEOF
500         * NEWS: Document this.
501         * lib/localeinfo.c (case_folded_counterparts):
502         First arg is now wint_t, not wchar_t.  This generalizes the
503         function to also work on WEOF, where it returns 0.
505         dfa: port to gcc -fsanitize=undefined
506         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
507         as this runs afoul of gcc -fsanitize=undefined.
509 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
511         strftime: %z is -00 if unknown
512         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
513         the caller's responsibility to set 'negative_number'.  All uses changed.
514         (__strftime_internal): Put '-' before a zero UTC offset if the time
515         zone abbreviation starts with "-", which is the recently-introduced
516         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
517         * tests/test-strftime.c: Test for this.
519 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
521         dfa: port to older GCC
522         Problem reported by Assaf Gordon in:
523         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
524         * modules/c99: New module.  This merely attempts to use the latest
525         C version, which should be enough to solve this particular problem.
526         The idea is to document which Gnulib modules assume C99 or later.
527         * modules/dfa (Depends-on): Add it.
529 2017-01-10  Bruno Haible  <bruno@clisp.org>
531         Update DEPENDENCIES.
532         * DEPENDENCIES: List only https URLs. Update recommended version for
533         autoconf, automake, gperf.
535 2017-01-10  Jim Meyering  <meyering@fb.com>
537         maint.mk: enforce spelling of "timestamp" (i.e., no space)
538         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
539         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
541 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
543         dfa: minor simplification with emptyset
544         * lib/dfa.c (build_state): Simplify by using emptyset.
546 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
548         dfa: shrink constraints from 4 bits to 3
549         * lib/dfa.c (newline_constraint, letter_constraint)
550         (other_constraint, prev_newline_dependent)
551         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
552         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
553         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
554         Constraints need only 3 bits, not 4.  Using smaller integers
555         shrinks the code a bit and makes grep a tad faster on x86-64.
557         dfa: omit unnecessary ptrdiff_t check
558         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
559         overflow, since xnmalloc does that now.
561         dfa: omit unnecessary allocation
562         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
563         an all-zero follow set works just fine.
565         dfa: omit unused local
566         * lib/dfa.c (build_state): Fix up recent change.
568         maint: remove stray .texi files
569         Although these were superseded by other files like
570         doc/posix-functions/ctime.texi, the old files were not removed.
571         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
573 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
575         getprogname: fix port to IRIX
576         * lib/getprogname.c (getprogname) [__sgi]:
577         Don't dump core if malloc returns NULL.
579         dfa: fix reallocation bug when matching newlines
580         Problem reported for sed by S. Gilles (Bug#25390).
581         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
582         (dfastate): Reallocate before moving any newline transition ...
583         (build_state): ... instead of reallocating here, where it is too late.
585 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
587         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
588         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
590 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
592         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
593         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
595 2017-01-07  Bruno Haible  <bruno@clisp.org>
597         stdioext: Port to Minix 3.2 and newer.
598         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
599         * lib/fseeko.c (fseeko): Likewise.
600         Reported by Nelson Beebe via Paul Eggert.
602 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
604         getprogname: port to IRIX
605         * lib/getprogname.c (getprogname): Port to IRIX.
606         Based on an idea by Bastien Roucariès at:
607         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
608         via code from Bruno Haible at:
609         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
611         localename-tests: port to NetBSD 7
612         Problem reported by Nelson H. F. Beebe.
613         * tests/test-localename.c:
614         Test newlocale and uselocale only if both exist.
616         glob, intprops, xalloc: work around Clang bug
617         Work around LLVM bug 16404, which is still not fixed.
618         https://llvm.org/bugs/show_bug.cgi?id=16404
619         Problem reported by Nelson H. F. Beebe.
620         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
621         Remove.
622         * lib/glob.c (size_add_wrapv):
623         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
624         * lib/xalloc-oversized.h (xalloc_oversized):
625         Do not use overflow builtins if Clang.
627         dfa: fix 'return' typo
628         Problem reported by Nelson H. F. Beebe.
629         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
631 2017-01-05  Pádraig Brady  <P@draigBrady.com>
633         parse-datetime: fix generated paths for coverage files
634         * modules/parse-datetime: Adjust the paths for parse-datetime.y
635         within parse-datetime.c, so that gcc generates appropriate .gcno
636         files, allowing lcov to proceed without error.  Previously it
637         would error trying to find "lib/lib/parse-datetime.y".
639 2017-01-05  Pádraig Brady  <P@draigBrady.com>
641         maint.mk: support parallel execution of coverage
642         * top/maint.mk (coverage): Run dependencies serially,
643         thus supporting parallel processing of each one,
644         particularly build-coverage, which builds and runs tests.
646 2017-01-05  Bruno Haible  <bruno@clisp.org>
648         lock tests: Prefer semaphore over mutex.
649         * tests/test-lock.c (USE_SEMAPHORE): New constant.
650         (struct atomic_int, init_atomic_int, get_atomic_int_value,
651         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
652         Suggested by Torvald Riegel <triegel@redhat.com>.
654 2017-01-05  Bruno Haible  <bruno@clisp.org>
656         lock: Provide guarantee to avoid writer starvation for rwlocks.
657         The rationale is: 1) Read-preferring read-write locks are prone to
658         writer starvation if the number of reader threads multiplied by the
659         percentage of time they have the lock held is too high. 2) Write-
660         preferring read-write locks are the only reliable way to avoid this.
661         3) There have been reports of 'test-lock' hanging on glibc systems
662         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
663         and glibc indeed implements read-preferring rwlocks by default, see
664         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
665         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
666         * m4/pthread_rwlock_rdlock.m4: New file.
667         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
668         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
669         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
670         of rwlock initialization on glibc systems without
671         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
672         of rwlocks altogether on non-glibc systems without
673         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
674         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
675         * lib/glthread/lock.c [USE_POSIX_THREADS]
676         (glthread_rwlock_init_for_glibc): New function.
677         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
678         comment.
679         [USE_PTH_THREADS]: New implementation of rwlocks.
680         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
681         readers.
682         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
683         (Depends-on): Add 'extensions'.
684         * tests/test-rwlock1.c: New file.
685         * lock-tests (Files): Add it.
686         (Depends-on): Add usleep.
687         (Makefile.am): Add test-rwlock1 to the tests.
689 2017-01-05  Bruno Haible  <bruno@clisp.org>
691         thread: Fix pth port.
692         * lib/glthread/thread.h (pth_init): Declare weak.
693         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
694         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
695         function.
697 2017-01-04  Assaf Gordon <assafgordon@gmail.com>
699         parse-datetime: fix debug message on lone year number
700         Input dates such as
701           date -d "Apr 11 22:59:00 2011"
702         are parsed as date (Apr 11, with default year 2016), then time, then a
703         number (2011). Based on the combination of previously seen tokens,
704         'digits_to_date_time' determines 2011 to be a year value.
705         This fixes the debug messages to correctly show the updated year.
706         Before:
707             $ date --debug -d 'Apr 11 22:59:00 2011'
708             date: parsed date part: (Y-M-D) 2016-04-11
709             date: parsed time part: 22:59:00
710             date: parsed number part: today/this/now
711         After:
712             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
713             date: parsed date part: (Y-M-D) 2016-04-11
714             date: parsed time part: 22:59:00
715             date: parsed number part: year: 2011
716         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
717         'debug_year_seen' member fields.
718         (digits_to_date_time): Update 'year_seen' as needed.
719         (debug_print_current_time): Inform about year updates.
720         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
722         parse-datetime: fix local timezone debug messages
723         "Local timezones" are strings that affect only DST relative to the
724         default timezone. The debug messages in parse-datetime.y printed
725         wrong information when encountering local timezones.
726         Examples:
727         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
728              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
729              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
730         When the default timezone relates to the zone strings, EET/EEST are
731         parsed as local timezones (tLOCAL_ZONE), and only change the DST
732         value (0/1, respectively):
733              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
734              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
735         * lib/parse-datetime.y (debug_print_current_time): If local timezone
736         was seen, inform about DST change, don't print actual timezone.
737         (debug_strfdatetime): If local timezone was seen, use default timezone
738         (and adjust as needed) instead of using incorrect timezone.
739         (parse_datetime2): Use correct time-zone source string, and adjust
740         default timezone as needed.
742         parse-datetime: add debug warning about DST changes
743         Incorrect date arithmetic due to daylight saving time (DST) are a
744         common (false) bug report in coreutils.
745         Detect two such cases and print a warning:
746         1. year/month/day adjustments (performed on 'struct tm'),
747            where 'mktime' returns a different isdst value.
748         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
749            where the result of 'localtime(3)' on the value will return a
750            different isdst value.
751         Note: DST changes could be harmless or unnoticeable.
752         Examples (with 'TZ=America/New_York'):
753         Unnoticeable: result is 2016-Dec-14
754            $ date -d '2016-06-15 EDT + 6 months' +%b
755            Dec
756         Unnoticeable: result is 2016-Dec-15 11:00:00
757            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
758            2016-12-15
759         This is unexpected:
760            $ date -d '2016-06-01 EDT + 6 months' +%F
761            2016-11-30
762         The new debug warnings will show:
763            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
764            ...
765            date: warning: daylight saving time changed after date adjustment
766            ...
767         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
768         print an appropriate warning message.
770         parse-datetime: add debug warning about date arithmetic
771         Date arithmetic are done directly on the fields of 'struct tm',
772         which can result in invalid dates. Normalization with 'mktime(3)'
773         will then produce a different date - which might cause unexpected
774         results.
775         Examples:
776           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
777           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
778         Note that date normalization is not inherently wrong and not rejected,
779         as it has legitimate uses:
780           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
781         If the user asked to adjust months but 'mday' changed,
782         or user asked to adjust years but 'month' changed - warn about it.
783             $ ./src/date --debug -d '2016-10-31 - 1 month'
784             ...
785             date: warning: when adding relative months/years, \
786                            it is recommended to specify the 15th of the month
787             ...
788             date: warning: month/year adjustment resulted in shifted dates:
789             date:      adjusted Y M D: 2016 09 31
790             date:    normalized Y M D: 2010 10 01
791             ...
792         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
793         a warning message. Improve recommendation of when to use 15 of the
794         month or noon for date arithmetic.
796         parse-datetime: fix debug message of relative part after timezone
797         Relative part (e.g '+8 days') after a timezone string was not
798         reported (was only reported after a timezone number). Due to the
799         parser's structure, timezone strings with numbers were handled
800         separately.
801         before:
802              # Timezone number + relative part: OK
803              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
804              ...
805              date: parsed relative part: -8 day(s)
806              # Timezone string + relative part: missing
807              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
808              [ missing message ]
809         After: messages are printed in both cases.
810         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
812         parse-datetime: fix incorrect debug message on lone number
813         A lone number is an absolute value, not a relative time part.
814         before:
815            $ date --debug -d '20130101'
816            date: parsed number part: today/this/now
817         After:
818            $ ./src/date --debug -d '20130101'
819            date: parsed number part: (Y-M-D) 2013-01-01
820         * lib/parse-datetime.y ('item'/'number' tokens): Call
821         'debug_print_current_time' instead of 'debug_print_relative_time'.
823 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
825         doc: modernize for C11 etc.
826         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
827         for C11, MinGW, etc.  This responds to Paul Smith's question in:
828         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
830         dfa: prefer functions to FETCH_WC macro
831         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
832         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
833         wint_t result into DFA->lex.wctok instead of to a separate arg.
834         All callers changed.  Move more local decls closer to where
835         they're used.
837         dfa: narrow more local var scopes
838         * lib/dfa.c: Move more local decls to be more local.
840         dfa: remove duplicate assignment
841         Problem reported by Bruno Haible in:
842         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
843         * lib/dfa.c (parse_bracket_exp): Simplify.
845 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
847         dfa: simplify constraint-dependency checking
848         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
849         (prev_other_constraint): Remove.
850         (prev_newline_dependent, prev_letter_dependent):
851         Simplify, to avoid an unnecessary bitwise AND operation.
853         dfa: prefer functions and constants to macros
854         * lib/dfa.c: Prefer constants to macros where either will do.
855         (streq, isasciidigit, newline_constraint)
856         (letter_constraint, other_constraint, succeeds_in_context)
857         (prev_newline_constraint, prev_letter_constraint)
858         (prev_other_constraint, prev_newline_dependent)
859         (prev_letter_dependent, accepting, accepts_in_context):
860         Now static functions instead of function-like macros.
861         Use lower-case names accordingly.  All uses changed.
863         dfa: narrow more local var scopes
864         * lib/dfa.c: Move some more local decls down to nearer where
865         they're needed.
867 2016-12-31  Jim Meyering  <meyering@fb.com>
869         dfa: narrow the scope of many local variables
870         * lib/dfa.c: Now that we are no longer constrained to c89, move
871         declarations of many variables (often indices) "down" into the
872         scope(s) where used or to the point of definition.  This is a
873         no-semantic-change diff.
875 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
877         version-etc: new year
878         * build-aux/gendocs.sh (version):
879         * doc/gendocs_template:
880         * doc/gendocs_template_min:
881         * doc/gnulib.texi:
882         * lib/version-etc.c (COPYRIGHT_YEAR):
883         Update copyright dates by hand in templates and the like.
884         * all files: Run 'make update-copyright'.
886 2016-12-31  Eric Blake  <eblake@redhat.com>
888         do-release-commit-and-tag: avoid shell syntax error
889         * build-aux/do-release-commit-and-tag (curr_br): $branch can
890         contain spaces when rebasing.
892         maint.mk: hoist gnulib_dir definition earlier
893         * top/maint.mk (gnulib_dir): Move near top of file.
895 2016-12-31  Jim Meyering  <meyering@fb.com>
897         maint.mk: do not always evaluate intprops-related shell
898         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
899         using gnulib_dir undefined (gnulib_dir is defined later in the
900         file, which will be fixed separately), and besides, there is no
901         need to incur the cost of this shell invocation for every single
902         use of this .mk file.  Reported by Eric Blake in
903         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
905 2016-12-30  Jim Meyering  <meyering@fb.com>
907         maint.mk: improve sc_prohibit_intprops_without_use
908         * top/maint.mk (_intprops_names): Don't hard-code the list of
909         symbol names.  Instead, derive it on the fly.
911 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
913         dfa: shorten sbit, success
914         * lib/dfa.c (struct regex_syntax.sbit):
915         (struct dfa.success): Use char, not int, for array elements, since
916         they are all in the range 0..7.
918         dfa: simplify multibyte_prop etc.
919         This follows up on a change made when dfa.c was in grep, namely grep
920         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
921         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
922         That earlier simplification allows for some more simplification
923         and trimming down here.
924         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
925         (struct lexer_state): New mamber brack.
926         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
927         since they must be in the range 0..3 now.
928         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
929         the brack member now supersedes them.
930         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
931         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
932         (dfaparse): Remove unnecessary initializations of already-0 storage.
933         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
934         (dfassbuild): No need to clear sup->mbcsets.
936         dfa: minor performance tweak
937         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
939         dfa: wrap charclass inside a struct
940         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
941         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
942         about 5% faster, where list.txt is generated by 'aspell dump
943         master | head -n 100000 >list.txt'.  See Bug#22239.
944         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
945         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
946         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
947         Adjust to this, e.g., by using charclass * rather than charclass.
948         All callers changed as needed.
949         (copyset): Remove.  All uses changed to simple assignment.
950         (parse_bracket_exp): Use zeroset instead of memset.
952 2016-12-30  Jim Meyering  <meyering@fb.com>
954         maint.mk: update list of intprops.h symbol names
955         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
956         This avoids a false failure of the sc_prohibit_intprops_without_use
957         rule in grep.
959 2016-12-29  Eric Blake  <eblake@redhat.com>
961         getopt: fix parallel test failure
962         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
963         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
964         * tests/test-getopt-main.h (main): Use different file names
965         in case test-getopt-gnu and test-getopt-posix run in parallel.
967 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
969         xalloc: x2nrealloc check for ptrdiff_t overflow
970         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
971         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
973 2016-12-24  Bruno Haible  <bruno@clisp.org>
975         lock test: Fix performance problem on multi-core machines.
976         * tests/test-lock.c (USE_VOLATILE): New macro.
977         (struct atomic_int): New type.
978         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
979         functions.
980         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
981         as 'struct atomic_int'.
982         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
983         reclock_checker_thread, test_recursive_lock): Use the new functions.
984         Reported by Eric Blake in
985         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
986         and by Pádraig Brady in
987         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
989 2016-12-19  Bruno Haible  <bruno@clisp.org>
991         vma-iter: Fix endless loop on 64-bit Windows.
992         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
993         'unsigned long'.
995 2016-12-19  Bruno Haible  <bruno@clisp.org>
997         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
998         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
999         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
1000         Invoke gt_TYPE_WINT_T instead.
1001         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
1002         * modules/stdint (Files): Add m4/wint_t.m4.
1003         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
1004         * modules/wctype-h (Makefile.am): Likewise.
1005         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
1006         not only on MSVC.
1007         * lib/wctype.in.h (wint_t): Likewise.
1009 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1011         getopt-posix-tests: fix Makefile typo
1012         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
1013         Fix typo: the last ‘_’ was missing in the name.
1014         I suspect that the typo explains this build failure:
1015         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
1016         although I can’t reproduce the problem on Solaris 10 sparc.
1018 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1020         dfa: improve worst-case 'replace' performance
1021         See my note in Bug#22357#71.
1022         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
1023         (merge_constrained): New function, which is like
1024         the old 'merge' function, except with a new argument C2.
1025         Simplify the body by avoiding the need for different sections
1026         of code depending on whether one input is exhausted.
1027         (merge): Use the new function.
1028         (delete): Return the constraint of the deleted position,
1029         not the entire position.  Caller changed.
1030         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
1032 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1034         dfa: performance improvement for removal of epsilon closure
1035         See Bug#22357#32.
1036         * lib/dfa.c (delete): Use binary search to find deleted index.
1037         (replace): New function.  It replaces a position with the followed set.
1038         (epsclosure): Replace it with a new algorithm.  Update caller.
1040 2016-12-18  Bruno Haible  <bruno@clisp.org>
1042         Split tests for getopt-posix and getopt-gnu.
1043         * tests/test-getopt-posix.c: New file.
1044         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
1045         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
1046         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
1047         GNULIB_TEST_GETOPT_GNU.
1048         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
1049         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
1050         (Makefile.am): Test test-getopt-posix instead of test-getopt.
1051         * modules/getopt-gnu-tests: New file.
1052         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
1054 2016-12-18  Bruno Haible  <bruno@clisp.org>
1056         posix-modules: Add options for specific platforms.
1057         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
1058         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
1059         Invoke func_tmpdir. Filter out the excludes.
1061 2016-12-18  Bruno Haible  <bruno@clisp.org>
1063         getopt: Fix link error for users of getopt() in <unistd.h>.
1064         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
1065         __need_getopt is defined. Undefine all macros before defining them.
1066         * modules/getopt (Include): Clarify that including <unistd.h> is also
1067         OK.
1068         * tests/test-getopt.c: Add comment.
1070 2016-12-17  Bruno Haible  <bruno@clisp.org>
1072         getaddrinfo tests: Avoid compilation error on MSVC.
1073         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
1074         getaddrinfo on native Windows.
1076 2016-12-17  Bruno Haible  <bruno@clisp.org>
1078         getlogin, getlogin_r: Fix link errors on MSVC.
1079         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
1080         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
1081         (Link): New section.
1082         * modules/getlogin_r (Files): Add m4/getlogin.m4.
1083         (configure.ac): Require gl_LIB_GETLOGIN.
1084         (Link): New section.
1085         * NEWS: Mention the new link requirements.
1086         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
1087         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
1089 2016-12-17  Bruno Haible  <bruno@clisp.org>
1091         Un-deprecate the 'progname' module.
1092         * NEWS: Describe the appropriate use-cases of 'progname' versus
1093         'getprogname'. Based on discussion summary at
1094         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
1096 2016-12-17  Bruno Haible  <bruno@clisp.org>
1098         Reorganize NEWS a bit.
1099         * NEWS: Move some not so important changes away from section
1100         "Important Notes".
1102 2016-12-17  Bruno Haible  <bruno@clisp.org>
1104         tanhf: Avoid redefinition error on MSVC.
1105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
1106         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
1107         may be defined as an inline function.
1108         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
1109         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
1111 2016-12-17  Bruno Haible  <bruno@clisp.org>
1113         tanf: Avoid redefinition error on MSVC.
1114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
1115         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
1116         may be defined as an inline function.
1117         * modules/math (Makefile.am): Substitute REPLACE_TANF.
1118         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
1120 2016-12-17  Bruno Haible  <bruno@clisp.org>
1122         sqrtf: Avoid redefinition error on MSVC.
1123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
1124         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
1125         may be defined as an inline function.
1126         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
1127         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
1129 2016-12-17  Bruno Haible  <bruno@clisp.org>
1131         sinhf: Avoid redefinition error on MSVC.
1132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
1133         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
1134         may be defined as an inline function.
1135         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
1136         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
1138 2016-12-17  Bruno Haible  <bruno@clisp.org>
1140         sinf: Avoid redefinition error on MSVC.
1141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
1142         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
1143         may be defined as an inline function.
1144         * modules/math (Makefile.am): Substitute REPLACE_SINF.
1145         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
1147 2016-12-17  Bruno Haible  <bruno@clisp.org>
1149         logf: Avoid redefinition error on MSVC.
1150         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
1151         may be defined as an inline function.
1153 2016-12-17  Bruno Haible  <bruno@clisp.org>
1155         log10l: Avoid redefinition error on MSVC.
1156         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
1157         may be defined as an inline function.
1159 2016-12-17  Bruno Haible  <bruno@clisp.org>
1161         log10f: Avoid redefinition error on MSVC.
1162         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
1163         may be defined as an inline function.
1165 2016-12-17  Bruno Haible  <bruno@clisp.org>
1167         hypotl: Avoid redefinition error on MSVC.
1168         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
1169         may be defined as an inline function.
1171 2016-12-17  Bruno Haible  <bruno@clisp.org>
1173         hypotf: Avoid redefinition error on MSVC.
1174         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
1175         may be defined as an inline function.
1177 2016-12-17  Bruno Haible  <bruno@clisp.org>
1179         fmodl: Avoid redefinition error on MSVC.
1180         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
1181         may be defined as an inline function.
1183 2016-12-17  Bruno Haible  <bruno@clisp.org>
1185         fmodf: Avoid redefinition error on MSVC.
1186         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
1187         may be defined as an inline function.
1189 2016-12-17  Bruno Haible  <bruno@clisp.org>
1191         expf: Avoid redefinition error on MSVC.
1192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
1193         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
1194         may be defined as an inline function.
1195         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
1196         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
1198 2016-12-17  Bruno Haible  <bruno@clisp.org>
1200         coshf: Avoid redefinition error on MSVC.
1201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
1202         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
1203         may be defined as an inline function.
1204         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
1205         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
1207 2016-12-17  Bruno Haible  <bruno@clisp.org>
1209         cosf: Avoid redefinition error on MSVC.
1210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
1211         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
1212         may be defined as an inline function.
1213         * modules/math (Makefile.am): Substitute REPLACE_COSF.
1214         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
1216 2016-12-17  Bruno Haible  <bruno@clisp.org>
1218         atan2f: Avoid redefinition error on MSVC.
1219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
1220         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
1221         may be defined as an inline function.
1222         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
1223         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
1225 2016-12-17  Bruno Haible  <bruno@clisp.org>
1227         atanf: Avoid redefinition error on MSVC.
1228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
1229         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
1230         may be defined as an inline function.
1231         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
1232         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
1234 2016-12-17  Bruno Haible  <bruno@clisp.org>
1236         asinf: Avoid redefinition error on MSVC.
1237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
1238         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
1239         may be defined as an inline function.
1240         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
1241         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
1243 2016-12-17  Bruno Haible  <bruno@clisp.org>
1245         acosf: Avoid redefinition error on MSVC.
1246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
1247         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
1248         may be defined as an inline function.
1249         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
1250         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
1252 2016-12-17  Bruno Haible  <bruno@clisp.org>
1254         Avoid redefinition errors on MSVC.
1255         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
1256         the function may be defined as an inline function.
1257         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
1258         the function may be defined as an inline function.
1260 2016-12-17  Bruno Haible  <bruno@clisp.org>
1262         Avoid redefinition errors on MSVC.
1263         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
1264         * lib/unistd.in.h: Include <stdio.h> when necessary.
1266 2016-12-17  Bruno Haible  <bruno@clisp.org>
1268         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
1269         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
1270         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
1271         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
1272         WINT_MAX.
1274 2016-12-17  Bruno Haible  <bruno@clisp.org>
1276         Avoid autoconf warning.
1277         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
1278         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
1280 2016-12-17  Bruno Haible  <bruno@clisp.org>
1282         fpending: Revert workaround against Emacs bug.
1283         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
1284         The Emacs bug is fixed by Eli Zaretskii in
1285         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
1287 2016-12-17  Bruno Haible  <bruno@clisp.org>
1289         getlogin_r tests: Port to mingw.
1290         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
1291         regression introduced on 2014-05-19.
1293 2016-12-17  Bruno Haible  <bruno@clisp.org>
1295         getlogin: Port to newer mingw.
1296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
1297         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
1298         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
1299         HAVE_GETLOGIN.
1300         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
1301         HAVE_GETLOGIN.
1302         * doc/posix-functions/getlogin.texi: Mention the issue.
1303         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
1304         regression introduced on 2014-05-14.
1306 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
1308         builtin-expect: improve port to IBM XL C
1309         Problem reported for z/OS by Daniel Richard G. in:
1310         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
1311         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
1312         Test for <builtins.h> directly.
1314         builtin-expect: port to IBM XL C
1315         Problem reported for z/OS by Daniel Richard G. in:
1316         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
1317         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
1318         Also allow __builtin_expect defined via a standard include file.
1320         regex: fix dependency
1321         Problem reported by Bruno Haible in:
1322         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
1323         * modules/regex: Depend on builtin-expect.
1325         builtin-expect: new module
1326         Fix fnmatch to use it.
1327         Problem reported for z/OS by Daniel Richard G.
1328         * lib/fnmatch.c (__builtin_expect):
1329         * lib/glob.c (__builtin_expect):
1330         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
1331         * lib/memmem.c (__builtin_expect) [!_LIBC]:
1332         * lib/scandir.c (__builtin_expect):
1333         * lib/strstr.c (__builtin_expect) [!_LIBC]:
1334         Remove macro; config.h now does this.
1335         * lib/gl_anytreehash_list1.h (add_to_bucket):
1336         * lib/regex_internal.h (BE):
1337         Assume __builtin_expect.
1338         * m4/builtin-expect.m4, modules/builtin-expect: New files.
1339         * modules/avltreehash-list, modules/fnmatch, modules/glob:
1340         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
1341         * modules/scandir, modules/strstr-simple:
1342         Depend on builtin-expect.
1344 2016-12-15  Bruno Haible  <bruno@clisp.org>
1346         init.sh: Add possibility to not delete temporary files.
1347         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
1348         to yes, don't erase the temporary directory.
1350 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
1352         regex: fix integer-overflow bug in never-used code
1353         Problem reported by Clément Pit–Claudel in:
1354         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
1355         * lib/regex_internal.h: Include intprops.h.
1356         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
1357         behavior on integer overflow.
1358         * modules/regex (Depends-on): Add intprops.
1360         fpending: fix port to MinGW on Emacs
1361         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
1362         Problem reported by Eli Zaretskii in:
1363         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
1364         Is Plan 9 still a valid porting target, anyway?
1366 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1368         safe-alloc: use xalloc-oversized
1369         * lib/safe-alloc.c: Include xalloc-oversized.h.
1370         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
1371         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
1373         xalloc: do not exceed PTRDIFF_MAX
1374         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
1375         xalloc_oversized check, since objects larger than PTRDIFF_MAX
1376         bytes have pointer-subtraction problems.
1378         malloca: do not exceed PTRDIFF_MAX
1379         * lib/malloca.h: Include xalloc-oversized.
1380         (nmalloca): Use xalloc_oversized instead of rolling our own.
1381         * modules/malloca (Depends-on):
1382         * modules/relocatable-prog-wrapper (Depends-on):
1383         Add xalloc-oversized.
1385         quotearg: pacify GCC better
1386         * modules/quotearg (Depends-on): Add minmax, stdint.
1387         * lib/quotearg.c: Include minmax.h, stdint.h.
1388         (nslots): Now int, as there seems little point to going to extra
1389         work merely to support the INT_MAX slot, which nobody ever uses.
1390         (quotearg_n_options): Redo size-overflow checks to pacify GCC
1391         and to catch (mostly-theoretical) ptrdiff_t problems too.
1392         This can be done via one comparison.
1394 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
1396         xalloc-oversized: check for PTRDIFF_MAX too
1397         This avoids undefined behavior when subtracting pointers to
1398         objects containing more than PTRDIFF_MAX bytes.
1399         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
1400         Also return 1 if the result would exceed PTRDIFF_MAX>
1401         * modules/xalloc-oversized (Depends-on):
1402         Add stdint.
1404         dfa: fix glitches in previous commit
1405         Sorry, I don't know how I managed to commit the wrong version.
1406         * lib/dfa.c (MIN): Move up.
1407         (xpalloc): Now static.
1409         dfa: fix some unlikely integer overflows
1410         I found these while reviewing the recent Coverity-related fix.
1411         This patch changes part of dfa.c to prefer ptrdiff_t instead of
1412         size_t for object counts.  Using ptrdiff_t is the style typically
1413         used in Emacs; although it wastes a sign bit as sizes can never be
1414         negative, it makes -fsanitize=undefined more likely to catch
1415         integer overflows in index calculation, and nowadays the upside is
1416         typically more important than the downside.  Although perhaps the
1417         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
1418         of dfa.c already does, since it uses state_num which is signed),
1419         that is a bigger change and is not needed to fix the bugs I found.
1420         * lib/dfa.c: Include stdint.h and intprops.h.
1421         (TOKEN_MAX): New macro.
1422         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
1423         (charclass_index, parse_bracket_exp, addtok, insert, merge)
1424         (realloc_trans_if_necessary, free_mbdata):
1425         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
1426         This is safe because xpalloc checks that the sizes do not exceed
1427         either SIZE_MAX or PTRDIFF_MAX.
1428         (xpalloc): New function, mostly taken from Emacs.
1429         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
1430         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
1431         (charclass_index): Check for integer overflow in computing
1432         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
1433         added to it later.
1434         (alloc_position_set): Check for integer overflow.  On typical
1435         platforms this check has zero overhead, since the constant
1436         expression is false.
1437         (realloc_trans_if_necessary):
1438         Remove assertion, which I hope Coverity no longer needs.
1440         * modules/dfa (Depends-on): Add intprops, stdint.
1442 2016-12-12  Jim Meyering  <meyering@fb.com>
1444         dfa: add an assertion to avoid coverity false positive
1445         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
1446         warned that "newalloc1 - 2" could overflow.
1448 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
1450         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
1451         * dfa.h (DFA_CASE_FOLD): Remove.
1452         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
1454 2016-12-13  John W. Eaton  <gnu@jweaton.org>
1456         link: fix test to declare use of rename()
1457         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
1458         -Werror=implicit-function-declaration
1460 2016-12-12  Bruno Haible  <bruno@clisp.org>
1462         fpending: Port to native Windows with MSVC.
1463         * lib/fpending.c: Include stdio-impl.h.
1464         (__fpending): Include all known implementations. Err out if it's not
1465         ported.
1466         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
1467         * modules/fpending (Files): Add lib/stdio-impl.h.
1468         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
1470 2016-12-12  Bruno Haible  <bruno@clisp.org>
1472         stdioext: Port to native Windows with MSVC.
1473         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
1474         (struct _gl_real_FILE): New type.
1475         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
1476         Windows.
1477         * lib/fbufmode.c (fbufmode): Add code for native Windows.
1478         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
1479         other SystemV derived implementations.
1480         * lib/fpurge.c (fpurge): Likewise.
1481         * lib/freadable.c (freadable): Likewise.
1482         * lib/freadahead.c (freadahead): Likewise.
1483         * lib/freading.c (freading): Likewise.
1484         * lib/freadptr.c (freadptr): Likewise.
1485         * lib/freadseek.c (freadptrinc): Likewise.
1486         * lib/fseeko.c (fseeko): Likewise.
1487         * lib/fseterr.c (fseterr): Likewise.
1488         * lib/fwritable.c (fwritable): Likewise.
1489         * lib/fwriting.c (fwriting): Likewise.
1490         Reported by Gisle Vanem <gvanem@yahoo.no>.
1492 2016-12-11  Jim Meyering  <meyering@fb.com>
1494         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
1495         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
1496         to work with most shells, but not with the one provided by many
1497         Solaris 10 systems, so running configure with such a /bin/sh evokes
1498         e.g., "./configure: syntax error at line 33602: `(' unexpected".
1499         Reported by Assaf Gordon in
1500         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
1502 2016-12-10  Bruno Haible  <bruno@clisp.org>
1504         threadlib: Optimize out runtime test on Solaris >= 10.
1505         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
1506         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
1507         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
1509 2016-12-10  Bruno Haible  <bruno@clisp.org>
1511         stdint: Update doc about Solaris 9.
1512         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
1514 2016-12-09  Bruno Haible  <bruno@clisp.org>
1516         c-ctype tests: Fix link error on Solaris 9.
1517         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
1518         Reported at <https://savannah.gnu.org/bugs/?46827>.
1520 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
1522         dfa: fix performance bug that recomputes trans
1523         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
1524         25 on-demand changes.  The bug caused build_state to reset all
1525         d->trans elements to -2 even when d->trans was already non-null.
1526         Use C99 style decls after statements in this function.
1528         same-inode: port to MinGW
1529         Here st_ino is always 0, so change the definition of SAME_INODE so
1530         that 1 means the two files are the same, 0 with st_ino != 0 means
1531         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
1532         reported by Bruno Haible (Bug#25146).
1533         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
1534         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
1536 2016-12-04  Bruno Haible  <bruno@clisp.org>
1538         javacomp: Support Java 7 and 8.
1539         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
1540         target-version 1.7, 1.8.
1542 2016-12-02  Daiki Ueno  <ueno@gnu.org>
1544         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
1545         GPLv2" rewriting.
1547 2016-12-02  Nikos Mavrogiannopoulos <nmav@gnutls.org>
1549         * gnulib-tool (func_import): Adhere to the license guideline when
1550         rewriting the license text to "LGPLv3+ or GPLv2":
1551         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
1553 2016-12-02  Bruno Haible  <bruno@clisp.org>
1555         localcharset: Avoid theoretical buffer overrun.
1556         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
1557         return value from setlocale if it would lead to a buffer overrun.
1559 2016-12-01  Bruno Haible  <bruno@clisp.org>
1561         Relicense some modules under LGPLv2+.
1562         Kevin Cernekee's approval is in
1563         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
1564         * modules/fseterr (License): Change to LGPLv2+.
1565         * modules/mbchar (License): Likewise.
1566         * modules/mbiter (License): Likewise.
1567         * modules/mbsnlen (License): Likewise.
1568         * modules/wcwidth (License): Likewise.
1570 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1572         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
1573         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
1574         OS/2 kLIBC.
1576 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1578         alphasort, scandir: Port to OS/2 kLIBC
1579         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
1580         declaration.
1581         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
1583 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1585         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
1586         * lib/relocatable.c (relocate): Do not touch pathname if it is started
1587         with '/@unixroot'.
1589 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1591         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
1592         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
1593         OS/2 kLIBC unless TCPV40HDRS is defined.
1595 2016-11-29  Jim Meyering  <meyering@fb.com>
1597         dfa: avoid new infinite loop
1598         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
1599         * lib/dfa.c (dfastate): When constructing a new state table, we could
1600         initially declare that we had found a match, and later find that
1601         constraints eliminate that possibility, yet continue to use the
1602         now stale "matched" indicator.  That would lead to an infinite loop.
1603         The solution is to update "matched" when necessary.
1604         Introduced by commit v0.1-983-g403adf1.
1606 2016-11-27  Norihiro Tanaka <noritnk@kcn.ne.jp>
1608         dfa: avoid match middle in multibyte character
1609         * lib/dfa.c (transit_state): If fails in matching single byte characters
1610         on a state including period expression in non-UTF8 multibyte locales,
1611         skip trailing bytes.
1612         (dfa_supported): Revert previous change.
1614 2016-11-27  Jim Meyering  <meyering@fb.com>
1616         dfa: avoid false match in non-UTF8 multibyte locales
1617         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
1618         as "not supported" so that callers will resort to using regex-based
1619         matcher.  This will surely hurt performance, but correctness trumps
1620         performance here, and the affected locales are less and less relevant,
1621         these days.  See grep's bug report https://bugs.gnu.org/24975.
1623 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
1625         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
1626         * lib/ptsname_r.c: Include the appropriate headers.
1627         [__sun]: Delete sys/sysmacros.h include.
1628         [_AIX || __osf__]: Likewise.
1629         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
1631 2016-11-27  Pádraig Brady  <P@draigBrady.com>
1633         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
1634         * lib/md4.c (md4_process_bytes): The existing define is made internal
1635         in recent versions of glibc, so also use this new public define.
1636         * lib/md5.c (md5_process_bytes): Likewise.
1637         * lib/sha1.c (sha1_process_bytes): Likewise.
1638         * lib/sha256.c (sha256_process_bytes): Likewise.
1639         * lib/sha512.c (sha512_process_bytes): Likewise.
1641 2016-11-27  Pádraig Brady  <P@draigBrady.com>
1643         maint: use a more standard return from mbrtowc test
1644         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
1645         from the test program as this often indicates an
1646         unhandled case in the test program.
1647         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
1648         (gl_MBRTOWC_SANITYCHECK): Likewise.
1649         (gl_MBRTOWC_NULL_ARG2): Likewise.
1650         (gl_MBRTOWC_NUL_RETVAL): Likewise.
1652 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
1654         freopen: work around glibc bug with closed fd
1655         Work around glibc bug#15589, where freopen mishandles the case
1656         where stdin etc. are already closed.
1657         * doc/posix-functions/freopen.texi (freopen): Document the bug.
1658         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
1659         instead of __need_FILE, as the latter does not work with glibc.
1660         Include <fcntl.h>, for open flags.
1661         (rpl_freopen): Work around glibc bug.
1662         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
1663         * modules/freopen (Depends-on): Add fcntl-h.
1664         * tests/test-freopen.c (main): Test for bug.
1666 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1668         fnmatch: fix typo introduced on 2016-08-17
1669         This fixes the port to non-GCC compilers that lack __builtin_expect.
1670         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
1672         dfa: simplify with new function fillset
1673         * lib/dfa.c (fillset): New function.
1674         Use it for clarity when applicable.
1676         dfa: fix glitches with on-demand states
1677         Also, adjust commentary to better match new code.
1678         Some of these glitches predate the recent change.
1679         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
1680         only non-initial states.
1681         (dfastate): Rename locals to better match new roles.
1682         Move them into nested scopes if this is easy.
1683         Omit unnecessary calls to zeroset.
1684         Simplify test for whether to throw in the positions of state 0.
1685         Omit C99-ism (decl after statement) since Gawk still wants C89.
1686         (build_state): Omit unnecessary test and assignment.
1687         Fix some confusion that counted transition tables inaccurately
1688         and could cause a memory leak.
1689         (dfaexec_main): Redo to make it clearer to the compiler that
1690         -1 and -2 are the only negative state numbers here.
1692 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1694         dfa: addition of new state on demand
1695         * src/dfa.c (dfastate): Add argument UC, the current input character.
1696         Fill only a group including the character in transition table.
1697         (realloc_trans_if_necessary): Add the dummy state which means that a
1698         transition table is assigned but the next state is not assigned.
1699         (build_state): Return the next state.  All callers updated.
1700         (transit_state_singlebyte): If we get the dummy state,
1701         fill the transition table.
1702         (dfaexec_main): Handle the dummy state.
1703         (free_mbdata, dfafree): Consider the dummy state.
1705 2016-11-24  Daiki Ueno  <ueno@gnu.org>
1707         srclist: sync with released gettext
1708         * config/srclist.txt: Set "release" option to the files under
1709         $GETTEXT.
1711 2016-11-24  Daiki Ueno  <ueno@gnu.org>
1713         srclist: add "release" option
1714         * config/srclist.txt: Change the format so that the first column
1715         of each line points to the top-level directory of the source
1716         archive.
1717         * config/srclist-update: Accept "release" option that checks files
1718         from the most recently tagged revision in the source archive.
1720 2016-11-21  Bruno Haible  <bruno@clisp.org>
1722         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
1723         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
1724         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
1725         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
1726         Inline and remove member function 'rpl ()' of the wrapper struct.
1728 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1730         dfa: fix logic typo
1731         Problem reported by Stephane Chazelas (Bug#24973).
1732         * lib/dfa.c (using_simple_locale): Fix typo that caused some
1733         non-simple locales like fr_FR to be treated as simple.
1735 2016-11-20  Jim Meyering  <meyering@fb.com>
1737         fix test driver leaks: exclude, malloc, realloc
1738         * tests/test-exclude.c (main): Fix trivial leak.
1739         * tests/test-malloc-gnu.c (main): Likewise.
1740         * tests/test-realloc-gnu.c (main): Likewise.
1741         With these changes, grep's tests are now leak free.
1742         I.e., running them with ASAN elicits no failure:
1743           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
1744             AM_LDFLAGS='-fsanitize=address -static-libasan' check
1746 2016-11-11  Bruno Haible  <bruno@clisp.org>
1748         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
1749         * modules/libunistring: (License): Change from LGPL to
1750         "LGPLv3+ or GPLv2".
1751         * modules/libunistring-optional: Likewise.
1752         * modules/unicase/*: Likewise.
1753         * modules/uniconv/*: Likewise.
1754         * modules/unictype/*: Likewise.
1755         * modules/unigbrk/*: Likewise.
1756         * modules/unilbrk/*: Likewise.
1757         * modules/uniname/*: Likewise.
1758         * modules/uninorm/*: Likewise.
1759         * modules/unistdio/*: Likewise.
1760         * modules/unistr/*: Likewise.
1761         * modules/uniwbrk/*: Likewise.
1762         * modules/uniwidth/*: Likewise.
1764 2016-11-12  Bruno Haible  <bruno@clisp.org>
1766         Relicense some modules under LGPLv2+.
1767         Paul Eggert's approval is in
1768         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
1769         Eric Blake's approval is in
1770         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
1771         Ludovic Courtès's approval is in
1772         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
1773         * modules/isnand-nolibm (License): Change to LGPLv2+.
1774         * modules/isnanf-nolibm (License): Likewise.
1775         * modules/isnanl-nolibm (License): Likewise.
1777 2016-11-19  Bruno Haible  <bruno@clisp.org>
1779         Relicense some modules under LGPLv2+.
1780         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
1781         modules/vasnprintf.
1782         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
1783         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
1784         All other significant changes to the files in lib/ of these modules
1785         are from me.
1786         * modules/memcmp2 (License): Change to LGPLv2+.
1787         * modules/amemxfrm (License): Likewise.
1788         * modules/fpieee (License): Likewise.
1789         * modules/fpucw (License): Likewise.
1790         * modules/frexp-nolibm (License): Likewise.
1791         * modules/frexpl-nolibm (License): Likewise.
1792         * modules/printf-frexp (License): Likewise.
1793         * modules/printf-frexpl (License): Likewise.
1794         * modules/printf-safe (License): Likewise.
1795         * modules/signbit (License): Likewise.
1797 2016-11-17  Bruno Haible  <bruno@clisp.org>
1799         Enable Unicode decoder safety unconditionally.
1800         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
1801         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
1802         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1803         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1804         * lib/unistr/u8-prev.c (u8_prev): Likewise.
1805         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
1806         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
1807         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
1808         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
1809         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
1810         * lib/unistr/u16-prev.c (u16_prev): Likewise.
1811         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
1812         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
1813         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
1814         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
1815         * lib/unistr/u32-prev.c (u32_prev): Likewise.
1816         * lib/unistr/u32-next.c (u32_next): Likewise.
1817         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
1818         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
1819         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
1820         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
1821         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
1822         CONFIG_UNICODE_SAFETY tests unconditionally.
1823         * tests/unistr/test-u32-mblen.c (main): Likewise.
1824         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
1825         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
1826         * tests/unistr/test-u32-next.c (main): Likewise.
1827         * tests/unistr/test-u32-strmblen.c (main): Likewise.
1828         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
1829         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
1830         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
1831         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
1832         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1833         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
1834         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
1835         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
1836         * lib/unistr/u16-check.c (u16_check): Update comment.
1837         * NEWS: Mention the changes that callers should be aware of.
1839 2016-11-19  Bruno Haible  <bruno@clisp.org>
1841         relocatable-prog-wrapper: Fix breakage on Cygwin.
1842         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
1843         (Depends-on): Remove intprops.
1844         * lib/relocwrapper.c: Update dependency tree.
1845         (strerror): Undefine.
1846         * build-aux/install-reloc (func_create_wrapper): Do not compile
1847         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
1849 2016-11-19  Bruno Haible  <bruno@clisp.org>
1851         strerror: Make it compile in C++ mode.
1852         * lib/strerror.c (strerror): Ignore the return value of memcpy().
1854 2016-11-15  Pedro Alves  <palves@redhat.com>
1856         sys_time: add gnulib::timeval for C++
1857         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
1858         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
1859         timeval macro.
1861 2016-11-14  Pedro Alves  <palves@redhat.com>
1863         snippet/c++defs: fix real-floating arg functions in C++ mode
1864         Also, define isfinite, isinf, isnan, signbit in the gnulib
1865         namespace instead of in the global namespace.
1866         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
1867         (_GL_END_NAMESPACE): New.
1868         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
1869         (isfinite, isinf, isnan, signbit) [__cplusplus &&
1870         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
1871         instead of in the global namespace.
1872         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
1873         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
1874         of in the global namespace.
1876 2016-11-13  Jim Meyering  <meyering@fb.com>
1878         strftime: don't use __THROW
1879         Each use of __THROW would provoke this from gcc-7-to-be:
1881           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
1882             on unit local functions [-Wattributes]
1883           static int iso_week_days (int, int) __THROW;
1884           ^~~~~~
1885         * lib/strftime.c (__THROW): Don't define.
1886         Remove each use of __THROW.
1887         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
1888         (tm_diff, iso_week_days, __strftime_internal): Likewise.
1890 2016-11-14  Paul Eggert  <eggert@union>
1892         obstack: port to gcc -fcheck-pointer-bounds
1893         Problem found by 'make check' failure on bleeding-edge coreutils
1894         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
1895         6.2.0-5ubuntu12), configured via "./configure
1896         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
1897         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
1898         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
1899         New macro, copied from fts_.h.
1900         (struct _obstack_chunk.contents): Use it.
1902 2016-11-14  Eric Blake  <eblake@redhat.com>
1904         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
1905         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
1906         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
1908 2016-11-14  Pádraig Brady  <P@draigBrady.com>
1910         strptime: fix compile error in recent change
1911         * lib/strptime.c (__strptime_internal): Fix ported code.
1913 2016-11-11  Bruno Haible  <bruno@clisp.org>
1915         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
1916         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
1917         (func_import): Extend determination of license_incompatibilities.
1918         (func_create_testdir): Extend table of license compatibility. Handle
1919         also the licenses GPLv3+, GPL, LGPLv3+.
1921 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1923         strftime: tune %q
1924         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
1926         Merge strftime.c changes from glibc
1927         This incorporates:
1928         2007-10-16 [BZ #5184] Add tzset_called argument
1929         2008-06-13 [BZ #6612] pass reference to tzset_called around
1930         2009-10-30 Implement Burmese language locale for Myanmar
1931         2010-01-09 Add support for XPG7 testing
1932         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
1933         2015-10-20 Convert miscellaneous function definitions to prototype style
1934         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
1935         it anyway and this lessens the difference between gnulib and glibc.
1936         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
1937         (__THROW): Define if standard headers do not.
1938         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
1939         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
1940         Declare with __THROW.
1941         (__strftime_internal): Rename from strftime_case_. Add arg for
1942         whether tzset is called.  All uses changed.  Call tzset at most
1943         once.  Allow %OC, for Burmese.
1944         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
1945         Don't assume values are in range.
1947 2016-11-12  Eric Blake  <eblake@redhat.com>
1949         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
1950         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
1951         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
1952         different value.
1954 2006-11-12  Pedro Alves  <palves@redhat.com>
1956         Fix gnulib C++ namespace support and std::frexp
1957         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
1958         _GL_CXXALIASWARN.
1960 2006-11-12  Pedro Alves  <palves@redhat.com>
1962         GNULIB_NAMESPACE::func need not pull in rpl_func
1963         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
1964         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
1965         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
1966         struct instead of a function pointer.
1968 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
1970         manywarnings: fix -Wno-missing-field-initializers detection
1971         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
1972         to be independent of -Wunused-variable.  I.E. ensure the latter
1973         warning doesn't occur so that detection of the former is accurate.
1975 2016-11-05  Pádraig Brady  <pbrady@fb.com>
1977         strftime,strptime: support %q to represent the quarter
1978         * lib/strftime.c (strftime_case_): Add %q case.
1979         * lib/strptime.c (__strptime_internal): Likewise.
1980         * tests/test-strftime.c (quarter_test): A new test case.
1982 2016-11-03  Eric Blake  <eblake@redhat.com>
1984         bootstrap: Fix get_version() for AIX 5.3
1985         * build-aux/bootstrap (get_version): Factor out sed script, since
1986         indented comments choke AIX 5.3 sed.
1987         Reported-by: Michael Felt <aixtools@gmail.com>
1989 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1991         intprops: port to older XL C
1992         Problem reported by Alexander Samoilov in:
1993         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
1994         http://savannah.nongnu.org/bugs/?49448
1995         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
1996         Define to 1 only for XL C 12.1 or later, since this bug
1997         occurs in XL C for AIX 6.0 but not in 12.1.
1999 2016-11-02  Pádraig Brady  <P@draigBrady.com>
2001         backupfile: initialize default suffix within the implementation
2002         * lib/backupfile.c (find_backup_file_name): Initialize the
2003         global variable here, to simplify usage, and to only call
2004         getenv() when needed.
2006 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2008         futimens: remove FIXME for old Linux kernels
2009         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
2010         this in 2012" FIXME, like that for utimensat.
2012         utimensat: remove FIXME for old Linux kernels
2013         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
2014         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
2015         this in 2012" FIXME, by assuming the file system bug is absent
2016         unless demonstrated to be present.  We no longer need to worry
2017         about Linux kernel 2.6.32 when building with newer kernels.
2019 2016-10-16  Bruno Haible  <bruno@clisp.org>
2021         qsort_r: Fix macrology for platforms that lack the function.
2022         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
2023         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
2024         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
2025         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
2026         not exist.
2027         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
2028         the function exists.
2029         * modules/qsort_r: Add comments.
2031 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2033         sys_types: fix Texinfo typos
2034         * doc/glibc-functions/gnu_dev_major.texi:
2035         * doc/glibc-functions/gnu_dev_makedev.texi:
2036         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
2038 2016-10-26  John David Anglin  <dave.anglin@bell.net>
2040         getprogname: port to HP-UX
2041         See Bug#24805.
2042         * lib/getprogname.c (getprogname) [__hpux]: Port.
2043         * tests/test-getprogname.c (STREQ) [__hpux]:
2044         Special-case for HP-UX limitations on program name length.
2046 2016-10-20  Bruno Haible  <bruno@clisp.org>
2048         Update doc about target platforms.
2049         * doc/gnulib-intro.texi (Target Platforms): Update list.
2051 2016-10-15  Bruno Haible  <bruno@clisp.org>
2053         opendir, readdir, closedir: Relicense under LGPLv2+.
2054         * modules/opendir (License): Change to LGPLv2+.
2055         * modules/readdir (License): Likewise.
2056         * modules/closedir (License): Likewise.
2058 2016-10-16  Bruno Haible  <bruno@clisp.org>
2060         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
2061         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
2062         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
2063         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
2064         HAVE_DECL_STRERROR_R.
2066 2016-10-16  Bruno Haible  <bruno@clisp.org>
2068         Make the 'argp' module work without the 'error' module.
2069         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
2071 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2073         diffseq: restore TOO_EXPENSIVE heuristic
2074         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
2075         (Bug#24715).  The simplest solution is to restore the
2076         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
2077         using a higher threshold to avoid Bug#16848 on smaller files.
2078         * lib/diffseq.h (struct context): Restore member too_expensive.
2079         (struct partition): Restore members lo_minimal, hi_minimal.
2080         (diag, compareseq): Restore arg find_minimal.  All uses changed.
2081         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
2082         1993 to make 'diff' run faster (but not as well) on large inputs,
2083         but use a threshold of 4096 instead of the old 256.
2084         * lib/fstrcmp.c (strcmp_bounded):
2085         * lib/git-merge-changelog.c (compute_differences):
2086         Adjust to diffseq.h changes.
2088 2016-10-22  Bruno Haible  <bruno@clisp.org>
2090         iconv: Avoid compilation error when bootstrapping GNU libiconv.
2091         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
2092         declaration yet, define ICONV_CONST to empty.
2094 2016-10-15  Bruno Haible  <bruno@clisp.org>
2096         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
2097         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
2098         module.
2100 2016-10-16  Bruno Haible  <bruno@clisp.org>
2102         system-quote tests: Avoid compiler warning on AIX.
2103         * tests/test-system-quote-child.c (fopen): Redefine like the system's
2104         <stdio.h> does.
2106 2016-10-16  Bruno Haible  <bruno@clisp.org>
2108         Fix some "gcc -Wall" warnings.
2109         * tests/test-ffsl.c (main): Use variable x, not i.
2110         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
2111         freopen.
2112         * tests/test-sethostname1.c (main): Explicitly ignore the return value
2113         of sethostname.
2115 2016-10-16  Bruno Haible  <bruno@clisp.org>
2117         gnulib-tool: Make --create-testdir on all modules work again.
2118         * gnulib-tool (func_create_testdir): Don't include the
2119         non-recursive-gnulib-prefix-hack module.
2121 2016-10-21  Daiki Ueno  <ueno@gnu.org>
2123         libunistring: change the maintainer to 'all'
2124         * modules/gen-uni-tables, modules/libunistring:
2125         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
2126         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
2127         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
2128         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
2129         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
2130         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
2131         * modules/uniwidth/*: Change the maintainer to 'all'.
2133 2016-10-16  Bruno Haible  <bruno@clisp.org>
2135         Simplify "configure: checking ..." messages.
2136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
2137         AC_MSG_NOTICE.
2138         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2140 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
2142         quotearg-tests: pacify gcc -Wall
2143         Problem reported by Bruno Haible in:
2144         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
2145         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
2146         * tests/test-quotearg.h: ... from here.
2148 2016-10-20  Pádraig Brady  <P@draigBrady.com>
2150         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
2151         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
2152         Needed on Centos <= 4.
2154 2016-10-20  Jim Meyering  <meyering@fb.com>
2156         printf.m4: fix a bug in detecting printf %j support
2157         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
2158         uintmax_t is defined in neither stdint.h nor inttypes.h.
2159         Before, this macro might have mistakenly set
2160         gl_cv_func_printf_sizes_c99=yes on such a system.
2161         Spotted by Zev Weiss.
2163 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2165         sched: substitute HAVE_SYS_CDEFS_H too
2166         Problem reported by Tom G. Christensen in:
2167         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
2168         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
2169         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
2171 2016-10-19  Pádraig Brady  <P@draigBrady.com>
2173         quotearg: never write beyond the returned length
2174         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
2175         scan of the string when we initially encounter a single quote when
2176         shell quoting, so that if we then switch to a more concise quoting method
2177         we will not have written beyond that returned length.
2178         This is significant for sh-quote, which has separate routines
2179         to determine the length and do the actual quoting.
2180         * tests/test-quotearg.h: Reinstate the buffer bounds checking
2181         now that we never write more than the returned length.
2183 2016-10-18  Bruno Haible  <bruno@clisp.org>
2185         getprogname tests: Avoid failure in packages that use libtool.
2186         * tests/test-getprogname.c (main): Strip "lt-" prefix.
2187         Based on a patch by Jim Meyering.
2189 2016-10-16  Bruno Haible  <bruno@clisp.org>
2191         getprogname: Fix test failure on Cygwin. Comments.
2192         * lib/getprogname.h: Add comments.
2193         * lib/getprogname.c: Add comments. Fix #elif indentation.
2194         * tests/test-getprogname.c (main): On Cygwin, expect a result without
2195         ".exe" suffix.
2197 2016-10-16  Bruno Haible  <bruno@clisp.org>
2199         Make sure the libunistring detection rejects older versions with a
2200         known bug.
2201         * modules/unistr/u8-strtok (configure.ac): Bump required version.
2202         * modules/unistr/u16-strtok (configure.ac): Likewise.
2203         * modules/unistr/u32-strtok (configure.ac): Likewise.
2205 2016-10-18  Bruno Haible  <bruno@clisp.org>
2207         sh-quote, system-quote: revert regression of unit test.
2208         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
2209         * tests/test-system-quote-main.c (check_one): Likewise.
2211 2016-10-16  Pádraig Brady  <P@draigBrady.com>
2213         quotearg: fix stale tests
2214         * tests/test-quotearg.c [locale_results]: Add the missing str7
2215         entries to the expected results.
2216         * tests/test-system-quote-main.c (check_one): Don't enforce that we
2217         don't write beyond the returned length, since that's no longer the
2218         case if we switch to a more concise quoting style.
2219         * tests/test-sh-quote.c (check_one): Likewise.
2220         (main): Adjust for the new more concise quoting style.
2221         Reported by Bruno Haible.
2223 2016-10-16  Jim Meyering  <meyering@fb.com>
2225         non-recursive-gnulib-prefix-hack: fix inconsequential typo
2226         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
2227         to "$1".  This macro is always invoked with $1 == lib.
2228         Spotted by Bruno Haible
2230 2016-10-16  Bruno Haible  <bruno@clisp.org>
2232         Fix a test crash.
2233         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
2234         fails.
2236 2016-10-16  Pádraig Brady  <P@draigBrady.com>
2238         test-limits-h: suppress -Woverlength-strings
2239         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
2241 2016-10-15  Bruno Haible  <bruno@clisp.org>
2243         gettime, timespec, utimens: Relicense under LGPL.
2244         * modules/gettime (License): Change to LGPL.
2245         * modules/timespec (License): Likewise.
2246         * modules/utimens (License): Likewise.
2248 2016-10-14  Bruno Haible  <bruno@clisp.org>
2249             Pádraig Brady  <P@draigBrady.com>
2251         canonicalize-lgpl: Support the case path_max > INT_MAX.
2252         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
2253         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
2255 2016-10-13  Jim Meyering  <meyering@fb.com>
2257         getprogname: IBM z/OS: avoid NULL-dereference
2258         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
2259         upon strdup failure.
2261 2016-10-12  Jim Meyering  <meyering@fb.com>
2263         test-stdint: use _GL_VERIFY rather than "verify" for some tests
2264         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
2265         and an abbreviated diagnostic rather than verify with the full one,
2266         because the full-length strings would evoke warnings from gcc with
2267         -Woverlength-strings.
2269 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
2271         stdint: port SIZE_MAX to glibc s390
2272         Problem reported by Eric Blake in:
2273         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
2274         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
2275         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
2276         correct type, if possible.
2278 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
2280         getprogname: port to IBM z/OS
2281         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
2283 2016-10-11  Jim Meyering  <meyering@fb.com>
2285         maint: remove stray space after "." in AC_DEFINE comment.
2286         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
2287         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2289 2016-10-05  Jim Meyering  <meyering@fb.com>
2291         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
2292         * lib/long-options.c (parse_long_options): Add a break statement
2293         to avoid this new warning/failure:
2294         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
2295           --create-testdir --dir=/t/x --with-tests --test long-options
2296         ../../gllib/long-options.c: In function 'parse_long_options':
2297         ../../gllib/long-options.c:66:12: error: this statement may \
2298           fall through [-Werror=implicit-fallthrough]
2299                    (*usage_func) (EXIT_SUCCESS);
2300                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
2302 2016-10-05  Jim Meyering  <meyering@fb.com>
2304         utimecmp: avoid new GCC 7 warning from -Wbool-operation
2305         Testing this module would fail when using GCC 7 like this:
2306         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
2307           --dir=/tmp/x --with-tests --test utimecmp
2308         ../../gllib/utimecmp.c: In function ‘utimecmp’:
2309         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
2310           [-Werror=bool-operation]
2311                          time_t s = src_s & ~ (res == 2 * BILLION);
2312                                             ^
2313         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
2314           [-Werror=bool-operation]
2315                src_s &= ~ (res == 2 * BILLION);
2316                         ^
2317         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
2318         Instead, make it explicit that we intend to apply it to 0 or 1.
2320 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2322         dfa: save memory for states
2323         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
2324         states if dfa has a lot of caches.
2326 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
2328         wchar, wctype-h: fix for MinGW 3.22.2
2329         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
2330         special invocation, to fix issues with MinGW 3.22.2 wchar.h
2331         when included from <string.h>.
2332         * lib/wctype.in.h [__MINGW32__]: Add special invocation
2333         convention for MinGW 3.22.2, to solve issues with their
2334         wctype.h when included from <ctype.h>.
2336 2016-10-05  Jim Meyering  <meyering@fb.com>
2338         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
2339         * lib/long-options.c (parse_long_options): Add a break statement
2340         to avoid this new warning/failure:
2341         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
2342           --create-testdir --dir=/t/x --with-tests --test long-options
2343         ../../gllib/long-options.c: In function ‘parse_long_options’:
2344         ../../gllib/long-options.c:66:12: error: this statement may \
2345           fall through [-Werror=implicit-fallthrough]
2346                    (*usage_func) (EXIT_SUCCESS);
2347                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
2349         utimecmp: avoid new GCC 7 warning from -Wbool-operation
2350         Testing this module would fail when using GCC 7 like this:
2351         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
2352           --dir=/tmp/x --with-tests --test utimecmp
2353         ../../gllib/utimecmp.c: In function ‘utimecmp’:
2354         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
2355           [-Werror=bool-operation]
2356                          time_t s = src_s & ~ (res == 2 * BILLION);
2357                                             ^
2358         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
2359           [-Werror=bool-operation]
2360                src_s &= ~ (res == 2 * BILLION);
2361                         ^
2362         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
2363         Instead, make it explicit that we intend to apply it to 0 or 1.
2365 2016-10-03  Pádraig Brady  <P@draigBrady.com>
2367         quotearg: minimize shell quoting using double quotes
2368         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
2369         quote in encountered then use double quotes (c style quoting)
2370         when possible, as it simplifies the quoting.
2371         * tests/test-quotearg-simple.c: Add test cases.
2372         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
2373         for the fact we now may write beyond the returned length.
2375 2016-10-02  Jim Meyering  <meyering@fb.com>
2377         vasnprintf.c: avoid spurious warning from GCC 7
2378         The presence of cpp directives renders this "FALLTHROUGH" comment
2379         ineffective, so does not suppress the -Wimplicit-fallthrough warning
2380         from GCC 7 built from git on 2016-10-02.
2381         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
2382         directives, so that it takes effect once again.  This is clearly
2383         not a proper change, and I will revert it once this bug is fixed:
2384         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
2386 2016-10-01  Jim Meyering  <meyering@fb.com>
2388         getprogname: correct the test for a __progname variable
2389         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
2390         and AC_LINK_IFELSE to check for a global __progname.  If found,
2391         define HAVE_VAR___PROGNAME.
2392         * lib/getprogname.c (getprogname): Reflect the new name of the
2393         feature- checked preprocessor symbol:
2394         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
2396 2016-09-28  Jim Meyering  <meyering@fb.com>
2398         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
2399         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
2400         fall-through case with a /* fallthrough */ comment.
2402         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
2403         * lib/dfa.c (dfassbuild): Mark the end of this case with a
2404         /* fallthrough */ comment.
2406         getprogname: avoid __progname vs program_invocation_short_name pitfall
2407         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
2408         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
2409         not with Fedora 24's glibc-2.23.1-10.
2410         * lib/getprogname.c (__progname): Move this declaration down...
2411         (getprogname): ... into the #elif block where used, and make it
2412         explicitly "extern".
2414         getprogname: port to OpenBSD 5.1
2415         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
2416         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
2417         * modules/getprogname (configure.ac): Move most of this code...
2418         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
2419         increment serial number, and add a test for __progname.
2420         https://bugs.gnu.org/24562
2421         Reported by Nelson H. F. Beebe.
2423 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2425         sched: port to GCC 6.2.1 on macOS Sierra
2426         Problem reported by Denis Davydov in:
2427         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
2428         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
2429         Include <sys/cdefs.h> before <sched.h>.
2430         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
2431         so that we needn’t worry about the sched.h include bug here.
2432         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
2433         and include it before <sched.h> if it exists, when
2434         checking for <sched.h>.
2436         tests/init.sh: port Alpine fix to AIX 7.1
2437         * tests/init.sh (compare_): When attempting to use diff -U3,
2438         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
2439         diff -u not outputting a space after leading '+', as the users
2440         of 'compare' should not be that picky about its output format.
2441         In the AIX 7.1 case, return with diff exit status (or with 2 if
2442         trouble), instead of some random nonzero exit status.
2443         * tests/test-init.sh (test_compare): Remove space after leading
2444         '+', so that AIX 7.1 'diff' passes the test.
2446 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2448         nl_langinfo: pacify GCC
2449         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
2450         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
2452         stdint: also set GL_GENERATE_LIMITS_H
2453         Problem reported by Jim Meyering in:
2454         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
2455         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
2457         limits-h, stdint: Don't assume extensions, fix typo
2458         * m4/limits-h.m4 (gl_LIMITS_H):
2459         * m4/stdint.m4 (gl_STDINT_H):
2460         Don't assume AC_USE_SYSTEM_EXTENSIONS.
2461         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
2462         reported by Jim Meyering in:
2463         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
2465 2016-09-21  Jim Meyering  <meyering@fb.com>
2467         getprogname: port to AIX
2468         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
2469         and strdup to obtain a short program name string.  Using code from
2470         Bruno Haible and an idea from Bastien ROUCARIÈS, in
2471         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
2472         Assaf Gordon reported that this new file would fail to compile on
2473         AIX-7.1 32bit.
2475 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2477         extensions: fix typo in comment
2478         * m4/extensions.m4: Sync from Autoconf master.
2480         stdint: support new _WIDTH macros
2481         * doc/posix-headers/stdint.texi: Document this.
2482         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
2483         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
2484         support for INTMAX_WIDTH, etc. as well as for support for just C99.
2485         * modules/stdint (Depends-on): Add limits-h.
2486         (Makefile.am): Substitute HAVE_C99_STDINT_H.
2487         * modules/stdint-tests (Depends-on): Add extensions, so that
2488         INTMAX_MAX etc. are defined.
2489         * tests/test-stdint.c: Verify the new macros.
2491         limits-h: new module
2492         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
2493         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
2494         * doc/posix-headers/limits.texi: Document new module.
2495         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
2496         * modules/limit-h-tests, tests/test-limits-h.c: New files.
2498         stdio: don't redefine __USE_MINGW_ANSI_STDIO
2499         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
2500         if it is already defined.  Apparently GNU Emacs relies on this.  See:
2501         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
2503 2016-09-15  Eric Blake  <eblake@redhat.com>
2505         sys_types: avoid glibc 2.25 warnings about major()
2506         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
2507         older autoconf.
2508         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
2509         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
2510         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
2511         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
2513         mountlist: include sysmacros.h for glibc
2514         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
2515         AC_HEADER_MAJOR.
2516         * lib/mountlist.c (includes): Use correct headers.
2518 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2520         extensions: port to more ISO C TSes
2521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
2522         master, to add support for more recent ISO C TRs and TSes.
2524 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2526         intprops: new macro TYPE_WIDTH
2527         * lib/intprops.h (TYPE_WIDTH): New macro.
2528         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
2529         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
2530         * lib/parse-datetime.y (parse_datetime2):
2531         Use it.
2533         extensions: port to recent ISO C TRs
2534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2535         Sync from Autoconf master, to add support for recent ISO C TRs.
2536         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
2537         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
2538         the MinGW option is not an extension.
2540 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
2542         dfa: port to Solaris 9
2543         Problems reported by Tom G. Christensen in:
2544         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
2545         * modules/dfa (Depends-on): Add isblank.
2546         * modules/dfa-tests (dfa_match_aux_LDADD):
2547         Rename from test_stat_LDADD, to fix typo.
2548         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
2550 2016-09-10  Jim Meyering  <meyering@fb.com>
2552         strverscmp: avoid link failure on OS X
2553         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
2554         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
2556 2016-08-16  Jim Meyering  <meyering@fb.com>
2558         dfa: new module, importing grep's DFA matcher
2559         Since grep's DFA matcher is now being used by two gnulib-enabled
2560         projects, grep and sed, it makes sense to version-control its
2561         sources and unit tests in one place: here.
2562         * modules/dfa: New module.
2563         * modules/dfa-tests: New file.
2564         * lib/dfa.c: New file, from grep.
2565         * lib/dfa.h: Likewise.
2566         * lib/localeinfo.c: Likewise.
2567         * lib/localeinfo.h: Likewise.
2568         * tests/dfa-match-aux.c: Likewise.
2569         * tests/dfa-invalid-char-class.sh: Likewise.
2570         * tests/dfa-match.sh: Likewise, with minor changes.
2571         * MODULES.html.sh (Misc): Add "dfa" to this list.
2573 2016-09-09  Jim Meyering  <meyering@fb.com>
2575         getprogname-tests: don't depend on assert-h
2576         * modules/getprogname-tests (Depends-on): Remove assert-h.
2577         It was not needed, and in fact would cause build failure for
2578         coreutils on some systems.  Reported by Assaf Gordon in https:
2579         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
2581 2016-09-07  Jim Meyering  <meyering@fb.com>
2583         getprogname-tests: work also when EXEEXT is nonempty
2584         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
2585         * tests/test-getprogname.c (main): Use it.
2586         Suggested by Gisle Vanem.
2588 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
2590         getprogname: fix errors in previous change
2591         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
2592         s/program_invocation_name/base/
2593         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
2595 2016-09-08  Pádraig Brady  <P@draigBrady.com>
2597         parse-datetime: restrict debug output to input string
2598         * lib/parse-datetime.y (parse_datetime2): If we parse
2599         all of the input but determine it's invalid, ensure
2600         we don't output the now invalid input pointer.
2601         This issue was seen with `date -d 'now +1'`.
2603 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2605         flexmember: new macro FLEXALIGNOF
2606         * lib/flexmember.h: Include <stddef.h>, for offsetof.
2607         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
2608         this macro.  Update comments.
2610 2016-09-07  Jim Meyering  <meyering@fb.com>
2612         getprogname: port to systems with __argv (mingw, msvc)
2613         * lib/getprogname.c (getprogname): Include "dirname.h" and use
2614         last_component: more general than open coding it with hard-coded "/".
2615         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
2616         * modules/getprogname (Depends-on): Add dirname-lgpl.
2617         (configure.ac): Check for __argv in <stdlib.h>.
2618         * modules/getprogname-tests: New file.
2619         * tests/test-getprogname.c: New file.
2620         Suggested by Gisle Vanem in
2621         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
2623 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2625         flexmember: port better to GCC + valgrind
2626         With a char[] flexible array member in a struct with nontrivial
2627         alignment, GCC-generated code can access past the end of the
2628         array, because GCC assumes there are padding bytes to get the
2629         struct aligned.  So the common idiom of malloc (offsetof (struct
2630         s, m), n) does not properly allocate an n-byte trailing member, as
2631         malloc’s argument should be the next multiple of alignof (struct s).
2632         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
2633         Although C11 apparently permits this GCC optimization (i.e., there
2634         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
2635         See the thread containing:
2636         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
2637         * lib/flexmember.h: New file.
2638         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
2639         * lib/localename.c, lib/time_rz.c:
2640         Include flexmember.h.
2641         * lib/fnmatch_loop.c (struct patternlist):
2642         * lib/localename.c (struct hash_node):
2643         Use FLEXIBLE_ARRAY_MEMBER.
2644         * lib/fnmatch_loop.c (EXT):
2645         * lib/fts.c (fts_alloc):
2646         * lib/glob.c (glob_in_dir):
2647         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
2648         * lib/localename.c (gl_lock_define_initialized):
2649         * lib/time_rz.c (tzalloc):
2650         Use FLEXSIZEOF instead of offsetof.
2651         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2652         Check that the size of the struct can be taken.
2653         * modules/flexmember (Files): Add lib/flexmember.h.
2654         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
2655         Add flexmember.
2657 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
2659         getprogname: port to Solaris 10
2660         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
2661         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
2662         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
2664         stdalign: correct mistake in alignof doc
2665         Problem reported by Joseph Myers in:
2666         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
2667         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
2668         alignof(S) where S is a structure containing a flexible array
2669         member.  The Gnulib substitute does not support this, but C11 does.
2671 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2673         main.mk: remove sc_program_name, since there is no more need to
2674         use set_program_name in tools (getprogname is enough for most
2675         of the cases).
2676         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
2677         * top/maint.mk (sc_program_name): Remove.
2679 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2681         Port tests away from progname, since modules that need the
2682         program name already depend on getprogname.
2683         * modules/acl-tests (Depends-on): Remove progname.
2684         * modules/argmatch (Depends-on): Likewise.
2685         * modules/argmatch-tests (Depends-on): Likewise.
2686         * modules/argp-tests (Depends-on): Likewise.
2687         * modules/argp-version-etc-tests (Depends-on): Likewise.
2688         * modules/array-list-tests (Depends-on): Likewise.
2689         * modules/array-oset-tests (Depends-on): Likewise.
2690         * modules/avltree-list-tests (Depends-on): Likewise.
2691         * modules/avltree-oset-tests (Depends-on): Likewise.
2692         * modules/avltreehash-list-tests (Depends-on): Likewise.
2693         * modules/carray-list-tests (Depends-on): Likewise.
2694         * modules/copy-file-tests (Depends-on): Likewise.
2695         * modules/exclude-tests (Depends-on): Likewise.
2696         * modules/fchownat-tests (Depends-on): Likewise.
2697         * modules/fdopendir-tests (Depends-on): Likewise.
2698         * modules/filenamecat-tests (Depends-on): Likewise.
2699         * modules/fstatat-tests (Depends-on): Likewise.
2700         * modules/fstrcmp-tests (Depends-on): Likewise.
2701         * modules/linked-list-tests (Depends-on): Likewise.
2702         * modules/linkedhash-list-tests (Depends-on): Likewise.
2703         * modules/mkdirat-tests (Depends-on): Likewise.
2704         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
2705         * modules/nonblocking-socket-tests (Depends-on): Likewise.
2706         * modules/obstack-printf-tests (Depends-on): Likewise.
2707         * modules/openat-tests (Depends-on): Likewise.
2708         * modules/parse-datetime-tests (Depends-on): Likewise.
2709         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
2710         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
2711         * modules/quotearg-simple-tests (Depends-on): Likewise.
2712         * modules/quotearg-tests (Depends-on): Likewise.
2713         * modules/rbtree-list-tests (Depends-on): Likewise.
2714         * modules/rbtree-oset-tests (Depends-on): Likewise.
2715         * modules/rbtreehash-list-tests (Depends-on): Likewise.
2716         * modules/spawn-pipe-tests (Depends-on): Likewise.
2717         * modules/system-quote-tests (Depends-on): Likewise.
2718         * modules/uniname/uniname-tests (Depends-on): Likewise.
2719         * modules/uninorm/nfc-tests (Depends-on): Likewise.
2720         * modules/uninorm/nfd-tests (Depends-on): Likewise.
2721         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
2722         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
2723         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
2724         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
2725         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
2726         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
2727         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
2728         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
2729         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
2730         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
2731         * modules/unlinkat-tests (Depends-on): Likewise.
2732         * modules/version-etc-tests (Depends-on): Likewise.
2733         * modules/xalloc-die-tests (Depends-on): Likewise.
2734         * modules/xmemdup0-tests (Depends-on): Likewise.
2735         * modules/xprintf-posix-tests (Depends-on): Likewise.
2736         * modules/xvasprintf-tests (Depends-on): Likewise.
2737         * tests/test-argmatch.c: Do not include progname.h.
2738         (main) Stop calling set_program_name.
2739         * tests/test-argp-version-etc.c: Likewise.
2740         * tests/test-argp.c: Likewise.
2741         * tests/test-argv-iter.c: Likewise.
2742         * tests/test-array_list.c: Likewise.
2743         * tests/test-array_oset.c: Likewise.
2744         * tests/test-avltree_list.c: Likewise.
2745         * tests/test-avltree_oset.c: Likewise.
2746         * tests/test-avltreehash_list.c: Likewise.
2747         * tests/test-carray_list.c: Likewise.
2748         * tests/test-copy-acl.c: Likewise.
2749         * tests/test-copy-file.c: Likewise.
2750         * tests/test-exclude.c: Likewise.
2751         * tests/test-fchownat.c: Likewise.
2752         * tests/test-fdopendir.c: Likewise.
2753         * tests/test-filenamecat.c: Likewise.
2754         * tests/test-fstatat.c: Likewise.
2755         * tests/test-fstrcmp.c: Likewise.
2756         * tests/test-linked_list.c: Likewise.
2757         * tests/test-linkedhash_list.c: Likewise.
2758         * tests/test-mkdirat.c: Likewise.
2759         * tests/test-nonblocking-pipe-main.c: Likewise.
2760         * tests/test-nonblocking-socket-main.c: Likewise.
2761         * tests/test-obstack-printf.c: Likewise.
2762         * tests/test-openat.c: Likewise.
2763         * tests/test-parse-datetime.c: Likewise.
2764         * tests/test-pipe-filter-gi1.c: Likewise.
2765         * tests/test-pipe-filter-gi2-main.c: Likewise.
2766         * tests/test-pipe-filter-ii1.c: Likewise.
2767         * tests/test-pipe-filter-ii2-main.c: Likewise.
2768         * tests/test-quotearg-simple.c: Likewise.
2769         * tests/test-quotearg.c: Likewise.
2770         * tests/test-rbtree_list.c: Likewise.
2771         * tests/test-rbtree_oset.c: Likewise.
2772         * tests/test-rbtreehash_list.c: Likewise.
2773         * tests/test-sameacls.c: Likewise.
2774         * tests/test-set-mode-acl.c: Likewise.
2775         * tests/test-spawn-pipe-main.c: Likewise.
2776         * tests/test-system-quote-main.c: Likewise.
2777         * tests/test-unlinkat.c: Likewise.
2778         * tests/test-version-etc.c: Likewise.
2779         * tests/test-xalloc-die.c: Likewise.
2780         * tests/test-xfprintf-posix.c: Likewise.
2781         * tests/test-xmemdup0.c: Likewise.
2782         * tests/test-xprintf-posix.c: Likewise.
2783         * tests/test-xvasprintf.c: Likewise.
2784         * tests/uniname/test-uninames.c: Likewise.
2785         * tests/uninorm/test-u32-nfc-big.c: Likewise.
2786         * tests/uninorm/test-u32-nfd-big.c: Likewise.
2787         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
2788         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
2789         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2790         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2791         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2792         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2793         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2794         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2795         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2796         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2797         * tests/test-c-stack.c: (program_name): Do not define.
2798         (main): Do not set program_name.
2799         * tests/test-closein.c: Likewise.
2800         * tests/test-xstrtol.c: Likewise.
2801         * tests/test-yesno.c: Likewise.
2803 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2805         Port modules to use getprogname explicitly, instead of requiring
2806         progname to be used (or program_name to be provided).
2807         * lib/argmatch.c: Do not include progname.h.
2808         [TEST] (program_name): Do not define.
2809         [TEST] (main): Call getprogname instead of using program_name.
2810         * lib/c-stack.c: Do not include progname.h.
2811         (program_name): Do not define.
2812         (die): Call getprogname instead of using program_name.
2813         * lib/chdir-long.c: Do not include progname.h.
2814         [TEST_CHDIR] (main): Do not set program_name.
2815         * lib/error.c [!_LIBC]: Include progname.h.
2816         [!_LIBC] (program_name): Define using getprogname.
2817         * lib/euidaccess.c: Do not include progname.h.
2818         [TEST] (main): Do not set program_name.
2819         * lib/git-merge-changelog.c: Include getprogname.h instead of
2820         progname.h.
2821         (usage): Call getprogname instead of using program_name.
2822         (main): Likewise.  Stop calling set_program_name.
2823         * lib/group-member.c: Do not include progname.h.
2824         [TEST] (main): Do not set program_name.
2825         * modules/argmatch (Depends-on): Add getprogname.
2826         * modules/c-stack (Depends-on): Likewise.
2827         * modules/error (Depends-on): Likewise.
2828         * modules/git-merge-changelog (Depends-on): Likewise.
2829         Also remove progname.
2831 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
2833         * NEWS: Document the deprecation of the 'progname' module.
2835 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2837         getprogname: new module
2838         This provides a LGPL module for getting the name of the current
2839         program, using the same API found on *BSD systems.
2840         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
2841         * modules/getprogname: New files.
2842         * MODULES.html.sh (Misc): Add getprogname.
2844 2016-09-02  Jim Meyering  <meyering@fb.com>
2846         manywarnings: add -fno-common
2847         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
2848         to the list.  Quoting the manual, "Compiling with -fno-common is
2849         useful on targets for which it provides better performance, or if
2850         you wish to verify that the program will work on other systems that
2851         always treat uninitialized variable declarations this way [putting
2852         it in the data section]."  If diffutils had been using this sooner,
2853         it would have prevented this duplicate declaration issue:
2854         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
2856 2016-08-31  Simon Josefsson  <simon@josefsson.org>
2858         parse-datetime: Fix typo.
2859         * lib/parse-datetime.y (parse_datetime2): Fix typo.
2861 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2863         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
2864         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
2865         GCC 5 and 6 that have __builtin_sub_overflow but not
2866         __builtin_sub_overflow_p.  With the recent changes, these
2867         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
2868         implementation than with INT_SUBTRACT_OVERFLOW implementation,
2869         since the former needs just one runtime comparison whereas the
2870         latter needs two.
2872         strverscmp: sync with glibc
2873         Although this doesn't exactly synchronize with glibc
2874         byte-for-byte, it makes the code behave the same as glibc.
2875         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
2876         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
2877         difference shouldn't matter in practical use.  All uses changed
2878         back to isdigit.
2879         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
2880         (next_state): Now unsigned char array; redo elements.
2881         (result_type): Now signed char array; redo elements.
2882         (__strverscmp): Fix glibc bug 9913 by using new states.
2883         * tests/test-strverscmp.c (main): Test glibc bug 9913.
2885 2016-08-29  Jim Meyering  <meyering@fb.com>
2887         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
2888         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
2889         similarly to how it was done to intprops.h.
2891 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2893         intprops.h: port recent changes to GCC 6.2.0
2894         * lib/intprops.h (__has_builtin): Move earlier.
2895         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
2896         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
2897         the last argument can be null.  All uses changed.
2898         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
2899         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
2900         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
2901         and it's not clear which GCC versions it works for.
2902         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
2903         its definiens.
2905         intprops.h: use __typeof__ with GCC 7
2906         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
2907         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
2908         This avoids computing the expression's value (which might overflow!).
2910 2016-08-29  Jim Meyering  <meyering@fb.com>
2912         intprops.h, xalloc-oversized.h: work with gcc 7
2913         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
2914         __builtin_mul_overflow each accept a NULL pointer as the third
2915         argument.  However in gcc 7, that is no longer accepted.
2916         Instead, one must use the "_p"-suffixed names, with which, the
2917         third parameter is no longer a pointer.
2918         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
2919         the definition: not true for gcc 7 and subsequent.
2920         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
2921         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
2922         Provide new definitions for gcc 7 and subsequent.
2923         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
2924         that works with gcc-7.
2926         intprops.h: fix missing-backslash problems
2927         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
2928         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
2930 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2932         intprops: fix paren typo on old platforms
2933         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
2934         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
2935         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
2936         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
2937         && !defined LLONG_MAX]:
2938         Remove stray paren.
2940         intprops: port to OpenVMS
2941         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
2942         * doc/posix-headers/limits.texi: Document the problem.
2943         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
2944         Define if not already defined.
2946 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
2948         parse-datetime: improve debug implementation
2949         Follow-up to commit 12ad79069 ("add optional debug printing").
2950         Improve parse-datetime's debug implementation: remove macros,
2951         replace global debug flag variable with a function parameter,
2952         use nstrftime for formatting.
2953         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
2954         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
2955         (parse_datetime2): New function, accepts 'flags' parameter, supporting
2956         debug flag. Existing interface 'parse_datetime' left unmodified.
2957         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
2958         (struct parser_control): add 'parse_datetime_debug' member variable.
2959         (parse_datetime): Call new function 'parse_datetime2' without debug.
2960         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
2961         pc.parse_datetime_debug variable as needed.
2962         (to_year): Accept new flags parameter, instead of using global variable.
2963         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
2964         use struct 'debug' variable instead of global variable.
2965         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
2966         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
2967         correspnding functions directly instead of using macros.
2968         * modules/parse-datetime: Add gnulib's strftime module.
2970 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
2972         c-strcase-tests: port to EBCDIC
2973         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
2974         which assume ASCII encoding semantics to run only in ASCII
2975         mode, as they fail in EBCDIC.
2977         sigpipe-tests: fix typo
2978         * tests/test-sigpipe.sh: C, not B.
2980 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2982         canonicalize-lgpl: fix errno after malloca fails
2983         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
2984         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
2985         * lib/canonicalize-lgpl.c (__realpath):
2986         Don't assume malloca sets errno on failure.
2988 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2990         strtod: port errno handling to z/OS
2991         * lib/strtod.c (strtod): Save and restore errno more reliably.
2993 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
2995         strtod: port to z/OS
2996         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
2997         implementation.
2999 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3001         strtod: port to z/OS
3002         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
3003         implementation.
3005         regex, string: rename to avoid '__string'
3006         * lib/regex.h, lib/string.in.h: Do not use the identifier
3007         '__string', as it is effectively reserved by string.h on z/OS.
3009         c-strcase-tests, wcwidth-tests: depend on c-ctype
3010         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
3011         Add c-ctype.
3013 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
3015         thread: port to z/OS
3016         * lib/glthread/thread.c, lib/glthread/thread.h:
3017         Rudimentary gl_thread support for z/OS.
3019         maint: port tests to z/OS errno behavior
3020         * tests/test-nonblocking-reader.h:
3021         * tests/test-nonblocking-writer.h:
3022         Accommodate z/OS errno code preferences. (I believe this should
3023         still be within spec; IBM is good at following the letter if not
3024         the spirit of such things.)
3026         maint: preprocessor changes to support z/OS
3027         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
3028         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
3029         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
3030         * tests/test-nonblocking-pipe.h:
3032         fclose, strstr-simple, wchar: port to z/OS
3033         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
3034         Changes to the Autoconf M4 code to support z/OS.  Note that
3035         fclose() is broken in a different way on z/OS than it is on other
3036         systems, thus the special-case in fclose.m4.
3038         iconv_open-utf-tests, iconv-tests: port to EBCDIC
3039         * tests/test-iconv-utf.c, tests/test-iconv.c:
3040         Added appropriately conditional #pragmas so that the test strings
3041         in test-iconv-utf.c are correctly interpreted in ASCII instead of
3042         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
3043         addressed in a more portable way by simply rewriting all the ASCII
3044         literal characters as octal escapes, but then you would lose the
3045         partial readability that the strings have now. Also, iconv_open()
3046         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
3048         c-strcase-tests, wcwidth-tests: port to EBCDIC
3049         * tests/test-c-strcasecmp.c: Include c-ctype.h.
3050         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
3051         * tests/test-wcwidth.c: Likewise.
3053 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3055         stdbool: don't require _Bool for C++
3056         Problem reported by David Seifert in:
3057         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
3058         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
3059         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
3060         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
3061         stricter about checking that bool and _Bool are compatible in C.
3063 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3065         getdelim: remove dependency on realloc-posix
3066         * lib/canonicalize-lgpl.c (alloc_failed)
3067         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
3068         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
3069         Use __set_errno where needed, for consistency.
3070         * lib/getdelim.c (alloc_failed): New function.
3071         (getdelim): Use it.
3073 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
3075         parse-datetime: add optional debug printing
3076         Print parsing information, warnings, and errors to stderr.
3077         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
3078         * lib/parse-datetime.y:
3079         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
3080         (PROGRESS*): Same as DEBUG, for progress reporting.
3081         (dbg_printf): Print message to stderr, with 'date' prefix.
3082         (struct parser_control): Add 'debug_*_seen' variables.
3083         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
3084         (debug_print_current_time, debug_print_relateive_time): Prints the
3085         current/relative date/time value of parser_control.
3086         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
3087         (to_year): Warn about 2-digit year parsing.
3088         (yylex):   Warn about unrecognized words.
3089         (get_effective_timezone): Returns current timezone in minutes.
3090         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
3091         clearly and unambigiously as possible.
3092         (debug_mktime_not_ok): Print detailed information about failed
3093         date/time values.
3094         (parse_datetime): Add DEBUG messages for failures, warnings. Add
3095         PROGRESS messages for status messages.
3096         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
3098 2016-08-06  Jim Meyering  <meyering@fb.com>
3100         tests/init.sh: exclude dash with bad "local" semantics
3101         * tests/init.sh (gl_shell_test_script_): Add a function to
3102         eliminate a shell like "dash" (unlike bash, zsh) that has
3103         surprising/risky "local var='...'" semantics.  Inspired by
3104         the problem and discussion in https://bugs.gnu.org/24116#11.
3106 2016-08-02  Ján Tomko  <jtomko@redhat.com>
3108         maint.mk: expand the prohibit_doubled_word regex
3109         This check has a static list of words that are checked for
3110         repetitions.  Expand it before running the perl script to
3111         avoid using expensive captures.  This decreases the cost
3112         for libvirt from 1.66s to 0.66s.
3113         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
3114         (sc_prohibit_doubled_word): Use it.
3116 2016-07-26  Ján Tomko  <jtomko@redhat.com>
3118         useless-if-before-free: skip non-matching lines early
3119         * build-aux/useless-if-before-free: First match each line with the
3120         simple/quick /\bif\b/ and reject if there is no match. This often
3121         saves the cost of the much more involved regular expression.
3122         For libvirt, this decreases the cost from 1.44s to 1.02s.
3124 2016-07-26  Ján Tomko  <jtomko@redhat.com>
3126         maint.mk: speed up sc_po_check
3127         sc_po_check would skip files based on their names, or on the
3128         existence of files with derived names. Rewrite it to use perl
3129         instead of shell to make the check faster.
3130         * top/maint.mk (perl_translatable_files_list_): Define.
3131         (sc_po_check): Use it.
3133 2016-07-30  Ján Tomko  <jtomko@redhat.com>
3135         maint.mk: speed up require_config_h_first
3136         Instead of spawning three processes per file,
3137         rewrite the check in perl and run it once for all the files.
3138         * top/maint.mk (perl_config_h_first_): Define.
3139         (sc_require_config_h_first): Use it in place of shell code.
3141 2016-07-26  Ján Tomko  <jtomko@redhat.com>
3143         maint.mk: speed up sc_po_check
3144         sc_po_check would skip files based on their names, or on the
3145         existence of files with derived names. Rewrite it to use perl
3146         instead of shell to make the check faster.
3147         * top/maint.mk (perl_translatable_files_list_): Define.
3148         (sc_po_check): Use it.
3150 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3152         obstack: pacify GCC 6 with -Wnull-dereference
3153         Problem reported by Assaf Gordon in:
3154         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
3155         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
3156         Declare with __attribute_noreturn__.
3157         * lib/obstack.h (__attribute_noreturn__): New macro.
3159 2016-07-13  Eric Blake  <eblake@redhat.com>
3161         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
3162         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
3163         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
3165 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
3167         doc: mention glibc SSIZE_MAX buglet
3168         * doc/posix-headers/limits.texi (limits.h): Document the bug.
3170 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
3172         printf-posix: Fix mingw build
3173         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
3174         expression for detecting C symbol prefixes but forgot to qoute square
3175         brackets in the command line arguments for grep.  That way when
3176         building with mingw the condition was false although it ought to be
3177         true instead.  In particular scenarios this led to the following
3178         compile error:
3180             Cannot export rpl_printf: symbol not found
3181             Cannot export rpl_scanf: symbol not found
3182             collect2: error: ld returned 1 exit status
3184         Fix this by properly quoting square brackets.
3186 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3188         mktime: call tzset as per POSIX
3189         Problem reported by Ludovic Courtès in:
3190         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
3191         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
3192         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
3194 2016-06-26  Pádraig Brady  <P@draigBrady.com>
3196         fts: handle readdir() errors
3197         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
3198         but also upon error when it will also set errno.  Therefore
3199         flag the error case from readdir().  We treat the case where
3200         no items are read the same as if the dir can't be accessed,
3201         i.e. by setting fts_errno to FTS_DNR.
3203 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3205         intprops: port better to GCC 7
3206         GCC 7 __builtin_add_overflow supports a new usage form, where the
3207         last argument is a null pointer, and which merely returns 1 if an
3208         overflow would occur.  This is a constant expression if all
3209         arguments are constants, and should generate faster code when code
3210         needs to be generated.
3211         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
3212         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
3213         Use builtin operations if available.
3214         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
3215         operations are available, as it's almost surely faster.
3217 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3219         intprops-test: port to GCC 6
3220         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
3221         since the bug is not fixed in GCC 6.1.
3223 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3225         xalloc-oversized: port to GCC 7; fewer warnings
3226         GCC 7 will have a better way to deal with integer overflow.
3227         Plus, fix a warnings problem reported by Tim Ruehsen in:
3228         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
3229         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
3230         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
3231         For GCC 5, use __xalloc_oversized if both args are constants,
3232         or if pedantic.
3234 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3236         regex: port to Sun C
3237         Reported by Daiki Ueno.
3238         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
3239         __restrict, in prototype.  This fixes a problem I introduced in
3240         the 2016-02-19 merge from glibc.
3242 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3244         stdbool: Restore __bool_true_false_are_defined check
3245         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
3246         __bool_true_false_are_defined is still defined, even with C++11.
3248 2016-05-31  David Seifert <soap@gentoo.org>  (tiny change)
3250         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
3251         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
3253 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
3255         Use GCC_LINT, not lint
3256         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
3257         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
3258         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3259         Document problem with lint and _Noreturn.
3260         * lib/diffseq.h (IF_LINT, IF_LINT2):
3261         * lib/fts.c (sccsid):
3262         * lib/getndelim2.c (IF_LINT):
3263         * lib/gl_anylinked_list2.h (gl_linked_iterator)
3264         (gl_linked_iterator_from_to):
3265         * lib/gl_anytree_list2.h (gl_tree_iterator)
3266         (gl_tree_iterator_from_to):
3267         * lib/gl_anytree_oset.h (gl_tree_iterator):
3268         * lib/gl_array_list.c (gl_array_iterator)
3269         (gl_array_iterator_from_to):
3270         * lib/gl_array_oset.c (gl_array_iterator):
3271         * lib/gl_carray_list.c (gl_carray_iterator)
3272         (gl_carray_iterator_from_to):
3273         * lib/idcache.c:
3274         * lib/inet_ntop.c (IF_LINT):
3275         * lib/regcomp.c (build_charclass_op, create_tree):
3276         * lib/regex_internal.c (re_acquire_state)
3277         (re_acquire_state_context):
3278         * lib/trigl.c (rcsid):
3279         * lib/trim.c (IF_LINT):
3280         * lib/vasnprintf.c (IF_LINT):
3281         * lib/verify.h (assume):
3282         Treat GCC_LINT like lint.
3284 2016-05-29  Bruno Haible  <bruno@clisp.org>
3286         secure_getenv: Port to many more platforms.
3287         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
3288         functions.
3289         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
3290         for non-BSD Unix platforms and for native Windows.
3291         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
3292         Prompted by a request from Nikos Mavrogiannopoulos.
3294 2016-05-27  Eric Blake  <eblake@redhat.com>
3296         canonicalize: Fix broken probe for realpath.
3297         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
3298         in logic introduced in 54615b95.
3300 2016-05-26  Eric Blake  <eblake@redhat.com>
3302         unsetenv: relax to LGPLv2+
3303         * modules/unsetenv (License): Match setenv license.
3305 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
3307         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
3308         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
3309         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
3310         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
3311         (commonarg, dirargs, dirs, infoarg, generate_ascii)
3312         (generate_html, generate_info, generate_tex, outdir)
3313         (source_extra, split, srcfile, texarg): Move above 'version'.
3314         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
3316 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3318         manywarnings: update for GCC 6.1
3319         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
3320         Add GCC 6.1 options that apply to C.
3321         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
3322         do not apply to C, are obsolescent, etc.
3324 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3326         glob: size_t overflow checks
3327         * lib/glob.c (__has_builtin): New macro.
3328         (size_add_wrapv, glob_use_alloca): New static functions.
3329         (glob, glob_in_dir): Check for size_t overflow in several places,
3330         and fix some size_t checks that were not quite right.
3332         glob: don't assume INT_MAX < SIZE_MAX
3333         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
3334         latter is not portable to (probably theoretical) hosts where
3335         SIZE_MAX <= INT_MAX.
3337 2016-05-09  Bruno Haible  <bruno@clisp.org>
3339         Fix undefined behaviour in gettext.h.
3340         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
3341         pointer's value after the storage it points to has been freed.
3342         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
3343         Spotted by Coverity.
3345 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3347         git-version-gen: avoid undefined shift
3348         Problem reported by Mosè Giordano in:
3349         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
3350         * build-aux/git-version-gen: Avoid undefined behavior if invoked
3351         with --prefix or --fallback but without a later argument.  While
3352         we're at it, omit unnecessary quotes.
3354 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3356         glob: merge glibc changes into lib/glob.c
3357         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
3358         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
3359         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
3360           struct dirent [BZ #19779]
3361         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
3362           callback gl_readdir
3363         2015-10-20 Convert miscellaneous function definitions to prototype style
3364         2015-10-20 Convert 113 more function definitions to prototype style
3365           (files with assertions)
3366         2015-06-12 Fix getlogin_r namespace (bug 18527).
3367         2014-02-10 Use glibc_likely instead __builtin_expect.
3368         2013-10-20 When glob pattern contains a trailing slash match only
3369           directories. Fixes bug 10278.
3370         2013-09-04 glob: silence -Wattribute warnings
3371         2013-06-07 Avoid use of "register" as optimization hint.
3372         2012-09-25 Use size_t instead of int for internal variables in glob
3373           (bug 14621)
3374         2011-07-20 Check for overflows in expressions
3375         2011-05-28 Remove unused variable
3376         2011-05-22 Add a few more alloca size checks
3377         2010-03-27 Whitespace fixes
3378         2010-03-27 Fix one more issue with the glob patch
3379         2010-03-24 Fix glob with empty pattern
3380         2008-05-27 Remove useless more "if" tests before "free"
3381         * modules/glob (Depends-on): Add stdint.
3383 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3385         mktime: port to stricter signed overflow checking
3386         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
3387         (long_int): Require width for INT_MAX * 3 * (seconds per year),
3388         instead of merely for INT_MAX * 2.  In practice platforms that
3389         do the latter also do the former.
3390         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
3391         (shr): New static function, replacing SHR.  All uses changed.
3392         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
3393         and TIME_T_MAX.  All uses changed.
3394         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
3395         Use long_int, not time_t.
3396         (long_int_avg): New static function, replacing time_t_avg.
3397         All uses changed.  Round toward positive infinity, as that
3398         generates slightly better code.
3399         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
3400         by INT_ADD_WRAPV.
3401         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
3402         (convert_time): New static function.
3403         (ranged_convert): Use it
3404         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
3405         Use simpler test for loop exit.
3406         (__mktime_internal): Store negative of guessed offset, to simplify
3407         overflow checking.  Remove no-longer-needed test for small time_t
3408         overflows.
3410         mktime: speed up DEBUG_MKTIME benchmarks
3411         Call tzset just once, at the start, rather than for every test
3412         case.  This lets us measure the CPU cost of mktime as opposed to
3413         that of tzset.  This is relevant when TZ is not set and glibc is
3414         being used.  This speeds up tests by a factor of 40 on my Fedora
3415         23 x86-64 platform.
3416         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
3417         to call tzset and as a sanity check.  Later on, use localtime_r
3418         instead of localtime.
3420         mktime: resurrect DEBUG_MKTIME testing
3421         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
3422         Include <string.h>, for strcmp.
3424         mktime: simplify DEBUG_MKTIME
3425         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
3426         Simplify later usage accordingly.
3428         Port mktime_internal offset to unsigned time_t
3429         This avoids some assumptions about wraparound arithmetic on
3430         signed integer overflow.
3431         * lib/mktime-internal.h (mktime_offset_t): New type.
3432         (mktime_internal): Use it in decl.
3433         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
3435         * lib/mktime.c (__mktime_internal, localtime_offset):
3436         * lib/timegm.c (timegm): Use it.
3437         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
3438         (gl_FUNC_MKTIME): Require it.
3440 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3442         xstrtol: prohibit monstrosities like "1bB"
3443         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
3444         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
3445         "B" only if the first suffix needs a base.
3446         * tests/test-xstrtol.sh: Test this.
3448 2016-04-21  Pádraig Brady  <P@draigBrady.com>
3450         xstrtod: reinstate setting of *result upon ERANGE
3451         * lib/xstrtod.c (XSTRTOD): The user may decide to use
3452         the returned limits upon ERANGE, so allow and document that.
3454 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
3456         xstrtod: modify *result only if no errors
3457         * lib/xstrtod.c (XSTRTOD).
3459 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
3461         btowc: document problems in C locale
3462         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
3463         with mbrtowc.  See: http://bugs.gnu.org/23269#32
3465 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
3467         mktime: improve integer overflow checking
3468         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
3469         (WRAPV): Remove; no longer needed.
3470         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
3471         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
3472         Remove.  Use intprops.h defns instead.
3473         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
3474         Use bool for Boolean, for clarity.
3475         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
3476         detect integer overflow.
3477         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
3479         intprops: check two's complement assumption
3480         Suggested by Eric Blake in:
3481         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
3482         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
3483         short, int, long, and (if available) long long are two's complement.
3484         * modules/intprops (Depends-on): Add 'verify'.
3486         intprops, mktime, strtol: assume two's complement
3487         These macros were not portable to every conforming C11 ones'
3488         complement platform.  It's not worth the hassle of porting to some
3489         platforms that use ones' complement or signed magnitude, as such
3490         platforms are almost purely theoretical nowadays and porting even
3491         to some of them makes the code harder to review for little
3492         practical benefit.  Problem reported by Florian Weimer in:
3493         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
3494         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
3495         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
3496         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
3497         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
3498         (TYPE_SIGNED_MAGNITUDE):
3499         Remove.  All uses rewritten to assume two's complement, which is
3500         all we can reasonably test nowadays anyway.
3501         * top/maint.mk (_intprops_names): Remove the removed macros.
3503 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3505         stdint: port to strict C11 left shift
3506         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
3507         Pacify clang -Wshift-negative-value, which should be an issue only
3508         on clang setups where stdint.h does not conform to C11 or to C++11.
3509         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
3511 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
3513         mbrtowc: work around glibc bug#19932
3514         Fix mbrtowc so that it never returns -1 in the C locale,
3515         as this conflicts with a future version of POSIX
3516         http://austingroupbugs.net/view.php?id=663#c2738
3517         and causes problems with GNU grep: http://bugs.gnu.org/23234
3518         See glibc bug 19932:
3519         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
3520         * doc/posix-functions/mbrlen.texi (mbrlen):
3521         * doc/posix-functions/mbrtowc.texi (mbrtowc):
3522         Document the glibc bug.
3523         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
3524         Include hard-locale.h, locale.h.
3525         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
3526         if the bug is possible.
3527         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
3528         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
3529         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
3530         * modules/mbrtowc (Depends-on): Add hard-locale.
3531         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
3532         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
3533         * tests/test-mbrtowc5.sh: New file.
3535 2016-04-03  Pedro Alves  <palves@redhat.com>
3537         stdint: detect good enough pre-C++11 stdint.h in C++ mode
3538         When gnulib is configured in C++ mode for a system with a working C99
3539         implementation of stdint.h that predates C++11, gnulib ends up
3540         substituting stdint.h anyway.  This works on most targets, but on e.g.,
3541         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
3542         MinGW is LLP64.  Instead of trying to detect the right types, detect
3543         good-enough-pre-C++11 stdint.h and in such case define
3544         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
3545         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
3546         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
3547         conforms to C99.  If it does, check whether it hides symbols
3548         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
3549         does, define those macros in config.h.
3551 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
3553         argp: merge changes from glibc
3554         Among other things, this should fix problems found by a Coverity
3555         scan and reported by Andrei Borzenkov:
3556         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
3557         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
3558         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
3559         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
3560         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
3561         * lib/argp.h:
3562         Merge changes from glibc.
3563         * tests/test-argp-2.sh: Adjust to match new behavior.
3565 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
3567         stddef: support configuring with g++
3568         Problem reported by Ángel González in:
3569         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
3570         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
3571         Do not define if _GCC_MAX_ALIGN_T is defined.
3573 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3575         test-framework-sh: minor cleanups
3576         * tests/init.sh (testdir_prefix_): Output a trailing newline,
3577         since strictly speaking POSIX requires this.
3578         (setup_): Do not use the variable 'fail', as that makes the
3579         trace output harder to read ('fail' is typically used by
3580         tests to mean the test failed).  Treat // portably.
3581         Check that new directory is not merely a sibling of the tmp dir.
3582         Avoid unnecessary invocation of tr.
3584         test-framework-sh: revert port to NetBSD 7.0
3585         It was a false alarm; I misinterpreted Assaf Gordon's report.
3586         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
3587         Restore.
3588         (test_dir_): Adjust to mktempd_ change.
3589         (mktempd_): Restore 2nd arg.  Use -t again.
3590         (base_template_, template_, nx_): Resurrect old code.
3592         Port better to Alpine Linux
3593         Its diff implementation does not support -c, but does support -U3.
3594         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
3595         * tests/init.sh (diff_opt_): New var.
3596         (compare_): Prefer diff -U3 to diff -c to plain diff.
3598 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3600         test-framework-sh: port to NetBSD 7.0
3601         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
3602         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
3603         Remove.  All uses removed.
3604         (test_dir_): Adjust to mktempd_ change.
3605         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
3606         (base_template_, template_, nx_): Simplify by hardcoding.
3608 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3610         gitlog-to-changelog: suppress ignored chatter
3611         * build-aux/gitlog-to-changelog: Do not warn about skipping
3612         an SHA if it would have been ignored anyway.
3614 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
3616         setlocale: add "sv" to Windows language table
3617         * lib/setlocale.c (language_table) [W32]: Add "sv".
3618         Reported in <https://savannah.gnu.org/bugs/?44588>.
3620 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3622         sys_select: port to new Cygwin
3623         Problem reported by Ken Brown in:
3624         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
3625         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
3626         diagnostics.
3628 2016-03-17  Jim Meyering  <meyering@fb.com>
3630         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
3631         * tests/test-userspec.c (main): Remove unnecessary braces and fix
3632         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
3633           test-userspec.c:176:9: error: statement is indented as if it were \
3634             guarded by... [-Werror=misleading-indentation]
3635                    {
3636                    ^
3637           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
3638                  if (!diag && !T[i].result)
3639                  ^~
3641 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
3643         time_rz: port to clang -Wunused-const-variable
3644         * lib/time_rz.c (TZ): Remove.  All uses removed.
3646         std-gnu11: improve clang support
3647         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
3648         2016-03-15 Also try clang
3649         2016-03-15 Port C11 and C++11 testing to clang
3651         select: port more to Intel 2016.1.150 compiler
3652         Problem reported by Balázs Hajgató in:
3653         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
3654         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
3656 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3658         select: try to port to 2016.1.150 compiler
3659         Problem reported by Balázs Hajgató in:
3660         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
3661         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
3662         POSIX specifies 'restrict'.
3664 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
3666         localename-tests: memory allocation fixes
3667         * tests/test-localename.c (test_locale_name)
3668         (test_locale_name_thread): Don't call freelocale on a locale
3669         that was the base of a successful newlocale, as that
3670         results in a double free.  Problem reported by Assaf Gordon.
3671         (test_locale_name_thread): Free saved names after use, to pacify
3672         gcc -fsanitize=address.
3674 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3676         intprops: make .h file license match module
3677         * lib/intprops.h: Change the license wording to match glibc format.
3678         This is what is in modules/intprops anyway.  See:
3679         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
3681 2016-03-08  Eric Blake  <eblake@redhat.com>
3683         acl: fix missing return on Cygwin
3684         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
3685         fall off end of function. Fixes http://bugs.gnu.org/22949
3687 2016-03-05  Bruno Haible  <bruno@clisp.org>
3689         extern-inline: port to PGI CC
3690         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
3691         keyword 'inline'.
3692         Reported by Adam James Stewart in:
3693         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
3695 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3697         signbit: port back to pre-C++11 GCC
3698         * lib/math.in.h (signbit): Do previous change only if
3699         __cplusplus < 201103.  See Jonathan Wakely in:
3700         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
3702 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
3704         mountlist: recognize autofs-mounted remote file systems, too
3705         Originally reported at: https://bugzilla.redhat.com/1309247
3706         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
3707         "-hosts" because it is used by autofs to mount remote file systems.
3709 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3711         signbit: port to C++ with GCC 6
3712         * lib/math.in.h (signbit) [__cplusplus]:
3713         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
3714         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
3716         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
3718         regex: make it closer to libc
3719         Make Idx a signed type, rather than possibly unsigned.
3720         The unsignedness was not really buying us anything, since the code
3721         overflows for other reasons before getting to PTRDIFF_MAX.  Making
3722         it signed allows us to use -1 and -2 with abandon, like libc does,
3723         thus lessening the number of differences between gnulib and libc.
3724         Also, it should help avoid gratuitous warnings like the one
3725         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
3726         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
3729         regex: merge patches from libc
3731         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
3732         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
3733         Convert miscellaneous function definitions to prototype style.
3734         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
3735         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
3736         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
3737         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
3738         (re_search_internal):
3739         Convert to prototype-style function definition.
3740         Use internal_function for internal functions.
3742 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
3744         stdalign: port to older HP and IBM cc
3745         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
3746         C compilers, by checking their version numbers.  These version
3747         numbers appear in MariaDB and in Qt code that dates way back and
3748         that conditiionally uses the 'aligned' attribute.
3750 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3752         stdalign: port to clang 3.7.0
3753         Problem reported by Herbert J. Skuhra in:
3754         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
3755         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
3756         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
3757         https://llvm.org/bugs/show_bug.cgi?id=26547
3759 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3761         readdir_r: now obsolescent
3762         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
3763         * lib/mountlist.c (read_file_system_list): Add a FIXME.
3765 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3767         misc: port better to gcc -fsanitize=address
3768         Without these patches, ./configure CFLAGS='-fsanitize=address'
3769         would compute incorrect values.  This patch fixes some (but not all)
3770         test failures with recent glibc, with this configuration.
3771         * m4/acl.m4 (gl_ACL_GET_FILE):
3772         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
3773         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
3774         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
3775         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
3776         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
3777         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
3778         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
3779         * m4/getline.m4 (gl_FUNC_GETLINE):
3780         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
3781         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
3782         * m4/regex.m4 (gl_REGEX):
3783         * m4/strndup.m4 (gl_FUNC_STRNDUP):
3784         * tests/test-calloc-gnu.c (main):
3785         * tests/test-duplocale.c (main):
3786         * tests/test-getgroups.c (main):
3787         * tests/test-getline.c (main):
3788         * tests/test-inttostr.c (main):
3789         * tests/test-localename.c (test_locale_name)
3790         (test_locale_name_thread, test_locale_name_environ)
3791         (test_locale_name_default):
3792         * tests/test-regex.c (main):
3793         * tests/test-setlocale1.c (main):
3794         * tests/test-stat.h (test_stat_func):
3795         Free heap-allocated storage before exiting.
3796         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
3797         Don't match *_foo symbols inserted by AddressSanitizer.
3798         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
3800 2016-02-02  Jim Meyering  <meyering@fb.com>
3802         verify-tests: also remove stray test-verify.Tpo
3803         * modules/verify-tests (Makefile.am): Arrange for "make clean"
3804         to remove the test-verify.Tpo file that is left behind by
3805         the automake-generated rule upon compilation failure.
3806         Otherwise, that .Tpo file would cause a failed "make distcheck"
3807         at least for grep.
3809 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3811         std-gnu11: new module
3812         This makes it easier for applications to prefer C11 and C++11
3813         to older variants, when compiling C and C++ code.
3814         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
3815         a nontrivial chunk of GPLed Autoconf source code.
3816         * COPYING: Mention the m4/*.m4 copyright situation.
3817         * MODULES.html.sh (std-gnu11): New module.
3818         * m4/std-gnu11.m4, modules/std-gnu11: New files.
3820 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3822         get-permissions, strftime: fix grammar in comments
3823         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
3824         some grammar fixes Alan Mackenzie made to GNU Emacs.
3826 2016-01-25  Daiki Ueno  <ueno@gnu.org>
3828         gettext: mark as obsolete
3829         Suggested by Paul Eggert in:
3830         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
3831         * modules/gettext (Status): Mark as obsolete.
3832         (Notice): Suggest to use 'gettext-h' instead.
3833         * modules/gettext-h (Description): Suggest GNU gettext, instead of
3834         the 'gettext' module.
3836 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
3838         gnulib-tool: don't give up on ln -s so easily
3839         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
3840         because an earlier one failed.  The targets could be on different
3841         file systems.  Problem reported by KO Myung-Hun in:
3842         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
3844         closedir: fix OS/2-related typos
3845         Problem reported by KO Myung-Hun in:
3846         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
3847         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
3848         in the last couple of changes.
3850 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
3852         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
3853         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
3854         copying a directory.
3856 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
3858         regex: treat [x] as x if x is a unibyte encoding error
3859         Problem reported by Aharon Robbins in:
3860         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
3861         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
3862         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
3864         closedir, dirfd, opendir: port to OpenSolaris 5.10
3865         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
3866         * m4/dirfd.m4 (gl_FUNC_DIRFD):
3867         * m4/opendir.m4 (gl_FUNC_OPENDIR):
3868         Don't use ${word##pat} substitution, as it doesn't work in
3869         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
3870         http://bugs.gnu.org/22443#11
3872 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3874         bootstrap: use American spelling
3875         * build-aux/bootstrap: Honor American spelling.
3877 2016-01-22  Karl Berry  <karl@freefriends.org>
3879         * doc/posix-functions/localtime.texi,
3880         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
3882 2016-01-21  Bruno Haible  <bruno@clisp.org>
3884         hash-pjw-bare: fix comment
3885         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
3887         wcwidth: Replace also on OpenBSD 5.8
3888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
3889         * doc/posix-functions/wcwidth.texi: Update.
3891 2016-01-20  Pádraig Brady  <P@draigBrady.com>
3893         gnu-web-doc-update: fix addition of new files
3894         If there were already added (emnpty) dirs,
3895         then cvs aborts the add with the message:
3896           cvs [add aborted]: there is a version in <./dirname> already
3897         * build-aux/gnu-web-doc-update: Add directories separately
3898         to the addition of files, to avoid the above issue
3899         impacting the addition of files.
3901 2016-01-19  Daiki Ueno  <ueno@gnu.org>
3903         utimens-tests: avoid pulling gettext .m4 files
3904         Although this is not the right fix to the original problem:
3905         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
3906         it makes it possible again for consumer projects to use arbitrary
3907         version of gettext, through the steps described at:
3908         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
3909         See here for details:
3910         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
3911         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
3912         'gettext'.
3913         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
3914         'gettext'.
3916 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3918         regex: pacify static checkers
3919         Problem and draft fix reported by Aharon Robbins in:
3920         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
3921         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
3922         Clear memory to pacify static checkers.
3924         regex: fix [ diagnostic
3925         Problem and fix reported by Aharon Robbins in:
3926         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
3927         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
3929         regex: fix memory leaks
3930         Problem and draft fix reported by Aharon Robbins in:
3931         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
3932         * lib/regcomp.c (build_range_exp, build_charclass_op)
3933         * lib/regex_internal.c (re_dfa_add_node):
3934         Fix memory leak on failure.
3936 2016-01-18  Pádraig Brady  <P@draigBrady.com>
3938         fts: don't unconditionally use leaf optimization for NFS
3939         NFS st_nlink are not accurate on all implementations,
3940         leading to aborts() if that assumption is made.
3941         See <https://bugzilla.redhat.com/1299169>
3942         * lib/fts.c (leaf_optimization_applies): Remove NFS from
3943         the white list, and document the issue.
3945 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3946             KO Myung-Hun  <komh@chollian.net>
3948         gnulib-tool: don't assume ln -s works
3949         * gnulib-tool (func_ln_s): New function.
3950         (func_ln): Use it.
3952 2016-01-15  KO Myung-Hun  <komh@chollian.net>
3954         utimes: detect utimes() correctly on OS/2 kLIBC
3955         utimes() of OS/2 kLIBC has some limitations.
3956         1. OS/2 itself supports a file date since 1980 year in local time.
3957         2. OS/2 itself supports only even seconds for a file time.
3958         3. utimes() of OS/2 kLIBC does not work on an opened file.
3959         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
3960         * doc/posix-functions/utimes.texi: Document the above limitations of
3961         utimes() on OS/2 kLIBC.
3963 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3964             KO Myung-Hun  <komh@chollian.net>
3966         openat_proc_name: port to OS/2 kLIBC
3967         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
3968         instead of /proc/self/fd.
3969         * lib/openat-proc.c (openat_proc_name):
3970         Don't assume file name length is less than INT_MAX.
3971         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
3973 2016-01-14  KO Myung-Hun  <komh@chollian.net>
3975         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
3976         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
3977         definitions of intptr_t and uintptr_t (which use int and unsigned)
3978         to avoid clashes with declarations of system functions like sbrk.
3979         * lib/stdint.in.h (intptr_t, uintptr_t): Check
3980         _INTPTR_T_DECLARED before defining them.
3982         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
3983         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
3984         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
3985         Declare on kLIBC.
3986         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
3987         fd associated with dirp.
3988         (_gl_register_dirp_fd): New. Register fd associated with dirp to
3989         dirp_fd_list.
3990         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
3991         (dirfd): Implemented for kLIBC.
3992         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
3993         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
3994         succeeds.
3995         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
3996         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3997         (REPLACE_DIRFD): Define to 1 if replaced.
3998         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
3999         * modules/closedir (Depends-on): Add dirfd.
4000         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
4001         condition.
4002         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
4003         * modules/opendir (Depends-on): Add dirfd.
4005         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
4006         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
4007         * lib/dup.c (dup_nothrow): New.
4008         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
4009         (klibc_dup2): New.
4010         * lib/fcntl.c (klibc_fcntl): New.
4011         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
4012         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
4013         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
4014         fd.
4016         pipe_filter_ii_execute: port to OS/2 kLIBC
4017         Pipes on kLIBC do not support O_NONBLOCK like Win32.
4018         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
4019         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
4020         Reuse Win32 code on OS/2 kLIBC.
4021         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
4022         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
4024         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
4025         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
4026         static inline function.  The implementation of wcwidth in wcwidth.c
4027         causes a "conflicting types" error.
4028         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
4030         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
4031         spawn() on OS/2 kLIBC is not silly like one on Windows
4032         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
4033         empty string on OS/2 kLIBC.
4035         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
4036         On OS/2 kLIBC, select() works only on sockets.
4037         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
4039         binary-io: don't put fd in binary mode if it is a console on EMX
4040         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
4041         a console on EMX.
4043 2016-01-15  Pádraig Brady  <P@draigBrady.com>
4045         doc: mention unfixed issues with unsupported localtime() values
4046         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
4047         returns nonsense for localtime(2^56).
4048         * doc/posix-functions/localtime_r.texi: Likewise.
4050 2016-01-14  Pádraig Brady  <P@draigBrady.com>
4052         doc: mention setlocale() issues on OpenBSD
4053         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
4054         never fails, and the need to check categories individually.
4056 2016-01-14  Pádraig Brady  <P@draigBrady.com>
4058         sig2str: list all signals on FreeBSD >= 7
4059         FreeBSD >= 7 is contravening POSIX by not defining NSIG
4060         to the maximal statically defined signal value.
4061         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
4062         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
4063         where available, even when NSIG is defined.
4065 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
4067         acl-permissions: port to USE_ACL==0 platforms
4068         I ran into this problem when building bleeding-edge GNU Emacs
4069         with gcc -fsanitize=address on Fedora 23.  On this platform
4070         the ACL library does not pass the 'configure' test and Emacs
4071         then does not build due in part to what appear to be typos in the
4072         ACL part of Gnulib.
4073         * lib/acl-internal.c (free_permission_context):
4074         * lib/acl-internal.h (struct permission_context):
4075         Test whether USE_ACL is nonzero, not whether it is defined.
4077 2016-01-12  Martin Sebor  <msebor@redhat.com>
4079         mktime: rename macro to avoid glibc clash
4080         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
4081         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
4083 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
4085         Port "$@" to OpenIndiana ksh93
4086         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
4087         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
4088         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
4089         bug long-dead shells, so remove the workaround.
4090         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
4091         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
4092         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
4093         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
4094         Use "$@" instead of ${1+"$@"}.
4096         Port Universal Time settings to strict POSIX
4097         * build-aux/announce-gen, build-aux/bootstrap:
4098         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
4099         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
4100         * build-aux/gnupload, build-aux/mkinstalldirs:
4101         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4102         * build-aux/update-copyright, build-aux/useless-if-before-free:
4103         * build-aux/vc-list-files, tests/test-strftime.c:
4104         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
4105         but POSIX says the behavior of TZ="UTC" is undefined.
4107 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4109         msvc-inval: fix problem with unset shell var
4110         Problem reported by Karl Berry in:
4111         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
4112         * modules/msvc-inval (Depends-on):
4113         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
4114         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
4116 2016-01-01  Pádraig Brady  <P@draigBrady.com>
4118         tests: for compare_(), use cmp -s where available
4119         * tests/init.sh (compare_): Only fall back to cmp without
4120         the POSIX defined -s option, where this is not available.
4122 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4124         version-etc: new year
4125         * build-aux/gendocs.sh (version):
4126         * doc/gendocs_template:
4127         * doc/gendocs_template_min:
4128         * doc/gnulib.texi:
4129         * lib/version-etc.c (COPYRIGHT_YEAR):
4130         Update copyright dates by hand in templates and the like.
4131         * all files: Run 'make update-copyright'.
4133 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4135         human: fix output buffer overrun by 1
4136         * lib/human.c (human_readable): Fix off-by-one typo in buffer
4137         calculation that could lead to a one-byte buffer overrun.
4139 2015-12-28  Daiki Ueno  <ueno@gnu.org>
4141         maint: fix operator precedence in mbrtowc test
4142         This is a fix for test breakage introduced by commit 45228d96; the
4143         equality expression must be parenthesized when negated with '!',
4144         otherwise we always get:
4146           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
4148         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
4149         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
4151 2015-12-23  James Youngman  <jay@gnu.org>
4153         regexprops-generic: update from regex.h
4154         * doc/regexprops-generic.texi: update by running the regexprops binary
4155         from findutils (the command line is 'regexprops "Regular Expressions"
4156         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
4157         gnulib with GNU grep had made this document out-of-date.
4159 2015-12-23  Pádraig Brady  <P@draigBrady.com>
4161         strftime-tests: avoid false failure on OS X
4162         * tests/test-strftime.c (struct localtime_rz_test): Add an
4163         ahistorical member which is used to warn rather than fail
4164         when tm_isdst isn't set for such entries.  This is the case for
4165         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
4167 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
4169         fts: ensure leaf optimization is used for NFS
4170         NFS provides usable dirent.d_type but not necessarily for all entries
4171         of large directories.  See <https://bugzilla.redhat.com/1252549>
4172         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
4174 2015-12-20  Pádraig Brady  <P@draigBrady.com>
4176         fts: enable leaf optimization for XFS
4177         XFS provides usable dirent.d_type only for DT_DIR,
4178         but the noleaf optimization still applies.
4179         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
4181 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4183         intprops: comment fix
4184         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
4185         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
4187         intprops-test: work around GCC bug 68971
4188         Problem reported by Pádraig Brady in:
4189         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
4190         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
4191         (main): Add a case that better tests 64-bit long in this area.
4193 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
4195         gnulib-tool: allow multiple --local-dir usage
4196         * gnulib-tool: Use --local-dir to construct compound
4197         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
4198         PATH_SEPARATOR early.
4199         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
4200         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
4201         func_determine_path_separator because that needs to be detected
4202         earlier now.
4203         (func_determine_path_separator): New function.
4204         (func_path_foreach, func_path_foreach_inner): New functions.
4205         (func_path_prepend, func_path_append): Likewise.
4206         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
4207         (func_lookup_file, func_all_modules): Use new functions to work
4208         with local_gnulib_path.
4209         (func_modules_in_dir, func_exists_module): New callbacks for
4210         func_path_foreach.
4211         (func_exists_module, func_get_tests_module): Likewise.
4212         (func_is_local_file, func_should_symlink): New helper methods.
4213         (func_add_file, func_update_file): Use new func_should_symlink
4214         instead, DRY.
4215         (func_reconstruct_cached_local_gnulib_path): New helper.
4216         (func_reconstruct_cached_dir): New callback.
4217         (func_import): The cached_local_gnulib_dir renamed to
4218         cached_local_gnulib_path similarly to local_gnulib_dir.
4219         Use new func_reconstruct_cached_local_gnulib_path.
4220         (func_count_relative_local_gnulib_path): New sub-method.
4221         (func_create_testdir): Use func_should_symlink, DRY.
4222         (func_create_megatestdir): Use new functions to work with
4223         local_gnulib_path correctly.
4224         (func_append_local_dir): New helper.
4226 2015-12-08  Pádraig Brady  <P@draigBrady.com>
4228         fix freadptr to work with ungetc on all uClibc configs
4229         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
4230         where GNU coreutils cut(1) generates invalid output on uClibc
4231         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
4232         * lib/freadptr.c (freadptr): Return NULL if there are
4233         ungotten chars.  In this case freadseek() will iterate
4234         again to process the ungotten character.
4236 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
4238         xalloc-oversized: improve performance with GCC 5
4239         * lib/xalloc-oversized.h (xalloc_oversized):
4240         Improve performance with GCC 5 by using __builtin_mul_overflow.
4242 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
4244         intprops: new public macro EXPR_SIGNED
4245         Emacs can use this macro, so make it public.
4246         * doc/intprops.texi (Arithmetic Type Properties): Rename from
4247         'Integer Type Determination', since some of these macros apply
4248         to non-integer types.  Clarify what kinds of constant expressions
4249         these macros return.  Say when the arguments can be non-integers.
4250         Mention newly published macro EXPR_SIGNED.
4251         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
4252         make it public.  All uses changed.
4254         intprops: fix typo in clang port
4255         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
4256         '__builtin_add_overflow' that is not caught by compiler.
4258 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
4260         test-timespec: fix typo in previous change
4261         * tests/test-timespec.c (main): Fix typo that reduced test quality.
4263         timespec-sub: fix overflow bug; add tests
4264         * lib/timespec-add.c (timespec_add):
4265         * lib/timespec-sub.c (timespec_sub):
4266         Work even if time_t is narrower than int (a theoretical
4267         possibility).  Redo code for a bit more clarity.
4268         * lib/timespec-sub.c (timespec_sub):
4269         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
4270         * modules/timespec-tests, tests/test-timespec.c: New files.
4272         intprops-test: suppress -Woverlength-strings
4273         Problem reported by Pádraig Brady in:
4274         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
4275         It is not worth the hassle to port this test to compilers that
4276         cannot handle long strings in diagnostics.
4277         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
4279 2015-11-03  Pádraig Brady  <P@draigBrady.com>
4281         quotearg: add quotearg_n_style_colon()
4282         This quotes with default options of the specified style,
4283         but with quoting enabled for instances of ':'.
4284         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
4285         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
4287 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
4289         intprops: revise _WRAPV macros, revert _OVERFLOW
4290         The incompatible changes to the _OVERFLOW macros were too much of
4291         a hassle in practice, so revert them.  Instead, change the new
4292         _WRAPV macros to make them closer in behavior to GCC 5's new
4293         builtin_add_overflow etc. functions.  No other software was using
4294         these newly-added macros yet, so this should be OK.
4295         * NEWS: Revert previous change, since the incompatible change
4296         has been reverted, and nobody used the incompatible version.
4297         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
4298         Document revised behavior.
4299         (Integer Range Overflow): Adjust example to match above revisions.
4300         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
4301         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
4302         these can be used in integer constant expressions again.
4303         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
4304         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
4305         needed.
4306         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
4307         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
4308         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
4309         Remove, as they did not seem that useful.
4310         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
4311         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
4312         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
4313         Support new semantics.
4314         (__has_builtin): New macro, if not alreay defined.
4315         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
4316         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
4317         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
4318         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
4319         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
4320         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
4321         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
4322         New macros.
4323         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
4325 2015-11-03  Jim Meyering  <meyering@fb.com>
4327         intprops: add parentheses for when OP has precedence lower than "-"
4328         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
4329         "a OP b" must be parenthesized for when OP is like "<<", which has
4330         lower precedence than the following "-". Reported by Pádraig Brady.
4332 2015-11-03  Pádraig Brady  <P@draigBrady.com>
4334         quotearg: constify get_quoting_style parameters
4335         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
4336         * lib/quotearg.c (get_quoting_style): Likewise.
4338 2015-11-02  Pádraig Brady  <P@draigBrady.com>
4340         quotearg: add support for $'' shell escaping
4341         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
4342         items and descriptions.
4343         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
4344         above types by quoting like "shell", but using $'...' syntax
4345         for non printable characters, which should provide unambiguous
4346         printable output for any input.
4347         * tests/test-quotearg-simple.c: Update accordingly.
4349 2015-11-02  Pádraig Brady  <P@draigBrady.com>
4351         maint: use a more standard return from mbrtowc test
4352         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
4353         from the test program as this is non standard and often
4354         indicates an unhandled case in the test program.
4355         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
4357 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
4359         intprops: add WRAPV and const flavors for GCC 5
4360         If available, use GCC 5's builtin functions for efficient integer
4361         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
4362         and safely compute the low-order bits of the correct answer.
4363         A downside of these efficient functions is that they cannot be
4364         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
4365         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
4366         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
4367         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
4368         Document the changes.
4369         (Wraparound Arithmetic): New section.
4370         (Integer Range Overflow):
4371         Put this subsection last, since it's least useful.
4372         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
4373         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
4374         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
4375         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
4376         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
4377         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
4378         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
4379         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
4380         New macros.
4381         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4382         Generate calls to GCC builtins if available, for speed.
4383         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
4384         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
4385         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
4386         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
4387         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
4388         (CHECK_QUOTIENT, CHECK_REMAINDER):
4389         Test WRAPV and CONST flavors (when available) too.
4391 2015-10-30  Pádraig Brady  <P@draigBrady.com>
4393         doc: use extended timezone format in iso-8601 example
4394         * doc/parse-datetime.texi: The standard states that extended format
4395         is to be used consistently throughout.
4396         Note that lib/parse-datetime.y can handle either tz format.
4398 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
4400         stdalign: port to Sun C 5.9
4401         * doc/posix-headers/stdalign.texi: Document this.
4402         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
4403         __attribute__ ((__aligned__ (...))).
4405 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
4407         time_rz: fix comment about tzalloc
4408         * lib/time_rz.c (tzalloc): Fix comment.
4410 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
4412         stdalign: work around pre-4.9 GCC x86 bug
4413         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
4414         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
4415         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
4417 2015-10-18  Pádraig Brady  <P@draigBrady.com>
4419         maint.mk: sc_tight_scope: remove extraneous expressions
4420         * top/maint.mk (tight_scope): This is not really required since
4421         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
4422         that matches all nm entries.  But it does remove extraneous entries
4423         that may be confusing or cause issue in future maintenance.
4425 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
4427         time_rz: return NULL if localtime_r fails
4428         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
4429         while still attempting to pacify bleeding-edge GCC.
4431         fts: port to C11 alignof
4432         * doc/posix-headers/stdalign.texi (stdalign.h):
4433         Document the C11 restriction.
4434         * lib/fts.c: Include stddef.h, for max_align_t.
4435         (fts_alloc): Align using max_align_t, not FTSENT.
4436         * modules/fts (Depends-on): Add stddef.
4438 2015-10-18  Jim Meyering  <meyering@fb.com>
4440         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
4441         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
4442         would see this:
4444         lib/time_rz.c: In function 'localtime_rz':
4445         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
4446           [-Werror=nonnull]
4447                    if (tm && !save_abbr (tz, tm))
4448                        ^
4450         That was complaining about "tm" because it is a parameter that was
4451         declared with the __nonnull__ attribute.
4452         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
4453         result of localtime_r.
4455 2015-10-17  Jim Meyering  <meyering@fb.com>
4457         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
4458         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
4459         name-extraction regexp mistakenly used \S+, and would mistakenly
4460         extract "*F" from "extern int *F()" rather than the desired "F".
4461         Use \w+ instead.
4463 2015-10-17  Jim Meyering  <meyering@fb.com>
4465         maint.mk: sc_tight_scope: factor and support OS X
4466         * top/maint.mk (_gl_tight_scope): Address three issues:
4467         - factor out four instances of code that wraps a string in "^...$"
4468         - allow nm-reported symbol names to have an optional leading "_"
4469         - add "main" to the list of ignored variable names, because on os x,
4470         "main" has nm-reported type "S" in the variable-checking section.
4472 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
4474         safe-alloc-tests: fix typo in license header
4475         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
4477 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
4479         copy-file: fix mem leak in error case
4480         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
4481         upon error opening or performing I/O to the src and dest files.
4483 2015-10-15  Mike Frysinger  <vapier@chromium.org>
4485         localename: control langinfo.h inclusion
4486         This header is only used to work around buggy behavior in old
4487         versions of glibc, so do not include it all the time.  Otherwise
4488         we get build failures on systems that do not provide langinfo.h.
4489         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
4490         in the source later on.
4491         The patch was originally submitted to gettext as:
4492         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
4494 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4496         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
4497         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
4498         * lib/u64.c, lib/unistd.c:
4499         Append 'typedef int dummy;', to pacify compilers that are picky
4500         about empty translation units.
4502 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
4504         accept4-tests: fix to avoid non portable flags
4505         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
4506         as they are the only documented ones, and passing others may trigger
4507         EINVAL (seen on FreeBSD 10.1-RELEASE).
4508         * doc/glibc-functions/accept4.texi: Mention that we don't provide
4509         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
4511 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
4513         gnulib-tool: fix tests of 'extensions' module
4514         This complements f8fe25fab60e3c687a124 commit.
4515         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
4516         emitting of initial gl_EARLY macros.
4517         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
4518         replaced with func_emit_pre_early_macros call.
4520 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
4522         unicase/locale-language: fix typo in utf-8 cookie
4523         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
4524         Problem reported by Zbigniew Jędrzejewski-Szmek.
4526 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
4528         xalloc: do not worry about GCC 5 warning on 32 bit
4529         * lib/xalloc.h: Revert previous change.
4530         I found a better way to fix this in coreutils.
4532 2015-10-02  Pádraig Brady  <P@draigBrady.com>
4534         xalloc: avoid GCC 5.1 warning on 32 bit
4535         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
4536         xalloc_oversized(), which was seen to give this warning
4537         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
4538         when simplifying conditional".
4540 2015-10-02  Daiki Ueno  <ueno@gnu.org>
4542         uniname/uniname-tests: avoid compiler warnings
4543         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
4544         unused local variables.
4545         (test_alias_lookup): Fix alias name display in failure cases.
4547 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4549         c-ctype: do not worry about EBCDIC + char signed
4550         Drop support for EBCDIC with char being signed, as this breaks too
4551         many programs.  Problem reported by Ben Pfaff in:
4552         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
4553         * lib/c-ctype.h: Verify that we are not using EBCDIC with
4554         char being signed.
4555         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
4556         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
4557         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
4558         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
4559         * tests/test-c-ctype.c (test_all):
4560         Simplify by assuming standard char values cannot be negative.
4561         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
4563 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4565         c-ctype: port better to z/OS EBCDIC
4566         Problems reported by Daniel Richard G. in:
4567         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
4568         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
4569         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
4570         (_C_CTYPE_OTHER_CNTRL): New macro.
4571         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
4572         from SCHAR_MIN, as the functions are defined only from values
4573         promoted from char or from unsigned char, not necessarily from
4574         signed char.
4576 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
4578         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
4580         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
4581         and ARFLAGS variables.  Doing this unconditionally could break
4582         later Automake's AM_PROG_AR invocation (at least it's
4583         AC_CHECK_TOOLS call to detect correct 'ar' binary).
4585         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
4586         Amsterdam Compiler Kit, so make the previous code to have effects
4587         only on ACK, and rather automatically call the Automake's
4588         AM_PROG_AR as soon as possible to decide other cases.
4590         References:
4591         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
4593         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
4594         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
4595         is possible, keep setting AR/ARFLAGS to reasonable defaults.
4596         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
4597         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
4598         'extensions' module is used.
4599         * modules/extensions (configure.ac-early): Remove as this snippet
4600         is added to gnulib-comp.m4 earlier anyway.
4602 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4604         sockets: MS Windows initalization fixes
4605         Problem reported by Test User in:
4606         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
4607         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
4608         Correct the endianness.
4609         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
4610         number mismatch, not just on <.  Cleanup before any such failure.
4612 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
4614         gc: fix detection of installed libgcrypt version
4615         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
4616         at least as recent as 1.4.4.  The previously used macro is not
4617         available now, since modules were removed in version 1.6.0.
4619 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4621         c-ctype: rewrite to use inline functions
4622         This simplifies maintenance, since it makes for just one
4623         implementation of each function, letting the compiler have the fun
4624         of optimization.  In practice this works well nowadays with GCC.
4625         E.g., c_isascii might need only three instructions even though the
4626         source code lists every ASCII character individually in a large
4627         switch statement.
4628         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
4629         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
4630         * NEWS: Document the API change.
4631         * lib/c-ctype.c: Drastically simplify, since this now just expands
4632         inline functions.
4633         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4634         (C_CTYPE_INLINE): New macro.
4635         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
4636         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
4637         Verify that either ASCII or EBCDIC is being used.
4638         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
4639         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
4640         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
4641         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
4642         New private macros.
4643         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
4644         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
4645         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
4646         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
4647         (c_tolower, c_toupper): When converting, return the unsigned char,
4648         as that is what z/OS does.
4649         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
4650         of some c-ctype.h macros.
4651         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
4652         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
4653         c_tolower promotion to be compatible with z/OS.
4655 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
4657         gitlog-to-changelog: trim only trailing whitespaces
4658         This is fix for --format regression introduced by commit
4659         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
4660         doubled %n string) had no effect anymore.  This format
4661         specification has been used e.g. by GNU paxuitils (commit
4662         edfd8bcc3).
4664         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
4665         newlines in commmit messages.
4667 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4669         Test that c_iscntrl agrees with iscntrl, etc.
4670         Suggested by Daniel Richard G. in:
4671         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
4672         * modules/c-ctype-tests (Depends-on): Add ctype.
4673         * tests/test-c-ctype.c: Include <ctype.h>.
4674         (NCHARS): New constant.
4675         (test_agree_with_C_locale): New function.
4676         (main): Use it.
4677         (test_all): Use named constants.
4679         c-ctype: improve c_isascii testing
4680         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
4681         Add a test to count the number of ASCII characters.
4683 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4685         savewd: remove SAVEWD_CHDIR_READABLE
4686         It was problematic in the light of file systems that ignore umask.
4687         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
4688         * NEWS: Document this.
4689         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
4690         successful, -1 (setting errno) on failure, rather than something
4691         more complicated than that.
4692         * lib/mkdir-p.c (make_dir_parents):
4693         Do not use SAVEWD_CHDIR_READABLE.
4694         * lib/savewd.c (savewd_chdir):
4695         Remove support for SAVEWD_CHDIR_READABLE.
4696         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
4698         c-ctype: port better to EBCDIC
4699         Problems reported by Daniel Richard G. in
4700         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
4701         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
4702         Include "verify.h".
4703         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
4704         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
4705         Define as enum constants with value false, if not defined, so that
4706         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
4707         code more portable, as both branches of the 'if' are compiled on
4708         all platforms.
4709         (C_CTYPE_EBCDIC): New constant.
4710         Verify that the character set is either ASCII or EBCDIC.
4711         (to_char): New static function.
4712         (c_isascii, c_iscntrl):
4713         Assume standard control-character assignments for EBCDIC.
4714         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
4715         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
4716         Rewrite to use 'if' instead of 'ifdef'.
4717         Use to_char if non-ASCII.  Prefer <= to >=.
4718         Prefer true and false to 1 and 0, for booleans.
4719         (c_iscntrl): Use 'if', not 'ifdef'.
4720         * modules/c-ctype (Depends-on): Add verify.
4721         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
4722         (to_char): New function.
4723         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
4725 2015-09-21  Pádraig Brady  <P@draigBrady.com>
4727         nanosleep: fix return code for interrupted replacement
4728         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
4729         that we return -1 in the case the call is interrupted by a signal,
4730         rather than the current value of 1.
4731         Diagnosed and tested by Daniel Richard G.
4733 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
4735         Diagnose ERE '()|\1'
4736         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
4737         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
4738         track of the set of previously-completed subexpressions available
4739         before the first alternative, and restore this set just before
4740         parsing each subsequent alternative.  This lets us diagnose the
4741         invalid back-reference in the ERE '()|\1'.
4743         regex: merge patches from libc
4745         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
4746         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
4747         * lib/regex_internal.h:
4748         Include <libc-lock.h> instead of <bits/libc-lock.h>.
4750         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
4751         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
4752         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
4753         wcscoll.
4754         * lib/regexec.c (check_node_accept_bytes): Likewise.
4756         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
4757         Fix regex wcrtomb namespace (bug 18496).
4758         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
4759         instead of wcrtomb.
4761         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
4762         Fix regex wctype namespace (bug 18495).
4763         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
4764         instead of towlower.
4765         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
4766         instead of iswlower.  Call __towupper instead of towupper.
4767         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
4768         instead of iswalnum.
4770         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
4771         * lib/regcomp.c (parse_bracket_exp): Initialize type to
4772         COLL_SYM in a couple of places to avoid uninitialized variable
4773         wanings on tilegx gcc 4.8.2.
4775         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4776         * lib/regex_internal.h: Remove NOT_IN_libc.
4778         2014-11-17  Andreas Schwab  <schwab@suse.de>
4779         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
4781         2014-09-11  Roland McGrath  <roland@hack.frob.com>
4782         Move findidx nested functions to top-level.
4783         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
4784         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
4785         Pass new arguments to findidx.
4786         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
4787         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
4788         Don't #include it inside the function.  Pass new arguments to findidx.
4789         * lib/regex_internal.h:
4790         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
4791         (re_string_elem_size_at): Don't #include it inside the function.
4792         Pass new arguments to findidx.
4794         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4795         Check if DEBUG is defined in regex_internal.c
4796         * lib/regex_internal.c: Check if DEBUG is defined and is set.
4798 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
4800         ceill: detect buggy OpenBSD implementation
4801         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
4802         which returns zero for small values.  Discussed here:
4803         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
4805 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
4807         mountlist: add me_mntroot field on Linux machines
4808         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
4809         mount_entry so Linux machines based on /proc/self/mountinfo can
4810         distinguish between bind mounts and original mounts.  In reality bind
4811         mounts aren't treated differently than mountroot=/ mounts by the
4812         kernel, but the user often wants these bind mounts distinguished.
4813         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
4814         More details at https://pad.lv/1432871
4816 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
4818         doc: Describe to use multiple instances of gnulib
4819         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
4820         instances of gnulib with different modules can be used, for example one
4821         for a lib and another one for associated tools.
4823 2015-09-01  Pádraig Brady  <P@draigBrady.com>
4825         base32: mark function as __attribute__ const
4826         * lib/base32.h (isbase32): Mark __attribute__ const as
4827         suggested by GCC, and consistent with the base64 module.
4829 2015-08-20  Daiki Ueno  <ueno@gnu.org>
4831         gnulib-tool: don't transform binary files with sed
4832         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
4833         .mo and .class files.
4834         Reported by Denis Denisov.
4836 2015-08-10  Daiki Ueno  <ueno@gnu.org>
4838         gperf: respect silent rules
4839         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
4840         V_GPERF_0 for silent rules.
4841         * modules/iconv_open (Makefile.am): Use V_GPERF.
4842         * modules/unicase/locale-language (Makefile.am): Likewise.
4843         * modules/unicase/special-casing (Makefile.am): Likewise.
4844         * modules/unictype/category-byname (Makefile.am): Likewise.
4845         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
4846         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
4847         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
4848         * modules/unictype/property-byname (Makefile.am): Likewise.
4849         * modules/unictype/scripts (Makefile.am): Likewise.
4850         * modules/uninorm/composition (Makefile.am): Likewise.
4852 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
4854         Improve port of stdalign to C++11
4855         Problem reported by Sundaram in:
4856         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
4857         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
4858         (__alignas_is_defined): Define if C++11 or newer.
4860 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
4862         pmccabe2html: fix gawk regex escaping
4863         * build-aux/pmccabe2html: Add one more backslash to properly
4864         escape the gsub replacement value.  Fixes this error:
4865         gawk: ./build-aux/pmccabe2html:425: \
4866         warning: escape sequence `\&' treated as plain `&'
4868 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4870         time_rz: port to pedantic memcpy
4871         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
4872         that reject memcpy (..., NULL, 0).
4874 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4876         time_rz: port better to MinGW
4877         Don't change tzname, as this makes MinGW dump core (Bug#21020).
4878         Instead, store the tzname copy in the struct tm_zone object.
4879         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
4880         * lib/strftime.c [!_LIBC]:
4881         * lib/time_rz.c: Include time-internal.h.
4882         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
4883         name from *TZ rather than from TZNAME, doable because *TZ now has
4884         a tzname_copy member.
4885         * lib/time-internal.h: New file, with contents taken from
4886         lib/time_rz.c.  It's separate because strftime.c now accesses
4887         struct tm_zone members.
4888         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
4889         New member tzname_copy.
4890         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
4891         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
4892         Initialize tzname_copy member.
4893         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
4894         in tzname_copy member.
4895         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
4896         (restore_tzname): Remove; no longer needed.  All calls removed.
4897         * modules/time_rz (Files): Add lib/time-internal.h.
4899         time: port __need_time_t to MinGW
4900         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
4901         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
4903 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4905         strftime: fix newly-introduced bug on Solaris
4906         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
4907         consistently at the start, rather than doing some of the setup at
4908         the start and some in the %Z format spec.  This is cleaner, and
4909         works better with time_rz on platforms like Solaris where struct
4910         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
4911         mktime_z and localtime_rz can mess up the tzname cache.
4913         test-strftime: test for Solaris bug
4914         * modules/strftime-tests (Depends-on): Add strerror.
4915         * tests/test-strftime.c: Include <errno.h>.
4916         (posixtm_test): New function, containing the old 'main'.
4917         (struct tzalloc_test, struct localtime_rz_test): New types.
4918         (TZ, LT): New static vars.
4919         (tzalloc_test): New function.
4920         (main): Rewrite in terms of posixtm_test and tzalloc_test.
4922         time_rz: port to Solaris etc.
4923         Works around a tzname problem on platforms like Solaris that have
4924         tzname but not tm_zone, by setting tzname at the appropriate time
4925         and restoring it later.
4926         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
4927         New static vars.
4928         (save_abbr) [HAVE_TZNAME]: Set them.
4929         (revert_tz) [HAVE_TZNAME]: Clear or use them.
4930         (restore_tzname): New function.
4931         (localtime_rz, mktime_z): Use it.
4933         time_rz: now LGPL
4934         * modules/time_rz (License): Now LGPL, because strftime depends on it.
4936         time_rz: make a constant 'const'
4937         * lib/time_rz.c (local_tz): Now const.
4939         time_rz: fix off-by-one typo
4940         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
4942 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
4944         fprintftime, strftime: use timezone_t args
4945         * NEWS: Document the change.
4946         * lib/fprintftime.h (fprintftime):
4947         * lib/strftime.c (extra_args) [my_strftime]:
4948         * lib/strftime.h (nstrftime):
4949         Time zone arg is now of type timezone_t, not int.
4950         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
4951         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
4952         (my_strftime) [emacs && !my_strftime]:
4953         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
4954         Remove; Emacs doesn't need this any more.
4955         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
4956         fprintftime and nstrftime to call tzset.
4957         (ut) [!my_strftime]: Remove, replacing with ...
4958         (tz) [!my_stftime]: ... this new macro.  All uses changed.
4959         (strftime_case_): Use localtime_rz and mktime_z instead
4960         of localtime_r and mktime.
4961         * modules/fprintftime (Depends-on): Add time_rz.
4962         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
4963         * tests/test-strftime.c (main): Adjust to new nstrftime API.
4965         time_rz: new module
4966         * MODULES.html.sh: Add time_rz.
4967         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
4968         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
4969         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
4970         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
4971         New var HAVE_TIMEZONE_T (default 0).
4972         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
4973         New var GNULIB_TIME_RZ (default 0).
4974         * modules/time (time.h): Substitute the new vars.
4976         flexmember: license is now unlimited
4977         * modules/flexmember (License): Change to unlimited,
4978         since its only source file gives an unlimited license.
4980 2015-07-15  Eric Blake  <eblake@redhat.com>
4982         maint: update copyright paper procedures
4983         * config/srclist.txt: Drop outdated files.
4984         * doc/Copyright/conditions.txt: Update to latest.
4985         * doc/Copyright/assign.changes.manual: Delete.
4986         * doc/Copyright/assign.future.manual: Likewise.
4987         * doc/Copyright/assign.manual: Likewise.
4988         * doc/Copyright/assign.translation.manual: Likewise.
4989         * doc/Copyright/disclaim.changes.manual: Likewise.
4990         * doc/Copyright/disclaim.manual: Likewise.
4991         * doc/Copyright/disclaim.program: Likewise.
4993 2015-07-07  Daiki Ueno  <ueno@gnu.org>
4995         localename: fix link error on Illumos
4996         Illumos defines __sun, but does not have getlocalename_l nor the
4997         equivalent.  This partially reverts commit 387c214.
4998         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
4999         available, as well as uselocale.
5000         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
5001         use getlocalename_l if it is not available.
5003 2015-07-07  Daiki Ueno  <ueno@gnu.org>
5005         unistr/uN-strtok-tests: avoid a trivial leak
5006         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
5007         input and delim after the multibyte delimiter tests.
5009 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5011         file-has-acl, acl-permissions: fix HP-UX typos
5012         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
5013         * lib/file-has-acl.c (file_has_acl):
5014         * lib/set-permissions.c (context_acl_from_mode)
5015         (context_aclv_from_mode, set_acls):
5016         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
5017         They were introduced by the recent ACL changes.
5019         regex: match current GNU grep behavior
5020         These symbols have not matched GNU grep behavior for quite some time.
5021         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
5022         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
5023         Change to match current GNU behavior.
5024         Simplify by expressing it as differences from POSIX BREs and EREs.
5025         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
5027 2015-07-03  Jim Meyering  <meyering@fb.com>
5029         set-permissions.c: adjust acl_from_mode's cpp guard
5030         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
5031         directives identical to those guarding the sole use.
5032         Otherwise, on some systems, we'd get a warning about
5033         the function being defined but not used.
5034         Also, filter through cppi to correct misleading indentation
5035         of cpp directives.
5037 2015-07-03  Pádraig Brady  <P@draigBrady.com>
5039         tests: restrict shells to those that support 'local'
5040         The local keyword is very widely supported and used
5041         in tests in coreutils and grep at least.  Therefore
5042         restrict to testing with shells that support it.
5043         This mainly excludes /bin/sh on Solaris.
5044         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
5046 2015-07-03  Seiya Kawashima <skawashima@uchicago.edu>  (tiny change)
5047         and Daiki Ueno  <ueno@gnu.org>
5049         unistr/uN-strtok: handle multibyte delimiters
5050         Previously, uN_strtok moved PTR to the next unit to the token end.
5051         When DELIM contained a multibyte character, the new position could
5052         be a middle of a multibyte character.
5053         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
5054         after the token.
5055         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
5056         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
5057         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
5058         * modules/unistr/u8-strtok (Depends-on): Depend on
5059         unistr/u8-strmblen.
5060         * modules/unistr/u16-strtok (Depends-on): Depend on
5061         unistr/u16-strmblen.
5062         * modules/unistr/u32-strtok (Depends-on): Depend on
5063         unistr/u32-strmblen.
5064         * tests/unistr/test-u-strtok.h: New file.
5065         * tests/unistr/test-u8-strtok.c: New file.
5066         * tests/unistr/test-u16-strtok.c: New file.
5067         * tests/unistr/test-u32-strtok.c: New file.
5068         * modules/unistr/u8-strtok-tests: New file.
5069         * modules/unistr/u32-strtok-tests: New file.
5070         * modules/unistr/u16-strtok-tests: New file.
5072 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
5074         update-copyright: fix test failure with perl >= 5.22 (trivial)
5075         * build-aux/update-copyright: Escape a literal left curly bracket,
5076         required with perl >= 5.22
5078 2015-07-02  Daiki Ueno  <ueno@gnu.org>
5080         u{16,32}-strstr-tests: relax timeout condition
5081         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
5082         tests can take longer than 5 seconds to complete.
5083         Reported by Dagobert Michelsen in:
5084         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
5085         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
5086         seconds to 10 seconds.
5087         * tests/unistr/test-u32-strstr.c (main): Likewise.
5089 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
5091         gnulib-common.m4: change the ARFLAGS default to 'cr'
5092         In some GNU/Linux distributions people started to compile 'ar'
5093         binary with --enable-deterministic-archives (binutils project).
5094         That, however, in combination with previous autotools long time
5095         working default AR{_,}FLAGS=cru causes warnings on such
5096         installations:
5097         ar: `u' modifier ignored since `D' is the default (see `U')
5098         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
5099         set already.
5101 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
5103         selinux-h: avoid double free after *getfilecon()
5104         Originally reported by Ben Shelton on bug-tar:
5105         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
5106         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
5107         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
5108         param should be freed by freecon(3) (regardless the return value).
5110 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
5112         fix pty related tests issues on Windows (trivial)
5113         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
5114         however it's still present in tests/ subdirectory of the final project.
5115         Therefore avoid it to pass `make check`.
5116         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
5117         will just return -ENOSYS, so avoid this non applicable test allowing
5118         the build to proceed.
5120 2015-07-01  Pádraig Brady  <P@draigBrady.com>
5122         acl: fix definition of acl_from_mode on FreeBSD
5123         This was causing basic coreutils copy operations to fail
5124         with ENOTSUP or ENOENT error messages.
5125         * lib/acl-internal.h (acl_from_mode): Only define when
5126         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
5127         of acl_from_mode() defined in lib/set-permissions.c to
5128         be used on FreeBSD at least.
5129         * lib/set-permissions.c: Fix up comment spelling,
5130         and a redundant variable assignment; noticed in passing.
5132 2015-06-30  Pádraig Brady  <P@draigBrady.com>
5134         readutmp: port to FreeBSD >= 9
5135         * lib/readutmp.h: Map utmpxname() to setutxdb().
5136         With that coreutils who(1) and pinky(1) tests pass.
5138 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5140         mgetgroups: port to strict OS X
5141         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
5142         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
5143         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
5144         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
5146 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
5148         mgetgroups: port to strict OS X
5149         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
5150         Document the getgrouplist problem.
5151         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
5152         New macro.
5153         (mgetgroups): Use it.
5154         * m4/mgetgroups.m4 (gl_MGETGROUPS):
5155         Check for OS X signature for getgrouplist.
5157 2015-06-29  Jim Meyering  <meyering@fb.com>
5159         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
5160         It started like this when building coreutils' latest on OS X,
5161         invoking ./configure with a nonempty --cache=.cache:
5163           lib/linkat.c:46:42: error: operator '||' has no right operand
5164           lib/linkat.c: In function 'rpl_linkat':
5165           lib/linkat.c:330:27: error: #if with no expression
5167         Here's linkat.c's line 46:
5169           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
5171         Here's some context:
5173           $ grep linkat_nofoll .cache
5174           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
5175           $ grep LINKAT_SYM lib/config.h
5176           #define LINKAT_SYMLINK_NOTSUP
5178         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
5179         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
5180         but that violates a tenet of AC_CACHE_CHECK: it must
5181         have no side effect other than setting its cache variable.
5183         What happens is that when the cache is set, we'd skip the
5184         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
5185         defined to whatever value it happened to have in configure's
5186         environment.  In my case, it was not defined, so this later code:
5188           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
5189             [Define to 1 if linkat can create hardlinks to symlinks])
5191         would emit code with an empty RHS.
5193         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
5194         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
5196 2015-06-28  Jim Meyering  <meyering@fb.com>
5198         mountlist: avoid an unused-label warning on OS X
5199         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
5200         Building on OS X, I saw a warning about the "free_then_fail" label
5201         being unused.  Give it the _GL_UNUSED_LABEL attribute.
5203         error.c: correct printf-style format: %d -> %u
5204         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
5205         rather than %d, to match the type of "line_number", unsigned int.
5207 2015-06-25  Pádraig Brady  <P@draigBrady.com>
5209         fts: avoid reading beyond the heap allocation
5210         GCC 5.1.1 with -O2 and -fsanitize=address reports
5211         a read of size 4 from a heap object of size 3 is indeed invalid,
5212         though this may be due to incorrect padding assumptions by GCC, see:
5213         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
5214         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
5215         * modules/fts: Depend on stdalign.
5217 2015-06-24  Pádraig Brady  <P@draigBrady.com>
5219         savedir: avoid undefined behavior in qsort call
5220         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
5221         "runtime error: null pointer passed as argument 1,
5222          which is declared to never be null"
5223         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
5225 2015-06-24  Pádraig Brady  <P@draigBrady.com>
5227         userspec: avoid undefined behavior in gettext call
5228         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
5229         "runtime error: null pointer passed as argument 2,
5230          which is declared to never be null"
5231         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
5233 2015-06-20  Glenn Morris  <rgm@gnu.org>
5235         gitlog-to-changelog: improve gitmerge.el commits
5236         Let the Emacs ChangeLog generation process exclude "skipped"
5237         messages from merge commits (Bug#20717).
5238         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
5240 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5242         wchar: fix MinGW compilation warnings
5243         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
5244         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
5245         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
5247 2015-06-20  Daiki Ueno  <ueno@gnu.org>
5249         uniname/uniname-tests: use pristine data files
5250         For copyright and maintenance reasons, use the data files from UCD
5251         without modification.
5252         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
5253         (getfield): Remove.
5254         (aliases_count): New global variable.
5255         (fill_names): Skip comments and empty lines in the input.  Don't
5256         use getfield.
5257         (fill_aliases): Likewise.
5258         (main): Change the expected command line arguments to:
5259         NAMES... ["--" ALIASES...].
5260         * tests/uniname/test-uninames.sh: Adjust to the change in
5261         test-uninames.c.
5262         * tests/uniname/UnicodeDataNames.txt: Remove.
5263         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
5264         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
5265         file from Unicode 8.0.0.
5267 2015-06-19  Pádraig Brady  <P@draigBrady.com>
5269         linked-list, linkedhash-list: avoid compiler warnings
5270         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
5271         -Werror=suggest-attribute=pure (from GCC 5.1.1).
5273 2015-06-19  Daiki Ueno  <ueno@gnu.org>
5275         libunistring: bump minimum version to 0.9.6
5276         * all modules depending on updated Unicode data: Regenerate.
5277         The modules are listed by a script that does:
5278         - for each file listed by: git show --oneline --name-only 705f4efc
5279           - deduce the containing modules, based on "Files:"
5280         - deduce the modules which depend on the containing modules, based
5281           on "Depends-on:"
5283 2015-06-18  Daiki Ueno  <ueno@gnu.org>
5285         uniname/uniname: update to Unicode 8.0.0
5286         * lib/uniname/uninames.h: Regenerate.
5287         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
5288         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
5290 2015-06-18  Daiki Ueno  <ueno@gnu.org>
5292         libunistring: update to Unicode 8.0.0
5293         * lib/gen-uni-tables.c (SIZEOF): New macro.
5294         (output_numeric): Increase the maximum number of fractions from
5295         128 to 160.  Increase the level3 value width from 7 bits to 8
5296         bits.  Use SIZEOF instead of a hard-coded integer.
5297         (output_blocks): Decrease the cut-off threshold from 0x30000 to
5298         0x28000.
5299         (fill_blocks): Increase the maximum number of blocks from 256 to
5300         384.  Use SIZEOF instead of a hard-coded integer.
5301         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
5302         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
5303         value width.
5304         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
5305         a new case added to LBP22.
5306         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
5307         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
5308         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
5309         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
5310         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
5311         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5312         lib/uniwidth/width.c.
5313         * all generated files under lib/uni* and tests/uni*: Regenerate.
5315 2015-06-16  Pádraig Brady  <P@draigBrady.com>
5317         gnu-web-doc-update: add --mirror to remove stale files
5318         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
5319         out of date files from the CVS server.  Since this is usually
5320         appropriate, a prompt is given when the option is not specified,
5321         along with the `cvs remove` command that would be run.
5323 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
5325         acl-permissions: pacify -Wsuggest-attribute=const
5326         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
5327         * lib/acl-internal.h (free_permission_context):
5328         Declare with attribute const if ! (defined USE_ACL &&
5329         (HAVE_ACL_GET_FILE || defined GETACL)).
5331         fsync: document AIX misbehavior
5332         * doc/posix-functions/fsync.texi (fsync):
5333         Document failure on AIX with read-only file descriptor.
5335 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
5337         stdio: Don't redefine gets when using C++
5338         * lib/stdio.in.h (gets): Disable warning on C++.
5340 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5342         acl-permissions: port to AIX, C89 HP-UX
5343         Problems reported by Michael Felt.
5344         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
5345         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
5346         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
5347         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
5348         Add cast for AIX, whose system calls are declared to accept
5349         char * even though the arguments are really char const *.
5350         * lib/get-permissions.c (get_permissions):
5351         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
5352         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
5353         that broke a build.
5354         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
5355         Rework types to pacify xlc.
5357 2015-06-03  Pádraig Brady  <P@draigBrady.com>
5359         vasprintf-posix: avoid compiling vasnprintf where possible
5360         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
5361         module where not required.  For example on a GNU/Linux system
5362         when gnulib-tool is run with the --conditional-dependencies option.
5364 2015-06-02  Pádraig Brady  <P@draigBrady.com>
5366         file-has-acl: fix build on Mac OS X 10
5367         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
5368         which has an incompatible 6 parameter getxattr() call.
5369         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
5370         call on Mac OS X >= 10.4.
5371         * doc/glibc-functions/fgetxattr.texi: Likewise.
5372         * lib/file-has-acl.c: Revert to more complete combined check.
5373         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
5374         Reported by Jack Howarth.
5376 2015-06-02  Pádraig Brady  <P@draigBrady.com>
5378         prefix-gnulib-mk: remove no longer needed special case
5379         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
5380         continued lib_SOURCES lines are no longer present,
5381         so special case handling of such entries is not required.
5383 2015-06-01  Pádraig Brady  <P@draigBrady.com>
5385         acl: don't depend on the deprecated qacl module
5386         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
5388 2015-06-01  Pádraig Brady  <P@draigBrady.com>
5390         gnulib-tool: concatenate lib_SOURCES to a single line
5391         * gnulib-tool: Refactor the line merging sed logic,
5392         and use that to output a single lib_SOURCES line for each module.
5393         gnulib using projects often postprocess this output to prepend
5394         subdir paths to each item, and having a single line simplifies this
5395         processing allowing better decoupling from the gnulib-tool output.
5397 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
5399         pthread_sigmask: discount system version if a simple macro (trivial)
5400         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
5401         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
5402         function to ensure it's available.
5404 2015-05-31  Pádraig Brady  <P@draigBrady.com>
5406         readlinkat: avoid OS X 10.10 trailing slash bug
5407         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
5408         has this bug.
5409         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
5410         that OS X 10.10 has this function.
5411         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
5412         as done for readlink().
5413         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
5414         trailing slash bug, and assume readlinkat() has the same issue.
5415         Also fix a typo where $gl_cv_decl_readlink_works was tested,
5416         rather than the correct $gl_cv_decl_readlinkat_works.
5418 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
5420         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
5421         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
5422         module rewrite.
5424         acl-permissions: Fix build on Solaris and Cygwin
5425         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
5426         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
5427         ace_entries variables have moved into struct permission_context but
5428         they were still accessed as local variables here.
5430 2015-05-29  Pádraig Brady  <P@draigBrady.com>
5432         linkat: avoid OS X 10.10 trailing slash with symlink bug
5433         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
5434         causes the symlink to be dereferenced, and if it points
5435         to a non existent file, that file will be created as
5436         a hard link to "path1".
5437         This fixes a test failure in test-linkat.c.
5438         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
5439         this case.  The existing workaround in linkat.c for
5440         trailing slash issues, suffices for this case.
5441         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
5442         the list of platforms with trailing slash issues.
5444 2015-05-28  Pádraig Brady  <P@draigBrady.com>
5446         unlinkat: handle ignoring of ".." on Darwin 14
5447         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
5448         on Mac OS X 10.10, where it ignores paths with a trailing "..",
5449         so handle in the same manner.
5450         * m4/unlinkat.m4: Comment on this Darwin issue.
5451         * doc/posix-functions/unlink.texi: Update the latest version
5452         where the issue was seen.
5453         * doc/posix-functions/unlinkat.texi: Mention this issue.
5454         Fixes a test failure in test-unlinkat.c.
5456 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5458         qacl: split into qcopy-acl and qset-acl
5459         Emacs needs the former, but not the latter.
5460         * modules/acl-permissions: New file, containing most of the old qacl.
5461         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
5462         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
5463         * modules/qcopy-acl, modules/qset-acl: New files.
5464         * MODULES.html.sh (File system functions):
5465         Mention the new modules, and mention qacl while we're at it.
5467 2015-05-27  Glenn Morris  <rgm@gnu.org>
5469         gitlog-to-changelog: new option --ignore-line
5470         (This patch is imported from the GNU Emacs master.)
5471         This option ignores individual commit lines matching a pattern.
5472         * build-aux/gitlog-to-changelog: Add --ignore-line option.
5474 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
5476         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
5477         Implement get_permissions and set_permissions primitives for getting all
5478         the permissions of a file, storing them, and later setting them. (In the
5479         minimal case, the permissions consist only of a file mode.) Reimplement
5480         qset_acl and qcopy_acl based on these new primitives: this avoids code
5481         duplication and makes error handling more consistent.
5482         The Solaris and Cygwin code still uses duplicate code paths for setting
5483         a file mode while making sure that no acls exist and setting an explicit
5484         acl; this is no worse than before, but could be cleaned up.  The AIX
5485         code still doesn't read ACLs, it only makes sure that acls don't get in
5486         the way when setting a file mode.
5487         * lib/acl-internal.h (struct permission_context): New data structure.
5488         (get_permissions, set_permissions, free_permission_context): Declare.
5489         * lib/acl-internal.c (free_permission_context): New helper function.
5490         * lib/get-permissions.c (get_permissions): New helper function split off
5491         from qcopy_acl.
5492         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
5493         AIX, set a file's permissions based only on a file mode.
5494         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
5495         other platforms construct a temporary acl from the file mode and set
5496         that acl in the same way as setting an acl read from the source file.
5497         This should help avoid code duplication and inconsistent / buggy
5498         behavior.
5499         (set_acls): New helper function Split off from qcopy_acl.
5500         (chmod_or_fchmod): Moved here from qset-acl.c.
5501         (set_permissions): New helper function.
5502         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
5503         set_permissions.
5504         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
5505         * modules/qacl: Add get-permissions.c and set-permissions.c.
5507         file-has-acl: Split feature tests again (Bug#20667)
5508         * lib/file-has-acl.c: Instead of testing for
5509         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
5510         define them when needed.
5511         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
5512         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
5514 2015-05-27  Pádraig Brady  <P@draigBrady.com>
5516         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
5517         This avoids a conflict with "FORTIFY_SOURCE" variants
5518         of the string functions when they're replaced on NetBSD-6.0.1
5519         and Darwin-14.3.0 at least.
5520         * lib/string.in.h: Avoid including our "lib/string.h" while
5521         including the system <string.h>.
5523 2015-05-26  Eric Blake  <eblake@redhat.com>
5525         stdio: limit __gnu_printf__ witness to gcc 4.4+
5526         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
5527         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
5529         error: use correct printf attributes on mingw
5530         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
5532         inttypes: force correct mingw PRIdMAX even without <stdio.h>
5533         * modules/inttypes (Depends-on): Require extensions, so that mingw
5534         always uses GNU style inttypes.
5535         * lib/inttypes.in.h: On mingw, include <stdio.h>.
5537         stdio: fix probe on mingw under gcc 5.1
5538         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
5539         around new gcc preprocessor rules.
5541 2015-05-07  Glenn Morris  <rgm@gnu.org>
5543         gitlog-to-changelog: parse "Tiny-change"
5544         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
5545         "Copyright-paperwork-exempt".  (Bug#20324)
5547 2015-05-06  Pádraig Brady  <P@draigBrady.com>
5549         doc: document glibc posix_fallocate() issues
5550         * doc/posix-functions/posix_fallocate.texi: Mention the
5551         glibc efficiency problems and issues with NFS.
5553 2015-05-05  Karl Berry  <karl@freefriends.org>
5555         * build-aux/gendocs.sh (usage): document new css default
5556         for HTML (--htmlarg).
5558 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5560         extern-inline: no need for workaround in GCC 5.1
5561         * doc/extern-inline.texi (extern inline):
5562         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
5563         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
5564         around these bugs in GCC 5.1 and later.  Maybe in a decade or
5565         two we can remove these workarounds.
5567 2015-04-28  Pádraig Brady  <P@draigBrady.com>
5569         eealloc, pagealign_alloc, xalloc: avoid clang warnings
5570         Avoid [-Wunknown-attributes] warnings like:
5571         warning: unknown attribute '__alloc_size__' ignored
5572         * lib/xalloc.h: Don't use the __alloc_size__  attribute
5573         with clang, as support has been fully removed as of clang 3.5:
5574         https://github.com/llvm-mirror/clang/commit/c047507a
5575         * lib/eealloc.h: Likewise.
5576         * lib/pagealign_alloc.h: Likewise.
5578 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
5580         tests: pacify GCC 5.1's stricter printf checking
5581         * tests/test-dirname.c (main):
5582         * tests/test-getaddrinfo.c (simple):
5583         * tests/test-getlogin.c (main):
5584         * tests/test-getndelim2.c (main):
5585         * tests/test-inttostr.c (CK):
5586         * tests/test-md5.c (main):
5587         * tests/test-read-file.c (main):
5588         * tests/test-sha1.c (main):
5589         Fix mismatches between printf format and value signedness.
5590         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
5591         Remove, as CAST_VAL always returned a value of type uintmax_t.
5593         fts: port to GCC 5.1 with --enable-gcc-warnings
5594         Without this fix, GCC 5.1 (correctly) warns about a subscript
5595         error on the fts_name component of FTSENT.  It's actually a
5596         flexible member, so define it that way on C99 or later hosts.
5597         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
5598         structure that now has a flexible array member.
5599         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
5600         (FTSENT): fts_name is now flexible on C99-or-later platforms.
5601         * modules/fts (Depends-on): Add flexmember.
5603 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5605         file-has-acl: port to CentOS 6
5606         Problem reported by Tom G. Christensen in:
5607         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
5608         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
5609         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
5610         HAVE_GETXATTR.
5611         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
5612         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
5613         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what what
5614         file-has-acl.c actually needs.
5616 2015-04-26  Pádraig Brady  <P@draigBrady.com>
5618         file-has-acl: always return false when ACLs aren't supported
5619         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
5620         change the GNU/Linux getxattr path, to transform "not supported"
5621         errors to a false return rather than an error.  This is handled
5622         within file_has_acl() due to the platform specific tests to
5623         determine if ACLs are not supported.
5625 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5627         gettext: propagate po/Makefile.in.in too
5628         * build-aux/po/Makefile.in.in: Copy from latest gettext.
5629         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
5630         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
5631         between Makefile.in.in and the gettext-runtime m4 files.
5633 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5635         file-has-acl: new module, split from acl
5636         And add a new module file-has-acl-tests to match.
5637         I ran into a problem with the recent changes to the acl module,
5638         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
5639         When using the fixed version with Emacs, I discovered that
5640         file-has-acl wasn't separated out well enough for Emacs (e.g., it
5641         had multiple libraries, but needed only one), so I fixed that too.
5642         * NEWS: Document this incompatible change.
5643         * modules/file-has-acl, modules/file-has-acl-tests: New files.
5644         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
5645         Initialize gl_need_lib_has_acl.
5646         (gl_FUNC_ACL): Require it.
5647         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
5648         Move the file-has-acl.c-relevant stuff to ...
5649         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
5650         use_xattrs = 0' typo, and omit some needless work.  Set
5651         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
5652         when gl_FUNC_ACL is called.
5653         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
5654         (Link): Remove $(LIB_HAS_ACL).
5655         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
5656         (check_PROGRAMS): Move stuff relevant to file-has-acl to
5657         modules/file-has-acl-tests.
5658         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
5660         manywarnings: add GCC 5.1 warnings
5661         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
5662         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
5663         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
5664         -Wsuggest-override, -Wuse-without-only.  Change
5665         -Wnormalized=... operands to match 5.1.
5666         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
5667         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
5668         -Wdiscarded-qualifiers, -Wformat-signedness,
5669         -Wincompatible-pointer-types, -Wint-conversion,
5670         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
5671         -Wshift-count-negative, -Wshift-count-overflow,
5672         -Wsizeof-array-argument, -Wsuggest-final-methods,
5673         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
5674         and add -Warray-bounds=2 as a special case.
5676 2015-04-21  Simon Josefsson  <simon@josefsson.org>
5678         doc: update FDL template to match FDL examples.
5679         * doc/alloca-opt.texi:
5680         * doc/alloca.texi:
5681         * doc/c-ctype.texi:
5682         * doc/c-strcase.texi:
5683         * doc/c-strcaseeq.texi:
5684         * doc/c-strcasestr.texi:
5685         * doc/c-strstr.texi:
5686         * doc/c-strtod.texi:
5687         * doc/c-strtold.texi:
5688         * doc/ctime.texi:
5689         * doc/error.texi:
5690         * doc/gcd.texi:
5691         * doc/gnulib-tool.texi:
5692         * doc/inet_ntoa.texi:
5693         * doc/intprops.texi:
5694         * doc/lib-symbol-visibility.texi:
5695         * doc/maintain.texi:
5696         * doc/parse-datetime.texi:
5697         * doc/quote.texi:
5698         * doc/regexprops-generic.texi:
5699         * doc/standards.texi: Remove spurious 'with' in FDL license
5700         template.
5702 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
5704         lstat: fix cross-compilation 'ln -s' problem
5705         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5706         Have the test program call 'symlink' rather than a separate
5707         script run 'ln -s'; this is more likely to work in
5708         cross-compilation environments.  Reported by Pavel Fedin in:
5709         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
5711 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
5713         gendocs.sh: default to a common CSS style sheet for HTML output
5714         * build-aux/gendocs.sh (htmlarg): Change default value.
5716 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
5718         gnulib-tool: output bold attribute more portably
5719         * gnulib-tool (func_show_module_list): Change hexadecimal
5720         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
5721         encoded numbers as arguments to `printf' is not portable,
5722         and is not claimed by POSIX.  This is the case with FreeBSD.
5724 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
5726         qacl: Simplify HP-UX acl_nontrivial check
5727         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
5728         acl_nontrivial. Check if the acl has at most three entries instead (it must
5729         have exactly three entries according to the HP-UX documentation). Ignore
5730         uids and gids as long as an entry is either for a user (i.e., the owner),
5731         a group (i.e., the owning group), or others.
5732         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
5733         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
5735 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
5737         acl: On Linux, check for acls without libacl
5738         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
5739         library function to check for the presence of acls, avoiding a library.
5740         * lib/file-has-acl.c: Include xattr headers if we have them.
5741         (file_has_acl): On Linux, use getxattr().
5742         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
5743         file_has_acl(). Check for xattr headers and getxattr().
5745 2015-04-14  Ángel González  <keisial@gmail.com>
5747         tempname: avoid unused parameter warnings (trivial)
5748         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
5749         (try_nocreate): Likewise.
5751 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
5753         fseeko: fix build failure on NetBSD >= 6 (trivial)
5754         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
5755         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
5757 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5759         gitlog-to-changelog: port to MS-Windows
5760         * build-aux/gitlog-to-changelog (git_dir_option):
5761         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
5762         MS-Windows Perl.  Reported by Eli Zaretskii in:
5763         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
5765 2015-04-07  Karl Berry  <karl@gnu.org>
5767         gendocs: new option --tex for passing args to texi2dvi.
5768         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
5769         (TEXI2DVI): cut to just command name.
5770         (usage): mention new option, and update copyright.
5771         <generate_tex>: use it.
5773 2015-04-07  Karl Berry  <karl@gnu.org>
5775         * config/srclistvars.sh (GETTEXT): new definition.
5776         * config/srclist.txt: use it for gettext .m4 files.
5777         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
5778         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
5779         and continuing into April.
5781 2015-04-07  Daiki Ueno  <ueno@gnu.org>
5783         uniname/uniname-tests: fix failure due to alias
5784         Reported by Jack Howarth in:
5785         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
5786         * tests/uniname/test-uninames.c (name_has_alias): New function.
5787         (test_inverse_lookup): Exclude character name with valid alias,
5788         from randomly generated character names.
5789         (main): Fill unicode_aliases before calling test functions.
5791 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
5793         hash: remove deprecated hash_insert0 function
5794         * lib/hash.h (hash_insert0): Remove deprecated function.
5795         * lib/hash.c (hash_insert0): Likewise.
5797 2015-04-02  Pádraig Brady  <P@draigBrady.com>
5799         mountlist: remove dependency on libmount
5800         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
5801         directly, rather than depending on libmount, which has many
5802         dependencies due to its dependence on libselinux, as detailed at:
5803         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
5804         Note we restrict this to __linux__ as that's probably where this
5805         interface will remain.  If ever porting, it would be best
5806         to first pull the makedev() wrapper from coreutils to a gnulib module.
5807         Note also we don't add a getline dependency to the mountlist module,
5808         as all Linux versions are sufficient.
5810 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
5812         stddef: port to pre-C11 GCC on x86
5813         On this platform, max_align_t should have an alignment of 8 even
5814         though the storage alignments of double, long, etc. max out at 4.
5815         Inspired by a comment of Andreas Schwab's here:
5816         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
5817         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
5818         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
5819         * tests/test-stddef.c: Test __alignof__ too, if available.
5821 2015-03-24  Pádraig Brady  <P@draigBrady.com>
5823         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
5824         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
5826 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
5828         yesno: make EOL optional in ENABLE_NLS case also (trival)
5829         * lib/yesno.c (yesno): Check for EOL before replacing.
5830         * tests/test-yesno.sh: Add a test case (test along with gettext).
5832 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5834         fdopendir-tests: test it does not close its arg
5835         * tests/test-fdopendir.c (main): Test that fdopendir does not
5836         close its argument.  From a suggestion by David Grayson in:
5837         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
5839 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5841         gitlog-to-changelog: trim trailing white space
5842         * build-aux/gitlog-to-changelog (main):
5843         Trim trailing white space from commit message lines.
5844         This is helpful for processing the GNU Emacs repository,
5845         which dates back to 1985 and contains a lot of such lines.
5847         gitlog-to-changelog: new option --ignore-matching
5848         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
5849         Support new option --ignore-matching=PAT, which ignores all
5850         commit messages whose first line matches PAT.
5852 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5854         fdopendir: port better to MinGW
5855         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
5856         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
5857         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
5858         * modules/fdopendir (Depends-on): Add dirfd.
5860 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
5862         fdopendir: fix typo in comment
5863         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
5865 2015-03-09  Eric Blake  <eblake@redhat.com>
5867         error: document all entry points provided
5868         * doc/glibc-functions/error_print_progname.texi
5869         (error_print_progname): Mention the error module.
5870         * doc/glibc-functions/error_at_line.texi (error_at_line):
5871         Likewise.
5872         * doc/glibc-functions/error_message_count.texi
5873         (error_message_count): Likewise.
5874         * doc/glibc-functions/error_one_per_line.texi
5875         (error_one_per_line): Likewise.
5877 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
5879         vasnprintf: pacify clang 3.5.0
5880         Problem reported by Werner Lemberg in:
5881         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
5882         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
5883         The casts aren't needed, since the characters in question are ASCII.
5885 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5887         glob, etc.: port to MSVC v18 on MS-Windows 8.1
5888         * lib/dirent--.h (GNULIB_defined_opendir):
5889         * lib/dirent.in.h (GNULIB_defined_opendir)
5890         (GNULIB_defined_closedir):
5891         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
5892         #undef only if Gnulib defined it.
5894         poll: port to MSVC v18 on MS-Windows 8.1
5895         Problem reported by Gisle Vanem in:
5896         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
5897         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
5898         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
5899         Add sys_socket.
5901 2015-02-24  Pádraig Brady  <P@draigBrady.com>
5903         tests: support stderr verification with returns_()
5904         * tests/init.sh (returns_): Disable tracing for this wrapper
5905         function, so that stderr of the wrapped command is unchanged,
5906         allowing for verification of the contents.
5908 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
5910         passfd: avoid valgrind uninitalised data warning
5911         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
5912         to include just the fd we've initialized, rather than including
5913         the extra space used for alignment.
5915 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
5917         uniwbrk/u32-wordbreaks-tests: fix copyright
5918         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
5920         dup2: doc and test for Android bug
5921         Reported by Kevin Cernekee in:
5922         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
5923         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5924         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
5926 2015-02-23  Kevin Cernekee  <cernekee@google.com>
5928         Replace dup2() on Android
5929         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
5930         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
5931         fails.  Using rpl_dup2() fixes this because it has an explicit test
5932         for this condition.
5934 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5936         Android doesn't define RLIM_SAVED_*
5937         Portability problem reported by Kevin Cernekee in:
5938         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
5939         * doc/posix-headers/sys_resource.texi (sys/resource.h):
5940         Mention the portability problem.
5941         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
5942         Define if not defined.
5943         * m4/dup2.m4 (gl_FUNC_DUP2):
5944         * m4/fcntl.m4 (gl_FUNC_FCNTL):
5945         Likewise.
5947 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5949         vasnprintf-posix-tests: use consistent test
5950         * tests/test-vasnprintf-posix.c (test_function):
5951         Use "<" in assert instead of "<=", for consistency with other tests.
5953 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5955         printf, isinf, etc.: noncanonical != NaN
5956         Do not require that isinf, printf, etc. treat noncanonical
5957         values as NaNs.  Instead, require only that they do not crash.
5958         Problem reported by Joseph Myers in:
5959         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
5960         * doc/posix-functions/dprintf.texi (dprintf):
5961         * doc/posix-functions/fprintf.texi (fprintf):
5962         * doc/posix-functions/isfinite.texi (isfinite):
5963         * doc/posix-functions/isinf.texi (isinf):
5964         * doc/posix-functions/isnan.texi (isnan):
5965         * doc/posix-functions/printf.texi (printf):
5966         * doc/posix-functions/snprintf.texi (snprintf):
5967         * doc/posix-functions/sprintf.texi (sprintf):
5968         * doc/posix-functions/vdprintf.texi (vdprintf):
5969         * doc/posix-functions/vfprintf.texi (vfprintf):
5970         * doc/posix-functions/vprintf.texi (vprintf):
5971         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5972         * doc/posix-functions/vsprintf.texi (vsprintf):
5973         Document this.
5974         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
5975         * m4/isinf.m4 (gl_ISINFL_WORKS):
5976         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
5977         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
5978         * tests/test-isfinite.c (test_isfinitel):
5979         * tests/test-isinf.c (test_isinfl):
5980         * tests/test-isnan.c (test_long_double):
5981         * tests/test-isnanl.h (main):
5982         * tests/test-snprintf-posix.h (test_function):
5983         * tests/test-sprintf-posix.h (test_function):
5984         * tests/test-vasnprintf-posix.c (test_function):
5985         * tests/test-vasprintf-posix.c (test_function):
5986 o       Test only that noncanonical values do not cause crashes, not that
5987         they are treated as NaNs.  In some cases this means a larger
5988         output buffer is needed.
5990 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
5992         fts: remove redundant close() (trivial)
5993         * lib/fts.c (fts_read): Remove redundant call to close().
5994         Spotted by coverity.
5996 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5998         getdtablesize: port better for Android
5999         Problem reported by Kevin Cernekee in:
6000         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
6001         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
6002         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
6003         Instead, just use getrlimit, taking care to avoid Cygwin bug.
6005         poll: fixes for large fds
6006         * lib/poll.c (poll): Don't check directly for NFD too large.
6007         Don't rely on undefined behavior in FD_SET when an arg exceeds
6008         FD_SETSIZE.  Always set revents afterwards, even if to zero.
6009         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
6010         as that makes the test a bit stricter.
6012 2015-02-19  Kevin Cernekee  <cernekee@google.com>
6014         fcntl: Fix cross compiling
6015         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
6016         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
6018 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6020         dup2, fcntl: cross-compile better for Android
6021         Problem reported by Kevin Cernekee in:
6022         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
6023         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
6024         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
6025         there's little need to cross-compile for older kernels nowadays.
6026         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
6027         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
6029 2015-02-18  Pádraig Brady  <P@draigBrady.com>
6031         getopt: don't crash on memory exhaustion
6032         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
6033         memory exhaustion.  In the _LIBC case we use alloca() as is
6034         already done in glibc, so we don't need to consider the separate
6035         error path in that awkward case.  Also fix a memory leak when
6036         ambiguous options are present.
6037         Reported by Tobias Stoeckmann
6039 2015-02-17  Mike Miller  <mtmiller@ieee.org>
6041         tempname: allow compilation with C++ (trivial)
6042         * lib/tempname.h [C++]: Specify extern "C" linkage.
6043         * lib/tempname.h (try_tempname):
6044         * lib/tempname.c (__try_tempname, __gen_tempname):
6045         Rename 'try' to 'tryfunc'.
6047 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6049         dup2, fcntl: port to AIX
6050         * m4/dup2.m4 (gl_FUNC_DUP2):
6051         * m4/fcntl.m4 (gl_FUNC_FCNTL):
6052         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
6053         The former works on AIX 7.1 but the latter does not.
6054         Also, this may work better with Android; see:
6055         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
6057 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6059         getdtablesize, dup2, fcntl: port to Android
6060         Problem reported by Kevin Cernekee in:
6061         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
6062         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
6063         Mention that getdtablesize doesn't work on Android.
6064         * lib/getdtablesize.c: Use getrlimit substitute only if
6065         getdtablesize is declared.  This should suffice for Cygwin
6066         while not breaking Android.
6067         * m4/dup2.m4 (gl_FUNC_DUP2):
6068         * m4/fcntl.m4 (gl_FUNC_FCNTL):
6069         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
6070         standardized but the latter is not, and sysconf works on Android.
6071         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
6072         Also check that getdtablesize is declared.
6073         This removes the need for a special case for Android.
6075 2015-02-16  Kevin Cernekee  <cernekee@google.com>
6077         localename: Implement gl_locale_name_thread_unsafe for Android
6078         * lib/localename.c: Android API level >= 21 supports two hardcoded
6079         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
6080         the internal __locale_t struct.
6082 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
6084         fts: avoid crash when a cycle is added while traversing
6085         This could be triggered by auto-mounting a recursive bind mount.
6086         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
6087         * lib/fts.c (fts_read): Avoid removing the original hash table item
6088         when leaving a directory that caused a cycle, and preserve the FTS_DC
6089         flag.
6091 2015-02-16  Daiki Ueno  <ueno@gnu.org>
6093         uniname/uniname: support character alias
6094         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
6095         Generate one-way mapping from aliases to codepoints in the
6096         generated tables.  Special case variation selectors to reduce
6097         table size.
6098         * lib/uniname/uniname.c (unicode_character_name): Special case
6099         variation selectors.
6100         (unicode_name_character): Special case variation selectors and
6101         their aliases.
6102         * lib/uniname/uninames.h: Regenerate.
6103         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
6104         * modules/uniname/uniname-tests (Files): Add
6105         tests/uniname/NameAliases.txt.
6106         * tests/uniname/test-uninames.c: Mark as static.
6107         (ALIASLEN): Define.
6108         (struct unicode_alias): New struct.
6109         (unicode_aliases): New variable.
6110         (fill_aliases): New function.
6111         (test_alias_lookup): New test function.
6112         (main): Run the 'test_alias_lookup' test if the second argument is
6113         given.
6114         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
6115         second argument.
6117 2015-02-11  Kevin Cernekee  <cernekee@google.com>
6119         Fix FILE struct compatibility with Android API level >= 21
6120         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
6121         __sferror.  Recent versions of Bionic's stdio.h no longer define
6122         __sferror.
6123         * lib/fbufmode.c: Likewise.
6124         * lib/fflush.c: Likewise.
6125         * lib/fpurge.c: Likewise.
6126         * lib/freadable.c: Likewise.
6127         * lib/freadahead.c: Likewise.
6128         * lib/freading.c: Likewise.
6129         * lib/freadptr.c: Likewise.
6130         * lib/freadseek.c: Likewise.
6131         * lib/fseeko.c: Likewise.
6132         * lib/fseterr.c: Likewise.
6133         * lib/fwritable.c: Likewise.
6135         Assume unbroken ungetc() on Android
6136         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
6137         test case passed when running on an Android host, and the code
6138         hasn't really changed since 2009.
6140         getdtablesize: Fix Android build
6141         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
6142         versions have this symbol in the .so library (at least 32-bit
6143         platforms) but are missing the declaration in the header file,
6144         causing the m4 logic to guess incorrectly.
6146         localename: Fix Android build
6147         * modules/localename (Depends-on): Add langinfo.
6149         getugroups: Fix Android build
6150         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
6151         functions.
6153         euidaccess: Fix Android build
6154         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
6155         AT_EACCESS gets declared.
6157         linkat_nofollow: Add fallback case for cross compiling
6158         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
6160         net_if: Handle content-free <net/if.h> system headers
6161         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
6162         struct if_nameindex.  If not, enable the replacement header.
6164         signal_h: Fix Android build
6165         * lib/signal.in.h: Add Android to the list of platforms that declare
6166         pthread_sigmask() in <pthread.h> instead of <signal.h>.
6168         duplocale: Fix Android build of duplocale-tests
6169         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
6170         is included by test-duplocale.c (but not by duplocale.c).
6171         * modules/duplocale-tests (configure.ac): Check for monetary.h.
6172         * tests/test-duplocale.c: Skip test if monetary.h is absent.
6173         * doc/posix-headers/monetary.texi: Add Android to the list of
6174         platforms missing monetary.h.
6176 2015-02-11  Pádraig Brady  <P@draigBrady.com>
6178         tests: avoid recent -Werror=unused-variable regression in test-locale
6179         * tests/test-locale.c (main): Reference the variable to avoid the
6180         "unused variable" warning.
6182 2015-02-11  Pádraig Brady  <P@draigBrady.com>
6184         maint: various whitespace cleanups in tempname
6185         * lib/tempname.c: Normalize spacing and line length.
6186         * lib/tempname.h: Likewise.
6187         * modules/tempname: Likewise.
6189 2015-02-11  Pádraig Brady  <P@draigBrady.com>
6191         tests: provide returns_() to simplify exit status checking
6192         * tests/init.sh (returns_): A new function for use in tests,
6193         to allow for easier checking of return values, where you expect
6194         a command to exit with failure status.  By checking for a particular
6195         exit code, you don't hide any crashes for example.
6197 2015-02-11  Pádraig Brady  <P@draigBrady.com>
6199         mountlist: only use libmount when specified
6200         There are currently many shared libs dependencies introduced by
6201         libmount with associated runtime and virt mem overhead.
6202         Therefore don't enable by default.
6203         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
6205 2015-02-08  Daiki Ueno  <ueno@gnu.org>
6207         uniname/unimame-tests: don't link with -lunistring
6208         * modules/uniname/uniname-tests (Makefile.am): Don't link against
6209         $(LIBUNISTRING).  Document the rationale why we need to
6210         conditionalize the test.
6212 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6214         fstrcmp: don't assume strlen < INT_MAX
6215         * lib/fstrcmp.c: Include stddef.h and stdint.h.
6216         (uintptr_t): Remove, as we're now assuming stdint.
6217         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
6218         Prefer ptrdiff_t to int when the value could exceed INT_MAX
6219         if the input string is long.
6220         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
6221         uintptr_t to size_t when the underlying value is a pointer casted
6222         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
6223         * modules/fstrcmp (Depends-on): Add stdint.
6225         diffseq: prefer ptrdiff_t to ssize_t
6226         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
6227         ptrdiff_t is the natural type for signed indexes.
6228         On a few older platforms, ssize_t is narrower than size_t.
6230         xalloc: fix typo that suppressed warnings
6231         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
6232         This typo, introduced a couple of years ago, mistakenly suppressed
6233         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
6234         -Wmissing-declarations warnings.
6236         full-read: fix license notice typo
6237         * lib/full-read.h: Remove a stray line in the license notice.
6238         Reported by Sam Ellis in: http://bugs.gnu.org/19808
6240         crypto/gc: fix a -Wswitch warning
6241         Reported by Bruce Korb in:
6242         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
6243         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
6245 2015-02-03  Pádraig Brady  <P@draigBrady.com>
6247         gnulib-tool: fix handling of patch(1) diagnostics
6248         * gnulib-tool: Send diagnostics from patch(1) to stderr,
6249         as otherwise gnulib-tool will reparse that output and attempt
6250         to lookup modules.
6252 2015-02-03  Pádraig Brady  <P@draigBrady.com>
6254         bootstrap: exit immediately upon gnulib-tool failure
6255         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
6256         This was noticed when gnulib-tool exited early due to failure
6257         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
6258         but various confusing errors were then given as the build proceeded.
6260 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
6262         symlinkat: include all required header files
6263         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
6264         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
6265         Reported at https://savannah.gnu.org/bugs/index.php?44151
6266         and by Jack Howarth.
6268 2015-01-29  Pádraig Brady  <P@draigBrady.com>
6270         localename: support Solaris 12 and illumos
6271         * lib/localename.c (gl_locale_name_thread_unsafe): call
6272         getlocalename_l() on newer __sun platforms.
6273         Reported by Alexander Pyhalov.
6274         Fix suggested by Rich Burridge.
6276 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
6278         locale: fix tests on illumos (trivial)
6279         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
6280         so move from global scope to main().
6282 2015-01-24  Daiki Ueno  <ueno@gnu.org>
6284         unictype: avoid undefined left-shift behavior
6285         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
6286         gcc's -fsanitize=shift and running its tests triggered:
6287           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
6288             places cannot be represented in type 'int'
6289         Cast LHS to 'unsigned int' after integer promotion.
6290         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
6291         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
6293 2015-01-20  Daiki Ueno  <ueno@gnu.org>
6295         libunistring: bump version of unitypes dependants
6296         Due to the header file search order, all the headers which depend
6297         on unitypes.h need to be generated, when the preinstalled
6298         libunistring is older.
6299         * modules/unicase/base (configure.ac): Bump minimum version to
6300         0.9.4.
6301         * modules/uniconv/base (configure.ac): Likewise.
6302         * modules/unilbrk/base (configure.ac): Likewise.
6303         * modules/uninorm/base (configure.ac): Likewise.
6304         * modules/unistdio/base (configure.ac): Likewise.
6305         * modules/unistr/base (configure.ac): Likewise.
6306         * modules/uniwbrk/base (configure.ac): Likewise.
6307         * modules/uniwidth/base (configure.ac): Likewise.
6309 2015-01-20  Daiki Ueno  <ueno@gnu.org>
6311         unictype/category-none: fix link with libunistring
6312         Since _UC_CATEGORY_NONE is not a public symbol, it will be
6313         prefixed with "libstring_" when compiled as part of libunistring.
6314         To avoid undefined symbol at link time, increase the minimum
6315         version when the dependant modules are updated.
6316         * modules/unictype/category-none (configure.ac): Bump minimum
6317         version to 0.9.5.
6319 2015-01-20  Daiki Ueno  <ueno@gnu.org>
6321         unitypes: fix build with installed libunistring
6322         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
6323         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
6324         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
6326 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6328         time: port to MinGW32 3.21
6329         Problem reported by Eli Zaretskii in:
6330         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
6331         * lib/time.in.h:
6332         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
6333         * modules/time (Depends-on):
6334         Fall back on unistd.h if the other include files don't define
6335         struct timespec.
6337         update-copyright: apply to self
6338         * build-aux/update-copyright: Fix copyright date.  How ironic!
6340 2015-01-15  Daiki Ueno  <ueno@gnu.org>
6342         libunistring: update to Unicode 7.0.0
6343         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
6344         Manichaean names.
6345         * lib/unictype/joininggroup_name.h: Likewise.
6346         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
6347         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
6348         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
6349         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
6350         (fill_arabicshaping, joining_group_as_c_identifier): Support those
6351         enum values.
6352         (is_property_alphabetic): Accept newly added characters to
6353         cuneiform numeric signs.
6354         (is_property_default_ignorable_code_point): Reject U+0605.
6355         (FIELDLEN): Increase from 120 to 160.
6356         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
6357         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
6358         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
6359         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
6360         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
6361         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
6362         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
6363         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
6364         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
6365         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
6366         U+1E8D0..U+1E8D6.
6367         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
6368         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6369         lib/uniwidth/width.c.
6370         * all generated files under lib/uni* and tests/uni*: Regenerate.
6372 2015-01-14  Daiki Ueno  <ueno@gnu.org>
6374         libunistring: update to Unicode 6.3.0
6375         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
6376         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
6377         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
6378         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
6379         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
6380         Update WB5, WB9, WB10, WB13a, and WB13b.
6381         * tests/uniwbrk/test-uc-wordbreaks.c
6382         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
6383         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
6384         (UC_BIDI_PDI): New enumeration values.
6385         (bidi_category_byname): Support those enum values.
6386         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
6387         dedicated property assigned.
6388         (is_property_case_ignorable): Check 0x0027.
6389         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
6390         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
6391         (output_wbp): Support those enum values.
6392         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
6393         (UC_BIDI_PDI): New enumeration values.
6394         * lib/unictype/bidi_byname.gperf: Add those property names.
6395         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
6396         U+180E, U+1A1B, and U+2066..U+2069.
6397         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6398         lib/uniwidth/width.c.
6399         * all generated files under lib/uni* and tests/uni*: Regenerate.
6401 2015-01-14  Daiki Ueno  <ueno@gnu.org>
6403         libunistring: update to Unicode 6.2.0
6404         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
6405         (unilbrk_table): Adjust table size.
6406         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
6407         for LBP_RI.
6408         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
6409         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
6410         Normalize table index skipping ignored properties.
6411         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
6412         WBP_EXTEND and WBP_FORMAT, which are now computed without using
6413         the table.
6414         * lib/uniwbrk/wbrktable.h: Adjust table size.
6415         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
6416         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
6417         Support rule GB8a.
6418         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
6419         * tests/unigbrk/test-uc-is-grapheme-break.c
6420         (graphemebreakproperty_to_string): Support GBP_RI.
6421         * tests/uniwbrk/test-uc-wordbreaks.c
6422         (wordbreakproperty_to_string): Support WBP_RI.
6423         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
6424         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
6425         (output_lbp): Support LBP_RI.  Adjust some characters changed from
6426         LBP_AL to LBP_ID.
6427         (output_lbp): Support LBP_RI.
6428         (WBP_RI): New enumeration value.
6429         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
6430         (output_wbp): Support WBP_RI.
6431         (GBP_RI): New enumeration value.
6432         (output_gbp_test, fill_org_gbp): Support GBP_RI.
6433         * all generated files under lib/uni* and tests/uni*: Regenerate.
6435 2015-01-14  Daiki Ueno  <ueno@gnu.org>
6437         libunistring: update to Unicode 6.1.0
6438         * lib/gen-uni-tables.c (output_joining_group): Switch to
6439         3-level table to accommodate joining groups defined with higher
6440         codepoint value.  Since there are only 88 groups defined in
6441         Unicode 7.0.0, use 7-bit packed format for level3 entries.
6442         (get_lbp): Update for Unicode 6.1.0.
6443         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
6444         3-level table.
6445         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
6446         joining group name.
6447         * lib/unictype/joininggroup_name.h: Likewise.
6448         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
6449         (unilbrk_table): Adjust table size.
6450         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
6451         for LBP_HL.
6452         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
6453         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
6454         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
6455         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
6456         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
6457         U+302E..U+302F.
6458         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6459         lib/uniwidth/width.c.
6460         * all generated files under lib/uni* and tests/uni*: Regenerate.
6461         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
6463 2015-01-15  Daiki Ueno  <ueno@gnu.org>
6465         uniwbrk/u32-wordbreaks-tests: add conformance test
6466         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
6467         tests/uniwbrk/test-uc-wordbreaks.c,
6468         tests/uniwbrk/test-uc-wordbreaks.sh, and
6469         tests/uniwbrk/WordBreakTest.txt.
6470         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
6471         test-uc-wordbreaks to $(check_PROGRAMS), and define
6472         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
6473         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
6474         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
6476 2015-01-15  Daiki Ueno  <ueno@gnu.org>
6478         uniwbrk: ignore Extended/Format characters at BOL not BOS
6479         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
6480         characters if the previous character property is one of
6481         WBP_NEWLINE, WBP_CR, and WBP_LF.
6483 2015-01-11  Jim Meyering  <meyering@fb.com>
6485         test-strstr.c: avoid a trivial leak
6486         * tests/test-strstr.c (main): Free haystack.
6488         update-copyright: recognize groff's \(co marker
6489         * build-aux/update-copyright (circle_c_re): Also accept
6490         uses of \(co, as found in gzip.1.
6492 2015-01-08  Pádraig Brady  <P@draigBrady.com>
6494         maint.mk: fix compatibility with OS X nm
6495         * top/maint.mk (_gl_tight_scope): Use the -g option to
6496         show exported items rather than the -e option which is
6497         ignored on all platforms except OS X where it gives an error.
6498         Reported by Assaf Gordon.
6500 2015-01-07  KO Myung-Hun  <komh@chollian.net>
6502         localcharset: improve charset detection on OS/2
6503         Use system codepage when appropriate.  Map OS/2 codepages to
6504         GNU canonical charset names if possible.
6505         * lib/config.charset: Don't output aliases if "$os" is os2*.
6506         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
6507         result for OS/2.
6508         (locale_charset) [OS2]: Use system codepage if codeset is omitted
6509         from the locale name which is neither "C" nor "POSIX".
6511 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6513         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
6514         This reverts the last patch but one, as it shouldn't be needed now
6515         that the typo is fixed.
6516         * lib/count-leading-zeros.h (count_leading_zeros_ll):
6517         * lib/count-trailing-zeros.h:
6518         * lib/count-one-bits.h:
6519         Go back to using 64-bit intrinsics.
6521         count-leading-zeros: fix pragma typos
6522         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
6523         Fix typos in declaration of intrinsics when _MSC_VER.
6525 2015-01-06  Pádraig Brady  <P@draigBrady.com>
6527         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
6528         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
6529         intrinsics in this case.
6530         * lib/count-trailing-zeros.h: Likewise.
6531         * lib/count-one-bits.h: Likewise.
6533 2015-01-06  Daiki Ueno  <ueno@gnu.org>
6535         uniname/uniname: update to Unicode 7.0.0
6536         To accommodate new characters added since Unicode 5.1.0, this
6537         changes the internal representation of codepoint ranges.
6538         Previously, we grouped codepoint ranges by manually assigned 4-bit
6539         tag, which only allowed 16 groups.  This removes the limitation by
6540         switching to binary search on a table.  For the detail rationale
6541         and the benchmark results, see:
6542         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
6543         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
6544         to INDEX, as it no longer represents a codepoint.
6545         (range): New struct.
6546         (main): Switch to intervals list from a bit-pattern based
6547         classification.
6548         * lib/uniname/uninames.h: Regenerate.
6549         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
6550         * modules/uniname/base (configure.ac): Bump minimum version to
6551         0.9.5.
6552         * modules/uniname/uniname (configure.ac): Bump minimum version to
6553         0.9.5.
6555 2015-01-05  Eric Blake  <eblake@redhat.com>
6557         doc: update INSTALL from autoconf
6558         * doc/install.texi: Resync from autoconf.
6559         * doc/INSTALL: Reflect recent autoconf update.
6560         * doc/INSTALL.ISO: Likewise.
6561         * doc/INSTALL.UTF-8: Likewise.
6563         stdio: fix use of PRIdMAX on modern mingw
6564         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
6565         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
6566         to work with modern mingw.
6568 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
6570         pthread: detect git mingw builds with only partial pollution
6571         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
6572         pollution, as seen temporarily in Fedora 21.
6574 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6576         lib-symbol-versions: cache script check
6577         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
6578         Cache the check for linker version scripts.
6579         From a suggestion by Christophe Curis in:
6580         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
6582 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
6584         maint: fix grammar nits in propername (trivial change)
6585         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
6586         and use an adequate verb and tense.
6588 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
6590         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
6591         * module/gendocs: Add 'doc/gendocs_template_min'.
6593         * build-aux/gendocs.sh: Change email addresses and upstream URLs
6594         from to Gnulib's.
6595         (scripturl, templateurl): Adjust accordingly.
6597 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6599         gendocs: copyright date and version fix
6600         Reported by Karl Berry in:
6601         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
6602         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
6603         Fix copyright date.
6604         * build-aux/gendocs.sh (scriptversion): Update.
6606 2015-01-01  Karl Berry  <karl@gnu.org>
6608         * doc/install.texi,
6609         * build-aux/mdate-sh,
6610         * build-aux/depcomp,
6611         * build-aux/config.guess,
6612         * build-aux/config.sub,
6613         * build-aux/ar-lib,
6614         * build-aux/compile: revert copyright updates (some from last
6615         year) in slaved files.
6617 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6619         version-etc: new year
6620         * doc/gnulib.texi:
6621         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
6622         * all files: Run 'make update-copyright'.
6624 2014-12-30  Pádraig Brady  <P@draigBrady.com>
6626         xstrtol: ensure errno is reset
6627         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
6628         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
6630         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
6632 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6634         utimens: fix dependency typo
6635         * modules/utimens (Depends-on): Remove 'assure'.
6636         This bug was introduced in the recent 'assure' patch.
6638 2014-12-22  Eric Blake  <eblake@redhat.com>
6640         docs: mention why libgen.h is bad
6641         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
6643 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6645         assure: new module
6646         This works better than 'assert' when compiling with -DNDEBUG,
6647         as it avoids some compiler diagnostics in that case.
6648         Reported by Norihiro Tanaka in:
6649         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
6650         * MODULES.html.sh (func_all_modules): Add 'assure'.
6651         * lib/assure.h, modules/assure: New files.
6652         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
6653         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
6654         Prefer 'assure' to 'assert'.
6655         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
6656         * modules/chdir-long, modules/cycle-check, modules/fchdir:
6657         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
6658         Depend on 'assure'.
6660 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6662         stdalign: port better to HP compilers
6663         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
6664         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
6666         stdalign: work around Apple GCC 4.0 bug
6667         Reported by David Fang in:
6668         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
6669         * lib/stdalign.in.h (_Alignas):
6670         * m4/stdalign.m4 (gl_STDALIGN_H):
6671         Do not use aligned attribute with GCC 4.0 on Apple.
6673 2014-12-16  Pádraig Brady  <P@draigBrady.com>
6675         getcwd: fix test failure on OS X 10.9
6676         * m4/getcwd-path-max.m4: Avoid the replacement if it
6677         won't be effective due to the PATH_MAX limitation of lstat().
6678         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
6679         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
6680         for this case for use in tests, and also exclude this
6681         case when setting REPLACE_GETCWD.
6682         * tests/test-getcwd.c (test_long_name): Restrict the
6683         tested path length so that lstat() will not be passed
6684         a path greater than PATH_MAX.
6685         Also key a test condition on HAVE_OPENAT_SUPPORT rather
6686         than AT_FDCWD, since the latter is set unconditionally
6687         since Sep 2009 in commit 52c658e9.
6689 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
6691         parse-datetime: avoid a compiler warning with byacc (trivial)
6692         * lib/parse-datetime.y (yylex): Use the same prototype in the
6693         function definition as the declaration, to avoid a -Wstrict-prototypes
6694         warning seen when using byacc.
6696 2014-12-12  Daiki Ueno  <ueno@gnu.org>
6698         unicase/locale-language-tests: fix LOCALE_FR test
6699         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
6700         a French locale with traditional encoding.
6701         Reported by umerqayam in:
6702         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
6704 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6706         stddef: support C11's max_align_t
6707         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
6708         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
6709         Do not undef, as that might cause max_align_t to be defined twice.
6710         Instead, change use to check for _GL_STDDEF_WINT_T too.
6711         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
6712         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
6713         Check for max_align_t.
6714         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
6715         * modules/stddef-tests (Depends-on): Add stdalign.
6716         * tests/test-stddef.c: Test max_align_t.
6718 2014-12-11  Daiki Ueno  <ueno@gnu.org>
6720         unistd: fix iOS check conditional
6721         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
6722         as 0 or 1 in <TargetConditionals.h>, and the previous check always
6723         yielded true on non-iOS environment.
6724         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
6725         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
6726         they are defined.
6728 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6730         posixtm: avoid compiler warning in a better way
6731         * lib/posixtm.c (IF_LINT): Remove.
6732         (year, posix_time_parse):
6733         Return true (not 0) if successful.  All callers changed.
6734         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
6736 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
6738         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
6739         started with '/' on EMX.
6741 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
6743         freopen: workaround freopen() on OS/2 kLIBC
6744         * lib/freopen.c (rpl_freopen): Workaround.
6745         * m4/freopen.m4: Add os2* case.
6747         get_shared_library_fullname: port to EMX
6748         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
6749         on EMX, respectively.
6750         (_DLL_InitTerm): New on EMX.
6751         (get_shared_library_fullname): Implement on EMX.
6753         find_executable: port to EMX
6754         * lib/progreloc.c (find_executable): Implement on EMX.
6756         sched: check struct sched_param in spawn.h as well
6757         * lib/sched.in.h: Include spawn.h on kLIBC.
6758         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
6760 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
6762         bootstrap: Allow perl modules in $buildreq
6763         * build-aux/bootstrap: Add case for perl modules.
6765 2014-12-08  Pádraig Brady  <P@draigBrady.com>
6767         apply _GL_ATTRIBUTE_PURE to some inline functions
6768         clang 3.4.2 flagged these inline functions as pure
6769         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
6770         * lib/sig-handler.h (get_handler): Likewise.
6771         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
6772         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
6774 2014-12-06  Pádraig Brady  <P@draigBrady.com>
6776         vasnprintf: fix potential use after free
6777         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
6778         flagged by clang-analyzer 3.4.2.
6780 2014-12-05  Pádraig Brady  <P@draigBrady.com>
6782         filevercmp, posixtm: avoid compiler warnings with -O3
6783         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
6784         * lib/posixtm.c: (IF_LINT): Define.
6785         (posix_time_parse): Use it to void a "may be used uninitialized"
6786         warning, seen only with -O3.
6788 2014-12-05  Bruno Haible  <bruno@clisp.org>
6790         Fix LDBL80_WORDS macro on big endian platforms.
6791         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
6792         LDBL80_WORDS macro.
6793         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6794         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6795         * tests/test-isfinite.c (test_isfinitel): Likewise.
6796         * tests/test-isinf.c (test_isinfl): Likewise.
6797         * tests/test-isnan.c (test_long_double): Likewise.
6798         * tests/test-isnanl.h (main): Likewise.
6799         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
6800         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
6801         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
6802         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
6803         Reported by Pádraig Brady.
6805 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
6807         git-version-gen: do not print new line characters
6808         * build-aux/git-version-gen: Use printf instead of echo and tr.
6810         gnulib-tool: recognize x:* as an absolute path
6811         * gnulib-tool (func_gnulib_dir): Add ?:* case.
6812         (func_relconcat): Likewise.
6814 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
6816         argp: avoid extraneous translation and mem leak with empty pre doc
6817         * lib/argp-help.c (argp_doc): Never translate the empty string,
6818         when "\v" is the first or last character of the string, as that
6819         has a reserved meaning to return the header info from a po file.
6820         This also fixes a small memory leak in the !post case.
6821         The issue can be seen with this command for example:
6822         LC_MESSAGES=en_US grub2-mknetdir --help
6824 2014-11-27  Daiki Ueno  <ueno@gnu.org>
6826         uniname/uniname-tests: skip if system's libunistring is used
6827         * modules/uniname/uniname-tests (Makefile.am): Skip test if
6828         uniname/uniname module is not compiled.
6830 2014-11-27  Pádraig Brady  <P@draigBrady.com>
6832         printf: fix configure check on big endian systems
6833         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
6835 2014-11-22  Daiki Ueno  <ueno@gnu.org>
6837         pipe-filter-gi, pipe-filter-ii: port to AIX
6838         On AIX 7.1, 'select' is defined as static and cannot be referred
6839         to from inline function.
6840         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
6841         the definition...
6842         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
6843         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
6845 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
6847         gitlog-to-changelog: add --until
6848         * build-aux/gitlog-to-changelog: Support new --until option.
6849         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
6851 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
6853         extern-inline: update commentary about GCC bugs
6854         * m4/extern-inline.m4: Add another GCC bug number to comments.
6856 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6858         gen-uni-tables: untabify
6859         * lib/gen-uni-tables.c: Untabify.
6861 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6863         gen-uni-tables: check out-of-range values added to 3-level tables
6864         * lib/gen-uni-tables.c (output_category, output_bidi_category)
6865         (output_joining_type, output_ident_category): Check out-of-range
6866         values added to 3-level tables.
6868 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6870         gen-uni-tables: utilize 'assert'
6871         * lib/gen-uni-tables.c: Include <assert.h>.
6872         (output_category, output_combclass, output_decimal_digit_test)
6873         (output_decimal_digit, output_digit_test, output_digit)
6874         (output_numeric, get_mirror_value, fill_properties)
6875         (fill_property30, is_property_alphabetic)
6876         (is_property_default_ignorable_code_point)
6877         (is_property_uppercase, is_property_lowercase)
6878         (is_property_cased, is_property_case_ignorable)
6879         (is_property_changes_when_lowercased, is_property_iso_control)
6880         (is_property_math, fill_arabicshaping, output_joining_group)
6881         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
6882         (output_wbp, fill_org_gbp, get_decomposition)
6883         (output_decomposition, fill_composition_exclusions)
6884         (debug_output_composition_tables, output_composition_tables)
6885         (redistribute_casefolding_rules, output_casing_rules): Use
6886         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
6887         reporting.
6889 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6891         gen-uni-tables: cosmetic improvements
6892         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
6893         variables specification.
6894         (is_outdigit): Remove unused function.
6896 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
6898         fcntl-h-tests: port to PA-RISC GNU/Linux
6899         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
6901 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
6903         fts: port to C89
6904         Problem reported for MSVC 16 by Gisle Vanem in:
6905         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
6906         * lib/fts.c (fts_build): Avoid declaration before statement.
6908 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6910         unistd: port to iOS
6911         Problem reported by André Klitzing in:
6912         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
6913         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
6915 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
6917         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
6918         Problem reported by Alan Modra in:
6919         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
6920         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
6921         Always cast the function arg, reverting this part of the previous
6922         change.
6924 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6926         obstack: avoid potentially-nonportable function casts
6927         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
6928         Remove, replacing with ...
6929         (call_chunkfun, call_freefun): New static functions.
6930         All uses changed.  Avoid potentially-nonportable casts.
6931         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
6932         (_obstack_begin_worker): Omit last two args, since they
6933         rely on potentially-nonportable casts.  All callers changed.
6934         * lib/obstack.h (_OBSTACK_CAST): New macro.
6935         Use it everywhere the old API used a potentially-nonportable cast.
6936         The new API doesn't cast.
6937         (struct obstack): Use unions rather than requiring
6938         potentially-nonportable casts.
6939         (obstack_chunkfun, obstack_freefun): Return void.
6941 2014-11-03  Alan Modra  <amodra@gmail.com>
6943         obstack: fix macro return values
6944         * lib/obstack.h (obstack_next_free): Return void *.
6945         (obstack_1grow_fast, obstack_blank_fast): Return void.
6946         For __GNUC__ macros:
6947         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
6948         For !__GNUC__ macros:
6949         (obstack_make_room, obstack_grow, obstack_grow0)
6950         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
6952 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6954         obstack: do not assume system-supplied obstack is size_t safe
6955         * m4/obstack.m4: New file.
6956         * modules/obstack (Files): Add it.
6958         obstack: port to platforms that #define __alignof__
6959         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
6960         not if !_LIBC.  We don't know of any platforms that #define
6961         __alignof__, but it might be useful in tests.  Conversely,
6962         glibc assumes GCC.
6964 2014-11-03  Pádraig Brady  <P@draigBrady.com>
6966         linkat: don't unconditionally replace on GNU/Linux
6967         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
6968         was redundant for a few reasons.  It was present to support compiling
6969         on new systems but running on the old narrow window of Linux 2.6.1[67].
6970         It setup and cleaned up test files which weren't actually used.
6971         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
6972         implicit in the following check.
6974 2014-11-03  Pádraig Brady  <P@draigBrady.com>
6976         linkat: wrap to handle symlinks on OS X 10.10
6977         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
6978         but not usable because it doesn't support creating hardlinks
6979         to symlinks.  Therefore add a generic test for this capability
6980         and fallback to our emulation if linkat() fails with ENOTSUP.
6982 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6984         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
6985         * doc/posix-functions/open.texi (open):
6986         * doc/posix-functions/openat.texi (openat):
6987         Document that these functions do not set errno to ELOOP when
6988         a symlink is opened with O_NOFOLLOW.
6990 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6992         obstack: add NEWS entry for recent incompatible changes
6993         * NEWS: Describe recent changes.
6995 2014-10-30  Pádraig Brady  <P@draigBrady.com>
6997         mountlist: don't use libmount to decide on dummy/remote
6998         * lib/mountlist.c (read_file_system_list): Don't use the libmount
6999         routines to determine whether a file system is dummy or remote,
7000         as they're not currently compatible.  For example the remoteness
7001         is determined on file system type (for which the list seems incomplete),
7002         rather than simply checking for a ':' in the device name.
7003         Also libmount currently determines that 'tmpfs' is a dummy file system
7004         even though it has associated storage.
7006 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
7008         obstack: prefer __alignof__ to alignof
7009         This is for portability to pre-4.7 GCC when compiling glibc.
7010         See Joseph S. Myers in:
7011         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
7012         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
7013         New macro, defined by including and using <alignof.h>.
7014         (MAX): New macro.
7015         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
7016         Do not use enums as they are not portable to some broken compilers.
7017         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
7019         obstack: prefer alignof to calculating alignments by hand
7020         * lib/obstack.c: Include <stdalign.h>.
7021         (struct fooalign): Remove.
7022         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
7023         * modules/obstack (Depends-on): Add stdalign.
7025 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
7027         obstack: use size_t alignments and check for overflow
7028         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
7029         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
7030         * lib/obstack.h (struct obstack.alignment_mask):
7031         Use _OBSTACK_SIZE_T, not int, for alignments.
7032         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
7033         overflows, e.g., when adding the alignment.
7035 2014-10-29  Alan Modra  <amodra@gmail.com>
7037         obstack: 64-bit obstack support, part 3
7038         This finally enables full 64-bit obstack support.  The glibc
7039         shared library specific code is removed from obstack.c too, and
7040         the error handling code conditionally compiled under control of
7041         another macro, _OBSTACK_NO_ERROR_HANDLER.
7042         * lib/obstack.h: Include string.h earlier.
7043         (_OBSTACK_INTERFACE_VERSION): Define.
7044         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
7045         * lib/obstack.c: Don't include shlib-compat.h.
7046         (OBSTACK_INTERFACE_VERSION): Delete.
7047         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
7048         glibc code is compatible with version 2.  Don't include stdio.h for
7049         __GNU_LIBRARY.
7050         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
7051         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
7052         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
7053         glibc shared library specific source.
7055         obstack: 64-bit obstack support, part 2
7056         This gets us 4G obstack support, without changing ABI
7057         compatibility, apart from possibly introducing some
7058         signed/unsigned comparison warnings in code that uses obstack.h.
7059         a) Replace "int" size parameters, return values, and macro local vars
7060            with _OBSTACK_SIZE_T, an "unsigned int" for now.
7061         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
7062         c) Make all obstack macros checking available room use obstack_room.
7063            "next_free + desired > chunk_limit" may wrap the lhs for chunks
7064            allocated near the top of memory.
7065         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
7066         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
7067         in place of "int" size parameters, return values and local vars.
7068         (_CHUNK_SIZE_T): Define.
7069         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
7070         union use an _OBSTACK_SIZE_T integer type.
7071         For __GNUC__ versions of the following macros...
7072         (obstack_room): Rename local var.
7073         (obstack_make_room): Use obstack_room.
7074         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
7075         obstack_int_grow, obstack_blank): Likewise.
7076         (obstack_finish): Use unsigned comparison when comparing aligned
7077         next_free against chunk_limit.
7078         (obstack_free): Cast OBJ to remove possible const qualifier.
7079         For !__GNUC__ versions of the following macros...
7080         (obstack_make_room): Use obstack_room.
7081         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
7082         obstack_int_grow, obstack_blank): Likewise.
7083         (obstack_finish): Use unsigned comparision when comparing aligned
7084         next_free against chunk_limit.
7085         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
7086         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
7087         _OBSTACK_SIZE_T.
7088         (_obstack_begin, _obstack_begin_1): Likewise.
7089         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
7090         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
7092         obstack: 64-bit obstack support, part 1
7093         a) Correct calls to alloc function, to use a size_t arg.  "long" is
7094            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
7095            and "size_t" 64 bits.
7096         b) Consolidate _obstack_begin and _obstack_begin1 code.
7097         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
7098         use "size_t" rather than "long".
7099         (_obstack_begin, _obstack_begin1): Likewise.
7100         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
7101         obstack_chunkfun): Update alloc function casts.
7102         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
7103         (chunkfun_type, freefun_type): New typdefs.
7104         (_obstack_begin_worker): Split out from ..
7105         (_obstack_begin, _obstack_begin_1): ..here.
7107         obstack: tidy part 2
7108         a) Don't be concerned about "not polluting the namespace with stddef.h
7109            symbols" in obstack.h, since gnulib string.h includes stddef.h
7110            anyway, and it seems unlikely that anyone would care.
7111         b) Don't roll our own slow memcpy in _obstack_newchunk.
7112         c) Rename obstack_free to _obstack_free.  This makes the naming
7113            consistent with other obstack functions and obviates the need for
7114            __obstack_free.  Ancient obstack.c defined both obstack_free and
7115            _obstack_free.  We continue to do that for _LIBC via an alias.
7116         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
7117            is clever, but nowadays gcc warns on undefined macros.  You'll get
7118            an undefined macro warning if simulating an old gcc with -U__GNUC__
7119            -U__GNUC_MINOR__ -D__GNUC__=1.
7120         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
7121         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
7122         (__obstack_free): Delete, update refs.
7123         (_obstack_free): Rename from obstack_free.
7124         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
7125         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
7126         * lib/obstack.c: Don't include stddef.h.
7127         (COPYING_UNIT): Delete.
7128         (_obstack_begin): Formatting fix.
7129         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
7130         (_obstack_free): Rename from __obstack_free, update alias.  Move
7131         undef of obstack_free to where it is needed.
7133         obstack: tidy part 1
7134         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
7135            to me, and result in overlong lines after later patches.
7136         b) Move error handling code, to avoid a forward declaration and to
7137            simplify later patches in this series.
7138         * lib/obstack.h (struct obstack <temp>): Rename fields of union
7139         and update all uses.
7140         * lib/obstack.c: Include stdlib.h earlier.
7141         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
7142         in file.
7143         (print_and_abort): Remove now redundant forward declaration.
7145 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7147         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
7148         Without this change, in bleeding-edge fileutils Autoconf complains
7149         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
7150         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
7151         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
7152         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
7154 2014-10-24  Daiki Ueno  <ueno@gnu.org>
7156         iconv: avoid false detection of non-working iconv
7157         The INBUF arguments of iconv can be either 'const char **'
7158         or 'char **'.  If CC is g++, the difference causes a compile error
7159         and thus leads to a false detection of non-working iconv.
7160         Reported by Eli Zaretskii and Werner LEMBERG in:
7161         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
7162         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
7163         iconv.  Bump serial number.
7165 2014-10-23  Pádraig Brady  <P@draigBrady.com>
7167         bootstrap: print more diagnostics for missing programs
7168         * build-aux/bootstrap: only suppress stderr when checking for
7169         alternative program names.  This supports programs issuing non
7170         standard error messages.
7172 2014-10-23  Pádraig Brady  <P@draigBrady.com>
7174         bootstrap: only update the gnulib submodule
7175         * build-aux/bootstrap: Restrict the "submodule update" command
7176         to the gnulib path.
7178 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7180         symlinkat: port to AIX 7.1
7181         * doc/posix-functions/symlinkat.texi (symlinkat):
7182         Mention AIX porting problem.
7183         * lib/symlinkat.c: Always include errno.h.
7184         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
7185         * lib/unistd.in.h (symlinkat): Add replacement machinery.
7186         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
7187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
7188         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
7189         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
7190         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
7192         readlinkat: port to AIX 7.1
7193         * doc/posix-functions/readlink.texi (readlink):
7194         * doc/posix-functions/readlinkat.texi (readlinkat):
7195         Mention AIX porting problem.
7196         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
7197         New function.
7198         * lib/unistd.in.h (readlinkat): Add replacement machinery.
7199         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
7200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
7201         * modules/readlinkat (configure.ac): Also compile replacement
7202         if REPLACE_READLINKAT.
7203         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
7205 2014-10-12  Karl Berry  <karl@gnu.org>
7207         * doc/posix-functions/dirname.texi: remove spurious {.
7209 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
7211         basename, dirname: Improve documentation.
7212         * doc/posix-functions/basename.texi: Mention dirname module and
7213         base_name() function.
7214         * doc/posix-functions/dirname.texi: Mention dir_name() and
7215         mdir_name() functions.
7216         Suggested by Werner LEMBERG <wl@gnu.org>.
7218 2014-09-24  Jim Meyering  <meyering@fb.com>
7220         exclude: declare exclude_patopts static
7221         * lib/exclude.c (exclude_patopts): Declare static,
7222         to avoid triggering a -Wmissing-prototypes warning.
7223         The alternative (declaring it in the .h file) would
7224         require publicizing the private "struct patopts".
7226 2014-09-21  Werner Lemberg  <wl@gnu.org>
7228         dirname: support compilation with C++
7229         * lib/dirname.h: Add necessary C linkage declarations.
7231 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
7233         qsort_r: include <config.h>
7234         Problem reported by Tom G. Christensen in:
7235         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
7236         * lib/qsort.c [!_LIBC]: Include <config.h> first.
7238 2014-09-16  Dylan Cali  <calid1984@gmail.com>
7240         avltree-list: avoid compiler warnings (trivial)
7241         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
7242         -Werror=suggest-attribute=pure.
7243         * lib/gl_array_list.c: Likewise.
7244         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
7245         declaration to avoid -Werror=missing-prototypes.  This is not added
7246         to a header as only exported for tests.  Add (void) to the
7247         check_invariants() call to indicate we're discarding the result
7248         in this context which avoids -Werror=unused-value.  Note we don't
7249         use ignore_value here to avoid a dependency as we know we'll not
7250         be adding __attribute__((warn_unused_result)) to check_invariants().
7251         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
7253 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
7255         qsort_r: new module, for GNU-style qsort_r
7256         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
7258 2014-09-15  Werner LEMBERG  <wl@gnu.org>
7260         strerror_r-posix: support compilation with C++
7261         * lib/strerror_r.c: Add necessary C linkage declarations.
7263 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
7265         fcntl-h: fix compilation with Intel C++ compiler (trivial)
7266         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
7268 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
7270         mountlist: use /proc/self/mountinfo when available
7271         Use libmount to propagate device IDs provided by Linux in
7272         /proc/self/mountinfo.  This will give more accurate output when
7273         using df in chroot'ed environments as the device IDs are not
7274         determined by stat() which may be inaccurate within the chroot.
7275         * lib/mountlist.c (read_file_system_list): Use the libmount routines
7276         from util-linux to parse "/proc/self/mountinfo" or fall back to
7277         standard getmntent() processing.
7278         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
7279         getmntent() is used, as is the case on GNU/Linux.
7281 2014-09-07  Eric Wong  <normalperson@yhbt.net>
7283         users.txt: add cmogstored
7284         cmogstored has used gnulib since the beginning in 2012 to support
7285         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
7287 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
7289         Trivial change.
7290         * gnulib-tool: Use same options as build-aux/bootstrap to download
7291         PO files.
7293 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
7295         Trivial change.
7296         * gnulib-tool: Fallback to wget when rsync of PO files fails.
7298 2014-09-04  Eric Blake  <eblake@redhat.com>
7300         maintainer-makefile: add syntax check for useless ';;'
7301         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
7303 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
7305         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
7306         Problem reported by Assaf Gordon in:
7307         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
7308         Apparently Ubuntu is doing some fancy link-time optimization
7309         that doesn't work with -lpthread but does work with -pthread.
7310         Work around the bug by preferring -pthread to -lpthread.
7311         * m4/pthread.m4 (gl_PTHREAD_CHECK):
7312         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
7313         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7314         Treat -pthread like -lpthread.
7316 2014-09-04  Eric Blake  <eblake@redhat.com>
7318         error: drop spurious semicolon
7319         * lib/error.c (__error_at_line): Fix ';;'.
7321 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7323         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
7324         * m4/gnulib-common.m4 (AC_C_RESTRICT):
7325         Override AC_C_RESTRICT unconditionally.
7326         Update from autoconf, incorporating:
7327         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
7328         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
7330 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7332         manywarnings: add GCC 4.9 warnings
7333         Also, make it easier to maintain this in the future.
7334         * build-aux/gcc-warning.spec: Add -Wabi-tag,
7335         -Wconditionally-supported, -Wdelete-incomplete,
7336         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
7337         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
7338         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
7339         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
7340         only for older GCC versions that need them.  Handle
7341         -Wnormalized=nfc specially, so that the 'comm' command used
7342         for maintenance doesn't get confused.
7344 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
7346         vasnprintf: fix bugs in width computation
7347         * lib/vasnprintf.c (VASNPRINTF):
7348         Rework previous change, which introduced a bug,
7349         to avoid the warning in a different way.
7350         Avoid undefined behavior if the width arg is less than -INT_MAX.
7351         Avoid unnecessary use of HAS_WIDTH local.
7353 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
7355         vasnprintf: Avoid signed/unsigned comparison warning.
7356         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
7357         compare end addr of generated string w/ maximum end addr.
7359 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
7361         parse-datetime: Avoid pointer difference.
7362         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
7363         instead of calculating difference of pointers.  This removes an
7364         annoying warning, devoid of any use.
7366 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
7368         qsort_r: new module, for GNU-style qsort_r
7369         This works even on FreeBSD, which has an incompatible qsort_r API.
7370         * MODULES.html.sh: Add it.
7371         * doc/glibc-functions/qsort_r.texi: It's now supported.
7372         * lib/qsort.c: New file, taken from glibc with minor changes
7373         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
7374         removed.
7375         * lib/qsort_r.c: New file, compiled only on FreeBSD.
7376         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
7377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
7378         * modules/qsort_r, modules/qsort_r-tests: New files.
7379         * modules/stdlib (Makefile): Set up its defaults.
7380         * tests/test-qsort_r.c: New file.
7382 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
7384         vla: new module
7385         GNU RCS can use this, mostly for documentation I expect.  See:
7386         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
7387         * MODULES.html.sh: Add vla.
7388         * lib/vla.h, modules/vla: New files.
7390 2014-08-07  Daiki Ueno  <ueno@gnu.org>
7392         localename: make gl_locale_name_thread really thread-safe on Windows
7393         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
7394         "glthread/lock.h".
7395         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
7396         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
7398 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
7400         getpass: don't assume struct termios
7401         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
7402         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
7403         * lib/getpass.c (getpass): Port to systems lacking struct termios.
7405         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
7406         Problem reported by Jonas 'Sortie' Termansen in:
7407         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
7408         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
7409         Implement via sysconf for platforms that lack getdtablesize.
7411         vararrays: modernize AC_C_VARARRAYS for C11
7412         This backports a change I recently made to Autoconf.
7413         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
7414         VLAs are not supported, as this is what C11 does.  The old macro
7415         HAVE_C_VARARRAYS is still defined if they are supported, but is
7416         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
7418 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
7420         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
7421         * build-aux/install-reloc (func_create_wrapper): Also wrap
7422         strerror-override, stat, stat.
7424 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
7426         sys_select: fix FD_ZERO problem on Solaris 10
7427         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
7428         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
7429         to expand to an expression that invoked memset without necessarily
7430         including <string.h>.  The problem was that the first include
7431         defined _SYS_TIME_H, causing the second include to short-circuit.
7432         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
7433         Also, fix what appears to be a cut-and-paste typo, by replacing
7434         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
7435         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
7437         accept: document Solaris 10 type glitch
7438         * doc/posix-functions/accept.texi (accept): Mention that
7439         Solaris 10 'accept' takes void * last arg, not socklen_t *.
7441 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
7443         extern-inline: port to FreeBSD, DragonFly
7444         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
7445         is present if either __DragonFly__ or __FreeBSD__ is defined.
7446         FreeBSD problem reported by Andrey Borzenkov in:
7447         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
7448         Also, worry about __APPLE__ only if __MACH__ is also defined,
7449         as this is more consistent with the rest of gnulib.
7450         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
7451         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
7453 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7455         regex: Make #if/#ifdef usage consistent for DEBUG
7456         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
7457         of the inconsistent usage of #if and #ifdef as that works with
7458         both Glibc and Gnulib's style.
7460 2014-07-31  Eric Blake  <eblake@redhat.com>
7462         openat-die: use _Noreturn markup
7463         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
7464         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
7465         _Noreturn.
7467 2014-07-30  Eric Blake  <eblake@redhat.com>
7469         test-open: port to cygwin, which lacks Fortify
7470         * tests/test-open.h (ALWAYS_INLINE): New macro.
7471         (__always_inline): Don't abuse internal symbol on non-glibc.
7473 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
7475         localename: Enforce declarations before statements.
7476         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
7477         first statement.
7479 2014-07-18  Jim Meyering  <meyering@fb.com>
7481         test-userspec: don't look up numeric user names
7482         * tests/test-userspec.c: I found a system for which getpwnam("0")
7483         returned a pointer to a non-root user's entry, and that made the
7484         test fail.
7485         (T): Prefix each numeric input with "+", to inhibit lookup.
7487 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
7489         localcharset, localename: MS-Windows support for non-default locales
7490         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
7491         falling back on the default system codepage, try extracting
7492         the codepage from what 'setlocale' returns.  This allows to
7493         take into account changes of the codeset due to non-default
7494         locale set by a previous call to 'setlocale'.
7495         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
7496         Define if not already defined.
7497         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
7498         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
7499         current locale by calling 'setlocale', then converting the
7500         locale name into LCID by calling 'get_lcid'.  This allows to
7501         take into account changes in the current locale from the
7502         default one, in contrast to GetThreadLocale.
7504 2014-07-14  Daiki Ueno  <ueno@gnu.org>
7506         announce-gen: avoid failure when Digest::SHA is installed
7507         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
7508         Digest::SHA1->new in print_checksums fails.
7509         * build-aux/announce-gen (digest_classes): New associative array
7510         for available message digest implementations.
7511         (print_locations): Use it.
7513 2014-07-13  Pádraig Brady  <P@draigBrady.com>
7515         gettext: revert "update macros to version 0.19"
7516         This reverts commit 9b9370ca, as it currently requires that
7517         developers of any project that explicitly uses the gettext module
7518         or implicitly uses it through the utimens-tests or
7519         futimens-tests modules, use gettext >= 0.19.
7520         However there are some stability and availablity issues with
7521         that version at present.  We can reinstate this soon, when stability
7522         is addressed and packages are more readily available.
7524 2014-07-12  Jim Meyering  <meyering@fb.com>
7526         regex: don't deref NULL upon heap allocation failure
7527         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
7528         failure in one more place.
7529         To trigger the segfault, configure grep -with-included-regex,
7530         build it, and run these commands:
7531         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
7532         I discovered this while replying to a private report from
7533         Jens Schleusener about excessive memory consumption by grep
7534         when using a regular expression like the one above.
7536 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
7538         regex: fix memory leak in compiler
7539         Fix by Andreas Schwab in:
7540         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
7541         * lib/regcomp.c (parse_reg_exp): Deallocate partially
7542         constructed tree before returning error.
7544 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
7546         announce-gen: avoid perl warnings
7547         * build-aux/announce-gen: add two minor checks to avoid
7548         "use of uninitialized value" warnings when command-line parameters are
7549         missing.
7551 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
7553         localename: avoid -Wsuggest-attribute={const,pure} warnings
7554         * lib/localename.c (string_has): Tag internal function as pure.
7555         * lib/localename.h (gl_locale_name_default): Tag extern declaration
7556         as const when appropriate.
7558 2014-07-10  Eli Zaretskii <eliz@gnu.org>
7560         nl_langinfo: Fix last change.
7561         * lib/nl_langinfo.c (includes): Drop redundant include.
7563 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7565         error: Fix -Wundef warnings in glibc
7566         * lib/error.c [_LIBC]: Define default macros for
7567         glibc.
7568         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
7569         Check _LIBC before STRERROR_R_CHAR_P.
7571         error: Sync from glibc master
7572         * lib/error.c [_LIBC]: Remove INTUSE usage.
7573         (error_tail): Remove unused macro ALLOCA_LIMIT.
7574         Fix potential buffer overflow.  Fix potential NULL dereference
7575         in strcmp.
7577 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
7579         nl_langinfo: fix build under mingw
7580         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
7582 2014-07-09  Andrew D Warshall  <warshall@99main.com>
7584         mountlist: do not classify a bind-mounted dir entry as "dummy"
7585         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
7586         1-argument getmntent() (instead of assuming absence).
7588 2014-07-08  Eric Blake  <eblake@redhat.com>
7590         maint.mk: less syntax-check noise when SIGPIPE is ignored
7591         * top/maint.mk (_sc_header_without_use)
7592         (sc_require_config_h_first): Parse full list.
7594 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
7595             Paul Eggert  <eggert@cs.ucla.edu>
7597         nl_langinfo: CODESET on MS-Windows and more items from localeconv
7598         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
7599         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
7600         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
7601         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
7602         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
7603         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
7604         Include <stdio.h> if Microsoft Windows.
7605         Include <time.h> if !REPLACE_NL_LANGINFO.
7606         (ctype_codeset): New function, taken from rpl_nl_langinfo,
7607         and with improvements for Microsoft Windows.
7608         (rpl_nl_langinfo): Use it.
7609         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
7610         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
7611         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
7612         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
7613         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
7614         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
7615         corresponding values returned by 'localeconv'.  Compute the values
7616         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
7617         'strftime' with a suitable struct tm value.
7619 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7621         Bruno Haible has stepped down as maintainer.
7622         See Karl Berry in:
7623         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
7624         Daiki Ueno has volunteered to maintain libunistring; see:
7625         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
7626         * modules/gen-uni-tables, modules/libunistring:
7627         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
7628         * modules/unicase/base, modules/unicase/cased:
7629         * modules/unicase/empty-prefix-context:
7630         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
7631         * modules/unicase/locale-language, modules/unicase/special-casing:
7632         * modules/unicase/tocasefold, modules/unicase/tolower:
7633         * modules/unicase/totitle, modules/unicase/toupper:
7634         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
7635         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
7636         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
7637         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
7638         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
7639         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
7640         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
7641         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
7642         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
7643         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
7644         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
7645         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
7646         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
7647         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
7648         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
7649         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
7650         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
7651         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
7652         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
7653         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
7654         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
7655         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
7656         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
7657         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
7658         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
7659         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
7660         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
7661         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
7662         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
7663         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
7664         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
7665         * modules/unicase/ulc-casexfrm, modules/unicodeio:
7666         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
7667         * modules/uniconv/u16-conv-to-enc:
7668         * modules/uniconv/u16-strconv-from-enc:
7669         * modules/uniconv/u16-strconv-from-locale:
7670         * modules/uniconv/u16-strconv-to-enc:
7671         * modules/uniconv/u16-strconv-to-locale:
7672         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
7673         * modules/uniconv/u32-strconv-from-enc:
7674         * modules/uniconv/u32-strconv-from-locale:
7675         * modules/uniconv/u32-strconv-to-enc:
7676         * modules/uniconv/u32-strconv-to-locale:
7677         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
7678         * modules/uniconv/u8-strconv-from-enc:
7679         * modules/uniconv/u8-strconv-from-locale:
7680         * modules/uniconv/u8-strconv-to-enc:
7681         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
7682         * modules/unictype/bidicategory-all:
7683         * modules/unictype/bidicategory-byname:
7684         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
7685         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
7686         * modules/unictype/bidiclass-byname:
7687         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
7688         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
7689         * modules/unictype/block-all, modules/unictype/block-list:
7690         * modules/unictype/block-of, modules/unictype/block-test:
7691         * modules/unictype/category-C, modules/unictype/category-Cc:
7692         * modules/unictype/category-Cf, modules/unictype/category-Cn:
7693         * modules/unictype/category-Co, modules/unictype/category-Cs:
7694         * modules/unictype/category-L, modules/unictype/category-LC:
7695         * modules/unictype/category-Ll, modules/unictype/category-Lm:
7696         * modules/unictype/category-Lo, modules/unictype/category-Lt:
7697         * modules/unictype/category-Lu, modules/unictype/category-M:
7698         * modules/unictype/category-Mc, modules/unictype/category-Me:
7699         * modules/unictype/category-Mn, modules/unictype/category-N:
7700         * modules/unictype/category-Nd, modules/unictype/category-Nl:
7701         * modules/unictype/category-No, modules/unictype/category-P:
7702         * modules/unictype/category-Pc, modules/unictype/category-Pd:
7703         * modules/unictype/category-Pe, modules/unictype/category-Pf:
7704         * modules/unictype/category-Pi, modules/unictype/category-Po:
7705         * modules/unictype/category-Ps, modules/unictype/category-S:
7706         * modules/unictype/category-Sc, modules/unictype/category-Sk:
7707         * modules/unictype/category-Sm, modules/unictype/category-So:
7708         * modules/unictype/category-Z, modules/unictype/category-Zl:
7709         * modules/unictype/category-Zp, modules/unictype/category-Zs:
7710         * modules/unictype/category-all, modules/unictype/category-and:
7711         * modules/unictype/category-and-not, modules/unictype/category-byname:
7712         * modules/unictype/category-longname, modules/unictype/category-name:
7713         * modules/unictype/category-none, modules/unictype/category-of:
7714         * modules/unictype/category-or, modules/unictype/category-test:
7715         * modules/unictype/category-test-withtable:
7716         * modules/unictype/combining-class:
7717         * modules/unictype/combining-class-all:
7718         * modules/unictype/combining-class-byname:
7719         * modules/unictype/combining-class-longname:
7720         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
7721         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
7722         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
7723         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
7724         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
7725         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
7726         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
7727         * modules/unictype/digit, modules/unictype/joininggroup-all:
7728         * modules/unictype/joininggroup-byname:
7729         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
7730         * modules/unictype/joiningtype-all:
7731         * modules/unictype/joiningtype-byname:
7732         * modules/unictype/joiningtype-longname:
7733         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
7734         * modules/unictype/mirror, modules/unictype/numeric:
7735         * modules/unictype/property-all, modules/unictype/property-alphabetic:
7736         * modules/unictype/property-ascii-hex-digit:
7737         * modules/unictype/property-bidi-arabic-digit:
7738         * modules/unictype/property-bidi-arabic-right-to-left:
7739         * modules/unictype/property-bidi-block-separator:
7740         * modules/unictype/property-bidi-boundary-neutral:
7741         * modules/unictype/property-bidi-common-separator:
7742         * modules/unictype/property-bidi-control:
7743         * modules/unictype/property-bidi-embedding-or-override:
7744         * modules/unictype/property-bidi-eur-num-separator:
7745         * modules/unictype/property-bidi-eur-num-terminator:
7746         * modules/unictype/property-bidi-european-digit:
7747         * modules/unictype/property-bidi-hebrew-right-to-left:
7748         * modules/unictype/property-bidi-left-to-right:
7749         * modules/unictype/property-bidi-non-spacing-mark:
7750         * modules/unictype/property-bidi-other-neutral:
7751         * modules/unictype/property-bidi-pdf:
7752         * modules/unictype/property-bidi-segment-separator:
7753         * modules/unictype/property-bidi-whitespace:
7754         * modules/unictype/property-byname:
7755         * modules/unictype/property-case-ignorable:
7756         * modules/unictype/property-cased:
7757         * modules/unictype/property-changes-when-casefolded:
7758         * modules/unictype/property-changes-when-casemapped:
7759         * modules/unictype/property-changes-when-lowercased:
7760         * modules/unictype/property-changes-when-titlecased:
7761         * modules/unictype/property-changes-when-uppercased:
7762         * modules/unictype/property-combining:
7763         * modules/unictype/property-composite:
7764         * modules/unictype/property-currency-symbol:
7765         * modules/unictype/property-dash:
7766         * modules/unictype/property-decimal-digit:
7767         * modules/unictype/property-default-ignorable-code-point:
7768         * modules/unictype/property-deprecated:
7769         * modules/unictype/property-diacritic:
7770         * modules/unictype/property-extender:
7771         * modules/unictype/property-format-control:
7772         * modules/unictype/property-grapheme-base:
7773         * modules/unictype/property-grapheme-extend:
7774         * modules/unictype/property-grapheme-link:
7775         * modules/unictype/property-hex-digit:
7776         * modules/unictype/property-hyphen:
7777         * modules/unictype/property-id-continue:
7778         * modules/unictype/property-id-start:
7779         * modules/unictype/property-ideographic:
7780         * modules/unictype/property-ids-binary-operator:
7781         * modules/unictype/property-ids-trinary-operator:
7782         * modules/unictype/property-ignorable-control:
7783         * modules/unictype/property-iso-control:
7784         * modules/unictype/property-join-control:
7785         * modules/unictype/property-left-of-pair:
7786         * modules/unictype/property-line-separator:
7787         * modules/unictype/property-logical-order-exception:
7788         * modules/unictype/property-lowercase, modules/unictype/property-math:
7789         * modules/unictype/property-non-break:
7790         * modules/unictype/property-not-a-character:
7791         * modules/unictype/property-numeric:
7792         * modules/unictype/property-other-alphabetic:
7793         * modules/unictype/property-other-default-ignorable-code-point:
7794         * modules/unictype/property-other-grapheme-extend:
7795         * modules/unictype/property-other-id-continue:
7796         * modules/unictype/property-other-id-start:
7797         * modules/unictype/property-other-lowercase:
7798         * modules/unictype/property-other-math:
7799         * modules/unictype/property-other-uppercase:
7800         * modules/unictype/property-paired-punctuation:
7801         * modules/unictype/property-paragraph-separator:
7802         * modules/unictype/property-pattern-syntax:
7803         * modules/unictype/property-pattern-white-space:
7804         * modules/unictype/property-private-use:
7805         * modules/unictype/property-punctuation:
7806         * modules/unictype/property-quotation-mark:
7807         * modules/unictype/property-radical:
7808         * modules/unictype/property-sentence-terminal:
7809         * modules/unictype/property-soft-dotted:
7810         * modules/unictype/property-space:
7811         * modules/unictype/property-terminal-punctuation:
7812         * modules/unictype/property-test, modules/unictype/property-titlecase:
7813         * modules/unictype/property-unassigned-code-value:
7814         * modules/unictype/property-unified-ideograph:
7815         * modules/unictype/property-uppercase:
7816         * modules/unictype/property-variation-selector:
7817         * modules/unictype/property-white-space:
7818         * modules/unictype/property-xid-continue:
7819         * modules/unictype/property-xid-start:
7820         * modules/unictype/property-zero-width, modules/unictype/scripts:
7821         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
7822         * modules/unictype/syntax-c-whitespace:
7823         * modules/unictype/syntax-java-ident:
7824         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
7825         * modules/unigbrk/u16-grapheme-breaks:
7826         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
7827         * modules/unigbrk/u32-grapheme-breaks:
7828         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
7829         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
7830         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
7831         * modules/unigbrk/uc-is-grapheme-break:
7832         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
7833         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
7834         * modules/unilbrk/u16-width-linebreaks:
7835         * modules/unilbrk/u32-possible-linebreaks:
7836         * modules/unilbrk/u32-width-linebreaks:
7837         * modules/unilbrk/u8-possible-linebreaks:
7838         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
7839         * modules/unilbrk/ulc-possible-linebreaks:
7840         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
7841         * modules/uniname/uniname, modules/uninorm/base:
7842         * modules/uninorm/canonical-decomposition:
7843         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
7844         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
7845         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
7846         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
7847         * modules/uninorm/nfkc, modules/uninorm/nfkd:
7848         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
7849         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
7850         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
7851         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
7852         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
7853         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
7854         * modules/unistdio/base, modules/unistdio/u-printf-args:
7855         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
7856         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
7857         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
7858         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
7859         * modules/unistdio/u16-u16-sprintf:
7860         * modules/unistdio/u16-u16-vasnprintf:
7861         * modules/unistdio/u16-u16-vasprintf:
7862         * modules/unistdio/u16-u16-vsnprintf:
7863         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
7864         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
7865         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
7866         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
7867         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
7868         * modules/unistdio/u32-u32-asnprintf:
7869         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
7870         * modules/unistdio/u32-u32-sprintf:
7871         * modules/unistdio/u32-u32-vasnprintf:
7872         * modules/unistdio/u32-u32-vasprintf:
7873         * modules/unistdio/u32-u32-vsnprintf:
7874         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
7875         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
7876         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
7877         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
7878         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
7879         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
7880         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
7881         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
7882         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
7883         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
7884         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
7885         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
7886         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
7887         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
7888         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
7889         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
7890         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
7891         * modules/unistr/u16-check, modules/unistr/u16-chr:
7892         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
7893         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
7894         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
7895         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
7896         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
7897         * modules/unistr/u16-move, modules/unistr/u16-next:
7898         * modules/unistr/u16-prev, modules/unistr/u16-set:
7899         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
7900         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
7901         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
7902         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
7903         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
7904         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
7905         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
7906         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
7907         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
7908         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
7909         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
7910         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
7911         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
7912         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
7913         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
7914         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
7915         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
7916         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
7917         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
7918         * modules/unistr/u32-next, modules/unistr/u32-prev:
7919         * modules/unistr/u32-set, modules/unistr/u32-startswith:
7920         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
7921         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
7922         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
7923         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
7924         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
7925         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
7926         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
7927         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
7928         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
7929         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
7930         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
7931         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
7932         * modules/unistr/u8-check, modules/unistr/u8-chr:
7933         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
7934         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
7935         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
7936         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
7937         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
7938         * modules/unistr/u8-next, modules/unistr/u8-prev:
7939         * modules/unistr/u8-set, modules/unistr/u8-startswith:
7940         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
7941         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
7942         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
7943         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
7944         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
7945         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
7946         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
7947         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
7948         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
7949         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
7950         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
7951         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
7952         * modules/uniwbrk/base, modules/uniwbrk/table:
7953         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
7954         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
7955         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
7956         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
7957         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
7958         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
7959         * modules/uniwidth/width, modules/utf16-ucs4:
7960         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
7961         * modules/utf8-ucs4-unsafe:
7962         Change maintainer from Bruno Haible to Daiki Ueno.
7963         This is my guess at the libunistring modules; please feel free
7964         to fix if I guessed incorrectly.
7965         * modules/accept4, modules/acl, modules/acos, modules/acosf:
7966         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
7967         * modules/areadlink, modules/array-list, modules/array-mergesort:
7968         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
7969         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
7970         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
7971         * modules/binary-io, modules/bison-i18n, modules/btowc:
7972         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
7973         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
7974         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
7975         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
7976         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
7977         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
7978         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
7979         * modules/closedir, modules/concat-filename, modules/copy-file:
7980         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
7981         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
7982         * modules/csharpcomp-script, modules/csharpexec:
7983         * modules/csharpexec-script, modules/ctype, modules/diffseq:
7984         * modules/dprintf, modules/dprintf-posix, modules/dup:
7985         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
7986         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
7987         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
7988         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
7989         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
7990         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
7991         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
7992         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
7993         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
7994         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
7995         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
7996         * modules/findprog, modules/findprog-lgpl, modules/floor:
7997         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
7998         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
7999         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
8000         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
8001         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
8002         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
8003         * modules/freadable, modules/freadahead, modules/freadptr:
8004         * modules/freadseek, modules/freopen, modules/frexp:
8005         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
8006         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
8007         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
8008         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
8009         * modules/ftello, modules/full-read, modules/full-write:
8010         * modules/fwritable, modules/fwriteerror, modules/gcd:
8011         * modules/get-rusage-as, modules/get-rusage-data:
8012         * modules/getdtablesize, modules/getrusage, modules/gettext:
8013         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
8014         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
8015         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
8016         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
8017         * modules/iconv, modules/iconv-h, modules/iconv_open:
8018         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
8019         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
8020         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
8021         * modules/integer_length_ll, modules/ioctl, modules/isatty:
8022         * modules/isblank, modules/isnand, modules/isnand-nolibm:
8023         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
8024         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
8025         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
8026         * modules/javaexec, modules/javaexec-script, modules/javaversion:
8027         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
8028         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
8029         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
8030         * modules/lib-symbol-visibility, modules/libsigsegv:
8031         * modules/linked-list, modules/linkedhash-list, modules/list:
8032         * modules/localcharset, modules/locale, modules/localeconv:
8033         * modules/localename, modules/lock, modules/log, modules/log-ieee:
8034         * modules/log10, modules/log10-ieee, modules/log10f:
8035         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
8036         * modules/log1p, modules/log1p-ieee, modules/log1pf:
8037         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
8038         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
8039         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
8040         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
8041         * modules/logf, modules/logf-ieee, modules/login_tty:
8042         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
8043         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
8044         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
8045         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
8046         * modules/mbscspn, modules/mbsinit, modules/mbslen:
8047         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
8048         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
8049         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
8050         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
8051         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
8052         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
8053         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
8054         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
8055         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
8056         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
8057         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
8058         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
8059         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
8060         * modules/posix_spawn, modules/posix_spawn-internal:
8061         * modules/posix_spawn_file_actions_addclose:
8062         * modules/posix_spawn_file_actions_adddup2:
8063         * modules/posix_spawn_file_actions_addopen:
8064         * modules/posix_spawn_file_actions_destroy:
8065         * modules/posix_spawn_file_actions_init:
8066         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
8067         * modules/posix_spawnattr_getpgroup:
8068         * modules/posix_spawnattr_getschedparam:
8069         * modules/posix_spawnattr_getschedpolicy:
8070         * modules/posix_spawnattr_getsigdefault:
8071         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
8072         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
8073         * modules/posix_spawnattr_setschedparam:
8074         * modules/posix_spawnattr_setschedpolicy:
8075         * modules/posix_spawnattr_setsigdefault:
8076         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
8077         * modules/pow, modules/powf, modules/printf-frexp:
8078         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
8079         * modules/progname, modules/propername, modules/pselect:
8080         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
8081         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
8082         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
8083         * modules/read, modules/readdir, modules/readlink:
8084         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
8085         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
8086         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
8087         * modules/relocatable-script, modules/remainder:
8088         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
8089         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
8090         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
8091         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
8092         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
8093         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
8094         * modules/setlocale, modules/sh-quote, modules/shutdown:
8095         * modules/signal, modules/signbit, modules/sigpipe:
8096         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
8097         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
8098         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
8099         * modules/snippet/link-warning, modules/snippet/unused-parameter:
8100         * modules/snprintf, modules/snprintf-posix, modules/spawn:
8101         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
8102         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
8103         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
8104         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
8105         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
8106         * modules/streq, modules/strerror_r-posix, modules/striconv:
8107         * modules/striconveh, modules/striconveha, modules/strncat:
8108         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
8109         * modules/sublist, modules/sys_resource, modules/sys_utsname:
8110         * modules/sys_wait, modules/system-posix, modules/system-quote:
8111         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
8112         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
8113         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
8114         * modules/truncf, modules/truncf-ieee, modules/truncl:
8115         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
8116         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
8117         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
8118         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
8119         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
8120         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
8121         * modules/wait-process, modules/waitpid, modules/wcpcpy:
8122         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
8123         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
8124         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
8125         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
8126         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
8127         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
8128         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
8129         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
8130         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
8131         * modules/write, modules/xconcat-filename, modules/xlist:
8132         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
8133         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
8134         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
8135         * modules/y0, modules/y1, modules/yn:
8136         Remove Bruno Haible as maintainer; if he's the sole maintainer,
8137         change the maintainer to 'all'.  Let's hope someone volunteers.
8139 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
8141         mktime: merge #if/#ifdef usage from glibc
8142         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
8143         as that works with both Glibc's and Gnulib's style.
8144         See thread starting at Siddhesh Poyarekar's bug report at:
8145         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
8147 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
8149         git-version-gen: improve option descriptions
8150         * build-aux/git-version-gen: Mention that --prefix and --fallback
8151         have a mandatory argument.
8153 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
8155         regex: fix memory leak in compiler
8156         Fix by Andreas Schwab in:
8157         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
8158         * lib/regcomp.c (parse_expression): Deallocate partially
8159         constructed tree before returning error.
8161         regex: merge patch from libc
8162         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
8163         Combine __USE_BSD and __USE_SVID into __USE_MISC.
8164         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
8166 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
8168         acl: port to gcc -Wredundant-decls
8169         From a request by Dmitry Antipov in:
8170         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
8171         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
8172         "#ifndef _GL_ACL_H".
8174 2014-06-11  Bruce Korb  <bkorb@gnu.org>
8175         Jim Meyering  <meyering@fb.com>
8177         parse-duration: eliminate 68-year duration limit
8178         * lib/parse-duration.c: Include "intprops.h".
8179         (TIME_MAX): Rename to MAX_DURATION and define to
8180         TYPE_MAXIMUM(time_t).
8181         * modules/parse-duration (Depends-on): Add intprops.
8182         Reported by Jonas 'Sortie' Termansen.
8184 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
8186         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
8187         * modules/pthread (Depends-on): Add 'extensions', as it defines
8188         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
8189         (configure.ac-early): New section.
8190         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
8191         it is no longer needed.
8193 2014-06-14  Pádraig Brady  <P@draigBrady.com>
8195         pthread: define thread-safe macros on some platforms
8196         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
8197         for thread-safe operation on some platforms.
8199 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8201         regex: don't be multithreaded if USE_UNLOCKED_IO.
8202         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
8203         * lib/regex_internal.h: Do not use multithreaded version if
8204         USE_UNLOCKED_IO is defined.  This is a hack, but it works
8205         around a porting bug with coreutils 8.22 on AIX 7.1.
8207 2014-06-11  Daiki Ueno  <ueno@gnu.org>
8209         gettext: update macros to version 0.19
8210         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
8211         depend on gl_EXTERN_INLINE and drop support for older Bison
8212         versions.
8214 2014-06-10  Pádraig Brady  <P@draigBrady.com>
8216         select,poll: fix console handle check on windows 8
8217         lib/poll.c (IsConsoleHandle): Change from testing the lower
8218         2 bits of the handle to the more expensive but accurate syscall.
8219         lib/select.c: Likewise.
8221 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
8223         select: fix waiting on anonymous pipes on MS-Windows
8224         * lib/select.c (rpl_select): Fall back to polling when select()
8225         indicates there is nothing to check, while due to the timeout not
8226         expiring, activity is indicated on one of the handles.
8227         Also clear the TIMEOUT argument if the timer does expire.
8229 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
8231         times: fix to return non constant value on MS-Windows
8232         * lib/times.c (times): Don't use the process creation time,
8233         rather clock() which on windows returns the number of
8234         clock ticks since the process started.
8236 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
8238         isatty: fix to work on windows 8
8239         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
8240         2 bits of the handle to the more expensive but accurate syscall.
8242 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8244         maint: fix typo in fdl.texi
8245         * doc/fdl.texi: Fix typo (missing '@').
8246         Somehow this was in fdl.texi but not fdl-1.3.texi.
8248 2014-06-06  Ben Walton  <bdwalton@gmail.com>
8250         mountlist: avoid hasmntopt const type warning on solaris
8251         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
8252         with char * instead of const char *.  Passing the constant string
8253         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
8254         to avoid the warning.
8256 2014-06-04  Eric Blake  <eblake@redhat.com>
8258         maintainer-makefile: delete obsolete code
8259         * top/maint.mk (build_aux): Drop old code, as threatened.
8261         maintainer-makefile: avoid spurious error messages
8262         * top/maint.mk (syntax-check): Guard definition and use of
8263         $(shell) by whether Makefile is present.
8265 2014-06-03  Ben Walton  <bdwalton@gmail.com>
8267         rename: avoid unused-but-set-variable compiler warning
8268         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
8269         it is possible that dst_exists may be set but not used.  Mark it with
8270         the unused attribute to avoid compiler warnings.
8272 2014-06-02  Ben Walton  <bdwalton@gmail.com>
8274         rename: mark a label as potentially unused
8275         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
8276         by marking the out label as potentially unused.
8277         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
8279 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
8281         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
8282         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
8284 2014-06-02  Ben Walton  <bdwalton@gmail.com>
8286         acl: apply pure attribute to two functions
8287         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
8288         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
8290 2014-06-01  Pádraig Brady  <P@draigBrady.com>
8292         gnulib-common.m4: add _GL_UNUSED_LABEL
8293         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
8294         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
8296 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8298         dup2, fcntl, fcntl-h: port to AIX 7.1
8299         This fixes some porting problems discovered when testing the latest
8300         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
8301         in grep but it could be important for other applications.
8302         * doc/posix-functions/dup2.texi:
8303         * doc/posix-functions/fcntl.texi:
8304         * doc/posix-headers/fcntl.texi:
8305         Document AIX bugs.
8306         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
8307         Define to 0 if outside 'int' range.
8308         * m4/dup2.m4 (gl_FUNC_DUP2):
8309         * m4/fcntl.m4 (gl_FUNC_FCNTL):
8310         Check for getdtablesize.  If it's available, test a value just
8311         outside its range instead of testing 1000000.  When cross-compiling,
8312         guess that AIX will fail this improved test.
8314 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
8316         printf, config.rpath: Port to FreeBSD 10.
8317         Problem reported by Tijl Coosemans in:
8318         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
8319         * build-aux/config.rpath (hardcode_libdir_flag_spec)
8320         (hardcode_direct): Simplify FreeBSD configuration.
8321         (library_names_spec): Don't mishandle FreeBSD 10+.
8322         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
8323         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
8324         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
8325         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
8326         Don't mishandle FreeBSD 10+ when cross-compiling.
8328         ftoastr: work around compiler bug in IBM xlc 12.1
8329         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
8330         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
8331         around a compiler bug in IBM xlc 12.1.0.0: it complains
8332         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
8333         _GL_FLT_PREC_BOUND.'
8335 2014-05-30  Kieran Colford  <colfordk@gmail.com>
8337         valgrind-tests: fixed misleading help message
8338         * m4/valgrind-tests.m4: The help message generated by configure
8339         implied that valgrind was disabled by default, which it wasn't.
8340         Adjusted the help message using s/enable/disable/ to clarify.
8342 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
8344         isfinite, isinf, isnan tests: fix for little-endian PowerPC
8345         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
8346         first double of a PowerPC "double double" pair.
8347         * tests/test-isinf.c (test_isinfl): Likewise.
8348         * tests/test-isnan.c (test_long_double): Likewise.
8349         * tests/test-isnanl.h (main): Likewise.
8350         * tests/test-signbit.c (test_signbitl): Likewise.
8352 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8354         exclude-tests: port to AIX 7.1
8355         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
8356         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
8357         the regex code uses locks.
8359 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
8361         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
8362         Without this fix, Emacs would sometimes call sigprocmask instead
8363         of pthread_sigmask, which is a no-no in multithreaded applications.
8364         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
8365         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8366         Suppress check for pthread_sigmask working without -lpthread if
8367         the application always links with -lpthread.  Do not link with
8368         $LIBMULTITHREAD if gl_THREADLIB is not defined.
8369         * m4/timer_time.m4 (gl_TIMER_TIME):
8370         Require gl_THREADLIB only if it is defined.  Do not append
8371         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
8373 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
8375         gnulib-tool: wget translations using --no-verbose rather than --quiet
8376         This allows the user to see error messages if any (--quiet hides them)
8377         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
8379 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
8381         gnulib-tool: adjust translation wget to avoid a https redirection
8382         Context: http://translationproject.org/latest/gnulib redirects to
8383            https://translationproject.org/latest/gnulib/
8384         Rationale: if the user falls back to wget, she doesn't have rsync and
8385         is probably in a minimal build environment, where packages such as
8386         'ca-certificates' are missing as well, resulting in a failed (and
8387         difficult to detect since ignored) translation initial fetch.
8388         Consequently let's avoid https if possible, and add the missing
8389         trailing slash.  This also avoids an unnecessary 302 redirection.
8390         * gnulib-tool: Add trailing slash to gnulib URL.
8392 2014-05-22  Pádraig Brady  <P@draigBrady.com>
8394         getlogin_r-tests: check return value rather than errno
8395         * tests/test-getlogin_r.c (main): As per POSIX we should be
8396         verifying the return value from getlogin_r() rather than errno.
8398 2014-05-22  Pádraig Brady  <P@draigBrady.com>
8400         getlogin_r-tests: fix various issues in recent change
8401         * tests/test-getlogin_r.c: Include required headers that were
8402         missed in recent commit eec20b4e.
8403         Also consistently check the errno rather than the return value from
8404         getlogin_r as POSIX only specifies that non zero is returned on error.
8405         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
8407 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8409         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
8410         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
8411         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
8412         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
8413         * lib/spawn-pipe.c:
8414         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
8415         and then 'int open64(const char *, int, ...);', which means the
8416         declaration for 'open' gets lost if we later '#undef open'.
8417         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
8418         where the compilation reported the non-fatal error "In function
8419         'openat_proc_name' ... warning: implicit declaration of function
8420         'open'".  In this case the error is relatively harmless, but in
8421         other cases it might not be so minor.
8423 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8425         xalloc: don't potentially generate invalid code for xmemdup calls
8426         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
8427         this function can initialize the newly-allocated storage with new
8428         pointers, which means this function is not malloc-like.  See:
8429         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
8431 2014-05-19  Pádraig Brady  <P@draigBrady.com>
8433         getlogin_r-tests: avoid false failure under sudo/ssh etc.
8434         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
8435         changes from commit 97249cf29 to not depend on environment variables.
8437 2014-05-18  Pádraig Brady  <P@draigBrady.com>
8439         getlogin-tests: avoid false failure under cron
8440         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
8441         since that's not what's under test.  Centos 6 was seen to return
8442         EINVAL for ttyname() when run from cron.
8444 2014-05-16  Jim Meyering  <meyering@fb.com>
8446         mbrtowc.m4: fix a comment typo
8447         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
8448         emitted documentation string.
8450 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8452         mbrlen, mbrtowc: fix bug with empty input
8453         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
8454         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
8455         so this is mainly for documentation.
8456         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
8457         (gl_FUNC_MBRTOWC): Use it.
8458         * tests/test-mbrtowc.c (main): Test for the bug.
8460 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
8462         doc: document mbrtowc and mbrlen problem with empty input
8463         * doc/posix-functions/mbrlen.texi (mbrlen):
8464         * doc/posix-functions/mbrtowc.texi (mbrtowc):
8465         Document portability problem when the input string is empty.  See:
8466         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
8468         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
8469         Problem reported by Eli Zaretskii in:
8470         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
8471         * doc/posix-functions/execl.texi (execl):
8472         * doc/posix-functions/execle.texi (execle):
8473         * doc/posix-functions/execlp.texi (execlp):
8474         * doc/posix-functions/execv.texi (execv):
8475         * doc/posix-functions/execve.texi (execve):
8476         * doc/posix-functions/execvp.texi (execvp):
8477         Mention spawn+exit problem on non-Cygwin Windows platforms.
8479 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
8481         getlogin-tests: avoid false failure under sudo/ssh etc.
8482         * modules/getlogin-tests (configure.ac): Check for ttyname().
8483         * tests/test-getlogin.c (main): Don't depend on environment variables
8484         to correlate with getlogin(), since sudo and ssh etc. can tamper
8485         with the LOGNAME and USER env vars.  Instead lookup the name from
8486         the uid associated with the stdin tty.
8488 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8490         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
8491         These were found when building the latest grep snapshot on IRIX 6.5.
8492         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
8493         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
8494         never used later.
8495         * lib/quotearg.c (quoting_options_from_style):
8496         * lib/xstrtol.c (__xstrtol):
8497         Use enum instead of 0, to pacify IRIX 6.5 cc.
8499 2014-04-18  Pádraig Brady  <P@draigBrady.com>
8501         gitlog-to-changelog: revert inclusion of git-log-fix file
8502         * build-aux/git-log-fix: Delete dummy file.
8503         * modules/gitlog-to-changelog: Don't reference (overwrite)
8504         the project specific git-log-fix file.
8506 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
8508         maint.mk: Relax the copyright check to cater for non FSF projects
8509         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
8510         to not require the "Free" suffix after the copyright years.
8512 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
8514         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
8515         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
8516         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
8517         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
8518         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
8520 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
8522         exclude: port to strict C99
8523         Strict C does not allow converting a function pointer to void *
8524         and vice versa.  Pass a pointer to a function pointer instead.
8525         * lib/exclude.c (add_exclude_file):
8526         Pass the address of the function pointer.
8527         (call_addfn): And deference the address here, to match.
8529 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
8531         regex: do not depend on malloc-gnu
8532         * modules/regex (Depends-on): Remove malloc-gnu.
8533         It's no longer needed, because of the 2012-12-29 patch
8534         "regex: port to hosts where malloc (0) == NULL".
8535         Reported by Nathan Kennedy in:
8536         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
8538 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
8540         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
8541         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
8542         * doc/posix-functions/expl.texi: Mention the workaround.
8544 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
8546         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
8547         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
8548         size to be zero even when the pointer is nonnull.  This
8549         accommodates the use case where P is malloc (0) and *PN is 0 on a
8550         host where malloc (0) yields nonnull.
8552 2014-04-09  Eric Blake  <eblake@redhat.com>
8554         fts: avoid unnecessary strlen calls
8555         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
8557 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8559         fts: avoid unnecessary strlen calls
8560         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
8561         when that can be faster than strlen.
8563 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
8565         fts: avoid unnecessary strlen calls
8566         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
8567         (fts_build): Store the length of the dp->d_name entry in a local variable
8568         instead of calling strlen() several times via the above, removed macro.
8569         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
8570         run by ~4%, yet this reduces the execution time by about a third if run
8571         via "ltrace -c rm -rf some-dir".
8573 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8575         obstack: Remove ancient NeXTSTEP gcc support conditional
8576         This change will ease merging with glibc.  The "#if ... __NEXT__"
8577         causes a warning with -Wundef which glibc now enables by default.
8578         Problem reported by Will Newton in
8579         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
8580         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
8581         so go with that.
8582         * lib/obstack.h (__extension__):
8584 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8586         obstack: merge with glibc changes
8587         * lib/obstack.c, lib/obstack.h: Merge from glibc.
8588         This is mostly indenting and commentary changes.
8589         Instances of 'register' have been removed.
8591 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
8593         strftime: wrap macros in "do {...} while(0)"
8594         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
8595         this macro in "do {...} while(0)" to prevent false use as a
8596         single statement, e.g., in an un-braced "{}" else-block.
8597         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
8598         (strftime_case_): Remove 'else' after 'goto' - which was the
8599         only non-fatal, un-braced use of one of the above macros.
8600         Spotted by coverity (NESTING_INDENT_MISMATCH).
8602 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
8604         modechange: avoid memory leaks for invalid octal modes
8605         * lib/modechange.c (mode_compile): During the parsing of
8606         notations like +40, free the 'mc' buffer for invalid mode
8607         strings like +17777 (greater than the maximum octal mode),
8608         =18 (bad octal mode characters) or u=1 ('affected' with
8609         octal modes).
8610         Reproducer, e.g.:
8611             $ valgrind --leak-check=full chmod +17777 file
8612         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
8613         add notations +40, 00440, etc.".
8614         Spotted by coverity (RESOURCE_LEAK).
8616 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8618         gitlog-to-changelog: include a dummy git-log-fix file
8619         Problem reported by Nathan Stratton Treadway in:
8620         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
8621         * build-aux/git-log-fix: New file.
8623 2014-03-13  Jim Meyering  <meyering@fb.com>
8625         gitlog-to-changelog: also include the file, git-log-fix
8626         * modules/gitlog-to-changelog (Files): Add git-log-fix.
8627         Reported by Assaf Gordon.
8629 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
8631         regex: port to OS X 10.8.5 en_US.UTF-8 locale
8632         This fixes a bug when ignoring case and when comparing the
8633         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
8634         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
8635         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
8636         titlecase letter is neither lowercase nor uppercase, but
8637         uppercasing the titlecase letter (via towupper) yields the
8638         uppercase letter, so the two letters should match when ignoring case.
8639         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
8640         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
8641         Don't test whether a character is lowercase before uppercasing it.
8643 2014-03-04  Kevin Cernekee <cernekee@gmail.com>
8645         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
8646         This is basically one of the options Bruno Haible proposed in:
8647         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
8648         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
8649         * lib/stdint.in.h: Use it.
8650         * modules/stdint (Depends-on): Add sys_types.
8652 2014-02-26  Pádraig Brady <P@draigBrady.com>
8654         parse-datetime: fix crash or infloop in TZ="" parsing
8655         * lib/parse-datetime.y (parse_datetime): Break out of the
8656         TZ="" parsing loop once the second significant " is found.
8657         Also skip over any subsequent whitespace to be consistent
8658         with the non TZ= case.
8659         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
8661 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8663         savedir: new symbol for fast-read version
8664         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
8665         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
8666         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
8667         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
8669 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
8671         unistd: port readlink to Mac OS X 10.3.9
8672         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
8673         around self-include problem in Mac OS X 10.3.9 when combined with
8674         readlink module.  Problem reported by Klaus Zietler in
8675         <http://bugs.gnu.org/16825>.
8677 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8679         diffseq: remove TOO_EXPENSIVE heuristic
8680         Problem with diffutils reported by Vincent Lefevre in
8681         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
8682         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
8683         Although appropriate for circa-1993 hardware, these days the heuristic
8684         seems to be more trouble than it's worth.
8685         * lib/diffseq.h: Modernize citations.
8686         (struct context): Remove member too_expensive.
8687         All uses changed.
8688         (struct partition): Remove members lo_minimal, hi_minimal.
8689         All uses changed.
8690         (diag, compareseq): Remove arg find_minimal.  All uses changed.
8691         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
8692         1993 to make 'diff' run faster (but not as well) on large inputs.
8693         These days, computers are fast enough that it's typically better
8694         to run slower but more accurately.
8695         * lib/fstrcmp.c: Remove duplicate comment.
8696         * lib/fstrcmp.c (strcmp_bounded):
8697         * lib/git-merge-changelog.c (compute_differences):
8698         Adjust to diffseq.h changes.
8699         * NEWS: Document the change.
8701         savedir: simplify by using stpcpy
8702         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
8703         (streamsavedir): Use stpcpy instead.
8704         * modules/savedir (Depends-on): Add stpcpy.
8706 2014-02-21  Pádraig Brady <P@draigBrady.com>
8708         spawn: fix link error on uclibc
8709         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
8710         to incorporate -lrt if needed (on uclibc for example).
8711         * modules/posix_spawn: Reference the substituted LIB.
8713 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
8714         timer: fix uClibc detection of threading
8715         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
8716         enabled in uClibc.
8718 2014-02-21  Eric Blake  <eblake@redhat.com>
8720         maintainer-makefiles: provide AC_PROG_SED for older autoconf
8721         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
8723 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8725         exclude: add support for posix regexps
8727         This commit adds support for POSIX extended regular expressions
8728         and fixes a long-standing memory leak (pattern buffer was never
8729         freed).  It also implements a new interface function to read
8730         exclude patterns from a FILE, which passes an additional parameter
8731         to its callback function, thereby allowing to preserve its state
8732         between invocations.
8734         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
8735         (pattern_buffer): New struct.
8736         (exclude): New member patbuf.
8737         (exclude_add_pattern_buffer): New function.
8738         (free_exclude_segment): Free regexps.
8739         (free_exclude): Free allocated pattern buffers.
8740         (exclude_patopts): New function.
8741         (file_pattern_matches): Use exclude_patopts.
8742         (add_exclude): support regexps.
8743         (add_exclude_fp): New function.
8744         (add_exclude_file): Rewrite using add_exclude_fp.
8745         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
8746         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
8747         (add_exclude_fp)
8748         (add_exclude_file): Rewrite using add_exclude_fp.
8749         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
8750         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
8751         (add_exclude_fp)
8752         (exclude_add_pattern_buffer): New prototypes.
8753         * modules/exclude: Depends on regex and filename.
8755 2014-02-20  Eric Blake  <eblake@redhat.com>
8757         maintainer-makefiles: use $(SED) for syntax check
8758         * modules/maintainer-makefile (configure.ac): Check for sane sed.
8759         * top/maint.mk: Change sed to $(SED).
8761 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
8762             Paul Eggert  <eggert@cs.ucla.edu>
8764         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
8765         Patch based on an idea by Dick Streefland in
8766         <https://savannah.gnu.org/patch/?7892>.
8767         * NEWS: Document this.
8768         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
8769         (direntry_t, comparison_function): New types.
8770         (direntry_cmp_name): New function.
8771         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
8772         (streamsavedir, savedir): New arg OPTION.
8773         (streamsavedir): Simplify memory allocation.
8774         (fdsavedir): Remove.
8775         * lib/savedir.h (enum savedir_option): New type.
8776         (streamsavedir, savedir): New arg OPTION.
8777         (fdsavedir): Remove.
8779 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8781         file-type: add support for doors and other less-common file types
8782         Problem with S_ISDOOR reported by Rich Burridge.
8783         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
8784         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
8785         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
8787 2014-01-23  Eric Blake  <eblake@redhat.com>
8789         pthread: work around winpthread header pollution on mingw
8790         * lib/time.in.h: Move pthread workarounds...
8791         * lib/pthread.in.h: ...here.
8792         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
8793         detect macro pollution on mingw.
8794         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
8796 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
8798         qacl: check for fchmod
8799         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
8800         and qset-acl.c both use HAVE_FCHMOD.
8802 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8804         fdopen-tests: port to Tru64
8805         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
8806         descriptor that is not open, as POSIX doesn't specify the
8807         resulting behavior and the test does not work on Tru64.
8808         Problem reported by Steven M. Schweda in:
8809         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
8811         stdalign: port to HP-UX compilers
8812         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
8813         if __HP_cc or __HP_aCC are nonzero.
8815 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
8817         strtoimax: port to platforms lacking 'long long'
8818         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
8819         check whether strtoll is declared, which causes the C file to
8820         wrongly report an error.  Problem reported by Steven M. Schweda in:
8821         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
8822         * lib/strtoimax.c (strtoull):
8823         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
8824         (strtoll): Declare only if HAVE_LONG_LONG_INT.
8826 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
8828         relocatable-perl: fix texi syntax
8829         * doc/relocatable-maint.texi: Escape braces.
8831 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
8833         relocatable-perl: like relocatable-script, but for Perl scripts
8834         * build-aux/relocatable.pl.in: Add.
8835         * doc/relocatable-maint.texi: Add documentation.
8836         * modules/relocatable-perl: Add.
8838 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
8840         tests: fix export bug in previous patch
8841         Problem reported by Jim Meyering.
8842         * tests/init.sh (re_shell): New var, which is exported instead of
8843         re_shell_.
8845         tests: simplify porting to Solaris 10 /bin/sh
8846         Some test cases in 'grep' need a shell that groks '$(';
8847         export re_shell_ for their benefit.  Problem reported for 'grep'
8848         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
8849         * tests/init.sh (re_shell_): Export if it's used.
8851 2014-01-06  Eric Blake  <eblake@redhat.com>
8853         md5, sha1, sha256, sha512: support older autoconf
8854         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
8855         for autoconf < 2.63b.
8857         include_next: port to autoconf 2.63
8858         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
8860 2014-01-04  Jim Meyering  <meyering@fb.com>
8862         maint: add a gnulib-local rule to keep non-ascii out of .texi files
8863         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
8864         so that "make sc_maint" will ding anyone who puts non-ascii
8865         in any of gnulib's .texi files.
8867 2014-01-03  Jim Meyering  <meyering@fb.com>
8869         freadable, fwritable, fwriting: declare with the "pure" attribute
8870         * lib/freadable.h (freadable): Declare with the "pure" attribute.
8871         * lib/fwritable.h (fwritable): Likewise.
8872         * lib/fwriting.h (fwriting): Likewise.
8873         Suggested by Bruno Haible.
8875         maint.mk: adapt openat.h-include-without-use test
8876         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
8877         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
8878         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
8879         With this change, running "make sc_maint" in gnulib's top-level
8880         directory now passes for me.
8882 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8884         doc: use ASCII in .texi files where UTF-8 isn't needed
8885         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
8886         * doc/posix-functions/setkey.texi, doc/regex.texi:
8887         Use ASCII input, not UTF-8.
8889 2014-01-02  Jim Meyering  <meyering@fb.com>
8891         freading: declare with the "pure" attribute
8892         * lib/freading.h (freading): Declare with the "pure" attribute.
8894         manywarnings: remove -Wmudflap
8895         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
8896         it is no longer supported in gcc-4.9-to-be.
8898 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8900         relocatable-script: remove unused code
8901         Problem reported by Reuben Thomas in:
8902         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
8903         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
8905 2014-01-01  Jim Meyering  <meyering@fb.com>
8907         maint: fix public-submodule-commit to work with newer git
8908         * top/maint.mk (public-submodule-commit): Remove excess quoting.
8909         We were over-quoting the test arguments, and somewhere prior to
8910         version 1.8.5.2.229, git stopped removing those excess quotes,
8911         which made the test fail, since the unexpanded strings would
8912         always differ; using GIT_TRACE=1 confirmed that the git merge-base
8913         command wasn't even being run.
8915 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8917         doc: update main copyright year
8918         * doc/gnulib.texi: Update copyright date.
8920 2014-01-01  Eric Blake  <eblake@redhat.com>
8922         version-etc: new year
8923         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
8924         * all files: run 'make update-copyright'
8926 2013-12-24  Eric Blake  <eblake@redhat.com>
8928         passfd: give nicer error for recvfd at eof
8929         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
8930         * tests/test-passfd.c (main): Enhance test to cover this.
8932 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8934         gettimeofday: port recent C++ fix to Emacs
8935         Without this further patch, Emacs won't build due to
8936         the portcheck failing.  Also, this simplifies the patch a bit.
8937         * lib/time.in.h (localtime, gmtime): Don't replace unless
8938         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
8939         * lib/time.in.h (localtime, gmtime):
8940         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
8941         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
8942         * modules/time (time.h):
8943         Don't worry about about the possibility of localtime and gmtime
8944         being absent; they're present in all C libraries we know about.
8945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
8946         Don't assume sys_time is present and has been initialized.
8947         Instead, use a hack that should work even if it hasn't been.
8948         Don't use a portcheck for gmtime or localtime; this supports
8949         the hack.
8950         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
8952 2013-12-17  John W. Eaton  <jwe@gnu.org>
8954         gettimeofday: fix C++ crosscompilation
8956         Never replace gmtime and localtime by macros when compiling with
8957         C++, this prevents <ctime> from being included.
8959         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
8960         define gmtime and localtime as preprocessor macros.  Instead
8961         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
8962         REPLACE_LOCALTIME substitutions.
8963         * lib/time.in.h: Declare gmtime and localtime when needed.
8964         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
8965         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
8966         * modules/time: Depend on gettimeofday, and substitute the above
8967         variables in time.h.
8969 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8971         qacl: port to Windows better
8972         See Eli Zaretskii in
8973         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
8974         * lib/file-has-acl.c (acl_access_nontrivial):
8975         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
8976         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
8978 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
8980         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
8981         * lib/gl_openssl.h: Cast void pointers to a specific type.
8983 2013-12-07  Pádraig Brady <P@draigBrady.com>
8985         open-tests: fix build failure with -Werror=old-style-declaration
8986         * tests/test-open.h: Reorder the inline to avoid the issue.
8988 2013-12-07  Pádraig Brady <P@draigBrady.com>
8990         md5, sha1, sha256, sha512: fix link error with partial libcrypto
8991         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
8992         init time, so that if early checks find crypto routines,
8993         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
8994         avoiding link failures.
8996 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8998         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
8999         This provides a new way to specify the default for
9000         gl_CRYPTO_CHECK, one that is reflected in the --help message.
9001         Emacs uses this, as well as the old way.
9002         This attempts to implement a suggestion by Pádraig Brady in
9003         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
9004         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
9005         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
9007         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
9008         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
9009         Add support for a new option, --with-openssl=auto, which causes
9010         the library to be used if available and silently ignored if not.
9011         Add support to allow allow configure.ac to specify its own
9012         default, by setting with_openssl_default before invoking gl_INIT.
9014 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
9016         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
9017         Problem reported by Daiki Ueno in:
9018         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
9019         * tests/test-open.h (__always_inline):
9020         New macro, if not already defined.
9021         (test_open): Use it.
9023 2013-12-04  Eric Blake  <eblake@redhat.com>
9025         include_next: minimize code duplication
9026         * modules/include_next (Depends-on): Add absolute-header.
9027         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
9028         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
9030 2013-12-04  Pádraig Brady <P@draigBrady.com>
9032         getcwd: fix compile error in configure check
9033         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
9035 2013-12-04  Pádraig Brady <P@draigBrady.com>
9037         regex: suppress core dumps from detection code
9038         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
9039         to suppress core dumps that may well occur on glibc systems.
9040         These core dumps might not be cleaned up automatically, or could
9041         trigger some system core dump handling logic.
9043 2013-12-03  Pádraig Brady <P@draigBrady.com>
9045         md5, sha1, sha256, sha512: support mandating use of openssl
9046         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
9047         description, to list the now 3 separate options.  also don't
9048         mention the default=no, since this is implicit given the option
9049         is described as --with-openssl rather than --without-openssl.
9050         If projects change the default they're free to document that.
9051         with --with-openssl[=yes] we now error out when the specified
9052         hash algorithm is not available in libcrypto.
9054 2013-12-03  Ivailo  <xakepa10@gmail.com>
9056         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
9057         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
9058         -Wformat-nonliteral checks, as these edge cases are part of the test.
9060 2013-12-03  Eric Blake  <eblake@redhat.com>
9062         regex: avoid glibc deadlock during configure
9063         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
9064         glibc bug 15078 in turn triggers bug 16159.
9065         Reported by Michal Privoznik.
9067 2013-12-02  Pádraig Brady <P@draigBrady.com>
9069         md5, sha1, sha256, sha512: use openssl routines if available.
9070         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
9071         routines will be used if available, requiring apps to link @LIB_CRYPTO@
9072         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
9073         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
9074         in the standard system location.
9075         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
9076         * m4/sha256.m4: Likewise with SHA256.
9077         * m4/sha512.m4: Likewise with SHA512.
9078         * m4/md5.m4: Likewise with MD5.
9079         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
9080         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
9081         * lib/sha256.h: Likewise with SHA256.
9082         * lib/sha512.h: Likewise with SHA512.
9083         * lib/md5.h: Likewise with MD5.
9084         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
9085         * lib/sha256.c: Likewise with SHA256.
9086         * lib/sha512.c: Likewise with SHA512.
9087         * lib/md5.c: Likewise with MD5.
9088         * modules/crypto/sha1 (Link:): Add the new optional lib.
9089         (Depends-on:): Add dependency on extern-inline.
9090         * modules/crypto/sha256: Likewise.
9091         * modules/crypto/sha512: Likewise.
9092         * modules/crypto/md5: Likewise.
9093         * modules/crypto/sha1-tests: Reference the lib here too.
9094         * modules/crypto/md5-tests: Likewise.
9095         * modules/crypto/gc-des-tests: Likewise.
9096         * modules/crypto/gc-hmac-md5-tests: Likewise.
9097         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9098         * modules/crypto/gc-hmac-sha256-tests: Likewise.
9099         * modules/crypto/gc-hmac-sha512-tests: Likewise.
9100         * modules/crypto/gc-md5-tests: Likewise.
9101         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9102         * modules/crypto/gc-sha1-tests: Likewise.
9103         * modules/crypto/gc-tests: Likewise.
9104         * modules/crypto/hmac-md5-tests: Likewise.
9105         * modules/crypto/hmac-sha1-tests: Likewise.
9106         * modules/crypto/hmac-sha256-tests: Likewise.
9107         * modules/crypto/hmac-sha512-tests: Likewise.
9109 2013-11-29  RV1971  <rv1971@web.de>
9111         base64: (trivial) fix compilation regression on some compilers
9112         * lib/base64.c: Don't return the void function,
9113         instead split to a separate return statement.
9115 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9117         ignore-value: revert previous code change
9118         * lib/ignore-value.h (ignore_value): Use __extension__ and
9119         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
9120         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
9121         Change the comment to try to explain this better.
9123 2013-11-27  Pádraig Brady <P@draigBrady.com>
9125         selinux-h: improve stub types and add more stub functions
9127         * lib/se-selinux.in.h: Change security_context_t to a typedef
9128         rather than a define, as it's a pointer type and so is better
9129         as a typedef to avoid issues declaring multiple variables
9130         with the comma operator.  Also add stub for string_to_security_class().
9131         * lib/se-context.in.h: Add stub functions for
9132         context_{type,range,role,user}_get().
9134 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
9136         ignore-value: prefer GCC version back through 2.0
9137         The code didn't match the comments, so I did a bit of software
9138         archaeology.  GCC 2.0 seems to support __extension__ and
9139         __typeof__, so fix both code and comments to use 2.0.
9140         * lib/ignore-value.h (ignore_value): Use __extension__ and
9141         __typeof__ for GCC 2.0 through 3.3, too.
9143 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
9145         pty: Activate the signature wrapper of forkpty.
9146         The intended preprocessor macro HAVE_FORKPTY is
9147         never defined, yet `lib/forkpty.c' depends on it.
9149         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
9150         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
9151         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
9153 2013-11-18  Jim Meyering  <meyering@fb.com>
9154         and Paul Eggert  <eggert@cs.ucla.edu>
9156         quotearg: don't attempt to store 1 << 31 into an "int"
9157         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
9158         gcc's new -fsanitize=undefined and running its tests triggered some
9159         new test failures due to undefined behavior, all with this diagnostic:
9160           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
9161             cannot be represented in type int
9162         Rather than shifting "1" left to form a mask, shift the bits right and
9163         simply use "1" as the mask.
9165 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
9167         error: depend on stdio
9168         Problem reported by Nikos Mavrogiannopoulos in
9169         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
9170         * modules/error (Depends-on): Add stdio.
9172 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
9174         * doc/relocatable-maint.texi (Supporting Relocation): Improve
9175         wording.
9176         Reported by Reuben Thomas <rrt@sc3d.org>.
9178 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9180         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
9181         New function and macro, to work around _DARWIN_C_SOURCE problem.
9182         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
9184 2013-11-11  Pádraig Brady <P@draigBrady.com>
9186         base64: provide a fast path for encoding well sized buffers
9187         Avoid conditionals in the base64 encoding loop,
9188         which was seen to give 60% better throughput.
9189         * lib/base64.c (base64_encode_fast): A new function to be called
9190         when we don't want to NUL terminate, and we have enough space
9191         in the output to encode the given input.
9192         (base64_encode): Call the _fast() version when appropriate.
9193         Also remove a redundant mask with 0x3F on the first encoded byte.
9195 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9197         extern-inline: port better to OS X 10.9
9198         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
9199         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
9200         OS X 10.9, except for g++ where the bug is still present.
9201         See <http://trac.macports.org/ticket/41033>.
9203 2013-11-08  Eric Blake  <eblake@redhat.com>
9205         fpending: fix regression on DragonFly BSD
9206         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
9207         * lib/fpending.h (__fpending): Don't declare twice.
9208         Reported by GW in
9209         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
9211 2013-11-05  Jim Meyering  <meyering@fb.com>
9213         hash: relax license to LGPLv2+, for libguestfs
9214         * modules/hash (License): Change from GPL to LGPLv2+.
9216 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
9218         intprops: port to Oracle Studio c99
9219         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
9220         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
9222 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9224         obstack: pacify HP C
9225         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
9226         warning "conversion from pointer to smaller integer" from HP
9227         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
9228         C89 or later nowadays, so cast to void instead of int.  Privately
9229         reported by H.Merijn Brand.  Also, change header to match glibc's,
9230         to make checking against glibc easier.
9232 2013-10-29  Jim Meyering  <meyering@fb.com>
9234         maint.mk: prefer gpgv2 over gpgv
9235         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
9236         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
9237         Reported by Gary Vaughan.
9239 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9241         isnan: port to VAX
9242         Reported by John Klos for NetBSD-5/VAX in
9243         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
9244         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
9245         (FUNC): Use it.
9247 2013-10-28  Jim Meyering  <meyering@fb.com>
9249         gnulib-tool: protect against CDPATH
9250         * gnulib-tool: Many "cd" built-in functions print a directory name
9251         to stdout when CDPATH is set, e.g.,
9252           $ bash -c 'CDPATH=/; cd tmp'
9253           /tmp
9254         Unset it, when possible.  Prompted by a comment from Bruce Korb.
9256         maint.mk: restore functionality removed by recent change...
9257         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
9258         the context of a shallow-cloned gnulib repository: "git describe"
9259         would fail in such a directory.  However, that change made it so
9260         the reported gnulib revision no longer includes the version number
9261         or a commit count, even when run from a full clone.
9262         * top/maint.mk (gnulib-version): Use the full "git describe"
9263         output when possible, e.g., the form above, rather than the
9264         abbreviated, no-tag, no-commit-count string, and fall back to
9265         using a 10-byte hash, rather than the default minimal-length
9266         hash prefix, since while the minimal-length one may be fine today,
9267         it is likely not to be unique for very long.
9269 2013-10-26  Jim Meyering  <meyering@fb.com>
9271         maint.mk: fix "release" target to build _version
9272         This fixes a bug in README-release whereby following the outlined
9273         steps, one would publish a tarball whose programs would report
9274         --version output not consistent with the package version number.
9275         This bug caused grep-2.15 to produce a grep program whose
9276         --version option made it print 2.14.56-1e3d rather than 2.15.
9277         * top/maint.mk (release): Making this target build "_version"
9278         ensures that the new version number is reflected in configure.
9280 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
9282         install-reloc: Support multi-binary installation.
9283         * build-aux/install-reloc: Support installing multiple programs in
9284         one invocation, as done by Automake starting with commit
9285         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
9286         Haible <bruno@clisp.org>, archived at
9287         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
9288         Reported by Sylvain <beuc@gnu.org>.
9290 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
9292         selinux-h: Really build without selinux when library is missing.
9293         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
9294         continue without selinux, as already told in the warning message.
9296 2013-10-21  Jim Meyering  <meyering@fb.com>
9298         regex: also remove dependency on HAVE_WCSCOLL
9299         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
9301 2013-10-21  Reuben Thomas <rrt@sc3d.org>
9303         xfreopen: Fix typo. s/frepoen/freopen/
9304         * lib/xfreopen.c: Fix description.
9305         * modules/xfreopen: Likewise.
9307 2013-10-21  Jim Meyering  <meyering@fb.com>
9309         regex: don't depend on wcscoll
9310         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
9311         It is no longer used.
9313 2013-10-20  Jim Meyering  <meyering@fb.com>
9315         error: add the printf attribute to a static function
9316         * lib/error.c (error_tail): Add the printf attribute, to placate
9317         gcc's -Werror=suggest-attribute=format option.
9319 2013-09-30  Jim Meyering  <meyering@fb.com>
9321         fpending, obstack, strerror-override: use pure+const function attrs
9322         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
9323         * lib/obstack.c (_obstack_allocated_p): Likewise.
9324         * lib/obstack.h (_obstack_memory_used): Likewise.
9325         (_obstack_memory_used): Likewise.
9326         * lib/strerror-override.h (strerror_override): Declare with
9327         the "const" attribute.
9329 2013-10-18  Eric Blake  <eblake@redhat.com>
9331         extern-inline: make safe for -Wundef usage
9332         Reported by Vladimir 'phcoder' Serbinenko in
9333         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
9334         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
9336 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9338         mkfifo-tests, etc.: allow HP-UX 11.11 bug
9339         Problem reported by Daniel Richard G. in
9340         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
9341         * doc/posix-functions/mkfifo.texi (mkfifo):
9342         * doc/posix-functions/mkfifoat.texi (mkfifoat):
9343         * doc/posix-functions/mknod.texi (mknod):
9344         * doc/posix-functions/mknodat.texi (mknodat):
9345         Document the HP-UX 11.11 bug.
9346         * tests/test-mkfifo.h (test_mkfifo):
9347         Allow the HP-UX 11.11 bug.
9349 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9351         acl: allow cross-compilation to Gentoo
9352         Problem reported by Gabriel Marcano in
9353         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
9354         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
9355         test only whether it links.
9357 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9359         mgetgroups: remove dependency on realloc-gnu
9360         The dependency violates the comment in realloc-gnu, which
9361         says that tests can't depend on realloc-gnu; some tests depend
9362         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
9363         Problem reported by Daniel Richard G. in
9364         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
9365         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
9366         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
9367         not realloc-gnu.
9369 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9371         regex-tests: port to HP-UX 11.11
9372         Problem reported by Daniel Richard G. in
9373         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
9374         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
9376 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9378         verify: document some 'assume' pitfalls
9379         * doc/verify.texi (Compile-time Assertions):
9380         Mention that 'assume (E)' can sometimes slow things down.
9381         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
9383 2013-10-10  Eric Blake  <eblake@redhat.com>
9385         strtoumax: fix typo in previous commit.
9386         * modules/strtoumax (Depends-on): Fix typo.
9387         * modules/strtoimax (Depends-on): Likewise.
9389 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9391         strtoumax: port to Solaris 8
9392         This problem was introduced in the recent HP-UX patch.
9393         Reported by Tom G. Christensen in
9394         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
9395         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
9396         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
9398 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9400         strtoimax, strtoumax: port to HP-UX 11.11
9401         Problem reported by Daniel Richard G. in
9402         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
9403         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
9404         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
9405         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
9406         REPLACE_STRTOUMAX.
9407         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
9408         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
9409         Replace the function if defined as a macro but not as a function.
9410         * modules/inttypes-incomplete (inttypes.h): Substitute
9411         REPLACE_STRTOUMAX.
9412         * modules/strtoumax (configure.ac): Replace strtoumax if
9413         REPLACE_STRTOUMAX.
9415 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9417         strtoimax: port to HP-UX 11.11
9418         Problem reported by Daniel Richard G.
9419         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
9420         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
9421         they might clash with inttypes.h.
9423 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9425         New module 'count-trailing-zeros'.
9426         * MODULES.html.sh: Mention it.
9427         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
9428         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
9429         * modules/count-trailing-zeros-tests:
9430         * tests/test-count-trailing-zeros.c:
9431         New files.
9433         count-leading-zeros: port to MSC; support types wider than 64 bits
9434         The ideas behind the MSC port are stolen from Emacs.
9435         * lib/count-leading-zeros.h:
9436         Don't include verify.h: it's no longer needed, as types wider than
9437         64 bits are now supported.
9438         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
9439         performance with MSC.  All uses changed.  Do not assume that TYPE
9440         has at most 64 bits.
9441         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
9442         All uses changed.  Fold the subtraction from 31 into the table.
9444         count-one-bits: port to MSC; support types wider than 64 bits
9445         The ideas behind the MSC port are stolen from Emacs.
9446         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
9447         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
9448         Don't include verify.h: it's no longer needed, as types wider than
9449         64 bits are now supported.
9450         (COUNT_ONE_BITS_GENERIC): New macro.
9451         (popcount_supported) [_MSC_VER]: New inline function.
9452         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
9453         performance with MSC.  All uses changed.  Do not assume that TYPE
9454         has at most 64 bits.
9455         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
9457 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
9459         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
9460         * lib/mountlist.c (read_file_system_list): fix leak of directory
9461         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
9463 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9465         tests: improve diagnostic when an assertion fails
9466         * tests/macros.h (ASSERT): Report the assertion that failed.
9468 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9470         verify: new macro 'assume'
9471         This is taken from Emacs, and should be generally useful.
9472         * doc/verify.texi (assume): Document it.
9473         * lib/verify.h (assume): New macro.
9474         (__has_builtin): Expand to 0 if not defined.
9476 2013-09-26  Eric Blake  <eblake@redhat.com>
9478         dup2, dup3: work around another cygwin crasher
9479         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
9480         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
9481         * tests/test-dup2.c (main): Likewise.
9482         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
9483         * lib/dup3.c (dup3): Likewise.
9484         * doc/posix-functions/dup2.texi (dup2): Document it.
9485         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9487         getdtablesize: work around cygwin issue
9488         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
9489         * modules/getdtablesize (configure.ac): Build replacement.
9490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
9491         * modules/unistd (Makefile.am): Expose the witness.
9492         * lib/unistd.in.h (getdtablesize): Declare replacement.
9493         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
9494         * tests/test-getdtablesize.c (main): Test it.
9495         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
9497 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
9499         pmccabe2html: escaping of special characters
9500         Escape all '<', '>', and '&' in HTML output.
9501         * build-aux/pmccabe2html (html_fnc): Call gsub()
9502         instead of sub() to capture all '<', '>', and '&'.
9503         Neither of '<' and '>' is special in a regexp,
9504         so first arguments to gsub() are corrected. Also,
9505         in replacement strings, ampersand must be escaped.
9506         Finally, '&' must be handled first, then '<' and '>'.
9508 2013-09-24  Eric Blake  <eblake@redhat.com>
9510         manywarnings: enable nicer gcc warning messages
9511         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
9512         some -f options for optimal warnings.
9514 2013-09-21  Jim Meyering  <meyering@fb.com>
9516         timespec: use the new TIMESPEC_RESOLUTION in a few more places
9517         * lib/timespec-add.c (timespec_add): Also replace 999999999
9518         with TIMESPEC_RESOLUTION - 1.
9519         * lib/timespec-sub.c (timespec_sub): Likewise.
9521 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9523         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
9524         Problem reported by Dagobert Michelsen via Eric Blake in
9525         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
9526         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
9527         not AC_COMPILE_IFELSE.
9529 2013-09-23  Eric Blake  <eblake@redhat.com>
9531         configmake: support new --runstatedir option
9532         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
9533         even if autoconf was too old to provide the command line option.
9534         * modules/configmake (Makefile.am): Propagate it to .h file.
9536 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9538         ctype, string: depend on extern-inline
9539         This is needed to complete the recent OS X fixes.
9540         Also, fix related documentation as suggested by Eric Blake.
9541         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
9542         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
9543         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
9544         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
9545         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
9546         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
9547         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
9548         * doc/posix-functions/toupper.texi:
9549         List the 'ctype' gnulib module.
9550         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
9551         * doc/posix-functions/strncpy.texi:
9552         List the 'string' gnulib module.
9553         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
9554         Add string.
9555         * modules/ctype, modules/string (Depends-on): Add extern-inline.
9557 2013-09-19  Pádraig Brady  <P@draigBrady.com>
9559         userspec: support optional parameters to parse_user_spec()
9560         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
9561         then avoid group processing and treat the full spec as a user.
9562         (parse_with_separator): Allow the USERNAME and GROUPNAME to
9563         be optional params (NULL), in which case they're ignored.
9565 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9567         timespec: new function make_timespec, and new constants
9568         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
9569         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
9570         (make_timespec): New function.
9571         * lib/dtotimespec.c (dtotimespec):
9572         * lib/timespec-add.c (timespec_add):
9573         * lib/timespec-sub.c (timespec_sub):
9574         * lib/utimens.c (validate_timespec):
9575         * lib/utimensat.c (rpl_utimensat):
9576         Use these new constants and functions.
9578         stdio: OS X port of putc_unlocked + extern inline
9579         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
9580         * doc/posix-functions/putc_unlocked.texi:
9581         * doc/posix-functions/putchar_unlocked.texi:
9582         Document this portability problem.
9584         signal: OS X port of sigaddset etc. + extern inline
9585         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
9586         (sigismember): #undef on problematic Apple platforms.
9587         * doc/posix-functions/sigaddset.texi:
9588         * doc/posix-functions/sigdelset.texi:
9589         * doc/posix-functions/sigemptyset.texi:
9590         * doc/posix-functions/sigfillset.texi:
9591         * doc/posix-functions/sigismember.texi:
9592         Document this portability problem.
9594         extern-inline: do not always suppress extern inline on OS X
9595         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
9596         extern inline on Apple only if the particular compile-time
9597         configuration is known to have the problem.
9598         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
9599         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
9600         other Gnulib modules.
9602         extern-inline: document fixes for ctype and wctype macros
9603         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
9604         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
9605         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
9606         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
9607         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
9608         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
9609         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
9610         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
9611         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
9612         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
9613         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
9614         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
9615         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
9616         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
9617         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
9618         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
9619         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
9620         * doc/posix-functions/strncpy.texi:
9621         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
9622         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
9623         Document that Gnulib fixes portability problems with these
9624         functions on OS X 10.8 and earlier when called from plain inline
9625         or extern inline functions.
9627 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
9629         fflush, freadahead, fseeko: Fix for Android
9630         Suggested by Bruno Haible in:
9631         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
9632         * lib/stdio-impl.h: Use local __sfileext definition.
9634 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
9636         pmccabe2html: Portability to other awk versions.
9637         The functions systime() and strftime() are available
9638         in Gawk only.  Properly close two HTML-tags 'style'
9639         and 'span'.
9640         * build-aux/pmccabe2html (BEGIN): Store timing
9641         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
9642         systime() in HTML_COMMENT.
9643         (html_header): Correctly close tag 'style'.
9644         (END): Replace strftime() by CHRONOS_TIME.  Close
9645         tag 'span' correctly, not as 'div'.
9647 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
9649         getgroups: statement without effect
9650         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
9651         Change equality conditional to expected assignment.
9653 2013-09-09  Eric Blake  <eblake@redhat.com>
9655         glob: fix compilation
9656         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
9658 2013-09-07  Eric Blake  <eblake@redhat.com>
9660         glob: fix build for platforms without __THROW
9661         * lib/glob.in.h (__THROW): Add definition again.
9663 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
9665         regex-quote: fix buffer access out of bounds
9666         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
9667         * lib/regex-quote.c (regex_quote_spec_pcre):
9668         Fix typo that resulted in an out-of-bounds read.
9670 2013-09-04  Eric Blake  <eblake@redhat.com>
9672         glob: avoid -Wattribute warnings on glibc
9673         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
9674         __THROWNL, not __THROW, on static functions.
9675         * lib/glob.in.h (__THROW): Adjust...
9676         (__THROWNL): ...accordingly.
9678 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
9680         headers: check that _GL_INLINE_HEADER_BEGIN is defined
9681         Suggested by Bruce Korb in:
9682         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
9683         * doc/extern-inline.texi (extern inline):
9684         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
9685         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
9686         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
9687         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
9688         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
9689         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
9690         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
9691         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
9692         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
9693         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
9694         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
9695         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
9696         * lib/xtime.h:
9697         Check that _GL_INLINE_HEADER_BEGIN is defined.
9699 2013-08-29  Pádraig Brady  <P@draigBrady.com>
9701         bootstrap: remove the --version requirement from ancillary tools
9702         * build-aux/bootstrap (check_exists): A new refactored function to
9703         determine if a command exists.
9704         (find_tool): Use the new function which does not require the
9705         --version option to be supported.
9706         (check_versions): Use the new function.
9708 2013-08-26  Simon Josefsson  <simon@josefsson.org>
9710         gc: support HMAC-SHA256 and HMAC-SHA512.
9711         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
9712         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
9713         functions.
9714         (gc_hmac_md5): Use symbolic constant.
9715         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
9716         (gc_hmac_sha256, gc_hmac_sha512): New functions.
9717         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
9718         * m4/sha256.m4: Protect against empty expansion.
9719         * m4/sha512.m4: Likewise.
9720         * lib/hmac-sha256.c: New file.
9721         * lib/hmac-sha512.c: Likewise.
9722         * m4/gc-hmac-sha256.m4: Likewise.
9723         * m4/gc-hmac-sha512.m4: Likewise.
9724         * m4/gc-sha256.m4: Likewise.
9725         * m4/gc-sha512.m4: Likewise.
9726         * modules/crypto/gc-hmac-sha256: Likewise.
9727         * modules/crypto/gc-hmac-sha256-tests: Likewise.
9728         * modules/crypto/gc-hmac-sha512: Likewise.
9729         * modules/crypto/gc-hmac-sha512-tests: Likewise.
9730         * modules/crypto/hmac-sha256: Likewise.
9731         * modules/crypto/hmac-sha256-tests: Likewise.
9732         * modules/crypto/hmac-sha512: Likewise.
9733         * modules/crypto/hmac-sha512-tests: Likewise.
9734         * tests/test-gc-hmac-sha256.c: Likewise.
9735         * tests/test-gc-hmac-sha512.c: Likewise
9736         * tests/test-hmac-sha256.c: Likewise.
9737         * tests/test-hmac-sha512.c: Likewise
9739 2013-08-24  Daiki Ueno  <ueno@gnu.org>
9741         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
9742         of AC_CHECK_DECLS.
9744 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9746         selinux-at: omit unnecessary include
9747         * lib/selinux-at.c: Don't include dosname.h; not needed, since
9748         this source file doesn't use its macros, and subsidiary files that
9749         use the macros already include it.
9751 2013-08-21  Eric Blake  <eblake@redhat.com>
9753         d-ino: avoid false negative on symlink
9754         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
9755         Reported by Stephane Chazelas.
9757 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
9759         bootstrap: port to OpenBSD sed
9760         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
9761         does not interpret `-' as a file argument to mean stdin.
9763 2013-08-15  Eric Blake  <eblake@redhat.com>
9765         warnings: minor optimization
9766         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
9768         warnings: check -Wfoo rather than -Wno-foo
9769         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
9770         -Wno-, test if the compiler recognizes the positive form instead.
9772 2013-08-15  Karl Berry  <karl@gnu.org>
9774         * config/srclist-update: add option "doclicense" to placate
9775         pulling *.texi files from Emacs.  Write terse usage
9776         documentation at the top.
9778 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
9780         xvasprintf-tests: port to GCC with hardening flags
9781         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
9782         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
9783         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
9785 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9787         fpending: port to recent Cygwin change to stdio_ext.h
9788         Reported by LRN in
9789         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
9790         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
9791         just declare __fpending unless it's a macro.
9792         A duplicate decl shouldn't hurt.
9793         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
9794         call compiles and links, instead of separately checking for
9795         decl and lib function.
9796         * modules/fpending (configure-ac):
9797         Adjust to fpending.m4's renaming of shell variable.
9799 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9801         sys_time: port to OpenBSD
9802         * lib/sys_time.in.h: Simply delegate to the system's header
9803         in the BSDish cases as well.  Problem reported by Mike Miller in
9804         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
9805         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
9806         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
9807         wider than time_t.
9809 2013-08-09  Pádraig Brady <P@draigBrady.com>
9811         bootstrap: support checksum utils having -c but not --status
9812         * build-aux/bootstrap: Only look for sha1sum if updating po files.
9813         Add sha1 to the list of supported checksum utils since it's now
9814         supported through adjustments below.
9815         (update_po_files): Remove the use of --status
9816         in a way that will suppress all error messages, but since this is
9817         only used to minimize updates, it shouldn't cause an issue.
9818         Exit early if there is a problem updating the po file checksums.
9819         (find_tool): Remove the check for --version support as this
9820         is optional as per commit 86186b17.  Don't even check for the
9821         presence of the command as if that is needed, it's supported
9822         through configuring prerequisites in bootstrap.conf.
9823         Prompt that when a tool isn't found, one can define an environment
9824         variable to add to the hardcoded search list.
9826 2013-08-05  Jim Meyering  <meyering@fb.com>
9828         regex: port to non-glibc/lock-using systems
9829         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
9830         system with GNULIB_LOCK would fail due to absence of the
9831         included "glthread/lock.h".  This would affect any package
9832         for which the "lock" module is used only by the regex module,
9833         and not explicitly used.
9834         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
9835         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
9836         Add a dependency on the "lock" module.
9838 2013-07-20  Daiki Ueno  <ueno@gnu.org>
9840         localecharset: make locale_charset thread-safe on Mac OS X
9841         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
9842         instead of MB_CUR_MAX.
9844 2013-07-20  Daiki Ueno  <ueno@gnu.org>
9846         gettext: update to version 0.18.3
9847         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
9848         require AC_PROG_SED to allow user to specify custom sed command when
9849         generating en@quot PO file.
9851 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
9853         bootstrap: use correct source when copying build-aux files
9854         * build-aux/bootstrap (gnulib_extra_files): This variable is
9855         relative to upstream gnulib layout, not downstream.
9857 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
9859         tmpdir: fix bug in VMS port
9860         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
9861         See Steven M. Schweda in
9862         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
9864 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9866         tmpdir: port to VMS, to // != /, and to long dirs
9867         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
9868         __secure_getenv, so that we're more like the glibc version.
9869         All uses changed.
9870         (path_search): Don't put slash after directory if __VMS.
9871         Problem reported by Steven M. Schweda in
9872         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
9873         Simplify code to add slash; no need for a loop.
9874         Do not remove trailing slash from "//".
9875         Do not assume dlen <= INT_MAX.
9877 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
9879         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
9880         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
9881         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
9882         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
9884         accept4, dup3, pipe2: port to Cygwin
9885         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
9886         * lib/accept4.c (accept4) [O_BINARY]:
9887         * lib/dup3.c (dup3) [O_BINARY]:
9888         * lib/pipe2.c (pipe2) [O_BINARY]:
9889         Use set_binary_mode, not setmode.
9890         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
9891         * modules/binary-io (Depends-on): Remove module indicator.
9892         These last two bits undo the previous change to pipe2 and binary-io.
9894 2013-07-09  Pádraig Brady  <P@draigBrady.com>
9896         mountlist: add support for deallocating returned list entries
9897         * lib/mountlist.c (free_mount_entry): A new exported function
9898         to deallocate a mount list entry.
9899         (read_file_system_list): Refactor to use the new deallocation function.
9900         Suggested by Anton Ovchinnikov.
9902 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
9904         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
9905         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
9906         * lib/stdalign.in.h (_Alignas, _Alignof):
9907         Port to FreeBSD 9.1, and to C11 and C++11.
9908         (_Alignas): Also support ICC.
9909         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
9910         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
9912 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9914         fnmatch: don't goto over declaration
9915         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
9916         undefined behavior for goto over a declaration.
9917         Problem reported by Charlie Brown in
9918         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
9920         pipe2: decouple from binary-io a bit
9921         This is for Emacs, which needs pipe2 but not binary-io.
9922         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
9923         * modules/binary-io (Depends-on): Add module indicator.
9925 2013-07-03  Eric Blake  <eblake@redhat.com>
9927         mgetgroups: relax license to LGPLv2+
9928         * modules/getugroups (License): Change from GPLv3+.
9929         * modules/mgetgroups (License): Likewise.
9930         * modules/getgroups (License): Change from LGPLv3+.
9932         xalloc-oversized: relax license to LGPLv2+
9933         * modules/xalloc-oversized (License): Change from GPLv3+.
9935         nproc: relax license to LGPLv2+
9936         * modules/nproc (License): Change from LGPLv3+.
9938         bootstrap: honor --no-git
9939         * build-aux/bootstrap: Don't even try to use git when user is
9940         pointing to a static checkout.
9942 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9944         ignore-value: port to gcc -pedantic
9945         * lib/ignore-value.h (ignore_value):
9946         Port to gcc -pedantic, by using __extension__.
9947         Reindent as per usual gnulib style nowadays.
9948         Simplify GCC version check.
9950 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9952         extern-inline: port to gcc -std=c89
9953         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
9954         Do not use __gnu_inline__ if pedantic and pre-C99.
9956 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9958         doc: document extern-inline
9959         * doc/extern-inline.texi: New file.
9960         * doc/gnulib.texi (alloca-opt): Include it.
9961         * m4/extern-inline.m4: Move some comments to documentation,
9962         and others closer to what they describe.
9964         doc: chatter less
9965         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
9966         (updated-stamp): Use it.  This causes 'make' to output just
9967         one file name rather than zillions.
9969         fflush, fseeko: port to musl cross-compiles
9970         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
9971         on some implementation that (1) is not known to be buggy,
9972         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
9973         cross-compiled to so we can't easily check for lack of
9974         conformance.  This is for cross-compiling to musl.
9975         Reported by Rich Felker in
9976         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
9977         * m4/fclose.m4 (gl_FUNC_FCLOSE):
9978         * m4/fflush.m4 (gl_FUNC_FFLUSH):
9979         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
9980         Adjust to above change.
9981         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
9982         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
9983         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
9984         known not to work, or unknown.
9986 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9988         msvc-inval: port to mingw-w64
9989         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
9990         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
9991         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
9993 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
9995         getcwd-lgpl: port to Tru64
9996         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
9997         Problem reported by Steven M. Schweda in
9998         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
10000         tests: port large-fd POSIX spawn tests to OS X
10001         Problem reported by Daiki Ueno in
10002         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
10003         * tests/test-posix_spawn_file_actions_addclose.c:
10004         * tests/test-posix_spawn_file_actions_adddup2.c:
10005         * tests/test-posix_spawn_file_actions_addopen.c:
10006         Include <limits.h>, for OPEN_MAX, if available.
10007         (big_fd): New static function.
10008         (main): Use it.
10010 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
10012         tests/nap.h: use an adaptive delay to avoid ctime update issues
10013         The recent change in nap.h (5191133e) decreased the probability of lost
10014         races to about a third, however such problems could still be observed
10015         in virtual machines and openSUSE's OBS.
10016         Before, nap() detected the needed time once empirically and then used
10017         that delay (together with a small correction multiplier) in further
10018         calls.  This problem has been reported and discussed several times,
10019         including guesses about possible kernel issues:
10020         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
10021         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
10022         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
10023         http://bugs.gnu.org/12820
10024         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
10025         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
10026         Now, nap() avoids the race alltogether by verifying on a reference
10027         file whether a timestamp difference has happened.
10028         * tests/nap.h (nap_fd): Define file descriptor variable for the
10029         witness file.
10030         (nap_works): Change return value to bool.  Change passing
10031         the old file's status by value instead of by reference as this function
10032         does no longer update that timestamp; rename the function argument from
10033         st to old_st.  Remove the local variables cdiff and mdiff because that
10034         function now returns true/false instead of the precise delay.
10035         (guess_delay): Remove function.
10036         (clear_tmp_file): Add new function to close and unlink the witness file.
10037         (nap): Instead of re-using the delay which has been calculated during
10038         the first call, avoid the race by actually verifying that a timestamp
10039         difference can be observed on the current file system.  Use an adaptive
10040         approach for the delay to minimize execution time.  Assert that the
10041         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
10042         = 2^31 - 1 = 2.1s.
10043         Use atexit to call clear_tmp_file when the process terminates.
10045 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10047         sig2str: port to C++
10048         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
10049         Reported by Daniel J Sebald in
10050         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
10052 2013-05-30  Eric Blake  <eblake@redhat.com>
10054         docs: mention cygwin shortcoming in <sys/un.h>
10055         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
10057         vasnprintf: silence mingw compiler warning
10058         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
10060 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10062         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
10063         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
10064         This fixes a porting bug I recently reintroduced in regex, and
10065         some other instances that I discovered while testing the fix.
10066         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
10067         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
10068         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
10069         with an empty argument if this is a pedantic pre-C99 GCC.
10070         * lib/verify.h: Do not use _Static_assert if this is a pedantic
10071         pre-C11 GCC.
10073         regex: adapt to locking regime instead of depending on pthread
10074         Instead of depending on pthread, adapt to whatever thread
10075         modules are in use.  Problem reported by Ludovic Courtès in
10076         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
10077         and by Mats Erik Andersson in
10078         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
10079         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
10080         Support either the 'lock' module, or the 'pthread' module, or
10081         no module.
10082         (lock_lock, lock_unlock): New macros.
10083         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
10084         * modules/lock, modules/pthread (configure.ac): Add module indicator.
10085         * modules/regex (Depends-on): Remove pthread.
10087 2013-05-22  Eric Blake  <eblake@redhat.com>
10089         getgroups: document portability issues
10090         * doc/glibc-functions/initgroups.texi (initgroups): Mention
10091         multithread safety.
10092         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
10093         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
10094         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
10095         getugroups.
10096         * doc/posix-functions/getgroups.texi (getgroups): Mention
10097         multithread safety and mgetgroups.
10099 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
10101         test-lchown, test-chown: also skip test if chown fails with EPERM
10102         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
10103         skip this test, to handle FAT file systems.
10104         * tests/test-chown.h (test_chown): Likewise.
10106 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10108         regex: fix dfa race in multithreaded uses
10109         Problem reported by Ludovic Courtès in
10110         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
10111         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
10112         New macros.  All uses of __libc_lock_define, __libc_lock_init
10113         changed to use the first two of these.
10114         (__libc_lock_lock, __libc_lock_unlock): New macros, for
10115         non-glibc platforms.
10116         (struct re_dfa_t): Define the lock unconditionally.
10117         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
10118         '#ifdef _LIBC"s.
10119         * modules/regex (Depends-on): Add pthread, if we use the
10120         included regex.
10122         * lib/regcomp.c: Do actions that are not needed for glibc,
10123         but may be needed elsewhere.
10124         (regfree, re_compile_internal): Destroy the lock.
10125         (re_compile_internal): Check for lock-initialization failure.
10127         malloca: port to compilers that reject size-zero arrays
10128         This fixes a bug introduced in my previous patch.
10129         * lib/malloca.c (struct preliminary_header): Use an int
10130         rather than a character array of size int; that's simpler.
10131         (struct header): Remove, replacing with ...
10132         (union header): New type.  This avoids the need for declaring a
10133         character array of size zero, which is not allowed on some platforms.
10134         All uses changed.
10136 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
10138         parse-datetime, tests: don't use "string" + int
10139         Recent versions of 'clang' complain about C source code that
10140         uses expressions of the form '"string literal" + integer',
10141         I guess on the theory that it's confusing for readers who are
10142         used to C++.  On those grounds I suppose it's OK to make this
10143         minor style change.
10144         * lib/parse-datetime.y (parse_datetime):
10145         * tests/test-fchdir.c (main):
10146         * tests/test-snprintf-posix.h (test_function):
10147         * tests/test-snprintf.c (main):
10148         * tests/test-vasnprintf-posix.c (test_function):
10149         * tests/test-vasnprintf.c (test_function):
10150         * tests/test-vsnprintf.c (main):
10151         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
10152         Rewrite '"str" + E' to '&"str"[E]'.
10154 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
10156         argmatch: port to C++
10157         * lib/argmatch.h [__cplusplus]: Add extern "C".
10159         argp: typo fix
10160         * lib/argp-help.c: Typo in comment.
10162 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
10164         manywarnings: update for GCC 4.8.0
10165         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10166         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
10167         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
10168         -Wmissing-noreturn, as they are duplicates of other warnings.
10169         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
10170         was documented to be flaky in earlier versions of GCC.
10172         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
10173         * tests/test-spawn.c (main):
10174         * tests/test-sys_socket.c (main):
10175         * tests/test-sys_wait.c (main):
10176         Don't have a switch value that isn't covered by a case.
10178         getaddrinfo-tests: port --enable-gcc-warnings to clang
10179         * tests/test-getaddrinfo.c (simple):
10180         Avoid casts from looser to stricter-aligned pointers.
10182         thread: port --enable-gcc-warnings to clang
10183         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
10184         Include <signal.h>, to pacify a warning about pthread_sigmask.
10186         stdio: use __REDIRECT for fwrite, fwrite_unlocked
10187         * lib/stdio.in.h (fwrite):
10188         When working around bug 11959, use __REDIRECT rather than '#define
10189         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
10190         fix the -Wunused-value issue with clang, and it works with GCC too.
10191         Problem with targeting reported by Eric Blake in
10192         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
10193         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
10194         debugging the fwrite issue.
10196         stdio: port --enable-gcc-warnings to clang
10197         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
10198         since the GCC workaround for fwrite does not pacify clang.
10200         sig2str: port --enable-gcc-warnings to clang
10201         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
10203         obstack: port --enable-gcc-warnings to clang
10204         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
10205         Avoid casts from looser to stricter-aligned pointers.
10207         memchr2: port --enable-gcc-warnings to clang
10208         * lib/memchr2.c (memchr2):
10209         Avoid casts from looser to stricter-aligned pointers.
10211         mbsstr: port --enable-gcc-warnings to clang
10212         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
10213         Avoid casts from looser to stricter-aligned pointers.
10215         malloca: port --enable-gcc-warnings to clang
10216         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
10217         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
10219         inttostr: port --enable-gcc-warnings to clang
10220         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
10222         warnings: port to clang
10223         Problem reported by Daniel P. Berrange via Eric Blake in
10224         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
10225         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
10226         (gl_WARN_ADD): Use it.
10228 2013-05-11  Jim Meyering  <meyering@fb.com>
10230         quotearg: do not read beyond end of buffer
10231         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
10232         end of an ARG for which no length was specified.  With an N-byte
10233         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
10234         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
10235         via coreutils' misc/sort-debug-keys.sh test and detected by running
10236         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
10237         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
10238         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
10239         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
10240         characters correctly."
10242 2013-05-11  Daiki Ueno  <ueno@gnu.org>
10244         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
10245         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
10246         compilation target is Mac OS X 10.6.
10247         Problem reported by parafin and Andoni Morales in
10248         <http://savannah.gnu.org/bugs/?37844> and
10249         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
10251 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10253         mkdir-p: remove assumptions about umask and mode
10254         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
10255         umask is 0, or that MODE is a subset of MODE_BITS.
10257 2013-05-10  Eric Blake  <eblake@redhat.com>
10259         maint.mk: catch more abuse of HAVE_DECL in syntax-check
10260         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
10262 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
10264         deps: require Automake >= 1.9.6 in generated Makefile fragments
10266         That is the same minimal version required in the DEPENDENCIES file.
10267         Moreover, the old code generated a requirement of Automake >= 1.5,
10268         and that is an insanely outdated version.
10270         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
10271         * tests/havelib/rpathlx/Makefile.am: Likewise.
10272         * tests/havelib/rpathly/Makefile.am: Likewise.
10273         * tests/havelib/rpathlyx/Makefile.am: Likewise.
10274         * tests/havelib/rpathlz/Makefile.am: Likewise.
10275         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
10276         * tests/havelib/rpathx/Makefile.am: Likewise.
10277         * tests/havelib/rpathy/Makefile.am: Likewise.
10278         * tests/havelib/rpathz/Makefile.am: Likewise.
10280 2013-05-08  Eric Blake  <eblake@redhat.com>
10282         bootstrap: AC_INIT may have more than four parameters
10283         * build-aux/bootstrap (extract_package_name): Correctly extract
10284         non-empty tarname field.  Avoid range in regex.
10285         Based on a report by Sami Kerola <kerolasa@iki.fi>.
10287 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10289         qacl: port to MS-Windows port of GNU Emacs
10290         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
10291         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
10292         port of GNU Emacs.  Problem reported by Eli Zaretskii in
10293         <http://bugs.gnu.org/14295#14>.
10295 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
10297         acl: include quote.h
10298         * lib/copy-acl.c: Include quote.h.
10299         * lib/set-acl.c: Likewise.
10301 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
10303         fchownat, renameat, unlinkat: update statat dependencies
10304         These modules use statat and lstatat, not fstatat; so depend on
10305         the statat module, which was split out recently from fstatat.
10306         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
10307         * modules/renameat: Likewise.  Also delete fstat.
10308         URL: http://bugs.gentoo.org/468790
10310 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
10312         Assume gnulib is checked out from Git, not CVS
10314         In fact, access to the gnulib repository through CVS has been
10315         disabled, or more precisely, got broken and was never restored; see:
10316         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
10318         Note that support for CVS is not removed completely and unthinkingly
10319         by this change: only support for CVS checkouts of gnulib itself is
10320         removed.  For example, the 'bootstrap' script still cater to .cvsingore
10321         files and CVS directories, for the benefit of those poor gnulib clients
10322         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
10324         * gnulib-tool: Simplify accordingly.
10325         * posix-modules: Likewise.
10326         * MODULES.html.sh: Likewise.
10327         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
10328         repository.
10329         * doc/gnulib-intro.texi: Likewise.
10330         * doc/gnulib-readme.texi: Likewise.
10331         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
10332         sample '.gitignore' file rather than a sample '.cvsignore'.
10333         * NEWS: Update.
10334         * m4/extensions.m4: While at it, remove a comment mistakenly referring
10335         to "CVS Autoconf" rather than "git Autoconf".
10337 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10339         utimensat-tests, etc.: try to fix some races
10340         Problem reported by Bernhard Voelker in
10341         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
10342         I don't know whether this patch fixes that race condition, but it
10343         fixes *some* race conditions, so it should be a win.
10344         * modules/chown-tests (Depends-on):
10345         * modules/fchownat-tests (Depends-on):
10346         * modules/fdutimensat-tests (Depends-on):
10347         * modules/futimens-tests (Depends-on):
10348         * modules/lchown-tests (Depends-on):
10349         * modules/stat-time-tests (Depends-on):
10350         * modules/utimens-tests (Depends-on):
10351         * modules/utimensat-tests (Depends-on):
10352         Depend on nanosleep, not usleep.
10353         * modules/chown-tests (test_chown_LDADD):
10354         * modules/lchown-tests (test_lchown_LDADD):
10355         * modules/stat-time-tests (test_stat_time_LDADD):
10356         New macro.
10357         * modules/fchownat-tests (test_fchownat_LDADD):
10358         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
10359         * modules/futimens-tests (test_futimens_LDADD):
10360         * modules/utimens-tests (test_utimens_LDADD):
10361         * modules/utimensat-tests (test_utimensat_LDADD):
10362         Add $(LIB_NANOSLEEP).
10363         * modules/stat-time-tests (Files): Add tests/nap.h.
10364         * tests/nap.h: Include <limits.h>, for INT_MAX.
10365         (lt_mtime): Remove.
10366         (diff_timespec): New function.
10367         (get_stat): Rename from get_mtime.  All callers changed.
10368         (nap_works): Determine the needed delay by inspecting the
10369         file system's timestamp jumps; this should be more reliable.
10370         Look at both mtime and ctime, and take the maximum of the two jumps.
10371         (nap_works, guess_delay):
10372         Return a nanosecond count, not a microsecond count.
10373         All callers changed.
10374         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
10375         failure.
10376         (nap): Multiply the guess by 1.125, to accommodate the case where
10377         the file system's clock is a bit slower than nanosleep's clock.
10378         * tests/test-stat-time.c (BASE): New macro.
10379         Include nap.h.
10380         (nap): Remove; nap.h now defines this.  This removes a duplicate
10381         implementation of 'nap'.
10383         utimens, utimensat: work around Solaris UTIME_OMIT bug
10384         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
10385         Linux kernel 2.6.32 does.  Work around it in the same way.
10386         * doc/posix-functions/futimens.texi (futimens):
10387         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
10388         * lib/utimens.c (fdutimens, lutimens):
10389         * lib/utimensat.c (rpl_utimensat): Work around the bug.
10391         gettext: now it's your responsibility to add -I$(top_builddir)/intl
10392         Formerly, it was your responsibility to do this for all Makefile.ams
10393         other than Gnulib's.  Now it's your responsibility to do it for
10394         Gnulib's Makefile.am, too.
10395         * NEWS: Document this.
10396         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
10398         acl: include errno.h to get errno
10399         Reported by Daiki Ueno in
10400         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
10401         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
10403 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
10405         tests: don't assume getdtablesize () <= 10000000
10406         * modules/cloexec-tests:
10407         * modules/dup2-tests:
10408         * modules/dup3-tests:
10409         * modules/nonblocking-tests:
10410         * modules/posix_spawn_file_actions_addclose-tests:
10411         * modules/posix_spawn_file_actions_adddup2-tests:
10412         * modules/posix_spawn_file_actions_addopen-tests:
10413         * modules/unistd-safer-tests:
10414         Depend on the getdtablesize module.
10415         * tests/test-cloexec.c:
10416         * tests/test-dup-safer.c:
10417         * tests/test-dup2.c:
10418         * tests/test-dup3.c:
10419         * tests/test-fcntl.c:
10420         * tests/test-nonblocking.c:
10421         * tests/test-posix_spawn_file_actions_addclose.c:
10422         * tests/test-posix_spawn_file_actions_adddup2.c:
10423         * tests/test-posix_spawn_file_actions_addopen.c:
10424         Don't assume getdtablesize () <= 10000000.
10426 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
10428         extern-inline: work around bug in Sun c99
10429         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
10430         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
10432 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10434         qacl: new module, broken out from the acl module
10435         This is for GNU Emacs, which wants the acl functions but does
10436         not want 'error' invoked when they fail.
10437         * lib/acl-internal.h: Do not include error.h, quote.h.
10438         (ENOSYS, ENOTSUP): Remove; no longer needed.
10439         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
10440         * lib/acl.h: Include <stdbool.h>.
10441         (acl_errno_valid): New function.
10442         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
10443         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
10444         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
10445         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
10446         (ACL_INTERNAL_INLINE): Remove; no longer needed.
10447         * lib/file-has-acl.c (file_has_acl):
10448         * lib/qcopy-acl.c (qcopy_acl):
10449         * lib/qset-acl.c (qset_acl):
10450         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
10451         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
10452         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
10453         lib/file-has-acl.c, m4/acl.m4 to qacl module.
10454         Add lib/set-acl.c.
10455         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
10456         Add qacl.
10457         (configure.ac): Move gl_FUNC_ACL to qacl module.
10458         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
10459         Rename set-mode-acl.c to set-acl.c.
10460         * lib/acl-errno-valid.c: New file.
10461         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
10462         copy_acl function remains in copy-acl.c.
10463         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
10464         (_): Remove; not needed.
10465         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
10466         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
10467         * modules/qacl: New file, moved from the old modules/acl.
10468         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
10469         Remove set-mode-acl.c, copy-acl.c.
10470         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
10472         alignof, intprops, malloca: port better to IBM's C compiler
10473         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
10474         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
10475         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
10477 2013-04-25  Daiki Ueno  <ueno@gnu.org>
10479         wctype-h: fix gettext link error on mingw
10480         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
10481         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
10482         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
10483         rpl_towupper and rpl_towupper.
10485 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
10487         regex-tests, regex: allow glibc re_search behavior
10488         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
10489         re_search input data to make the multi-character collating element
10490         in it clearly visible, and treat re_search return code 0 as valid.
10491         * m4/regex.m4 (gl_REGEX): Likewise.
10493 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
10495         stdalign: doc fix
10496         * doc/posix-headers/stdalign.texi (stdalign.h):
10497         Gnulib doesn't support '_Alignof expr'.
10499 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10501         stdalign: port to stricter ISO C11
10502         ISO C11 says that _Alignof's operand must be a parenthesized type.
10503         Problem reported by Eli Zaretskii in
10504         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
10505         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10506         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
10508 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
10510         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
10511         Problem reported by Marco Atzeri in
10512         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
10513         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
10514         Simply delegate to the system <sys/select.h> in this case too.
10515         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
10516         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
10517         be needed on Solaris either.
10518         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
10519         Simply delegate to the system <sys/time.h> in this case.
10521 2013-03-19  Karl Berry  <karl@gnu.org>
10523         * build-aux/gnupload: check for erroneous (with gnupload) use of
10524         ftp-upload.gnu.org, tweak help.
10526 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10528         copy-file, rpmatch: fix problems found by cppcheck
10529         Reported by Arno Onken in
10530         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
10531         * lib/rpmatch.c (try): Fix memory leak.
10532         * lib/copy-file.c: Include "ignore-value.h".
10533         (qcopy_file_preserving): Ignore chown value.
10534         * modules/copy-file (Depends-on): Add ignore-value.
10536 2013-01-27  Jim Meyering  <jim@meyering.net>
10538         prefix-gnulib-mk: give better diagnostics
10539         * build-aux/prefix-gnulib-mk: Don't just "die".
10540         Give better diagnostics upon failure.
10542 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
10544         putenv: port to Solaris 10
10545         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
10546         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
10547         is not what is wanted here.
10548         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
10549         declaration, not for its existence.
10551 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
10553         mktime: fix configure typo
10554         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
10556 2013-03-12  Eric Blake  <eblake@redhat.com>
10558         regex-tests: skip UTF-8 test on mingw
10559         * modules/regex-tests (Depends-on): Add localcharset.
10560         * tests/test-regex.c (main): Use it to skip test on mingw.
10562 2013-03-11  Eric Blake  <eblake@redhat.com>
10564         tests: make it easier to bypass alarm time in debugger
10565         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
10566         * tests/test-memmem.c (main): Likewise.
10567         * tests/test-passfd.c (main): Likewise.
10568         * tests/test-ptsname.c (main): Likewise.
10569         * tests/test-ptsname_r.c (main): Likewise.
10570         * tests/test-strcasestr.c (main): Likewise.
10571         * tests/test-strstr.c (main): Likewise.
10573         regex: port to mingw's recent addition of undeclared alarm
10574         * doc/posix-functions/alarm.texi (alarm): Document that alarm
10575         exists but still doesn't work in newer mingw.
10576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
10577         not existence.  Ensure SIGALRM is not trapped.
10578         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
10579         * m4/regex.m4 (gl_REGEX): Likewise.
10580         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
10581         * tests/test-regex.c (main): Use correct probe for alarm.
10583         putenv: avoid compilation warning on mingw
10584         * lib/putenv.c (_unsetenv): Protect variable declaration.
10585         (putenv): Fix indentation.
10587 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
10589         unistd: don't prevent Tru64 Unix from using gnulib strtod.
10590         * lib/unistd.in.h: be careful not to include un-needed system
10591         stdlib.h from here, because that prevents gnulib stdlib.h from
10592         defining rpl_strtod correctly.
10594 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
10596         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
10597         changesets, but for the 'precision 0' test.
10598         * tests/test-vasprintf-posix.c (test_function): Don't insist on
10599         round-to-even, since POSIX says rounding is implementation-defined
10600         and OS X 10.8.2 rounds 1.51 to 1 here.
10602         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
10603         changeset.
10604         * tests/test-vasprintf-posix.c (test_function): Don't insist on
10605         round-to-even, since POSIX says rounding is implementation-defined
10606         and OS X 10.8.2 rounds 1.5 to 1 here.
10608 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
10610         vasnprintf-posix-tests: allow rounding 1.5 to 1
10611         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
10612         round-to-even, since POSIX says rounding is implementation-defined
10613         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
10614         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
10616         bootstrap: port to FreeBSD
10617         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
10618         that treat '--' differently.  Reported by Mats Erik Andersson in
10619         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
10621 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
10623         regex: rename remaining __attribute calls to __attribute__.
10624         2012-02-25 changed definition of __attribute, but left some uses
10625         unchanged, preventing compilation of regex module on most non-gcc
10626         environments.
10627         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
10628         (lookup_collation_sequence_value, build_range_exp)
10629         (build_collating_symbol): Set attributes with newly renamed
10630         __attribute__ decorator.
10631         * lib/regex_internal.c (re_string_peek_byte_case)
10632         (re_node_set_compare, re_node_set_contains): Likewise.
10633         * lib/regexec.c (acquire_init_state_context): Likewise.
10635 2013-03-06  Bruno Haible  <bruno@clisp.org>
10637         execute: Revert last change, but use a different condition.
10638         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
10639         on Windows.
10641 2013-03-05  Eric Blake  <eblake@redhat.com>
10643         execute: drop dead code
10644         * lib/execute.c (nonintr_close, nonintr_open): Delete.
10646 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
10648         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
10649         * m4/non-recursive-gnulib-prefix-hack.m4
10650         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
10651         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
10652         <http://bugs.gnu.org/10305#237>.
10654 2013-03-04  Eric Blake  <eblake@redhat.com>
10656         test-getsockopt: avoid compiler warning
10657         * tests/test-getsockopt.c (includes): Ensure close is declared.
10659 2013-03-02  Bruno Haible  <bruno@clisp.org>
10661         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
10662         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
10664 2013-03-02  Bruno Haible  <bruno@clisp.org>
10666         gettext: Update to version 0.18.2.
10667         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
10668         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
10669                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
10671 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10673         regex: merge patches from libc
10675         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10676         * lib/regex_internal.h (__attribute__): Rename from __attribute.
10677         All uses changed.
10678         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
10679         (re_string_wchar_at, re_string_elem_size_at):
10680         Mark function as possibly unused.
10682         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
10683         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
10684         elements compare against the byte sequence of it, not its name.
10686 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10688         putenv: port better to native Windows
10689         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
10690         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
10691         (_unsetenv): Use _putenv if available.
10692         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
10693         a bit less likely to cause damage.
10694         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
10695         Fix the wrong value with SetEnvironmentVariable.
10696         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
10697         code better.
10699 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10701         regex: ignore old-style-definition warnings
10702         * lib/regex.c: Add pragma to ignore these warnings.
10703         Problem reported for GNU tar by Pavel Raiskup.
10705 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
10707         getcwd: support coreutils better
10708         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
10709         but this might not be correct in coreutils, which disables
10710         the raw decl checks.  Problem reported by Nagendra in
10711         <http://bugs.gnu.org/10305#192>.
10712         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
10713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
10714         Test the getcwd function, not any macro, since getcwd.c wants the
10715         function.
10716         * m4/getcwd.m4 (gl_FUNC_GETCWD):
10717         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
10718         compile, as might happen if there's a macro but no function.
10720         strtod: support coreutils better
10721         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
10722         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
10723         disables the raw decl checks.  This assumes there is an underlying
10724         strtod, but that's a safe assumption these days.
10725         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
10727         mountlist: port to HP NonStop
10728         Reported by Joachim Schmitz in
10729         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
10730         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
10731         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
10733 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10735         extern-inline: avoid compilation error with HP-UX cc
10736         Reported by Richard Lloyd in
10737         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
10738         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
10739         Suppress extern inline with HP-UX cc.  This should be safe,
10740         though it may hurt performance.  Perhaps someone with some HP-UX
10741         experience can come up with a higher-performance fix.
10743 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
10745         putenv: fix heap corruption with mixed putenv/_putenv
10746         Problem reported by Michael Goffioul in
10747         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
10748         * lib/putenv.c (putenv) [HAVE__PUTENV]:
10749         Rely on _putenv to allocate the new environment.
10750         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
10751         * modules/putenv (configure.ac): Use it.
10753 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
10755         unsetenv etc.: port to Solaris 11 + GNU Emacs
10756         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
10757         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
10758         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
10759         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
10760         idea but is too painful to fix right now), and without this gnulib
10761         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
10762         compiling unsetenv.c on Solaris 11.  Fix the problem for
10763         unsetenv.c, and fix other similar occurrences.
10765 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10767         secure_getenv: fix C++ declaration typo
10768         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
10769         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
10770         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
10772 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10774         careadlinkat: stop exporting careadlinkatcwd
10775         Only Emacs used it directly, and Emacs no longer needs it.
10776         * NEWS: Document this simplification.
10777         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
10778         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
10779         for readlink.
10780         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
10781         Don't include stdlib.h; no longer needed.
10782         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
10783         * lib/relocwrapper.c: Adjust comment to match new dependencies.
10784         * modules/areadlink (Depends-on): Add readlink.
10785         (Maintainer): Add self.
10786         * modules/careadlinkat (Depends-on): Remove readlink.
10788         extensions: port better to HP-UX
10789         This is merged from git Autoconf.
10790         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10791         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
10792         so that it's compatible with the value used when compiling.
10794         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
10795         Problem reported by Mats Erik Andersson in
10796         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
10797         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
10798         openpty function exists, not merely when we intend to replace it.
10799         This corrects the 2013-01-31 patch, which mistakenly defined
10800         HAVE_OPENPTY even on hosts that lacked it.
10802 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10804         secure_getenv: fix include typo
10805         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
10807         secure_getenv: port better to FreeBSD and Solaris
10808         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
10809         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
10810         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
10811         This works better on BSDish platforms.
10812         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
10813         Test for issetugid if __secure_getenv is missing.
10815 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10817         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
10818         Some of these changes are merged in from git Autoconf.
10819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10820         When deciding whether to define _XOPEN_SOURCE, inspect the
10821         preprocessor macro __hpux instead of the more-heavyweight
10822         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
10823         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
10824         as the key for __EXTENSIONS__.
10826         unistd: avoid namespace pollution on non-glibc systems
10827         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
10828         This avoids namespace pollution on non-glibc systems, by causing
10829         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
10830         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
10831         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
10833 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10835         tmpdir: use secure_getenv
10836         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
10837         Define to secure_getenv, not getenv.
10838         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
10839         as that's now secure_getenv's job.
10840         * modules/tmpdir (Depends-on): Add secure_getenv.
10842         tempname: use secure_getenv
10843         * lib/tempname.c (__secure_getenv) [!_LIBC]:
10844         Define to secure_getenv, not getenv.
10845         * modules/tempname (Depends-on):
10846         Add secure_getenv.
10848         secure_getenv: new module
10849         * MODULES.html.sh (Extra functions based on ANSI C 89):
10850         Add secure_getenv.
10851         * doc/glibc-functions/secure_getenv.texi: New file.
10852         * doc/gnulib.texi: Include it.
10853         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
10854         New files.
10855         * lib/stdlib.in.h (secure_getenv): New decl.
10856         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
10857         * modules/stdlib (stdlib.h):
10858         Add secure_getenv checks.
10860 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
10862         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
10863         Reported for OS X 10.8.2 by Assaf Gordon in
10864         <http://bugs.gnu.org/13516>.
10865         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
10866         !HAVE_OPENAT && !HAVE_FDOPENDIR.
10867         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
10868         so that they can be kept in sync more easily.  Avoid PATH_MAX
10869         test on the Hurd.  Sync from test-getcwd.c for errno tests after
10870         mkdir or chdir failure.
10871         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
10872         lib/getcwd.c.
10873         (test_abort_bug): Do not test for the deep directory bug unless we
10874         have openat support.  Avoid PATH_MAX test on the Hurd.
10876         regex-tests, regex: fix bug: memset undeclared
10877         * tests/test-regex.c: Don't include regex.h twice.  Include
10878         string.h, to declare memset.  Christensen's report also mentioned
10879         this issue.
10880         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
10881         test-regex.c, to avoid future problems like this.  Remove
10882         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
10883         twice.
10885         regex-tests: fix link errors on older Solaris
10886         These need to link with @LIBINTL@ to get libintl_gettext.
10887         Problem reported by Tom G. Christensen in
10888         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
10889         * modules/regex-tests (test_regex_LDADD): New macro.
10891 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
10893         regex-tests: new module
10894         * modules/regex-tests, tests/test-regex.c: New files.
10896         regex: fix off-by-one error in configure test
10897         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
10899 2013-01-31  Eric Blake  <eblake@redhat.com>
10901         regex: avoid infinite configure test
10902         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
10904 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
10906         openpty: fix bug where HAVE_OPENPTY wasn't defined
10907         See the thread starting at:
10908         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
10909         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
10910         openpty function exists, not merely when we intend to replace it.
10912 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10914         sys_time: port to Solaris 2.6
10915         There is a circularity problem on Solaris 2.6, where <time.h> includes
10916         <sys/time.h> for struct timespec.  The include nesting is gnulib
10917         <time.h>, system <time.h>, gnulib <sys/time.h>, system
10918         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
10919         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
10920         <sys/siginfo.h>; the last, innermost file needs struct
10921         timestruc_t, which is defined in <sys/time.h>, which has not been
10922         fully parsed.  Problem reported by Tom G. Christensen in
10923         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
10924         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
10925         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
10926         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
10927         uses split double-inclusion guards.
10929 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10931         regex: test for buffer overrun
10932         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
10933         for the just-fixed regex bug.
10935 2013-01-29  Andreas Schwab  <schwab@suse.de>
10937         regex: fix buffer overrun in regexp matcher [BZ #15078]
10938         * lib/regexec.c (extend_buffers): Add parameter min_len.
10939         (check_matching): Pass minimum needed length.
10940         (clean_state_log_if_needed): Likewise.
10941         (get_subexp): Likewise.
10943 2013-01-28  Pádraig Brady  <P@draigBrady.com>
10945         mountlist: don't consider "devtmpfs" as dummy
10946         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
10947         as there is storage associcated with it.
10949 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
10951         futimens-tests, utimens-tests: Depend on gettext.
10952         This works around a problem introduced in my 2013-01-12 patch,
10953         which added @LIBINTL@ to these modules.
10954         * modules/futimens-tests (Depends-on):
10955         * modules/utimens-tests (Depends-on): Add gettext.
10957 2013-01-26  Eric Blake  <eblake@redhat.com>
10959         test-getpeername: fix typo
10960         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
10962 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
10964         bootstrap: remove the need for a sorted .gitignore file
10965         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
10966         rename to insert_if_absent(), so that we don't need or generate
10967         a sorted .gitignore file.  We do require a .gitignore with no
10968         existing duplicate entries and enforce that.
10969         (sort_patterns): Remove this function as we now use the simpler
10970         technigue of inserting blacklist entries at the top of the file,
10971         assuming gnulib won't be inserting !whitelist entries.
10973 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10975         readlinkat: don't depend on gl_FUNC_OPENAT
10976         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
10977         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
10978         renameat.m4, symlinkat.m4; but one thing at a time.
10980         statat: new module, split out from fstatat
10981         GNU Emacs needs the POSIX-specified fstatat, but not the
10982         gnulib-specified statat and lstat.  Split the latter two into a
10983         new module 'statat'.
10984         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
10985         * lib/openat.h, lib/statat.c (STATAT_INLINE):
10986         Rename from FSTATAT_INLINE. All uses changed.
10987         * modules/fstatat (Files): Remove lib/statat.c.
10988         (gl_MODULE_INDICATOR([fstatat])): Remove.
10989         (lib_SOURCES): Remove.
10990         (Maintainer): Add self.
10991         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
10992         * tests/test-fstatat.c (BASE): Don't define if already defined.
10993         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
10995 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
10997         tests: don't assume fd 99 is closed
10998         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
10999         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
11000         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
11001         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
11002         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
11003         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
11004         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
11005         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
11006         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
11007         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
11008         * tests/test-fwrite.c, tests/test-getpeername.c:
11009         * tests/test-getsockname.c, tests/test-getsockopt.c:
11010         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
11011         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
11012         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
11013         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
11014         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
11015         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
11016         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
11017         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
11018         * tests/test-unlinkat.c, tests/test-unlockpt.c:
11019         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
11020         Close file descriptor 99, instead of assuming it's already closed.
11022 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11024         stpncpy: port to OS X 10.8
11025         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
11026         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
11028 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
11030         unistd: port to recent mingw
11031         * lib/unistd.in.h: Remove special invocation convention for mingw,
11032         which breaks for the latest mingw version.  See John W. Eaton in
11033         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
11035         largefile: port better to Mac OS X 10.5
11036         This patch is backported from Autoconf git.
11037         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
11038         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
11039         with ino_t size being different for configuration time versus
11040         build/run time.  Problem reported by PHO in
11041         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
11043 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11045         doc: clarify -Werror
11046         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
11047         clarify that it's intended for developers, not for ordinary builds,
11048         and mention --enable-gcc-warnings as one possible use.
11050 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
11052         stdint: fix build with Android's Bionic fox x86
11053         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
11054         was already included as _SSIZE_T_DEFINED_ might also be defined
11055         in include/machine/_types.h, which is included by stdio.h
11057 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
11059         net_if-tests: port to Solaris 7 + GCC 3.4.6
11060         Problem reported by Tom G. Christensen in
11061         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
11062         * tests/test-net_if.c (ni): Move to next the code that uses it,
11063         so that it's declared only if needed.
11065 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
11067         net_if-tests: port to older Solaris
11068         Problem reported by Tom G. Christensen in
11069         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
11070         * modules/net_if-tests (NET_IF_LIB): New substitution.
11071         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
11072         (HAVE_IF_NAMEINDEX): New C macro.
11073         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
11075         system-quote-tests: port to older Solaris
11076         Problem reported by Tom G. Christensen in
11077         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
11078         * tests/test-system-quote-child.c (fopen, fread): Undef.
11080         c-xvasprintf etc.: fix link errors on older Solaris
11081         These need to link with @LIBINTL@ to get libintl_gettext.
11082         Problem reported by Tom G. Christensen in
11083         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
11084         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
11085         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
11086         * modules/futimens-tests (test_futimens_LDADD):
11087         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
11089 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11091         locale: port to Solaris 2.6 and 7 + GNU gettext
11092         * lib/locale.in.h: Just include_next <locale.h> when
11093         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
11094         when combining the localename module with GNU gettext 0.18.2.
11095         Problem reported by Tom G. Christensen in
11096         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
11098 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
11100         stdlib: port to Solaris 2.6
11101         Also, the code worked on Solaris 7 through 9 only by accident.
11102         Problem reported by Tom G. Christensen in
11103         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
11104         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
11105         simply include the system stdlib.h.
11106         * lib/getopt.in.h (__need_system_stdlib_h):
11107         * lib/pthread.in.h (__need_system_stdlib_h):
11108         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
11109         Define when including <stdlib.h>, to avoid problems at least for
11110         the pthread case on Solaris 2.6 and 7.  These .h files can get by
11111         with the system stdlib.h.
11113 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
11115         doc: update main copyright year
11116         * doc/gnulib.texi: Update copyright date.
11118         doc: improve ISO 8601 discussion
11119         * doc/parse-datetime.texi (Combined date and time of day items):
11120         Specify more carefully what formats are supported and what is
11121         done with excess precision.
11123 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11125         doc: avoid small caps
11126         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
11127         they're more trouble than they're worth.  Suggested by Karl Berry
11128         in <http://bugs.gnu.org/13360>.
11130         regex: conform to strict C
11131         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
11132         From Aharon Robbins.
11134         gnulib-tool: fix incompatibility with autopoint 0.18.2
11135         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
11136         Problem reported by Tom G. Christensen in
11137         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
11139 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11141         fprintftime: bring back and reword fwrite comment
11142         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
11144         stdio: remove now-unnecessary stdio.c
11145         Since stdio.in.h no longer uses inline functions, we no longer
11146         need to compile the extern versions.
11147         * lib/stdio.c: Remove.
11148         * modules/stdio (Files): Remove lib/stdio.c.
11149         (lib_SOURCES): Remove.
11151         unicodeio: depend on stdio, not ignore-value
11152         * lib/unicodeio.c: Do not include ignore-value.h.
11153         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
11154         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
11156         fprintftime: depend on stdio, not ignore-value
11157         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
11158         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
11159         since the stdio module arranges to silence that warning now.
11160         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
11162 2012-10-04  Simon Josefsson  <simon@josefsson.org>
11164         stdint-tests: Fix expanded-before-required-warning.
11165         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
11167 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11169         fwrite: silence __wur only for older glibc versions
11170         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
11171         This will help us remove this workaround some time in the far future.
11173 2013-01-03  Eric Blake  <eblake@redhat.com>
11175         fwrite: silence __wur without using inline
11176         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
11177         just gcc, and in a way that avoids inline issues.
11178         * modules/stdio (Depends-on): Drop extern-inline.
11180 2013-01-03  Jim Meyering  <jim@meyering.net>
11182         update-copyright: avoid copyright notice date corruption
11183         Given a sequence of copyright year numbers in which the final
11184         one was a two-digit number that happened to be a substring of
11185         a preceding four-digit year number, we would mistakenly update
11186         the substring (from two- to four-digit) rather than the two-digit
11187         number at the end, which, combined with the addition of the current
11188         4-digit year number would yield two 5-digit year numbers, e.g.,
11189         here, it would convert the first "99" to "1999, 2013" rather than
11190         the final one:
11191           1991, 99
11192           11999, 20131, 1999
11193         * build-aux/update-copyright: Tighten a regexp.
11194         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
11195         Reported by Joseph Myers in
11196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
11198 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11200         regex: omit needless signed-pointer casts
11201         * lib/regcomp.c (build_charclass, build_charclass_op):
11202         Use char *, not unsigned char *, for class name and extra.
11203         The char values are always nonnegative so there's no need to
11204         insist on unsigned char * here, and using char * removes the need
11205         for casts.  Reported by Aharon Robbins in
11206         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11208         regex: support Gawk, which never uses alloca
11209         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
11210         Do not include in this case.  Gawk doesn't supply a substitute
11211         alloca.h and doesn't need one.
11213         regex: port __libc_lock_define usage to C89
11214         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
11215         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
11216         does not conform to C89, as it has an empty macro argument.
11217         Reported by Aharon Robbins in
11218         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11220 2013-01-01  Eric Blake  <eblake@redhat.com>
11222         maint: update all copyright year number ranges
11223         Run "make update-copyright".
11225         version-etc: bump copyright year reported in --version
11226         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
11228 2012-12-31  Eric Blake  <eblake@redhat.com>
11230         sigprocmask-tests: skip test if pid is unexpectedly large
11231         * tests/test-sigprocmask.c (main): Add range check.
11233         git-version-gen: avoid test -z portability glitch
11234         * build-aux/git-version-gen: Prefer portable test spelling, since
11235         git-version-gen is run on more than just developer machines.
11237 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
11239         git-version-gen: add --fallback option to use if git is not present
11240         * build-aux/git-version-gen: Add support for the new option --fallback,
11241         which comes into play when there is no $tarball_version_file and
11242         git is not working.
11243         (scriptversion): Update.
11245         maint.mk: handle missing git with more grace
11246         * top/maint.mk (no-submodule-changes, public-submodule-commit):
11247         Quietly proceed if git is not present.
11249 2012-12-31  Eric Blake  <eblake@redhat.com>
11251         dup2: work around cygwin bug
11252         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
11253         * lib/dup2.c (rpl_dup2): Work around it.
11254         * doc/posix-functions/dup2.texi (dup2): Document it.
11256 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
11258         regex: remove unnecessary dependency on localcharset.h
11259         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
11260         hasn't been needed for years.
11261         * modules/regex (Depends-on): Remove localcharset.
11263         regex: revert single-byte change
11264         * lib/regexec.c (check_node_accept_bytes): Revert previous change
11265         to this function.  This was alredy fixed in a different way, at
11266         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
11267         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
11268         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
11270         regex: simplify based on Gawk version
11271         * lib/regex_internal.c (re_dfa_add_node): Simplify.
11272         Reported by Aharon Robbins in
11273         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11275 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11277         regex: check that pattern char is single-byte
11278         Reported by Aharon Robbins in
11279         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11280         * lib/regexec.c (check_node_accept_bytes):
11281         Return 0 if the pattern string has a multibyte character here.
11283         regex: implement rational ranges
11284         Reported by Aharon Robbins in
11285         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11286         * lib/regcomp.c (build_range_exp) [!_LIBC]:
11287         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
11288         Implement rational ranges.
11290         regex: avoid redefining __wctype
11291         Reported by Aharon Robbins in
11292         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11293         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
11294         #undef before defining.
11296         regex: port to hosts where malloc (0) == NULL
11297         Reported by Aharon Robbins in
11298         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11299         * lib/regex_internal.c (re_node_set_alloc):
11300         Don't assume that malloc (0) yields nonnull.
11301         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
11302         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
11303         * modules/regex (Files): Add m4/eealloc.m4.
11305         regex: port to C89
11306         Reported by Aharon Robbins in
11307         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
11308         * lib/regcomp.c (init_word_char): Declaration before statement.
11310         regex: merge glibc changes
11311         Also, copy the license wording from glibc.  This simplifies
11312         merging changes.  gnulib-tool will change the wording to GPL as
11313         appropriate, when importing it to other packages.  The only
11314         glibc change made since the last merge, which needs merging, is:
11315         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
11316         * lib/regex_internal.h (gettext): Remove use of INTUSE.
11318         * users.txt: Add Emacs.
11320         doc: omit mention of version when not needed
11321         * doc/gnulib-intro.texi (Portability and Application Code):
11322         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
11323         Don't mention particular dates or versions when not necessary, so
11324         that the documentation won't go out of date so quickly.
11326         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
11328 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
11330         bootstrap: pass --force to autoreconf.
11331         * build-aux/bootstrap (AUTORECONFFLAGS): New.
11332         Add "--force" so that Automake's ylwrap and other such tools
11333         be updated at each bootstrap invocation.
11334         Use it.
11336 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11338         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
11339         The earlier patch forgot to update one of the #if conditions, causing
11340         a problem on Debian testing i386 reported by Mats Erik Andersson
11341         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
11342         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
11343         (__argp_fmtstream_puts, argp_fmtstream_puts)
11344         (__argp_fmtstream_write, argp_fmtstream_write)
11345         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
11347         * doc/gnulib-readme.texi: Minor fixups.
11348         (Portability guidelines): Modernize URLs.  Remove some repetition.
11349         (Indent with spaces not TABs): Reword to avoid too-long lines.
11350         Remove some '@ifset standalone' stuff that isn't used.
11352         * doc/gnulib-readme.texi (Portability guidelines):
11353         ctype.h, not ctime.h.
11355         Correct name of POSIX.1-2001.
11356         * doc/posix-functions/fgetc.texi (fgetc):
11357         * doc/posix-functions/fgets.texi (fgets):
11358         * doc/posix-functions/fread.texi (fread):
11359         * doc/posix-functions/fscanf.texi (fscanf):
11360         * doc/posix-functions/getc.texi (getc):
11361         * doc/posix-functions/getchar.texi (getchar):
11362         * doc/posix-functions/scanf.texi (scanf):
11363         POSIX.1-2001, not POSIX-2001.
11365         doc: move README into manual
11366         * README: Move contents to new file doc/gnulib-readme.texi.
11367         Replace with a one-line summary.
11368         * doc/gnulib.texi (Brief Overview): New section,
11369         with old intro preface.  Include gnulib-readme.texi for contents.
11370         (Philosophy): Rename from "Introduction", since this
11371         section no longer introduces the rest.  Write a new preface.
11372         * doc/gnulib-readme.texi: New file, with the old contents of
11373         README texinfo-ized.  This way, the README info appears
11374         in the online and printed manual.
11376 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
11378         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
11379         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
11380         c_vasprintf() prototype.
11382 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
11384         c-vasprintf: Fix "empty declaration" warning reported by GCC.
11385         * lib/c-vasprintf.h: Remove stray semicolon.
11387 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11389         gettext: avoid obsolete macro AM_PROG_MKDIR_P
11390         It is obsolete and is planned to be removed from Automake 1.14; see
11391         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
11392         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
11393         (installdirs-data, installdirs-data-yes):
11394         Use $(MKDIR_P), not $(mkdir_p).
11395         * m4/intl.m4 (AM_INTL_SUBDIR):
11396         * m4/po.m4 (AM_PO_SUBDIRS):
11397         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
11399 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11401         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
11402         On this platform, we are not optimizing but we are using
11403         the substitute for extern inlines, so compile as if
11404         C99-style extern inline, or a substitute, is available.
11405         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
11406         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
11407         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
11408         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
11409         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
11410         Declare as ARGP_FS_EI, not as extern.
11411         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
11412         (__option_is_short, _option_is_end, __option_is_end)
11413         [!_LIBC && __USE_EXTERN_INLINES]:
11414         Declare as ARGP_EI, not as extern.
11416 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11418         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
11419         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
11420         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
11421         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
11422         ...), as the latter is fatal with older Autoconfs.
11423         Problem reported and fix suggested by Eric Blake in thread starting at
11424         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
11426 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11428         AC_PROG_MKDIR_P: don't workaround if not buggy
11429         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
11430         Define only for Autoconf versions before 2.62.
11431         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
11432         undocumented m4_PACKAGE_VERSION, for consistency with the
11433         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
11434         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
11435         was introduced in 2.62.
11437 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
11439         New 'c-*printf' modules for formatted output in C locale.
11441         New module 'c-vasnprintf'.
11442         * modules/c-vasnprintf: New file.
11443         * lib/c-vasnprintf.c: New file.
11444         * lib/c-vasnprintf.h: New file.
11446         New module 'c-snprintf'.
11447         * modules/c-snprintf: New file.
11448         * modules/c-snprintf-tests: New file.
11449         * lib/c-snprintf.c: New file.
11450         * lib/c-snprintf.h: New file.
11451         * tests/test-c-snprintf.c: New file.
11452         * tests/test-c-snprintf.sh: New file.
11454         New module 'c-vsnprintf'.
11455         * modules/c-vsnprintf: New file.
11456         * modules/c-vsnprintf-tests: New file.
11457         * lib/c-vsnprintf.c: New file.
11458         * lib/c-vsnprintf.h: New file.
11459         * tests/test-c-vsnprintf.c: New file.
11460         * tests/test-c-vsnprintf.sh: New file.
11462         New module 'c-vasprintf'.
11463         * modules/c-vasprintf: New file.
11464         * modules/c-vasprintf-tests: New file.
11465         * lib/c-asprintf.c: New file.
11466         * lib/c-vasprintf.c: New file.
11467         * lib/c-vasprintf.h: New file.
11468         * tests/test-c-vasprintf.c  +: New file.
11469         * tests/test-c-vasprintf.sh: New file.
11471         New module 'c-xvasprintf'.
11472         * modules/c-xvasprintf: New file.
11473         * modules/c-xvasprintf-tests: New file.
11474         * lib/c-xasprintf.c: New file.
11475         * lib/c-xvasprintf.c: New file.
11476         * lib/c-xvasprintf.h: New file.
11477         * tests/test-c-xvasprintf.c: New file.
11478         * tests/test-c-xvasprintf.sh: New file.
11480 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11482         argp: better 'inline'
11483         Use extern-inline module to declare extern inline functions.
11484         This avoids some bogus warning diagnostics.  Problem discovered
11485         when modifying GNU tar to use the manywarnings module.
11486         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
11487         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
11488         Define based on extern-inline.
11489         * modules/argp (Depends-on): Add extern-inline.
11491 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11493         filemode, sys_stat: Handle MPX files a la AIX.
11494         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
11495         * lib/sys_stat.in.h (S_ISMPX): New macro.
11496         * tests/test-sys_stat.c: Add tests for MPX files.
11498 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
11500         x-to-1: honor $PERL
11501         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
11502         a chance to use his preferred version of Perl.  This is typically
11503         required by Darwin users whose default /usr/bin/perl does not have all
11504         the libraries required by help2man, and who need to use their MacPorts
11505         installation of Perl instead.
11507 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
11509         gnu-web-doc-update: add all the new files, even in new directories
11510         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
11511         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
11512         Use it.
11513         (main): Don't use cvsutils to get the list of unknown files,
11514         just add all the existing files and directories.
11516 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
11518         gnu-web-doc-update: improve --help
11519         * build-aux/gnu-web-doc-update: Move comments into --help.
11521 2012-12-07  Eric Wong  <normalperson@yhbt.net>
11523         mountlist: recognize more "dummy" file systems
11524         * lib/mountlist.c (ME_DUMMY_0):
11525         Add these dummy FS names to the list:
11526         - "debugfs" virtual filesystem for kernel debugging
11527         - "devpts" PTY slave filesystem
11528         - "devtmpfs" device filesystem on top of tmpfs/ramfs
11529         - "fusectl" control filesystem for FUSE
11530         - "mqueue" enumerates POSIX message queues
11531         - "rpc_pipefs" kernel <-> userspace bridge for NFS
11532         - "sysfs" is for exporting kernel objects
11533         - "devfs" device filesystem for Linux 2.4 and FreeBSD
11535 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11537         extern-inline: avoid incompatibility with Darwin Libc
11538         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
11539         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
11540         Problem reported by Akim Demaille in
11541         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
11543 2012-12-11  Simon Josefsson  <simon@josefsson.org>
11545         gnupload: Work with GnuPG using gpg-agent (for smartcards).
11546         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
11547         let it handle password prompting.
11549 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
11551         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
11552         * lib/canonicalize.c (canonicalize_filename_mode):
11553         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
11554         fetching the current directory.  Don't overrun the beginning of
11555         rpath if there's no slashes after the MS-Windows drive letter.
11557 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
11559         maint.mk: avoid extra forks
11560         * top/maint.mk (_cfg_mk): The GNU make manual documents that
11561         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
11562         So use that instead of "$(shell test -f FILE && echo FILE)".
11564 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
11566         vasnprintf: fix ASCII_ONLY typo
11567         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
11568         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
11569         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
11570         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
11571         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
11573 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
11575         list, oset, xlist, xoset: fix extern inline issue with C99
11576         This was introduced by my recent changes for 'inline'.
11577         Problem reported for gettext by Daiki Ueno in
11578         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
11579         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
11580         (gl_list_nx_create, gl_list_size, gl_list_node_value)
11581         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
11582         (gl_list_previous_node, gl_list_get_at)
11583         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
11584         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
11585         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
11586         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
11587         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
11588         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
11589         (gl_list_iterator_free, gl_sortedlist_search)
11590         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
11591         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
11592         (gl_sortedlist_remove):
11593         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
11594         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
11595         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
11596         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
11597         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
11598         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
11599         (gl_list_add_at, gl_sortedlist_add):
11600         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
11601         Wrap these extern decls inside "#if 0", because they are implemented
11602         as inline functions, and extern inline is not what's wanted here.
11603         It would simplify these .h files to remove the extern decls entirely,
11604         although a downside would be less-clear separation between
11605         specification and implementation.
11607 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
11609         sys_stat: no 'static inline'
11610         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
11611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
11613         extern-inline: no 'static inline'
11614         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
11615         Do not require AC_C_INLINE.
11616         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
11617         'static inline', for older compilers.
11619         snippet/warn-on-use: no 'static inline'
11620         * build-aux/snippet/warn-on-use.h:
11621         Remove unnecessary 'inline' in comment.
11623         rbtree-list, rbtreehash-list: no 'static inline'
11624         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
11625         * lib/gl_anytree_list2.h (node_at):
11626         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
11627         (gl_oset_first, add_nodes_to_buckets):
11628         Now static, not static inline.
11630         regex: no 'static inline'
11631         * lib/regex_internal.c (calc_state_hash):
11632         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
11633         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
11634         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
11635         Now static, not static inline.
11636         (inline) [__GNUC__ < 3 && _LIBC]:
11637         Remove macro; no longer needed.
11639         xvasprintf: no 'static inline'
11640         * lib/xvasprintf.c (xstrcat):
11641         Now static, not static inline.
11642         * m4/xvasprintf.m4 (gl_XVASPRINTF):
11643         Do not require AC_C_INLINE.
11645         parse-datetime, parse-duration: no 'static inline'
11646         * lib/parse-datetime.y (to_uchar):
11647         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
11648         (scale_n_add):
11649         Now static, not static inline.
11650         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
11651         * modules/parse-duration (configure.ac):
11652         Do not require AC_C_INLINE.
11654         getaddrinfo: no 'static inline'
11655         * lib/getaddrinfo.c (validate_family):
11656         Now static, not static inline.
11657         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
11658         Do not require AC_C_INLINE.
11660         ftruncate, fts, lstat, openat, raise: no 'static inline'
11661         * lib/ftruncate.c (chsize_nothrow):
11662         * lib/fts.c (opendirat, diropen):
11663         * lib/lstat.c (orig_lstat):
11664         * lib/openat.c (orig_openat):
11665         * lib/raise.c (raise_nothrow):
11666         Now static, not static inline.
11667         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
11668         * m4/fts.m4 (gl_FUNC_FTS_CORE):
11669         * m4/lstat.m4 (gl_PREREQ_LSTAT):
11670         * m4/openat.m4 (gl_PREREQ_OPENAT):
11671         * m4/raise.m4 (gl_PREREQ_RAISE):
11672         Do not require AC_C_INLINE.
11674         fflush, stat: no 'static inline'
11675         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11676         (clear_ungetc_buffer, disable_seek_optimization)
11677         (restore_seek_optimization, update_fpos_cache):
11678         * lib/stat.c (orig_stat):
11679         Now static, not static inline.
11680         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
11681         (update_fpos_cache):
11682         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
11683         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
11684         * m4/stat.m4 (gl_PREREQ_STAT):
11685         Do not require AC_C_INLINE.
11687         error, filevercmp: no 'static inline'
11688         * lib/error.c (is_open, flush_stdout):
11689         * lib/filevercmp.c (order):
11690         Now static, not static inline.
11691         * m4/error.m4 (gl_PREREQ_ERROR):
11692         * modules/filevercmp (configure.ac):
11693         Do not require AC_C_INLINE.
11695         dup, execute, fatal-signal, etc.: no 'static inline'
11696         * lib/dup.c (dup_nothrow):
11697         * lib/execute.c (nonintr_close, nonintr_open):
11698         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
11699         * lib/fopen.c (orig_fopen):
11700         * lib/freadseek.c (freadptrinc):
11701         * lib/freopen.c (orig_freopen):
11702         * lib/fstat.c (orig_fstat, fstat_nothrow):
11703         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
11704         (get_rusage_as_via_iterator):
11705         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
11706         * lib/getdtablesize.c (_setmaxstdio_nothrow):
11707         * lib/isatty.c (_isatty_nothrow):
11708         * lib/open.c (orig_open):
11709         * lib/read.c (read_nothrow):
11710         * lib/sigprocmask.c (signal_nothrow):
11711         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
11712         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
11713         * lib/wait-process.c (unregister_slave_subprocess):
11714         * lib/write.c (write_nothrow):
11715         Now static, not static inline.
11716         * lib/spawn-pipe.c (nonintr_open): Define only if
11717         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
11718         * m4/dup.m4 (gl_PREREQ_DUP):
11719         * m4/execute.m4 (gl_EXECUTE):
11720         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
11721         * m4/fopen.m4 (gl_PREREQ_FOPEN):
11722         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
11723         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
11724         * m4/fstat.m4 (gl_PREREQ_FSTAT):
11725         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
11726         * m4/isatty.m4 (gl_PREREQ_ISATTY):
11727         * m4/open.m4 (gl_PREREQ_OPEN):
11728         * m4/read.m4 (gl_PREREQ_READ):
11729         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
11730         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
11731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
11732         * m4/wait-process.m4 (gl_WAIT_PROCESS):
11733         * m4/write.m4 (gl_PREREQ_WRITE):
11734         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
11735         Do not require AC_C_INLINE.
11737         c-strtod, memcoll, readutmp: no 'static inline'
11738         * lib/c-strtod.c (c_locale):
11739         * lib/memcoll.c (strcoll_loop):
11740         * lib/readutmp.c (desirable_utmp_entry):
11741         Now static, not static inline.
11742         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
11743         * m4/memcoll.m4 (gl_MEMCOLL):
11744         * m4/readutmp.m4 (gl_READUTMP):
11745         Do not require AC_C_INLINE.
11747         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
11748         * lib/arctwo.c (to_uchar):
11749         * lib/md4.c (set_uint32):
11750         * lib/md5.c (set_uint32):
11751         * lib/sha1.c (set_uint32):
11752         * lib/sha256.c (set_uint32):
11753         * lib/sha512.c (set_uint64):
11754         Now static, not static inline.  This is a bit simpler, and doesn't
11755         affect performance with GCC and default optimization.
11756         * m4/arctwo.m4 (gl_ARCTWO):
11757         * m4/md4.m4 (gl_MD4):
11758         * m4/md5.m4 (gl_MD5):
11759         * m4/sha1.m4 (gl_SHA1):
11760         * m4/sha256.m4 (gl_SHA256):
11761         * m4/sha512.m4 (gl_SHA512):
11762         Do not require AC_C_INLINE.
11764         cond, lock, thread: better 'inline'
11765         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
11766         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
11767         New macros.  Use them instead of static inline, for header functions.
11768         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
11769         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
11770         * lib/glthread/lock.c (gl_waitqueue_init)
11771         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
11772         * lib/glthread/thread.c (get_current_thread_handle):
11773         Change 'static inline' to 'inline'.
11774         * lib/glthread/cond.h, lib/glthread/thread.h:
11775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11776         * m4/cond.m4 (gl_COND):
11777         * m4/lock.m4 (gl_PREREQ_LOCK):
11778         * m4/thread.m4 (gl_THREAD):
11779         Do not require AC_C_INLINE.
11780         * modules/cond, modules/thread (Depends-on): Add extern-inline.
11782         chdir-long, cycle-check, savewd: better 'inline'
11783         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
11784         (find_non_slash):
11785         * lib/cycle-check.c (is_zero_or_power_of_two):
11786         * lib/savewd.c (savewd_delegating):
11787         Change 'static inline' to 'inline'.
11788         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
11789         Replace all remaining uses of 'static inline' with it.
11790         * lib/savewd.h:
11791         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11792         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
11793         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
11794         * m4/savewd.m4 (gl_SAVEWD):
11795         Do not require AC_C_INLINE.
11796         * modules/savewd (Depends-on): Add extern-inline.
11798         base32, base64: no need for 'inline'
11799         * lib/base32.c (to_uchar, get_8, decode_8):
11800         * lib/base64.c (to_uchar, get_4, decode_4):
11801         Change 'static inline' to 'inline'.
11802         * m4/base32.m4 (gl_PREREQ_BASE32):
11803         * m4/base64.m4 (gl_PREREQ_BASE64):
11804         Do not require AC_C_INLINE.
11806         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
11807         * lib/gl_array_oset.c (gl_array_nx_add_at):
11808         (gl_array_remove_at):
11809         * lib/gl_linkedhash_list.c (hash_resize_after_add)
11810         (add_to_bucket, remove_from_bucket):
11811         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
11812         Change 'static inline' to 'static', as it's simpler to omit
11813         'inline' unless there's a significant performance advantage.
11815         list, oset, xlist, xoset, xsublist: simplify via extern inline
11816         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
11817         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
11818         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
11819         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
11820         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
11821         New macro.  Replace all uses of 'static inline' with it.
11822         [HAVE_INLINE]: Implement functions as *_INLINE functions,
11823         instead of as macros FOO that are defined to static inline
11824         functions FOO_inline.
11825         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
11826         * lib/gl_xsublist.c:
11827         Reimplement from scratch, by defining the corresponding *_INLINE
11828         macro and including the corresponding .h file.  This is simpler.
11829         * modules/list, modules/oset, modules/xlist, modules/xoset:
11830         (Files): Remove m4/gl_list.m4.
11831         (configure.ac): Remove gl_LIST.
11832         * m4/gl_list.m4: Remove.
11833         * modules/list, modules/oset, modules/xlist, modules/xoset:
11834         * modules/xsublist:
11835         (Depends-on): Depend on extern-inline, not inline.
11837         xalloc: better 'inline'
11838         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
11839         New macro.  Replace all uses of 'static inline' with it.
11840         (static_inline): Remove.
11841         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
11842         Let 'extern inline' do the work automatically, instead of doing
11843         it by hand.
11844         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
11845         Remove.  All uses removed.
11846         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
11848         gethrxtime: better 'inline'
11849         * lib/xtime.c: New file.
11850         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
11851         * lib/xtime.h (XTIME_INCLUDE):
11852         New macros.  Replace all uses of 'static inline' with them.
11853         * lib/gethrxtime.c (gethrxtime): Define only if
11854         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
11855         this source file is now always compiled, because of the extern inline.
11856         * lib/gethrxtime.h, lib/xtime.h:
11857         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11858         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
11859         if gethrtime works, as they're not needed in that case.
11860         (gl_XTIME): Do not require AC_C_INLINE.
11861         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
11862         compiled now.  Move the check into gl_GETHRXTIME.
11863         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
11864         (Depends-on): Add extern-inline.
11865         (configure.ac): gethrxtime is always compiled now.
11866         (lib_SOURCES): Add gethrxtime.c.
11868         wctype-h: better 'inline'
11869         * lib/wctype-h.c: New file.
11870         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
11871         New macro.  Replace all uses of 'static inline' with it.
11872         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11873         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
11874         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
11875         (Depends-on): Add extern-inline.
11877         unistd: better 'inline'
11878         * lib/unistd.c: New file.
11879         * lib/unistd.in.h (_GL_UNISTD_INLINE):
11880         New macro.  Replace all uses of 'static inline' with it.
11881         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11882         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
11883         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
11884         (Depends-on): Add extern-inline.
11886         sys_socket: better 'inline'
11887         * lib/sys_socket.c: New file.
11888         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
11889         New macro.  Replace all uses of 'static inline' with it.
11890         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
11892         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
11893         (Depends-on): Add extern-inline.
11895         stdio: better 'inline'
11896         * lib/stdio.c: New file.
11897         * lib/stdio.in.h (_GL_STDIO_INLINE):
11898         New macro.  Replace all uses of 'static inline' with it.
11899         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11900         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
11901         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
11902         (Depends-on): Add extern-inline.
11904         sigaction: better 'inline'
11905         * lib/sig-handler.c: New file.
11906         * lib/sig-handler.h (SIG_HANDLER_INLINE):
11907         New macro.  Replace all uses of 'static inline' with it.
11908         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11909         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
11910         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
11911         (Depends-on): Add extern-inline.
11913         selinux-h: better 'inline'
11914         * lib/se-context.c, lib/se-selinux.c: New files.
11915         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
11916         * lib/se-context.in.h (SE_CONTEXT_INLINE):
11917         New macro.  Replace all uses of 'static inline' with it.
11918         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11919         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
11920         New macro.  Replace all uses of 'static inline' with it.
11921         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11922         * modules/selinux-h (Files, lib_SOURCES):
11923         Add lib/se-context.c, lib/se-selinux.c.
11924         (Depends-on): Add extern-inline.
11925         (configure.ac): Do not require AC_C_INLINE.
11927         pthread: better 'inline'
11928         * lib/pthread.c: New file.
11929         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
11930         New macro.  Replace all uses of 'static inline' with it.
11931         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11932         * m4/pthread.m4 (gl_PTHREAD_CHECK):
11933         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
11934         * modules/pthread (Files): Add lib/pthread.c.
11935         (Depends-on): Add extern-inline.
11937         math: better 'inline'
11938         * lib/math.c: New file.
11939         * lib/math.in.h (_GL_MATH_INLINE):
11940         New macro.  Replace all uses of 'static inline' with it.
11941         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11942         * m4/math_h.m4 (gl_MATH_H):
11943         Do not require AC_C_INLINE.
11944         * modules/math (Files, lib_SOURCES):
11945         Add lib/math.c.
11946         (Depends-on): Add extern-inline.
11948         count-one-bits: better 'inline'
11949         * lib/count-one-bits.c: New file.
11950         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
11951         New macro.  Replace all uses of 'static inline' with it.
11952         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11953         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
11954         Do not require AC_C_INLINE.
11955         * modules/count-one-bits (Files, lib_SOURCES):
11956         Add lib/count-one-bits.c.
11957         (Depends-on): Add extern-inline.
11959         count-leading-zeros: better 'inline'
11960         * lib/count-leading-zeros.c: New file.
11961         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
11962         New macro.  Replace all uses of 'static inline' with it.
11963         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11964         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
11965         Do not require AC_C_INLINE.
11966         * modules/count-leading-zeros (Files, lib_SOURCES):
11967         Add lib/count-leading-zeros.c.
11968         (Depends-on): Add extern-inline.
11970         bitrotate: better 'inline'
11971         * lib/bitrotate.c: New file.
11972         * lib/bitrotate.h (BITROTATE_INLINE):
11973         New macros.
11974         Replace all uses of 'static inline' with them.
11975         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11976         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
11977         (Depends-on): Add extern-inline.
11978         (configure.ac): Do not require AC_C_INLINE.
11980 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
11982         maint.mk: avoid gratuitous failure
11983         Reported by Stefano Lattarini in
11984         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
11985         * top/maint.mk (public-submodule-commit): Quote more safely.
11987 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
11989         canonicalize, canonicalize-lgpl: support MS-Windows file names
11990         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
11991         for test cases, which it'd be nice to add at some point.
11992         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
11993         * lib/canonicalize.c (canonicalize_filename_mode):
11994         * lib/canonicalize-lgpl.c (__realpath):
11995         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
11996         slash is at the beginning of the file name.  Use ISSLASH, instead
11997         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
11998         the first character with '/'.  Test for
11999         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
12000         with a drive letter.
12001         * lib/canonicalize.c (SLASHES): New macro.
12002         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
12004 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
12006         fts: introduce FTS_VERBATIM
12007         * lib/fts_.h (FTS_VERBATIM): New bit flag.
12008         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
12009         * lib/fts.c (fts_open): Honor it.
12011 2012-11-09  Pádraig Brady  <P@draigBrady.com>
12013         getlogin-tests: allow errno == ENXIO
12014         * tests/test-getlogin.c (main): Skip tests if getlogin fails
12015         with errno == ENXIO (No controlling tty).
12016         getlogin_r-tests: Likewise. Also allow errno == ENOENT
12017         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
12018         with errno == ENOENT.  This was reported to happen in various
12019         situations on GNU/Linux.
12021 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12023         getlogin-tests: allow errno == ENOENT
12024         * tests/test-getlogin.c (main): Skip tests if getlogin fails
12025         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
12026         when running a test in an Emacs shell buffer.
12028 2012-11-08  Jim Meyering  <jim@meyering.net>
12030         tests/nap.h: avoid warning about unused variable
12031         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
12033         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
12034         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
12035         white space before each of the special-cased file names, to avoid
12036         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
12037         in http://bugs.gnu.org/12830.
12039 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
12041         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
12042         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
12043         fails with errno == EBADF when fd is opened with O_PATH.
12044         Reported by Jim Meyering in
12045         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
12046         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
12047         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
12049 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12051         test-utimens: speed up by taking shorter naps
12052         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
12053         New functions.
12054         (nap): Use them, to do a better job of guessing the delay.
12055         On Fedora 17 with ext4 atop md atop hard disks, this made
12056         test-utimens run 10x faster, because the test napped for
12057         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
12058         <http://bugs.gnu.org/12820#11>.
12060 2012-11-07  Jim Meyering  <jim@meyering.net>
12062         mountlist.c: fix a compilation failure
12063         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
12064         I introduced while transforming commit v0.0-7683-g613bcb6
12066 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12068         errno: port to LynxOS 178 2.2.2
12069         Problem reported by Joel Brobecker in
12070         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
12071         * doc/posix-headers/errno.texi (errno.h): Document this.
12072         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
12073         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
12074         Supply a string for EILSEQ.
12075         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
12077 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12079         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
12080         Linux kernel 2.6.39 introduced O_PATH (see
12081         <http://lwn.net/Articles/433854/>) and this is a better fallback
12082         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
12083         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
12084         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
12085         * lib/fcntl.in.h (O_ACCMODE):
12086         * tests/test-fcntl-h.c (main):
12087         Do not reject O_ACCMODE merely because it has more than the
12088         minimal number of bits, as POSIX allows extensions here.
12090 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
12092         mountlist: do not classify a bind-mounted dir entry as "dummy"
12093         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
12094         the "none"-testing clause.
12095         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
12096         exception for bind-mounted directories.
12098 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
12100         quote: provide a means to escape strings with nul characters
12101         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
12102         (quote, quote_n): Rename formal arguments for consistency with
12103         quotearg.
12105 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12107         test-raise: don't assume 199 is an invalid signal
12108         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
12110         sh-quote-tests: port to Solaris 9
12111         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
12112         Problem reported by Dagobert Michelsen in
12113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
12115 2012-10-28  Jim Meyering  <jim@meyering.net>
12117         maint.mk: rename a new configurable variable
12118         * top/maint.mk (_gl_translatable_string_re): Rename from
12119         translation-markers: _gl_ prefix to insulate from user Makefile code,
12120         and the _re suffix to inform that it's a regular expression.
12122 2012-10-26  Eric Blake  <eblake@redhat.com>
12124         maint.mk: let packages tweak sc_po_check pattern
12125         * top/maint.mk (sc_po_check): Add translation-markers, to allow
12126         finding files with other translation markers.
12128 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12130         euidaccess: speed up 'configure' on GNU hosts
12131         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
12132         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
12133         it's needed only in this case.  Use AC_CHECK_DECLS, not
12134         AC_CHECK_DECLS_ONCE.
12135         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
12136         or AC_REQUIRE for AC_FUNC_GETGROUPS.
12138         * lib/regexec.c (re_search_internal): Fix grammar in comment.
12140 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12142         fchmodat, fchownat, fstatat: port to non-inlining compilers
12143         Problem reported for FreeBSD 9 by Jim Meyering in
12144         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
12145         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
12146         New files, which define FCHMODAT_INLINE etc.
12147         * lib/fchmodat.c (FCHMODAT_INLINE):
12148         * lib/fchownat.c (FCHOWNAT_INLINE):
12149         * lib/fstatat.c (FSTATAT_INLINE):
12150         Remove, as chmodat.c etc. now do this.
12151         * modules/fchmodat (Files): Add lib/chmodat.c.
12152         * modules/fchownat (Files): Add lib/chownat.c.
12153         * modules/fstatat (Files): Add lib/statat.c.
12155 2012-10-15  Jim Meyering  <jim@meyering.net>
12157         fchmodat.c, fchownat.c: compile-impeding typos
12158         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
12159         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
12160         Introduced in commit v0.0-7636-gd202279.
12162 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12164         fcntl-h: support GNU flags like O_IGNORE_CTTY
12165         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
12166         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
12167         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
12168         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
12169         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
12170         Define to 0 if not already defined.
12171         * tests/test-fcntl-h.c: Test these new flags.
12173 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12175         faccessat, etc.: support AT_FDCWD-only use
12176         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
12177         this function only if its first argument is AT_FDCWD.
12178         Emacs wants faccessat for AT_EACCESS but not for any first-arg
12179         values other than AT_FDCWD, so it doesn't want all the openat
12180         machinery with fchdir etc.
12181         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
12182         * modules/fstatat, modules/mkdirat, modules/openat (Files):
12183         * modules/unlinkat (Files):
12184         Remove lib/openat-priv.h, as at-internal supplies this file.
12185         Removing this file here allows us to support programs like Emacs
12186         that avoid at-internal.
12188         faccessat: speed up 'configure' on mainstream hosts
12189         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
12190         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
12191         since it's only on unusual platforms that we need to check for
12192         'access', and it's better not to slow 'configure' down on all
12193         platforms.
12195         faccessat: port to Solaris 10
12196         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
12197         Needed on Solaris 10, which doesn't have AT_EACCESS,
12198         so we need the Gnulib fcntl.h, which defines it.
12200 2012-10-14  Pádraig Brady  <P@draigBrady.com>
12201         canonicalize: fix C89 compilation
12202         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
12203         declarations so C89 is supported.  Also remove the comment
12204         referencing memorty allocation as the suggested feature could
12205         not be implemented as suggested.
12206         Reported by Michael Goffioul.
12208 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
12210         group-member: omit unnecessary dependencies
12211         This is for Emacs, which has its own allocator and where we
12212         don't want to use xalloc.
12213         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
12214         since we no longer use xmalloc.  Do not include stdbool.h, since
12215         the changes below happen to remove the only use of bool.
12216         (GROUPBUF_SIZE): New constant.
12217         (struct group_info): Remove n_groups member.  Add groupbuf member.
12218         This lets us get the groups without using malloc, usually.
12219         (free_group_info, get_group_info): Adjust to this.
12220         (get_group_info): Return the number of groups found, or -1 on error.
12221         Use plain malloc not xmalloc, and treat its failure as if there
12222         are no groups, as the user already loses in case of error.
12223         (group_member): Simplify, based on changes to get_group_info.
12224         * modules/group-member (Depends-on): Remove dependencies on
12225         xalloc and stdbool.  Add dependency on xalloc-oversized.
12227 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
12229         gethrxtime: port to C++
12230         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
12232 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
12234         ptsname: fix macro-name typo
12235         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
12237 2012-10-03  Simon Josefsson  <simon@josefsson.org>
12239         inttostr: Relax license.
12240         * modules/inttostr (License): Change from LGPL to LGPLv2+.
12242 2012-10-03  Eric Blake  <eblake@redhat.com>
12244         ptsname_r: support ptys returned by FreeBSD posix_openpt
12245         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
12246         lives in /dev/pts/.
12248 2012-10-02  Eric Blake  <eblake@redhat.com>
12250         pselect: reject invalid file descriptors
12251         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
12252         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
12253         * modules/pselect (Depends-on): Add dup2.
12254         * doc/posix-functions/pselect.texi (pselect): Document this.
12256         select: reject invalid file descriptors
12257         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
12258         * lib/select.c (rpl_select) [!win32]: Work around it.
12259         * modules/select (Depends-on): Add dup2.
12260         * doc/posix-functions/select.texi (select): Document this.
12262         select: enhance test
12263         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
12264         New functions.
12265         (test_function): Enhance test.
12266         (do_select_bad_fd): Avoid any stale errno values.
12268         ptsname: reject invalid file descriptors
12269         http://www.austingroupbugs.net/view.php?id=503
12270         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
12271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
12272         * modules/stdlib (Makefile.am): Replace witness.
12273         * lib/stdlib.in.h (ptsname): Allow for replacement.
12274         * modules/ptsname (configure.ac): Trigger replacement.
12275         * doc/posix-functions/ptsname.texi (ptsname): Document this.
12277 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
12279         hash-pjw-bare: new module
12280         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
12281         * lib/hash-pjw-bare.h: Likewise.
12282         * modules/hash-pjw-bare: New file.
12283         * MODULES.html.sh (Misc): Add it.
12285 2012-10-02  Eric Blake  <eblake@redhat.com>
12287         manywarnings: cater to more gcc infelicities
12288         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
12289         -Wuninitialized without -O.
12291 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
12293         select, poll tests: Make setsockopt invocation effective.
12294         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
12295         the bind() call.
12296         * tests/test-select.h (open_server_socket): Likewise.
12298 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
12300         sockets, sys_stat: restore AC_C_INLINE
12301         This undoes the 2012-09-22 patch.
12302         * m4/sockets.m4 (gl_SOCKETS):
12303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
12304         Restore AC_C_INLINE, since MSVC requires __inline or _inline
12305         and does not support plain 'inline'.  Reported by Bruno Haible in
12306         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
12308 2012-09-30  Bruno Haible  <bruno@clisp.org>
12310         localeconv tests: Avoid test failure on OpenIndiana.
12311         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
12312         skip the 'grouping' and 'mon_grouping' tests.
12313         Reported by Jim Meyering.
12315 2012-09-30  Bruno Haible  <bruno@clisp.org>
12317         havelib: Follow libtool developments.
12318         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
12319         Suggested by Simon Josefsson.
12321 2012-09-29  Jim Meyering  <meyering@redhat.com>
12323         fstatat.c: fix a compile-impeding typo
12324         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
12325         Introduced in commit v0.0-7636-gd202279.
12326         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
12328 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
12330         extern-inline: provide a -Wundef safe config.h
12331         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
12332         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
12333         to produce a -Wundef warning free config.h.
12335 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12337         hash-pjw: relax license to LGPLv2+
12338         * modules/hash-pjw (License): Relax, with consent of author.
12340 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
12342         maint.mk: fix strict vs. lazy variable issues with RELEASE
12343         * top/maint.mk (_equal): New function.
12344         (member_check): Strip the result to avoid spurious spaces.
12345         (url_dir_list): Do not use ifeq, which is strict, as it will
12346         require RELEASE_TYPE to be defined.
12347         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
12348         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
12349         (announcement_Cc_alpha,announcement_mail_headers_alpha)
12350         (announcement_Cc_beta,announcement_mail_headers_beta)
12351         (announcement_Cc_stable,announcement_mail_headers_stable): these.
12352         (release): Do not depend on $(release-type), as it forces its
12353         evaluation.  Bounce to it.
12355 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
12357         maint.mk: formatting changes
12358         * top/maint.mk: Indent bodies of if's.
12360 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
12362         maint.mk: factor the validation of RELEASE_TYPE
12363         With help from Jim Meyering.
12364         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
12365         * top/maint.mk (_empty, _sp): Move their definition earlier.
12366         (member-check, release-type): New.
12367         Use the latter instead of $(RELEASE_TYPE).
12368         Remove now useless local checks.
12370 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
12372         maint.mk: provide "make upload" to ease uploading
12373         See
12374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
12375         Do not depend simply on the current $(VERSION), as there may have been
12376         new commits since the tarball generation.  Rather, rely on $(RELEASE),
12377         as "make release-commit" already does.
12379         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
12380         "make TYPE".
12382         * top/maint.mk (upload_command, upload, release): New.
12383         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
12384         (VERSION): first word of $(RELEASE) is always right.
12385         (emit_upload_commands): Adjust.
12386         * top/README-release: Update.
12388 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
12390         maint.mk: silent rules
12391         With help from Stefano Lattarini.
12392         * top/maint.mk (writable-files): Use $(AM_V_GEN).
12393         (announcement): Use $(AM_V_at).
12395 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12397         localename: port gl_locale_name_thread_unsafe to FreeBSD
12398         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
12399         and use the simpler FreeBSD implementation on Mac OS X as well.
12400         Original idea suggested by Ed Maste in
12401         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
12403 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12405         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
12406         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
12407         * lib/mbuiter.c, lib/xsize.c: New files.
12408         * lib/binary-io.h (BINARY_IO_INLINE):
12409         * lib/eealloc.h (EEALLOC_INLINE):
12410         * lib/mbfile.h (MBFILE_INLINE):
12411         * lib/mbiter.h (MBITER_INLINE):
12412         * lib/mbuiter.h (MBUITER_INLINE):
12413         * lib/xsize.h (XSIZE_INLINE):
12414         New macros.
12415         Replace all uses of 'static inline' with them.
12416         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12417         * m4/eealloc.m4 (gl_EEALLOC):
12418         * m4/mbfile.m4 (gl_MBFILE):
12419         * m4/mbiter.m4 (gl_MBITER):
12420         * m4/xsize.m4 (gl_XSIZE):
12421         Do not require AC_C_INLINE.
12422         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
12423         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
12424         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
12425         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
12426         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
12427         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
12428         * modules/binary-io, modules/eealloc, modules/mbfile:
12429         * modules/mbiter, modules/mbuiter:
12430         (Depends-on): Add extern-inline.
12432         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
12433         * lib/pipe-filter-aux.c: New file.
12434         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
12435         Replace all uses of 'static inline' with it.
12436         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12437         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
12438         (filter_retcode): No real need for inline here.
12439         * modules/pipe-filter-gi, modules/pipe-filter-ii:
12440         (Files): Add lib/pipe-filter-aux.c.
12441         (Depends-on): Add extern-inline.
12442         (configure.ac): Do not require AC_C_INLINE.
12443         (lib_SOURCES): Add pipe-filter-aux.c.
12445         fdutimensat: omit unnecessary AC_C_INLINE
12446         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
12448         fchmodat, fchownat, fstatat: use extern-inline
12449         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
12450         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
12451         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
12452         New macros.
12453         * lib/openat.h:
12454         Replace all uses of 'static inline' with them.
12455         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12456         * modules/fchmodat, modules/fchownat, modules/fstatat:
12457         * modules/openat-h:
12458         (Depends-on):
12459         Add extern-inline.
12460         (configure.ac): Remove AC_C_INLINE.
12462         acl, mbchar, priv-set: use extern-inline
12463         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
12464         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
12465         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
12466         New macros.
12467         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
12468         Replace all uses of 'static inline' with it.
12469         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12470         * m4/acl.m4 (gl_FUNC_ACL):
12471         * m4/mbchar.m4 (gl_MBCHAR):
12472         * m4/priv-set.m4 (gl_PRIV_SET):
12473         Remove AC_C_INLINE, since 'inline' is no longer used directly.
12474         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
12475         Add extern-inline.
12477         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
12478         * m4/sockets.m4 (gl_SOCKETS):
12479         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
12480         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
12481         environments where it's already guaranteed to work, so we needn't
12482         check for it at 'configure'-time.
12484         tls-tests: omit unnecessary 'inline'
12485         * tests/test-tls.c (perhaps_yield): No longer inline.
12486         Simplicity and portability trump efficiency in test cases.
12488         utimens-tests: avoid unnecessary 'inline'
12489         * modules/fdutimensat-tests (configure.ac):
12490         * modules/futimens-tests (configure.ac):
12491         * modules/utimens-tests (configure.ac):
12492         * modules/utimensat-tests (configure.ac):
12493         Remove AC_C_INLINE.
12494         * tests/test-utimens-common.h (ctime_compare):
12495         No longer inline.  Simplicity and portability trump efficiency here.
12497         misc: don't limit commentary to inline functions
12498         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
12499         * lib/xalloc-oversized.h, lib/xsize.h:
12500         Contrast macros to functions in general, not just to inline functions,
12501         when the commentary does not apply only to inline functions.
12503 2012-09-20  Jim Meyering  <meyering@redhat.com>
12505         non-recursive-gnulib-prefix-hack: new module
12506         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
12507         the file that originated in Bison.
12508         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
12509         largely copied from a snippet that resided in bison's configure.ac.
12510         * modules/non-recursive-gnulib-prefix-hack: New file.
12511         * MODULES.html.sh (Support for maintaining and releasing projects):
12512         Add it.
12514 2012-09-18  Jim Meyering  <meyering@redhat.com>
12516         maint.mk: generalize _gl_tight_scope for non-recursive make
12517         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
12518         that *.h would describe additional .h files in the directory
12519         specified by $(_gl_TS_dir).  I.e., add this...
12520         (_gl_TS_other_headers): New variable.
12522         maint.mk: exempt trailing blanks found in "binary" files
12523         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
12524         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
12525         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12527 2012-09-17  Jim Meyering  <meyering@redhat.com>
12529         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
12530         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
12531         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
12532         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12534 2012-09-17  Jim Meyering  <meyering@redhat.com>
12536         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
12537         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
12538         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
12539         It is not in the same category as "exit (0)" or "exit (1)", and
12540         besides, I know of no symbolic name for that 77.  Reported by
12541         Richard W.M. Jones in
12542         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12544 2012-09-17  Jim Meyering  <meyering@redhat.com>
12546         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
12547         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
12548         all uses of #define, not just those that start in column 1.
12549         Richard W.M. Jones reported a false positive in
12550         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12552 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12554         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
12555         * lib/localcharset.c (locale_charset) [DARWIN7]:
12556         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
12557         as these two values are incompatible.  Problem reported by Max Horn.
12558         For more discussion, please see
12559         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
12561         doc: document sticky-EOF issue
12562         * doc/posix-functions/fgetc.texi (fgetc):
12563         * doc/posix-functions/fgets.texi (fgets):
12564         * doc/posix-functions/fread.texi (fread):
12565         * doc/posix-functions/fscanf.texi (fscanf):
12566         * doc/posix-functions/getc.texi (getc):
12567         * doc/posix-functions/getchar.texi (getchar):
12568         * doc/posix-functions/scanf.texi (scanf):
12569         Mention that glibc and default Solaris do not conform to
12570         C99 and POSIX-2001 or later, with respect to how getchar
12571         etc. behave when feof reports nonzero.
12573 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
12575         poll: fix poll(0, NULL, msec)
12576         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
12577         but nfd is 0.  In that case poll should behave like select.
12579 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
12580             Paolo Bonzini <bonzini@gnu.org>
12582         poll: fix for systems that can't recv() on a non-socket
12583         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
12584         is readable.  In this case POLLHUP will not be supported.
12585         * doc/posix-functions/poll.texi: Document this.
12587 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
12589         poll/select: document portability problems not fixed by Gnulib.
12590         * doc/posix-functions/poll.texi: poll does not work well on
12591         pipes under Windows.  It has the same limitations as select on
12592         BeOS.
12593         * doc/posix-functions/select.texi: select does not work well
12594         on pipes under Windows.
12596 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12598         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
12599         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
12600         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
12601         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
12603 2012-09-06  Eric Blake  <eblake@redhat.com>
12605         net_if: give more details about the bug being fixed
12606         * doc/posix-headers/net_if.texi: Add clarification.
12608 2012-09-05  Eric Blake  <eblake@redhat.com>
12610         net_if: new module
12611         * modules/net_if: New module, borrowing ideas from netinet_in.
12612         * m4/net_if_h.m4: New file.
12613         * lib/net_if.in.h: Likewise.
12614         * doc/posix-headers/net_if.texi (net/if.h): Document it.
12615         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12616         * tests/test-net_if.c: Make function checks conditional.
12617         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
12619 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12621         readutmp: fix non-portable UT_PID use
12622         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
12623         Use `UT_PID (u) > 0' as absolute condition.
12625 2012-09-04  Jim Meyering  <meyering@redhat.com>
12627         fts: reduce two or more trailing spaces to just one, usually
12628         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
12629         or more slashes, trim all but the final one.  But if a name consists
12630         solely of two slashes, don't modify it.  If it consists solely of
12631         three or more slashes, strip all but one.
12633         This is part of the solution to a minor problem with rm:
12634         it would print a bogus ELOOP diagnostic when failing to remove
12635         the slash-decorated name of a symlink-to-directory:
12637             $ mkdir d && ln -s d s && env rm -r s/
12638             rm: cannot remove 's': Too many levels of symbolic links
12640         With the change below and a trivial don't-trim-trailing-slashes
12641         adjustment to remove.c, it does this:
12643             $ env rm -r s/
12644             rm: cannot remove 's/': Not a directory
12646         Improved by: Eric Blake
12648         fts: when there is no risk of overlap, use memcpy, not memmove
12649         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
12651 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12653         stdbool: be more compatible with mixed C/C++ compiles
12654         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
12655         Define to bool, true, false, respectively, as GCC's builtin
12656         stdbool.h does.  Problem reported by Michael Goffioul in
12657         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
12659 2012-08-28  Jim Meyering  <meyering@redhat.com>
12661         revert last change: it was not needed
12662         * tests/test-vc-list-files-git.sh: There's already a test for
12663         a working git, just below.
12665 2012-08-28  Jim Meyering  <meyering@redhat.com>
12667         tests: test-vc-list-files-git.sh: skip if git is not available
12668         * tests/test-vc-list-files-git.sh: Skip this test when git is
12669         not available.
12671 2012-08-26  Bruno Haible  <bruno@clisp.org>
12673         gnulib-tool: Remove no-op option --no-changelog.
12674         * gnulib-tool (func_usage): Don't mention --no-changelog.
12675         (do_changelog): Remove variable.
12676         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12678 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12680         doc: remove fdl-1.2.texi
12681         It is no longer used or maintained, and its use of @acronym
12682         is problematic.  See the thread containing
12683         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
12684         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
12685         * doc/old-licenses/fdl-1.2.texi: Remove.
12687         execinfo: port to FreeBSD
12688         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
12689         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
12690         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
12691         * modules/execinfo (Link): Add $(LIB_EXECINFO).
12693 2012-08-23  Jim Meyering  <meyering@redhat.com>
12695         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
12696         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
12697         to placate gcc's -Wold-style-declaration.
12699 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12701         doc: do not use @acronym
12702         * doc/inet_ntoa.texi (inet_ntoa):
12703         * doc/parse-datetime.texi (Seconds since the Epoch)
12704         (Specifying time zone rules):
12705         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
12706         Don't use @acronym.  Problem reported by John Darlington in
12707         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
12709 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12711         stdnoreturn: port to newer GCCs
12712         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
12713         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
12714         Problem reported by Jim Meyering in
12715         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
12716         Also, rename the 'test' function to a void a clash with the
12717         already-supplied 'main' function; this fixes a bug that incorrectly
12718         rejected GCC 4.7.1's <stdnoreturn.h>.
12719         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12720         Document GCC problem.
12722 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
12724         pipe-filter: fix comment typo
12725         * lib/pipe-filter.h: Mention correct function.
12727 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12729         execinfo: new module
12730         This is for Emacs.  Currently, it provides a no-effect stub
12731         on all platforms where it does not already work.
12732         It already works on glibc-based systems, and on Solaris 11.
12733         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
12734         New files.
12735         * doc/glibc-headers/execinfo.texi (execinfo.h):
12736         * MODULES.html.sh (Misc): Document it.
12738 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12740         extern-inline: support old GCC 'inline'
12741         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
12742         if available.  This applies to GCC versions 2.7 through 4.2, or
12743         when newer GCC is using -fgnu89-inline.  The goal is to address
12744         some of the performance issues mentioned by Bruno Haible in
12745         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
12747 2012-08-20  Eric Blake  <eblake@redhat.com>
12749         maint.mk: avoid redundant file name in message
12750         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
12751         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
12752         (sc_makefile_path_separator_check): Remove bogus $(ME).
12754 2012-08-20  Mike Frysinger <vapier@gentoo.org>
12756         timer-time: fix link order when static linking on glibc
12757         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
12758         _after_ -lrt so that it's significant.
12760 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12762         timespec: omit unnecessary AC_C_INLINE
12763         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
12765         stat-time: omit unnecessary AC_C_INLINE
12766         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12767         Do not require AC_C_INLINE.
12769         ignore-value: omit unnecessary AC_C_INLINE
12770         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
12772         sys_select: avoid 'static inline'
12773         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
12775         mktime: avoid 'static inline'
12776         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
12777         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
12779 2012-08-19  Bruno Haible  <bruno@clisp.org>
12781         gnulib-tool: Improve coding style.
12782         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
12783         func_emit_lib_Makefile_am.
12784         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12786 2012-08-19  Bruno Haible  <bruno@clisp.org>
12788         gnulib-tool: Fix indentation.
12789         * gnulib-tool (func_import): Fix indentation.
12791 2012-08-19  Bruno Haible  <bruno@clisp.org>
12793         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
12794         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
12795         on the list of removed files.
12797 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12799         test-parse-datetime: avoid glibc leap-second glitch
12800         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
12801         with the 2012 rules.  Problem reported by Bruce Dubbs in
12802         <http://bugs.gnu.org/12206>.
12804 2012-08-14  Bruno Haible  <bruno@clisp.org>
12806         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
12807         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
12808         from argument.
12809         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12811 2012-08-14  Eric Blake  <eblake@redhat.com>
12813         ldexp: relax license
12814         * modules/ldexp (License): Trivial relax, since the module only
12815         provides a permissively licensed m4 file.
12817 2012-08-13  Bruno Haible  <bruno@clisp.org>
12819         gnulib-tool: Fix persistence of --witness-c-macro option.
12820         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
12821         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12823 2012-08-11  Eric Blake  <eblake@redhat.com>
12825         count-leading-zeros: use a lookup table on non-gcc compilers
12826         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
12827         alternate implementation, suggested by Jim Meyering.
12829 2012-08-10  Eric Blake  <eblake@redhat.com>
12831         count-leading-zeros: new module
12832         * modules/count-leading-zeros: New module.
12833         * m4/count-leading-zeros.m4: New file.
12834         * lib/count-leading-zeros.h: Likewise.
12835         * modules/count-leading-zeros-tests: New test.
12836         * tests/test-count-leading-zeros.c: New file.
12837         * MODULES.html.sh (Integer arithmetic functions): Document it.
12839 2012-08-07  Simon Josefsson  <simon@josefsson.org>
12840             Jim Meyering  <meyering@redhat.com>
12842         maintainer-makefile: Fix syntax error with dash.
12843         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
12844         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
12846 2012-08-05  Jim Meyering  <meyering@redhat.com>
12848         extern-inline: also ignore -Wmissing-declarations
12849         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
12850         required with gcc-4.8.0-to-be.
12852         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
12853         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
12854         for /error ?([^,]*)/.  This avoids false-positives for strings like
12855         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
12857 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
12859         gnumakefile: better interaction with Automake-NG
12860         * modules/gnumakefile [Makefile.am]: The makefiles generated by
12861         Automake-NG always contain a definition of VPATH, even in non-VPATH
12862         builds (its value being simply '.' in that case).  So, in the
12863         'clean-GNUmakefile' rule, to determine whether running under a
12864         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
12865         '$(VPATH)' expands to the empty string.
12867 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
12869         base64: Use extern C scope in header file, for C++.
12870         * lib/base64.h: Add C++ namespace protection.
12872 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
12874         stat-time, timespec, u64: support naive out-of-dir builds
12875         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
12876         Use '#include "foo.h"', not '#include <foo.h>', when including
12877         one's own interface.  This works better when configuring with
12878         out-of-directory builds, since packages need not add an
12879         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
12881 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
12883         utimens: use extern-inline
12884         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
12885         * lib/utimens.h: Add copyright notice, since this is now large enough
12886         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12887         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
12888         * modules/utimens (Depends-on): Add extern-inline.
12890         u64: use extern-inline
12891         * lib/u64.c: New file.
12892         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12893         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
12894         * modules/u64 (Files): Add lib/u64.c.
12895         (Depends-on): Add extern-inline.
12896         (configure.ac): No need to require AC_C_INLINE, since extern-inline
12897         does that now.
12898         (lib_SOURCES): Add u64.c.
12900         timespec: use extern-inline
12901         * lib/timespec.c: New file.
12902         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12903         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
12904         * modules/timespec (Files): Add lib/timespec.c.
12905         (Depends-on): Add extern-inline.
12906         (lib_SOURCES): Add timespec.c.
12908         stat-time: use extern-inline
12909         * lib/stat-time.c: New file.
12910         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12911         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
12912         * modules/stat-time (Files): Add lib/stat-time.c.
12913         (Depends-on): Add extern-inline.
12914         (lib_SOURCES): Add stat-time.c.
12916         extern-inline: new module
12917         * modules/extern-inline, m4/extern-inline.m4: New files.
12918         This is for better support of 'extern inline' a la ISO C99,
12919         with a portable alternative on compilers that do not support
12920         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
12921         of the Emacs executable, when compiled with debugging disabled,
12922         which is a typical way that Emacs is built while developing.
12924 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
12926         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
12927         * build-aux/do-release-commit-and-tag: Move variable definitions
12928         together.
12929         ($branch): Instead of defaulting to "master", default to the current
12930         branch (as gnu-web-doc-update does).
12931         (help): Display the current values of the option arguments.
12932         * top/maint.mk (release-commit): New.
12933         * top/README-release: Simplify the corresponding step.
12935 2012-07-30  Eric Blake  <eblake@redhat.com>
12937         passfd: fix comment on recvfd
12938         * lib/passfd.c (recvfd): Fix comment.
12939         Reported by Jann Horn <jannhorn@googlemail.com>.
12941 2012-07-30  Jim Meyering  <meyering@redhat.com>
12943         maint.mk: avoid a sub-shell
12944         * top/maint.mk (release-prep): Remove unneeded sub-shell.
12946 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12948         maint.mk: use silent-rules support from Automake
12949         * top/maint.mk (news-check, vc-diff-check, announcement)
12950         (no-submodule-changes, alpha beta stable, release-prep)
12951         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
12953 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12955         maint.mk: provide a web-manual-update target
12956         * top/maint.mk: here.
12957         * top/README-release: Use it to simplify the web manual update step.
12959 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12961         README-release: shorten the circuit to post a news
12962         * top/README-release: Point directly to the news submission form.
12964 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12966         gnu-web-doc-update: fix --help
12967         * build-aux/gnu-web-doc-update: The information "top level" was written
12968         twice.
12970 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12972         maint.mk: absolute VPATH issue
12973         * top/maint.mk (release-prep): Help Git find .git/.
12974         From Jim Meyering.
12976 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
12978         gitlog-to-changelog: fix previous change
12979         * build-aux/gitlog-to-changelog: Fix condition.
12980         Add missing ";".
12982 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
12984         gitlog-to-changelog: don't expect .git to be in $srcdir
12985         Reported by Bruno Haible.
12986         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
12987         * build-aux/gitlog-to-changelog (&git_dir_option): New.
12988         Use it.
12990 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
12992         maint.mk: absolute VPATH build fix
12993         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
12994         $(srcdir) is not a parent of $(builddir).
12996 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
12998         clean-temp: Fix memory leak.
12999         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
13000         'files' members of tmpdir.
13002 2012-07-27  Jim Meyering  <meyering@redhat.com>
13004         maint.mk: new rule: refresh-gnulib-patches
13005         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
13006         Use this rule to refresh them.
13007         * top/maint.mk (refresh-gnulib-patches): New rule.
13009 2012-07-24  Bruno Haible  <bruno@clisp.org>
13011         gnulib-tool: Fix handling of inctests variable.
13012         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
13013         Reported by Nick Bowler <nbowler@elliptictech.com>.
13015 2012-07-22  Bruno Haible  <bruno@clisp.org>
13017         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
13018         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
13019         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
13020         Remove exemption for getpass.h.
13021         Suggested by Eric Blake.
13023 2012-07-20  Eric Blake  <eblake@redhat.com>
13025         verify: document conflict with -Wnested-externs
13026         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
13028         maint.mk: forbid exit(-1)
13029         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
13031 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
13033         fsusage: port back to Solaris
13034         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
13035         error (fsd not declared) on Solaris 10.  Reported privately by
13036         Andrew Borodin.
13038 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
13040         gnu-web-doc-update: fix error messages
13041         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
13043         gnu-web-doc-update: check the requirements.
13044         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
13045         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
13046         * build-aux/bootstrap (find_tool): Comment change.
13048 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
13050         maint.mk: minor simplication.
13051         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
13052         for default values.
13054 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
13056         gitlog-to-changelog: VPATH build issues
13057         If builddir is not a subdirectory of srcdir, running git from it will
13058         fail.
13059         * build-aux/gitlog-to-changelog (--srcdir): New option.
13061 2012-07-15  Bruno Haible  <bruno@clisp.org>
13063         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
13064         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
13065         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
13066         Remove exemption for fpending.h.
13067         Suggested by Eric Blake.
13069 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13071         pthread_sigmask: fix bug on FreeBSD 9
13072         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
13073         Include string.h.
13074         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
13075         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
13076         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
13077         but pthread_sigmask (1729, NULL, NULL) returns zero.
13078         See <http://bugs.gnu.org/11884>.
13079         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
13080         by inspecting whether the main call changed the old mask.
13082 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
13084         README-release: make it more legible
13085         * top/README-release: Improve typography slightly.
13087 2012-07-15  Jim Meyering  <meyering@redhat.com>
13089         maint: require that each sc_... command start with "@"
13090         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
13091         "make sc_maint" helps us avoid this nit.
13093 2012-07-15  Jim Meyering  <meyering@redhat.com>
13095         maint.mk: add leading "@" to quiet new "make syntax-check" rule
13096         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
13098 2012-07-13  Eric Blake  <eblake@redhat.com>
13100         maint.mk: new syntax check for HAVE_DECL checks
13101         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
13102         * cfg.mk
13103         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
13104         Exempt some false positives.
13105         Based on a report by Karel Zak.
13107         argp: make HAVE_DECL usage consistent
13108         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
13109         macros, not whether they are defined.
13110         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
13111         convention with other declaration checks.
13112         Reported by Karel Zak, with suggestions from Paul Eggert.
13114         stat-time: relax license to LGPLv2+
13115         * modules/stat-time (License): Relax, with consent of all authors.
13117         strndup: fix m4 usage error
13118         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
13119         defined, to either 0 or 1.
13120         Reported by Karel Zak.
13122 2012-07-11  Jim Meyering  <meyering@redhat.com>
13124         maint: enable the sc_avoid_if_before_free syntax-check rule
13125         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
13126         (if_before_free_offenders_): Define.
13127         (if_before_free_basename_re_): Define.
13128         Exempt current files with useless if-before-free.
13130 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13132         gettext: do not assume '#define ... defined ...' behavior
13133         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
13134         Do not use '#define FOO ... defined BAR ...', as the C standard says
13135         it's not portable to expect that this works after macro expansion.
13136         Problem reported for gzip by Steven M. Schweda in
13137         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
13139 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
13141         getloadavg: clean out old Emacs and Autoconf cruft
13142         See Glenn Morris in <http://bugs.gnu.org/11905>.
13143         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
13144         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
13145         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
13146         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
13148 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
13150         bootstrap: let warn be like tests/init.sh's warn_
13151         Reported by Jim Meyering.
13152         * build-aux/bootstrap (warn): Remove, replaced by...
13153         (warnf_, warn_): these.
13154         Adjust callers.
13155         Shorten messages that no longer fit in 80 columns.
13157 2012-07-09  Bruno Haible  <bruno@clisp.org>
13159         getopt: Simplify after Emacs changed.
13160         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
13161         (gl_GETOPT_IFELSE): Remove macro.
13163 2012-07-09  Jim Meyering  <meyering@redhat.com>
13165         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
13166         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
13168         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
13169         Bugs in both of those conspired to make the
13170         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
13171         _sc_search_regexp's handling of non-empty $in_files would filter
13172         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
13173         choice of in_files value meant there would be no match in most
13174         projects, due to the presence of two or more Makefile.in files.
13175         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
13176         Fix a bug in how a non-empty $$in_files was processed:
13177         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
13178         in spite of the name, it's a regexp, not a list of file names.
13180 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13182         getloadavg, getopt: fix commentary re configure.in
13183         Autoconf is deprecating the name 'configure.in', so change it to
13184         to the new name 'configure.ac' in a couple of places.
13185         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
13186         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
13187         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
13188         Emacs has renamed it to configure.ac, and it no longer refers
13189         to these macros anyway.
13191         timespec: mark functions with const attributes
13192         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
13193         Mark with _GL_ATTRIBUTE_CONST.
13195 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
13197         canonicalize[-lgpl]: handle "guessing" values when cross-building
13198         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13199         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
13200         matches "*yes" instead of just "yes".  Regression introduced in commit
13201         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
13203 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
13204             Bruno Haible  <bruno@clisp.org>
13206         canonicalize: make the right guess when cross-compiling to GNU
13207         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
13208         determine whether cross-compiling to glibc systems, so as to
13209         include GNU/Hurd.
13211 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13213         timespec-sub: avoid duplicate include
13214         * lib/timespec-sub.c: Do not include <config.h> twice.
13215         Reported by Juanma Barranquero.
13217 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
13219         bootstrap: use a more consistent error reporting scheme
13220         * build-aux/bootstrap (warn, die): New.
13221         Use them.
13223 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13225         sys_time: allow too-wide tv_sec
13226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
13227         timeval even if tv_sec is wider than time_t.  This allows
13228         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
13229         as without this patch gnulib replaces struct timeval
13230         and OpenBSD futimes therefore has a type mismatch.
13231         * doc/posix-headers/sys_time.texi: Mention this.
13233         pthread: check for both pthread_create and pthread_join
13234         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
13235         alter the check so that it tests for both pthread_create and
13236         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
13237         Suggested by Bruno Haible and Richard Yao in
13238         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
13240         parse-datetime: doc tuneup
13241         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
13242         spacing issues.
13244 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
13246         do-release-commit-and-tag: fix the previous commit
13247         * build-aux/do-release-commit-and-tag: Actually the test was right,
13248         but the comment and the error message were misleading.
13249         Fix comment, and improve error message.
13250         Perform check first, so that NEWS is not modified uselessly.
13252         do-release-commit-and-tag: fix typo
13253         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
13254         _not_ start with a stub.
13256 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13258         pthread: check for pthread_create, not pthread_join
13259         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
13260         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
13261         pthread_join in libc.  I hope this removes the need for all the
13262         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
13263         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
13265 2012-07-04  Jim Meyering  <meyering@redhat.com>
13267         parse-datetime: fix failure to diagnose invalid input
13268         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
13269         rather than diagnosing the invalid input.  Now it reports this:
13270         date: invalid date '\260'
13271         * lib/parse-datetime.y (to_uchar): Define.
13272         (yylex): Don't sign-extend "other" bytes.
13273         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
13274         Thanks to Bruno Haible for the patch to this file.
13275         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
13276         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
13278 2012-07-03  Jim Meyering  <meyering@redhat.com>
13280         bootstrap: do not require now-removed build-aux/missing
13281         Now that build-aux/missing is, er, missing, bootstrap would
13282         silently fail.
13283         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
13284         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
13285         no longer part of gnulib.
13286         Diagnose the failure.
13288 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13290         alloca: add support for HP NonStop TNS/E native
13291         * lib/alloca.in.h (alloca): Support the new host.
13292         From a suggestion by Joachim Schmitz in
13293         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
13295 2012-07-02  Pádraig Brady  <P@draigBrady.com>
13297         fsusage: remove code not needed on non GNU/Linux systems.
13299         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
13300         Don't include headers no longer needed in this case.
13301         * lib/fsusage.c [STAT_STATVFS &&
13302         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
13303         STAT_STATFS2_FRSIZE to exclude code not used in this case.
13305 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13307         fsusage: include files needed for glibc 2.6 fallback
13308         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
13309         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
13310         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
13311         Problem reported by Ludovic Courtès in
13312         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
13314         fsusage: avoid needless check on GNU/Linux
13315         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
13316         on GNU/Linux systems, since it can't possibly work.
13318 2012-07-01  Bruno Haible  <bruno@clisp.org>
13320         log: Fix an autoconf >= 2.64 warning.
13321         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
13322         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
13324 2012-06-28  Bruno Haible  <bruno@clisp.org>
13326         log10f: Fix possible configuration problem.
13327         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
13328         $LOGF_LIBM.
13329         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
13331 2012-06-28  Bruno Haible  <bruno@clisp.org>
13333         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
13334         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
13335         not gl_cv_func_unlink_works.
13336         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
13338 2012-06-27  Eric Blake  <eblake@redhat.com>
13340         config: drop scripts that automake says are not independent
13341         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
13342         * build-aux/elisp-comp: Delete.
13343         * build-aux/missing: Likewise.
13344         * build-aux/ylwrap: Likewise.
13345         * modules/elisp-comp: Likewise.
13346         * MODULES.html.sh: Drop mention of elisp-comp.
13347         * NEWS: Mention this.
13349 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13351         root-uid: new module
13352         This is for portability to Tandem's NonStop Kernel.
13353         * lib/root-uid.h, modules/root-uid: New files.
13354         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
13355         * lib/write-any-file.c, tests/test-sethostname2.c:
13356         Include "root-uid.h".
13357         * lib/euidaccess.c (euidaccess):
13358         * lib/pt_chown.c (main):
13359         * lib/unlinkdir.c (cannot_unlink_dir):
13360         * lib/write-any-file.c (can_write_any_file):
13361         * m4/mknod.m4 (gl_FUNC_MKNOD):
13362         * tests/test-sethostname2.c (geteuid, main):
13363         Don't assume ROOT_UID == 0.
13364         * modules/euidaccess (Depends-on):
13365         * modules/pt_chown (Depends-on):
13366         * modules/sethostname-tests (Depends-on):
13367         * modules/unlinkdir (Depends-on):
13368         * modules/write-any-file (Depends-on):
13369         Add root-uid.
13371         regex: use locale-independent comparison for codeset name
13372         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
13373         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
13374         for codeset name.
13375         * lib/regex_internal.h: Do not include <strings.h>, since we
13376         no longer use strcasecmp.
13377         * modules/regex (Depends-on): Remove strcase.
13379 2012-06-23  Bruno Haible  <bruno@clisp.org>
13381         getopt-posix: No longer guarantee that option processing is resettable.
13382         * doc/posix-functions/getopt.texi: Drop description of problem with
13383         internal state. Fix info about mingw and msvc9.
13384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
13385         option processing by getopt(). Run three test programs instead of one.
13386         Simplify cross-compilation guess.
13387         * NEWS: Mention the change.
13388         Reported by Rich Felker <dalias@aerifal.cx>.
13390 2012-06-26  Bruno Haible  <bruno@clisp.org>
13392         argp, regex: Ensure strcasecmp gets declared.
13393         * lib/argp-help.c: Include <strings.h>.
13394         * lib/regex_internal.h: Likewise.
13395         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
13397 2012-06-24  Bruno Haible  <bruno@clisp.org>
13399         ptsname_r: Make it consistent with ptsname on AIX.
13400         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
13401         implementation as for OSF/1.
13402         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
13403         a pty master.
13405         ptsname_r: Make it consistent with ptsname on OSF/1.
13406         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
13407         OSF/1.
13409 2012-06-24  Bruno Haible  <bruno@clisp.org>
13411         ttyname_r: Fix result on OSF/1, Solaris.
13412         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
13414 2012-06-24  Bruno Haible  <bruno@clisp.org>
13416         ptsname_r: Add support for Solaris.
13417         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
13418         Solaris.
13420         ptsname_r: Fix test failure on native Windows.
13421         * modules/ptsname_r (Depends-on): Add isatty.
13423         ptsname_r: Fix test failures on IRIX, Solaris.
13424         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
13425         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
13426         accordingly.
13427         * lib/ptsname_r.c: Include <fcntl.h>.
13428         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
13429         set errno if fd is invalid.
13430         * tests/test-isatty.c (main): Update comments.
13432 2012-06-24  Bruno Haible  <bruno@clisp.org>
13434         ptsname test: Extend test.
13435         * tests/test-ptsname.c: Include <errno.h>.
13436         (main): Test behaviour with invalid file descriptor.
13438 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13440         time: fix obsolete comment
13441         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
13442         reference to HAVE_STRUCT_TIMESPEC in comment.
13444 2012-06-23  Bruno Haible  <bruno@clisp.org>
13446         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
13447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
13448         does not handle abbreviated long options with equivalent
13449         disambiguations, set gl_replace_getopt to yes.
13450         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
13452 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13454         time_r: fix typo that always overrode localtime_r decl
13455         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
13456         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
13457         not in a standard include.
13459 2012-06-22  Bruno Haible  <bruno@clisp.org>
13461         Write "Mac OS X" instead of "MacOS X".
13462         * README: Write "Mac OS X" instead of "MacOS X".
13463         * build-aux/bootstrap: Likewise.
13464         * build-aux/install-reloc: Likewise.
13465         * lib/acl-internal.h: Likewise.
13466         * lib/acl_entries.c: Likewise.
13467         * lib/argp-ba.c: Likewise.
13468         * lib/argp-pv.c: Likewise.
13469         * lib/config.charset: Likewise.
13470         * lib/copy-acl.c: Likewise.
13471         * lib/csharpexec.c: Likewise.
13472         * lib/euidaccess.c: Likewise.
13473         * lib/fbufmode.c: Likewise.
13474         * lib/fflush.c: Likewise.
13475         * lib/file-has-acl.c: Likewise.
13476         * lib/filemode.h: Likewise.
13477         * lib/fpurge.c: Likewise.
13478         * lib/freadable.c: Likewise.
13479         * lib/freadahead.c: Likewise.
13480         * lib/freading.c: Likewise.
13481         * lib/freadptr.c: Likewise.
13482         * lib/freadseek.c: Likewise.
13483         * lib/fseeko.c: Likewise.
13484         * lib/fseterr.c: Likewise.
13485         * lib/fsusage.c: Likewise.
13486         * lib/fwritable.c: Likewise.
13487         * lib/fwriting.c: Likewise.
13488         * lib/get-rusage-as.c: Likewise.
13489         * lib/get-rusage-data.c: Likewise.
13490         * lib/getdomainname.c: Likewise.
13491         * lib/idpriv-drop.c: Likewise.
13492         * lib/idpriv-droptemp.c: Likewise.
13493         * lib/localcharset.c: Likewise.
13494         * lib/locale.in.h: Likewise.
13495         * lib/localename.c: Likewise.
13496         * lib/mbsrtowcs-state.c: Likewise.
13497         * lib/nproc.c: Likewise.
13498         * lib/passfd.c: Likewise.
13499         * lib/posix_openpt.c: Likewise.
13500         * lib/printf-parse.c: Likewise.
13501         * lib/progreloc.c: Likewise.
13502         * lib/safe-read.h: Likewise.
13503         * lib/safe-write.h: Likewise.
13504         * lib/sched.in.h: Likewise.
13505         * lib/set-mode-acl.c: Likewise.
13506         * lib/signal.in.h: Likewise.
13507         * lib/stdint.in.h: Likewise.
13508         * lib/stdio-impl.h: Likewise.
13509         * lib/stdlib.in.h: Likewise.
13510         * lib/strtod.c: Likewise.
13511         * lib/sys_select.in.h: Likewise.
13512         * lib/tcgetsid.c: Likewise.
13513         * lib/unistd.in.h: Likewise.
13514         * lib/unlockpt.c: Likewise.
13515         * lib/vasnprintf.c: Likewise.
13516         * lib/vma-iter.c: Likewise.
13517         * lib/wcsrtombs-state.c: Likewise.
13518         * m4/acl.m4: Likewise.
13519         * m4/acosl.m4: Likewise.
13520         * m4/asinl.m4: Likewise.
13521         * m4/atanl.m4: Likewise.
13522         * m4/c-stack.m4: Likewise.
13523         * m4/cosl.m4: Likewise.
13524         * m4/expl.m4: Likewise.
13525         * m4/extensions.m4: Likewise.
13526         * m4/fdatasync.m4: Likewise.
13527         * m4/fmal.m4: Likewise.
13528         * m4/frexp.m4: Likewise.
13529         * m4/frexpf.m4: Likewise.
13530         * m4/frexpl.m4: Likewise.
13531         * m4/fsusage.m4: Likewise.
13532         * m4/getdomainname.m4: Likewise.
13533         * m4/getloadavg.m4: Likewise.
13534         * m4/getopt.m4: Likewise.
13535         * m4/gettext.m4: Likewise.
13536         * m4/gnulib-common.m4: Likewise.
13537         * m4/intdiv0.m4: Likewise.
13538         * m4/intlmacosx.m4: Likewise.
13539         * m4/largefile.m4: Likewise.
13540         * m4/ldexpl.m4: Likewise.
13541         * m4/link-follow.m4: Likewise.
13542         * m4/locale-ar.m4: Likewise.
13543         * m4/locale-fr.m4: Likewise.
13544         * m4/locale-ja.m4: Likewise.
13545         * m4/locale-tr.m4: Likewise.
13546         * m4/locale-zh.m4: Likewise.
13547         * m4/locale_h.m4: Likewise.
13548         * m4/lock.m4: Likewise.
13549         * m4/logl.m4: Likewise.
13550         * m4/mathfunc.m4: Likewise.
13551         * m4/minus-zero.m4: Likewise.
13552         * m4/mktime.m4: Likewise.
13553         * m4/mmap-anon.m4: Likewise.
13554         * m4/multiarch.m4: Likewise.
13555         * m4/nanosleep.m4: Likewise.
13556         * m4/nocrash.m4: Likewise.
13557         * m4/poll.m4: Likewise.
13558         * m4/printf-frexpl.m4: Likewise.
13559         * m4/printf.m4: Likewise.
13560         * m4/signbit.m4: Likewise.
13561         * m4/sinl.m4: Likewise.
13562         * m4/sqrtl.m4: Likewise.
13563         * m4/strerror_r.m4: Likewise.
13564         * m4/tanl.m4: Likewise.
13565         * m4/threadlib.m4: Likewise.
13566         * m4/ttyname_r.m4: Likewise.
13567         * m4/unlink.m4: Likewise.
13568         * m4/visibility.m4: Likewise.
13569         * m4/wcwidth.m4: Likewise.
13570         * tests/minus-zero.h: Likewise.
13571         * tests/test-alloca-opt.c: Likewise.
13572         * tests/test-copy-acl.sh: Likewise.
13573         * tests/test-copy-file.sh: Likewise.
13574         * tests/test-fdatasync.c: Likewise.
13575         * tests/test-file-has-acl.sh: Likewise.
13576         * tests/test-flock.c: Likewise.
13577         * tests/test-fsync.c: Likewise.
13578         * tests/test-localename.c: Likewise.
13579         * tests/test-malloca.c: Likewise.
13580         * tests/test-nonblocking-pipe.h: Likewise.
13581         * tests/test-nonblocking-socket.h: Likewise.
13582         * tests/test-openpty.c: Likewise.
13583         * tests/test-posix_openpt.c: Likewise.
13584         * tests/test-ptsname.c: Likewise.
13585         * tests/test-ptsname_r.c: Likewise.
13586         * tests/test-sameacls.c: Likewise.
13587         * tests/test-select.h: Likewise.
13588         * tests/test-set-mode-acl.sh: Likewise.
13589         * tests/test-snprintf-posix.h: Likewise.
13590         * tests/test-sprintf-posix.h: Likewise.
13591         * tests/test-strtod.c: Likewise.
13592         * tests/test-time.c: Likewise.
13593         * tests/test-vasnprintf-posix.c: Likewise.
13594         * tests/test-vasprintf-posix.c: Likewise.
13595         * doc/acl-resources.txt: Likewise.
13596         * doc/**/*.texi: Likewise.
13597         Reported by Max Horn <max@quendi.de>.
13599 2012-06-22  Bruno Haible  <bruno@clisp.org>
13601         grantpt: Relax requirement regarding invalid file descriptors.
13602         * lib/grantpt.c: Don't include <fcntl.h>.
13603         (grantpt): Don't verify the validity of the file descriptor.
13604         * modules/grantpt (Depends-on): Remove fcntl-h.
13605         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
13606         file descriptors.
13607         * doc/posix-functions/grantpt.texi: Document more platforms on which
13608         grantpt succeeds for invalid file descriptors.
13609         Reported by Rich Felker <dalias@aerifal.cx>.
13611 2012-06-22  Bruno Haible  <bruno@clisp.org>
13613         fbufmode test: Don't test unportable behaviour.
13614         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
13615         (main): Invoke it three times.
13616         Reported by Szabolcs Nagy <nsz@port70.net>
13617         and Rich Felker <dalias@aerifal.cx>.
13619 2012-06-21  Bruno Haible  <bruno@clisp.org>
13621         gnulib-tool: Refactor inctests variable.
13622         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
13623         (func_modules_transitive_closure,
13624         func_modules_transitive_closure_separately,
13625         func_import, func_create_testdir): Update.
13627         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
13628         * gnulib-tool: Accept option --without-tests.
13629         (func_usage): Document --without-tests option. Rearrange.
13630         (inctests): Normalize according to the mode.
13631         * NEWS: Mention the change.
13632         Suggested by Simon Josefsson.
13634 2012-06-21  Bruce Korb  <bkorb@gnu.org>
13636         parse-duration test: Avoid spurious output.
13637         * tests/test-parse-duration.sh: Reindent with leading tabs.
13639 2012-06-21  Jim Meyering  <meyering@redhat.com>
13641         maint: disable the strncpy prohibition
13642         * cfg.mk: Do not prohibit strncpy here.
13644 2012-06-21  Bruno Haible  <bruno@clisp.org>
13646         nonblocking: Avoid compilation error on mingw64.
13647         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
13648         fscanf.
13649         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
13650         * modules/vfscanf (configure.ac): Likewise.
13651         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
13652         definition only if stdio.h has prepared it.
13653         Reported by Daniel P. Berrange <berrange@redhat.com>.
13655 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
13657         gnulib-tool: Use readlink if it is available.
13658         * gnulib-tool (func_readlink): Choose function more appropriately.
13660 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13662         posixtm-tests: port to buggy compiler
13663         Problem reported by Simon Josefsson in
13664         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
13665         * modules/posixtm-tests (Depends-on): Add stdint.
13666         * tests/test-posixtm.c (struct posixtm_test.t_expected):
13667         Now of type int_least64_t, not int64_t, both because that's
13668         what INT64_C returns and because int_least64_t works even
13669         on 72-bit hosts.
13670         (T): Use INT64_C on constants outside the traditional int range,
13671         to work around compiler bug noted by Simon.
13673         mktime: fix integer overflow in 'configure'-time test
13674         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
13675         after integer overflow.  Problem reported by Rich Felker in
13676         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
13677         Also, don't look for further instances of a bug if we've already
13678         found one instance; this helps 'configure' run faster.
13680 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
13682         tmpfile, clean-temp: Fix invocation of GetVersionEx.
13683         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
13684         GetVersionEx correctly.
13685         * lib/clean-temp.c (supports_delete_on_close): Likewise.
13687 2012-06-20  Bruno Haible  <bruno@clisp.org>
13689         fdopen: Allow implementations that don't reject invalid fd arguments.
13690         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
13691         succeeds.
13692         Reported by Rich Felker <dalias@aerifal.cx>.
13694 2012-06-20  Simon Josefsson  <simon@josefsson.org>
13696         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
13697         bring in LIBINTL.
13699 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13701         init.sh: do not rely on autoupated PWD
13702         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
13703         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
13704         Although Nelson's bug was not necessarily fixed by this patch,
13705         it seems wise to make the change for safety.
13706         * tests/init.sh (path_prepend_): Do not rely on PWD updating
13707         automagically after 'cd'; this is not reliable on older shells.
13708         (setup_): Fail if we cannot cd to temporary directory.
13710 2012-06-19  Bruno Haible  <bruno@clisp.org>
13712         stat, fstat: Avoid warnings on mingw64.
13713         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
13714         redefining.
13715         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
13716         Reported by Daniel P. Berrange <berrange@redhat.com>.
13718 2012-06-19  Bruno Haible  <bruno@clisp.org>
13720         stdioext: Add support for musl libc.
13722         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
13723         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
13725         * m4/fseterr.m4: New file.
13726         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
13727         function exists.
13728         * modules/fseterr (Files): Add m4/fseterr.m4.
13729         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
13730         __fseterr does not exist.
13731         (Makefile.am): Remove fseterr.c from lib_SOURCES.
13733         * lib/freadable.h: Update comment.
13735         * lib/fwritable.h: Update comment.
13737         * lib/freading.h: Update comment.
13739         * lib/fwriting.h: Update comment.
13741         * m4/freadahead.m4: New file.
13742         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
13743         that function exists.
13744         * modules/freadahead (Files): Add m4/freadahead.m4.
13745         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
13746         __freadahead does not exist.
13747         (Makefile.am): Remove freadahead.c from lib_SOURCES.
13749         * m4/freadptr.m4: New file.
13750         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
13751         function exists.
13752         * modules/freadptr (Files): Add m4/freadptr.m4.
13753         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
13754         __freadptr does not exist.
13755         (Makefile.am): Remove freadptr.c from lib_SOURCES.
13757         * m4/freadseek.m4: New file.
13758         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
13759         exists.
13760         * modules/freadseek (Files): Add m4/freadseek.m4.
13761         (configure.ac): Invoke gl_FUNC_FREADSEEK.
13763         * lib/fpurge.c (fpurge): Update comment.
13765         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
13767 2012-06-19  Bruno Haible  <bruno@clisp.org>
13769         *printf-posix: Put more info into config.log.
13770         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
13771         exit code into config.log.
13773 2012-06-19  Bruno Haible  <bruno@clisp.org>
13775         getopt-gnu: Fix exit code overflow in autoconf test.
13776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
13777         to keep them below < 128.
13779 2012-06-17  Jim Meyering  <meyering@redhat.com>
13781         maint.mk: fix typo in code to derive GPG key at release time
13782         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
13784 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13786         regex: avoid warning when pointers are not long
13787         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
13788         and uintptr_t, not long, for portability to hosts where pointers and
13789         long have different sizes.  Issue noted by Daniel P. Berrange in
13790         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
13791         and fix suggested by Bruno Haible in
13792         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
13794 2012-06-17  Bruno Haible  <bruno@clisp.org>
13796         dummy: Relicense into the public domain.
13797         * modules/dummy (License): Set to "public domain".
13798         Suggested by Reuben Thomas.
13800 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
13802         announce-gen: VPATH issues
13803         * build-aux/announce-gen (--srcdir): New option, used to trim the
13804         $srcdir part of the path from $builddir to NEWS.
13805         * top/maint.mk (announcement): Adjust.
13807 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
13809         gnu-web-doc-update: VPATH builds
13810         * build-aux/gnu-web-doc-update (--builddir): New option.
13811         Revamp the handling of options.
13812         Prefer $(...) to `...`.
13813         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
13814         the template, and it is GNU mktemp specific.
13815         Prefer set -e to long series of &&.
13816         Restore the initial git branch, not "master".
13817         Properly initialize submodules (don't rely only on bootstrap).
13818         Do not reconfigure blindly, use config.status.
13819         * top/README-release: Update instructions for gnu-web-doc-update.
13821 2012-06-11  Jim Meyering  <meyering@redhat.com>
13823         maint.mk: revert most of the previous change re "all these"
13824         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
13825         For rationale, see the discussion at
13826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
13828 2012-06-10  Karl Berry  <karl@gnu.org>
13830         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
13832         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
13834 2012-06-10  Bruce Korb  <bkorb@gnu.org>
13836         parse-duration: Relicense under LGPLv2+.
13837         * modules/parse-duration (License): Change to LGPLv2+.
13839 2012-06-10  Jim Meyering  <meyering@redhat.com>
13841         maint.mk: prohibit common grammar error: "all these"
13842         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
13843         the list of prohibited word sequences.  It should be "all of these".
13844         * lib/tempname.c (__gen_tempname): Fix one of them.
13846 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
13848         do-release-commit-and-tag: support VPATH builds
13849         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
13850         (noteworthy): Defined earlier to factor its value.
13851         (noteworthy_stub): New.
13852         Use it to factor.
13853         (help_version): Split into...
13854         (help, version): these.
13855         Adjust the option processing part.
13856         Support "--option=value" in addition to "--option value".
13857         (builddir): New.
13858         (--builddir): New option.
13859         * top/README-release: Document this.
13860         Reword slightly so that the reader cannot understand that he
13861         has to do these steps before calling do-release-commit-and-tag.
13863 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
13865         readme-release: also require announce-gen and maintainer-makefile
13866         * modules/readme-release (Depends-on): here.
13867         * modules/announce-gen, modules/do-release-commit-and-tag,
13868         modules/gnu-web-doc-update, modules/maintainer-makefile
13869         (Description): Point to readme-release.
13871 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
13873         maint.mk: fix VPATH issues.
13874         * top/maint.mk (news-check): GNU Make understand $< very well.
13875         (release-prep): NEWS is in $(srcdir).
13877 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
13879         readme-release: require the promoted modules.
13880         * modules/readme-release (Depends-on): Add
13881         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
13882         in this text.
13884 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
13885             Bruno Haible  <bruno@clisp.org>
13887         error, strerror-override: Support mingw64 from Fedora 17.
13888         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
13889         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
13890         EINPROGRESS.
13891         * lib/strerror-override.h (strerror_override): Test it.
13892         * lib/strerror-override.c (strerror_override): Likewise.
13893         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
13895 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
13896             Bruno Haible  <bruno@clisp.org>
13898         error, strerror-override: Support mingw64 from Fedora 17.
13899         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
13900         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
13901         * lib/strerror-override.h (strerror_override): Test it.
13902         * lib/strerror-override.c (strerror_override): Likewise.
13904 2012-06-03  Bruno Haible  <bruno@clisp.org>
13906         error, strerror-override: Support new errno values from POSIX:2008.
13907         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
13908         ENOTRECOVERABLE.
13909         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
13910         platforms.
13911         * lib/strerror-override.c (strerror_override): Conditionalize the
13912         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
13913         * lib/strerror-override.h (strerror_override): Declare also if
13914         GNULIB_defined_EOWNERDEAD is defined.
13915         * tests/test-errno.c (e130, e131): New variables.
13916         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
13917         ENOTRECOVERABLE.
13918         Reported by Paolo Bonzini.
13920 2012-05-31  Jim Meyering  <meyering@redhat.com>
13922         savewd: add missing dependency on sys_wait module
13923         * modules/savewd (Depends-on): Add sys_wait, needed at least
13924         for MSVC.  Report and suggested change by Michael Goffioul.
13926 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13928         system-quote-tests: port to CentOS 5
13929         Problem reported by Tom G. Christensen in
13930         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
13931         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
13933 2012-05-29  Jim Meyering  <meyering@redhat.com>
13935         maint: fix typos in comments and ChangeLog
13936         Culprits identified and fixed mostly automatically using these commands:
13937         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
13938         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
13939         using http://github.com/lyda/misspell-check
13940         * ChangeLog: Fix typos.
13941         * doc/solaris-versions: Likewise.
13942         * lib/regexec.c (re_search_stub): Likewise.
13943         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13945 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13947         manywarnings: remove duplicate -Wmultichar entry
13948         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
13949         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
13950         so keep the entry marked as documented.
13952 2012-05-27  Karl Berry  <karl@gnu.org>
13954         * config/srclist.txt (mktime.c): remove last libc sync,
13955         perhaps just temporarily.
13957 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13959         regex: don't assume uint64_t or uint32_t
13960         * lib/regcomp.c (init_word_char): Don't assume that the types
13961         uint64_t and uint32_t exist.  The C standard doesn't guarantee
13962         them, and on some 32-bit compilers there is no uint64_t.
13963         Problem reported by Gianluigi Tiesi in
13964         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
13966 2012-05-25  Jim Meyering  <meyering@redhat.com>
13968         maint.mk: add strncpy-prohibiting syntax-check rule
13969         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
13971 2012-05-24  Jim Meyering  <meyering@redhat.com>
13973         maint.mk: compute $(gpg_key_ID) more portably
13974         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
13975         That use of sed is not portable to some fringe systems.
13976         Reported by Paul Eggert in
13977         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
13979 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13981         mktime: sync from glibc
13982         * config/srclist.txt: Uncomment mktime.c.
13983         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
13984         First, indent with tabs, since glibc uses tabs and doesn't want to
13985         change and we'd rather be identical to glibc.  Also, two small
13986         coding changes:
13987         (isdst_differ): Use &&, not &, as && is the usual style.
13988         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
13989         for clarity.
13991 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
13993         announce-gen: du -h is more portable than du --human
13994         * build-aux/announce-gen (sizes): Invoke du with -h instead
13995         of --human.  Accept leading white space in its output.
13997 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
13999         announce-gen: Improve diagnostics.
14000         * build-aux/announce-gen: When parsing command line options,
14001         prefer "announce-gen: option --release-type requires an argument"
14002         to "Option release-type requires an argument".
14004 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
14006         maint.mk: gpg_key_ID: use sed more portably
14007         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
14008         the closing brace.
14009         (refresh-po): Fuse two sed invocations into one.
14011 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
14013         gitlog-to-changelog: support the log message format used in Bison.
14014         * build-aux/gitlog-to-changelog: Support --strip-tab and
14015         --strip-cherry-picked.
14017 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
14019         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
14020         the rest of the current time slice to another thread in the current
14021         process. So if the thread that feeds the file decscriptor we're
14022         polling is not in the current process, we get busy-waiting.
14023         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
14024         Patch from Theodore Leblond.
14025         * lib/select.c: Split polling out of the loop that sets the output
14026         fd_sets.  Check for zero result and loop if the wait timeout is
14027         infinite.
14029 2012-05-21  Simon Josefsson  <simon@josefsson.org>
14031         select: Fix build error on IRIX 6.5.
14032         * lib/select.c: Include stddef.h for NULL.
14034 2012-05-21  Simon Josefsson  <simon@josefsson.org>
14036         gc: fix libgcrypt detection on older machines.
14037         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
14038         copyright years because the file has been distributed every year
14039         since it was created.
14041 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
14043         crypto: fix bug in large buffer handling
14044         Problem reported by Serge Belyshev for glibc in
14045         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
14046         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
14047         * lib/md4.c (md4_process_block):
14048         * lib/md5.c (md5_process_block):
14049         * lib/sha1.c (sha1_process_block):
14050         * lib/sha256.c (sha256_process_block):
14051         Don't assume the buffer length is less than 2**32.
14052         * lib/sha512.c (sha512_process_block): Likewise.
14053         Here, the bug is present only in the rare case where the host does
14054         not support uint64_t or where size_t is wider than 64 bits.
14055         Use u64size to work around the problems.
14056         * lib/u64.h (u64size): New macro.
14058 2012-05-15  Pádraig Brady  <P@draigBrady.com>
14060         fsusage: fix block size returned on older Linux 2.6
14062         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
14063         which is available since Linux 2.6.
14064         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
14065         when the member is available so it can be used as a fallback.
14066         * doc/posix-functions/statvfs.texi: Mention the hang issue
14067         on Linux < 2.6.36.
14069 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14071         bootstrap: suppress stderr chatter
14072         * build-aux/bootstrap (insert_sorted_if_absent, main program):
14073         Omit unnecessary chatter to stderr.  The main program chatter
14074         was there only inadvertantly.
14076         bootstrap: .gitignore files created by autopoint, libtool
14077         I ran into this problem when bootstrapping the latest diffutils.
14078         After './bootstrap', 'git status' reported lots of untracked files
14079         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
14080         autopoint and do not need to be version-controlled.
14081         * build-aux/bootstrap: Put into .gitignore the files that
14082         autopoint and libtool create, by keeping track of files that exist
14083         after but not before these programs are run.
14084         (version_controlled_file): Move up.  2nd arg is now full file
14085         name, not base name; this is more convenient.  Put CVS at the end,
14086         as it's now somewhat deprecated.
14088 2012-05-14  Jim Meyering  <meyering@redhat.com>
14090         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
14091         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
14092         definition.  Reported by Bruno Haible.
14094 2012-05-13  Bruno Haible  <bruno@clisp.org>
14095             Paul Eggert  <eggert@cs.ucla.edu>
14097         binary-io: Define set_binary_mode function.
14098         * lib/binary-io.h (set_binary_mode): New function.
14099         (SET_BINARY): Define in terms of set_binary_mode.
14100         * modules/binary-io (configure.ac): Require AC_C_INLINE.
14101         * tests/test-binary-io.c (main): Accept an argument, and test either
14102         set_binary_mode or SET_BINARY depending on the argument.
14103         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
14104         argument. Clean up also t-bin-out0.tmp.
14106 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
14108         bootstrap: take advantage of POSIX shell features
14110         The 'bootstrap' script offered by Gnulib script already uses POSIX
14111         shell features (like $((...)) arithmetic expansions) that are not
14112         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
14113         means that bootstrap must already be run using a proper POSIX shell,
14114         which will thus provide more features, like ${var#pattern} parameter
14115         expansion or inversion of a command exit status with '!'.  We can
14116         thus use these features to improve the clarity and the performances
14117         of the bootstrap script.
14119         Suggested by Eric Blake.
14121         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
14122         of sed/expr plus command substitutions, to save some forks.  While
14123         we are at it, prefer the POSIX $(...) form of command substitution,
14124         rather than the legacy form `...` (since the former is visually
14125         clearer and interacts better with quoting), and prefer the idiom:
14126           "if ! CMD; then ACTION ..."
14127         over the idiom:
14128           "if CMD; then :; else ACTION ..."
14129         which was required by legacy Bourne shells not supporting '!'.
14131 2012-05-12  Bruno Haible  <bruno@clisp.org>
14133         system-quote: Add more comments.
14134         * lib/system-quote.h: Add more comments about wilcards and limitations.
14135         Suggested by Eli Zaretskii <eliz@gnu.org>.
14137         sh-quote, system-quote: Add comments about wildcards.
14138         * lib/sh-quote.h: Clarify what happens with wildcard characters.
14139         * lib/system-quote.h: Likewise.
14140         Reported by Eli Zaretskii <eliz@gnu.org>.
14142 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14144         fsusage: check for GNU/Linux statvfs problem dynamically
14145         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
14146         Define STAT_STATFS2_BSIZE too, since in this case the code now
14147         checks dynamically whether statvfs is reliable, falling back on
14148         Linux-style statfs otherwise.
14149         (statvfs_works): New function, for dynamically testing statvfs.
14150         (get_fs_usage) [STAT_STATVFS]: Use it.
14151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
14152         statvfs on GNU/Linux hosts, since it's now done dynamically.
14154 2012-05-10  Bruno Haible  <bruno@clisp.org>
14156         system-quote, execute, spawn-pipe: Escape '?' on Windows.
14157         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
14158         '?' character.
14159         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
14160         * tests/test-system-quote-main.c (check_all): Check also strings like
14161         "??????????".
14162         Reported by Eli Zaretskii <eliz@gnu.org>.
14164 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14166         _Noreturn: port config.h to gcc -Wundef
14167         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
14168         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
14169         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
14171 2012-05-10  Bruno Haible  <bruno@clisp.org>
14173         system-quote: Refactor.
14174         * lib/system-quote.h (system_quote_copy): Fix comment.
14175         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
14176         New functions, extracted from system_quote_copy.
14177         (system_quote_length, system_quote_copy): Use these functions.
14178         Reported by Paul Eggert.
14180 2012-05-08  Bruno Haible  <bruno@clisp.org>
14182         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
14183         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
14185 2012-05-08  Bruno Haible  <bruno@clisp.org>
14187         Tests for module 'system-quote'.
14188         * modules/system-quote-tests: New file.
14189         * tests/test-system-quote.sh: New file.
14190         * tests/test-system-quote-main.c: New file.
14191         * tests/test-system-quote-child.c: New file.
14193         New module 'system-quote'.
14194         * lib/system-quote.h: New file.
14195         * lib/system-quote.c: New file.
14196         * modules/system-quote: New file.
14198 2012-05-08  Bruno Haible  <bruno@clisp.org>
14200         sh-quote: Make C++ safe and allow multiple inclusion.
14201         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
14202         declarations in extern "C".
14204 2012-05-08  Bruno Haible  <bruno@clisp.org>
14206         sh-quote tests: Make tests stricter.
14207         * tests/test-sh-quote.c (check_one): Check the return value of
14208         shell_quote_copy.
14209         (main): Check a string with a CR character. Check a string that
14210         contains UCHAR_MAX.
14212 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
14214         warnings.m4: provide a means to specify the program to compile.
14215         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
14216         (gl_WARN_ADD): here.
14217         Use gl_AS_VAR_APPEND.
14218         Support an argument to specify the program to compile.
14219         (gl_WARN_ADD): Accept an argument to specify the program to compile.
14220         AC_SUBST the WARN_CFLAGS when they are used.
14221         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
14222         leave this to gl_WARN_ADD.
14224 2012-05-08  Eric Blake  <eblake@redhat.com>
14226         doc: recommendations on gettext version
14227         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
14228         choice between versions.
14229         * DEPENDENCIES (gettext): Cover both approaches.
14231 2012-05-08  Jim Meyering  <meyering@redhat.com>
14233         init.sh: explain why EXEEXT support uses aliases rather than functions
14234         * tests/init.sh: Add a comment.
14236         init.sh: don't let bash aliases interfere with tests
14237         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
14238         is bash.  This avoids problems for those who alias standard commands to
14239         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
14240         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
14242 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14244         stdint: be more consistent with glibc, SunOS libc
14245         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
14246         (gl_int_fast16_t, gl_uint_fast16_t)
14247         (gl_int_fast32_t, gl_uint_fast32_t)
14248         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
14249         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
14250         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
14251         Be consistent with glibc by default, and with SunOS 5.10 and later
14252         if __sun is defined.  This lessens the likelihood of clashes if
14253         code compiled for older hosts is combined with code compiled for
14254         newer ones.  Problem reported by Niels Möller in
14255         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
14257 2012-05-07  Eric Blake  <eblake@redhat.com>
14259         isatty: relax license to LGPLv2+
14260         * modules/isatty (License): Relax license.
14262 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
14264         stat-size: comment fix
14265         * lib/stat-size.h: Remove obsolete comment about indenting.
14267 2012-05-06  Bruno Haible  <bruno@clisp.org>
14269         Tests for module 'sh-quote'.
14270         * modules/sh-quote-tests: New file.
14271         * tests/test-sh-quote.c: New file.
14273 2012-05-06  Bruno Haible  <bruno@clisp.org>
14275         sh-quote: Improve shell_quote_argv's signature.
14276         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
14277         * lib/sh-quote.c (shell_quote_argv): Likewise.
14279 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
14281         stdint: document issues with int_fast8_t etc.
14282         * doc/posix-headers/stdint.texi (stdint.h): Say that other
14283         stdint.h substitutes may define these types differently.  See
14284         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
14286 2012-05-05  Bruno Haible  <bruno@clisp.org>
14288         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
14289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
14290         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
14291         or 'guessing no (mishandles large arguments)'.
14293 2012-05-05  Bruno Haible  <bruno@clisp.org>
14295         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
14296         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
14297         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
14298         set gl_cv_func_link_follows_symlink to "guessing no".
14300 2012-05-05  Bruno Haible  <bruno@clisp.org>
14302         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
14303         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
14304         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
14305         "guessing no".
14306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
14308 2012-05-05  Bruno Haible  <bruno@clisp.org>
14310         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
14311         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
14312         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
14313         set gl_cv_struct_dirent_d_ino to "guessing yes".
14315 2012-05-05  Bruno Haible  <bruno@clisp.org>
14317         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
14318         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
14319         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
14320         "guessing yes".
14322 2012-05-05  Bruno Haible  <bruno@clisp.org>
14324         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
14325         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
14326         compiling to a glibc system, set gl_cv_func_signbit and
14327         gl_cv_func_signbit_gcc to "guessing yes".
14329 2012-05-05  Bruno Haible  <bruno@clisp.org>
14331         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
14332         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
14333         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
14334         to "guessing yes".
14335         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
14336         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
14338 2012-05-05  Bruno Haible  <bruno@clisp.org>
14340         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
14341         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
14342         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
14343         gl_cv_func_realpath_works to "guessing yes".
14345 2012-05-05  Bruno Haible  <bruno@clisp.org>
14347         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
14348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
14349         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
14351 2012-05-04  Bruno Haible  <bruno@clisp.org>
14353         Tweak last commit.
14354         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
14355         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14357 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
14359         unistd_h: make it easier to avoid sys_types_h
14360         This is useful for Emacs, which has its own method of porting to
14361         Windows, and which therefore does not need the sys_types_h module.
14362         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
14363         code moved here from gl_SYS_TYPES_H.
14364         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
14365         using the code directly.
14366         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
14367         gl_SYS_TYPES_H.
14368         * modules/sys_types (Files):
14369         * modules/unistd (Files): Add m4/off_t.m4.
14371 2012-05-03  Bruno Haible  <bruno@clisp.org>
14373         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
14374         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
14375         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
14376         "guessing yes" or "guessing no".
14377         (gl_FUNC_LSTAT): Update.
14378         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
14379         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14380         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
14382 2012-05-03  Bruno Haible  <bruno@clisp.org>
14384         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
14385         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
14386         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
14387         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
14388         cross-compiling, choose the first alternative on glibc systems.
14389         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
14391 2012-05-03  Bruno Haible  <bruno@clisp.org>
14393         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
14394         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
14395         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
14397 2012-05-03  Bruno Haible  <bruno@clisp.org>
14399         chown: Avoid "guessing no" when cross-compiling to glibc systems.
14400         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
14402 2012-05-03  Bruno Haible  <bruno@clisp.org>
14404         Avoid "guessing no" guesses when cross-compiling to glibc systems.
14405         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
14406         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
14407         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
14408         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
14409         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
14410         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
14411         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
14412         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
14413         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
14414         compiling to glibc systems, set gl_cv_func_chown_slash_works,
14415         gl_cv_func_chown_ctime_works to "guessing yes".
14416         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
14417         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
14418         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
14419         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
14420         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
14421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
14422         compiling to glibc systems, set gl_cv_func_open_directory_works to
14423         "guessing yes".
14424         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
14425         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
14426         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
14427         "guessing yes".
14428         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
14429         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
14430         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
14431         compiling to glibc systems, set gl_cv_func_floorf_ieee to
14432         "guessing yes".
14433         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
14434         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
14435         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
14436         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
14437         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
14438         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
14439         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
14440         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
14441         "guessing yes".
14442         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
14443         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
14444         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
14445         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
14446         "guessing yes".
14447         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
14448         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
14449         "guessing yes".
14450         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
14451         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
14452         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
14453         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
14454         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
14455         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
14456         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
14457         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
14458         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
14459         compiling to glibc systems, set gl_cv_func_log10f_ieee to
14460         "guessing yes".
14461         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
14462         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
14463         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
14464         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
14465         "guessing yes".
14466         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
14467         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
14468         "guessing yes".
14469         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
14470         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
14471         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
14472         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
14473         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
14474         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
14475         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
14476         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
14477         compiling to glibc systems, set gl_cv_func_mkfifo_works to
14478         "guessing yes".
14479         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
14480         compiling to glibc systems, set gl_cv_func_mknod_works to
14481         "guessing yes".
14482         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
14483         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
14484         "guessing yes".
14485         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
14486         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
14487         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
14488         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
14489         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
14490         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
14491         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
14492         compiling to glibc systems, set gl_cv_func_svid_putenv to
14493         "guessing yes".
14494         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
14495         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
14496         "guessing yes".
14497         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
14498         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
14499         "guessing yes".
14500         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
14501         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
14502         to "guessing yes".
14503         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
14504         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
14505         to "guessing yes".
14506         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
14507         compiling to glibc systems, set gl_cv_func_rmdir_works to
14508         "guessing yes".
14509         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
14510         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
14511         gl_cv_func_unlink_parent_fails to "guessing yes".
14512         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
14513         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
14514         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
14515         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
14516         gl_cv_func_rename_dest_works to "guessing yes".
14517         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
14518         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
14519         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
14520         compiling to glibc systems, set gl_cv_func_roundf_ieee to
14521         "guessing yes".
14522         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
14523         compiling to glibc systems, set gl_cv_func_roundl_ieee to
14524         "guessing yes".
14525         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
14526         compiling to glibc systems, set gl_cv_func_setenv_works to
14527         "guessing yes".
14528         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
14529         compiling to glibc systems, set gl_cv_func_unsetenv_works to
14530         "guessing yes".
14531         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
14532         compiling to glibc systems, set gl_cv_func_sleep_works to
14533         "guessing yes".
14534         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
14535         compiling to glibc systems, set gl_cv_func_stat_file_slash to
14536         "guessing yes".
14537         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
14538         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
14539         "guessing yes".
14540         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
14541         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
14542         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
14543         compiling to glibc systems, set gl_cv_func_truncf_ieee to
14544         "guessing yes".
14545         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
14546         compiling to glibc systems, set gl_cv_func_truncl_ieee to
14547         "guessing yes".
14548         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
14549         compiling to glibc systems, set gl_cv_func_usleep_works to
14550         "guessing yes".
14551         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
14552         compiling to glibc systems, set gl_cv_func_futimesat_works to
14553         "guessing yes".
14555 2012-05-03  Bruno Haible  <bruno@clisp.org>
14557         Say "guessing yes" or "guessing no" when cross-compiling.
14558         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
14559         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
14560         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
14561         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
14562         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
14563         am_cv_func_working_getline to "guessing yes" or "guessing no".
14564         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
14565         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
14566         (gl_FUNC_MEMMEM): When cross-compiling, set
14567         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
14568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
14569         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
14570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
14571         set gl_cv_func_strcasestr_works_always to "guessing yes" or
14572         "guessing no".
14573         (gl_FUNC_STRCASESTR): When cross-compiling, set
14574         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
14575         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
14576         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
14577         (gl_FUNC_STRSTR): When cross-compiling, set
14578         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
14579         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
14580         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
14581         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
14582         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
14584 2012-05-01  Bruno Haible  <bruno@clisp.org>
14586         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
14587         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
14588         * build-aux/reloc-ldflags: Likewise.
14589         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
14591 2012-05-01  Bruno Haible  <bruno@clisp.org>
14593         gnulib-tool: Remove transitional code.
14594         * gnulib-tool: Don't warn about --import with 0 arguments any more.
14595         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14597 2012-05-01  Bruno Haible  <bruno@clisp.org>
14599         getcwd: Fix misindentation.
14600         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
14602 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14604         exclude: process exclude and include directives in order
14605         This restores the pre-2009 behavior, and is part of a fix of a
14606         grep bug reported by Quentin Arce in
14607         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
14608         * lib/exclude.c (struct exclude): Remove 'tail' member.
14609         (new_exclude_segment): Prepend the new segment instead of appending.
14610         Return void, since that's now more convenient.
14611         (file_pattern_matches): Renamed from excluded_file_pattern_p.
14612         (file_name_matches): Renamed from excluded_file_name_p.
14613         (file_pattern_matches, file_name_matches):
14614         Return true if the pattern matches, not if it excludes.
14615         All callers changed.
14616         (excluded_file_name): Process the list in reverse order;
14617         since the list is now reversed this restores the pre-2009 behavior.
14618         (add_exclude): Adjust to new reversed-order list.  Use local var
14619         rather than macro, for clarity.
14620         * tests/test-exclude7.sh: Adjust to corrected behavior.
14622         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
14623         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
14624         it's not possible here.  Handle the case of \ at end of pattern
14625         without dumping core.
14626         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
14628         _Noreturn: future-proof non-GNU and non-MSVC compilers
14629         * build-aux/snippet/_Noreturn.h (_Noreturn):
14630         * m4/gnulib-common.m4 (gl_COMMON_BODY):
14631         Do not define _Noreturn if __STDC_VERSION__ indicates this is
14632         C11 or later.  This is more likely to work with random future C
14633         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
14634         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
14636         exclude: handle wildcards with FNM_EXTMATCH
14637         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
14638         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
14639         comment that "has wildcards" really means "has or may have
14640         wildcards".  Simplify by avoiding the need to call strcspn.
14642 2012-04-29  Bruno Haible  <bruno@clisp.org>
14644         gnulib-tool: Fix list of authors.
14645         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
14647 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
14649         bootstrap: support Automake-NG in $buildreq
14650         * bootstrap (check_versions): Handle automake and aclocal from
14651         Automake-NG specially.  They can be specified as respectively
14652         the "automake-ng" and "aclocal-ng" requirements.
14654 2012-04-25  Eric Blake  <eblake@redhat.com>
14656         bootstrap: only force latest Makefile.in.in for gettext module
14657         * build-aux/bootstrap (with_gettext): Only install latest
14658         Makefile.in.in for projects requesting bleeding edge gettext.
14660 2012-04-22  Bruno Haible  <bruno@clisp.org>
14662         doc: Mention reason for replacement on glibc/Linux systems.
14663         * doc/posix-functions/dprintf.texi: Mention the problem with special
14664         'long double' values.
14665         * doc/posix-functions/fprintf.texi: Likewise.
14666         * doc/posix-functions/printf.texi: Likewise.
14667         * doc/posix-functions/snprintf.texi: Likewise.
14668         * doc/posix-functions/sprintf.texi: Likewise.
14669         * doc/posix-functions/vdprintf.texi: Likewise.
14670         * doc/posix-functions/vfprintf.texi: Likewise.
14671         * doc/posix-functions/vprintf.texi: Likewise.
14672         * doc/posix-functions/vsnprintf.texi: Likewise.
14673         * doc/posix-functions/vsprintf.texi: Likewise.
14674         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
14675         platforms with F_DUPFD_CLOEXEC problems.
14676         * doc/posix-functions/glob.texi: Mention which platforms are affected
14677         by the problem with symbolic links.
14678         * doc/posix-functions/linkat.texi: Mention the problem with
14679         AT_SYMLINK_FOLLOW on Linux.
14681 2012-04-22  Bruno Haible  <bruno@clisp.org>
14683         pwrite: Don't replace on all platforms.
14684         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
14686 2012-04-22  Bruno Haible  <bruno@clisp.org>
14688         rint* tests: Avoid gcc warnings.
14689         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
14690         * tests/test-rintf.c (INFINITY, NAN): Likewise.
14691         * tests/test-rintl.c (INFINITY, NAN): Likewise.
14693 2012-04-21  Bruno Haible  <bruno@clisp.org>
14695         users.txt: Update.
14696         * users.txt: Add freedink, wdiff. Update URLs for projects that have
14697         switched from CVS to git, bzr, or svn.
14699 2012-04-21  Bruno Haible  <bruno@clisp.org>
14701         Large File Support for native Windows platforms.
14703         * m4/largefile.m4 (gl_LARGEFILE): New macro.
14704         * modules/largefile (configure.ac): Require gl_LARGEFILE.
14706         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
14707         type.
14708         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
14709         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
14710         * doc/posix-headers/sys_types.texi: Mention the effect of the
14711         'largefile' module.
14713         * lib/fcntl.in.h: Add comments about off_t.
14714         * modules/fcntl-h (Depends-on): Add sys_types.
14716         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
14717         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
14718         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
14719         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
14720         * modules/unistd (Depends-on): Add sys_types.
14721         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
14723         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
14724         instead of lseek.
14725         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
14726         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
14727         * modules/lseek (Depends-on): Add sys_types.
14729         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
14730         msvc-nothrow.h.
14731         (SetFileSize): New function.
14732         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
14733         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
14734         if Large File Support is requested.
14735         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
14736         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
14738         * lib/stdio.in.h: Add comments about off_t.
14739         * modules/stdio (Depends-on): Add sys_types.
14741         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
14742         instead of ftello.
14743         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
14744         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
14745         (gl_PREREQ_FTELLO): New macro.
14746         * modules/ftello (Depends-on): Add sys_types.
14747         (configure.ac): Incoke gl_PREREQ_FTELLO.
14749         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
14750         instead of fseeko.
14751         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
14752         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
14753         (gl_PREREQ_FSEEKO): New macro.
14754         * modules/fseeko (Depends-on): Add sys_types.
14755         (configure.ac): Invoke gl_PREREQ_FSEEKO.
14757         * lib/sys_stat.in.h: Add comments about off_t.
14758         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
14759         64-bit integer for st_size in 'struct stat'.
14760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
14761         Define _GL_WINDOWS_64_BIT_ST_SIZE.
14762         * modules/sys_stat (Depends-on): Add sys_types.
14763         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
14765         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
14766         instead of stat or _stat.
14768         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
14769         'struct _stati64' instead of fstat and 'struct stat'.
14770         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
14771         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
14773         Reported by Ray Satiro <raysatiro@yahoo.com>.
14775 2012-04-19  Eric Blake  <eblake@redhat.com>
14777         bootstrap: accommodate older libtool
14778         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
14779         Reported by Daniel P. Berrange.
14781 2012-04-19  Jim Meyering  <meyering@redhat.com>
14783         announce-gen: avoid failure due to lack of Digest::SHA1
14784         Even with the preferred Digest::SHA available, this script
14785         would fail when the backup module, Digest::SHA1, was not installed.
14786         * build-aux/announce-gen: Quote the conditional use of "use".
14787         Reported by Reuben Thomas in:
14788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
14790         bootstrap: don't let a user's CDPATH setting affect this script
14791         When CDPATH is set, cd will sometimes generate output.
14792         When "cd" is run in a subshell whose output matters, that
14793         surprising-to-some output can cause malfunction.
14794         Unsetting CDPATH turns off this shell "feature."
14795         * build-aux/bootstrap (CDPATH): Unset.
14796         Reported by Reuben Thomas in:
14797         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
14798         and inspired by his patch here:
14799         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
14801 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
14802         and Jim Meyering  <meyering@redhat.com>
14804         maint.mk: catch "see @xref{}" and similar
14805         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
14806         prohibit "See also @xref{", "Also see @pxref{", and similar.
14808 2012-04-16  Jim Meyering  <meyering@redhat.com>
14810         bootstrap: really use gnulib's po/Makefile.in.in
14811         * build-aux/bootstrap: Correct the source file name in previous change.
14812         Reported by Akim Demaille.
14814         configmake: correct minor inconsistency in Makefile rule
14815         * modules/configmake (Makefile.am): All other rules like this one
14816         run the final "mv -f ..." in the same backslash-continued command
14817         as the one that does everything else.  This one put the mv -f ...
14818         command on a separate, non-backslash-continued line.
14819         Make it like the others.
14821         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
14822         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
14823         the one from gettext.  Reported by Akim Demaille.
14825 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
14827         Fix recursion of install-* into po directories.
14828         Bison's install-pdf bug reported by Hans Aberg at
14829         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
14830         * build-aux/po/Makefile.in.in (install-dvi, install-html)
14831         (install-info, install-pdf, install-ps): New targets.
14833 2012-04-16  Jim Meyering  <meyering@redhat.com>
14835         maint: avoid spurious "make sc_maint" failure
14836         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
14837         exempt all *.class file names, for lib/javaversion.class.
14839 2012-04-15  Bruno Haible  <bruno@clisp.org>
14841         lseek: Make configure test independent of environment.
14842         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
14843         Windows, we know that lseek() on pipes is broken; skip the runtime
14844         test.
14846 2012-04-14  Bruno Haible  <bruno@clisp.org>
14848         stat: Bypass buggy override in mingw64.
14849         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
14850         * lib/stat.c (stat) [mingw64]: Define to _stat.
14851         * doc/posix-functions/stat.texi: Mention mingw64 bug.
14853 2012-04-14  Bruno Haible  <bruno@clisp.org>
14855         pathmax: Fix compilation error on MSVC 9.
14856         * modules/pathmax (Depends-on): Add unistd.
14858 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14860         README: document pointer comparison assumption
14861         * README (Portability guidelines): Document assumption about
14862         pointer comparisons, in response to a recent bug-gnulib comment by
14863         Jeffrey Kegler.
14865 2012-04-12  Bruno Haible  <bruno@clisp.org>
14867         Tests for module 'getrusage'.
14868         * modules/getrusage-tests: New file.
14869         * tests/test-getrusage.c: New file.
14871         New module 'getrusage'.
14872         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
14873         warn-on-use.h.
14874         (getrusage): New declaration.
14875         * lib/getrusage.c: New file.
14876         * m4/getrusage.m4: New file.
14877         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
14878         is declared.
14879         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
14880         HAVE_GETRUSAGE.
14881         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
14882         snippet/c++defs, snippet/warn-on-use.
14883         (Makefile.am): Update generation of sys/resource.h. Substitute
14884         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
14885         * modules/getrusage: New file.
14886         * doc/posix-functions/getrusage.texi: Mention the new module.
14888 2012-04-12  Bruno Haible  <bruno@clisp.org>
14890         Tests for module 'sys_resource'.
14891         * modules/sys_resource-tests: New file.
14892         * tests/test-sys_resource.c: New file.
14894         New module 'sys_resource'.
14895         * lib/sys_resource.in.h: New file.
14896         * m4/sys_resource_h.m4: New file.
14897         * modules/sys_resource: New file.
14898         * doc/posix-headers/sys_resource.texi: Mention the new module.
14900 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
14902         ioctl: Fix compilation error on mingw.
14903         * lib/ioctl.c: Include <windows.h>.
14904         Also reported by Ray Satiro <raysatiro@yahoo.com>.
14906 2012-04-04  Jim Meyering  <meyering@redhat.com>
14908         regex: correct #pragma guard expression
14909         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
14910         not 4.3.  Correct its cpp guard expression.
14912 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14914         regex: remove unnecessary type punning
14915         Problem reported by Vladimir Serbinenko in
14916         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
14917         * lib/regex.h (struct re_pattern_buffer): Change the type of
14918         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
14919         Fix comment to match code.
14920         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
14921         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
14922         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
14923         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
14924         (set_regs):
14925         Omit no-longer-necessary casts.
14927 2012-04-03  Bruno Haible  <bruno@clisp.org>
14929         Tests for module 'ilogbl'.
14930         * modules/ilogbl-tests: New file.
14931         * tests/test-ilogbl.c: New file.
14933         New module 'ilogbl'.
14934         * lib/math.in.h (ilogbl): New declaration.
14935         * lib/ilogbl.c: New file.
14936         * m4/ilogbl.m4: New file.
14937         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
14938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
14939         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
14940         Split sed invocation, to avoid the limit of 100 substitutions of
14941         HP-UX 'sed'.
14942         * modules/ilogbl: New file.
14943         * tests/test-math-c++.cc: Check the declaration of ilogbl.
14944         * doc/posix-functions/ilogbl.texi: Mention the new module.
14946 2012-04-03  Bruno Haible  <bruno@clisp.org>
14948         Tests for module 'ilogbf'.
14949         * modules/ilogbf-tests: New file.
14950         * tests/test-ilogbf.c: New file.
14952         New module 'ilogbf'.
14953         * lib/math.in.h (ilogbf): New declaration.
14954         * lib/ilogbf.c: New file.
14955         * m4/ilogbf.m4: New file.
14956         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
14957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
14958         REPLACE_ILOGBF.
14959         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
14960         REPLACE_ILOGBF.
14961         * modules/ilogbf: New file.
14962         * tests/test-math-c++.cc: Check the declaration of ilogbf.
14963         * doc/posix-functions/ilogbf.texi: Mention the new module.
14965 2012-04-03  Bruno Haible  <bruno@clisp.org>
14967         Tests for module 'ilogb'.
14968         * modules/ilogb-tests: New file.
14969         * tests/test-ilogb.c: New file.
14970         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
14971         tests/test-logb-ieee.h.
14973         New module 'ilogb'.
14974         * lib/math.in.h (ilogb): New declaration.
14975         * lib/ilogb.c: New file.
14976         * m4/ilogb.m4: New file.
14977         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
14978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
14979         REPLACE_ILOGB.
14980         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
14981         REPLACE_ILOGB.
14982         * modules/ilogb: New file.
14983         * tests/test-math-c++.cc: Check the declaration of ilogb.
14984         * doc/posix-functions/ilogb.texi: Mention the new module.
14986 2012-04-03  Bruno Haible  <bruno@clisp.org>
14988         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
14989         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
14990         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
14991         (main): Check their values.
14992         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
14993         problem.
14995 2012-04-03  Bruno Haible  <bruno@clisp.org>
14997         Tests for module 'logbl-ieee'.
14998         * modules/logbl-ieee-tests: New file.
14999         * tests/test-logbl-ieee.c: New file.
15001         New module 'logbl-ieee'.
15002         * modules/logbl-ieee: New file.
15004         Tests for module 'logb-ieee'.
15005         * modules/logb-ieee-tests: New file.
15006         * tests/test-logb-ieee.c: New file.
15008         New module 'logb-ieee'.
15009         * modules/logb-ieee: New file.
15011         Tests for module 'logbf-ieee'.
15012         * modules/logbf-ieee-tests: New file.
15013         * tests/test-logbf-ieee.c: New file.
15014         * tests/test-logb-ieee.h: New file.
15016         New module 'logbf-ieee'.
15017         * modules/logbf-ieee: New file.
15019 2012-04-03  Bruno Haible  <bruno@clisp.org>
15021         Tests for module 'logbl'.
15022         * modules/logbl-tests: New file.
15023         * tests/test-logbl.c: New file.
15025         New module 'logbl'.
15026         * lib/math.in.h (logbl): New declaration.
15027         * lib/logbl.c: New file.
15028         * m4/logbl.m4: New file.
15029         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
15030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
15031         REPLACE_LOGBL.
15032         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
15033         REPLACE_LOGBL.
15034         * modules/logbl: New file.
15035         * tests/test-math-c++.cc: Check the declaration of logbl.
15036         * doc/posix-functions/logbl.texi: Mention the new module.
15038 2012-04-02  Bruno Haible  <bruno@clisp.org>
15040         Tests for module 'logbf'.
15041         * modules/logbf-tests: New file.
15042         * tests/test-logbf.c: New file.
15044         New module 'logbf'.
15045         * lib/math.in.h (logbf): New declaration.
15046         * lib/logbf.c: New file.
15047         * m4/logbf.m4: New file.
15048         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
15049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
15050         REPLACE_LOGBF.
15051         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
15052         REPLACE_LOGBF.
15053         * modules/logbf: New file.
15054         * tests/test-math-c++.cc: Check the declaration of logbf.
15055         * doc/posix-functions/logbf.texi: Mention the new module.
15057 2012-04-02  Bruno Haible  <bruno@clisp.org>
15059         logb tests: More tests.
15060         * tests/test-logb.h: New file, based on tests/test-logb.c and
15061         tests/test-frexp.h.
15062         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
15063         (main): Just invoke test_function.
15064         * modules/logb-tests (Files): Add tests/test-logb.h,
15065         tests/minus-zero.h, tests/randomd.c.
15066         (Makefile.am): Add randomd.c to test_logb_SOURCES.
15068         logb: Provide replacement and workarounds.
15069         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
15070         is 1.
15071         * lib/logb.c: New file.
15072         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
15073         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
15074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
15075         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
15076         * modules/logb (Files): Add lib/logb.c.
15077         (Depends-on): Add isfinite, frexp, isnand.
15078         (configure.ac): Compile the replacement code logb.c if needed.
15079         * tests/test-math-c++.cc: Check the declaration of logb.
15080         * doc/posix-functions/logb.texi: Mention the replacement and the bug
15081         with subnormal numbers.
15083 2012-04-02  Bruno Haible  <bruno@clisp.org>
15085         log10* tests: Speed up.
15086         * tests/test-log10.h (test_function): Reduce amount of random numbers
15087         to test.
15089 2012-04-01  Bruno Haible  <bruno@clisp.org>
15091         logf-ieee: Fix test whether logf works.
15092         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
15094 2012-04-01  Bruno Haible  <bruno@clisp.org>
15096         log10l: Work around log10l-ieee test failure on IRIX 6.5.
15097         * lib/log10l.c: Include <float.h>
15098         (log10l): On IRIX, normalize the +Infinity value.
15099         * modules/log10l (Depends-on): Add 'float'.
15100         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
15101         +Infinity.
15103         log10f-ieee: Work around test failure on NetBSD 5.1.
15104         * m4/log10f-ieee.m4: New file.
15105         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
15106         test whether log10f works with a negative argument. Replace it if not.
15107         * lib/log10f.c (log10f): For negative arguments, return NaN.
15108         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
15109         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
15110         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
15112         log10f-ieee: Work around test failure on Solaris 9.
15113         * modules/log10f-ieee (Depends-on): Add log10-ieee.
15114         (configure.ac): Require gl_FUNC_LOG10F.
15116         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
15117         * m4/log10-ieee.m4: New file.
15118         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
15119         whether log10 works with a negative argument. Replace it if not.
15120         * lib/log10.c (log10): For negative arguments, return NaN.
15121         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
15122         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
15123         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
15125         Tests for module 'log10l-ieee'.
15126         * modules/log10l-ieee-tests: New file.
15127         * tests/test-log10l-ieee.c: New file.
15129         New module 'log10l-ieee'.
15130         * modules/log10l-ieee: New file.
15132         Tests for module 'log10-ieee'.
15133         * modules/log10-ieee-tests: New file.
15134         * tests/test-log10-ieee.c: New file.
15136         New module 'log10-ieee'.
15137         * modules/log10-ieee: New file.
15139         Tests for module 'log10f-ieee'.
15140         * modules/log10f-ieee-tests: New file.
15141         * tests/test-log10f-ieee.c: New file.
15142         * tests/test-log10-ieee.h: New file.
15144         New module 'log10f-ieee'.
15145         * modules/log10f-ieee: New file.
15147 2012-04-01  Bruno Haible  <bruno@clisp.org>
15149         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
15150         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
15151         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
15152         workaround.
15153         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
15154         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
15155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
15156         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
15157         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
15158         (Depends-on): Update conditions.
15159         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
15160         IRIX 6.5, OSF/1 5.1 problems.
15162 2012-04-01  Bruno Haible  <bruno@clisp.org>
15164         log10f: Work around OSF/1 5.1 bug.
15165         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
15166         * lib/log10f.c (log10f): If logf exists, use it and provide just the
15167         workaround.
15168         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
15169         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
15170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
15171         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
15172         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
15173         (Depends-on): Update conditions.
15174         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
15176 2012-04-01  Bruno Haible  <bruno@clisp.org>
15178         log10: Work around OSF/1 5.1 bug.
15179         * lib/math.in.h (log10): New declaration.
15180         * lib/log10.c: New file.
15181         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
15182         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
15183         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
15184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
15185         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
15186         * modules/log10 (Files): Add lib/log10.c.
15187         (Depends-on): Add math.
15188         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
15189         * tests/test-math-c++.cc: Check the declaration of log10.
15190         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
15192 2012-03-31  Bruno Haible  <bruno@clisp.org>
15194         log10l tests: More tests.
15195         * modules/log10l-tests (Files): Add tests/test-log10l.h,
15196         tests/minus-zero.h, tests/randoml.c.
15197         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
15198         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
15199         (main): Invoke test_function.
15201         log10f tests: More tests.
15202         * modules/log10f-tests (Files): Add tests/test-log10.h,
15203         tests/minus-zero.h, tests/randomf.c.
15204         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
15205         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
15206         (main): Invoke test_function.
15208         log10 tests: More tests.
15209         * tests/test-log10.h: New file.
15210         * modules/log10-tests (Files): Add tests/test-log10.h,
15211         tests/minus-zero.h, tests/randomd.c.
15212         (Makefile.am): Add randomd.c to test_log10_SOURCES.
15213         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
15214         (main): Invoke test_function.
15216 2012-03-31  Simon Josefsson  <simon@josefsson.org>
15218         fflush: Fix syntax error.
15219         * lib/fflush.c: Include unused-parameter.h, needed for
15220         _GL_UNUSED_PARAMETER.
15221         * modules/fflush (Depends-on): Add snippet/unused-parameter.
15223 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15225         regex: pacify GCC when compiling GRUB
15226         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
15227         a diagnostic.  Reported by Vladimir Serbinenko in
15228         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
15230 2012-03-29  Eric Blake  <eblake@redhat.com>
15232         stdio: don't assume gets any more
15233         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
15234         support.
15235         * modules/stdio (Makefile.am): Likewise.
15236         * lib/stdio-read.c (gets): Likewise.
15237         * tests/test-stdio-c++.cc: Likewise.
15238         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
15239         * lib/stdio.in.h (gets): Make warning occur in more places.
15240         * doc/posix-functions/gets.texi (gets): Update documentation.
15241         Reported by Christer Solskogen.
15243         maint.mk: fix syntax checks without exclusions
15244         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
15245         Reported by Daniel P. Berrange.
15247         strerror_r: avoid compiler warning
15248         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
15249         level.
15251         fflush: avoid compiler warning
15252         * lib/fflush.c (update_fpos_cache): Mark variables that are
15253         potentially unused.
15255 2012-03-25  Bruno Haible  <bruno@clisp.org>
15257         Tests for module 'localeconv'.
15258         * modules/localeconv-tests: New file.
15259         * tests/test-localeconv.c: New file.
15261         New module 'localeconv'.
15262         * lib/locale.in.h (localeconv): New declaration.
15263         * lib/localeconv.c: New file.
15264         * m4/localeconv.m4: New file.
15265         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
15266         REPLACE_LOCALECONV.
15267         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
15268         REPLACE_LOCALECONV.
15269         * modules/localeconv: New file.
15270         * modules/nl_langinfo (Depends-on): Add localeconv.
15271         * modules/human (Depends-on): Likewise.
15272         * doc/posix-functions/localeconv.texi: Mention the new module.
15274 2012-03-25  Bruno Haible  <bruno@clisp.org>
15276         locale: Provide a complete 'struct lconv'.
15277         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
15278         'struct lconv' does not contain int_p_cs_precedes.
15279         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
15280         * doc/posix-headers/locale.texi: Update.
15282         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
15283         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
15284         * doc/posix-headers/locale.texi: Update.
15286         locale: Provide a working 'struct lconv'.
15287         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
15288         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
15289         'struct lconv' does not even contain decimal_point.
15290         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
15291         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
15292         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
15293         * doc/posix-headers/locale.texi: Mention the problems with
15294         'struct lconv'.
15295         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15297 2012-03-24  Bruno Haible  <bruno@clisp.org>
15299         Enable common subexpression optimization in GCC.
15300         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
15301         macros.
15302         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
15303         GCC attribute 'const'.
15304         (uc_locale_language): Declare with GCC attribute 'pure'.
15305         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
15306         with GCC attribute 'const'.
15307         * lib/unictype.in.h (uc_is_general_category_withtable,
15308         uc_combining_class, uc_combining_class_name,
15309         uc_combining_class_long_name, uc_bidi_class_name,
15310         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
15311         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
15312         uc_decimal_value, uc_digit_value, uc_numeric_value,
15313         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
15314         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
15315         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
15316         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
15317         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
15318         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
15319         Declare with GCC attribute 'const'.
15320         (uc_general_category_name, uc_general_category_long_name,
15321         uc_general_category_byname, uc_general_category,
15322         uc_is_general_category, uc_combining_class_byname,
15323         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
15324         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
15325         Declare with GCC attribute 'pure'.
15326         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
15327         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
15328         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
15329         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
15330         with GCC attribute 'pure'.
15331         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
15332         'const'.
15333         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
15334         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
15335         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
15336         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
15337         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
15338         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
15339         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
15340         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
15341         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
15342         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
15343         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
15344         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
15345         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
15346         GCC attribute 'pure'.
15347         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
15348         'const'.
15349         * lib/uniwidth.in.h (uc_width): Simplify declaration.
15350         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
15351         u32_strwidth): Declare with GCC attribute 'pure'.
15353         Enable common subexpression optimization in GCC.
15354         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
15355         (alphasort): Declare with GCC attribute 'pure'.
15356         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
15357         (atoll): Declare with GCC attribute 'pure'.
15358         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
15359         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
15360         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
15361         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
15362         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
15363         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
15364         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
15366 2012-03-24  Bruno Haible  <bruno@clisp.org>
15368         gnulib-tool: Avoid unintended error output from 'cmp'.
15369         * gnulib-tool (func_add_file, func_update_file, func_import): Use
15370         "cmp -s", not "cmp > /dev/null".
15372 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
15374         gnulib-tool: fix imprecise comments w.r.t. an automake bug
15376         It's not just Automake versions < 1.9b that creates an empty
15377         pkgdatadir at installation time if pkgdata_DATA is specified
15378         to empty; modern automake versions do this as well, at least
15379         until automake 1.11.4 (not yet released at the moment of writing,
15380         but soon to appear).  That behaviour was generally considered a
15381         feature rather than a bug, at least until this discussion:
15382         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
15384         See also automake bugs #10997 and #11030.
15386         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
15387         reference to relevant automake bug numbers.
15388         (func_emit_tests_Makefile_am): Likewise.
15390 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
15392         announce-gen: use Digest::SHA when possible
15393         * build-aux/announce-gen: Use Digest::SHA when possible, falling
15394         back to Digest::SHA1 if necessary.
15396 2012-03-20  Jim Meyering  <meyering@redhat.com>
15398         tests: avoid gcc warnings about argv vs. const initializers
15399         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
15400         warnings about discarding 'const' qualifier from pointer target type.
15401         * tests/test-posix_spawn2.c (main): Likewise.
15403 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
15405         README-release: simplify slightly
15406         * top/README-release: Run "git checkout master" only once.
15408 2012-03-15  Mark Wielaard  <mark@klomp.org>
15410         git-merge-changelog: add specific example on how to use with hg.
15411         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
15413 2012-03-18  Mark Wielaard  <mark@klomp.org>
15415         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
15417 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
15419         git-version-gen: don't let "prefix" envvar cause trouble
15420         * build-aux/git-version-gen (prefix): Initialize properly,
15421         so as not to use a value specified via the environment.
15422         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
15424 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
15426         regex: diagnose too-large repeat counts in EREs
15427         Previously, the code did not diagnose the too-large repeat count
15428         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
15429         as if it were 'b\{1000000000}', which is unexpected.
15430         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
15431         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
15432         is a reasonable one for this problem.  Another option would be to
15433         create a new REG_OVERFLOW error for repeat counts that are too large.
15434         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
15435         count is too large, so that the caller can distinguish the two cases.
15436         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
15437         "Too large" return code, and that repeat counts are one example of this.
15439 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
15441         doc: some glibc x32 integer width issues
15442         * doc/posix-headers/sys_types.texi (sys/types.h):
15443         * doc/posix-headers/time.texi (time.h):
15444         Mention that glibc x32 does not conform to POSIX in a couple of
15445         areas related to integer widths.
15447 2012-03-15  Bruno Haible  <bruno@clisp.org>
15449         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
15450         * lib/fma.c (VOLATILE): New macro.
15451         (FUNC): Use it to work around a GCC compiler bug.
15453 2012-03-13  Bruno Haible  <bruno@clisp.org>
15455         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
15456         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
15457         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
15458         REPLACE_HYPOTL to 1.
15459         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
15461 2012-03-13  Bruno Haible  <bruno@clisp.org>
15463         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
15464         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
15465         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
15466         REPLACE_REMAINDERL to 1.
15467         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
15468         bug.
15470 2012-03-13  Bruno Haible  <bruno@clisp.org>
15472         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
15473         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
15474         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
15475         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
15476         too big rounding errors.
15477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
15478         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
15479         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
15480         (Depends-on): Update conditions.
15481         * tests/test-sqrtl.c (my_ldexpl): New function.
15482         (main): Add test of a particular value.
15483         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
15485 2012-03-13  Pádraig Brady  <P@draigBrady.com>
15487         doc: Update timer_* platform portability notes.
15488         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
15489         that always return ENOSYS.
15490         * doc/posix-functions/timer_delete.texi: Likewise.
15491         * doc/posix-functions/timer_gettime.texi: Likewise.
15492         * doc/posix-functions/timer_settime.texi: Likewise.
15494 2012-03-13  Bruno Haible  <bruno@clisp.org>
15496         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
15497         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
15498         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
15499         REPLACE_CBRTL to 1.
15500         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
15502 2012-03-13  Bruno Haible  <bruno@clisp.org>
15504         remainderl: Avoid compilation error on AIX >= 5.2.
15505         * lib/math.in.h (remainderl): Undefine macro from the system header.
15507 2012-03-13  Bruno Haible  <bruno@clisp.org>
15509         Avoid compilation errors with MSVC option -fp:strict.
15510         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
15511         * lib/cbrtf.c: Likewise.
15512         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15514 2012-03-12  Bruno Haible  <bruno@clisp.org>
15516         uninorm: Don't crash in out-of-memory conditions.
15517         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
15518         gracefully.
15519         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
15520         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
15522 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
15524         quote: fix syntax-check
15525         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
15526         also exports quote_quoting_options.
15528 2012-03-12  Simon Josefsson  <simon@josefsson.org>
15530         Collapse list of copyright years to ranges.  See
15531         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
15532         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
15533         build-aux/csharpexec.sh.in, build-aux/gnupload,
15534         build-aux/install-reloc, build-aux/javacomp.sh.in,
15535         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
15536         build-aux/move-if-change, build-aux/reloc-ldflags,
15537         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
15539 2012-03-11  Bruno Haible  <bruno@clisp.org>
15541         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
15542         * m4/log2f-ieee.m4: New file.
15543         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
15544         whether log2f works with a minus zero argument. Replace it if not.
15545         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
15546         (Depends-on): Add log2-ieee.
15547         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
15548         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
15550         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
15551         * m4/log2-ieee.m4: New file.
15552         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
15553         whether log2 works with a minus zero argument. Replace it if not.
15554         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
15555         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
15556         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
15558         Tests for module 'log2l-ieee'.
15559         * modules/log2l-ieee-tests: New file.
15560         * tests/test-log2l-ieee.c: New file.
15562         New module 'log2l-ieee'.
15563         * modules/log2l-ieee: New file.
15565         Tests for module 'log2-ieee'.
15566         * modules/log2-ieee-tests: New file.
15567         * tests/test-log2-ieee.c: New file.
15569         New module 'log2-ieee'.
15570         * modules/log2-ieee: New file.
15572         Tests for module 'log2f-ieee'.
15573         * modules/log2f-ieee-tests: New file.
15574         * tests/test-log2f-ieee.c: New file.
15575         * tests/test-log2-ieee.h: New file.
15577         New module 'log2f-ieee'.
15578         * modules/log2f-ieee: New file.
15580 2012-03-11  Bruno Haible  <bruno@clisp.org>
15582         Tests for module 'log2l'.
15583         * modules/log2l-tests: New file.
15584         * tests/test-log2l.c: New file.
15586         New module 'log2l'.
15587         * lib/math.in.h (log2l): New declaration.
15588         * lib/log2l.c: New file.
15589         * m4/log2l.m4: New file.
15590         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
15591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
15592         REPLACE_LOG2L.
15593         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
15594         REPLACE_LOG2L.
15595         * modules/log2l: New file.
15596         * tests/test-math-c++.cc: Check the declaration of log2l.
15597         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
15598         and OSF/1 problems.
15600 2012-03-11  Bruno Haible  <bruno@clisp.org>
15602         Tests for module 'log2f'.
15603         * modules/log2f-tests: New file.
15604         * tests/test-log2f.c: New file.
15606         New module 'log2f'.
15607         * lib/math.in.h (log2f): New declaration.
15608         * lib/log2f.c: New file.
15609         * m4/log2f.m4: New file.
15610         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
15611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
15612         REPLACE_LOG2F.
15613         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
15614         REPLACE_LOG2F.
15615         * modules/log2f: New file.
15616         * tests/test-math-c++.cc: Check the declaration of log2f.
15617         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
15618         and OSF/1 and Cygwin problems.
15620 2012-03-11  Bruno Haible  <bruno@clisp.org>
15622         Tests for module 'log2'.
15623         * modules/log2-tests: New file.
15624         * tests/test-log2.c: New file.
15625         * tests/test-log2.h: New file.
15627         New module 'log2'.
15628         * lib/math.in.h (log2): New declaration.
15629         * lib/log2.c: New file.
15630         * m4/log2.m4: New file.
15631         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
15632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
15633         REPLACE_LOG2.
15634         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
15635         REPLACE_LOG2.
15636         * modules/log2: New file.
15637         * tests/test-math-c++.cc: Check the declaration of log2.
15638         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
15639         and OSF/1 and Cygwin problems.
15641 2012-03-11  Bruno Haible  <bruno@clisp.org>
15643         exp2* tests: More tests.
15644         * tests/test-exp2.h (test_function): Test all integral arguments that
15645         don't need to overflow or denormalized numbers.
15646         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
15647         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
15648         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
15650 2012-03-10  Bruno Haible  <bruno@clisp.org>
15652         log1pl-ieee: Work around test failure on AIX 7.1.
15653         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
15655         log1pl-ieee: Work around test failure on IRIX 6.5.
15656         * m4/log1pl-ieee.m4: New file.
15657         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
15658         test whether log1pl works with a minus zero argument. Replace it if
15659         not.
15660         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
15661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
15662         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
15663         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
15664         (Depends-on): Update conditions.
15665         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
15666         m4/signbit.m4.
15667         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
15668         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
15670         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
15671         * m4/log1pf-ieee.m4: New file.
15672         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
15673         test whether log1pf works with a minus zero argument. Replace it if
15674         not.
15675         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
15676         m4/signbit.m4.
15677         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
15678         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
15680         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
15681         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
15682         (configure.ac): Require gl_FUNC_LOG1PF.
15684         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
15685         * m4/log1p-ieee.m4: New file.
15686         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
15687         whether log1p works with a minus zero argument. Replace it if not.
15688         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
15689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
15690         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
15691         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
15692         (Depends-on): Update conditions.
15693         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
15694         m4/signbit.m4.
15695         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
15696         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
15698         Tests for module 'log1pl-ieee'.
15699         * modules/log1pl-ieee-tests: New file.
15700         * tests/test-log1pl-ieee.c: New file.
15702         New module 'log1pl-ieee'.
15703         * modules/log1pl-ieee: New file.
15705         Tests for module 'log1p-ieee'.
15706         * modules/log1p-ieee-tests: New file.
15707         * tests/test-log1p-ieee.c: New file.
15709         New module 'log1p-ieee'.
15710         * modules/log1p-ieee: New file.
15712         Tests for module 'log1pf-ieee'.
15713         * modules/log1pf-ieee-tests: New file.
15714         * tests/test-log1pf-ieee.c: New file.
15715         * tests/test-log1p-ieee.h: New file.
15717         New module 'log1pf-ieee'.
15718         * modules/log1pf-ieee: New file.
15720 2012-03-10  Bruno Haible  <bruno@clisp.org>
15722         Tests for module 'log1pl'.
15723         * modules/log1pl-tests: New file.
15724         * tests/test-log1pl.c: New file.
15726         New module 'log1pl'.
15727         * lib/math.in.h (log1pl): New declaration.
15728         * lib/log1pl.c: New file.
15729         * m4/log1pl.m4: New file.
15730         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
15731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
15732         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
15733         * modules/log1pl: New file.
15734         * tests/test-math-c++.cc: Check the declaration of log1pl.
15735         * doc/posix-functions/log1pl.texi: Mention the new module.
15737 2012-03-10  Bruno Haible  <bruno@clisp.org>
15739         Tests for module 'log1pf'.
15740         * modules/log1pf-tests: New file.
15741         * tests/test-log1pf.c: New file.
15743         New module 'log1pf'.
15744         * lib/math.in.h (log1pf): New declaration.
15745         * lib/log1pf.c: New file.
15746         * m4/log1pf.m4: New file.
15747         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
15748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
15749         REPLACE_LOG1PF.
15750         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
15751         REPLACE_LOG1PF.
15752         * modules/log1pf: New file.
15753         * tests/test-math-c++.cc: Check the declaration of log1pf.
15754         * doc/posix-functions/log1pf.texi: Mention the new module.
15756 2012-03-10  Bruno Haible  <bruno@clisp.org>
15758         log1p tests: More tests.
15759         * tests/test-log1p.h: New file.
15760         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
15761         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
15762         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
15763         (main): Invoke test_function.
15765         log1p: Provide replacement for Minix and MSVC.
15766         * lib/math.in.h (log1p): New declaration.
15767         * lib/log1p.c: New file.
15768         * m4/log1p.m4: New file.
15769         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
15770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
15771         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
15772         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
15773         (Depends-on): Add math, isnand, log, round.
15774         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
15775         HAVE_LOG1P is 0.
15776         * tests/test-math-c++.cc: Check the declaration of log1p.
15777         * doc/posix-functions/log1p.texi: Mention the replacement.
15779 2012-03-10  Bruno Haible  <bruno@clisp.org>
15781         math tests: Small simplification.
15782         * tests/test-exp.h (test_function): Use the same err_bound for
15783         'double' on platforms with sizeof (long double) == sizeof (double)
15784         than on platforms with sizeof (long double) > sizeof (double).
15785         * tests/test-exp2.h (test_function): Likewise.
15786         * tests/test-expm1.h (test_function): Likewise.
15787         * tests/test-log.h (test_function): Likewise.
15789 2012-03-10  Bruno Haible  <bruno@clisp.org>
15791         Fix some comments.
15792         * lib/expl.c: Fix an ambiguous comment.
15793         * lib/expm1.c: Likewise.
15794         * lib/expm1l.c: Likewise.
15795         * lib/exp2.c: Likewise.
15796         * lib/exp2l.c: Likewise.
15798 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
15800         regex: allow inclusion of <regex.h> before <limits.h>
15801         Without this patch, portable programs had to include <limits.h> before
15802         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
15803         I ran into this problem with a test version of GNU grep on Solaris 8.
15804         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
15805         This is done conditionally so that this change can be merged
15806         back to glibc.
15807         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
15808         using the included regex.
15810         fts: depend on fdopendir
15811         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
15812         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
15813         problem was introduced when fdopendir was split out.
15815 2012-03-10  Bruno Haible  <bruno@clisp.org>
15817         Remove unused variables.
15818         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
15819         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15821 2012-03-10  Bruno Haible  <bruno@clisp.org>
15823         isnanf-nolibm: Fix last commit.
15824         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
15826         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
15827         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
15829 2012-03-10  Bruno Haible  <bruno@clisp.org>
15831         logf-ieee: Work around test failure on NetBSD 5.1.
15832         * m4/logf-ieee.m4: New file.
15833         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
15834         whether logf works with a negative argument. Replace it if not.
15835         * lib/logf.c (logf): For negative arguments, return NaN.
15836         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
15837         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
15838         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
15840         logf-ieee: Work around test failure on Solaris 9.
15841         * modules/logf-ieee (Depends-on): Add log-ieee.
15842         (configure.ac): Require gl_FUNC_LOGF.
15844         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
15845         * m4/log-ieee.m4: New file.
15846         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
15847         log works with a negative argument. Replace it if not.
15848         * lib/log.c (log): For negative arguments, return NaN.
15849         * modules/log-ieee (Files): Add m4/log-ieee.m4.
15850         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
15851         * doc/posix-functions/log.texi: Mention the log-ieee module.
15853         Tests for module 'logl-ieee'.
15854         * modules/logl-ieee-tests: New file.
15855         * tests/test-logl-ieee.c: New file.
15857         New module 'logl-ieee'.
15858         * modules/logl-ieee: New file.
15860         Tests for module 'log-ieee'.
15861         * modules/log-ieee-tests: New file.
15862         * tests/test-log-ieee.c: New file.
15864         New module 'log-ieee'.
15865         * modules/log-ieee: New file.
15867         Tests for module 'logf-ieee'.
15868         * modules/logf-ieee-tests: New file.
15869         * tests/test-logf-ieee.c: New file.
15870         * tests/test-log-ieee.h: New file.
15872         New module 'logf-ieee'.
15873         * modules/logf-ieee: New file.
15875 2012-03-10  Bruno Haible  <bruno@clisp.org>
15877         log: Fix bug introduced on 2012-03-09.
15878         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
15880 2012-03-10  Pádraig Brady  <P@draigBrady.com>
15882         timer-time: link explicitly with pthreads on glibc
15883         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
15884         to support static linking, when newer glibc is
15885         detected, as that contains pthread emulation of
15886         POSIX timer functions where required.
15887         * modules/timer-time: Depend on threadlib to
15888         pull in the appropriate library to link.
15890 2012-03-10  Bruno Haible  <bruno@clisp.org>
15892         log* tests: More tests.
15893         * tests/test-log.h: New file.
15894         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
15895         (main): Invoke test_function.
15896         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
15897         (main): Invoke test_function.
15898         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
15899         (main): Invoke test_function.
15900         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
15901         tests/randomd.c.
15902         (Makefile.am): Add randomd.c to test_log_SOURCES.
15903         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
15904         tests/randomf.c.
15905         (Makefile.am): Add randomf.c to test_logf_SOURCES.
15906         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
15907         tests/randoml.c.
15908         (Depends-on): Add 'float'.
15909         (Makefile.am): Add randoml.c to test_logl_SOURCES.
15911 2012-03-09  Bruno Haible  <bruno@clisp.org>
15913         logl: Work around OSF/1 5.1 bug.
15914         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
15915         * lib/logl.c (logl): If logl exists, use it and provide just the
15916         workaround.
15917         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
15918         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
15919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
15920         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
15921         * modules/logl (configure.ac): Consider REPLACE_LOGL.
15922         (Depends-on): Update conditions.
15923         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
15925 2012-03-09  Bruno Haible  <bruno@clisp.org>
15927         logf: Work around OSF/1 5.1 bug.
15928         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
15929         * lib/logf.c (logf): If logf exists, use it and provide just the
15930         workaround.
15931         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
15932         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
15933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
15934         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
15935         * modules/logf (configure.ac): Consider REPLACE_LOGF.
15936         (Depends-on): Update conditions.
15937         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
15939 2012-03-09  Bruno Haible  <bruno@clisp.org>
15941         log: Work around OSF/1 5.1 bug.
15942         * lib/math.in.h (log): New declaration.
15943         * lib/log.c: New file.
15944         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
15945         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
15946         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
15947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
15948         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
15949         * modules/log (Files): Add lib/log.c.
15950         (Depends-on): Add math.
15951         (configure.ac): If REPLACE_LOG is 1, compile an override.
15952         * tests/test-math-c++.cc: Check the declaration of log.
15953         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
15955 2012-03-09  Jim Meyering  <meyering@redhat.com>
15957         readtokens.c: adjust wording in a comment
15958         * lib/readtokens.c: Insert omitted "that" in a comment.
15960 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15962         modechange: add notations +40, 00440, etc.
15963         * lib/modechange.c (mode_compile): Support new notations
15964         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
15966 2012-03-08  Bruno Haible  <bruno@clisp.org>
15968         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
15969         * m4/exp2l-ieee.m4: New file.
15970         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
15971         test whether exp2l works with a NaN argument and with a negative
15972         infinity argument. Replace it if not.
15973         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
15974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
15975         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
15976         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
15977         (Depends-on): Update conditions.
15978         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
15979         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
15980         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
15982         Tests for module 'exp2l-ieee'.
15983         * modules/exp2l-ieee-tests: New file.
15984         * tests/test-exp2l-ieee.c: New file.
15986         New module 'exp2l-ieee'.
15987         * modules/exp2l-ieee: New file.
15989         Tests for module 'exp2-ieee'.
15990         * modules/exp2-ieee-tests: New file.
15991         * tests/test-exp2-ieee.c: New file.
15993         New module 'exp2-ieee'.
15994         * modules/exp2-ieee: New file.
15996         Tests for module 'exp2f-ieee'.
15997         * modules/exp2f-ieee-tests: New file.
15998         * tests/test-exp2f-ieee.c: New file.
15999         * tests/test-exp2-ieee.h: New file.
16001         New module 'exp2f-ieee'.
16002         * modules/exp2f-ieee: New file.
16004 2012-03-08  Bruno Haible  <bruno@clisp.org>
16006         Tests for module 'exp2l'.
16007         * modules/exp2l-tests: New file.
16008         * tests/test-exp2l.c: New file.
16010         New module 'exp2l'.
16011         * lib/math.in.h (exp2l): New declaration.
16012         * lib/exp2l.c: New file.
16013         * lib/expl-table.c: New file, extracted from lib/expl.c.
16014         * lib/expl.c (gl_expl_table): New declaration.
16015         (expl): Remove expl_table. Update reference.
16016         * m4/exp2l.m4: New file.
16017         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
16018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
16019         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
16020         * modules/exp2l: New file.
16021         * modules/expl (Files): Add lib/expl-table.c.
16022         (configure.ac): Compile also expl-table.c.
16023         * tests/test-math-c++.cc: Check the declaration of exp2l.
16024         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
16025         problem.
16027 2012-03-08  Bruno Haible  <bruno@clisp.org>
16029         Tests for module 'exp2f'.
16030         * modules/exp2f-tests: New file.
16031         * tests/test-exp2f.c: New file.
16033         New module 'exp2f'.
16034         * lib/math.in.h (exp2f): New declaration.
16035         * lib/exp2f.c: New file.
16036         * m4/exp2f.m4: New file.
16037         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
16038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
16039         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
16040         * modules/exp2f: New file.
16041         * tests/test-math-c++.cc: Check the declaration of exp2f.
16042         * doc/posix-functions/exp2f.texi: Mention the new module and the
16043         IRIX problem.
16045 2012-03-08  Bruno Haible  <bruno@clisp.org>
16047         Tests for module 'exp2'.
16048         * modules/exp2-tests: New file.
16049         * tests/test-exp2.c: New file.
16050         * tests/test-exp2.h: New file.
16052         New module 'exp2'.
16053         * lib/math.in.h (exp2): New declaration.
16054         * lib/exp2.c: New file.
16055         * m4/exp2.m4: New file.
16056         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
16057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
16058         REPLACE_EXP2.
16059         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
16060         REPLACE_EXP2.
16061         * modules/exp2: New file.
16062         * tests/test-math-c++.cc: Check the declaration of exp2.
16063         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
16064         and OpenBSD problems.
16066 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16068         savedir: fix comment typo
16069         * lib/savedir.c (savedirstream): Fix typo in comment.
16071 2012-03-08  Bruno Haible  <bruno@clisp.org>
16073         test-readtokens.c: use const; remove unwarranted cast
16074         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
16076 2012-03-08  Bruno Haible  <bruno@clisp.org>
16078         fmal: Avoid compilation error on AIX.
16079         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
16080         AIX 5.2..7.1.
16082 2012-03-08  Bruno Haible  <bruno@clisp.org>
16084         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
16085         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
16086         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
16087         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
16088         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
16089         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
16090         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
16092 2012-03-08  Bruno Haible  <bruno@clisp.org>
16094         remainderf: Override buggy system function on IRIX 6.5.
16095         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
16096         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
16097         when it exists.
16098         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
16100 2012-03-08  Jim Meyering  <meyering@redhat.com>
16102         test-readtokens.c: avoid const-related compilation warnings
16103         * tests/test-readtokens.c: Avoid const-related compilation warnings.
16105 2012-03-07  Jim Meyering  <meyering@redhat.com>
16106             Bruno Haible  <bruno@clisp.org>
16108         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
16109         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
16110         tests/randomd.c.
16111         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
16112         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
16113         tests/randoml.c.
16114         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
16116 2012-03-07  Bruno Haible  <bruno@clisp.org>
16118         expm1l: Avoid compilation error on AIX.
16119         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
16120         AIX 5.2..7.1.
16122 2012-03-07  Bruno Haible  <bruno@clisp.org>
16124         expm1l: Don't override undeclared system function on IRIX 6.5.
16125         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
16126         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
16127         it exists. Set HAVE_DECL_EXPM1L.
16128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
16129         HAVE_EXPM1L.
16130         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
16131         HAVE_EXPM1L.
16132         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
16134 2012-03-07  Bruno Haible  <bruno@clisp.org>
16136         remainderl: Don't override undeclared system function on IRIX 6.5.
16137         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
16138         HAVE_REMAINDERL.
16139         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
16140         declared when it exists. Set HAVE_DECL_REMAINDERL.
16141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
16142         not HAVE_REMAINDERL.
16143         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
16144         HAVE_REMAINDERL.
16145         * doc/posix-functions/remainderl.texi: Mention missing declaration
16146         problem.
16148 2012-03-07  Bruno Haible  <bruno@clisp.org>
16150         rintf: Don't override undeclared system function on IRIX 6.5.
16151         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
16152         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
16153         exists. Set HAVE_DECL_RINTF.
16154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
16155         HAVE_RINTF.
16156         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
16157         HAVE_RINTF.
16158         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
16160 2012-03-07  Bruno Haible  <bruno@clisp.org>
16162         roundl: Avoid compilation error on AIX.
16163         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
16164         AIX 5.2..7.1.
16166 2012-03-07  Bruno Haible  <bruno@clisp.org>
16168         roundl: Don't override undeclared system function on IRIX 6.5.
16169         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
16170         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
16171         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
16172         * modules/roundl (configure.ac): For replacement code, test
16173         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
16174         (Depends-on): Update conditions.
16175         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
16177 2012-03-07  Bruno Haible  <bruno@clisp.org>
16179         roundf: Don't override undeclared system function on IRIX 6.5.
16180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
16181         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
16182         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
16183         * modules/roundf (configure.ac): For replacement code, test
16184         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
16185         (Depends-on): Update conditions.
16186         * modules/roundf-ieee (Depends-on): Update conditions.
16187         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
16189 2012-03-07  Bruno Haible  <bruno@clisp.org>
16191         round: Don't override undeclared system function on IRIX 6.5.
16192         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
16193         argument.
16194         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
16195         also when it is not declared. Set HAVE_ROUND. For replacement code,
16196         test HAVE_ROUND, not HAVE_DECL_ROUND.
16197         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
16198         not HAVE_DECL_ROUND.
16199         (Depends-on): Update conditions.
16200         * modules/round-ieee (Depends-on): Update conditions.
16201         * doc/posix-functions/round.texi: Mention the IRIX problem.
16203 2012-03-07  Bruno Haible  <bruno@clisp.org>
16205         copysignf: Don't override undeclared system function on IRIX 6.5.
16206         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
16207         HAVE_COPYSIGNF.
16208         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
16209         declared when it exists. Set HAVE_DECL_COPYSIGNF.
16210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
16211         not HAVE_COPYSIGNF.
16212         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
16213         HAVE_COPYSIGNF.
16214         * doc/posix-functions/copysignf.texi: Mention missing declaration
16215         problem.
16217 2012-03-07  Jim Meyering  <meyering@redhat.com>
16219         readtokens: add tests
16220         * modules/readtokens-tests: New file.
16221         * tests/test-readtokens.c: New file.
16223 2012-03-07  Jim Meyering  <meyering@redhat.com>
16225         quotearg: the module must now include quote.h
16226         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
16227         So must the module.
16228         * modules/quotearg (Files): Add quote.h.
16230 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
16232         readtokens: avoid core dumps with unusual calling patterns
16233         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
16234         * lib/readtokens.c: Include limits.h.
16235         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
16236         (readtoken): Don't cache the delimiters; the cache code was buggy
16237         if !delim && saved_delim, or if the new n_delim differs from the old.
16238         Also, it wasn't thread-safe.
16240 2012-03-07  Bruno Haible  <bruno@clisp.org>
16242         quote: Adhere to common module description layout.
16243         * modules/quote (Makefile.am): Add back empty section.
16245 2012-03-06  Akim Demaille  <demaille@gostai.com>
16247         quote: fuse into quotearg
16248         This patch is made for the benefit of Bison.
16249         quote does not leave the choice of the quoting style to the user.
16250         quoting_style provides poor customizability, yet quoting_options,
16251         which is very rich, is hidden inside quotearg.c.  So in order to
16252         allow quote customization, move its implementation to quotearg.c.
16253         * lib/quote.c: Remove.
16254         * modules/quote: Adjust.
16255         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
16256         warning: provide all the members of literal structs.
16257         (quote_quoting_options): New.
16258         (quote, quote_n): Import implementation from quote.c.
16259         * lib/quote.h: Import the comments from quote.c.
16260         (quote_quoting_options): New.
16262 2012-03-06  Bruno Haible  <bruno@clisp.org>
16264         Tests for module 'expm1l-ieee'.
16265         * modules/expm1l-ieee-tests: New file.
16266         * tests/test-expm1l-ieee.c: New file.
16268         New module 'expm1l-ieee'.
16269         * modules/expm1l-ieee: New file.
16271         Tests for module 'expm1f-ieee'.
16272         * modules/expm1f-ieee-tests: New file.
16273         * tests/test-expm1f-ieee.c: New file.
16275         New module 'expm1f-ieee'.
16276         * modules/expm1f-ieee: New file.
16278         Tests for module 'expm1-ieee'.
16279         * modules/expm1-ieee-tests: New file.
16280         * tests/test-expm1-ieee.c: New file.
16281         * tests/test-expm1-ieee.h: New file.
16283         New module 'expm1-ieee'.
16284         * modules/expm1-ieee: New file.
16285         * m4/expm1-ieee.m4: New file.
16286         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
16287         whether expm1 works with a minus zero argument. Replace it if not.
16288         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
16289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
16290         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
16291         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
16292         (Depends-on): Update conditions.
16293         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
16294         AIX problem.
16296 2012-03-06  Bruno Haible  <bruno@clisp.org>
16298         Work around expm1f bug on IRIX 6.5.
16299         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
16300         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
16301         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
16302         not work.
16303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
16304         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
16305         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
16306         (Depends-on): Update conditions.
16307         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
16309 2012-03-06  Bruno Haible  <bruno@clisp.org>
16311         Tests for module 'expm1l'.
16312         * modules/expm1l-tests: New file.
16313         * tests/test-expm1l.c: New file.
16315         New module 'expm1l'.
16316         * lib/math.in.h (expm1l): New declaration.
16317         * lib/expm1l.c: New file.
16318         * m4/expm1l.m4: New file.
16319         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
16320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
16321         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
16322         * modules/expm1l: New file.
16323         * tests/test-math-c++.cc: Check the declaration of expm1l.
16324         * doc/posix-functions/expm1l.texi: Mention the new module.
16326 2012-03-06  Bruno Haible  <bruno@clisp.org>
16328         Tests for module 'expm1f'.
16329         * modules/expm1f-tests: New file.
16330         * tests/test-expm1f.c: New file.
16332         New module 'expm1f'.
16333         * lib/math.in.h (expm1f): New declaration.
16334         * lib/expm1f.c: New file.
16335         * m4/expm1f.m4: New file.
16336         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
16337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
16338         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
16339         * modules/expm1f: New file.
16340         * tests/test-math-c++.cc: Check the declaration of expm1f.
16341         * doc/posix-functions/expm1f.texi: Mention the new module.
16343 2012-03-06  Bruno Haible  <bruno@clisp.org>
16345         Tests for module 'expm1'.
16346         * modules/expm1-tests: New file.
16347         * tests/test-expm1.c: New file.
16348         * tests/test-expm1.h: New file.
16350         New module 'expm1'.
16351         * lib/math.in.h (expm1): New declaration.
16352         * lib/expm1.c: New file.
16353         * m4/expm1.m4: New file.
16354         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
16355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
16356         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
16357         * modules/expm1: New file.
16358         * tests/test-math-c++.cc: Check the declaration of expm1.
16359         * doc/posix-functions/expm1.texi: Mention the new module.
16361 2012-03-06  Bruno Haible  <bruno@clisp.org>
16363         math: Ensure declarations of math functions.
16364         * modules/acosf (Depends-on): Add 'extensions'.
16365         * modules/asinf (Depends-on): Likewise.
16366         * modules/atan2f (Depends-on): Likewise.
16367         * modules/atanf (Depends-on): Likewise.
16368         * modules/cbrt (Depends-on): Likewise.
16369         * modules/cbrtf (Depends-on): Likewise.
16370         * modules/cbrtl (Depends-on): Likewise.
16371         * modules/copysignf (Depends-on): Likewise.
16372         * modules/copysignl (Depends-on): Likewise.
16373         * modules/cosf (Depends-on): Likewise.
16374         * modules/coshf (Depends-on): Likewise.
16375         * modules/expf (Depends-on): Likewise.
16376         * modules/fabsf (Depends-on): Likewise.
16377         * modules/fabsl (Depends-on): Likewise.
16378         * modules/fmaf (Depends-on): Likewise.
16379         * modules/fmal (Depends-on): Likewise.
16380         * modules/fmodf (Depends-on): Likewise.
16381         * modules/fmodl (Depends-on): Likewise.
16382         * modules/frexpf (Depends-on): Likewise.
16383         * modules/frexpl (Depends-on): Likewise.
16384         * modules/hypot (Depends-on): Likewise.
16385         * modules/hypotf (Depends-on): Likewise.
16386         * modules/hypotl (Depends-on): Likewise.
16387         * modules/ldexpf (Depends-on): Likewise.
16388         * modules/ldexpl (Depends-on): Likewise.
16389         * modules/log10f (Depends-on): Likewise.
16390         * modules/log10l (Depends-on): Likewise.
16391         * modules/log1p (Depends-on): Likewise.
16392         * modules/logb (Depends-on): Likewise.
16393         * modules/logf (Depends-on): Likewise.
16394         * modules/modff (Depends-on): Likewise.
16395         * modules/modfl (Depends-on): Likewise.
16396         * modules/powf (Depends-on): Likewise.
16397         * modules/remainderf (Depends-on): Likewise.
16398         * modules/remainderl (Depends-on): Likewise.
16399         * modules/rintf (Depends-on): Likewise.
16400         * modules/rintl (Depends-on): Likewise.
16401         * modules/sinf (Depends-on): Likewise.
16402         * modules/sinhf (Depends-on): Likewise.
16403         * modules/sqrtf (Depends-on): Likewise.
16404         * modules/tanf (Depends-on): Likewise.
16405         * modules/tanhf (Depends-on): Likewise.
16406         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
16407         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
16408         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
16409         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
16410         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
16411         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
16412         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
16413         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
16414         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
16415         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
16416         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
16417         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
16418         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
16419         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
16420         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
16421         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
16422         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16423         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16424         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
16425         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
16426         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16427         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16428         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16429         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
16430         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
16431         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16432         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
16433         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16434         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16435         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16436         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16437         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
16438         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16439         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16440         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
16441         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
16442         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
16443         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
16444         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
16445         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
16446         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
16448 2012-03-06  Bruno Haible  <bruno@clisp.org>
16450         math: Update module names in warnings.
16451         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16452         tanl): Use specific module name in warn-on-use warning.
16454 2012-03-06  Bruno Haible  <bruno@clisp.org>
16456         expl: Simplify computation.
16457         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
16459 2012-03-05  Bruno Haible  <bruno@clisp.org>
16461         exp* tests: More tests.
16462         * tests/test-exp.h: New file.
16463         * tests/test-exp.c: Include <float.h> and test-exp.h.
16464         (main): Invoke test_function.
16465         * tests/test-expf.c: Include <float.h> and test-exp.h.
16466         (main): Invoke test_function.
16467         * tests/test-expl.c: Include <float.h> and test-exp.h.
16468         (main): Invoke test_function.
16469         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
16470         (Makefile.am): Add randomd.c to test_exp_SOURCES.
16471         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
16472         (Makefile.am): Add randomf.c to test_expf_SOURCES.
16473         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
16474         (Depends-on): Add 'float'.
16475         (Makefile.am): Add randoml.c to test_expl_SOURCES.
16477         expl: Fix precision of computed result.
16478         * lib/expl.c: Completely rewritten.
16479         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
16480         (Maintainer): Add me.
16481         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
16483 2012-03-05  Bruno Haible  <bruno@clisp.org>
16485         cbrt* tests: More tests.
16486         * tests/test-cbrt.h: New file.
16487         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
16488         (main): Invoke test_function.
16489         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
16490         (main): Invoke test_function.
16491         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
16492         (main): Invoke test_function.
16493         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
16494         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
16495         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
16496         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
16497         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
16498         (Depends-on): Add 'float'.
16499         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
16501 2012-03-05  Bruno Haible  <bruno@clisp.org>
16503         hypot* tests: More tests.
16504         * tests/test-hypot.h: New file, partially extracted from
16505         tests/test-hypotl.c.
16506         * tests/test-hypot.c: Include test-hypot.h.
16507         (main): Invoke test_function.
16508         * tests/test-hypotf.c: Include test-hypot.h.
16509         (main): Invoke test_function.
16510         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
16511         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
16512         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
16513         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
16514         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
16515         tests/randomf.c.
16516         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
16517         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
16518         tests/randoml.c.
16519         (Depends-on): Add 'fpucw', 'float'.
16520         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
16522 2012-03-05  Bruno Haible  <bruno@clisp.org>
16524         fpucw: Doc about FreeBSD.
16525         * lib/fpucw.h: Mention FreeBSD in comments.
16527 2012-03-04  Bruno Haible  <bruno@clisp.org>
16529         sqrt* tests: More tests.
16530         * tests/test-sqrt.h: New file.
16531         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
16532         (main): Invoke test_function.
16533         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
16534         (main): Invoke test_function.
16535         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
16536         (main): Invoke test_function.
16537         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
16538         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
16539         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
16540         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
16541         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
16542         (Depends-on): Add 'float'.
16543         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
16545 2012-03-04  Bruno Haible  <bruno@clisp.org>
16547         remainder* tests: More tests.
16548         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
16549         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
16550         (main): Invoke test_function.
16551         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
16552         (main): Invoke test_function.
16553         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
16554         (main): Invoke test_function.
16555         * modules/remainder-tests (Files): Add tests/test-remainder.h,
16556         tests/randomd.c.
16557         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
16558         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
16559         tests/randomf.c.
16560         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
16561         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
16562         tests/randoml.c.
16563         (Depends-on): Add 'float'.
16564         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
16566 2012-03-04  Bruno Haible  <bruno@clisp.org>
16568         remainder, remainderf, remainderl: Fix computation for large quotients.
16569         * lib/remainder.c: Completely rewritten.
16570         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
16571         USE_FLOAT.
16572         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
16573         USE_LONG_DOUBLE.
16574         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
16575         isnand, isinf. Remove round, fma.
16576         * modules/remainderf (Files): Add lib/remainder.c.
16577         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
16578         Remove roundf, fmaf.
16579         * modules/remainderl (Files): Add lib/remainder.c.
16580         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
16581         isinf. Remove roundl, fmal.
16582         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
16583         REMAINDER_LIBM.
16584         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
16585         REMAINDERF_LIBM.
16586         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
16587         REMAINDERL_LIBM.
16589 2012-03-04  Bruno Haible  <bruno@clisp.org>
16591         fmod* tests: More tests.
16592         * tests/test-fmod.h (my_ldexp): New function.
16593         (test_function): Reduce amount of random numbers to test. Add tests
16594         of very large quotients x / y.
16595         * tests/test-fmod.c (MAX_EXP): New macro.
16596         * tests/test-fmodf.c (MAX_EXP): Likewise.
16597         * tests/test-fmodl.c (MAX_EXP): Likewise.
16599 2012-03-04  Bruno Haible  <bruno@clisp.org>
16601         fmod, fmodl: Fix computation for large quotients x / y.
16602         * lib/fmod.c: Completely rewritten.
16603         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
16604         USE_LONG_DOUBLE.
16605         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
16606         isnand. Remove fma.
16607         * modules/fmodl (Files): Add lib/fmod.c.
16608         (Depends-on): Add float, isfinite, signbit, fabsl,
16609         frexpl, ldexpl, isnanl. Remove fma.
16610         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
16611         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
16613 2012-03-03  Bruno Haible  <bruno@clisp.org>
16615         fmod* tests: More tests.
16616         * tests/test-fmod.h: New file.
16617         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
16618         (main): Invoke test_function.
16619         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
16620         (main): Invoke test_function.
16621         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
16622         (main): Invoke test_function.
16623         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
16624         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
16625         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
16626         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
16627         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
16628         (Depends-on): Add 'float'.
16629         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
16631 2012-03-03  Bruno Haible  <bruno@clisp.org>
16633         rint* tests: More tests.
16634         * tests/test-rint.h: New file, partially extracted from
16635         tests/test-rintl.c.
16636         * tests/test-rint.c: Include test-rint.h.
16637         (main): Invoke test_function.
16638         * tests/test-rintf.c: Include test-rint.h.
16639         (main): Invoke test_function.
16640         * tests/test-rintl.c: Include test-rint.h.
16641         (main): Invoke test_function.
16642         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
16643         (Makefile.am): Add randomd.c to test_rint_SOURCES.
16644         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
16645         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
16646         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
16647         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
16649 2012-03-03  Bruno Haible  <bruno@clisp.org>
16651         modf* tests: More tests.
16652         * tests/test-modf.h: New file.
16653         * tests/test-modf.c: Include <float.h> and test-modf.h.
16654         (main): Invoke test_function.
16655         * tests/test-modff.c: Include <float.h> and test-modf.h.
16656         (main): Invoke test_function.
16657         * tests/test-modfl.c: Include <float.h> and test-modf.h.
16658         (main): Invoke test_function.
16659         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
16660         (Makefile.am): Add randomd.c to test_modf_SOURCES.
16661         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
16662         (Makefile.am): Add randomf.c to test_modff_SOURCES.
16663         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
16664         (Depends-on): Add 'float'.
16665         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
16667 2012-03-03  Bruno Haible  <bruno@clisp.org>
16669         fabs* tests: More tests.
16670         * tests/test-fabs.h: New file, partially extracted from
16671         tests/test-fabsl.c.
16672         * tests/test-fabs.c (RANDOM): New macro.
16673         * tests/test-fabsf.c (RANDOM): New macro.
16674         * tests/test-fabsl.c (RANDOM): New macro.
16675         * modules/fabs-tests (Files): Add tests/randomd.c.
16676         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
16677         * modules/fabsf-tests (Files): Add tests/randomf.c.
16678         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
16679         * modules/fabsl-tests (Files): Add tests/randoml.c.
16680         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
16682 2012-03-03  Bruno Haible  <bruno@clisp.org>
16684         ldexp* tests: More tests.
16685         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
16686         * tests/test-ldexp.c (RANDOM): New macro.
16687         * tests/test-ldexpf.c (RANDOM): New macro.
16688         * tests/test-ldexpl.c (RANDOM): New macro.
16689         * modules/ldexp-tests (Files): Add tests/randomd.c.
16690         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
16691         * modules/ldexpf-tests (Files): Add tests/randomf.c.
16692         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
16693         * modules/ldexpl-tests (Files): Add tests/randoml.c.
16694         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
16696 2012-03-03  Bruno Haible  <bruno@clisp.org>
16698         frexp* tests: More tests.
16699         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
16700         * tests/test-frexp.c (RANDOM): New macro.
16701         * tests/test-frexpf.c (RANDOM): New macro.
16702         * tests/test-frexpl.c (RANDOM): New macro.
16703         * modules/frexp-tests (Files): Add tests/randomd.c.
16704         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
16705         * modules/frexpf-tests (Files): Add tests/randomf.c.
16706         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
16707         * modules/frexpl-tests (Files): Add tests/randoml.c.
16708         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
16710 2012-03-03  Bruno Haible  <bruno@clisp.org>
16712         Support for pseudo-random numbers in tests.
16713         * tests/randomf.c: New file.
16714         * tests/randomd.c: New file.
16715         * tests/randoml.c: New file.
16716         * tests/macros.h (randomf, randomd, randoml): New declarations.
16718 2012-03-03  Bruno Haible  <bruno@clisp.org>
16720         frexp* tests: Refactor.
16721         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
16722         * tests/test-frexp.c: Include and use it.
16723         * tests/test-frexpf.c: Likewise.
16724         * tests/test-frexpl.c: Likewise.
16725         * modules/frexp-tests (Files): Add tests/test-frexp.h.
16726         * modules/frexpf-tests (Files): Likewise.
16727         * modules/frexpl-tests (Files): Likewise.
16729 2012-03-02  Jim Meyering  <meyering@redhat.com>
16731         maint: don't specify XZ_OPT=-9ev in dist-related rule
16732         Using xz's -9 option is warranted only if you have a very large
16733         tarball (see xz's documentation for the sizes vs. presets), and
16734         requires 64MiB of memory at decompression time.
16735         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
16736         Automake's default of just "-e" is fine.  Override on a
16737         per-package basis by setting XZ_OPT e.g., in cfg.mk.
16739 2012-03-01  Eric Blake  <eblake@redhat.com>
16741         maint.mk: allow announcement for non-gnulib project
16742         * maint.mk (announcement): Skip gnulib version if not used.
16744 2012-03-01  Jim Meyering  <meyering@redhat.com>
16746         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
16747         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
16748         envvar settings cannot interfere.  Otherwise, setting envvars like
16749         prohibit=foo require=bar, etc. would cause spurious test failures.
16751 2012-03-01  Eric Blake  <eblake@redhat.com>
16753         maint.mk: add per-line exclusions to prohibitions
16754         * maint.mk (_sc_search_regexp): Add $exclude parameter.
16755         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
16756         (sc_const_long_option): Use it.
16758 2012-03-01  Bruno Haible  <bruno@clisp.org>
16760         Tests for module 'expl-ieee'.
16761         * modules/expl-ieee-tests: New file.
16762         * tests/test-expl-ieee.c: New file.
16764         New module 'expl-ieee'.
16765         * modules/expl-ieee: New file.
16767         Tests for module 'exp-ieee'.
16768         * modules/exp-ieee-tests: New file.
16769         * tests/test-exp-ieee.c: New file.
16771         New module 'exp-ieee'.
16772         * modules/exp-ieee: New file.
16774         Tests for module 'expf-ieee'.
16775         * modules/expf-ieee-tests: New file.
16776         * tests/test-expf-ieee.c: New file.
16777         * tests/test-exp-ieee.h: New file.
16779         New module 'expf-ieee'.
16780         * modules/expf-ieee: New file.
16782 2012-02-29  Bruno Haible  <bruno@clisp.org>
16784         cbrtl-ieee: Work around test failure on IRIX 6.5.
16785         * m4/cbrtl-ieee.m4: New file.
16786         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
16787         test whether cbrtl works with a minus zero argument. Replace it if not.
16788         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
16789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
16790         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
16791         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
16792         (Depends-on): Update conditions.
16793         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
16794         m4/signbit.m4.
16795         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
16796         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
16797         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
16799         Tests for module 'cbrtl-ieee'.
16800         * modules/cbrtl-ieee-tests: New file.
16801         * tests/test-cbrtl-ieee.c: New file.
16803         New module 'cbrtl-ieee'.
16804         * modules/cbrtl-ieee: New file.
16806         Tests for module 'cbrt-ieee'.
16807         * modules/cbrt-ieee-tests: New file.
16808         * tests/test-cbrt-ieee.c: New file.
16810         New module 'cbrt-ieee'.
16811         * modules/cbrt-ieee: New file.
16813         Tests for module 'cbrtf-ieee'.
16814         * modules/cbrtf-ieee-tests: New file.
16815         * tests/test-cbrtf-ieee.c: New file.
16816         * tests/test-cbrt-ieee.h: New file.
16818         New module 'cbrtf-ieee'.
16819         * modules/cbrtf-ieee: New file.
16821 2012-02-29  Bruno Haible  <bruno@clisp.org>
16823         cbrtf: Work around bug in IRIX 6.5 system function.
16824         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
16825         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
16826         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
16827         work.
16828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
16829         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
16830         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
16831         (Depends-on): Update conditions.
16832         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
16834 2012-02-29  Bruno Haible  <bruno@clisp.org>
16836         Tests for module 'cbrtl'.
16837         * modules/cbrtl-tests: New file.
16838         * tests/test-cbrtl.c: New file.
16840         New module 'cbrtl'.
16841         * lib/math.in.h (cbrtl): New declaration.
16842         * lib/cbrtl.c: New file.
16843         * m4/cbrtl.m4: New file.
16844         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
16845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
16846         HAVE_DECL_CBRTL.
16847         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
16848         HAVE_DECL_CBRTL.
16849         * modules/cbrtl: New file.
16850         * tests/test-math-c++.cc: Check the declaration of cbrtl.
16851         * doc/posix-functions/cbrtl.texi: Mention the new module.
16853 2012-02-29  Bruno Haible  <bruno@clisp.org>
16855         Tests for module 'cbrtf'.
16856         * modules/cbrtf-tests: New file.
16857         * tests/test-cbrtf.c: New file.
16859         New module 'cbrtf'.
16860         * lib/math.in.h (cbrtf): New declaration.
16861         * lib/cbrtf.c: New file.
16862         * m4/cbrtf.m4: New file.
16863         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
16864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
16865         HAVE_DECL_CBRTF.
16866         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
16867         HAVE_DECL_CBRTF.
16868         * modules/cbrtf: New file.
16869         * tests/test-math-c++.cc: Check the declaration of cbrtf.
16870         * doc/posix-functions/cbrtf.texi: Mention the new module.
16872 2012-02-29  Bruno Haible  <bruno@clisp.org>
16874         cbrt: Provide replacement on MSVC and Minix.
16875         * lib/math.in.h (cbrt): New declaration.
16876         * lib/cbrt.c: New file.
16877         * m4/cbrt.m4: New file.
16878         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
16879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
16880         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
16881         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
16882         (Depends-on): Add dependencies.
16883         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
16884         * tests/test-math-c++.cc: Check the declaration of cbrt.
16885         * doc/posix-functions/cbrt.texi: Mention that the module provides a
16886         replacement.
16888 2012-02-29  Bruno Haible  <bruno@clisp.org>
16890         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
16891         * m4/hypotl-ieee.m4: New file.
16892         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
16893         test whether hypotl works with mixed NaN and Infinity arguments.
16894         Replace it if not.
16895         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
16896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
16897         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
16898         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
16899         (Depends-on): Update conditions.
16900         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
16901         (Depends-on): Add hypot-ieee.
16902         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
16903         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
16905         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
16906         * m4/hypotf-ieee.m4: New file.
16907         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
16908         test whether hypotf works with mixed NaN and Infinity arguments.
16909         Replace it if not.
16910         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
16911         (Depends-on): Add hypot-ieee.
16912         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
16913         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
16915         hypot-ieee: Work around test failure on OSF/1 and native Windows.
16916         * lib/math.in.h (hypot): New declaration.
16917         * lib/hypot.c: New file.
16918         * m4/hypot-ieee.m4: New file.
16919         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
16920         whether hypot works with mixed NaN and Infinity arguments. Replace it
16921         if not.
16922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
16923         REPLACE_HYPOT.
16924         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
16925         * modules/hypot (Files): Add lib/hypot.c.
16926         (Depends-on): Add dependencies.
16927         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
16928         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
16929         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
16930         * tests/test-math-c++.cc: Check the declaration of hypot.
16931         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
16933         Tests for module 'hypotl-ieee'.
16934         * modules/hypotl-ieee-tests: New file.
16935         * tests/test-hypotl-ieee.c: New file.
16937         New module 'hypotl-ieee'.
16938         * modules/hypotl-ieee: New file.
16940         Tests for module 'hypot-ieee'.
16941         * modules/hypot-ieee-tests: New file.
16942         * tests/test-hypot-ieee.c: New file.
16944         New module 'hypot-ieee'.
16945         * modules/hypot-ieee: New file.
16947         Tests for module 'hypotf-ieee'.
16948         * modules/hypotf-ieee-tests: New file.
16949         * tests/test-hypotf-ieee.c: New file.
16950         * tests/test-hypot-ieee.h: New file.
16952         New module 'hypotf-ieee'.
16953         * modules/hypotf-ieee: New file.
16955 2012-02-29  Bruno Haible  <bruno@clisp.org>
16957         Remove unused variables.
16958         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
16959         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16960         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16961         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16963 2012-02-29  Eric Blake  <eblake@redhat.com>
16965         termios: fix pid_t always, not just for tcgetsid
16966         * doc/posix-headers/termios.texi (termios.h): Mention problem.
16967         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
16968         just when building tcgetsid.
16970 2012-02-29  Bruno Haible  <bruno@clisp.org>
16972         Tests for module 'hypotl'.
16973         * modules/hypotl-tests: New file.
16974         * tests/test-hypotl.c: New file.
16976         New module 'hypotl'.
16977         * lib/math.in.h (hypotl): New declaration.
16978         * lib/hypotl.c: New file.
16979         * m4/hypotl.m4: New file.
16980         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
16981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
16982         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
16983         * modules/hypotl: New file.
16984         * tests/test-math-c++.cc: Check the hypotl declaration.
16985         * doc/posix-functions/hypotl.texi: Mention the new module.
16987 2012-02-29  Eric Blake  <eblake@redhat.com>
16989         tcgetsid: fix cygwin header bug
16990         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
16992         docs: update cygwin progress
16993         * doc/posix-functions/llround.texi (llround): Added in cygwin
16994         1.7.8.
16995         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
16996         * doc/glibc-functions/program_invocation_name.texi
16997         (program_invocation_name): Likewise.
16998         * doc/glibc-functions/program_invocation_short_name.texi
16999         (program_invocation_short_name): Likewise.
17000         * doc/glibc-functions/madvise.texi (madvise): Likewise.
17001         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
17002         Likewise.
17003         * doc/posix-functions/pthread_spin_destroy.texi
17004         (pthread_spin_destroy): Added in cygwin 1.7.10.
17005         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
17006         Likewise.
17007         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
17008         Likewise.
17009         * doc/posix-functions/pthread_spin_trylock.texi
17010         (pthread_spin_trylock): Likewise.
17011         * doc/posix-functions/pthread_spin_unlock.texi
17012         (pthread_spin_unlock): Likewise.
17013         * doc/posix-functions/pthread_setschedprio.texi
17014         (pthread_setschedprio): Likewise.
17015         * doc/posix-functions/pthread_attr_getstack.texi
17016         (pthread_attr_getstack): Likewise.
17017         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
17018         (pthread_attr_getstackaddr): Likewise.
17019         * doc/glibc-functions/pthread_getattr_np.texi
17020         (pthread_getattr_np): Likewise.
17021         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
17022         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
17023         * doc/posix-functions/clock_settime.texi (clock_settime):
17024         Likewise.
17025         * doc/posix-functions/pthread_attr_getguardsize.texi
17026         (pthread_attr_getguardsize): Likewise.
17027         * doc/posix-functions/pthread_attr_setguardsize.texi
17028         (pthread_attr_setguardsize): Likewise.
17029         * doc/posix-functions/pthread_attr_setstack.texi
17030         (pthread_attr_setstack): Likewise.
17031         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
17032         (pthread_attr_setstackaddr): Likewise.
17033         * doc/posix-functions/clock_getcpuclockid.texi
17034         (clock_getcpuclockid): Likewise.
17035         * doc/posix-functions/pthread_getcpuclockid.texi
17036         (pthread_getcpuclockid): Likewise.
17037         * doc/glibc-functions/error.texi (error): Likewise.
17038         * doc/glibc-functions/error_at_line.texi (error_at_line):
17039         Likewise.
17040         * doc/glibc-functions/error_message_count.texi
17041         (error_message_count): Likewise.
17042         * doc/glibc-functions/error_one_per_line.texi
17043         (error_one_per_line): Likewise.
17044         * doc/glibc-functions/error_print_progname.texi
17045         (error_print_progname): Likewise.
17046         * doc/posix-functions/pthread_condattr_getclock.texi
17047         (pthread_condattr_getclock): Likewise.
17048         * doc/posix-functions/pthread_condattr_setclock.texi
17049         (pthread_condattr_setclock): Likewise.
17050         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
17051         Likewise.
17052         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
17053         * doc/glibc-functions/getpt.texi (getpt): Likewise.
17054         * doc/glibc-functions/get_current_dir_name.texi
17055         (get_current_dir_name): Likewise.
17056         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
17057         Likewise.
17058         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
17059         wrong return type.
17060         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
17061         1.7.11.
17063 2012-02-29  Bruno Haible  <bruno@clisp.org>
17065         Tests for module 'hypotf'.
17066         * modules/hypotf-tests: New file.
17067         * tests/test-hypotf.c: New file.
17069         New module 'hypotf'.
17070         * lib/math.in.h (hypotf): New declaration.
17071         * lib/hypotf.c: New file.
17072         * m4/hypotf.m4: New file.
17073         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
17074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
17075         REPLACE_HYPOTF.
17076         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
17077         REPLACE_HYPOTF.
17078         * modules/hypotf: New file.
17079         * tests/test-math-c++.cc: Check the hypotf declaration.
17080         * doc/posix-functions/hypotf.texi: Mention the new module.
17082         hypot: Prepare for hypotf module.
17083         * m4/hypot.m4: New file.
17084         * modules/hypot (Files): Add m4/hypot.m4.
17085         (configure.ac): Invoke gl_FUNC_HYPOT.
17087 2012-02-29  Bruno Haible  <bruno@clisp.org>
17089         hypot tests: More tests.
17090         * tests/test-hypot.c: Include <float.h>.
17091         (main): Add tests about overflow and underflow.
17093 2012-02-29  Bruno Haible  <bruno@clisp.org>
17095         math code: Add comments.
17096         * lib/acosl.c: Add comment about related glibc source files.
17097         * lib/asinl.c: Likewise.
17098         * lib/atanl.c: Likewise.
17099         * lib/expl.c: Likewise.
17100         * lib/logl.c: Likewise.
17101         * lib/sincosl.c: Likewise.
17102         * lib/sinl.c: Likewise.
17103         * lib/tanl.c: Likewise.
17104         * lib/trigl.c: Likewise.
17105         * lib/cosl.c: Likewise. Fix comments.
17107 2012-02-28  Bruno Haible  <bruno@clisp.org>
17109         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
17110         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
17111         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
17112         HUGE_VALL are defined.
17113         (numeric_equald): Renamed from numeric_equal.
17114         (numeric_equalf, numeric_equall): New functions.
17115         (main): Check also HUGE_VALF, HUGE_VALL.
17116         * modules/math-tests (Files): Add tests/macros.h.
17117         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
17118         HUGE_VALL.
17120 2012-02-28  Bruno Haible  <bruno@clisp.org>
17122         doc: Move ISO C11 feature notes into POSIX chapters.
17123         * doc/posix-functions/aligned_alloc.texi: Renamed from
17124         doc/glibc-functions/aligned_alloc.texi.
17125         * doc/posix-functions/quick_exit.texi: Renamed from
17126         doc/glibc-functions/quick_exit.texi.
17127         * doc/posix-headers/uchar.texi: Renamed from
17128         doc/glibc-headers/uchar.texi.
17129         * doc/posix-functions/c16rtomb.texi: Renamed from
17130         doc/glibc-functions/c16rtomb.texi.
17131         * doc/posix-functions/c32rtomb.texi: Renamed from
17132         doc/glibc-functions/c32rtomb.texi.
17133         * doc/posix-functions/mbrtoc16.texi: Renamed from
17134         doc/glibc-functions/mbrtoc16.texi.
17135         * doc/posix-functions/mbrtoc32.texi: Renamed from
17136         doc/glibc-functions/mbrtoc32.texi.
17137         * doc/gnulib.texi: Update.
17138         (Glibc uchar.h): Remove section.
17139         Suggested by Eric Blake.
17141 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
17143         stdnoreturn: port to MSVC better
17144         MSVC standard headers use __declspec(noreturn), so #define noreturn
17145         to empty on that platform.  Reported by Bruno Haible in
17146         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
17147         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
17148         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
17150 2012-02-28  Bruno Haible  <bruno@clisp.org>
17152         doc: Mention new glibc headers and functions.
17153         * doc/glibc-headers/uchar.texi: New file.
17154         * doc/glibc-functions/aligned_alloc.texi: New file.
17155         * doc/glibc-functions/c16rtomb.texi: New file.
17156         * doc/glibc-functions/c32rtomb.texi: New file.
17157         * doc/glibc-functions/clock_adjtime.texi: New file.
17158         * doc/glibc-functions/fanotify_init.texi: New file.
17159         * doc/glibc-functions/fanotify_mark.texi: New file.
17160         * doc/glibc-functions/inet6_opt_append.texi: New file.
17161         * doc/glibc-functions/inet6_opt_find.texi: New file.
17162         * doc/glibc-functions/inet6_opt_finish.texi: New file.
17163         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
17164         * doc/glibc-functions/inet6_opt_init.texi: New file.
17165         * doc/glibc-functions/inet6_opt_next.texi: New file.
17166         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
17167         * doc/glibc-functions/inet6_rth_add.texi: New file.
17168         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
17169         * doc/glibc-functions/inet6_rth_init.texi: New file.
17170         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
17171         * doc/glibc-functions/inet6_rth_segments.texi: New file.
17172         * doc/glibc-functions/inet6_rth_space.texi: New file.
17173         * doc/glibc-functions/login.texi: New file.
17174         * doc/glibc-functions/mbrtoc16.texi: New file.
17175         * doc/glibc-functions/mbrtoc32.texi: New file.
17176         * doc/glibc-functions/name_to_handle_at.texi: New file.
17177         * doc/glibc-functions/ntp_gettimex.texi: New file.
17178         * doc/glibc-functions/open_by_handle_at.texi: New file.
17179         * doc/glibc-functions/prlimit.texi: New file.
17180         * doc/glibc-functions/process_vm_readv.texi: New file.
17181         * doc/glibc-functions/process_vm_writev.texi: New file.
17182         * doc/glibc-functions/recvmmsg.texi: New file.
17183         * doc/glibc-functions/scandirat.texi: New file.
17184         * doc/glibc-functions/sendmmsg.texi: New file.
17185         * doc/glibc-functions/setns.texi: New file.
17186         * doc/glibc-functions/timespec_get.texi: New file.
17187         * doc/gnulib.texi: Include them.
17188         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
17189         sections.
17190         Reported by Eric Blake.
17192 2012-02-28  Bruno Haible  <bruno@clisp.org>
17194         Avoid compilation errors with MSVC option -fp:strict.
17195         * lib/floor.c: Use MSVC specific pragma fenv_access.
17196         * lib/ceil.c: Likewise.
17197         * lib/trunc.c: Likewise.
17198         * lib/round.c: Likewise.
17199         * lib/rint.c: Likewise.
17200         * lib/fma.c: Likewise.
17201         * lib/integer_length.c: Likewise.
17202         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17203         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17204         * tests/test-floor2.c: Likewise.
17205         * tests/test-floorf2.c: Likewise.
17206         * tests/test-ceil2.c: Likewise.
17207         * tests/test-ceilf2.c: Likewise.
17208         * tests/test-trunc2.c: Likewise.
17209         * tests/test-truncf2.c: Likewise.
17210         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
17212 2012-02-27  Bruno Haible  <bruno@clisp.org>
17214         Tests for module 'sqrtl-ieee'.
17215         * modules/sqrtl-ieee-tests: New file.
17216         * tests/test-sqrtl-ieee.c: New file.
17218         New module 'sqrtl-ieee'.
17219         * modules/sqrtl-ieee: New file.
17221         Tests for module 'sqrt-ieee'.
17222         * modules/sqrt-ieee-tests: New file.
17223         * tests/test-sqrt-ieee.c: New file.
17225         New module 'sqrt-ieee'.
17226         * modules/sqrt-ieee: New file.
17228         Tests for module 'sqrtf-ieee'.
17229         * modules/sqrtf-ieee-tests: New file.
17230         * tests/test-sqrtf-ieee.c: New file.
17231         * tests/test-sqrt-ieee.h: New file.
17233         New module 'sqrtf-ieee'.
17234         * modules/sqrtf-ieee: New file.
17236 2012-02-27  Bruno Haible  <bruno@clisp.org>
17238         remainderl-ieee: Work around test failure on OSF/1.
17239         * m4/remainderl-ieee.m4: New file.
17240         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
17241         present, test whether remainderl works with a zero second argument.
17242         Replace it if not.
17243         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
17244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
17245         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
17246         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
17247         (Depends-on): Update conditions.
17248         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
17249         (Depends-on): Add remainder-ieee.
17250         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
17251         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
17252         module.
17254         remainderf-ieee: Work around test failure on OSF/1.
17255         * m4/remainderf-ieee.m4: New file.
17256         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
17257         present, test whether remainderf works with a zero second argument.
17258         Replace it if not.
17259         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
17260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
17261         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
17262         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
17263         (Depends-on): Update conditions.
17264         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
17265         (Depends-on): Add remainder-ieee.
17266         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
17267         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
17268         module.
17270         remainder-ieee: Work around test failure on OSF/1.
17271         * m4/remainder-ieee.m4: New file.
17272         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
17273         present, test whether remainder works with a zero second argument.
17274         Replace it if not.
17275         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
17276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
17277         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
17278         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
17279         (Depends-on): Update dependencies.
17280         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
17281         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
17282         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
17284         Tests for module 'remainderl-ieee'.
17285         * modules/remainderl-ieee-tests: New file.
17286         * tests/test-remainderl-ieee.c: New file.
17288         New module 'remainderl-ieee'.
17289         * modules/remainderl-ieee: New file.
17291         Tests for module 'remainder-ieee'.
17292         * modules/remainder-ieee-tests: New file.
17293         * tests/test-remainder-ieee.c: New file.
17295         New module 'remainder-ieee'.
17296         * modules/remainder-ieee: New file.
17298         Tests for module 'remainderf-ieee'.
17299         * modules/remainderf-ieee-tests: New file.
17300         * tests/test-remainderf-ieee.c: New file.
17301         * tests/test-remainder-ieee.h: New file.
17303         New module 'remainderf-ieee'.
17304         * modules/remainderf-ieee: New file.
17306 2012-02-27  Bruno Haible  <bruno@clisp.org>
17308         modff, modfl: Fix configure syntax error.
17309         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
17310         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
17312 2012-02-27  Bruno Haible  <bruno@clisp.org>
17314         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
17315         * m4/fmodl-ieee.m4: New file.
17316         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
17317         whether fmodl works with zero arguments. Replace it if not.
17318         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
17319         (Depends-on): Add fmod-ieee.
17320         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
17321         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
17323         fmodf-ieee: Work around test failure on OSF/1.
17324         * m4/fmodf-ieee.m4: New file.
17325         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
17326         whether fmodf works with zero arguments. Replace it if not.
17327         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
17328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
17329         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
17330         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
17331         (Depends-on): Update dependencies.
17332         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
17333         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
17334         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
17336         fmodf-ieee: Work around test failure on MSVC 9.
17337         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
17338         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
17340         fmod-ieee: Work around test failures on OSF/1, mingw.
17341         * m4/fmod-ieee.m4: New file.
17342         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
17343         whether fmod works with zero arguments. Replace it if not.
17344         * lib/math.in.h (fmod): New declaration.
17345         * lib/fmod.c: New file.
17346         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
17347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
17348         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
17349         * modules/fmod (Files): Add lib/fmod.c.
17350         (Depends-on): Add math, isinf, trunc, fma.
17351         (configure.ac): Arrange to compile lib/fmod.c if needed.
17352         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
17353         m4/signbit.m4.
17354         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
17355         * tests/test-math-c++.cc: Check the declaration of fmod.
17356         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
17358         fmodl-ieee: Fix test failures.
17359         * lib/fmodl.c (fmodl): Treat Inf specially.
17360         * modules/fmodl (Depends-on): Add isinf.
17362         Tests for module 'fmodl-ieee'.
17363         * modules/fmodl-ieee-tests: New file.
17364         * tests/test-fmodl-ieee.c: New file.
17366         New module 'fmodl-ieee'.
17367         * modules/fmodl-ieee: New file.
17369         Tests for module 'fmod-ieee'.
17370         * modules/fmod-ieee-tests: New file.
17371         * tests/test-fmod-ieee.c: New file.
17373         New module 'fmod-ieee'.
17374         * modules/fmod-ieee: New file.
17376         Tests for module 'fmodf-ieee'.
17377         * modules/fmodf-ieee-tests: New file.
17378         * tests/test-fmodf-ieee.c: New file.
17379         * tests/test-fmod-ieee.h: New file.
17381         New module 'fmodf-ieee'.
17382         * modules/fmodf-ieee: New file.
17384 2012-02-27  Bruno Haible  <bruno@clisp.org>
17386         Tests for module 'rintl-ieee'.
17387         * modules/rintl-ieee-tests: New file.
17388         * tests/test-rintl-ieee.c: New file.
17390         New module 'rintl-ieee'.
17391         * modules/rintl-ieee: New file.
17393         Tests for module 'rint-ieee'.
17394         * modules/rint-ieee-tests: New file.
17395         * tests/test-rint-ieee.c: New file.
17397         New module 'rint-ieee'.
17398         * modules/rint-ieee: New file.
17400         Tests for module 'rintf-ieee'.
17401         * modules/rintf-ieee-tests: New file.
17402         * tests/test-rintf-ieee.c: New file.
17403         * tests/test-rint-ieee.h: New file.
17405         New module 'rintf-ieee'.
17406         * modules/rintf-ieee: New file.
17408 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17410         regex: re_search etc. should return -2 when memory exhausted
17411         This bug was uncovered when testing 'grep'.  Without the fix,
17412         re_search and friends return -1 when memory is exhausted, but -1
17413         means no match, and this causes grep to falsely report no-match
17414         instead of memory-exhaustion.  See
17415         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
17416         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
17417         trouble; this can occur if re_search_internal ran out of memory.
17419 2012-02-26  Bruno Haible  <bruno@clisp.org>
17421         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
17422         * m4/modfl-ieee.m4: New file.
17423         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
17424         whether modfl works with Inf. Replace it if not.
17425         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
17426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
17427         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
17428         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
17429         (Depends-on): Update dependencies.
17430         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
17431         m4/signbit.m4.
17432         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
17433         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
17435         modfl-ieee: Fix dependencies.
17436         * modules/modfl-ieee (Depends-on): Add modf-ieee.
17438         modfl-ieee: Fix test failures.
17439         * lib/modfl.c (modfl): Treat NaN and Inf specially.
17440         * modules/modfl (Depends-on): Add isfinite, isinf.
17442         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
17443         * m4/modff-ieee.m4: New file.
17444         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
17445         whether modff works with NaN and Inf. Replace it if not.
17446         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
17447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
17448         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
17449         * modules/modff (configure.ac): Consider REPLACE_MODFF.
17450         (Depends-on): Update dependencies.
17451         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
17452         m4/signbit.m4.
17453         (Depends-on): Add modf-ieee.
17454         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
17455         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
17457         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
17458         * m4/modf-ieee.m4: New file.
17459         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
17460         whether modf works with NaN and Inf. Replace it if not.
17461         * lib/math.in.h (modf): New declaration.
17462         * lib/modf.c: New file.
17463         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
17464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
17465         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
17466         * modules/modf (Files): Add lib/modf.c.
17467         (Depends-on): Add math, isfinite, trunc, isinf.
17468         (configure.ac): Addrange to compile lib/modf.c if needed.
17469         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
17470         m4/signbit.m4.
17471         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
17472         * tests/test-math-c++.cc: Check the declaration of modf.
17473         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
17475         Tests for module 'modfl-ieee'.
17476         * modules/modfl-ieee-tests: New file.
17477         * tests/test-modfl-ieee.c: New file.
17479         New module 'modfl-ieee'.
17480         * modules/modfl-ieee: New file.
17482         Tests for module 'modf-ieee'.
17483         * modules/modf-ieee-tests: New file.
17484         * tests/test-modf-ieee.c: New file.
17486         New module 'modf-ieee'.
17487         * modules/modf-ieee: New file.
17489         Tests for module 'modff-ieee'.
17490         * modules/modff-ieee-tests: New file.
17491         * tests/test-modff-ieee.c: New file.
17492         * tests/test-modf-ieee.h: New file.
17494         New module 'modff-ieee'.
17495         * modules/modff-ieee: New file.
17497 2012-02-26  Bruno Haible  <bruno@clisp.org>
17499         Tests for module 'fabsl-ieee'.
17500         * modules/fabsl-ieee-tests: New file.
17501         * tests/test-fabsl-ieee.c: New file.
17503         New module 'fabsl-ieee'.
17504         * modules/fabsl-ieee: New file.
17506         Tests for module 'fabs-ieee'.
17507         * modules/fabs-ieee-tests: New file.
17508         * tests/test-fabs-ieee.c: New file.
17510         New module 'fabs-ieee'.
17511         * modules/fabs-ieee: New file.
17513         Tests for module 'fabsf-ieee'.
17514         * modules/fabsf-ieee-tests: New file.
17515         * tests/test-fabsf-ieee.c: New file.
17516         * tests/test-fabs-ieee.h: New file.
17518         New module 'fabsf-ieee'.
17519         * modules/fabsf-ieee: New file.
17521 2012-02-26  Bruno Haible  <bruno@clisp.org>
17523         Tests for module 'fmal-ieee'.
17524         * modules/fmal-ieee-tests: New file.
17525         * tests/test-fmal-ieee.c: New file.
17527         New module 'fmal-ieee'.
17528         * modules/fmal-ieee: New file.
17530         Tests for module 'fma-ieee'.
17531         * modules/fma-ieee-tests: New file.
17532         * tests/test-fma-ieee.c: New file.
17534         New module 'fma-ieee'.
17535         * modules/fma-ieee: New file.
17537         Tests for module 'fmaf-ieee'.
17538         * modules/fmaf-ieee-tests: New file.
17539         * tests/test-fmaf-ieee.c: New file.
17540         * tests/test-fma-ieee.h: New file.
17542         New module 'fmaf-ieee'.
17543         * modules/fmaf-ieee: New file.
17545 2012-02-26  Bruno Haible  <bruno@clisp.org>
17547         Tests for module 'ldexpl-ieee'.
17548         * modules/ldexpl-ieee-tests: New file.
17549         * tests/test-ldexpl-ieee.c: New file.
17551         New module 'ldexpl-ieee'.
17552         * modules/ldexpl-ieee: New file.
17554         Tests for module 'ldexp-ieee'.
17555         * modules/ldexp-ieee-tests: New file.
17556         * tests/test-ldexp-ieee.c: New file.
17558         New module 'ldexp-ieee'.
17559         * modules/ldexp-ieee: New file.
17561         Tests for module 'ldexpf-ieee'.
17562         * modules/ldexpf-ieee-tests: New file.
17563         * tests/test-ldexpf-ieee.c: New file.
17564         * tests/test-ldexp-ieee.h: New file.
17566         New module 'ldexpf-ieee'.
17567         * modules/ldexpf-ieee: New file.
17569 2012-02-26  Bruno Haible  <bruno@clisp.org>
17571         Refactor frexp*-ieee tests.
17572         * tests/test-frexp-ieee.h: New file.
17573         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
17574         (main): Just call test_function.
17575         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
17576         (main): Just call test_function.
17577         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
17578         (main): Just call test_function.
17579         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
17580         * modules/frexp-ieee-tests (Files): Likewise.
17581         * modules/frexpl-ieee-tests (Files): Likewise.
17583         Tests for module 'frexpl-ieee'.
17584         * modules/frexpl-ieee-tests: New file.
17585         * tests/test-frexpl-ieee.c: New file.
17587         New module 'frexpl-ieee'.
17588         * modules/frexpl-ieee: New file.
17590         Tests for module 'frexp-ieee'.
17591         * modules/frexp-ieee-tests: New file.
17592         * tests/test-frexp-ieee.c: New file.
17594         New module 'frexp-ieee'.
17595         * modules/frexp-ieee: New file.
17597         Tests for module 'frexpf-ieee'.
17598         * modules/frexpf-ieee-tests: New file.
17599         * tests/test-frexpf-ieee.c: New file.
17601         New module 'frexpf-ieee'.
17602         * modules/frexpf-ieee: New file.
17604 2012-02-26  Bruno Haible  <bruno@clisp.org>
17606         roundl-ieee tests: More tests.
17607         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17608         (main): Add tests for [MX] shaded specification in POSIX.
17609         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17610         (Depends-on): Add isnanl-nolibm.
17612         round-ieee tests: More tests.
17613         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17614         (main): Add tests for [MX] shaded specification in POSIX.
17615         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17616         (Depends-on): Add isnand-nolibm.
17618         roundf-ieee tests: More tests.
17619         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17620         (main): Add tests for [MX] shaded specification in POSIX.
17621         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17622         (Depends-on): Add isnanf-nolibm.
17624         truncl-ieee tests: More tests.
17625         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17626         (main): Add tests for [MX] shaded specification in POSIX.
17627         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17628         (Depends-on): Add isnanl-nolibm.
17630         trunc-ieee tests: More tests.
17631         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17632         (main): Add tests for [MX] shaded specification in POSIX.
17633         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17634         (Depends-on): Add isnand-nolibm.
17636         truncf-ieee tests: More tests.
17637         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17638         (main): Add tests for [MX] shaded specification in POSIX.
17639         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17640         (Depends-on): Add isnanf-nolibm.
17642         ceill-ieee tests: More tests.
17643         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17644         (main): Add tests for [MX] shaded specification in POSIX.
17645         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17646         (Depends-on): Add isnanl-nolibm.
17648         ceil-ieee tests: More tests.
17649         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17650         (main): Add tests for [MX] shaded specification in POSIX.
17651         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17652         (Depends-on): Add isnand-nolibm.
17654         ceilf-ieee tests: More tests.
17655         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17656         (main): Add tests for [MX] shaded specification in POSIX.
17657         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17658         (Depends-on): Add isnanf-nolibm.
17660         floorl-ieee tests: More tests.
17661         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17662         (main): Add tests for [MX] shaded specification in POSIX.
17663         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17664         (Depends-on): Add isnanl-nolibm.
17666         floor-ieee tests: More tests.
17667         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17668         (main): Add tests for [MX] shaded specification in POSIX.
17669         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17670         (Depends-on): Add isnand-nolibm.
17672         floorf-ieee tests: More tests.
17673         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17674         (main): Add tests for [MX] shaded specification in POSIX.
17675         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17676         (Depends-on): Add isnanf-nolibm.
17678 2012-02-26  Bruno Haible  <bruno@clisp.org>
17680         fpieee: More comments.
17681         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
17683 2012-02-25  Bruno Haible  <bruno@clisp.org>
17685         Tests for module 'log10l'.
17686         * modules/log10l-tests: New file.
17687         * tests/test-log10l.c: New file.
17688         * tests/test-math-c++.cc: Check the declaration of log10l.
17690         New module 'log10l'.
17691         * lib/math.in.h (log10l): New declaration.
17692         * lib/log10l.c: New file.
17693         * m4/log10l.m4: New file.
17694         * modules/log10l: New file.
17695         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
17696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
17697         HAVE_DECL_LOG10L.
17698         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
17699         HAVE_DECL_LOG10L.
17700         * doc/posix-functions/log10l.texi: Mention the new module.
17702 2012-02-25  Bruno Haible  <bruno@clisp.org>
17704         fmodl, remainder*: Avoid wrong results due to rounding errors.
17705         * lib/fmodl.c (fmodl): Correct the result if it is not within the
17706         expected bounds.
17707         * lib/remainderf.c (remainderf): Likewise.
17708         * lib/remainder.c (remainder): Likewise.
17709         * lib/remainderl.c (remainderl): Likewise.
17711 2012-02-25  Bruno Haible  <bruno@clisp.org>
17713         Tests for module 'remainderl'.
17714         * modules/remainderl-tests: New file.
17715         * tests/test-remainderl.c: New file.
17716         * tests/test-math-c++.cc: Check the declaration of remainderl.
17718         New module 'remainderl'.
17719         * lib/math.in.h (remainderl): New declaration.
17720         * lib/remainderl.c: New file.
17721         * m4/remainderl.m4: New file.
17722         * modules/remainderl: New file.
17723         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
17724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
17725         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
17726         HAVE_REMAINDERL.
17727         * doc/posix-functions/remainderl.texi: Mention the new module.
17729 2012-02-25  Bruno Haible  <bruno@clisp.org>
17731         Tests for module 'remainderf'.
17732         * modules/remainderf-tests: New file.
17733         * tests/test-remainderf.c: New file.
17734         * tests/test-math-c++.cc: Check the declaration of remainderf.
17736         New module 'remainderf'.
17737         * lib/math.in.h (remainderf): New declaration.
17738         * lib/remainderf.c: New file.
17739         * m4/remainderf.m4: New file.
17740         * modules/remainderf: New file.
17741         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
17742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
17743         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
17744         HAVE_REMAINDERF.
17745         * doc/posix-functions/remainderf.texi: Mention the new module.
17747 2012-02-25  Bruno Haible  <bruno@clisp.org>
17749         remainder: Support for MSVC.
17750         * lib/math.in.h (remainder): New declaration.
17751         * lib/remainder.c: New file.
17752         * m4/remainder.m4: New file.
17753         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
17754         (Depends-on): Add math, round, fma.
17755         (configure.ac): Use results of gl_FUNC_REMAINDER.
17756         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
17757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
17758         HAVE_DECL_REMAINDER.
17759         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
17760         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
17761         * tests/test-math-c++.cc: Check the declaration of remainder.
17762         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
17763         problems are fixed.
17765 2012-02-25  Bruno Haible  <bruno@clisp.org>
17767         Tests for module 'fmodl'.
17768         * modules/fmodl-tests: New file.
17769         * tests/test-fmodl.c: New file.
17770         * tests/test-math-c++.cc: Check the declaration of fmodl.
17772         New module 'fmodl'.
17773         * lib/math.in.h (fmodl): New declaration.
17774         * lib/fmodl.c: New file.
17775         * m4/fmodl.m4: New file.
17776         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
17777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
17778         REPLACE_FMODL.
17779         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
17780         REPLACE_FMODL.
17781         * modules/fmodl: New file.
17782         * doc/posix-functions/fmodl.texi: Mention the new module.
17784 2012-02-25  Bruno Haible  <bruno@clisp.org>
17786         Tests for module 'modfl'.
17787         * modules/modfl-tests: New file.
17788         * tests/test-modfl.c: New file.
17789         * tests/test-math-c++.cc: Check the declaration of modfl.
17791         New module 'modfl'.
17792         * lib/math.in.h (modfl): New declaration.
17793         * lib/modfl.c: New file.
17794         * m4/modfl.m4: New file.
17795         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
17796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
17797         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
17798         * modules/modfl: New file.
17799         * doc/posix-functions/modfl.texi: Mention the new module.
17801 2012-02-25  Bruno Haible  <bruno@clisp.org>
17803         Tests for module 'fabsl'.
17804         * modules/fabsl-tests: New file.
17805         * tests/test-fabsl.c: New file.
17806         * tests/test-math-c++.cc: Check the declaration of fabsl.
17808         New module 'fabsl'.
17809         * lib/math.in.h (fabsl): New declaration.
17810         * lib/fabsl.c: New file.
17811         * m4/fabsl.m4: New file.
17812         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
17813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
17814         REPLACE_FABSL.
17815         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
17816         REPLACE_FABSL.
17817         * modules/fabsl: New file.
17818         * doc/posix-functions/fabsl.texi: Mention the new module.
17820 2012-02-25  Bruno Haible  <bruno@clisp.org>
17822         fabs tests: More tests.
17823         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
17824         (zero): New variable.
17825         (main): Add tests for signed zero.
17826         * modules/fabs-tests (Files): Add tests/minus-zero.h.
17828         fabsf tests: More tests.
17829         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
17830         (zero): New variable.
17831         (main): Add tests for signed zero.
17832         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
17834 2012-02-24  Bruno Haible  <bruno@clisp.org>
17836         atanl: Provide function definition on MSVC.
17837         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
17838         function pointer.
17839         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
17841 2012-02-24  Bruno Haible  <bruno@clisp.org>
17843         acosl: Provide function definition on MSVC.
17844         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
17845         function pointer.
17846         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
17848 2012-02-24  Bruno Haible  <bruno@clisp.org>
17850         asinl: Provide function definition on MSVC.
17851         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
17852         function pointer.
17853         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
17855 2012-02-24  Bruno Haible  <bruno@clisp.org>
17857         tanl: Provide function definition on MSVC.
17858         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
17859         function pointer.
17860         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
17862 2012-02-24  Bruno Haible  <bruno@clisp.org>
17864         cosl: Provide function definition on MSVC.
17865         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
17866         function pointer.
17867         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
17869 2012-02-24  Bruno Haible  <bruno@clisp.org>
17871         sinl: Provide function definition on MSVC.
17872         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
17873         function pointer.
17874         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
17876 2012-02-24  Bruno Haible  <bruno@clisp.org>
17878         logl: Provide function definition on MSVC.
17879         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
17880         function pointer.
17881         * lib/math.in.h (logl): Undefine if it does not exist as a function.
17883 2012-02-24  Bruno Haible  <bruno@clisp.org>
17885         expl: Provide function definition on MSVC.
17886         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
17887         function pointer.
17888         * lib/math.in.h (expl): Undefine if it does not exist as a function.
17890 2012-02-24  Bruno Haible  <bruno@clisp.org>
17892         sqrtl: Provide function definition on MSVC.
17893         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
17894         a function pointer.
17895         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
17897 2012-02-24  Bruno Haible  <bruno@clisp.org>
17899         ceill: Provide function definition on MSVC.
17900         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
17901         used as a function pointer.
17902         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
17904 2012-02-24  Bruno Haible  <bruno@clisp.org>
17906         floorl: Provide function definition on MSVC.
17907         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
17908         used as a function pointer.
17909         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
17911 2012-02-24  Bruno Haible  <bruno@clisp.org>
17913         ceilf: Provide function definition on MSVC.
17914         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
17915         used as a function pointer.
17916         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
17918 2012-02-24  Bruno Haible  <bruno@clisp.org>
17920         floorf: Provide function definition on MSVC.
17921         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
17922         used as a function pointer.
17923         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
17925 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17927         stdnoreturn: new module
17928         This implements a replacement for C11's <stdnoreturn.h>.
17929         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
17930         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
17931         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
17932         * tests/test-stdnoreturn.c: New files.
17934 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
17936         regex: fix false multibyte matches in some regular expressions
17937         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
17938         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
17939         * lib/regex_internal.c (re_string_skip_chars):
17940         Fix miscomputation of remain_len that may cause incomplete
17941         multi-byte character and false match.
17943 2012-02-24  Jim Meyering  <meyering@redhat.com>
17945         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
17946         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
17947         uses with "==" *before* the call, e.g., 0 == strcmp (...)
17948         Remove now-unnecessary str''cmp obfuscation.
17949         Suggested by Akim Demaille.
17951 2012-02-24  Bruno Haible  <bruno@clisp.org>
17953         streq: Rename macro.
17954         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
17955         * NEWS: Mention the change.
17956         * lib/mbrtowc.c (mbrtowc): Update.
17957         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
17958         * lib/wcwidth.c (wcwidth): Update.
17959         Suggested by Akim Demaille and Jim Meyering.
17961 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17963         regex: fix typo in definition of MIN
17964         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
17965         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
17967 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17968             Bruno Haible  <bruno@clisp.org>
17970         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
17971         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
17972         entries into a stack-allocated buffer directly.
17973         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
17975 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17976             Bruno Haible  <bruno@clisp.org>
17978         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
17980          - There were several instances of this pattern:
17982              for (;;) {
17983                n = acl (f, GETACLCNT, 0, NULL);
17984                [ allocate an array A of size N ]
17985                if (acl (f, GETACL, n, a) == n)
17986                  break;
17987              }
17989            This loop might never terminate if some other process is constantly
17990            manipulating the file's ACL.  The loop should be rewritten to
17991            terminate.
17993          - The acl (... GETACLNT ...) call is merely an optimization; its value
17994            is merely a hint as to how big to make the array.  A better
17995            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
17996            and just guess a reasonably-big size, growing the size and trying
17997            again if it's not large enough.  This guarantees termination, and
17998            saves a system call.
18000         * lib/acl-internal.h: Include <limits.h>.
18001         (MIN, SIZE_MAX): New macros.
18002         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
18003         a stack-allocated buffer, and use malloc if it does not fit. Don't
18004         use GETACLCNT.
18005         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
18007 2012-02-19  Bruno Haible  <bruno@clisp.org>
18009         acl: Fix endless loop on Solaris with vxfs.
18010         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
18011         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
18012         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
18013         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
18014         * tests/test-sameacls.c (main)[Solaris]: Likewise.
18015         Reported by Bill Jones in
18016         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
18018 2012-02-19  Bruno Haible  <bruno@clisp.org>
18020         acl: Fix copy-acl test failure on Solaris 11 2011-11.
18021         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
18022         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
18023         that this function returns 0 in some more cases.
18025 2012-02-19  Bruno Haible  <bruno@clisp.org>
18027         acl: Update doc references.
18028         * doc/acl-resources.txt: Update links to Solaris documentation.
18030 2012-02-19  Bruno Haible  <bruno@clisp.org>
18032         Fix test failure in many locales on Solaris 11.
18033         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
18034         'tr' arguments.
18035         * tests/test-pipe-filter-ii1.c (main): Likewise.
18036         * build-aux/bootstrap (check_versions): Run 'tr' command with range
18037         expressions in the C locale.
18038         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18039         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18041 2012-02-19  Bruno Haible  <bruno@clisp.org>
18043         gnulib-tool: Improve usage message.
18044         * gnulib-tool (func_usage): Move doc of --help and --version to the
18045         section "Operation modes".
18047 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
18049         README-release: make it easier to execute commands
18050         * top/README-release: break commands out on to separate lines.
18052 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
18054         GNUmakefile: simplify detection of unconfigured trees
18055         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
18056         whether the tree make is being run from is already configured or
18057         not.  Related simplifications.
18059 2012-02-13  Simon Josefsson  <simon@josefsson.org>
18061         * gnulib-tool (func_usage): Document --help and --version.
18063 2012-02-11  Jim Meyering  <meyering@redhat.com>
18065         bootstrap: don't exit 0 upon gnulib-tool failure
18066         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
18067         its exit status, not 0.
18069 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
18071         README-release: various improvements
18072         * top/README-release: Give a command to push changes for the
18073         release.  Add "distcheck" to list of other pre-release checks.
18074         Fix instance of "make stable" which should be "make TYPE".
18076 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18078         maint: replace FSF snail-mail addresses with URLs
18079         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
18080         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
18081         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
18082         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
18083         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
18084         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
18085         * lib/check-version.c, lib/check-version.h, lib/config.charset:
18086         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
18087         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
18088         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
18089         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
18090         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
18091         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
18092         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
18093         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
18094         * lib/glthread/thread.c, lib/glthread/thread.h:
18095         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
18096         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
18097         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
18098         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
18099         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
18100         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
18101         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
18102         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
18103         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
18104         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
18105         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
18106         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
18107         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
18108         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
18109         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
18110         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
18111         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
18112         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
18113         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
18114         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
18115         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
18116         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
18117         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
18118         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
18119         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
18120         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
18121         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
18122         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
18123         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
18124         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
18125         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
18126         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
18127         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
18128         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
18129         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
18130         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
18131         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
18132         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
18133         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
18134         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
18135         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
18136         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
18137         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
18138         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
18139         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
18140         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
18141         * tests/test-poll.c, tests/test-quotearg-simple.c:
18142         * tests/test-quotearg.c, tests/test-quotearg.h:
18143         * tests/test-round-ieee.c, tests/test-round1.c:
18144         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
18145         * tests/test-roundl-ieee.c, tests/test-roundl.c:
18146         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
18147         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
18148         * tests/test-strerror.c, tests/test-strerror_r.c:
18149         * tests/test-strsignal.c, tests/test-strverscmp.c:
18150         * tests/test-xmemdup0.c:
18151         Replace FSF snail mail addresses with URLs, as per GNU coding
18152         standards.  See glibc bug
18153         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
18155 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
18157         README-release: capitalize a word and split a line
18158         * top/README-release: Fix punctuation and spacing.
18160 2012-02-08  Akim Demaille  <demaille@gostai.com>
18162         fatal-signal: use C prototypes (with explicit void).
18163         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
18164         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
18166 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
18168         regex: spelling fix
18169         * lib/regexec.c: spelling fix
18171         regex: rely on stdint.h for SIZE_MAX
18172         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
18174 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
18176         regex: merge glibc changes
18178         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
18179         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
18180         (init_word_char): Work even if bitset words are not exactly 32 or
18181         64 bits wide.  Don't assume there are no padding bits.
18182         * lib/regex.c [_LIBC]: Do not include <config.h>.
18183         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
18184         and -Wtype-limits.
18185         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
18186         needless disagreement with glibc.  All uses changed.  Define it to
18187         1 only if _GNU_SOURCE, to match glibc.
18188         (_REG_RM_NAME): Remove; no longer needed, since the names in
18189         question are now all protected by __USE_GNU.
18190         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
18191         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
18192         * lib/regex_internal.h (MIN): New macro.
18194         2012-01-03 Ulrich Drepper <drepper@gmail.com>
18195         * lib/regcomp.c (init_word_char): Optimize regex a bit.
18197         2011-12-30 Jakub Jelinek <jakub@redhat.com>
18198         * lib/regex_internal.c (re_string_fetch_byte_case):
18199         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
18200         is miscompiled, and it turns out it is because of an incorrect
18201         attribute on re_string_fetch_byte_case.  Unlike
18202         re_string_peek_byte_case, this one is really not pure, it modifies
18203         memory (increments pstr->cur_idx), and with the pure attribute GCC
18204         assumed it doesn't and it cached the presumed value of
18205         regexp->cur_idx in a variable across the
18206          for (;; ++i)
18207            {
18208              if (i >= BRACKET_NAME_BUF_SIZE)
18209                return REG_EBRACK;
18210              if (token->type == OP_OPEN_CHAR_CLASS)
18211                ch = re_string_fetch_byte_case (regexp);
18212              else
18213                ch = re_string_fetch_byte (regexp);
18214              if (re_string_eoi(regexp))
18215                return REG_EBRACK;
18216              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
18217                break;
18218              elem->opr.name[i] = ch;
18219            }
18221         2011-11-29 Andreas Schwab <schwab@redhat.com>
18222         * lib/regcomp.c (build_equiv_class):
18223         Fix access after end of search string in regex matcher.
18225         2011-11-12 Ulrich Drepper <drepper@redhat.com>
18226         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
18228         2011-10-12 Ulrich Drepper <drepper@redhat.com>
18229         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
18231         2011-10-11 Ulrich Drepper <drepper@redhat.com>
18232         * lib/regcomp.c (parse_branch, parse_sub_exp):
18233         More regex memory leak fixes and tests.
18234         (parse_sub_exp, parse_bracket_exp):
18235         Fix memory leak for some invalid regular expressions.
18237         2011-05-28 Ulrich Drepper <drepper@gmail.com>
18238         * lib/regex_internal.c, lib/regexec.c:
18239         Fix unnecessary overallocation due to incomplete character.  When
18240         incomplete characters are found at the end of a string the code
18241         ran amok and allocated lots of memory.  Stricter limits are now in
18242         place.
18244         2011-05-20 Reuben Thomas <rrt@sc3d.org>
18245         * lib/regex.h: Update documentation.
18247         2011-05-16 Aharon Robbins <arnold@skeeve.com>
18248         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
18250         2010-05-05 Andreas Schwab <schwab@redhat.com>
18251         * lib/regexec.c (find_collation_sequence_value):
18252         Fix lookup of collation sequence value during regexp matching.
18254         2010-01-22 Ulrich Drepper <drepper@redhat.com>
18255         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
18257         2008-01-16 Ulrich Drepper <drepper@redhat.com>
18258         * lib/regex.h: Cleanup namespace.
18260         2007-11-26 Ulrich Drepper <drepper@redhat.com>
18261         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
18263         2007-08-26 Ulrich Drepper <drepper@redhat.com>
18264         * lib/regex_internal.h: Prevent some declarations and definitions
18265         to be seen when used in tests.
18267         2005-05-06 Ulrich Drepper <drepper@redhat.com>
18268         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
18269         __libc_lock_* macros if not _LIBC.
18270         (struct re_dfa_t): Add lock.
18272 2012-02-07  Eric Blake  <eblake@redhat.com>
18274         maint.mk: also prohibit lower-case @var@
18275         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
18276         lower case, like @top_srcdir@.
18278 2012-02-04  Eric Blake  <eblake@redhat.com>
18280         canonicalize: avoid uninitialized memory use
18281         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
18282         random '/' left in dest.
18283         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
18285 2012-02-04  Bruno Haible  <bruno@clisp.org>
18287         isatty: Fix test failure of ptsname_r on native Windows.
18288         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
18289         and don't set errno.
18290         (isatty): Test first whether fd is valid. Set errno when returning 0.
18292 2012-02-04  Bruno Haible  <bruno@clisp.org>
18294         spawn-pipe tests: Fix a NULL program name in a diagnostic.
18295         * tests/test-spawn-pipe-main.c: Include progname.h.
18296         (main): Invoke set_program_name.
18297         * modules/spawn-pipe-tests (Depends-on): Add progname.
18299         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
18300         * tests/test-nonblocking-socket-main.c: Include progname.h.
18301         (main): Invoke set_program_name.
18302         * modules/nonblocking-socket-tests (Depends-on): Add progname.
18304         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
18305         * tests/test-nonblocking-pipe-main.c: Include progname.h.
18306         (main): Invoke set_program_name.
18307         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
18309 2012-02-04  Eric Blake  <eblake@redhat.com>
18311         canonicalize-lgpl: fix // handling
18312         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
18314         canonicalize: fix // handling
18315         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
18316         /// to //, since only // is special.
18318 2012-02-04  Bruno Haible  <bruno@clisp.org>
18320         ioctl: Fix test failure on native Windows.
18321         * lib/ioctl.c: Include msvc-nothrow.h.
18322         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
18324 2012-02-04  Bruno Haible  <bruno@clisp.org>
18326         fsync: Avoid test failure on native Windows.
18327         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
18328         read-only.
18330 2012-02-04  Bruno Haible  <bruno@clisp.org>
18332         sys_select: Avoid syntax error on OpenBSD 5.0.
18333         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
18334         currently being included, just include the system's <sys/select.h>.
18336 2012-02-04  Bruno Haible  <bruno@clisp.org>
18338         sys_select: Avoid syntax error on OpenBSD 5.0.
18339         * lib/sys_select.in.h: Include <signal.h> only after the include_next
18340         <sys/select.h>, not before.
18341         Reported by Jiri B <jirib@devio.us>.
18343 2012-02-04  Bruno Haible  <bruno@clisp.org>
18345         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
18346         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
18347         global variables.
18348         * tests/test-get-rusage-data.c (main): Likewise.
18349         Reported by Jim Meyering.
18351 2012-02-04  Bruno Haible  <bruno@clisp.org>
18353         stdioext: Fix last commit.
18354         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
18356 2012-02-03  Bruno Haible  <bruno@clisp.org>
18358         stdioext: Add tentative support for Plan9.
18359         * lib/stdio-impl.h: Include <errno.h>.
18360         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
18361         * lib/freadable.c (freadable): Likewise.
18362         * lib/fwritable.c (fwritable): Likewise.
18363         * lib/fbufmode.c (fbufmode): Likewise.
18364         * lib/freading.c (freading): Likewise.
18365         * lib/fwriting.c (fwriting): Likewise.
18366         * lib/freadptr.c (freadptr): Likewise.
18367         * lib/freadseek.c (freadptrinc): Likewise.
18368         * lib/freadahead.c (freadahead): Likewise.
18369         * lib/fpurge.c (fpurge): Likewise.
18370         * lib/fseeko.c (rpl_fseeko): Likewise.
18371         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
18372         Reported by Jens Staal <staal1978@gmail.com>.
18374 2012-02-02  Jim Meyering  <meyering@redhat.com>
18376         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
18377         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
18378         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
18379         not even to try to add the attribute.  Instead, add a pragma to suppress
18380         the suggestion/warning.
18382 2012-01-31  Karl Berry  <karl@gnu.org>
18384         setstate doc: typo.
18385         * doc/posix-functions/setstate.texi (setstate): { not (.
18387 2012-01-31  Bruno Haible  <bruno@clisp.org>
18389         popen: Make more robust on Windows.
18390         * lib/popen.c: On native Windows, use the _popen based code even if
18391         HAVE_POPEN is set.
18392         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
18393         environment variable on native Windows.
18395 2012-01-30  Bruno Haible  <bruno@clisp.org>
18397         pclose: Fix typo.
18398         * lib/stdio.in.h (pclose): Fix typo in warning message.
18400 2012-01-30  Bruno Haible  <bruno@clisp.org>
18402         doc about getlogin_r, setstate.
18403         * doc/posix-functions/getlogin_r.texi: List the incompatible
18404         declaration problem under "not fixed by gnulib".
18405         * doc/posix-functions/setstate.texi: Mention incompatible declaration
18406         problem on Solaris 11 and other platforms.
18408 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
18409             Bruno Haible  <bruno@clisp.org>
18411         poll tests: Make test more robust.
18412         * tests/test-poll.c: Include macros.h.
18413         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
18414         return value of various I/O operations.
18415         * modules/poll-tests (Files): Add tests/macros.h.
18417 2012-01-30  Bruno Haible  <bruno@clisp.org>
18419         sys_stat: Fix support for mingw64 and MSVC.
18420         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
18421         header files already do it.
18422         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
18423         stat itself.
18424         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
18426 2012-01-30  Bruno Haible  <bruno@clisp.org>
18428         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
18429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
18430         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
18432 2012-01-29  Bruno Haible  <bruno@clisp.org>
18434         quotearg: Fix test failure on MacOS X 10.5.
18435         * tests/test-quotearg-simple.c: Include localcharset.h.
18436         (main): If the locale encoding is not ASCII, bypass the tests of
18437         locale_quoting_style and clocale_quoting_style.
18438         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
18440 2012-01-29  Jim Meyering  <meyering@redhat.com>
18442         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
18443         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
18444         detect uses of canonicalize_file_name.
18446 2012-01-28  Bruno Haible  <bruno@clisp.org>
18448         test-framework-sh: Fix test failure with AIX 7.1 diff.
18449         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
18450         in column 1, like 'diff -c' does.
18451         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
18452         whether 'diff -u' is used. Instead, test whether the output contains
18453         some '@' character.
18455 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18457         strtoimax: eliminate need for stdint.h, inttypes.h checks
18458         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
18459         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
18460         the prerequisites for a recently-introduced strtoimax test.
18461         I guess this might cause strtoimax to be replaced when not
18462         strictly necessary on older hosts, but this shouldn't introduce
18463         any bugs and it should make Emacs 'configure' faster on typical
18464         modern hosts.  Problem discovered when importing the latest gnulib
18465         to an Emacs test version.
18466         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
18468 2012-01-28  Bruno Haible  <bruno@clisp.org>
18470         sys_time: Override 'struct timeval' on some native Windows platforms.
18471         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
18472         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
18473         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
18474         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
18475         needs to be overridden.
18476         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
18477         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
18478         * tests/test-sys_select.c: Check that the tv_sec member has the same
18479         size as a 'time_t'.
18480         * tests/test-sys_time.c: Likewise.
18481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
18482         is set, set also REPLACE_GETTIMEOFDAY.
18483         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
18484         convert the resulting 'struct timeval' before returning.
18485         * lib/select.c: Include <sys/time.h>.
18486         (select, timeval): Undefine at the right place.
18487         * modules/select (Depends-on): Add sys_time.
18488         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
18489         some Windows platforms.
18490         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
18492 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
18494         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
18495         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
18496         an integer.
18497         * lib/fcntl.c (dupfd): Likewise.
18498         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
18500 2012-01-28  Bruno Haible  <bruno@clisp.org>
18502         fcntl: Avoid compilation error on native Windows.
18503         * modules/fcntl (Depends-on): Add 'close'.
18505 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
18507         select, poll, isatty: Avoid warnings on x86_64 mingw64.
18508         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
18509         pointer to an integer.
18510         * lib/poll.c (IsConsoleHandle): Likewise.
18511         * lib/isatty.c (IsConsoleHandle): Likewise.
18513 2012-01-28  Jim Meyering  <meyering@redhat.com>
18515         doc: clarify README-release
18516         * top/README-release: Clarify: you should make a point to have
18517         the latest stable versions of build tools in your PATH, and the
18518         reference to buildreq is solely for its list of tool names, not
18519         for its minimal-functional version numbers.
18520         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
18522         maint.mk: use more readable (yet functionally equivalent) quoting
18523         It is common to quote a single quote in a single quoted string like
18524         this:  '...'\''...'.  Unless you know the idiom, that looks like
18525         gibberish, so prefer to double-quote the string when possible.
18526         Then you can use a more readable, lone single quote: "...'..."
18527         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
18528         "don't" is more readable than the equivalent 'don'\''t'.
18529         (sc_cast_of_x_alloc_return_value): Likewise.
18530         (sc_cast_of_alloca_return_value): Likewise.
18531         (sc_makefile_path_separator_check): Similar: use ":" in '...',
18532         rather than '\'':'\''.
18534 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18536         stdalign: relax _Alignof and tighten _Alignas test
18537         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
18538         as it was too strict: alignof must divide offsetof, but it need
18539         not equal offsetof.  Inspired by Joseph S. Myers's comment
18540         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
18541         Conversely, tighten the _Alignas test a bit, as the resulting
18542         alignment must be exactly 8.
18544 2012-01-27  Bruno Haible  <bruno@clisp.org>
18546         stdalign: Document the last change.
18547         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
18549 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18551         stdalign: check that alignof and offsetof are consistent
18552         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
18553         Problem reported for gnulib by Richard W.M. Jones in
18554         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
18556 2012-01-27  Jim Meyering  <meyering@redhat.com>
18558         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
18559         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
18560         convert a sequence with gaps to the minimal containing range.
18561         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
18562         * tests/test-update-copyright.sh: Test for this.
18563         The FSF confirmed it is ok to do this, assuming there is at
18564         least one significant change per year in the affected range:
18565         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
18567 2012-01-26  Bruno Haible  <bruno@clisp.org>
18569         pipe2: refine doc about thread-safety
18570         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
18571         multithread-safety problem.
18572         * doc/glibc-functions/accept4.texi: Likewise.
18574 2012-01-26  Bruno Haible  <bruno@clisp.org>
18576         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
18577         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
18578         In the test program, include <fcntl.h>, for O_RDONLY.
18580 2012-01-26  Eric Blake  <eblake@redhat.com>
18582         pipe2: document lack of thread-safety in replacement
18583         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
18584         issue in replacement.
18585         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18586         Based on a report by Eric Wong.
18588 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
18589             Bruno Haible  <bruno@clisp.org>
18591         malloca: Avoid warnings on x86_64 mingw64.
18592         * lib/malloca.c: Include <stdint.h>.
18593         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
18594         * modules/malloca (Depends-on): Add stdint.
18595         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
18597 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18599         obstack: remove __STDC__ conditionals
18600         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
18601         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
18602         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
18603         m4/include_next.m4 as the only gnulib-maintained places that still
18604         refer to __STDC__.
18606 2012-01-24  Bruno Haible  <bruno@clisp.org>
18608         havelib: Modern quoting.
18609         * build-aux/config.rpath: Quote 'like this', not `like this', as per
18610         the recent change to the GNU coding standards.
18612 2012-01-24  Bruno Haible  <bruno@clisp.org>
18614         stdint: Improve support for Android.
18615         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
18616         Reported by Simon Josefsson <simon@josefsson.org>.
18618 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18620         doc: omit trailing empty lines from INSTALL etc.
18621         * doc/Makefile (INSTALL): Omit trailing empty lines.
18622         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
18623         omit trailing empty lines.  This simplifies the build procedure.
18625 2012-01-23  Jim Meyering  <meyering@redhat.com>
18627         tests: avoid spurious warnings about gl_sockets_startup
18628         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
18629         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
18630         reporting a "statement with no effect".
18631         * tests/test-accept.c (main): Mark as "(void)".
18632         * tests/test-accept4.c (main): Likewise.
18633         * tests/test-bind.c (main): Likewise.
18634         * tests/test-connect.c (main): Likewise.
18635         * tests/test-getpeername.c (main): Likewise.
18636         * tests/test-getsockname.c (main): Likewise.
18637         * tests/test-getsockopt.c (main): Likewise.
18638         * tests/test-listen.c (main): Likewise.
18639         * tests/test-recv.c (main): Likewise.
18640         * tests/test-recvfrom.c (main): Likewise.
18641         * tests/test-send.c (main): Likewise.
18642         * tests/test-sendto.c (main): Likewise.
18643         * tests/test-setsockopt.c (main): Likewise.
18644         * tests/test-shutdown.c (main): Likewise.
18646 2012-01-21  Bruno Haible  <bruno@clisp.org>
18648         locale-fr.m4: Fix for Android.
18649         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
18650         failure of the test program on Bionic libc.
18652 2012-01-21  Jim Meyering  <meyering@redhat.com>
18654         bootstrap: fail when bootstrap_post_import_hook fails
18655         Otherwise, it's far too easy to miss diagnostics emitted
18656         between gnulib-tool's output and that of running configure.
18657         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
18659 2012-01-17  Jim Meyering  <meyering@redhat.com>
18661         maint: enable sc_trailing_blank
18662         * build-aux/pmccabe.css: Remove trailing blanks.
18663         * doc/acl-cygwin.txt: Likewise.
18664         * doc/gnu-oids.texi: Likewise
18665         * cfg.mk: Enable sc_trailing_blank.
18666         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
18668 2012-01-17  Jim Meyering  <meyering@redhat.com>
18670         maint: enable sc_prohibit_openat_without_use
18671         * cfg.mk: Enable sc_prohibit_openat_without_use.
18672         Exempt lib/selinux-at.c.
18674 2012-01-17  Jim Meyering  <meyering@redhat.com>
18676         maint: enable sc_prohibit_cloexec_without_use
18677         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
18678         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
18680 2012-01-17  Jim Meyering  <meyering@redhat.com>
18682         maint: enable sc_prohibit_intprops_without_use
18683         * cfg.mk: Enable sc_prohibit_intprops_without_use
18684         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
18686 2012-01-17  Jim Meyering  <meyering@redhat.com>
18688         maint: enable sc_prohibit_hash_pjw_without_use
18689         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
18690         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
18691         to match any use of \<hash_pjw\>, i.e., not necessarily with a
18692         following " (".
18694 2012-01-17  Jim Meyering  <meyering@redhat.com>
18696         maint: enable double-word-prohibiting rule
18697         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
18698         Exempt three files.
18700 2012-01-17  Jim Meyering  <meyering@redhat.com>
18702         maint: remove empty lines at EOF, but excluding modules/*
18703         Apply syntax rules at home as well as abroad.  Most changes
18704         were induced by running this:
18705           make srcdir=. _build-aux=build-aux -f top/maint.mk \
18706             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
18707             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
18708         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
18709         Exempt modules/* and two binary files.
18710         Also exempt doc/INSTALL*, per request from Bruno Haible.
18711         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
18712         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
18713         * doc/Copyright/request-assign.future: Likewise.
18714         * doc/Copyright/request-disclaim.changes: Likewise.
18715         * doc/INSTALL: Likewise.
18716         * doc/INSTALL.ISO: Likewise.
18717         * doc/INSTALL.UTF-8: Likewise.
18718         * doc/acl-cygwin.txt: Likewise.
18719         * doc/acl-resources.txt: Likewise.
18720         * doc/fdl-1.2.texi: Likewise.
18721         * doc/fdl-1.3.texi: Likewise.
18722         * doc/fdl.texi: Likewise.
18723         * lib/argp-pin.c: Likewise.
18724         * lib/round.c: Likewise.
18725         * lib/unicase/u16-totitle.c: Likewise.
18726         * lib/unictype/block_test.c: Likewise.
18727         * lib/uninorm/canonical-decomposition.c: Likewise.
18728         * m4/README: Likewise.
18729         * m4/relocatable-lib.m4: Likewise.
18730         * tests/test-isnand-nolibm.c: Likewise.
18731         * tests/test-isnand.c: Likewise.
18732         * tests/uninorm/NormalizationTest.txt: Likewise.
18734 2012-01-17  Jim Meyering  <meyering@redhat.com>
18736         maint: add framework to run syntax-check rules against gnulib sources
18737         * cfg.mk: New file, to disable all currently-failing tests.
18738         We'll enable them one by one, as they are made to pass.
18739         * Makefile (sc_maint): New rule.
18741 2012-01-21  Bruno Haible  <bruno@clisp.org>
18743         stdint: Add support for Android.
18744         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
18745         include the system's <stdint.h>.
18746         Reported by Simon Josefsson <simon@josefsson.org>.
18748 2012-01-19  Jim Meyering  <meyering@redhat.com>
18750         bootstrap: add bootstrap_post_import_hook
18751         Bison does still need something like the gnulib_mk_hook whose
18752         invocation I had to remove along with slurp in commit 767ccd40.
18753         Technically, we could get along without it, but doing so would
18754         have required living with a warning and a mandatory post-bootstrap
18755         automake rerun.
18756         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
18757         (bootstrap_post_import_hook): New function.
18758         Invoke it after gnulib-tool --import and before autoreconf.
18760 2012-01-18  Jim Meyering  <meyering@redhat.com>
18762         gitlog-to-changelog: don't use "no_"-prefixed variable name
18763         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
18764         to enable both --cluster and --no-cluster.  Change variable name,
18765         s/\$no_cluster/$cluster/, and reverse usage to match.
18767         gitlog-to-changelog: use "||", not "or" in expressions
18768         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
18769         expressions.
18771 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
18773         gitlog-to-changelog: new option --no-cluster
18774         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
18775         clustering of adjacent commit messages.
18777 2012-01-17  Jim Meyering  <meyering@redhat.com>
18779         maint: spell file systems with two words, not one
18780         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
18781         two words, not one.
18783 2012-01-16  Jim Meyering  <meyering@redhat.com>
18785         bootstrap: add a FIXME comment to ensure we eventually remove the hack
18786         * build-aux/bootstrap (gnulib_tool_options): Add comment.
18788 2012-01-16  Eric Blake  <eblake@redhat.com>
18790         bootstrap: cater to autoconf 2.59
18791         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
18792         is not available.
18794         bootstrap: properly check for libtool
18795         * build-aux/bootstrap (libtoolize): Also run libtool when older
18796         usage is detected.
18798 2012-01-15  Bruno Haible  <bruno@clisp.org>
18800         Improve support for MSVC 9.
18801         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
18802         clashes on MSVC.
18803         * lib/fcntl.in.h: Likewise.
18804         * lib/stdlib.in.h: Likewise.
18805         * lib/sys_stat.in.h: Likewise.
18807 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
18809         gnupload: we hold the master copy of this script now
18810         For motivation and more information, see:
18811         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
18812         * build-aux/gnupload: Make it clear in the heading comments that the
18813         master copy of this file is maintained by gnulib.  Since we are at
18814         it, bump its copyright year and ...
18815         ($scriptversion): ... the date in its version.
18816         ($usage): Patches and bug reports should be sent to the gnulib list,
18817         not the automake one.
18818         * config/srclist.txt: Don't try to sync 'gnupload' from automake
18819         anymore.
18821 2012-01-15  Bruno Haible  <bruno@clisp.org>
18823         Fix module 'random'.
18824         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
18825         initstate, setstate are declared.
18827 2012-01-14  Bruno Haible  <bruno@clisp.org>
18829         Tests for module 'random'.
18830         * modules/random-tests: New file.
18831         * tests/test-random.c: New file, based on tests/test-random_r.c.
18833         New module 'random'.
18834         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
18835         declarations.
18836         * lib/random.c: New file, based on glibc/stdlib/random.c.
18837         * m4/random.m4: New file.
18838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
18839         HAVE_RANDOM.
18840         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
18841         * modules/random: New file.
18842         * config/srclist.txt: Add an entry for random.c.
18843         * doc/posix-functions/random.texi: Mention the 'random' module.
18844         * doc/posix-functions/initstate.texi: Likewise.
18845         * doc/posix-functions/setstate.texi: Likewise.
18846         * doc/posix-functions/srandom.texi: Likewise.
18848 2012-01-12  Bruno Haible  <bruno@clisp.org>
18850         random_r: Use common idioms.
18851         * lib/random_r.c: Include <stdlib.h> first.
18853         random_r: Override incompatible API on AIX, OSF/1.
18854         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
18855         Override the system function if REPLACE_RANDOM_R is 1.
18856         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
18857         and OSF/1, set REPLACE_RANDOM_R.
18858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
18859         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
18860         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
18861         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
18862         * doc/glibc-functions/random_r.texi: Likewise.
18863         * doc/glibc-functions/setstate_r.texi: Likewise.
18865         random_r: Support for MSVC 9.
18866         * lib/random_r.c: Include stdint.h, not inttypes.h.
18868 2012-01-12  Eric Blake  <eblake@redhat.com>
18870         inet_ntop: guard extra work by IF_LINT
18871         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
18872         better code generation when not checking for warnings.
18873         Suggested by Paul Eggert and Jim Meyering.
18875         strptime: fix regression on mingw
18876         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
18877         Fix regression.  Reported by Bruno Haible.
18879 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
18880             Bruno Haible  <bruno@clisp.org>
18882         copy-file: add error-code-returning variant.
18883         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
18884         (qcopy_file_preserving): New declaration.
18885         * lib/copy-file.c (qcopy_file_preserving): Renamed from
18886         copy_file_preserving. Change return type to 'int'. Don't emit an error
18887         message here.
18888         (copy_file_preserving): New function.
18889         * tests/test-copy-file.c: Include <stdlib.h>.
18890         (main): Test qcopy_file_preserving if the environment variable
18891         NO_STDERR_OUTPUT is set.
18892         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
18893         with NO_STDERR_OUTPUT
18894         * tests/test-copy-file-2.sh: Likewise.
18896 2012-01-10  Bruno Haible  <bruno@clisp.org>
18898         copy-file: Use 'quote' module consistently.
18899         * lib/copy-file.c (copy_file_preserving): Use quote().
18901         copy-file: Refactor.
18902         * lib/copy-file.c: Include quote.h.
18903         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
18904         message here.
18905         * modules/copy-file (Depends-on): Add quote.
18907         acl: Export qcopy_acl.
18908         * lib/acl.h (qcopy_acl): New declaration.
18909         * lib/copy-acl.c (qcopy_acl): Make non-static.
18911         acl: Rename a local variable.
18912         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
18914         acl: Align return values of copy_acl and qcopy_acl.
18915         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
18916         maybe < -1.
18918 2012-01-11  Eric Blake  <eblake@redhat.com>
18920         strptime: silence gcc warnings
18921         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
18922         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
18923         Reported by Daniel P. Berrange.
18925         inet_ntop: silence gcc warning
18926         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
18927         Reported by Daniel P. Berrange.
18929 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
18931         getloadavg test: skip the test on GNU/Linux without /proc mounted
18932         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
18933         file.  When /proc is not mounted, it always fails with ENOENT.
18934         * tests/test-getloadavg.c (main): Treat ENOENT return code from
18935         getloadavg(3) the same way as ENOSYS and ENOTSUP.
18937 2012-01-10  Bruno Haible  <bruno@clisp.org>
18939         regex: Avoid link error on MSVC 9.
18940         * modules/regex (Depends-on): Add wctype.
18942 2012-01-10  Bruno Haible  <bruno@clisp.org>
18944         doc: Mention --with-tests option.
18945         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
18946         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
18947         --with-tests.
18948         Reported by Reuben Thomas.
18950 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
18952         users.txt: order package names lexicographically.
18953         * users.txt: Order package names lexicographically.
18955 2012-01-10  Jim Meyering  <meyering@redhat.com>
18957         maint.mk: fix description in comment
18958         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
18960         ignore-value: remove deprecated ignore_ptr function
18961         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
18962         * NEWS: Note this.
18964 2012-01-09  Jim Meyering  <meyering@redhat.com>
18966         test-init.sh: avoid a subshell
18967         * tests/test-init.sh: Remove protective subshell.
18968         Suggested by Bernhard Voelker.  While a subshell is normally
18969         required to protect against older shells (Solaris, FreeBSD) that
18970         warn about a missing program before performing redirection, the
18971         shell-selection tests performed by init.sh probably exclude any
18972         offending shell.
18974 2012-01-08  Bruno Haible  <bruno@clisp.org>
18976         setlocale tests: Avoid test failure on Solaris 11 2011-11.
18977         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
18978         variable.
18980 2012-01-08  Bruno Haible  <bruno@clisp.org>
18982         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
18983         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
18984         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
18985         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
18986         macro.
18987         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
18988         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
18989         * lib/spawn_faction_addopen.c: Add workaround implementation if
18990         HAVE_WORKING_POSIX_SPAWN.
18991         * modules/spawn (Makefile): Substitute
18992         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
18993         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
18994         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
18995         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
18996         (Depends-on): Update conditions.
18997         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18998         the Solaris 11 bug.
19000 2012-01-08  Bruno Haible  <bruno@clisp.org>
19002         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
19003         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
19004         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
19005         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
19006         macro.
19007         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
19008         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
19009         * lib/spawn_faction_adddup2.c: Add workaround implementation if
19010         HAVE_WORKING_POSIX_SPAWN.
19011         * modules/spawn (Makefile): Substitute
19012         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
19013         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
19014         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
19015         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
19016         (Depends-on): Update conditions.
19017         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19018         the Solaris 11 bug.
19020 2012-01-08  Bruno Haible  <bruno@clisp.org>
19022         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
19023         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
19024         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
19025         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
19026         HAVE_WORKING_POSIX_SPAWN.
19027         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
19028         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
19029         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
19030         * lib/spawn_faction_addclose.c: Add workaround implementation if
19031         HAVE_WORKING_POSIX_SPAWN.
19032         * modules/spawn (Makefile): Substitute
19033         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
19034         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
19035         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
19036         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
19037         (Depends-on): Update conditions.
19038         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19039         the Solaris 11 bug.
19041 2012-01-08  Bruno Haible  <bruno@clisp.org>
19043         doc: Update for Solaris 11 2011-11.
19044         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
19045         * m4/printf.m4: Update comments.
19047 2012-01-08  Bruno Haible  <bruno@clisp.org>
19049         mktime: Avoid compilation error on Solaris 11.
19050         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
19052 2012-01-08  Bruno Haible  <bruno@clisp.org>
19054         doc: Small fix.
19055         * doc/posix-headers/nl_types.texi: Correct platforms list.
19057 2012-01-08  Simon Josefsson  <simon@josefsson.org>
19059         Add lgpl-3.0 module.
19060         * MODULES.html.sh (Support for building documentation): Add
19061         lgpl-3.0.
19062         * modules/lgpl-3.0: New file.
19064 2012-01-08  Jim Meyering  <meyering@redhat.com>
19066         select.c: indent with spaces, not TABs
19067         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
19069 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
19071         quotearg: do not use grave accent for left quote
19072         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
19073         locale_quoting_style.
19074         (quotearg_buffer_restyled): Fix example.
19075         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
19077 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
19079         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
19080         Most programs do not have translation catalogs for English and much
19081         less separate catalogs for British and American English.  Drop the
19082         suggestion to translators about these two, and provide it
19083         automatically for Unicode locales.  Like most programs, even those
19084         using American English, we use single quotation marks.  This conflicts
19085         with the American typographic convention, but works better when you
19086         cite the entire error message within double quotes.  It also tries not
19087         to clash with established practice and with what non-gnulib programs
19088         will usually do.
19089         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
19090         using an UTF-8 or GB-18030 locale.  The list of other locales with
19091         quotes was provided by Bruno Haible.
19092         (quotearg_buffer_restyled): Adjust instructions to translators.
19093         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
19094         text, since this would be wrong when using Unicode.
19095         * modules/quotearg: Depend on c-strcaseeq.
19097 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
19099         quotearg: fix Wikipedia link
19100         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
19102 2012-01-07  Simon Josefsson  <simon@josefsson.org>
19104         Fix for mingw with MSVC9.
19105         * m4/ld-version-script.m4: Check that compiler rejects version
19106         scripts with syntax errors.  Reported by Bruno Haible
19107         <bruno@clisp.org>.
19109 2012-01-06  Bruno Haible  <bruno@clisp.org>
19111         Talk about "native Windows API", not "Woe32".
19112         * lib/accept4.c: Update comments to mention native Windows.
19113         * lib/execute.c: Likewise.
19114         * lib/fatal-signal.c: Likewise.
19115         * lib/localcharset.c: Likewise.
19116         * lib/nanosleep.c: Likewise.
19117         * lib/nl_langinfo.c: Likewise.
19118         * lib/pclose.c: Likewise.
19119         * lib/pipe-filter-gi.c: Likewise.
19120         * lib/pipe-filter-ii.c: Likewise.
19121         * lib/pipe.c: Likewise.
19122         * lib/pipe2.c: Likewise.
19123         * lib/popen.c: Likewise.
19124         * lib/progreloc.c: Likewise.
19125         * lib/relocatable.c: Likewise.
19126         * lib/sigaction.c: Likewise.
19127         * lib/sigprocmask.c: Likewise.
19128         * lib/spawn-pipe.h: Likewise.
19129         * lib/spawn-pipe.c: Likewise.
19130         * lib/spawni.c: Likewise.
19131         * lib/stat-time.h: Likewise.
19132         * lib/w32spawn.h: Likewise.
19133         * tests/test-isatty.c: Likewise.
19134         * lib/config.charset: More comments.
19135         * doc/gnulib-intro.texi: Mention native Windows.
19136         * doc/posix-functions/_Exit_C99.texi: Likewise.
19137         * doc/posix-headers/fcntl.texi: Likewise.
19139 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
19141         argp: Avoid crash if translator uses % characters in a translation.
19142         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
19143         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
19145 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19147         doc: C11 and C++11 are now official
19148         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
19149         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
19150         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
19151         * modules/stdalign:
19152         Replace references to draft C1X to C11, and to draft C++0X to C++11.
19154 2012-01-06  Bruno Haible  <bruno@clisp.org>
19156         uc-is-grapheme-break tests: Tweak.
19157         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
19158         message.
19160 2012-01-06  Bruno Haible  <bruno@clisp.org>
19162         test-init.sh: correct the test for diff -u
19163         * tests/test-init.sh: Also redirect stdout to /dev/null.
19165 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19167         Use ', not `, for quoting output.
19168         * build-aux/announce-gen (usage, sizes, print_news_deltas)
19169         (print_changelog_deltas, get_tool_versions, main program):
19170         * build-aux/git-version-gen:
19171         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
19172         * build-aux/move-if-change (help):
19173         * build-aux/useless-if-before-free (usage, main program):
19174         * check-module (parse_module_file, usage)
19175         (find_included_lib_files, check_module):
19176         * lib/argmatch.c (main) [TEST]:
19177         * lib/argp-help.c (_help):
19178         * lib/getopt1.c (main) [TEST]:
19179         * lib/git-merge-changelog.c (usage):
19180         * lib/xstrtol-error.c (xstrtol_error):
19181         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
19182         * m4/argz.m4 (gl_FUNC_ARGZ):
19183         * m4/bison.m4 (gl_BISON):
19184         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
19185         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19186         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19187         * m4/fpending.m4 (gl_PREREQ_FPENDING):
19188         * m4/gc-random.m4 (gl_GC_RANDOM):
19189         * m4/intl.m4 (gt_CHECK_DECL):
19190         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
19191         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
19192         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
19193         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
19194         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
19195         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
19196         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
19197         * tests/test-dirname.c (main):
19198         * tests/test-getpass.c (main):
19199         * tests/test-iconvme.c (main):
19200         * tests/test-parse-datetime.c (LOG):
19201         * tests/test-xstrtoimax.sh:
19202         * tests/test-xstrtol.sh:
19203         * tests/test-xstrtoll.sh:
19204         * tests/test-xstrtoumax.sh:
19205         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
19206         * top/GNUmakefile (abort-due-to-no-makefile):
19207         Quote 'like this', not `like this', as per the recent change to
19208         the GNU coding standards.
19210 2012-01-05  Bruno Haible  <bruno@clisp.org>
19212         strtoimax: Don't force a replacement on systems where intmax_t is int.
19213         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
19214         'intmax_t' is not larger than 'int'.
19215         Reported by Pádraig Brady <P@draigBrady.com>.
19217 2012-01-05  Bruno Haible  <bruno@clisp.org>
19219         doc: Mention NetBSD bugs.
19220         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
19221         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
19223 2012-01-05  Bruno Haible  <bruno@clisp.org>
19225         strtoumax tests: Enhance tests.
19226         * tests/test-strtoumax.c (main): Add tests for large values.
19228 2012-01-05  Bruno Haible  <bruno@clisp.org>
19230         strtoimax: Work around AIX 5.1 bug.
19231         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
19232         definition.
19233         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
19234         Set HAVE_STRTOIMAX.
19235         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
19236         REPLACE_STRTOIMAX.
19237         * modules/inttypes-incomplete (Makefile.am): Substitute
19238         REPLACE_STRTOIMAX.
19239         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
19240         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
19241         (Depends-on): Update conditions.
19242         * tests/test-strtoimax.c (main): Add tests for large values.
19243         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
19245 2012-01-05  Bruno Haible  <bruno@clisp.org>
19247         inttypes: Modernize.
19248         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
19249         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
19250         (Makefile.am): Update inttypes.h rule.
19252 2012-01-05  Jim Meyering  <meyering@redhat.com>
19254         init.sh: don't waste a subshell just to redirect stderr
19255         * tests/init.sh: In testing for diff -u and diff -c, use a
19256         stderr-redirecting exec inside `...` rather than a subshell.
19258         test-init.sh: avoid failure on HP-UX 11.00
19259         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
19260         resolves to diff -c or cmp.  Reported by Bruno Haible.
19262 2012-01-05  Bruno Haible  <bruno@clisp.org>
19264         Tests for module 'strtoull'.
19265         * modules/strtoull-tests: New file.
19266         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
19268 2012-01-05  Bruno Haible  <bruno@clisp.org>
19270         Tests for module 'strtoll'.
19271         * modules/strtoll-tests: New file.
19272         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
19274 2012-01-05  Bruno Haible  <bruno@clisp.org>
19276         Tests for module 'strtoul'.
19277         * modules/strtoul-tests: New file.
19278         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
19280 2012-01-05  Bruno Haible  <bruno@clisp.org>
19282         Tests for module 'strtol'.
19283         * modules/strtol-tests: New file.
19284         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
19286 2012-01-04  Jim Meyering  <meyering@redhat.com>
19288         test-init.sh: accommodate Solaris 5.10's different diff -u output
19289         * tests/test-init.sh: Also exempt @@ lines from the comparison
19290         of diff output, since Solaris 5.10 and GNU diff formats differ.
19291         Reported by Stefano Lattarini.
19293 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19295         test-posixtm: don't assume signed integer wraparound
19296         * tests/test-posixtm.c (main): Don't assume wraparound semantics
19297         after signed integer overflow.  Inspired by (though it may not
19298         fix) Bruno Haible's bug report in
19299         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
19301         Spell out "Windows 9x" and "Windows XP".
19302         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
19303         "Windows 9x" and "WinXP" with "Windows XP".
19305 2012-01-04  Jim Meyering  <meyering@redhat.com>
19307         test-vc-list-files-cvs.sh: remove obsolete comment
19308         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
19309         double exit.  Now that's all encapsulated via skip_ and Exit.
19311 2012-01-04  Bruno Haible  <bruno@clisp.org>
19313         Talk about "native Windows API", not "Win32".
19314         * lib/classpath.c: Update comments to mention native Windows.
19315         * lib/csharpexec.c: Likewise.
19316         * lib/dup2.c: Likewise.
19317         * lib/error.c: Likewise.
19318         * lib/fcntl.c: Likewise.
19319         * lib/filename.h: Likewise.
19320         * lib/findprog.c: Likewise.
19321         * lib/get-rusage-as.c: Likewise.
19322         * lib/get-rusage-data.c: Likewise.
19323         * lib/getpagesize.c: Likewise.
19324         * lib/javaexec.c: Likewise.
19325         * lib/msvc-inval.c: Likewise.
19326         * lib/msvc-nothrow.c: Likewise.
19327         * lib/nanosleep.c: Likewise.
19328         * lib/nonblocking.c: Likewise.
19329         * lib/printf-parse.c: Likewise.
19330         * lib/setlocale.c: Likewise.
19331         * lib/sigaction.c: Likewise.
19332         * lib/strerror_r.c: Likewise.
19333         * lib/tmpdir.c: Likewise.
19334         * lib/vasnprintf.c: Likewise.
19335         * lib/w32spawn.h: Likewise.
19336         * lib/waitpid.c: Likewise.
19337         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
19338         * m4/locale-ar.m4: Likewise.
19339         * m4/locale-fr.m4: Likewise.
19340         * m4/locale-ja.m4: Likewise.
19341         * m4/locale-tr.m4: Likewise.
19342         * m4/locale-zh.m4: Likewise.
19343         * m4/printf.m4: Likewise.
19344         * tests/test-cloexec.c: Likewise.
19345         * tests/test-copy-acl.sh: Likewise.
19346         * tests/test-copy-file.sh: Likewise.
19347         * tests/test-file-has-acl.sh: Likewise.
19348         * tests/test-set-mode-acl.sh: Likewise.
19349         * tests/test-dup-safer.c: Likewise.
19350         * tests/test-dup2.c: Likewise.
19351         * tests/test-dup3.c: Likewise.
19352         * tests/test-fcntl.c: Likewise.
19353         * tests/test-nonblocking-pipe.h: Likewise.
19354         * tests/test-nonblocking-socket.h: Likewise.
19355         * tests/test-pipe.c: Likewise.
19356         * tests/test-pipe2.c: Likewise.
19357         * tests/test-spawn-pipe-child.c: Likewise.
19358         * doc/acl-resources.txt: Likewise.
19359         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
19360         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
19361         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
19362         * lib/localcharset.c: Update comments to mention native Windows.
19363         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
19364         * lib/localename.c: Likewise.
19365         * lib/progreloc.c: Likewise.
19366         * lib/relocatable.c: Likewise.
19367         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
19368         (windows_compute_revents): Renamed from win32_compute_revents.
19369         (windows_compute_revents_socket): Renamed from
19370         win32_compute_revents_socket.
19371         * lib/select.c: Update comments to mention native Windows.
19372         (windows_poll_handle): Renamed from win32_poll_handle.
19373         * m4/threadlib.m4: Update comments to mention native Windows.
19374         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
19375         --enable-threads=windows instead of --enable-threads=win32. Set
19376         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
19377         * lib/glthread/lock.h: Update comments to mention native Windows.
19378         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
19379         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
19380         USE_WIN32_THREADS.
19381         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
19382         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
19383         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
19384         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
19385         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
19386         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
19387         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
19388         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
19389         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
19390         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
19391         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
19392         * tests/test-tls.c: Likewise.
19393         Rationale:
19394         Microsoft renamed the "Win32 API" to "Windows API", as it is available
19395         on both 32-bit and 64-bit Windows systems.
19396         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
19397         line of distinction is between "native Windows" on one side and Unix/
19398         POSIX systems on the other side. More details in
19399         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
19400         Suggested by Paul Eggert.
19402 2012-01-03  Bruno Haible  <bruno@clisp.org>
19404         isatty: Support for MSVC 9.
19405         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
19406         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
19407         (_isatty_nothrow): New function.
19408         (isatty): Use it instead of _isatty.
19409         (IsConsoleHandle): Add comment, from Paolo Bonzini.
19410         * lib/poll.c (IsConsoleHandle): Likewise.
19411         * lib/select.c (IsConsoleHandle): Likewise.
19412         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
19413         (gl_PREREQ_ISATTY): New macro.
19414         * modules/isatty (Depends-on): Add msvc-inval.
19415         (configure.ac): Invoke gl_PREREQ_ISATTY.
19417 2012-01-03  Jim Meyering  <meyering@redhat.com>
19419         maint.mk: remove temporary transition aid from over 1.5 years ago
19420         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
19421         purpose was to aid in the transition (avoiding silent malfunction)
19422         from that old name to the new _sc_search_regexp.  This shim was
19423         added by commit 219c504b.
19425         init.sh: do not try to accommodate compare arguments starting with "-"
19426         * tests/init.sh (compare_dev_null_): Do not try to accommodate
19427         compare arguments that start with "-".  Besides, we do not worry
19428         about this when invoking diff or cmp; why start now with sed?
19429         Using "--" to separate options from argument would trigger sed
19430         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
19431         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
19433 2012-01-02  Bruno Haible  <bruno@clisp.org>
19435         Enhance tests for module 'isatty'.
19436         * modules/isatty-tests (Depends-on): Add pipe-posix.
19437         * tests/test-isatty.c: Include <fcntl.h>.
19438         (DEV_NULL): New macro.
19439         (main): Test the resut of isatty() also on regular files, pipes, and
19440         /dev/null.
19442         New module 'isatty'.
19443         * lib/unistd.in.h (isatty): New declaration.
19444         * lib/isatty.c: New file, based on an idea of
19445         Bastien Roucariès <roucaries.bastien@gmail.com>.
19446         * m4/isatty.m4: New file.
19447         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
19448         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
19449         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
19450         REPLACE_ISATTY.
19451         * modules/isatty: New file.
19452         * doc/posix-functions/isatty.texi: Mention the new module.
19453         Suggested by Paolo Bonzini.
19455 2012-01-02  Bruno Haible  <bruno@clisp.org>
19457         canonicalize: Tweak 2011-12-29 commit.
19458         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
19459         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
19461 2012-01-02  Jim Meyering  <meyering@redhat.com>
19463         gitlog-to-changelog: describe input syntax in --help output
19464         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
19466         gitlog-to-changelog: fix typo in --help: show backslash before email @
19467         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
19468         in sources, but not in actual output.
19470 2011-12-30  Jim Meyering  <meyering@redhat.com>
19472         gitlog-to-changelog: don't malfunction when name contains %-directive
19473         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
19474         in a name string cause trouble.  E.g., with a user name of "%s",
19475         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
19477 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
19479         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
19480         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
19481         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
19482         the "  (tiny change)" notation that is appended to the standard
19483         ChangeLog "date  name  email" header line.
19485 2012-01-01  Jim Meyering  <meyering@redhat.com>
19487         test-framework-sh: init.sh: fix "make dist" failure
19488         When using gnulib-tool's --with-tests option and any module that
19489         depends on test-framework-sh, "make dist" would fail due to the
19490         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
19491         in the gltests directory, and not in the gllib/ directory.
19492         One way to work around that is to move the EXTRA_DIST += init.sh
19493         from the primary module to the -tests one:
19494         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
19495         * modules/test-framework-sh (Makefile.am): ...not here.
19496         Reported by Tom G. Christensen in
19497         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
19499         version-etc: update copyright year reported by --version
19500         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
19502 2011-12-31  Pádraig Brady  <P@draigBrady.com>
19504         canonicalize: only stat() if required
19505         * lib/canonicalize.c (canonicalize_filename_mode):
19506         Avoid calling l?stat() when both CAN_MISSING,
19507         and CAN_NOLINKS are set, as we neither need
19508         to resolve symlinks or test component existence.
19510 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
19512         doc: cover st_ino issues once; add OpenVMS etc.
19513         * doc/posix-functions/stat.texi (stat):
19514         * doc/posix-functions/lstat.texi (lstat):
19515         * doc/posix-functions/fstatat.texi (fstatat):
19516         * doc/posix-functions/fstat.texi (fstat):
19517         Move general 'struct stat' stuff to sys_stat.texi,
19518         leaving behind a pointer.
19519         * doc/posix-headers/sys_stat.texi (sys/stat.h):
19520         Merge duplicate info about 'struct stat' problems into here.
19521         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
19522         and suggest partial workarounds.
19524         same-inode: port to OpenVMS
19525         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
19526         three st_ino values.
19528 2011-12-30  Pádraig Brady  <P@draigBrady.com>
19530         canonicalize: fix references to stat() and lstat()
19531         * lib/canonicalize.c (canonicalize_filename_mode):
19532         Ensure references always resolve to a replacement
19533         function if required (even via a macro).
19535 2011-12-30  Jim Meyering  <meyering@redhat.com>
19537         gitlog-to-changelog: remove a little duplication
19538         * build-aux/gitlog-to-changelog (main): Grep @lines once,
19539         rather than twice.
19541 2011-12-29  Pádraig Brady  <P@draigBrady.com>
19543         canonicalize: add support for not resolving symlinks
19544         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
19545         indicate we don't want to follow symlinks.  Also
19546         provide CAN_MODE_MASK to aid setting these existing
19547         mutually exclusive values.
19548         * lib/canonicalize.c (canonicalize_filename_mode):
19549         Extract the flags from can_mode parameter, which
19550         are currently just used to select between stat()
19551         and lstat().  Also ensure that mutually exclusive
19552         values are flagged immediately as invalid.
19553         * tests/test-canonicalize.c: Verify symlinks are
19554         not followed, and that invalid flag combinations
19555         are diagnosed.
19557 2011-12-25  Jim Meyering  <meyering@redhat.com>
19559         gitlog-to-changelog: do not clump multi-paragraph entries
19560         Identical header lines (date,name,email+coauthors) are suppressed,
19561         thus putting all entries with those same characteristics under
19562         a single header.  However, when a log entry consists of two or
19563         more paragraphs, it may not be clear where it starts and ends.
19564         This change makes it so that such an entry is always separated
19565         from others by a header line, even when that header would
19566         otherwise be suppressed.
19567         * build-aux/gitlog-to-changelog: Implement the above.
19568         Inspired by a related request from Stefano Lattarini in
19569         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
19571 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19573         announce-gen: fix `cmd' typo in diagnostic
19574         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
19575         diagnostic: a missing '$' meant that the command was not output.
19577 2011-12-23  Jim Meyering  <meyering@redhat.com>
19579         test-framework-sh: distribute init.sh
19580         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
19581         Otherwise, "make -C gnulib-tests check" (at least in grep) would
19582         fail due to the lack of init.sh.
19584         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
19585         * modules/atexit-tests: Rather than listing tests/init.sh,
19586         now that there's a module for it, simply depend on that new module.
19587         * modules/closein-tests: Likewise.
19588         * modules/exclude-tests: Likewise.
19589         * modules/getcwd-tests: Likewise.
19590         * modules/perror-tests: Likewise.
19591         * modules/pread-tests: Likewise.
19592         * modules/pwrite-tests: Likewise.
19593         * modules/vc-list-files-tests: Likewise.
19594         * modules/verify-tests: Likewise.
19595         * modules/xalloc-die-tests: Likewise.
19596         * modules/xstrtoimax-tests: Likewise.
19597         * modules/xstrtol-tests: Likewise.
19598         * modules/xstrtoll-tests: Likewise.
19599         * modules/xstrtoumax-tests: Likewise.
19600         * modules/yesno-tests: Likewise.
19602 2011-12-22  Jim Meyering  <meyering@redhat.com>
19604         test-framework-sh: add minimal tests of init.sh's compare function
19605         * modules/test-framework-sh-tests: New file.
19606         * tests/test-init.sh: New file.
19608         test-framework-sh: new module
19609         * modules/test-framework-sh: New file.
19610         * MODULES.html.sh (Support for maintaining and releasing projects):
19611         List it.
19613         init.sh: do not emit simulated diff output to stderr
19614         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
19616 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
19618         .gitignore: ignore gnulib.dvi and regex.info
19619         * doc/.gitignore:add gnulib.dvi and regex.info
19621 2011-12-22  Jim Meyering  <meyering@redhat.com>
19623         init.sh: correct previous change
19624         * tests/init.sh (compare): My previous change was wrong.
19625         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
19627         init.sh: avoid unwarranted test failure when using "set -e"
19628         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
19629         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
19630         a use like "compare exp out" would get evoke an unconditional failure.
19632 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
19634         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
19635         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
19636         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
19637         autoreconf that did not.
19638         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
19639         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
19641 2011-12-17  Jim Meyering  <meyering@redhat.com>
19643         bootstrap: remove some now-unneeded code
19644         This script arose back when gnulib-tool was young.
19645         Since then, it has seen improvements that render much of this
19646         script unnecessary.  In particular, it can now make symlinks
19647         to the files it uses.  Also, I no longer see as much value in
19648         marking files as read-only via comments.
19649         If you relied on the symlink-creation feature of the preceding
19650         version of this script, you can get most of that functionality
19651         by adding the --symlink option to the definition of
19652         gnulib_tool_option_extras in your bootstrap.conf file.
19653         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
19654         Run autopoint and libtoolize *before* gnulib-tool.
19655         After it, run an abbreviated autoreconf, rather than a loop around
19656         all tools.
19657         (slirp, bt_mark_as_generated): Remove functions.
19659 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19661         ftoastr: fix typo
19662         * lib/ftoastr.h: Fix misspelling in comment.
19664 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
19666         * top/README-release: fix punctuation.
19668 2011-12-17  Jim Meyering  <meyering@redhat.com>
19670         bootstrap: correct the recent buildreq change
19671         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
19672         had no effect.
19673         * build-aux/bootstrap (buildreq): Bracket each search term with
19674         "*...*", so that the shell "case" statement works as intended.
19675         Add comments.
19677 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
19679         build: let bootstrap resort to wget when downloading .po files
19680         * build-aux/bootstrap (download_po_files): Fallback to wget when
19681         downloading the .po files via rsync fails.  This is necessary to
19682         bootstrap from behind a strict firewall.
19684 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
19686         stdint: don't assume C++11 when compiling with g++
19687         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
19688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
19689         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
19690         work also in C++ before C++11, as that improperly inhibits
19691         generating a substitute stdint.h for that case.
19693 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
19695         alloca: protect comment from gnulib-tool
19696         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
19697         that gnulib-tool doesn't think it's a license, and munge it to
19698         say "GCC version 3".
19700 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
19702         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
19703         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
19704         $(abs_top_builddir) instead of $(top_builddir).
19706 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
19708         strftime-tests: also test nanoseconds
19709         * tests/test-strftime.c (T): Add a test of %N.
19711 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
19713         inttypes, stdint: add C++11 support
19714         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
19715         when including inttypes.h and stdint.h.  Support this change to
19716         the standard.
19717         * doc/posix-headers/inttypes.texi (inttypes.h):
19718         * doc/posix-headers/stdint.texi (stdint.h): Document this.
19719         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
19720         Define if not defined already, for the benefit of pre-C++11 hosts.
19721         Define the standard format macros (e.g., PRId8) always.
19722         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
19723         Likewise, if __cpluspus.  Define the standard constant and limit
19724         macros (e.g., INT8_C, INT8_MAX) always.
19725         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
19726         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
19727         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
19728         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
19729         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
19730         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
19731         Likewise.
19733 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19735         nonblocking tests: Fix test failure on Linux/PPC.
19736         Suggested by Prerna Saxena in
19737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
19738         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
19739         Set to 1100000.
19741 2011-12-12  Jim Meyering  <meyering@redhat.com>
19743         argmatch: don't hard-code `' when listing valid option arguments
19744         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
19745         use the quote function to add quotes.  Use fputs rather than
19746         fprintf for the format string with no format directive.
19748 2011-12-07  Eric Blake  <eblake@redhat.com>
19750         bootstrap: detect tools required by gnulib-tool
19751         * build-aux/bootstrap (buildreq): Provide minimum implicit
19752         dependencies.
19753         * DEPENDENCIES: Mention patch as a prereq.
19755 2011-12-04  Bruno Haible  <bruno@clisp.org>
19757         sethostname: Port to Windows platforms.
19758         * lib/sethostname.c: Provide an alternate implementation for Windows
19759         platforms.
19760         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
19761         (main): Skip the test if sethostname() fails with EPERM. On Windows
19762         platforms, don't check the result of gethostname().
19764 2011-12-04  Bruno Haible  <bruno@clisp.org>
19765             Jim Meyering  <meyering@redhat.com>
19767         tests: Avoid spurious error message on platforms without mktemp program.
19768         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
19770 2011-12-04  Bruno Haible  <bruno@clisp.org>
19772         sethostname: Fix documentation.
19773         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
19774         "not fixed" section.
19776 2011-12-03  Bruno Haible  <bruno@clisp.org>
19778         gnulib-tool: Verify that the License field is present and non-empty.
19779         * gnulib-tool (func_get_license_raw): New function, extracted from
19780         func_get_license.
19781         (func_get_license): Use it. Warn if the module is not a test module and
19782         has no license.
19783         Suggested by Jim Meyering.
19785 2011-12-03  Bruno Haible  <bruno@clisp.org>
19787         sethostname tests: Fix link error on mingw.
19788         * tests/test-sethostname1.c: New file, extracted from
19789         tests/test-sethostname.c.
19790         * tests/test-sethostname2.c: New file, extracted from
19791         tests/test-sethostname.c.
19792         * tests/test-sethostname.c: Remove file.
19793         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
19794         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
19795         (Depends-on): Add gethostname.
19796         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
19797         Link the latter with $(GETHOSTNAME_LIB).
19799         sethostname tests: Fix compilation error on mingw.
19800         * tests/test-sethostname.c: Don't include <sys/types.h>.
19801         (geteuid): Use a dummy value without uid_t.
19802         * modules/sethostname-tests (Depends-on): Remove sys_types.
19804         sethostname tests: Avoid a gcc warning.
19805         * tests/test-sethostname.c (main): Remove an unused variable.
19807         Tweak last commit.
19808         * modules/sethostname-tests (Files): Sort by decreasing importance.
19809         (configure.ac): Check for geteuid.
19810         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
19811         the test when there's nothing to test. Drop an unnecessary cast.
19812         Improve an error message. Verify that the final sethostname() call
19813         succeeds.
19815 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19817         Add a test suite for the sethostname module.
19818         * modules/sethostname-tests: New file.  A test program
19819         for the sethostname module.
19820         * tests/test-sethostname.c: Likewise.
19822 2011-12-03  Bruno Haible  <bruno@clisp.org>
19824         Tweak last commit.
19825         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
19826         Fix preprocessor directives indentation. Fix typos.
19827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
19828         * modules/unistd (Makefile): Likewise.
19830 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19832         Integrate the sethostname module into unistd.
19833         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
19834         into the unistd.h header.
19835         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
19836         preprocessor directives.
19837         * modules/unistd: Setup the Makefile substitutions of the
19838         SETHOSTNAME preprocessor directives.
19840 2011-12-03  Bruno Haible  <bruno@clisp.org>
19842         Tweak last commit.
19843         * lib/sethostname.c: Don't include <string.h>.
19844         (sethostname): No need to copy the argument string to the stack. Don't
19845         call clearerr. Preserve errno when fprintf failed.
19846         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
19847         Don't invoke AC_REPLACE_FUNCS.
19848         * modules/sethostname (Link): Remove empty section.
19849         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
19850         failure problem.
19852 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19854         New module 'sethostname'.
19855         * lib/sethostname.c (sethostname): New file.  Provide sethostname
19856         for systems that lack it.
19857         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
19858         sethostname declaration and function.
19859         * modules/sethostname: New file.  Define the sethostname module.
19861 2011-12-03  Bruno Haible  <bruno@clisp.org>
19863         Tweak last commit.
19864         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
19866 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19868         Split the HOST_NAME_MAX detection into a separate m4 macro.
19869         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
19870         macro so it can be used by the pending sethostname module.
19872 2011-12-03  Bruno Haible  <bruno@clisp.org>
19874         Fix module descriptions syntax.
19875         * modules/argv-iter (License): Fix syntax.
19876         * modules/di-set (License): Likewise.
19877         * modules/ino-map (License): Likewise.
19878         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
19880 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
19882         stdalign: port to Clang 3.0
19883         Problem reported by Simon Josefsson in
19884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
19885         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
19886         which has <stdalign.h> but which does not define alignof.
19887         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
19889 2011-12-01  Eric Blake  <eblake@redhat.com>
19891         mktempd: silence dd usage
19892         * build-aux/mktempd (rand_bytes): Silence dd.
19894 2011-11-30  Simon Josefsson  <simon@josefsson.org>
19896         manywarnings: Don't mention gcc version in docstring.
19897         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
19898         Jim Meyering <meyering@redhat.com>.
19900 2011-11-30  Jim Meyering  <meyering@redhat.com>
19902         hash: mark a few floating point constants with "f" suffix
19903         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
19904         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
19905         floating point constants with "f", since they're destined to be
19906         saved/used as "float"s.
19908 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
19910         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
19911         * tests/test-float.c (test_long_double): Correct and re-enable the
19912         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
19914 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
19916         Avoid subtracting two pointers that don't point into the same block.
19917         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
19918         only pointers into the same memory block are subtracted. We cannot
19919         assume that sizeof (ptrdiff_t) == sizeof (void *).
19921 2011-11-29  Eric Blake  <eblake@redhat.com>
19923         maint.mk: add syntax check for use of compare from init.sh
19924         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
19925         moved here from coreutils.
19927         manywarnings: drop -Wunsuffixed-float-constants
19928         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
19929         '1.0D', which is the only way to silence this warning for 'double'.
19931 2011-11-29  Jim Meyering  <meyering@redhat.com>
19933         hash: mark compute_bucket_size with the pure attribute
19934         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
19936         quotearg, propername: correct pragma guard expression
19937         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
19938         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
19940 2011-11-28  Jim Meyering  <meyering@redhat.com>
19942         propername: do not mark proper_name with the const attribute
19943         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
19944         since it examines data pointed to by its parameter.
19945         * lib/propername.c (proper_name): Instead, add a pragma to suppress
19946         the suggestion from -Wsuggest-attribute=const.
19948         propername: mark one more function as const
19949         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
19951 2011-11-27  Jim Meyering  <meyering@redhat.com>
19953         mark functions with const and pure attributes
19955         Mark functions per suggestions from gcc-4.6 when using these options:
19956         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
19957         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
19958         Follow these guidelines: when possible, apply the attribute to
19959         an extern declaration, not to its definition.  Apply it to the
19960         definition only when the definition is static.
19961         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
19962         * lib/argv-iter.h (argv_iter_n_args): Likewise.
19963         * lib/base64.h (isbase64): Likewise.
19964         * lib/basename-lgpl.c (last_component, base_len): Likewise.
19965         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
19966         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
19967         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
19968         (c_tolower, c_toupper): Likewise.
19969         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
19970         * lib/chdir-long.c (find_non_slash): Likewise.
19971         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
19972         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
19973         * lib/file-type.h (file_type): Likewise.
19974         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
19975         * lib/filevercmp.c (verrevcmp): Likewise.
19976         * lib/freadahead.h (freadahead): Likewise.
19977         * lib/fts.c (fts_maxarglen): Likewise.
19978         * lib/hash-pjw.h (hash_pjw): Likewise.
19979         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
19980         * lib/hash.c (is_prime, next_prime): Likewise.
19981         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
19982         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
19983         (hash_table_ok, hash_get_first, hash_string): Likewise.
19984         (compute_bucket_size): Likewise.
19985         * lib/i-ring.h (i_ring_empty): Likewise.
19986         * lib/isnan.c (isnanl): Likewise.
19987         * lib/math.h (isnanl, rpl_isnanl): Likewise.
19988         * lib/memcasecmp.h (memcasecmp): Likewise.
19989         * lib/memchr2.h (memchr2): Likewise.
19990         * lib/memcmp2.h (memcmp2): Likewise.
19991         * lib/parse-datetime.y (lookup_zone): Likewise.
19992         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
19993         [!WINDOWS_SOCKETS]: Likewise.
19994         * lib/strnlen1.h (strnlen1): Likewise.
19995         * lib/uniwidth.in.h (uc_width): Likewise.
19996         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
19997         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
19998         (quoting_options_from_style): Add a comment.
19999         * lib/propername.h (proper_name): Add a comment.
20001 2011-11-27  Bruno Haible  <bruno@clisp.org>
20003         Remove unused macros from !_LIBC code in glibc-borrowed files.
20004         * lib/fnmatch.c (STRCOLL): Remove macro.
20005         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
20006         * lib/glob.c (__stat, __readdir64): Remove macros.
20007         * lib/tempname.c (__open64, __xstat64): Remove macros.
20008         Suggested by Paul Eggert.
20010 2011-11-27  Bruno Haible  <bruno@clisp.org>
20012         getcwd: Fix link error on MSVC 9.
20013         * modules/getcwd (Depends-on): Add readdir, rewinddir.
20015 2011-11-27  Bruno Haible  <bruno@clisp.org>
20017         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
20018         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
20019         HAVE_OPENDIR is 0.
20020         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
20021         HAVE_CLOSEDIR is 0.
20022         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
20023         is 0.
20024         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
20026 2011-11-27  Bruno Haible  <bruno@clisp.org>
20028         getcwd: Fix bug from 2011-08-17.
20029         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
20030         platforms that need it.
20031         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
20032         code of 4 to be a failure, not a success. This ensures that
20033         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
20035 2011-11-27  Bruno Haible  <bruno@clisp.org>
20037         binary-io tests: Avoid test failure on mingw when libtool is used.
20038         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
20039         Don't verify the size of t-bin-out1.tmp here.
20040         * tests/test-binary-io.sh: Verify it here.
20041         Reported by Simon Josefsson.
20043 2011-11-26  Bruno Haible  <bruno@clisp.org>
20045         Fix conflict between two instantiations of module 'unistd'.
20046         * gnulib-tool (func_emit_autoconf_snippet): Substitute
20047         ${include_guard_prefix} also in the autoconf snippet.
20048         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
20049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
20050         GNULIB_UNISTD_H_GETOPT.
20051         * modules/getopt-posix (configure.ac): Set the
20052         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
20053         * modules/getopt-gnu (configure.ac): Likewise.
20054         * modules/unistd (Makefile.am): Change the substitution value of
20055         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
20056         Reported by Simon Josefsson.
20058 2011-11-25  Bruno Haible  <bruno@clisp.org>
20060         pagealign_alloc: Doc and comments.
20061         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
20062         module.
20063         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
20065 2011-11-25  Jim Meyering  <meyering@redhat.com>
20067         test-update-copyright.sh: avoid false-positive failure
20068         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
20069         around false positive failure on Cygwin/Windows.  The latter was
20070         matching erroneously-created files with names like
20071         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
20073 2011-11-25  Simon Josefsson  <simon@josefsson.org>
20075         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
20076         * m4/valgrind-tests.m4: Check that the parameters that will be
20077         used works, not just a subset of them.  Reported by Bruno Haible
20078         <bruno@clisp.org>.
20080 2011-11-24  Jim Meyering  <meyering@redhat.com>
20082         test-stdalign.c: comment out long double tests
20083         * tests/test-stdalign.c: Don't try to reduce alignment of long double
20084         variables.  That provokes errors like this from gcc-4.7.0 20111124:
20085         error: '_Alignas' specifiers cannot reduce alignment of \
20086         'static_longdouble_alignas'.
20088 2011-11-22  Jim Meyering  <meyering@redhat.com>
20090         init.sh: make "compare /dev/null FILE" output more readable
20091         * tests/init.sh (compare_): Document the preferred order of arguments.
20092         (emit_diff_u_header_): New function.
20093         (compare_dev_null_): Emit a simulated diff, rather than just the
20094         contents of the unexpected file.  Suggestion from Bruno Haible.
20096 2011-11-21  Jim Meyering  <meyering@redhat.com>
20097             Eric Blake  <eblake@redhat.com>
20099         init.sh: work around OSF/1 5.1's mishandling of /dev/null
20100         * tests/init.sh: Make our compare function slightly more portable.
20101         Reported by Bruno Haible in
20102         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
20104 2011-11-21  Simon Josefsson  <simon@josefsson.org>
20106         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
20107         before using it, in code that ends up in config.h.
20109 2011-11-20  Bruno Haible  <bruno@clisp.org>
20111         getcwd: Work around getcwd bug on AIX 5..7.
20112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
20113         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
20114         Use a different value for gl_cv_func_getcwd_path_max. Move the
20115         definition of HAVE_PARTLY_WORKING_GETCWD from here...
20116         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
20117         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
20118         Define HAVE_MINIMALLY_WORKING_GETCWD.
20119         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
20120         where it is not even minimally working, that is, on AIX.
20121         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
20122         m4/getcwd-path-max.m4.
20123         (main): Update exit code computation.
20124         * doc/posix-functions/getcwd.texi: Mention list of platforms where
20125         getcwd does not handle long file names.
20127 2011-11-20  Bruno Haible  <bruno@clisp.org>
20129         getcwd: Fix bug from 2009-09-10.
20130         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
20131         like "no".
20133 2011-11-20  Simon Josefsson  <simon@josefsson.org>
20135         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
20137 2011-11-20  Bruno Haible  <bruno@clisp.org>
20139         fma tests: Avoid shadowing local variables.
20140         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
20141         expected.
20143 2011-11-20  Bruno Haible  <bruno@clisp.org>
20145         copysignf tests: Fix.
20146         * tests/test-copysignf.c: Fix signature check.
20148 2011-11-20  Bruno Haible  <bruno@clisp.org>
20150         fma: Remove unused code.
20151         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
20152         unused macros.
20154 2011-11-20  Bruno Haible  <bruno@clisp.org>
20156         sethostname: Fix doc about AIX.
20157         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
20158         sethostname; it has it.
20160         sethostname: Mention more portability problems.
20161         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
20162         problem.
20163         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20165 2011-11-19  Bruno Haible  <bruno@clisp.org>
20167         Depend on module fcntl-h when AT_FDCWD is used.
20168         * modules/utimens (Depends-on): Add fcntl-h.
20169         * modules/areadlinkat (Depends-on): Likewise.
20170         * modules/areadlinkat-with-size (Depends-on): Likewise.
20171         * modules/faccessat (Depends-on): Likewise.
20172         * modules/fchmodat (Depends-on): Likewise.
20173         * modules/fchownat (Depends-on): Likewise.
20174         * modules/getcwd (Depends-on): Likewise.
20175         * modules/mkdirat (Depends-on): Likewise.
20176         * modules/mkfifoat (Depends-on): Likewise.
20177         * modules/readlinkat (Depends-on): Likewise.
20178         * modules/symlinkat (Depends-on): Likewise.
20179         * modules/dup2-tests (Depends-on): Likewise.
20180         * modules/fdutimensat-tests (Depends-on): Likewise.
20181         * modules/futimens-tests (Depends-on): Likewise.
20183 2011-11-19  Bruno Haible  <bruno@clisp.org>
20185         euidaccess: Update a comment.
20186         * lib/euidaccess.c: Update comment about platforms with faccessat.
20188 2011-11-19  Bruno Haible  <bruno@clisp.org>
20190         openat: Fix file list.
20191         * modules/openat (Files): Remove lib/at-func.c.
20193 2011-11-19  Bruno Haible  <bruno@clisp.org>
20195         fstatat: Simplify.
20196         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
20197         gnulib should define rpl_fstatat, there is a
20198         "#define fstatat rpl_fstatat" in <sys/stat.h>.
20200 2011-11-19  Bruno Haible  <bruno@clisp.org>
20202         Ensure 'inline' can be used in tests/test-utimens-common.h.
20203         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
20204         * modules/futimens-tests (configure.ac): Likewise.
20205         * modules/utimens-tests (configure.ac): Likewise.
20206         * modules/utimensat-tests (configure.ac): Likewise.
20208 2011-11-19  Simon Josefsson  <simon@josefsson.org>
20210         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
20211         not hash_insert0.
20212         (hash_insert_if_absent): Doc fix.
20214 2011-11-19  Simon Josefsson  <simon@josefsson.org>
20216         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
20218 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20220         test-getcwd: disambiguate exit status
20221         * tests/test-getcwd.c (test_long_name): Return 0..7.
20222         (main): Exit with an unambiguous exit status.  The old
20223         code yielded a mysterious mixture of two failure codes.
20225         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
20226         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
20227         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
20228         rpl_fstatat or fstatat.  This should fix the other problem
20229         reported by Kai Habel in
20230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
20231         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
20232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
20233         and I reproduced it on a Solaris 8 host we still have in production.
20235 2011-11-18  Jim Meyering  <meyering@redhat.com>
20237         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
20238         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
20239         Add a sentence to the comment.
20240         (hash_insert0): New function that simply calls hash_insert_if_absent.
20241         * lib/hash.h (hash_insert_if_absent): Declare it.
20242         (hash_insert0): Add deprecation attribute.
20243         (_GL_ATTRIBUTE_DEPRECATED): Define.
20244         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
20245         not hash_insert0.
20246         * NEWS: Mention it, even though it's not really an incompatible change.
20248 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
20250         openat: avoid compilation failure due to lack of <errno.h> inclusion
20251         * lib/openat.c: Include <errno.h>.
20253 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20255         * modules/getcwd (Depends-on): Add fdopendir.
20256         This fixes one of the two problems reported by Kai Habel in
20257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
20259         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
20260         stdalign problem reported by Ian Beckwith in
20261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
20262         * modules/crypto/gc-arcfour (Depends-on):
20263         Depend conditionally on crypto/arcfour.
20264         * modules/crypto/gc-arctwo (Depends-on):
20265         Depend conditionally on crypto/arctwo.
20266         * modules/crypto/gc-des (Depends-on):
20267         Depend conditionally on crypto/des.
20268         * modules/crypto/gc-hmac-md5 (Depends-on):
20269         Depend conditionally on crypto/hmac-md5.
20270         * modules/crypto/gc-hmac-sha1 (Depends-on):
20271         Depend conditionally on crypto/hmac-sha1.
20272         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
20273         * modules/crypto/gc-md4 (Depends-on):
20274         Depend conditionally on crypto/md4.
20275         * modules/crypto/gc-md5 (Depends-on):
20276         Depend conditionally on crypto/md5.
20277         * modules/crypto/gc-rijndael (Depends-on):
20278         Depend conditionally on crypto/rijndael.
20279         * modules/crypto/gc-sha1 (Depends-on):
20280         Depend conditionally on crypto/sha1.
20281         * modules/crypto/gc-arcfour:
20282         * modules/crypto/gc-arctwo:
20283         * modules/crypto/gc-des:
20284         * modules/crypto/gc-hmac-md5:
20285         * modules/crypto/gc-hmac-sha1:
20286         * modules/crypto/gc-md2:
20287         * modules/crypto/gc-md4:
20288         * modules/crypto/gc-md5:
20289         * modules/crypto/gc-rijndael:
20290         * modules/crypto/gc-sha1:
20291         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
20292         now that the conditional dependencies do the work for us.
20294 2011-11-17  Jim Meyering  <meyering@redhat.com>
20296         tests: factor st_ctime-comparison out of two headers
20297         * tests/test-utimens-common.h (ctime_compare): Define.
20298         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
20299         * tests/test-lutimens.h (test_lutimens): Likewise.
20300         * tests/test-utimens.h (test_utimens): Likewise.
20302         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
20303         Invoke the test program via an init.sh-using wrapper.
20304         * tests/test-getcwd.sh: New file.
20305         * modules/getcwd-tests (Files): Add it.
20306         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
20308 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
20310         gitlog-to-changelog: support multi-author commits.
20311         The FSF cares about keeping track of all authors of patches to its
20312         projects, but Git doesn't provide obvious support for multi-author
20313         changesets. Consensus seems to be forming around the use of extra
20314         Signed-off-by inspired lines in the log message formatted as
20315         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
20316         multi-author commits between version control systems.
20317         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
20318         log message and output in standard ChangeLog multi-author format.
20319         Reported by Peter Rosin <peda@lysator.liu.se>
20321 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
20322             Bruno Haible  <bruno@clisp.org>
20324         Fix some modules' file list.
20325         * modules/fstatat (Files): Add m4/lstat.m4.
20326         * modules/openat (Files): Likewise.
20327         * modules/unlinkat (Files): Likewise.
20329 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
20331         maint.mk: fix tight-scope.mk generation in VPATH builds.
20332         * top/maint.mk (tight-scope.mk): Make sure to prefix file
20333         reference with $(srcdir) so that the file is found correctly even
20334         when running `make syntax-check' in a VPATH build.
20336 2011-11-13  Bruno Haible  <bruno@clisp.org>
20337             Jim Meyering  <meyering@redhat.com>
20339         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
20340         * tests/init.sh (compare): Remove "No differences encountered" or
20341         synonymous output from the 'diff' program.
20343 2011-11-13  Bruno Haible  <bruno@clisp.org>
20345         Makefile: Tweak indentation.
20346         * Makefile: Use tab as first character in every line that contains rule
20347         commands.
20349 2011-11-13  Bruno Haible  <bruno@clisp.org>
20351         Syntax check for copyright statements.
20352         * check-copyright: New file.
20353         * Makefile (sc_check_copyright): New rule.
20355 2011-11-13  Simon Josefsson  <simon@josefsson.org>
20357         * build-aux/git-version-gen: Add --prefix to configure the tag
20358         match string.
20360 2011-11-13  Simon Josefsson  <simon@josefsson.org>
20362         * build-aux/git-version-gen: Add --help and --version.
20364 2011-11-12  Jim Meyering  <meyering@redhat.com>
20366         revamp the other test-exclude?.sh scripts to use init.sh, too
20367         * tests/test-exclude1.sh: Use init.sh.
20368         * tests/test-exclude2.sh: Likewise.
20369         * tests/test-exclude3.sh: Likewise.
20370         * tests/test-exclude4.sh: Likewise.
20371         * tests/test-exclude5.sh: Likewise.
20372         * tests/test-exclude6.sh: Likewise.
20373         * tests/test-exclude7.sh: Likewise.
20374         * tests/test-exclude8.sh: Likewise.
20375         * modules/exclude-tests (Files): List init.sh.
20377         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
20378         These shell scripts ignored failure of the binary test-exclude,
20379         so making the latter return 77 didn't cause them to be skipped.
20380         * tests/test-exclude5.sh: Exit with test-exclude's error status
20381         when that program fails.  Revamp to use init.sh.
20382         * tests/test-exclude2.sh: Likewise.
20384         test-exclude: fix a typo
20385         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
20387 2011-11-11  Bruno Haible  <bruno@clisp.org>
20389         obstack: Fix compilation error on MSVC 9.
20390         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
20392 2011-11-11  Jim Meyering  <meyering@redhat.com>
20394         test-exclude: skip tests rather than failing on deficient systems
20395         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
20396         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
20397         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
20398         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
20400 2011-11-10  Bruno Haible  <bruno@clisp.org>
20402         ptsname_r test: Avoid gcc warning on glibc systems.
20403         * tests/test-ptsname_r.c (null_ptr): New function.
20404         (test_errors): Use it.
20406 2011-11-10  Bruno Haible  <bruno@clisp.org>
20408         ptsname_r: Avoid compilation error on OSF/1 5.1.
20409         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
20410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
20411         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
20412         function is not declared or incompatibly declared.
20413         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
20414         * modules/ptsname_r (Depends-on, configure.ac): Update.
20415         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
20417 2011-11-10  Bruno Haible  <bruno@clisp.org>
20419         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
20420         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
20421         When cross-compiling, guess yes on all platforms except AIX.
20422         Reported by Ludovic Courtès <ludo@gnu.org>.
20424 2011-11-09  Bruno Haible  <bruno@clisp.org>
20426         ptsname_r tests: Fix bugs.
20427         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
20428         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
20430 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20432         fstatat: work with cross-compilation
20433         Problem reported by Ludovic Courtès in
20434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
20435         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
20436         "cross-compiling" and assume the bug is present.  Replace
20437         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
20438         an inverted sense, to be more conservative about our assumptions.
20439         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
20441 2011-11-09  Bruno Haible  <bruno@clisp.org>
20443         Improve MODULES.html output.
20444         * modules/mkfifoat (Description): Use the word "function".
20445         * modules/readlinkat (Description): Likewise.
20446         * modules/symlinkat (Description): Likewise.
20448 2011-11-09  Eric Blake  <eblake@redhat.com>
20450         ptsname_r-tests: new test module
20451         * modules/ptsname_r-tests: New module.
20452         * tests/test-ptsname_r.c: New file.
20454         ptsname_r: new module
20455         * modules/ptsname_r: New module.
20456         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
20457         * lib/ptsname.c (__ptsname_r): Split...
20458         * lib/ptsname_r.c: ...into new file.
20459         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
20460         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
20461         * modules/stdlib (Makefile.am): Substitute witnesses.
20462         * lib/stdlib.in.h (ptsname_r): Declare it.
20463         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
20464         * MODULES.html.sh (Misc): Likewise.
20465         * modules/ptsname (Depends-on): Alter dependency.
20466         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
20468 2011-11-09  Jim Meyering  <meyering@redhat.com>
20470         announce-gen: be more concise when there's only one URL+tarball
20471         * build-aux/announce-gen (get_tool_versions): When you distribute
20472         only one type of tarball, combine the first two "Here are..."
20473         sections and make the key-checking grammar independent of
20474         how many tarballs there are.
20476 2011-11-09  Eric Blake  <eblake@redhat.com>
20478         openpty: provide a stub on mingw
20479         * lib/pty.in.h (includes): Provide forward declarations.
20480         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
20482         raise: fix mingw handling of SIGPIPE
20483         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
20485 2011-11-08  Bruno Haible  <bruno@clisp.org>
20487         More conditional dependencies.
20488         * modules/faccessat (Depends-on): Add conditions.
20489         * modules/fchmodat (Depends-on): Likewise.
20490         * modules/fchownat (Depends-on): Likewise.
20491         * modules/fstatat (Depends-on): Likewise.
20492         * modules/mkfifoat (Depends-on): Likewise.
20493         * modules/readlinkat (Depends-on): Likewise.
20494         * modules/symlinkat (Depends-on): Likewise.
20495         * modules/unlinkat (Depends-on): Likewise.
20496         * modules/utimensat (Depends-on): Likewise.
20497         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
20498         * modules/linkat (Depends-on): Refine the conditions.
20499         * modules/renameat (Depends-on): Likewise.
20501 2011-11-08  Bruno Haible  <bruno@clisp.org>
20503         faccessat: Move AC_LIBOBJ invocation to module description.
20504         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
20505         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
20506         invocation from here...
20507         * modules/faccessat (configure.ac): ... to here. Invoke
20508         gl_PREREQ_FACCESSAT.
20510 2011-11-08  Bruno Haible  <bruno@clisp.org>
20512         faccessat: Simplify autoconf macro.
20513         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
20514         gl_FUNC_EUIDACCESS.
20516 2011-11-08  Bruno Haible  <bruno@clisp.org>
20518         renameat: Fix dependencies.
20519         * modules/renameat (Depends-on): Add stdbool.
20521 2011-11-08  Bruno Haible  <bruno@clisp.org>
20523         mkfifoat: Fix module description.
20524         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
20525         not gl_UNISTD_MODULE_INDICATOR.
20527 2011-11-08  Bruno Haible  <bruno@clisp.org>
20529         fstatat: Remove unused dependency.
20530         * modules/fstatat (Depends-on): Remove fstat.
20532 2011-11-08  Simon Josefsson  <simon@josefsson.org>
20534         GNUmakefile: behave when Makefile is missing.
20535         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
20537 2011-11-08  Bruno Haible  <bruno@clisp.org>
20539         openat: Conditionalize dependencies.
20540         * lib/openat.c: Reduce the scope of some #includes.
20541         * modules/openat (Depends-on): Add conditions.
20543 2011-11-07  Jim Meyering  <meyering@redhat.com>
20545         maint.mk: extract GPG key ID without using a temporary file
20546         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
20547         without using a temporary file.  Based on a suggestion from Werner Koch
20548         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
20550 2011-11-07  Eric Blake  <eblake@redhat.com>
20552         grantpt: fix typo
20553         * lib/stdlib.in.h (grantpt): Check correct function.
20555         maint.mk: silence new syntax check
20556         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
20558 2011-11-06  Bruno Haible  <bruno@clisp.org>
20560         Doc about floating-point and math API.
20561         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
20562         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
20564 2011-11-06  Bruno Haible  <bruno@clisp.org>
20566         stdalign tests: Skip the test when compiled by Sun C.
20567         * tests/test-stdalign.c (main): Skip the test on Sun C.
20569 2011-11-06  Bruno Haible  <bruno@clisp.org>
20571         ansi-c++-opt: Complete the 2011-06-05 change.
20572         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
20573         does not support namespaces, set the variable to "no", not to ":".
20575 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20577         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
20579 2011-11-06  Bruno Haible  <bruno@clisp.org>
20581         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
20582         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
20583         (minus_zerol) [HP-UX]: New macro.
20584         (unary_minus) [HP-UX]: New function.
20585         (copysignl) [HP-UX]: Use unary_minus function.
20587 2011-11-06  Bruno Haible  <bruno@clisp.org>
20589         ldexp, ldexpf, ldexpl: Enhance tests.
20590         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
20591         and tests/test-ldexpl.c.
20592         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
20593         LDEXP, MIN_EXP, MAX_EXP): New macros.
20594         Include test-ldexp.h.
20595         (main): Just call test_function.
20596         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
20597         infinity.h, nan.h.
20598         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
20599         MAX_EXP): New macros.
20600         Include test-ldexp.h.
20601         (x, y): Remove variables.
20602         (main): Just call test_function.
20603         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
20604         infinity.h, nan.h.
20605         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
20606         MAX_EXP): New macros.
20607         Include test-ldexp.h.
20608         (x, y): Remove variables.
20609         (main): Just call test_function.
20610         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
20611         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
20612         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
20613         (Depends-on): Add isnand-nolibm, signbit, float.
20614         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
20615         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
20616         (Depends-on): Add isnanf-nolibm, signbit, float.
20618 2011-11-06  Bruno Haible  <bruno@clisp.org>
20620         math tests: Cosmetics.
20621         * tests/test-math-c++.cc: Reorder declarations.
20623 2011-11-05  Bruno Haible  <bruno@clisp.org>
20625         fma*: Simplify test.
20626         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
20627         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
20629         Tests for module 'fmal'.
20630         * modules/fmal-tests: New file.
20631         * tests/test-fmal1.c: New file.
20632         * tests/test-fmal2.c: New file.
20634         New module 'fmal'.
20635         * lib/math.in.h (fmal): New declaration.
20636         * lib/fmal.c: New file.
20637         * m4/fmal.m4: New file.
20638         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
20639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
20640         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
20641         REPLACE_FMAL.
20642         * modules/fmal: New file.
20643         * doc/posix-functions/fmal.texi: Mention the new module and the various
20644         bugs.
20646         Tests for module 'fmaf'.
20647         * modules/fmaf-tests: New file.
20648         * tests/test-fmaf1.c: New file.
20649         * tests/test-fmaf2.c: New file.
20651         New module 'fmaf'.
20652         * lib/math.in.h (fmaf): New declaration.
20653         * lib/fmaf.c: New file.
20654         * m4/fmaf.m4: New file.
20655         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
20656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
20657         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
20658         REPLACE_FMAF.
20659         * modules/fmaf: New file.
20660         * doc/posix-functions/fmaf.texi: Mention the new module and the various
20661         bugs.
20663         Tests for module 'fma'.
20664         * modules/fma-tests: New file.
20665         * tests/test-fma1.c: New file.
20666         * tests/test-fma1.h: New file.
20667         * tests/test-fma2.c: New file.
20668         * tests/test-fma2.h: New file.
20670         New module 'fma'.
20671         * lib/math.in.h (fma): New declaration.
20672         * lib/fma.c: New file.
20673         * m4/fma.m4: New file.
20674         * m4/fegetround.m4: New file.
20675         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
20676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
20677         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
20678         REPLACE_FMA.
20679         * modules/fma: New file.
20680         * doc/posix-functions/fma.texi: Mention the new module and the various
20681         bugs.
20683         Extend gl_MATHFUNC.
20684         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
20685         Support 'void' as argument type.
20686         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
20688 2011-11-05  Jim Meyering  <meyering@redhat.com>
20690         maint.mk: also prohibit inclusion of dirent.h without use
20691         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
20693 2011-11-05  Bruno Haible  <bruno@clisp.org>
20695         ldexpl tests: Avoid test failure on MSVC 9.
20696         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
20697         value. Needed in order to enforce the conversion from a value greater
20698         than LDBL_MAX to Infinity.
20700 2011-11-05  Bruno Haible  <bruno@clisp.org>
20702         New modules 'at-internal', 'openat-h', split off from module 'openat'.
20703         * modules/at-internal: New file, extracted from modules/openat.
20704         * modules/openat-h: New file.
20705         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
20706         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
20707         * modules/openat (Description): Add reference to POSIX function.
20708         (Files): Remove lib/openat.h, lib/openat-proc.c.
20709         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
20710         intprops, unistd.
20711         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
20712         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
20713         gl_FCNTL_MODULE_INDICATOR.
20714         (Include): Remove unistd.h, openat.h.
20715         * modules/areadlinkat (Files): Add lib/at-func.c.
20716         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
20717         openat-die, openat-h, save-cwd.
20718         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
20719         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
20720         openat-die, openat-h, save-cwd, unistd.
20721         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
20722         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20723         openat-h, save-cwd. Remove fcntl-h, openat.
20724         * modules/fchmodat (Files): Remove lib/openat.h.
20725         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
20726         openat, stdbool, unistd.
20727         * modules/fchownat (Files): Remove lib/openat.h.
20728         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
20729         openat, stdbool, sys_stat.
20730         * modules/fdopendir (Files): Remove lib/openat-priv.h,
20731         lib/openat-proc.c.
20732         (Depends-on): Add at-internal.
20733         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
20734         * modules/fstatat (Files): Remove lib/openat.h.
20735         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
20736         stdbool, unistd.
20737         * modules/fts (Depends-on): Add openat-h.
20738         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
20739         openat.
20740         * modules/mkdirat (Files): Remove lib/openat.h.
20741         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
20742         openat, stdbool, sys_stat.
20743         * modules/mkfifoat (Files): Add lib/at-func.c.
20744         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20745         openat-h, save-cwd. Remove fcntl-h, openat.
20746         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
20747         * modules/readlinkat (Files): Add lib/at-func.c.
20748         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20749         openat-h, save-cwd. Remove fcntl-h, openat.
20750         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
20751         openat.
20752         * modules/selinux-at (Files): Add lib/at-func.c.
20753         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
20754         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
20755         * modules/symlinkat (Files): Add lib/at-func.c.
20756         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20757         openat-h, save-cwd. Remove fcntl-h, openat.
20758         * modules/unlinkat (Files): Remove lib/openat.h.
20759         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
20760         stdbool.
20761         * modules/utimensat (Files): Add lib/at-func.c.
20762         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
20763         openat-die, openat-h, save-cwd.
20764         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
20765         * modules/fdutimensat-tests (Depends-on): Add openat.
20766         * modules/fstatat-tests (Depends-on): Add openat-h.
20767         * modules/readlinkat-tests (Depends-on): Add openat.
20768         * modules/symlinkat-tests (Depends-on): Add openat.
20770 2011-11-05  Bruno Haible  <bruno@clisp.org>
20772         openat: Include <stdbool.h>.
20773         * lib/openat.c: Include <stdbool.h>.
20775 2011-11-04  Bruno Haible  <bruno@clisp.org>
20777         fchownat, renameat, unlinkat: Fix dependencies.
20778         * modules/fchownat (Depends-on): Add fstatat.
20779         * modules/renameat (Depends-on): Likewise.
20780         * modules/unlinkat (Depends-on): Likewise.
20782 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
20784         openat: remove direct dependency on dirent
20785         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
20786         and hasn't been needed ever since fdopendir was split into its own
20787         module on 2009-08-31.
20788         * modules/openat (Depends-on): Remove dirent.
20790 2011-11-04  Bruno Haible  <bruno@clisp.org>
20792         renameat: Optimize code size.
20793         * modules/renameat (configure.ac): Don't compile at-func2.c if
20794         REPLACE_RENAMEAT is 1.
20796 2011-11-04  Bruno Haible  <bruno@clisp.org>
20798         openat tests: Fix file list.
20799         * modules/openat-tests (Files): Add tests/test-open.h.
20801 2011-11-04  Bruno Haible  <bruno@clisp.org>
20803         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
20804         * modules/fchmodat (Depends-on): Add openat-die.
20805         * modules/fchownat (Depends-on): Likewise.
20806         * modules/linkat (Depends-on): Likewise.
20807         * modules/renameat (Depends-on): Likewise.
20808         * modules/openat (Depends-on): Add dirent.
20810 2011-11-04  Jim Meyering  <meyering@redhat.com>
20812         at-func*.c: fix comments
20813         * lib/at-func2.c: Correct/improve first-line comment.
20814         * lib/at-func.c: Correct grammar in first-line comment.
20816 2011-11-04  Bruno Haible  <bruno@clisp.org>
20818         New module 'mkdirat', split off from module 'openat'.
20819         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
20820         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
20821         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
20822         * modules/mkdirat: New file, extracted from modules/openat.
20823         * modules/openat (Files): Remove lib/mkdirat.c.
20824         (Depends-on): Remove mkdir.
20825         (configure.ac): Remove AC_LIBOBJ of mkdirat.
20826         (Include): Remove <sys/stat.h>.
20827         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
20828         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
20829         tests/test-mkdir.h.
20830         (Depends-on): Remove ignore-value.
20831         (Makefile.am): Remove rules for test-mkdirat.
20832         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
20833         of module 'openat'.
20834         * NEWS: Mention the change.
20836 2011-11-04  Bruno Haible  <bruno@clisp.org>
20838         closedir: Avoid warning on mingw.
20839         * lib/closedir.c: Include <unistd.h>.
20841 2011-11-04  Bruno Haible  <bruno@clisp.org>
20843         New module 'fstatat', split off from module 'openat'.
20844         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
20845         defined.
20846         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
20847         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
20848         gl_FUNC_FSTATAT.
20849         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
20850         * modules/fstatat: New file, extracted from modules/openat.
20851         * modules/openat (Files): Remove lib/fstatat.c.
20852         (Depends-on): Remove lstat.
20853         (configure.ac): Remove AC_LIBOBJ of fstatat.
20854         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
20855         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
20856         tests/test-lstat.h, tests/test-stat.h.
20857         (Depends-on): Remove getcwd-lgpl.
20858         (Makefile.am): Remove rules for test-fstatat.
20859         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
20860         of module 'openat'.
20861         * NEWS: Mention the change.
20862         * modules/getcwd (Depends-on): Add fstatat.
20863         * modules/linkat (Depends-on): Likewise.
20864         * modules/mkfifoat-tests (Depends-on): Likewise.
20865         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
20867 2011-11-03  Bruno Haible  <bruno@clisp.org>
20869         New module 'unlinkat', split off from module 'openat'.
20870         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
20871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
20872         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
20873         * modules/unlinkat: New file, extracted from modules/openat. Correct
20874         the dependency conditions.
20875         * modules/openat (Files): Remove lib/unlinkat.c.
20876         (Depends-on): Remove rmdir, unlink.
20877         (configure.ac): Remove AC_LIBOBJ of unlinkat.
20878         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
20879         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
20880         tests/test-rmdir.h, tests/test-unlink.h.
20881         (Depends-on): Remove unlinkdir.
20882         (Makefile.am): Remove rules for test-unlinkat.
20883         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
20884         of module 'openat'.
20885         * NEWS: Mention the change.
20886         * modules/linkat-tests (Depends-on): Add unlinkat.
20887         * modules/mkfifoat-tests (Depends-on): Likewise.
20888         * modules/readlinkat-tests (Depends-on): Likewise.
20890 2011-11-02  Bruno Haible  <bruno@clisp.org>
20892         New module 'fchmodat', split off from module 'openat'.
20893         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
20894         defined.
20895         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
20896         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
20897         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
20898         * modules/fchmodat: New file, extracted from modules/openat.
20899         * modules/openat (Files): Remove lib/fchmodat.c.
20900         (configure.ac): Remove AC_LIBOBJ of fchmodat.
20901         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
20902         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
20903         (Makefile.am): Remove rules for test-fchmodat.
20904         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
20905         of module 'openat'.
20906         * NEWS: Mention the change.
20908 2011-11-02  Jim Meyering  <meyering@redhat.com>
20910         putenv: indent #definition of "environ" to placate cppi
20911         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
20913         gitlog-to-changelog: provide a ChangeLog-repair mechanism
20914         Git logs are often treated as immutable, because editing them
20915         changes the SHA1 checksums of all descendants.  Thus, errors in
20916         git logs tend to stay there forever.  However, when we generate
20917         a ChangeLog file -- typically for distribution -- from that git log,
20918         we can actually make corrections in the generated file.  The key
20919         lies in recording in machine-readable/applicable form the desired
20920         corrections.  See --help for description and an example.
20921         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
20922         (usage): Describe it; alphabetize option descriptions.
20923         (main): Honor the new option, carefully.
20925 2011-11-01  Jim Meyering  <meyering@redhat.com>
20927         gitlog-to-changelog: avoid an infloop
20928         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
20929         that ends up being empty.
20931 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20933         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
20934         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
20935         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
20936         contains (possibly-quoted) backslashes.  This should avoid
20937         all-too-common shell bugs if COMPLICATED contains backslashes in
20938         the "wrong" places.  Reported by David Evans in
20939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
20940         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
20941         because we want ASCII ranges.  Is there some reason we don't use
20942         the C locale everywhere in this script?
20943         (func_module, top level): Avoid unwanted pathname expansion when
20944         $repo_url_prefix or $repo_url_suffix_repl contain shell
20945         metacharacters like '?' and '*'.
20947 2011-11-01  Bruno Haible  <bruno@clisp.org>
20949         fchownat: Improve description.
20950         * modules/fchownat (Description): Add link to function.
20952 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20954         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
20955         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
20956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
20957         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
20959 2011-11-01  Bruno Haible  <bruno@clisp.org>
20961         alignof: Avoid collision with stdalign module.
20962         * lib/alignof.h (alignof): Remove macro.
20963         * NEWS: Mention the change.
20964         Reported by Paul Eggert.
20966 2011-11-01  Bruno Haible  <bruno@clisp.org>
20968         New module 'fchownat', split off from module 'openat'.
20969         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
20970         defined.
20971         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
20972         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
20973         invoke gl_FUNC_FCHOWNAT.
20974         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
20975         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
20976         * modules/fchownat: New file, extracted from modules/openat.
20977         * modules/openat (Files): Remove lib/fchownat.c.
20978         (Depends-on): Remove lchown.
20979         (configure.ac): Remove AC_LIBOBJ of fchownat.
20980         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
20981         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
20982         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
20983         (Depends-on): Remove mgetgroups, usleep, stat-time.
20984         (configure.ac): Remove test for getegid.
20985         (Makefile.am): Remove rules for test-fchownat.
20986         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
20987         of module 'openat'.
20988         * NEWS: Mention the change.
20990 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20992         stdalign: port better to MSVC and to Sun C 5.11
20993         This fixes some of the problems reported by Bruno Haible in
20994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
20995         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
20996         shortcomings of MSVC and of Sun C 5.11.
20997         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
20998         around __declspec arg.
20999         * modules/stdalign-tests (Files): Add tests/macros.h.
21000         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
21001         Include macros.h, for ASSERT.
21002         (DECLARE_ALIGNED): Remove.
21003         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
21004         to catch bug), and to 1 if not (simplifies the rest of the code).
21005         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
21006         (CHECK_AUTO): Remove.
21007         (CHECK_ALIGNED): Check only the alignment of the static vars,
21008         since auto var alignment isn't supported by Sun C 5.11.
21009         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
21010         ASSERT failures are easier to diagnose.
21012 2011-10-31  Bruno Haible  <bruno@clisp.org>
21014         doc about some IRIX 5.3 problems.
21015         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
21016         on IRIX 5.3.
21017         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
21018         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
21019         5.3.
21020         * doc/posix-functions/grantpt.texi: Likewise.
21021         * doc/posix-functions/unlockpt.texi: Likewise.
21022         * doc/posix-functions/lgamma.texi: Likewise.
21023         * doc/posix-functions/nextafter.texi: Likewise.
21024         * doc/posix-functions/remainder.texi: Likewise.
21025         * doc/posix-functions/select.texi: Mention misplaced declaration on
21026         IRIX 5.3.
21027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21029 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
21031         gitlog-to-changelog: fix git-log invocation.
21032         git-log mishandles date strings before 1970-01-01 UTC, and there is
21033         no use to specify --since=1970-01-01 by default anyway.
21034         * build-aux/gitlog-to-changelog: By default, when no --since option
21035         was given, do not specify explicit --since option to git-log.
21037 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
21039         gitlog-to-changelog: new option --append-dot.
21040         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
21041         first non-blank line of each commit message terminated with a dot.
21043 2011-10-30  Bruno Haible  <bruno@clisp.org>
21045         ffsl, ffsll: Avoid compilation error due to 'restrict'.
21046         * lib/ffsl.h: Include <config.h>.
21047         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
21049 2011-10-30  Jim Meyering  <meyering@redhat.com>
21051         GNUmakefile: reenable "make syntax-check" for most projects
21052         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
21053         build-aux variable", "syntax-check" would do nothing but succeed with
21054         the "No version control files detected..." diagnostic (unless you
21055         happened to override _build-aux via cfg.mk).
21056         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
21057         to precede inclusion of maint.mk.  Otherwise, these variables would
21058         be used undefined in any project that does not override the default.
21060 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
21062         gitlog-to-changelog: treat a message with only blank lines as empty.
21063         * build-aux/gitlog-to-changelog: Move the code that removes leading and
21064         trailing blank lines before the code that issues a warning about an
21065         empty commit message.
21067 2011-10-30  Jim Meyering  <meyering@redhat.com>
21069         test-parse-datetime.c: avoid new DST-related false positive test failure
21070         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
21071         based on the time/date we'll convert, not the current time.
21072         Otherwise, the moment we cross a DST boundary like today's in
21073         Europe, (CEST to CET), that offset ends up being one hour off.
21075 2011-10-27  Bruno Haible  <bruno@clisp.org>
21077         fstat: Tweak documentation.
21078         * modules/fstat (Description): More precise description.
21080 2011-10-27  Bruno Haible  <bruno@clisp.org>
21082         Update documentation regarding 'largefile' module.
21083         * doc/posix-functions/fstat.texi: Tweak wording.
21084         * doc/posix-functions/opendir.texi: Mention that the module fixes the
21085         problems with huge directories and/or small ino_t types.
21086         * doc/posix-functions/readdir.texi: Likewise.
21087         * doc/posix-functions/rewinddir.texi: Likewise.
21089 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
21091         maint.mk: don't maintain a second build-aux variable.
21092         * maint.mk (build_aux): Removed.  The maintainer-makefile module
21093         depends on GNUmakefile, which already maintains a cfg.mk
21094         overridable $(_build-aux) for projects with a non-standard
21095         build-aux directory location, although without the $(srcdir)
21096         prefix.  Use that variable consistently instead of introducing a
21097         second one.  Adjust all call sites.
21099 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21101         Add stdalign module and use it in other modules.
21102         This is based on a previous proposal by Bruno Haible
21103         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
21105         stdalign: new module
21106         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
21107         * modules/stdalign: New files.
21108         * MODULES.html.sh (c1x_core_properties): Add stdalign.
21109         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
21111         stdalign-tests: new module
21112         * modules/stdalign-tests, tests/test-stdalign.c: New files.
21114         argp: use stdalign
21115         * lib/argp-parse.c: Include <stdalign.h>.
21116         (alignof): Remove.
21117         * modules/argp (Depends-on): Add stdalign.
21119         crypto libraries: use stdalign
21120         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
21121         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
21122         Do not include <stdlib.h> twice, in md4.c.
21123         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
21124         because we are accessing a pointer's bit-pattern, not a size.
21125         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
21126         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
21127         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
21128         * modules/crypto/sha512: Likewise.
21130         sys_socket: use stdalign, not alignof
21131         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
21132         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
21134 2011-10-27  Bruno Haible  <bruno@clisp.org>
21136         raise test: Avoid a test failure on Linux/MIPS.
21137         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
21138         because 99 is a valid signal on Linux/MIPS.
21140 2011-10-27  Bruno Haible  <bruno@clisp.org>
21142         nonblocking tests: Fix test failure on Linux/MIPS.
21143         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
21144         Set to 270000.
21146 2011-10-27  Bruno Haible  <bruno@clisp.org>
21148         utimensat: Work around problem on Linux/hppa.
21149         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
21150         values.
21151         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
21153 2011-10-25  Jim Meyering  <meyering@redhat.com>
21155         maint.mk: fix a bug in sc_prohibit_stddef_without_use
21156         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
21157         after symbols like NULL, size_t, etc.
21158         Reported by Alfred M. Szmidt.
21160         maint.mk: exempt ENODATA from a syntax-check rule
21161         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
21162         from the sc_prohibit_always-defined_macros syntax-check rule.
21163         Add a comment.  See this for more details:
21164         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
21166 2011-10-23  Jim Meyering  <meyering@redhat.com>
21168         fts: close parent dir FD before returning from post-traversal fts_read
21169         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
21170         unlink A, even though an FD open on A remained.  This is suboptimal
21171         (holding a file descriptor open longer than needed), but otherwise not
21172         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
21173         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
21174         that represents a real problem: it causes the removal of A to fail
21175         with e.g., "rm: cannot remove `A': Device or resource busy"
21177         fts visits each directory twice and keeps a cache (fts_fd_ring) of
21178         directory file descriptors.  After completing the final, FTS_DP,
21179         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
21180         cache, but then proceeded to add a new FD to it via the subsequent
21181         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
21182         final file descriptor would be closed only via fts_close's call to
21183         fd_ring_clear.  Now, it is usually closed earlier, via the final
21184         FTS_DP-returning fts_read call.
21185         * lib/fts.c (restore_initial_cwd): New function, converted from
21186         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
21187         Update callers.
21188         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
21189         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
21191 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
21192             Bruno Haible  <bruno@clisp.org>
21193             Jim Meyering  <jim@meyering.net>
21195         readme-release: improve safety of release prep instructions.
21196         * README-release: Don't git pull all branches when only master
21197         is needed for the release process.
21198         Run make maintainer-clean before changing trees and merging.
21199         Don't try to run ./configure right after git pull in case files
21200         that influence the bootstrap process have changed, move the
21201         ./configure step to after running ./bootstrap.
21202         Don't bootstrap "one last time"... it's the first time!
21204 2011-10-22  Bruno Haible  <bruno@clisp.org>
21206         errno, strerror-override: Support for MSVC 10.
21207         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
21208         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
21209         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
21210         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
21211         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
21212         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
21213         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
21214         Assign values compatible with MSVC 10.
21215         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
21216         New macros.
21217         (GNULIB_defined_EWINSOCK): New macro.
21218         * lib/strerror-override.c (strerror_override): Update accordingly.
21219         * lib/strerror-override.h: Likewise.
21220         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
21221         longer equal to the corresponding errno value.
21222         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21224 2011-10-22  Bruno Haible  <bruno@clisp.org>
21226         perror: Recognize when test program crashes.
21227         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
21228         strerror, set gl_cv_func_perror_works to no.
21229         Reported by Daniel Richard G. <skunk@iskunk.org>.
21231         perror: Fix indentation.
21232         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
21234 2011-10-22  Bruno Haible  <bruno@clisp.org>
21236         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
21237         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
21238         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
21239         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
21240         functions, not as a macro.
21241         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
21242         macros.
21243         (isfinite, isinf, isnan, signbit): Check overloaded functions and
21244         absence of macro.
21245         Suggested by Eric Blake.
21246         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21248 2011-10-21  Bruno Haible  <bruno@clisp.org>
21250         relocatable-prog-wrapper: Don't leave object files behind.
21251         * build-aux/install-reloc: Re-synchronize list of .o files to be
21252         removed with list of compilation units.
21254 2011-10-20  Bruno Haible  <bruno@clisp.org>
21256         openpty, posix_openpt: Remove code duplication.
21257         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
21258         * lib/openpty.c: Include <stdlib.h>.
21259         (openpty): Use posix_openpt on all platforms except IRIX.
21260         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
21262 2011-10-20  Bruno Haible  <bruno@clisp.org>
21264         unlockpt: Detect invalid argument.
21265         * lib/unlockpt.c: Include <fcntl.h>.
21266         (unlockpt): Check whether fd is valid, using fcntl().
21267         * modules/unlockpt (Depends-on): Add fcntl-h.
21269 2011-10-20  Bruno Haible  <bruno@clisp.org>
21271         openpty: Avoid compilation error on AIX 6.1.
21272         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
21274 2011-10-20  Bruno Haible  <bruno@clisp.org>
21276         posix_openpt: Support for OpenBSD.
21277         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
21278         (posix_openpt) [OpenBSD]: New code.
21279         * lib/grantpt.c: Include <fcntl.h>.
21280         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
21281         * modules/grantpt (Depends-on): Add fcntl-h.
21283 2011-10-20  Bruno Haible  <bruno@clisp.org>
21285         posix_openpt test: Coding style.
21286         * tests/test-posix_openpt.c: Use GNU coding style.
21288 2011-10-20  Bruno Haible  <bruno@clisp.org>
21290         grantpt: Support --avoid=pt_chown.
21291         * modules/grantpt (Files): Add lib/pty-private.h.
21293 2011-10-20  Bruno Haible  <bruno@clisp.org>
21295         posix_openpt: Fix autoconf macro.
21296         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
21297         unneeded check for _getpty.
21299 2011-10-20  Bruno Haible  <bruno@clisp.org>
21301         openpty: Update comments.
21302         * lib/openpty.c: Add comments about Minix.
21304 2011-10-19  Eric Blake  <eblake@redhat.com>
21306         openpty: relax license
21307         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
21309         pt_chown: use configmake to simplify build
21310         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
21312         ptsname and others: relax license
21313         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
21314         * modules/unlockpt (License): Likewise.
21315         * modules/pt_chown (License): Likewise.
21316         * modules/ptsname (License): Likewise.
21317         * modules/ttyname_r (License): Likewise.
21319 2011-10-19  Jim Meyering  <meyering@redhat.com>
21321         posix_openpt: remove spurious #endif
21322         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
21324 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
21326         maint.mk: Respect $(build_aux) in web-manual rule.
21327         * top/maint.mk (web-manual): Find gen-announce script in user's
21328         $(build_aux) directory instead of hard-coding 'build-aux'.
21330 2011-10-19  Bruno Haible  <bruno@clisp.org>
21332         posix_openpt: Fix compilation error.
21333         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
21334         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
21335         Mention the openpty module as an alternative.
21337 2011-10-19  Bruno Haible  <bruno@clisp.org>
21339         Support for old NeXTstep 3.3 frexp().
21340         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
21341         execution time of the test to 5 seconds.
21342         Reported by Daniel Richard G. <skunk@iskunk.org>.
21344 2011-10-19  Bruno Haible  <bruno@clisp.org>
21346         Support for old NeXTstep 3.3 sed.
21347         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
21348         part, use /.../, not \|...|. Escape periods in the header file name.
21349         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
21350         Reported by Daniel Richard G. <skunk@iskunk.org>.
21352 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
21354         Support for old NeXTstep 3.3 gcc.
21355         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
21356         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
21357         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
21358         * lib/spawn.in.h (_Restrict_arr_): Likewise.
21359         * lib/regex.h (_Restrict_arr_): Likewise.
21360         * lib/regex_internal.h (re_token_t): Likewise.
21361         * lib/regexec.c (check_node_accept_bytes): Likewise.
21362         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
21364 2011-10-18  Eric Blake  <eblake@redhat.com>
21366         posix_openpt: new module
21367         * modules/posix_openpt: New module.
21368         * m4/posix_openpt.m4: New file.
21369         * lib/posix_openpt.c: Likewise.
21370         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
21371         (gl_STDLIB_H_DEFAULTS): Set defaults.
21372         * modules/stdlib (Makefile.am): Substitute macros.
21373         * lib/stdlib.in.h (posix_openpt): Declare.
21374         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
21375         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
21376         * modules/posix_openpt-tests: New test module.
21377         * tests/test-posix_openpt.c: New test.
21379 2011-10-15  Bruno Haible  <bruno@clisp.org>
21381         xstrtoll: Fix compilation failure.
21382         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
21383         from lib/strtol.c.
21384         * doc/posix-headers/limits.texi: Mention missing numerical limits on
21385         some platforms.
21386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21388 2011-10-15  Bruno Haible  <bruno@clisp.org>
21390         vasnprintf: Optimize bit search operation.
21391         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
21392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
21393         gl_DOUBLE_EXPONENT_LOCATION.
21394         * modules/vasnprintf (Files): Add m4/exponentd.m4.
21395         * modules/unistdio/u8-vasnprintf (Files): Likewise.
21396         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
21397         * modules/unistdio/u16-vasnprintf (Files): Likewise.
21398         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
21399         * modules/unistdio/u32-vasnprintf (Files): Likewise.
21400         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
21401         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
21402         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
21404 2011-10-15  Bruno Haible  <bruno@clisp.org>
21406         vasnprintf: Fix comments.
21407         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
21409 2011-10-14  Bruno Haible  <bruno@clisp.org>
21411         Tests for module 'integer_length_ll'.
21412         * modules/integer_length_ll-tests: New file.
21413         * tests/test-integer_length_ll.c: New file.
21415         New module 'integer_length_ll'.
21416         * lib/integer_length_ll.c: New file.
21417         * modules/integer_length_ll: New file.
21419 2011-10-14  Bruno Haible  <bruno@clisp.org>
21421         Tests for module 'integer_length_l'.
21422         * modules/integer_length_l-tests: New file.
21423         * tests/test-integer_length_l.c: New file.
21425         New module 'integer_length_l'.
21426         * lib/integer_length_l.c: New file.
21427         * modules/integer_length_l: New file.
21429 2011-10-14  Bruno Haible  <bruno@clisp.org>
21431         Tests for module 'integer_length'.
21432         * modules/integer_length-tests: New file.
21433         * tests/test-integer_length.c: New file.
21435         New module 'integer_length'.
21436         * lib/integer_length.h: New file.
21437         * lib/integer_length.c: New file.
21438         * modules/integer_length: New file.
21440 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
21442         popen: Fix dependency conditions.
21443         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
21445 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
21447         perror: Fix autoconf test.
21448         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
21449         <stdlib.h> and <string.h>.
21451 2011-10-14  Bruno Haible  <bruno@clisp.org>
21453         ffsl: Optimize on 64-bit platforms.
21454         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
21455         unrolling.
21457 2011-10-13  Bruno Haible  <bruno@clisp.org>
21459         ffsl: Optimize on 32-bit platforms.
21460         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
21461         use ffs() without a loop.
21463         ffsl, ffsll: Optimize for GCC.
21464         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
21465         * lib/ffsl.c (GCC_BUILTIN): New macro.
21466         * lib/ffsll.c (GCC_BUILTIN): Likewise.
21468 2011-10-13  Bruno Haible  <bruno@clisp.org>
21470         ffs, bcopy, memset: Support symbol renaming via config.h.
21471         * lib/ffs.c: Include <config.h>.
21472         * lib/bcopy.c: Likewise.
21473         * lib/memset.c: Likewise.
21475 2011-10-10  Bruno Haible  <bruno@clisp.org>
21477         atanl: Simplify for platforms where 'long double' == 'double'.
21478         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21479         alternative implementation.
21480         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21481         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21482         * modules/atanl (Depends-on): Add atan. Update conditions.
21484 2011-10-10  Bruno Haible  <bruno@clisp.org>
21486         acosl: Simplify for platforms where 'long double' == 'double'.
21487         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21488         alternative implementation.
21489         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21490         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21491         * modules/acosl (Depends-on): Add acos. Update conditions.
21493 2011-10-10  Bruno Haible  <bruno@clisp.org>
21495         asinl: Simplify for platforms where 'long double' == 'double'.
21496         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21497         alternative implementation.
21498         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21499         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21500         * modules/asinl (Depends-on): Add asin. Update conditions.
21502 2011-10-10  Bruno Haible  <bruno@clisp.org>
21504         tanl: Simplify for platforms where 'long double' == 'double'.
21505         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21506         implementation.
21507         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21508         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21509         * modules/tanl (Depends-on): Add tan. Update conditions.
21510         (configure.ac): Don't compile trigl.c if
21511         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21513 2011-10-10  Bruno Haible  <bruno@clisp.org>
21515         cosl: Simplify for platforms where 'long double' == 'double'.
21516         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21517         implementation.
21518         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21519         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21520         * modules/cosl (Depends-on): Add cos. Update conditions.
21521         (configure.ac): Don't compile sincosl.c and trigl.c if
21522         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21524 2011-10-10  Bruno Haible  <bruno@clisp.org>
21526         sinl: Simplify for platforms where 'long double' == 'double'.
21527         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21528         implementation.
21529         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21530         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21531         * modules/sinl (Depends-on): Add sin. Update conditions.
21532         (configure.ac): Don't compile sincosl.c and trigl.c if
21533         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21535 2011-10-10  Bruno Haible  <bruno@clisp.org>
21537         logl: Simplify for platforms where 'long double' == 'double'.
21538         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21539         implementation.
21540         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21541         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21542         * modules/logl (Depends-on): Add log. Update conditions.
21544 2011-10-10  Bruno Haible  <bruno@clisp.org>
21546         expl: Simplify for platforms where 'long double' == 'double'.
21547         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21548         implementation.
21549         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21550         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21551         * modules/expl (Depends-on): Add exp. Update conditions.
21553 2011-10-10  Bruno Haible  <bruno@clisp.org>
21555         sqrtl: Simplify for platforms where 'long double' == 'double'.
21556         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21557         alternative implementation.
21558         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21559         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21560         * modules/sqrtl (Depends-on): Update conditions.
21562 2011-10-10  Bruno Haible  <bruno@clisp.org>
21564         ldexpl: Simplify for platforms where 'long double' == 'double'.
21565         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21566         alternative implementation.
21567         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21568         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21569         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
21571 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
21573         ffsll: set correct witness
21574         * modules/ffsll (configure.ac): Fix typo.
21576 2011-10-10  Bruno Haible  <bruno@clisp.org>
21578         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
21579         * lib/printf-frexpl.c: Include <config.h>.
21580         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21581         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
21582         second time.
21583         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
21584         gl_LONG_DOUBLE_VS_DOUBLE.
21585         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
21586         conditions.
21588 2011-10-10  Bruno Haible  <bruno@clisp.org>
21590         frexpl: Simplify for platforms where 'long double' == 'double'.
21591         * lib/frexpl.c: Include <config.h>.
21592         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21593         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21594         time.
21595         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21596         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21597         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
21598         * modules/frexpl (Depends-on): Add frexp. Update conditions.
21599         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
21600         conditions.
21602 2011-10-10  Jim Meyering  <meyering@redhat.com>
21604         test-renameat: don't leave behind a temporary file
21605         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
21606           ERROR: files left in build directory after distclean:
21607           ./gltests/test-renameat.too
21608           make[1]: *** [distcleancheck] Error 1
21609         Reported by Tom G. Christensen.
21611 2011-10-09  Bruno Haible  <bruno@clisp.org>
21613         rint: Determine RINT_LIBM correctly on AIX 7.
21614         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
21615         directly, not only through a function pointer. Also accept an optional
21616         4th argument with extra code.
21617         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
21618         rintf() call by gcc when optimizing.
21620         mathfunc.m4: Refactor.
21621         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
21622         m4 variable.
21624 2011-10-09  Bruno Haible  <bruno@clisp.org>
21626         rintl: Simplify for platforms where 'long double' == 'double'.
21627         * lib/rintl.c: Include <config.h>.
21628         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21629         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21630         time.
21631         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21632         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21633         * modules/rintl (Depends-on): Add rint. Update conditions.
21635 2011-10-09  Bruno Haible  <bruno@clisp.org>
21637         roundl: Simplify for platforms where 'long double' == 'double'.
21638         * lib/roundl.c: Include <config.h>.
21639         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21640         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21641         time.
21642         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21643         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21644         * modules/roundl (Depends-on): Add round. Update conditions.
21646 2011-10-09  Bruno Haible  <bruno@clisp.org>
21648         truncl: Simplify for platforms where 'long double' == 'double'.
21649         * lib/truncl.c: Include <config.h>.
21650         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21651         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21652         time.
21653         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21654         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21655         * modules/truncl (Depends-on): Add trunc. Update conditions.
21657 2011-10-09  Bruno Haible  <bruno@clisp.org>
21659         ceill: Simplify for platforms where 'long double' == 'double'.
21660         * lib/ceill.c: Include <config.h>.
21661         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21662         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21663         time.
21664         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21665         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21666         * modules/ceill (Depends-on): Add ceil. Update conditions.
21668 2011-10-09  Bruno Haible  <bruno@clisp.org>
21670         floorl: Simplify for platforms where 'long double' == 'double'.
21671         * lib/floorl.c: Include <config.h>.
21672         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21673         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21674         time.
21675         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21676         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21677         * modules/floorl (Depends-on): Add floor. Update conditions.
21679 2011-10-09  Bruno Haible  <bruno@clisp.org>
21681         rint: Fix ordering constraints.
21682         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
21683         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
21684         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
21686 2011-10-09  Bruno Haible  <bruno@clisp.org>
21688         copysignl: Simplify for platforms where 'long double' == 'double'.
21689         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21690         alternative.
21691         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21692         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21693         * modules/copysignl (Depends-on): Add copysign. Update conditions.
21695 2011-10-09  Bruno Haible  <bruno@clisp.org>
21697         Tests for module 'rintl'.
21698         * modules/rintl-tests: New file.
21699         * tests/test-rintl.c: New file.
21701         New module 'rintl'.
21702         * lib/math.in.h (rintl): New declaration.
21703         * lib/rintl.c: New file.
21704         * m4/rintl.m4: New file.
21705         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
21706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
21707         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
21708         * modules/rintl: New file.
21709         * tests/test-math-c++.cc: Check the declaration of rintl.
21710         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
21711         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
21712         * doc/posix-functions/rintl.texi: Mention the new module.
21714 2011-10-09  Bruno Haible  <bruno@clisp.org>
21716         Tests for module 'rintf'.
21717         * modules/rintf-tests: New file.
21718         * tests/test-rintf.c: New file.
21720         New module 'rintf'.
21721         * lib/math.in.h (rintf): New declaration.
21722         * lib/rintf.c: New file.
21723         * m4/rintf.m4: New file.
21724         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
21725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
21726         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
21727         * modules/rintf: New file.
21728         * tests/test-math-c++.cc: Check the declaration of rintf.
21729         * doc/posix-functions/rintf.texi: Mention the new module.
21731 2011-10-09  Bruno Haible  <bruno@clisp.org>
21733         rint: Support for MSVC.
21734         * lib/math.in.h (rint): New declaration.
21735         * lib/rint.c: New file.
21736         * m4/rint.m4: New file.
21737         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
21738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
21739         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
21740         * modules/rint (Description): Fix.
21741         (Files): Add lib/rint.c, m4/rint.m4.
21742         (Depends-on): Add math.
21743         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
21744         gl_MATH_MODULE_INDICATOR.
21745         * tests/test-math-c++.cc: Check the declaration of rint.
21746         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
21747         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
21748         * doc/posix-functions/rint.texi: Mention the replacement provided by
21749         the module.
21751         rint tests: More tests.
21752         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
21753         minus-zero.h, infinity.h, nan.h.
21754         (main): Skip the test if the current rounding mode is not standard. Add
21755         tests for negative numbers, minus zero, infinity, NaN.
21756         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
21757         tests/nan.h.
21758         (Depends-on): Add isnand-nolibm.
21760 2011-10-09  Bruno Haible  <bruno@clisp.org>
21762         Tests for module 'copysignl'.
21763         * modules/copysignl-tests: New file.
21764         * tests/test-copysignl.c: New file.
21766         New module 'copysignl'.
21767         * lib/math.in.h (copysignl): New declaration.
21768         * lib/copysignl.c: New file.
21769         * m4/copysignl.m4: New file.
21770         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
21771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
21772         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
21773         HAVE_COPYSIGNL.
21774         * modules/copysignl: New file.
21775         * tests/test-math-c++.cc: Check the declaration of copysignl.
21776         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
21777         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
21778         * doc/posix-functions/copysignl.texi: Mention the new module.
21780 2011-10-09  Bruno Haible  <bruno@clisp.org>
21782         Tests for module 'copysignf'.
21783         * modules/copysignf-tests: New file.
21784         * tests/test-copysignf.c: New file.
21786         New module 'copysignf'.
21787         * lib/math.in.h (copysignf): New declaration.
21788         * lib/copysignf.c: New file.
21789         * m4/copysignf.m4: New file.
21790         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
21791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
21792         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
21793         HAVE_COPYSIGNF.
21794         * modules/copysignf: New file.
21795         * tests/test-math-c++.cc: Check the declaration of copysignf.
21796         * doc/posix-functions/copysignf.texi: Mention the new module.
21798 2011-10-09  Bruno Haible  <bruno@clisp.org>
21800         Ensure that HAVE_* variables are set to 1 before they are set to 0.
21801         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
21802         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
21803         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21804         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
21805         gl_SIGNAL_H_DEFAULTS.
21807 2011-10-09  Bruno Haible  <bruno@clisp.org>
21809         poll: Make macro safer.
21810         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
21811         ac_cv_header_poll_h is not set.
21813 2011-10-09  Bruno Haible  <bruno@clisp.org>
21815         copysign: Provide replacement.
21816         * lib/math.in.h (copysign): New declaration.
21817         * lib/copysign.c: New file.
21818         * m4/copysign.m4: New file.
21819         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
21820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
21821         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
21822         HAVE_COPYSIGN.
21823         * modules/copysign (Description): Clarify.
21824         (Files): Add lib/copysign.c, m4/copysign.m4.
21825         (Depends-on): Add math, signbit.
21826         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
21827         gl_MATH_MODULE_INDICATOR.
21828         * tests/test-math-c++.cc: Check the declaration of copysign.
21829         * doc/posix-functions/copysign.texi: Mention the effects of the module
21830         on Minix and MSVC.
21832 2011-10-09  Bruno Haible  <bruno@clisp.org>
21834         isinf: Ensure macro on AIX 5.1.
21835         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
21836         macro.
21837         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
21839 2011-10-09  Bruno Haible  <bruno@clisp.org>
21841         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
21842         * modules/snprintf-posix-tests (configure.ac): Require
21843         gl_LONG_DOUBLE_VS_DOUBLE.
21844         * modules/sprintf-posix-tests (configure.ac): Likewise.
21845         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
21846         * modules/vasprintf-posix-tests (configure.ac): Likewise.
21847         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
21848         * modules/vsprintf-posix-tests (configure.ac): Likewise.
21849         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
21850         tests on platforms where 'long double' is the same as 'double'.
21851         * tests/test-sprintf-posix.h (test_function): Likewise.
21852         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21853         * tests/test-vasprintf-posix.c (test_function): Likewise.
21855         *printf: Fix for platforms where 'long double' == 'double'.
21856         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
21857         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
21858         * modules/dprintf-posix (Files): Add m4/math_h.m4.
21859         * modules/fprintf-posix (Files): Likewise.
21860         * modules/obstack-printf-posix (Files): Likewise.
21861         * modules/snprintf-posix (Files): Likewise.
21862         * modules/sprintf-posix (Files): Likewise.
21863         * modules/vasnprintf (Files): Likewise.
21864         * modules/vasnprintf-posix (Files): Likewise.
21865         * modules/vasprintf-posix (Files): Likewise.
21866         * modules/vdprintf-posix (Files): Likewise.
21867         * modules/vfprintf-posix (Files): Likewise.
21868         * modules/vsnprintf-posix (Files): Likewise.
21869         * modules/vsprintf-posix (Files): Likewise.
21870         * modules/unistdio/u8-vasnprintf (Files): Likewise.
21871         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
21872         * modules/unistdio/u16-vasnprintf (Files): Likewise.
21873         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
21874         * modules/unistdio/u32-vasnprintf (Files): Likewise.
21875         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
21876         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
21878         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
21879         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
21880         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21881         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
21882         'long double'.
21883         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
21885         isinf: Fix for platforms where 'long double' == 'double'.
21886         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
21887         Don't blindly assume 80-bit 'long double'.
21889         isfinite: Fix for platforms where 'long double' == 'double'.
21890         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
21891         Don't blindly assume 80-bit 'long double'.
21893         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
21894         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
21895         * modules/isfinite-tests (configure.ac): Require
21896         gl_LONG_DOUBLE_VS_DOUBLE.
21897         * modules/isinf-tests (configure.ac): Likewise.
21898         * modules/isnan-tests (configure.ac): Likewise.
21899         * modules/isnanl-tests (configure.ac): Likewise.
21900         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
21901         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
21902         tests on platforms where 'long double' is the same as 'double'.
21903         * tests/test-isinf.c (test_isinfl): Likewise.
21904         * tests/test-isnan.c (test_long_double): Likewise.
21905         * tests/test-isnanl.h (main): Likewise.
21907 2011-10-08  Bruno Haible  <bruno@clisp.org>
21909         Tests for module 'tanhf'.
21910         * modules/tanhf-tests: New file.
21911         * tests/test-tanhf.c: New file.
21913         New module 'tanhf'.
21914         * lib/math.in.h (tanhf): New declaration.
21915         * lib/tanhf.c: New file.
21916         * m4/tanhf.m4: New file.
21917         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
21918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
21919         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
21920         * modules/tanhf: New file.
21921         * tests/test-math-c++.cc: Check the declaration of tanhf.
21922         * doc/posix-functions/tanhf.texi: Mention the new module.
21924         tanh: Use a .m4 file.
21925         * m4/tanh.m4: New file.
21926         * modules/tanh (Files): Add it.
21927         (configure.ac): Just invoke gl_FUNC_TANH.
21929 2011-10-08  Bruno Haible  <bruno@clisp.org>
21931         Tests for module 'coshf'.
21932         * modules/coshf-tests: New file.
21933         * tests/test-coshf.c: New file.
21935         New module 'coshf'.
21936         * lib/math.in.h (coshf): New declaration.
21937         * lib/coshf.c: New file.
21938         * m4/coshf.m4: New file.
21939         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
21940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
21941         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
21942         * modules/coshf: New file.
21943         * tests/test-math-c++.cc: Check the declaration of coshf.
21944         * doc/posix-functions/coshf.texi: Mention the new module.
21946         cosh: Use a .m4 file.
21947         * m4/cosh.m4: New file.
21948         * modules/cosh (Files): Add it.
21949         (configure.ac): Just invoke gl_FUNC_COSH.
21951 2011-10-08  Bruno Haible  <bruno@clisp.org>
21953         Tests for module 'sinhf'.
21954         * modules/sinhf-tests: New file.
21955         * tests/test-sinhf.c: New file.
21957         New module 'sinhf'.
21958         * lib/math.in.h (sinhf): New declaration.
21959         * lib/sinhf.c: New file.
21960         * m4/sinhf.m4: New file.
21961         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
21962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
21963         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
21964         * modules/sinhf: New file.
21965         * tests/test-math-c++.cc: Check the declaration of sinhf.
21966         * doc/posix-functions/sinhf.texi: Mention the new module.
21968         sinh: Use a .m4 file.
21969         * m4/sinh.m4: New file.
21970         * modules/sinh (Files): Add it.
21971         (configure.ac): Just invoke gl_FUNC_SINH.
21973 2011-10-08  Bruno Haible  <bruno@clisp.org>
21975         Tests for module 'atan2f'.
21976         * modules/atan2f-tests: New file.
21977         * tests/test-atan2f.c: New file.
21979         New module 'atan2f'.
21980         * lib/math.in.h (atan2f): New declaration.
21981         * lib/atan2f.c: New file.
21982         * m4/atan2f.m4: New file.
21983         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
21984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
21985         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
21986         * modules/atan2f: New file.
21987         * tests/test-math-c++.cc: Check the declaration of atan2f.
21988         * doc/posix-functions/atan2f.texi: Mention the new module.
21990         atan2: Use a .m4 file.
21991         * m4/atan2.m4: New file.
21992         * modules/atan2 (Files): Add it.
21993         (configure.ac): Just invoke gl_FUNC_ATAN2.
21995 2011-10-08  Bruno Haible  <bruno@clisp.org>
21997         Tests for module 'atanf'.
21998         * modules/atanf-tests: New file.
21999         * tests/test-atanf.c: New file.
22001         New module 'atanf'.
22002         * lib/math.in.h (atanf): New declaration.
22003         * lib/atanf.c: New file.
22004         * m4/atanf.m4: New file.
22005         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
22006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
22007         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
22008         * modules/atanf: New file.
22009         * tests/test-math-c++.cc: Check the declaration of atanf.
22010         * doc/posix-functions/atanf.texi: Mention the new module.
22012         atan: Use a .m4 file.
22013         * m4/atan.m4: New file.
22014         * modules/atan (Files): Add it.
22015         (configure.ac): Just invoke gl_FUNC_ATAN.
22017 2011-10-08  Bruno Haible  <bruno@clisp.org>
22019         Tests for module 'acosf'.
22020         * modules/acosf-tests: New file.
22021         * tests/test-acosf.c: New file.
22023         New module 'acosf'.
22024         * lib/math.in.h (acosf): New declaration.
22025         * lib/acosf.c: New file.
22026         * m4/acosf.m4: New file.
22027         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
22028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
22029         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
22030         * modules/acosf: New file.
22031         * tests/test-math-c++.cc: Check the declaration of acosf.
22032         * doc/posix-functions/acosf.texi: Mention the new module.
22034         acos: Use a .m4 file.
22035         * m4/acos.m4: New file.
22036         * modules/acos (Files): Add it.
22037         (configure.ac): Just invoke gl_FUNC_ACOS.
22039 2011-10-08  Bruno Haible  <bruno@clisp.org>
22041         Tests for module 'asinf'.
22042         * modules/asinf-tests: New file.
22043         * tests/test-asinf.c: New file.
22045         New module 'asinf'.
22046         * lib/math.in.h (asinf): New declaration.
22047         * lib/asinf.c: New file.
22048         * m4/asinf.m4: New file.
22049         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
22050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
22051         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
22052         * modules/asinf: New file.
22053         * tests/test-math-c++.cc: Check the declaration of asinf.
22054         * doc/posix-functions/asinf.texi: Mention the new module.
22056         asin: Use a .m4 file.
22057         * m4/asin.m4: New file.
22058         * modules/asin (Files): Add it.
22059         (configure.ac): Just invoke gl_FUNC_ASIN.
22061 2011-10-08  Bruno Haible  <bruno@clisp.org>
22063         Tests for module 'tanf'.
22064         * modules/tanf-tests: New file.
22065         * tests/test-tanf.c: New file.
22067         New module 'tanf'.
22068         * lib/math.in.h (tanf): New declaration.
22069         * lib/tanf.c: New file.
22070         * m4/tanf.m4: New file.
22071         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
22072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
22073         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
22074         * modules/tanf: New file.
22075         * tests/test-math-c++.cc: Check the declaration of tanf.
22076         * doc/posix-functions/tanf.texi: Mention the new module.
22078         tan: Use a .m4 file.
22079         * m4/tan.m4: New file.
22080         * modules/tan (Files): Add it.
22081         (configure.ac): Just invoke gl_FUNC_TAN.
22083 2011-10-08  Bruno Haible  <bruno@clisp.org>
22085         Tests for module 'cosf'.
22086         * modules/cosf-tests: New file.
22087         * tests/test-cosf.c: New file.
22089         New module 'cosf'.
22090         * lib/math.in.h (cosf): New declaration.
22091         * lib/cosf.c: New file.
22092         * m4/cosf.m4: New file.
22093         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
22094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
22095         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
22096         * modules/cosf: New file.
22097         * tests/test-math-c++.cc: Check the declaration of cosf.
22098         * doc/posix-functions/cosf.texi: Mention the new module.
22100         cos: Use a .m4 file.
22101         * m4/cos.m4: New file.
22102         * modules/cos (Files): Add it.
22103         (configure.ac): Just invoke gl_FUNC_COS.
22105 2011-10-08  Bruno Haible  <bruno@clisp.org>
22107         Tests for module 'sinf'.
22108         * modules/sinf-tests: New file.
22109         * tests/test-sinf.c: New file.
22111         New module 'sinf'.
22112         * lib/math.in.h (sinf): New declaration.
22113         * lib/sinf.c: New file.
22114         * m4/sinf.m4: New file.
22115         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
22116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
22117         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
22118         * modules/sinf: New file.
22119         * tests/test-math-c++.cc: Check the declaration of sinf.
22120         * doc/posix-functions/sinf.texi: Mention the new module.
22122         sin: Use a .m4 file.
22123         * m4/sin.m4: New file.
22124         * modules/sin (Files): Add it.
22125         (configure.ac): Just invoke gl_FUNC_SIN.
22127 2011-10-08  Bruno Haible  <bruno@clisp.org>
22129         Tests for module 'powf'.
22130         * modules/powf-tests: New file.
22131         * tests/test-powf.c: New file.
22133         New module 'powf'.
22134         * lib/math.in.h (powf): New declaration.
22135         * lib/powf.c: New file.
22136         * m4/powf.m4: New file.
22137         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
22138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
22139         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
22140         * modules/powf: New file.
22141         * tests/test-math-c++.cc: Check the declaration of powf.
22142         * doc/posix-functions/powf.texi: Mention the new module.
22144         pow: Use a .m4 file.
22145         * m4/pow.m4: New file.
22146         * modules/pow (Files): Add it.
22147         (configure.ac): Just invoke gl_FUNC_POW.
22149 2011-10-08  Bruno Haible  <bruno@clisp.org>
22151         Tests for module 'log10f'.
22152         * modules/log10f-tests: New file.
22153         * tests/test-log10f.c: New file.
22155         New module 'log10f'.
22156         * lib/math.in.h (log10f): New declaration.
22157         * lib/log10f.c: New file.
22158         * m4/log10f.m4: New file.
22159         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
22160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
22161         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
22162         * modules/log10f: New file.
22163         * tests/test-math-c++.cc: Check the declaration of log10f.
22164         * doc/posix-functions/log10f.texi: Mention the new module.
22166         log10: Use a .m4 file.
22167         * m4/log10.m4: New file.
22168         * modules/log10 (Files): Add it.
22169         (configure.ac): Just invoke gl_FUNC_LOG10.
22171 2011-10-08  Bruno Haible  <bruno@clisp.org>
22173         Tests for module 'logf'.
22174         * modules/logf-tests: New file.
22175         * tests/test-logf.c: New file.
22177         New module 'logf'.
22178         * lib/math.in.h (logf): New declaration.
22179         * lib/logf.c: New file.
22180         * m4/logf.m4: New file.
22181         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
22182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
22183         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
22184         * modules/logf: New file.
22185         * tests/test-math-c++.cc: Check the declaration of logf.
22186         * doc/posix-functions/logf.texi: Mention the new module.
22188         log: Use a .m4 file.
22189         * m4/log.m4: New file.
22190         * modules/log (Files): Add it.
22191         (configure.ac): Just invoke gl_FUNC_LOG.
22193 2011-10-08  Bruno Haible  <bruno@clisp.org>
22195         Tests for module 'expf'.
22196         * modules/expf-tests: New file.
22197         * tests/test-expf.c: New file.
22199         New module 'expf'.
22200         * lib/math.in.h (expf): New declaration.
22201         * lib/expf.c: New file.
22202         * m4/expf.m4: New file.
22203         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
22204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
22205         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
22206         * modules/expf: New file.
22207         * tests/test-math-c++.cc: Check the declaration of expf.
22208         * doc/posix-functions/expf.texi: Mention the new module.
22210         exp: Use a .m4 file.
22211         * m4/exp.m4: New file.
22212         * modules/exp (Files): Add it.
22213         (configure.ac): Just invoke gl_FUNC_EXP.
22215 2011-10-08  Bruno Haible  <bruno@clisp.org>
22217         Tests for module 'sqrtf'.
22218         * modules/sqrtf-tests: New file.
22219         * tests/test-sqrtf.c: New file.
22221         New module 'sqrtf'.
22222         * lib/math.in.h (sqrtf): New declaration.
22223         * lib/sqrtf.c: New file.
22224         * m4/sqrtf.m4: New file.
22225         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
22226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
22227         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
22228         * modules/sqrtf: New file.
22229         * tests/test-math-c++.cc: Check the declaration of sqrtf.
22230         * doc/posix-functions/sqrtf.texi: Mention the new module.
22232 2011-10-08  Bruno Haible  <bruno@clisp.org>
22234         Tests: Avoid link failures w.r.t. libintl.
22235         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
22236         $(LIBINTL).
22237         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
22238         $(LIBINTL).
22239         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
22240         against $(LIBINTL).
22241         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
22242         $(LIBINTL).
22243         * modules/openat-tests (Makefile.am): Link test-fchmodat against
22244         $(LIBINTL).
22245         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
22247 2011-10-08  Bruno Haible  <bruno@clisp.org>
22249         pow tests: Defeat compiler optimizations.
22250         * tests/test-pow.c (main): Assign arguments to x and y before use.
22252 2011-10-08  Bruno Haible  <bruno@clisp.org>
22254         gnulib-tool: Improve last commit.
22255         * gnulib-tool (func_modules_transitive_closure): Simplify code.
22256         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
22257         ignore dependencies that are not among the modules list.
22259 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
22261         gnulib-tool: don't follow dependencies to avoided modules
22262         This fixes a bug that is related to the previous one.
22263         * gnulib-tool (func_modules_transitive_closure)
22264         (func_emit_autoconf_snippets):
22265         Check whether a dependency is acceptable before using it.
22266         (--extract-dependencies): Report an error if --avoid is also used,
22267         since this combination of options is not yet supported.
22269         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
22270         Problem reported by Peter Dyballa in
22271         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
22272         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
22273         when echoing "$condition".
22275 2011-10-07  Bruno Haible  <bruno@clisp.org>
22277         Fix documentation about math functions on MacOS X.
22278         * doc/posix-functions/exp2.texi: Don't say the function is missing on
22279         MacOS X 10.5.
22280         * doc/posix-functions/fdim.texi: Likewise.
22281         * doc/posix-functions/feclearexcept.texi: Likewise.
22282         * doc/posix-functions/fegetenv.texi: Likewise.
22283         * doc/posix-functions/fegetround.texi: Likewise.
22284         * doc/posix-functions/feholdexcept.texi: Likewise.
22285         * doc/posix-functions/feraiseexcept.texi: Likewise.
22286         * doc/posix-functions/fesetenv.texi: Likewise.
22287         * doc/posix-functions/fesetround.texi: Likewise.
22288         * doc/posix-functions/fetestexcept.texi: Likewise.
22289         * doc/posix-functions/feupdateenv.texi: Likewise.
22290         * doc/posix-functions/fmax.texi: Likewise.
22291         * doc/posix-functions/fmin.texi: Likewise.
22292         * doc/posix-functions/log2.texi: Likewise.
22293         * doc/posix-functions/modff.texi: Likewise.
22294         * doc/posix-functions/nan.texi: Likewise.
22295         * doc/posix-functions/nanf.texi: Likewise.
22296         * doc/posix-functions/nextafterf.texi: Likewise.
22297         * doc/posix-functions/remquo.texi: Likewise.
22299 2011-10-07  Bruno Haible  <bruno@clisp.org>
22301         modff: Drop assumption about library that defines modff.
22302         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
22303         AC_CHECK_FUNCS.
22304         * modules/modff (Files): Add m4/mathfunc.m4.
22306 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
22308         raise tests: Avoid a GCC warning.
22309         * tests/test-raise.c (handler): Use _Noreturn.
22311 2011-10-07  Bruno Haible  <bruno@clisp.org>
22313         Tests for module 'ldexpf'.
22314         * modules/ldexpf-tests: New file.
22315         * tests/test-ldexpf.c: New file.
22317         New module 'ldexpf'.
22318         * lib/math.in.h (ldexpf): New declaration.
22319         * lib/ldexpf.c: New file.
22320         * m4/ldexpf.m4: New file.
22321         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
22322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
22323         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
22324         * modules/ldexpf: New file.
22325         * tests/test-math-c++.cc: Check the declaration of ldexpf.
22326         * doc/posix-functions/ldexpf.texi: Mention the new module.
22328 2011-10-06  Bruno Haible  <bruno@clisp.org>
22330         frexpf: Work around problems on IRIX and mingw.
22331         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
22332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
22333         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
22334         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
22335         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
22336         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
22337         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
22339 2011-10-06  Bruno Haible  <bruno@clisp.org>
22341         fabsf: Drop assumption about library that defines fabsf.
22342         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
22343         AC_CHECK_FUNCS.
22344         * modules/fabsf (Files): Add m4/mathfunc.m4.
22346 2011-10-06  Bruno Haible  <bruno@clisp.org>
22348         frexpf: Drop assumption about library that defines frexpf.
22349         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
22350         'int *', 'float *', 'long double *', 'float', 'long double'.
22351         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
22352         AC_CHECK_FUNCS.
22353         * modules/frexpf (Files): Add m4/mathfunc.m4.
22355         Tests for module 'frexpf'.
22356         * modules/frexpf-tests: New file.
22357         * tests/test-frexpf.c: New file.
22359         New module 'frexpf'.
22360         * lib/math.in.h (frexpf): New declaration.
22361         * lib/frexpf.c: New file.
22362         * m4/frexpf.m4: New file.
22363         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
22364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
22365         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
22366         * modules/frexpf: New file.
22367         * tests/test-math-c++.cc: Check the declaration of frexpf.
22368         * doc/posix-functions/frexpf.texi: Mention the new module.
22370 2011-10-06  Bruno Haible  <bruno@clisp.org>
22372         math: Sort function declarations of math.in.h.
22373         * lib/math.in.h (frexp, logb): Move declarations.
22375 2011-10-05  Bruno Haible  <bruno@clisp.org>
22377         Tests for module 'modff'.
22378         * modules/modff-tests: New file.
22379         * tests/test-modff.c: New file.
22381         New module 'modff'.
22382         * lib/math.in.h (modff): New declaration.
22383         * lib/modff.c: New file.
22384         * m4/modff.m4: New file.
22385         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
22386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
22387         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
22388         * modules/modff: New file.
22389         * tests/test-math-c++.cc: Check the declaration of modff.
22390         * doc/posix-functions/modff.texi: Mention the new module.
22392         modf tests: Make test sharper.
22393         * tests/test-modf.c (main): Strengthen upper bound.
22395         modf: Use a .m4 file.
22396         * m4/modf.m4: New file.
22397         * modules/modf (Files): Add it.
22398         (configure.ac): Just invoke gl_FUNC_MODF.
22400 2011-10-05  Bruno Haible  <bruno@clisp.org>
22402         Tests for module 'fmodf'.
22403         * modules/fmodf-tests: New file.
22404         * tests/test-fmodf.c: New file.
22406         New module 'fmodf'.
22407         * lib/math.in.h (fmodf): New declaration.
22408         * lib/fmodf.c: New file.
22409         * m4/fmodf.m4: New file.
22410         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
22411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
22412         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
22413         * modules/fmodf: New file.
22414         * tests/test-math-c++.cc: Check the declaration of fmodf.
22415         * doc/posix-functions/fmodf.texi: Mention the new module.
22417         fmod: Use a .m4 file.
22418         * m4/fmod.m4: New file.
22419         * modules/fmod (Files): Add it.
22420         (configure.ac): Just invoke gl_FUNC_FMOD.
22422 2011-10-05  Bruno Haible  <bruno@clisp.org>
22424         Tests for module 'fabsf'.
22425         * modules/fabsf-tests: New file.
22426         * tests/test-fabsf.c: New file.
22428         New module 'fabsf'.
22429         * lib/math.in.h (fabsf): New declaration.
22430         * lib/fabsf.c: New file.
22431         * m4/fabsf.m4: New file.
22432         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
22433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
22434         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
22435         * modules/fabsf: New file.
22436         * tests/test-math-c++.cc: Check the declaration of fabsf.
22437         * doc/posix-functions/fabsf.texi: Mention the new module.
22439         fabs: Use a .m4 file.
22440         * m4/fabs.m4: New file.
22441         * modules/fabs (Files): Add it.
22442         (configure.ac): Just invoke gl_FUNC_FABS.
22444 2011-10-05  Jim Meyering  <meyering@redhat.com>
22446         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
22447         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
22448         ls -lL regression introduced in coreutils-8.12, it does so at the
22449         cost of an additional stat call in the common case.  Besides, now
22450         that the kernel change that prompted commit 95f7c57f has been reverted
22451         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
22452         we have no use for commit 95f7c57f, "file-has-acl: use
22453         acl_extended_file_nofollow if available".
22455 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
22457         file-has-acl: revert unintended change in behavior of ls -L
22458         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
22459         derived from...
22460         (file_has_acl): ...code here.  Call it.
22461         This problem was introduced with 2011-07-22 commit 95f7c57f,
22462         "file-has-acl: use acl_extended_file_nofollow if available".
22463         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
22465 2011-10-03  Bruno Haible  <bruno@clisp.org>
22467         poll: Avoid link errors on MSVC.
22468         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
22469         * modules/poll (Depends-on): Add sockets.
22470         (Link): New section.
22471         * NEWS: Mention the change.
22472         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
22473         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
22474         $(LIB_POLL) instead of $(LIBSOCKET).
22476 2011-10-03  Bruno Haible  <bruno@clisp.org>
22478         sys_select tests: Fix link error on MSVC 9.
22479         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
22480         with $(LIB_SELECT) instead of $(LIBSOCKET).
22482 2011-10-03  Bruno Haible  <bruno@clisp.org>
22484         sys_select: Fix compilation error on mingw.
22485         * lib/sys_select.in.h: On native Windows, include <io.h>.
22487 2011-10-03  Bruno Haible  <bruno@clisp.org>
22489         wmemset: Support for MSVC.
22490         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
22491         whether wmemset() exists.
22493 2011-10-03  Bruno Haible  <bruno@clisp.org>
22495         wmemmove: Support for MSVC.
22496         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
22497         whether wmemmove() exists.
22499 2011-10-03  Bruno Haible  <bruno@clisp.org>
22501         wmemcpy: Support for MSVC.
22502         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
22503         whether wmemcpy() exists.
22505 2011-10-03  Bruno Haible  <bruno@clisp.org>
22507         wmemcmp: Support for MSVC.
22508         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
22509         whether wmemcmp() exists.
22511 2011-10-03  Bruno Haible  <bruno@clisp.org>
22513         wmemchr: Support for MSVC.
22514         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
22515         whether wmemchr() exists.
22517 2011-10-03  Bruno Haible  <bruno@clisp.org>
22519         glthread/*, strsignal: Support for MSVC.
22520         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
22521         including <winsock.h> on MSVC 9.
22522         * lib/glthread/lock.h: Likewise.
22523         * lib/glthread/thread.h: Likewise.
22524         * lib/glthread/tls.h: Likewise.
22525         * lib/glthread/yield.h: Likewise.
22526         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
22527         if HAVE_UNISTD_H is false.
22528         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
22530 2011-10-03  Bruno Haible  <bruno@clisp.org>
22532         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
22533         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
22534         Set to 100000.
22536 2011-10-03  Bruno Haible  <bruno@clisp.org>
22538         acl: Fix specification.
22539         * lib/file-has-acl.c (file_has_acl): Fix specification.
22541 2011-10-03  Bruno Haible  <bruno@clisp.org>
22543         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
22544         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
22545         (compute_curr_prefix, shared_library_fullname,
22546         find_shared_library_fullname, get_shared_library_fullname, relocate):
22547         Use it together with PIC && INSTALLDIR.
22548         Reported by <jojelino@gmail.com>
22549         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
22551 2011-10-01  Jim Meyering  <meyering@redhat.com>
22553         maint.mk: adjust a release-related rule not to require use of gzip
22554         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
22555         Instead, check each file in $(DIST_ARCHIVES).  This is better for
22556         projects that build only .tar.xz files.  Also fix an erroneous test.
22558         test-linkat: don't leave behind a temporary file
22559         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
22560         Otherwise, coreutils' "make distcheck" would fail with this:
22561           Only in /c/cu/tests/torture/coreutils/test/\
22562             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
22563           make[2]: *** [my-distcheck] Error 1
22565         float, math: add omitted file
22566         * lib/itold.c: Add file, required for yesterday's float change.
22568 2011-10-01  Bruno Haible  <bruno@clisp.org>
22570         isinf: Fix for OpenBSD/x86.
22571         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
22572         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
22573         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
22575 2011-10-01  Bruno Haible  <bruno@clisp.org>
22577         isfinite: Fix syntax error in configure test.
22578         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
22580         isfinite: Fix typo.
22581         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
22582         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
22584 2011-10-01  Bruno Haible  <bruno@clisp.org>
22586         nonblocking tests: Fix test failure on Linux/IA-64.
22587         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
22588         Set to 270000.
22590 2011-10-01  Bruno Haible  <bruno@clisp.org>
22592         mkfifoat tests: Fix a test failure on mingw.
22593         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
22594         with error ENOSYS.
22596 2011-09-30  Bruno Haible  <bruno@clisp.org>
22598         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
22599         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
22600         'long double'. Set REPLACE_ITOLD.
22601         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
22602         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
22603         * lib/itold.c: New file.
22604         * modules/float (Files): Add lib/itold.c.
22605         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
22606         (Makefile.am): Substitute REPLACE_ITOLD.
22607         * modules/math (Depends-on): Add float.
22608         (Makefile.am): Substitute REPLACE_ITOLD.
22609         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
22610         * doc/posix-headers/math.texi: Likewise.
22611         * doc/posix-functions/logl.texi: Likewise.
22613 2011-09-30  Bruno Haible  <bruno@clisp.org>
22615         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
22616         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
22617         Set to 140000.
22619 2011-09-30  Bruno Haible  <bruno@clisp.org>
22621         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
22622         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
22623         invocation, say "right after AC_PROG_CC_STDC", not "right after
22624         AC_PROG_CC".
22625         Reported by Gary V. Vaughan <gary@gnu.org>.
22627 2011-09-30  Bruno Haible  <bruno@clisp.org>
22629         Centralize C99 requirement.
22630         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
22631         * modules/stdarg (configure.ac-early): Invoke it instead of
22632         AC_PROG_CC_STDC.
22633         Reported by Gary V. Vaughan and Paul Eggert.
22635 2011-09-29  Bruno Haible  <bruno@clisp.org>
22637         float: Fix LDBL_MAX value on Linux/PowerPC.
22638         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
22639         on Linux/PowerPC.
22640         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
22641         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
22642         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
22643         platform.
22644         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
22646 2011-09-29  Bruno Haible  <bruno@clisp.org>
22648         doc: Improve doc about gl_EARLY.
22649         * doc/gnulib-tool.texi (Initial import): Mention where to place an
22650         AC_PROG_CC_STDC invocation.
22651         Reported by Gary V. Vaughan <gary@gnu.org>.
22653 2011-09-28  Bruno Haible  <bruno@clisp.org>
22655         fgetc, fputc, fread, fwrite tests: Fix link error.
22656         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
22657         on non-MSVC platforms.
22658         * tests/test-fputc.c (main): Likewise.
22659         * tests/test-fread.c (main): Likewise.
22660         * tests/test-fwrite.c (main): Likewise.
22661         Reported by Jim Meyering.
22663 2011-09-27  Bruno Haible  <bruno@clisp.org>
22665         fputc, fwrite tests: Avoid test failure on MSVC.
22666         * tests/test-fgetc.c: Include msvc-inval.h.
22667         (main): Invoke gl_msvc_inval_ensure_handler.
22668         * tests/test-fputc.c: Include msvc-inval.h.
22669         (main): Invoke gl_msvc_inval_ensure_handler.
22670         * tests/test-fread.c: Include msvc-inval.h.
22671         (main): Invoke gl_msvc_inval_ensure_handler.
22672         * tests/test-fwrite.c: Include msvc-inval.h.
22673         (main): Invoke gl_msvc_inval_ensure_handler.
22674         * modules/fgetc-tests (Depends-on): Add msvc-inval.
22675         * modules/fputc-tests (Depends-on): Likewise.
22676         * modules/fread-tests (Depends-on): Likewise.
22677         * modules/fwrite-tests (Depends-on): Likewise.
22679 2011-09-27  Bruno Haible  <bruno@clisp.org>
22681         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
22682         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
22683         (raise): Remove older, duplicated declaration.
22684         (_gl_raise_SIGPIPE): New declaration.
22685         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
22686         (rpl_raise): Remove function.
22687         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
22688         a gnulib-defined SIGPIPE here.
22689         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
22690         'sigprocmask' has detected missing signal-blocking and the module
22691         'sigpipe' is enabled.
22692         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22694 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
22696         base64-tests: avoid memory leak
22697         * tests/test-base64.c (main): Plug memory leak.
22699         base32: new module
22700         * modules/base32: New module.
22701         * lib/base32.c: New file.
22702         * lib/base32.h: Likewise.
22703         * m4/base32.m4: Likewise.
22704         * modules/base32-tests: New test.
22705         * tests/test-base32.c: Likewise.
22706         * MODULES.html.sh (Misc): Mention it.
22708 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22710         gnulib: use more-standard license notice wording
22711         * gnulib-tool (func_emit_copyright_notice): When emitting a
22712         license notice into a file, use the standard wording as suggested
22713         by the current information for GNU maintainers, except say "file"
22714         rather than "program".  The new wording gives a license version
22715         number, which addresses an issue raised by Glenn Morris in
22716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
22717         * m4/onceonly.m4: Use that same wording here, too.
22719         dup2: minor simplification
22720         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
22721         as lib/dup2.c no longer uses 'inline'.
22723 2011-09-25  Bruno Haible  <bruno@clisp.org>
22725         strings: Fix compilation error on MSVC.
22726         * lib/strings.in.h: Include <stddef.h> for size_t.
22728 2011-09-25  Bruno Haible  <bruno@clisp.org>
22730         fflush et al.: Document limitation on MSVC.
22731         * doc/posix-functions/fflush.texi: Document possible crash in handling
22732         mode other than DEFAULT_HANDLING.
22733         * doc/posix-functions/fgetc.texi: Likewise.
22734         * doc/posix-functions/fputc.texi: Likewise.
22735         * doc/posix-functions/fread.texi: Likewise.
22736         * doc/posix-functions/fwrite.texi: Likewise.
22738 2011-09-25  Bruno Haible  <bruno@clisp.org>
22740         msvc-inval: Allow three invalid parameter handling modes.
22741         * lib/msvc-inval.h: Don't include <stdlib.h> here.
22742         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
22743         macros.
22744         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
22745         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
22746         SANE_LIBRARY_HANDLING as a no-op.
22747         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
22748         <stdlib.h>.
22749         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
22751 2011-09-25  Bruno Haible  <bruno@clisp.org>
22753         msvc-inval: Make handler multithread-safe.
22754         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
22755         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
22756         declarations.
22757         (gl_msvc_inval_current): New declaration.
22758         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
22759         Operate on the structure returned by gl_msvc_inval_current().
22760         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
22761         Remove varaiables.
22762         (tls_index, tls_initialized): New variables.
22763         (not_per_thread): New variable.
22764         (gl_msvc_inval_current): New function.
22765         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
22766         returned by gl_msvc_inval_current().
22768 2011-09-25  Bruno Haible  <bruno@clisp.org>
22770         msvc-inval: Install handler globally.
22771         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
22772         !_MSC_VER.
22773         (gl_msvc_invalid_parameter_handler): Remove declaration.
22774         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
22775         declarations.
22776         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
22777         Install the handler globally, don't uninstall it.
22778         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
22779         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
22780         currently valid, call RaiseException instead.
22781         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
22782         for !_MSC_VER.
22784 2011-09-25  Bruno Haible  <bruno@clisp.org>
22786         strerror_r-posix: Fix for MSVC 9.
22787         * lib/strerror_r.c (local_snprintf): New function.
22788         (snprintf): Define to local_snprintf, not to _snprintf.
22790 2011-09-25  Bruno Haible  <bruno@clisp.org>
22792         ftruncate: Support for MSVC 9.
22793         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
22794         (chsize_nothrow): New function.
22795         (chsize): Redefine as a macro.
22796         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
22797         * modules/ftruncate (Depends-on): Add msvc-inval.
22799 2011-09-25  Bruno Haible  <bruno@clisp.org>
22801         New module 'fstat'.
22802         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
22803         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
22804         * lib/fchdir.c (rpl_fstat): Remove function.
22805         * m4/fstat.m4: New file.
22806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
22807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
22808         declared.
22809         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
22810         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
22811         * modules/fstat: New file.
22812         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
22813         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
22814         is set.
22815         * doc/posix-functions/fstat.texi: Mention the new module and the
22816         problem on MSVC.
22817         * NEWS: Mention the change.
22818         * modules/acl (Depends-on): Add fstat.
22819         * modules/chdir-safer (Depends-on): Likewise.
22820         * modules/chown (Depends-on): Likewise.
22821         * modules/copy-file (Depends-on): Likewise.
22822         * modules/fchdir (Depends-on): Likewise.
22823         * modules/fdopendir (Depends-on): Likewise.
22824         * modules/fopen (Depends-on): Likewise.
22825         * modules/fts (Depends-on): Likewise.
22826         * modules/getcwd (Depends-on): Likewise.
22827         * modules/isapipe (Depends-on): Likewise.
22828         * modules/linkat (Depends-on): Likewise.
22829         * modules/lseek (Depends-on): Likewise.
22830         * modules/mkdir-p (Depends-on): Likewise.
22831         * modules/open (Depends-on): Likewise.
22832         * modules/openat (Depends-on): Likewise.
22833         * modules/read-file (Depends-on): Likewise.
22834         * modules/renameat (Depends-on): Likewise.
22835         * modules/utimens (Depends-on): Likewise.
22837 2011-09-25  Bruno Haible  <bruno@clisp.org>
22839         linkat: Fix compilation on MSVC 9.
22840         * lib/linkat.c: Don't include <stdint.h>.
22842 2011-09-25  Bruno Haible  <bruno@clisp.org>
22844         fclose: Support for MSVC 9.
22845         * lib/fclose.c: Include msvc-inval.h.
22846         (fclose_nothrow): New function.
22847         (rpl_fclose): Use it.
22848         * modules/fclose (Depends-on): Add msvc-inval.
22849         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
22851 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
22853         dup2: minor simplifications
22854         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
22855         that it's a performance win.
22856         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
22857         ! defined __CYGWIN__)" to "ifdef F_GETFL".
22859 2011-09-24  Jim Meyering  <meyering@redhat.com>
22861         test-futimens: avoid a warning from gcc -Wshadow
22862         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
22863         to avoid a shadowing warning.
22865 2011-09-24  Bruno Haible  <bruno@clisp.org>
22867         fdopen: Support for MSVC 9.
22868         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
22869         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
22870         * lib/fdopen.c: Include msvc-inval.h.
22871         (fdopen_nothrow): New function.
22872         (rpl_fdopen): Use it.
22873         * modules/fdopen (Depends-on): Add msvc-inval.
22874         * modules/fclose-tests (Depends-on): Add fdopen.
22875         * modules/fflush-tests (Depends-on): Likewise.
22876         * modules/fgetc-tests (Depends-on): Likewise.
22877         * modules/fputc-tests (Depends-on): Likewise.
22878         * modules/fread-tests (Depends-on): Likewise.
22879         * modules/freopen-tests (Depends-on): Likewise.
22880         * modules/fseeko-tests (Depends-on): Likewise.
22881         * modules/ftello-tests (Depends-on): Likewise.
22882         * modules/fwrite-tests  (Depends-on): Likewise.
22883         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
22885 2011-09-24  Bruno Haible  <bruno@clisp.org>
22887         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
22888         * modules/fgetc-tests (Depends-on): Add unistd.
22889         * modules/fputc-tests (Depends-on): Likewise.
22890         * modules/fread-tests (Depends-on): Likewise.
22891         * modules/fwrite-tests (Depends-on): Likewise.
22893 2011-09-24  Bruno Haible  <bruno@clisp.org>
22895         dup: Simplify autoconf test.
22896         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
22897         on gl_MSVC_INVAL's result.
22899 2011-09-24  Bruno Haible  <bruno@clisp.org>
22901         Tests for function fwrite().
22902         * modules/fwrite-tests: New file.
22903         * tests/test-fwrite.c: New file.
22904         * modules/stdio-tests (Depends-on): Add fwrite-tests.
22906         Tests for function fread().
22907         * modules/fread-tests: New file.
22908         * tests/test-fread.c: New file.
22909         * modules/stdio-tests (Depends-on): Add fread-tests.
22911         Activate fputc tests.
22912         * modules/stdio-tests (Depends-on): Add fputc-tests.
22914         Enhance fgetc, fputc tests.
22915         * tests/test-fgetc.c (main): Also test the stream's error indicator.
22916         * tests/test-fputc.c (main): Likewise.
22918 2011-09-24  Bruno Haible  <bruno@clisp.org>
22920         write: Support for MSVC 9.
22921         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
22922         is not 1.
22923         * lib/write.c (write_nothrow): New function.
22924         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
22925         not 1. Use write_nothrow.
22926         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
22927         invalid parameter handler.
22928         (gl_PREREQ_WRITE): New macro.
22929         * modules/write (Depends-on): Add msvc-inval.
22930         (configure.ac): Invoke gl_PREREQ_WRITE.
22931         * doc/posix-functions/write.texi: Mention the problem on MSVC.
22933 2011-09-24  Bruno Haible  <bruno@clisp.org>
22935         read: Fix last commit.
22936         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
22938 2011-09-24  Bruno Haible  <bruno@clisp.org>
22940         dup2: Fix last commit.
22941         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
22942         (rpl_dup2): Disable fcntl workaround on native Windows.
22944         sigprocmask: Make code safer.
22945         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
22946         section that changes macro definitions for this compilation unit.
22948 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22950         dup2: clarify by coalescing Windows-specific material
22951         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
22952         "msvc-nothrow.h"' to the Windows-specific section, so that the
22953         Emacs source need not contain these include files.
22954         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
22955         Windows-specific fixes into this function rather than just the
22956         nothrow fix, as this shortens and clarifies the code.  Always
22957         define as a function, as that's a bit cleaner than having it be
22958         sometimes a function and sometimes a macro.
22959         (rpl_dup2): Move the Windows-specific stuff out of here and into
22960         ms_windows_dup2.  Don't protect the Haiku-related fix with
22961         "#if !defined __linux__", as the same code also works around
22962         a Linux kernel bug, and it doesn't add any system calls on any
22963         platform.  Add comment about FreeBSD 6.1.
22965         sigprocmask: move #include directive
22966         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
22967         Windows-specific section, so that the Emacs source need not
22968         contain msvc-inval.h.
22970 2011-09-23  Bruno Haible  <bruno@clisp.org>
22972         read: Support for MSVC 9.
22973         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
22974         is not 1.
22975         * lib/read.c (read_nothrow): New function.
22976         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
22977         read_nothrow.
22978         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
22979         invalid parameter handler.
22980         (gl_PREREQ_READ): New macro.
22981         * modules/read (Depends-on): Add msvc-inval.
22982         (configure.ac): Invoke gl_PREREQ_READ.
22983         * doc/posix-functions/read.texi: Mention the problem on MSVC.
22985 2011-09-23  Bruno Haible  <bruno@clisp.org>
22987         close: Support for MSVC 9.
22988         * lib/close.c: Include <errno.h>, msvc-inval.h.
22989         (close_nothrow): New function.
22990         (rpl_close): Use it.
22991         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
22992         invalid parameter handler.
22993         * modules/close (Depends-on): Add msvc-inval.
22994         * modules/dup2-tests (Depends-on): Add close.
22995         * modules/dup3-tests (Depends-on): Likewise.
22996         * modules/fcntl-tests (Depends-on): Likewise.
22997         * modules/spawn-pipe-tests (Depends-on): Likewise.
22998         * modules/unistd-safer-tests (Depends-on): Likewise.
22999         * doc/posix-functions/close.texi: Mention the problem on MSVC.
23001 2011-09-23  Bruno Haible  <bruno@clisp.org>
23003         New module 'dup'.
23004         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
23005         Allow replacement.
23006         * lib/dup.c: New file.
23007         * lib/fchdir.c (rpl_dup): Remove function.
23008         * m4/dup.m4: New file.
23009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
23010         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
23011         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
23012         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
23013         * modules/dup: New file.
23014         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
23015         'dup' module is in use.
23016         * modules/fdopendir (Depends-on): Add dup.
23017         * modules/fdutimensat-tests (Depends-on): Likewise.
23018         * modules/fts (Depends-on): Likewise.
23019         * modules/futimens-tests (Depends-on): Likewise.
23020         * modules/posix_spawnp-tests (Depends-on): Likewise.
23021         * modules/unistd-safer-tests (Depends-on): Likewise.
23022         * modules/utimens-tests (Depends-on): Likewise.
23023         * doc/posix-functions/dup.texi: Mention the new module and the problem
23024         on MSVC.
23026 2011-09-23  Bruno Haible  <bruno@clisp.org>
23028         getdtablesize: Support for MSVC 9.
23029         * lib/getdtablesize.c: Include msvc-inval.h.
23030         (_setmaxstdio_nothrow): New function.
23031         (_setmaxstdio): Redefine it.
23032         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
23033         * modules/getdtablesize (Depends-on): Add msvc-inval.
23034         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
23036 2011-09-23  Bruno Haible  <bruno@clisp.org>
23038         signal-h: Rename from signal.
23039         * modules/signal-h: Renamed from modules/signal.
23040         * modules/pthread_sigmask (Depends-on): Update.
23041         * modules/raise (Depends-on): Likewise.
23042         * modules/sigaction (Depends-on): Likewise.
23043         * modules/sigpipe (Depends-on): Likewise.
23044         * modules/sigprocmask (Depends-on): Likewise.
23045         * modules/sys_select (Depends-on): Likewise.
23046         * modules/signal-h-tests: Renamed from modules/signal-tests.
23047         (Files, Depends-on, Makefile.am): Update.
23048         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
23049         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
23050         (Files, Makefile.am): Update.
23051         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
23052         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
23053         * modules/signal: New placeholder file.
23054         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
23055         * doc/posix-headers/signal.texi: Update.
23056         * NEWS: Mention the change.
23058 2011-09-23  Bruno Haible  <bruno@clisp.org>
23060         sigprocmask: Avoid crashes through signal() on MSVC 9.
23061         * lib/sigprocmask.c: Include msvc-inval.h.
23062         (signal_nothrow): New function.
23063         (signal): Redefine it.
23064         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
23065         * modules/sigprocmask (Depends-on): Add msvc-inval.
23066         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
23068 2011-09-23  Bruno Haible  <bruno@clisp.org>
23070         Tests for module 'raise'.
23071         * modules/raise-tests: New file.
23072         * tests/test-raise.c: New file.
23074         raise: Support for MSVC.
23075         * lib/signal.in.h (raise): New declaration.
23076         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
23077         for native Windows platforms.
23078         * m4/raise.m4: New file.
23079         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
23080         HAVE_RAISE, REPLACE_RAISE.
23081         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
23082         REPLACE_RAISE.
23083         * modules/raise (Status, Notice): Remove fields.
23084         (Files): Add m4/raise.m4.
23085         (Depends-on): Add signal, msvc-inval.
23086         (configure.ac): Use the common idioms.
23087         (Maintainer): Add me.
23088         * tests/test-signal-c++.cc: Check the signature of raise.
23089         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
23091 2011-09-23  Bruno Haible  <bruno@clisp.org>
23093         pipe2: Fix compilation on pre-C99 compilers.
23094         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
23096 2011-09-23  Bruno Haible  <bruno@clisp.org>
23098         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
23099         * lib/msvc-nothrow.h: New file.
23100         * lib/msvc-nothrow.c: New file.
23101         * m4/msvc-nothrow.m4: New file.
23102         * modules/msvc-nothrow: New file.
23103         * lib/dup2.c: Include msvc-nothrow.h.
23104         (rpl_dup2): No need to protect _get_osfhandle call here.
23105         * lib/accept4.c: Include msvc-nothrow.h.
23106         * lib/error.c: Likewise.
23107         * lib/fcntl.c: Likewise.
23108         * lib/lseek.c: Likewise.
23109         * lib/nonblocking.c: Likewise.
23110         * lib/poll.c: Likewise.
23111         * lib/read.c: Likewise.
23112         * lib/select.c: Likewise.
23113         * lib/sockets.h: Likewise.
23114         * lib/sockets.c: Likewise.
23115         * lib/stdio-read.c: Likewise.
23116         * lib/stdio-write.c: Likewise.
23117         * lib/write.c: Likewise.
23118         * lib/w32sock.h: Likewise.
23119         * lib/w32spawn.h: Likewise.
23120         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
23121         * lib/fsync.c: Likewise.
23122         * lib/isapipe.c: Likewise.
23123         * modules/dup2 (Depends-on): Add msvc-nothrow.
23124         * modules/accept4 (Depends-on): Likewise.
23125         * modules/error (Depends-on): Likewise.
23126         * modules/fcntl (Depends-on): Likewise.
23127         * modules/lseek (Depends-on): Likewise.
23128         * modules/nonblocking (Depends-on): Likewise.
23129         * modules/poll (Depends-on): Likewise.
23130         * modules/read (Depends-on): Likewise.
23131         * modules/select (Depends-on): Likewise.
23132         * modules/sockets (Depends-on): Likewise.
23133         * modules/sigpipe (Depends-on): Likewise.
23134         * modules/write (Depends-on): Likewise.
23135         * modules/accept (Depends-on): Likewise.
23136         * modules/bind (Depends-on): Likewise.
23137         * modules/connect (Depends-on): Likewise.
23138         * modules/gethostname (Depends-on): Likewise.
23139         * modules/getpeername (Depends-on): Likewise.
23140         * modules/getsockname (Depends-on): Likewise.
23141         * modules/getsockopt (Depends-on): Likewise.
23142         * modules/ioctl (Depends-on): Likewise.
23143         * modules/listen (Depends-on): Likewise.
23144         * modules/recv (Depends-on): Likewise.
23145         * modules/recvfrom (Depends-on): Likewise.
23146         * modules/send (Depends-on): Likewise.
23147         * modules/sendto (Depends-on): Likewise.
23148         * modules/setsockopt (Depends-on): Likewise.
23149         * modules/shutdown (Depends-on): Likewise.
23150         * modules/socket (Depends-on): Likewise.
23151         * modules/execute (Depends-on): Likewise.
23152         * modules/spawn-pipe (Depends-on): Likewise.
23153         * modules/flock (Depends-on): Likewise.
23154         * modules/fsync (Depends-on): Likewise.
23155         * modules/isapipe (Depends-on): Likewise.
23156         * tests/test-cloexec.c: Include msvc-nothrow.h.
23157         * tests/test-dup-safer.c: Likewise.
23158         * tests/test-dup2.c: Likewise.
23159         * tests/test-dup3.c: Likewise.
23160         * tests/test-fcntl.c: Likewise.
23161         * tests/test-pipe.c: Likewise.
23162         * tests/test-pipe2.c: Likewise.
23163         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
23164         * modules/unistd-safer-tests (Depends-on): Likewise.
23165         * modules/dup2-tests (Depends-on): Likewise.
23166         * modules/dup3-tests (Depends-on): Likewise.
23167         * modules/fcntl-tests (Depends-on): Likewise.
23168         * modules/pipe-posix-tests (Depends-on): Likewise.
23169         * modules/pipe2-tests (Depends-on): Likewise.
23171 2011-09-23  Bruno Haible  <bruno@clisp.org>
23173         dup2: Make code more maintainable.
23174         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
23175         (rpl_dup2): Use it.
23176         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
23177         * modules/dup2 (configure.ac): Invoke it.
23178         Reported by Paul Eggert.
23180 2011-09-23  Bruno Haible  <bruno@clisp.org>
23182         msvc-inval: Fix compilation error.
23183         * lib/msvc-inval.h: Include <excpt.h>.
23185 2011-09-23  Bruno Haible  <bruno@clisp.org>
23187         mkdir: Tweak for MSVC 9.
23188         * lib/sys_stat.in.h: Update comments.
23189         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
23191         Tests for module 'chdir'.
23192         * modules/chdir-tests: New file.
23193         * tests/test-chdir.c: New file.
23195         New module 'chdir'.
23196         * modules/chdir: New file.
23197         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
23198         (chdir): New declaration.
23199         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
23200         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
23201         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
23202         * tests/test-unistd-c++.cc: Check signature of chdir.
23203         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
23204         * modules/chdir-long (Depends-on): Add chdir.
23205         * modules/fchdir (Depends-on): Likewise.
23206         * modules/rename (Depends-on): Likewise.
23207         * modules/savewd (Depends-on): Likewise.
23209         rmdir: Support for mingw, MSVC 9.
23210         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
23211         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
23213         getcwd: Tweak for MSVC 9.
23214         * lib/unistd.in.h: Update comments.
23215         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
23217 2011-09-22  Bruno Haible  <bruno@clisp.org>
23219         strerror_r-posix: Avoid a link error on MSVC.
23220         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
23221         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
23223 2011-09-22  Bruno Haible  <bruno@clisp.org>
23225         select: Avoid link errors on MSVC.
23226         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
23227         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
23228         * modules/pselect (Link): Likewise.
23229         * NEWS: Mention the change.
23230         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
23231         test-select-stdin against $(LIB_SELECT).
23232         * modules/pselect-tests (Makefile.am): Link test-pselect against
23233         $(LIB_SELECT).
23235 2011-09-22  Bruno Haible  <bruno@clisp.org>
23237         select: Avoid compilation error on MSVC.
23238         * lib/select.c: Don't include <stdbool.h>.
23240 2011-09-21  Bruno Haible  <bruno@clisp.org>
23242         Consolidate all uses of PATH_MAX in *.m4 files.
23243         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
23244         macros.
23245         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
23246         and gl_PATHMAX_SNIPPET.
23247         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
23248         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23249         * modules/chdir-long (Files): Add m4/pathmax.m4.
23250         * modules/getcwd (Files): Likewise.
23252 2011-09-21  Bruno Haible  <bruno@clisp.org>
23254         ftruncate: Un-deprecate, concentrate on Win32 support.
23255         * modules/ftruncate (Status, Notice): Remove sections.
23256         (Depends-on): Add largefile.
23257         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
23258         non-mingw platforms.
23259         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
23260         include <io.h>.
23261         * modules/perror-tests (Depends-on): Add ftruncate.
23262         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
23263         'ftruncate' module.
23265 2011-09-21  Bruno Haible  <bruno@clisp.org>
23267         Add dependencies to new dirent related modules.
23268         * modules/opendir (Depends-on): Add closedir.
23269         * modules/getcwd (Depends-on): Add opendir, closedir.
23270         * modules/dirent-safer-tests (Depends-on): Likewise.
23271         * modules/fdopendir-tests (Depends-on): Likewise.
23272         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
23273         * modules/renameat-tests (Depends-on): Likewise.
23275 2011-09-21  Bruno Haible  <bruno@clisp.org>
23277         opendir: Avoid compilation error on mingw.
23278         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
23279         * modules/opendir (Depends-on): Add unistd.
23281 2011-09-21  Bruno Haible  <bruno@clisp.org>
23283         ftruncate tests: Avoid a test failure on mingw.
23284         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
23286 2011-09-21  Bruno Haible  <bruno@clisp.org>
23288         select tests: Avoid test failures on OSF/1 5.1 and mingw.
23289         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
23290         native Windows.
23292 2011-09-21  Bruno Haible  <bruno@clisp.org>
23294         New module 'fdopen'.
23295         * lib/stdio.in.h (fdopen): New declaration.
23296         * lib/fdopen.c: New file.
23297         * m4/fdopen.m4: New file.
23298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
23299         REPLACE_FDOPEN.
23300         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
23301         REPLACE_FDOPEN.
23302         * modules/fdopen: New file.
23303         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
23304         * tests/test-stdio-c++.cc: Check signature of fdopen.
23305         * doc/posix-functions/fdopen.texi: Mention the new module.
23307 2011-09-21  Bruno Haible  <bruno@clisp.org>
23309         unlockpt tests: Avoid test failure on NetBSD 5.1.
23310         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
23311         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
23313 2011-09-21  Bruno Haible  <bruno@clisp.org>
23315         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
23316         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
23317         * tests/test-getlogin_r.c (main): Likewise.
23319 2011-09-20  Bruno Haible  <bruno@clisp.org>
23321         time tests: Don't require pid_t.
23322         * doc/posix-headers/time.texi: Revert last change.
23323         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
23324         * tests/test-time.c: Comment out the check for pid_t.
23326 2011-09-20  Bruno Haible  <bruno@clisp.org>
23328         fsync tests: Avoid a test failure on mingw.
23329         * tests/test-fsync.c (main): Allow a failure with EIO.
23331 2011-09-20  Bruno Haible  <bruno@clisp.org>
23333         euidaccess: Update comments.
23334         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
23336 2011-09-20  Bruno Haible  <bruno@clisp.org>
23338         Ensure EBADF returns for socket functions on mingw.
23339         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
23340         descriptor is invalid.
23341         * lib/bind.c (rpl_bind): Likewise.
23342         * lib/connect.c (rpl_connect): Likewise.
23343         * lib/getpeername.c (rpl_getpeername): Likewise.
23344         * lib/getsockname.c (rpl_getsockname): Likewise.
23345         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23346         * lib/listen.c (rpl_listen): Likewise.
23347         * lib/recv.c (rpl_recv): Likewise.
23348         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23349         * lib/send.c (rpl_send): Likewise.
23350         * lib/sendto.c (rpl_sendto): Likewise.
23351         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23352         * lib/shutdown.c (rpl_shutdown): Likewise.
23354 2011-09-20  Bruno Haible  <bruno@clisp.org>
23356         select tests: EBADF tests.
23357         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
23358         test_bad_fd): New functions.
23359         (test_function): Invoke also test_bad_fd.
23361 2011-09-20  Bruno Haible  <bruno@clisp.org>
23363         Tests for module 'posix_spawn_file_actions_addopen.
23364         * modules/posix_spawn_file_actions_addopen-tests: New file.
23365         * tests/test-posix_spawn_file_actions_addopen.c: New file.
23367         Tests for module 'posix_spawn_file_actions_adddup2'.
23368         * modules/posix_spawn_file_actions_adddup2-tests: New file.
23369         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
23371         Tests for module 'posix_spawn_file_actions_addclose'.
23372         * modules/posix_spawn_file_actions_addclose-tests: New file.
23373         * tests/test-posix_spawn_file_actions_addclose.c: New file.
23375 2011-09-20  Bruno Haible  <bruno@clisp.org>
23377         Tests for module 'unlockpt'.
23378         * modules/unlockpt-tests: New file.
23379         * tests/test-unlockpt.c: New file.
23380         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
23382         Tests for module 'grantpt'.
23383         * modules/grantpt-tests: New file.
23384         * tests/test-grantpt.c: New file.
23385         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
23387 2011-09-20  Bruno Haible  <bruno@clisp.org>
23389         freopen tests: EBADF tests.
23390         * tests/test-freopen.c: Include errno.h, unistd.h.
23391         (main): Add tests for EBADF, commented out for the moment.
23393         fclose tests: EBADF tests.
23394         * tests/test-fclose.c (main): Add tests for EBADF.
23396         fflush tests: EBADF tests.
23397         * tests/test-fflush.c: Include errno.h, macros.h.
23398         (main): Add tests for EBADF.
23400         ftello tests: EBADF tests.
23401         * tests/test-ftello4.sh: New file.
23402         * tests/test-ftello4.c: New file.
23403         * modules/ftello-tests (Files): Add them.
23404         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
23406         fseeko tests: EBADF tests.
23407         * tests/test-fseeko4.sh: New file.
23408         * tests/test-fseeko4.c: New file.
23409         * modules/fseeko-tests (Files): Add them.
23410         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
23412         Tests for function fputc().
23413         * modules/fputc-tests: New file.
23414         * tests/test-fputc.c: New file.
23415         * modules/stdio-tests (Depends-on): Add fputc-tests.
23417         Tests for function fgetc().
23418         * modules/fgetc-tests: New file.
23419         * tests/test-fgetc.c: New file.
23420         * modules/stdio-tests (Depends-on): Add fgetc-tests.
23422         Tests for function fdopen().
23423         * modules/fdopen-tests: New file.
23424         * tests/test-fdopen.c: New file.
23425         * modules/stdio-tests (Depends-on): Add fdopen-tests.
23427         Tests for module 'vdprintf'.
23428         * modules/vdprintf-tests: New file.
23429         * tests/test-vdprintf.c: New file.
23431         Tests for module 'dprintf'.
23432         * modules/dprintf-tests: New file.
23433         * tests/test-dprintf.c: New file.
23435 2011-09-20  Bruno Haible  <bruno@clisp.org>
23437         Tests for module 'ioctl'.
23438         * modules/ioctl-tests: New file.
23439         * tests/test-ioctl.c: New file.
23441 2011-09-20  Bruno Haible  <bruno@clisp.org>
23443         fcntl tests: EBADF tests.
23444         * tests/test-fcntl.c (main): Add more tests for EBADF.
23446 2011-09-20  Bruno Haible  <bruno@clisp.org>
23448         utimensat tests: EBADF tests.
23449         * tests/test-utimensat.c (main): Add tests for EBADF.
23451         renameat tests: EBADF tests.
23452         * tests/test-renameat.c (main): Add tests for EBADF.
23454         mkfifoat tests: EBADF tests.
23455         * tests/test-mkfifoat.c (main): Add tests for EBADF.
23457         readlinkat tests: EBADF tests.
23458         * tests/test-readlinkat.c (main): Add tests for EBADF.
23460         symlinkat tests: EBADF tests.
23461         * tests/test-symlinkat.c (main): Add tests for EBADF.
23463         linkat tests: EBADF tests.
23464         * tests/test-linkat.c (main): Add tests for EBADF.
23466         Tests for module 'faccessat'.
23467         * modules/faccessat-tests: New file.
23468         * tests/test-faccessat.c: New file.
23470         fdopendir tests: EBADF tests.
23471         * tests/test-fdopendir.c (main): Add more tests for EBADF.
23473         openat tests: EBADF tests.
23474         * tests/test-fchownat.c (main): Add tests for EBADF.
23475         * tests/test-fstatat.c (main): Likewise.
23476         * tests/test-mkdirat.c (main): Likewise.
23477         * tests/test-openat.c (main): Likewise.
23478         * tests/test-unlinkat.c (main): Likewise.
23479         * tests/test-fchmodat.c: New file.
23480         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
23481         (Makefile.am): Also run 'test-fchmodat'.
23483 2011-09-20  Bruno Haible  <bruno@clisp.org>
23485         utimens, futimens, fdutimensat tests: EBADF tests.
23486         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
23488         Tests for function fstat().
23489         * modules/fstat-tests: New file.
23490         * tests/test-fstat.c: New file.
23491         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
23493 2011-09-20  Bruno Haible  <bruno@clisp.org>
23495         test-ttyname_r tests: EBADF tests.
23496         * tests/test-ttyname_r.c (main): Add tests for EBADF.
23498         Tests for module 'isatty'.
23499         * modules/isatty-tests: New file.
23500         * tests/test-isatty.c: New file.
23502         Tests for module 'write'.
23503         * modules/write-tests: New file.
23504         * tests/test-write.c: New file.
23506         Tests for module 'read'.
23507         * modules/read-tests: New file.
23508         * tests/test-read.c: New file.
23510         pwrite tests: EBADF tests.
23511         * tests/test-pwrite.c (main): Add tests for EBADF.
23513         pread tests: EBADF tests.
23514         * tests/test-pread.c (main): Add tests for EBADF.
23516         lseek tests: EBADF tests.
23517         * tests/test-lseek.c (main): Add more tests for EBADF.
23519         Tests for module 'ftruncate'.
23520         * modules/ftruncate-tests: New file.
23521         * tests/test-ftruncate.sh: New file.
23522         * tests/test-ftruncate.c: New file.
23524         fsync tests: EBADF tests.
23525         * tests/test-fsync.c (main): Add more tests for EBADF.
23527         fdatasync tests: EBADF tests.
23528         * tests/test-fdatasync.c (main): Add more tests for EBADF.
23530         Tests for module 'fchown'.
23531         * modules/fchown-tests: New file.
23532         * tests/test-fchown.c: New file.
23534         Tests for module 'fchmod'.
23535         * modules/fchmod-tests: New file.
23536         * tests/test-fchmod.c: New file.
23538         fchdir tests: EBADF tests.
23539         * tests/test-fchdir.c (main): Add more tests for EBADF.
23541         dup2 tests: EBADF tests.
23542         * tests/test-dup2.c (main): Add more tests for EBADF.
23544         Tests for module 'dup'.
23545         * modules/dup-tests: New file.
23546         * tests/test-dup.c: New file.
23548         Tests for module 'close'.
23549         * modules/close-tests: New file.
23550         * tests/test-close.c: New file.
23552 2011-09-20  Bruno Haible  <bruno@clisp.org>
23554         Tests for module 'shutdown'.
23555         * modules/shutdown-tests: New file.
23556         * tests/test-shutdown.c: New file.
23558         Tests for module 'setsockopt'.
23559         * modules/setsockopt-tests: New file.
23560         * tests/test-setsockopt.c: New file.
23562         Tests for module 'sendto'.
23563         * modules/sendto-tests: New file.
23564         * tests/test-sendto.c: New file.
23566         Tests for module 'send'.
23567         * modules/send-tests: New file.
23568         * tests/test-send.c: New file.
23570         Tests for module 'recvfrom'.
23571         * modules/recvfrom-tests: New file.
23572         * tests/test-recvfrom.c: New file.
23574         Tests for module 'recv'.
23575         * modules/recv-tests: New file.
23576         * tests/test-recv.c: New file.
23578         Tests for module 'listen'.
23579         * modules/listen-tests: New file.
23580         * tests/test-listen.c: New file.
23582         Tests for module 'getsockopt'.
23583         * modules/getsockopt-tests: New file.
23584         * tests/test-getsockopt.c: New file.
23586         Tests for module 'getsockname'.
23587         * modules/getsockname-tests: New file.
23588         * tests/test-getsockname.c: New file.
23590         Tests for module 'getpeername'.
23591         * modules/getpeername-tests: New file.
23592         * tests/test-getpeername.c: New file.
23594         Tests for module 'connect'.
23595         * modules/connect-tests: New file.
23596         * tests/test-connect.c: New file.
23598         Tests for module 'bind'.
23599         * modules/bind-tests: New file.
23600         * tests/test-bind.c: New file.
23602         accept4 tests: Fix for native Windows.
23603         * tests/test-accept4.c: Include sockets.h.
23604         (main): Invoke gl_sockets_startup.
23605         * modules/accept4-tests (Depends-on): Add sockets.
23607         accept tests: Fix for native Windows.
23608         * tests/test-accept.c: Include sockets.h.
23609         (main): Invoke gl_sockets_startup.
23610         * modules/accept-tests (Depends-on): Add sockets.
23612 2011-09-19  Bruno Haible  <bruno@clisp.org>
23614         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
23615         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
23616         do...while(0).
23617         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
23618         Suggested by Paul Eggert.
23620 2011-09-19  Bruno Haible  <bruno@clisp.org>
23622         sched: Ensure pid_t is defined.
23623         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
23624         not define pid_t.
23625         * lib/sched.in.h: Include <sys/types.h>.
23626         * doc/posix-headers/sched.texi: Mention the pid_t problem.
23627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23629 2011-09-19  Bruno Haible  <bruno@clisp.org>
23631         msvc-inval: Ensure the entire expansion is a single statement.
23632         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
23633         of braces.
23635 2011-09-19  Jim Meyering  <meyering@redhat.com>
23637         tests: use printf, not echo in init.sh's warn_ function
23638         * tests/init.sh (warn_): Use printf, not echo.  The latter would
23639         misbehave when given strings containing a backslash or starting
23640         with e.g., -n.  James Youngman suggested setting IFS.
23642 2011-09-19  Eric Blake  <eblake@redhat.com>
23644         futimens: enhance test
23645         * tests/test-futimens.h (test_futimens): Also check for EBADF on
23646         closed non-negative fd.
23648         date: accept 'hence' as opposite of 'ago'
23649         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
23650         * tests/test-parse-datetime.c (main): Enhance test.
23651         Suggested by Jesse Wilson.
23653 2011-09-19  Jim Meyering  <meyering@redhat.com>
23655         getcwd: don't fail in a deep directory on a system without openat
23656         Before this change, getcwd would fail when called from a directory
23657         of depth PATH_MAX / 3 or greater.  That was due to the fact that
23658         the non-openat implementation used "..", "../..", "../../..", etc.
23659         to access ancestor directories.  With too many, that string would
23660         be longer than PATH_MAX.
23661         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
23662         using gnulib's openat replacement.
23663         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
23664         we're using the replacement function.
23666 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
23668         maint.mk: avoid warnings from perl about missing files
23669         * top/maint.mk (def_sym_regex): Ignore files listed in
23670         $(gl_other_headers_) that do not exist, say because a project
23671         does not use a corresponding module.
23673 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23675         stat: use pathmax.h only if needed
23676         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
23677         This is better for Emacs, which does not have a mingw port and
23678         therefore can avoid the pathmax module.
23680         utimens: remove dependency on dup2
23681         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
23682         to work around the Linux kernel bug.
23683         * modules/utimens (Depends-on): Remove dup2.
23685 2011-09-18  Bruno Haible  <bruno@clisp.org>
23687         inet_ntop, inet_pton: Look for it also in libresolv.
23688         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
23689         libnsl, search for it in libresolv.
23690         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
23691         Needed on Solaris 7.
23693 2011-09-18  Bruno Haible  <bruno@clisp.org>
23695         accept, accept4 tests: Avoid link error on Solaris.
23696         * modules/accept-tests (Makefile.am): Link test-accept against
23697         $(LIBSOCKET).
23698         * modules/accept4-tests (Makefile.am): Link test-accept4 against
23699         $(LIBSOCKET).
23701         accept4: Avoid link error on Solaris.
23702         * modules/accept4 (Link): New section.
23704         socket functions: Avoid link errors on Solaris.
23705         * modules/accept (Depends-on): Add socketlib.
23706         (Link): New section.
23707         * modules/bind (Depends-on): Add socketlib.
23708         (Link): New section.
23709         * modules/connect (Depends-on): Add socketlib.
23710         (Link): New section.
23711         * modules/getpeername (Depends-on): Add socketlib.
23712         (Link): New section.
23713         * modules/getsockname (Depends-on): Add socketlib.
23714         (Link): New section.
23715         * modules/getsockopt (Depends-on): Add socketlib.
23716         (Link): New section.
23717         * modules/listen (Depends-on): Add socketlib.
23718         (Link): New section.
23719         * modules/recv (Depends-on): Add socketlib.
23720         (Link): New section.
23721         * modules/recvfrom (Depends-on): Add socketlib.
23722         (Link): New section.
23723         * modules/send (Depends-on): Add socketlib.
23724         (Link): New section.
23725         * modules/sendto (Depends-on): Add socketlib.
23726         (Link): New section.
23727         * modules/setsockopt (Depends-on): Add socketlib.
23728         (Link): New section.
23729         * modules/shutdown (Depends-on): Add socketlib.
23730         (Link): New section.
23731         * modules/socket (Depends-on): Add socketlib.
23732         (Link): New section.
23734 2011-09-18  Bruno Haible  <bruno@clisp.org>
23736         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
23737         * tests/test-ptsname.c (main): Terminate the test if it takes longer
23738         than 5 seconds.
23739         * modules/ptsname-tests (configure.ac): Test for alarm.
23741 2011-09-18  Bruno Haible  <bruno@clisp.org>
23743         posix_spawn_file_actions_add*: Fix module dependencies.
23744         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
23745         posix_spawn_file_actions_init.
23746         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
23747         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
23749 2011-09-18  Bruno Haible  <bruno@clisp.org>
23751         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
23752         * tests/test-rename.h (test_rename): Allow error code EEXIST.
23753         * tests/test-renameat.c (main): Likewise.
23755 2011-09-18  Bruno Haible  <bruno@clisp.org>
23757         Tests for module 'accept4'.
23758         * modules/accept4-tests: New file.
23759         * tests/test-accept4.c: New file.
23761 2011-09-18  Bruno Haible  <bruno@clisp.org>
23763         Tests for module 'accept'.
23764         * modules/accept-tests: New file.
23765         * tests/test-accept.c: New file.
23767 2011-09-18  Bruno Haible  <bruno@clisp.org>
23769         dup2: Support for MSVC.
23770         * lib/dup2.c: Include msvc-inval.h.
23771         (rpl_dup2): Handle invalid parameter notifications during dup2 and
23772         _get_osfhandle calls.
23773         * modules/dup2 (Depends-on): Add msvc-inval.
23774         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
23776         New module 'msvc-inval'.
23777         * lib/msvc-inval.h: New file.
23778         * lib/msvc-inval.c: New file.
23779         * m4/msvc-inval.m4: New file.
23780         * modules/msvc-inval: New file.
23782 2011-09-17  Bruno Haible  <bruno@clisp.org>
23784         Tests for module 'pclose'.
23785         * modules/pclose-tests: New file.
23787         New module 'pclose'.
23788         * lib/stdio.in.h (pclose): New declaration.
23789         * lib/pclose.c: New file.
23790         * m4/pclose.m4: New file.
23791         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
23792         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
23793         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
23794         * modules/pclose: New file.
23795         * modules/popen-tests (Depends-on): Add pclose.
23796         * modules/popen-safer-tests (Depends-on): Likewise.
23797         * doc/posix-functions/pclose.texi: Mention the new module.
23799 2011-09-17  Bruno Haible  <bruno@clisp.org>
23801         popen: Support for MSVC.
23802         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
23803         * lib/popen.c (popen): Provide alternate definition for native Windows.
23804         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
23805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
23806         * modules/popen (Depends-on, configure.ac): Update condition.
23807         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
23808         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
23809         fixed.
23811 2011-09-17  Bruno Haible  <bruno@clisp.org>
23813         isnanl, isnand, isnanf: Work around MSVC bug.
23814         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
23816 2011-09-17  Bruno Haible  <bruno@clisp.org>
23818         sys_socket tests: Fix recent mistake.
23819         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
23821 2011-09-17  Bruno Haible  <bruno@clisp.org>
23823         putenv: Support for MSVC.
23824         * modules/putenv (Depends-on): Add environ.
23825         * lib/putenv.c (environ): Disable declaration.
23826         * lib/unistd.in.h: Update comment.
23828 2011-09-17  Bruno Haible  <bruno@clisp.org>
23830         math: Avoid macro redefinition warnings on MSVC.
23831         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
23832         Undefine before redefining.
23834 2011-09-17  Bruno Haible  <bruno@clisp.org>
23836         doc: Mention functions which are declared as macros.
23837         * doc/posix-functions/*[fl].texi: Mention that some functions are
23838         defined as macros with arguments only.
23840 2011-09-17  Bruno Haible  <bruno@clisp.org>
23842         Add dependencies to new dirent related modules.
23843         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
23844         * modules/fts (Depends-on): Likewise.
23845         * modules/glob (Depends-on): Likewise.
23846         * modules/savedir (Depends-on): Likewise.
23847         * modules/scandir (Depends-on): Likewise.
23848         * modules/dirent-safer (Depends-on): Add opendir, closedir.
23849         * modules/fdopendir (Depends-on): Add opendir.
23851 2011-09-17  Bruno Haible  <bruno@clisp.org>
23853         inet_pton: Support for MSVC on Windows Vista or newer.
23854         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
23855         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
23856         HAVE_DECL_INET_PTON is defined.
23857         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
23858         On platforms with <winsock2.h>, test whether inet_pton is declared in
23859         <ws2tcpip.h>. If so, arrange to replace it.
23860         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
23861         REPLACE_INET_PTON.
23862         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
23863         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
23864         (Depends-on, configure.ac): Update condition.
23865         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
23867 2011-09-17  Bruno Haible  <bruno@clisp.org>
23869         inet_ntop: Support for MSVC on Windows Vista or newer.
23870         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
23871         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
23872         HAVE_DECL_INET_NTOP is defined.
23873         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
23874         On platforms with <winsock2.h>, test whether inet_ntop is declared in
23875         <ws2tcpip.h>. If so, arrange to replace it.
23876         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
23877         REPLACE_INET_NTOP.
23878         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
23879         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
23880         (Depends-on, configure.ac): Update condition.
23881         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
23883 2011-09-16  Eric Blake  <eblake@redhat.com>
23885         test-fsync: yet another enhancement
23886         * tests/test-fsync.c (main): Also test behavior on read-only text
23887         file.
23889 2011-09-16  Bruno Haible  <bruno@clisp.org>
23891         Enhance fsync, fdatasync tests.
23892         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
23893         * tests/test-fdatasync.c (main): Likewise.
23895 2011-09-16  Bruno Haible  <bruno@clisp.org>
23897         Support for MSVC compiler: Ensure mode_t gets defined.
23898         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
23899         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23901         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
23902         * tests/test-fcntl-h.c: Check that mode_t is defined.
23903         * tests/test-sys_stat.c: Likewise.
23904         * tests/test-sys_types.c: Likewise.
23905         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
23906         * doc/posix-headers/sys_stat.texi: Likewise.
23907         * doc/posix-headers/sys_types.texi: Likewise.
23909 2011-09-16  Bruno Haible  <bruno@clisp.org>
23911         sys_stat: Support for MSVC.
23912         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
23913         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
23914         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
23915         MSVC.
23917 2011-09-16  Bruno Haible  <bruno@clisp.org>
23919         Support for MSVC compiler: Ensure off_t gets defined.
23920         * lib/unistd.in.h: Include <sys/types.h>.
23921         * tests/test-fcntl-h.c: Check that off_t is defined.
23922         * tests/test-sys_stat.c: Likewise.
23923         * tests/test-sys_types.c: Likewise.
23925 2011-09-16  Eric Blake  <eblake@redhat.com>
23927         fdatasync: port to Solaris
23928         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
23929         * modules/fdatasync (Link): Document it.
23930         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
23932         fdatasync: port to MacOS X 10.7
23933         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
23934         declared.
23935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
23936         * modules/unistd (Makefile.am): Substitute it.
23937         * lib/unistd.in.h (fdatasync): Declare on MacOS.
23938         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
23940         fdatasync: minor improvements
23941         * modules/fdatasync (Depends-on): Add condition for fsync.
23942         * lib/fdatasync.c (fdatasync): Add comment.
23943         * tests/test-unistd-c++.cc: Test fdatasync.
23945         unistd: update refs to newer POSIX
23946         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
23947         Suggested by Bruno Haible.
23949         fdatasync: new module
23950         * modules/fsync (Description): Document difference to fdatasync.
23951         * modules/fdatasync: New module.
23952         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
23953         * lib/fdatasync.c (fdatasync): Likewise.
23954         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
23955         defaults.
23956         * modules/unistd (Makefile.am): Set witnesses.
23957         * lib/unistd.in.h (fdatasync): Declare.
23958         * MODULES.html.sh: Document it.
23959         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
23960         * modules/fdatasync-tests: New test.
23961         * tests/test-fdatasync.c: Likewise.
23963 2011-09-16  Eric Blake  <eblake@redhat.com>
23965         test-fsync: enhance tests
23966         * modules/fsync-tests (Depends-on): Add errno, for mingw.
23967         * tests/test-fsync.c (main): Enhance test.
23969 2011-09-15  Bruno Haible  <bruno@clisp.org>
23971         Support for MSVC compiler: Ensure ssize_t gets defined.
23972         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
23973         * doc/posix-headers/stdio.texi: Likewise.
23974         * modules/stdio (Depends-on): Add ssize_t.
23975         * modules/sys_socket (Depends-on): Likewise.
23976         * modules/sys_types (Depends-on): Likewise.
23977         * modules/sys_uio (Depends-on): Likewise.
23978         * modules/unistd (Depends-on): Likewise.
23979         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
23980         * tests/test-sys_types.c: Check that ssize_t is defined.
23982 2011-09-14  Bruno Haible  <bruno@clisp.org>
23984         Avoid using #, the m4 comment starter character, near brackets.
23985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
23986         delimiter character in sed expressions.
23987         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
23988         Suggested by Eric Blake.
23990         Properly quote AC_CHECK_DECLS' 4th argument.
23991         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
23992         argument.
23993         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23994         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23995         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23996         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23997         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23998         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
23999         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
24000         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
24001         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
24002         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24003         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
24004         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
24005         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24006         * m4/isinf.m4 (gl_ISINF): Likewise.
24007         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24008         * m4/readutmp.m4 (gl_READUTMP): Likewise.
24009         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24010         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24011         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24012         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
24013         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
24014         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24015         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
24016         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
24017         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24018         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
24020         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24022         Reported by Eric Blake.
24024         Properly quote AC_CHECK_DECL's 4th argument.
24025         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
24026         argument.
24027         * m4/argp.m4 (gl_ARGP): Likewise.
24028         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
24029         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24030         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
24031         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
24032         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
24033         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
24034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
24035         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
24036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24037         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
24038         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
24039         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
24040         Reported by Eric Blake.
24042 2011-09-14  Eric Blake  <eblake@redhat.com>
24044         opendir: avoid compile warning
24045         * lib/opendir.c (includes): Always include errno.h.
24046         Reported by Tatsuro MATSUOKA.
24048 2011-09-14  Jim Meyering  <meyering@redhat.com>
24050         maint.mk: sc_tight_scope: propagate failure from sub-make
24051         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
24052         Reported by Martin von Gagern.
24054 2011-09-13  Bruno Haible  <bruno@clisp.org>
24056         tempname: Support for MSVC.
24057         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
24058         MSVC.
24059         * modules/tempname (Depends-on): Add fcntl-h.
24061 2011-09-13  Bruno Haible  <bruno@clisp.org>
24063         sys_time: Support for MSVC.
24064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
24065         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
24066         include <winsock2.h>.
24067         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
24068         function declarations that collide with POSIX.
24069         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
24070         (Makefile.am): Substitute HAVE_WINSOCK2_H.
24072 2011-09-13  Bruno Haible  <bruno@clisp.org>
24074         stat: Support for MSVC.
24075         * lib/stat.c: Include pathmax.h.
24076         * modules/stat (Depends-on): Add pathmax.
24078         pathmax: Support for native Windows.
24079         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
24081 2011-09-12  Bruno Haible  <bruno@clisp.org>
24083         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
24084         * lib/dirent.in.h (struct dirent): New type.
24085         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
24086         DT_WHT): New macros.
24087         (DIR): New type.
24088         (opendir, closedir): Declare only if the module 'opendir' is enabled.
24089         (readdir, rewinddir): New declarations.
24090         * lib/dirent-private.h: New file.
24091         * lib/opendir.c: New file.
24092         * lib/readdir.c: New file.
24093         * lib/rewinddir.c: New file.
24094         * lib/closedir.c: New file.
24095         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
24096         * m4/opendir.m4: New file.
24097         * m4/readdir.m4: New file.
24098         * m4/rewinddir.m4: New file.
24099         * m4/closedir.m4: New file.
24100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
24101         REPLACE_CLOSEDIR here.
24102         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
24103         readdir, rewinddir are declared.
24104         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
24105         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
24106         HAVE_REWINDDIR, HAVE_CLOSEDIR.
24107         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
24108         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
24109         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
24110         * modules/opendir: New file.
24111         * modules/readdir: New file.
24112         * modules/rewinddir: New file.
24113         * modules/closedir: New file.
24114         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
24115         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
24116         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
24117         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
24118         * NEWS: Mention the 'fchdir' change.
24120 2011-09-11  Bruno Haible  <bruno@clisp.org>
24122         asm-underscore.m4: Support for MSVC.
24123         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
24124         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
24126 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
24128         Doc about crypt functions.
24129         * doc/posix-functions/crypt.texi: Expand range of glibc versions
24130         needing for _GNU_SOURCE to get crypt.
24131         * doc/posix-functions/encrypt.texi: Likewise.
24132         * doc/posix-functions/setkey.texi: Likewise.
24134 2011-09-11  Bruno Haible  <bruno@clisp.org>
24136         doc: Update regarding MSVC 9.
24137         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
24138         tested".
24139         * doc/posix-functions/*.texi: Update with info about MSVC 9.
24140         * doc/posix-headers/*.texi: Likewise.
24141         * doc/pastposix-functions/*.texi: Likewise.
24142         * doc/glibc-functions/*.texi: Likewise.
24143         * doc/glibc-headers/*.texi: Likewise.
24145 2011-09-11  Bruno Haible  <bruno@clisp.org>
24147         unistd et al.: Don't assume <unistd.h> exists.
24148         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
24149         does not exist.
24150         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
24151         exist. But include <stdlib.h>.
24152         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
24153         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
24154         symlink() does not exist.
24155         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
24156         include <io.h> instead.
24157         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
24158         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
24159         include <direct.h> instead.
24160         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
24161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24162         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
24163         <io.h> instead.
24164         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
24165         correctly if the system does not have hard links.
24166         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
24167         <direct.h> instead.
24168         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
24169         it when looking for function declarations.
24170         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
24171         <direct.h> and <io.h> instead.
24172         * doc/posix-headers/unistd.texi: More details about MSVC problem.
24174 2011-09-11  Bruno Haible  <bruno@clisp.org>
24176         strcase: Support for MSVC.
24177         * modules/strcase (Status, Notice): Remove obsoletion mark.
24178         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
24179         * doc/posix-functions/strncasecmp.texi: Likewise.
24181         strings: Don't assume <strings.h> exists.
24182         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
24183         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
24184         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
24185         * doc/posix-headers/strings.texi: Mention the MSVC problem.
24187 2011-09-11  Bruno Haible  <bruno@clisp.org>
24189         dirent: Don't assume <dirent.h> exists.
24190         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
24191         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
24192         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
24193         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
24195 2011-09-11  Bruno Haible  <bruno@clisp.org>
24197         Fix wint_t on MSVC.
24198         * lib/wchar.in.h (wint_t): On MSVC, override it.
24199         * lib/wctype.in.h (wint_t): Likewise.
24200         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
24201         MSVC.
24202         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
24203         * doc/posix-headers/wctype.texi: Likewise.
24205 2011-09-11  Bruno Haible  <bruno@clisp.org>
24207         sys_types: Fix typo.
24208         * lib/sys_types.in.h: Fix typo in comment.
24209         Reported by Paul Eggert.
24211         Support for MSVC compiler: Ensure size_t gets defined.
24212         * modules/strings (Depends-on): Add 'sys_types'.
24213         * modules/sys_uio (Depends-on): Likewise.
24214         * lib/sys_uio.in.h: Update comment.
24216         C++ tests for module 'sys_types'.
24217         * modules/sys_types-c++-tests: New file.
24218         * tests/test-sys_types-c++.cc: New file.
24220         Tests for module 'sys_types'.
24221         * modules/sys_types-tests: New file.
24222         * tests/test-sys_types.c: New file.
24224         New module 'sys_types'.
24225         * lib/sys_types.in.h: New file.
24226         * m4/sys_types_h.m4: New file.
24227         * modules/sys_types: New file.
24228         * doc/posix-headers/sys_types.texi: Mention the new module and the
24229         size_t problem on MSVC 9.
24231 2011-09-11  Bruno Haible  <bruno@clisp.org>
24233         Support for MSVC compiler: Avoid division by a literal 0.
24234         * lib/math.in.h (NAN): Define through a function call also on MSVC.
24235         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
24236         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
24237         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
24238         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
24239         * tests/infinity.h: New file.
24240         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
24241         on MSVC.
24242         * tests/test-ceilf1.c: Include infinity.h.
24243         (main): Use Infinityf.
24244         * tests/test-ceil1.c: Include infinity.h.
24245         (main): Use Infinityd.
24246         * tests/test-ceill.c: Include infinity.h.
24247         (main): Use Infinityl.
24248         * tests/test-dprintf-posix.c: Include infinity.h.
24249         (test_function): Use Infinityd.
24250         * tests/test-floorf1.c: Include infinity.h.
24251         (main): Use Infinityf.
24252         * tests/test-floor1.c: Include infinity.h.
24253         (main): Use Infinityd.
24254         * tests/test-floorl.c: Include infinity.h.
24255         (main): Use Infinityl.
24256         * tests/test-fprintf-posix.c: Include infinity.h.
24257         (test_function): Use Infinityd.
24258         * tests/test-frexp.c: Include infinity.h.
24259         (main): Use Infinityd.
24260         * tests/test-frexpl.c: Include infinity.h.
24261         (main): Use Infinityl.
24262         * tests/test-isfinite.c: Include infinity.h.
24263         (test_isfinitef): Use Infinityf.
24264         (test_isfinited): Use Infinityd.
24265         (test_isfinitel): Use Infinityl.
24266         * tests/test-isinf.c: Include infinity.h.
24267         (test_isinff): Use Infinityf.
24268         (test_isinfd): Use Infinityd.
24269         (test_isinfl): Use Infinityl.
24270         * tests/test-isnan.c: Include infinity.h.
24271         (test_float): Use Infinityf.
24272         (test_double): Use Infinityd.
24273         (test_long_double): Use Infinityl.
24274         * tests/test-isnanf.h: Include infinity.h.
24275         (main): Use Infinityf.
24276         * tests/test-isnand.h: Include infinity.h.
24277         (main): Use Infinityd.
24278         * tests/test-isnanl.h: Include infinity.h.
24279         (main): Use Infinityl.
24280         * tests/test-ldexpl.c: Include infinity.h.
24281         (main): Use Infinityl.
24282         * tests/test-printf-posix.h: Include infinity.h.
24283         (test_function): Use Infinityd.
24284         * tests/test-roundf1.c: Include infinity.h.
24285         (main): Use Infinityf.
24286         * tests/test-round1.c: Include infinity.h.
24287         (main): Use Infinityd.
24288         * tests/test-roundl.c: Include infinity.h.
24289         (main): Use Infinityl.
24290         * tests/test-signbit.c: Include infinity.h.
24291         (test_signbitf): Use Infinityf.
24292         (test_signbitd): Use Infinityd.
24293         (test_signbitl): Use Infinityl.
24294         * tests/test-snprintf-posix.h: Include infinity.h.
24295         (test_function): Use Infinityd, Infinityl.
24296         * tests/test-sprintf-posix.h: Include infinity.h.
24297         (test_function): Use Infinityd, Infinityl.
24298         * tests/test-truncf1.c: Include infinity.h.
24299         (main): Use Infinityf.
24300         * tests/test-trunc1.c: Include infinity.h.
24301         (main): Use Infinityd.
24302         * tests/test-truncl.c: Include infinity.h.
24303         (main): Use Infinityl.
24304         * tests/test-vasnprintf-posix.c: Include infinity.h.
24305         (test_function): Use Infinityd, Infinityl.
24306         * tests/test-vasprintf-posix.c: Include infinity.h.
24307         (test_function): Use Infinityd, Infinityl.
24308         * modules/ceilf-tests (Files): Add tests/infinity.h.
24309         * modules/ceil-tests (Files): Likewise.
24310         * modules/ceill-tests (Files): Likewise.
24311         * modules/dprintf-posix-tests (Files): Likewise.
24312         * modules/floorf-tests (Files): Likewise.
24313         * modules/floor-tests (Files): Likewise.
24314         * modules/floorl-tests (Files): Likewise.
24315         * modules/fprintf-posix-tests (Files): Likewise.
24316         * modules/frexp-tests (Files): Likewise.
24317         * modules/frexp-nolibm-tests (Files): Likewise.
24318         * modules/frexpl-tests (Files): Likewise.
24319         * modules/frexpl-nolibm-tests (Files): Likewise.
24320         * modules/isfinite-tests (Files): Likewise.
24321         * modules/isinf-tests (Files): Likewise.
24322         * modules/isnan-tests (Files): Likewise.
24323         * modules/isnanf-tests (Files): Likewise.
24324         * modules/isnanf-nolibm-tests (Files): Likewise.
24325         * modules/isnand-tests (Files): Likewise.
24326         * modules/isnand-nolibm-tests (Files): Likewise.
24327         * modules/isnanl-tests (Files): Likewise.
24328         * modules/isnanl-nolibm-tests (Files): Likewise.
24329         * modules/ldexpl-tests (Files): Likewise.
24330         * modules/printf-posix-tests (Files): Likewise.
24331         * modules/roundf-tests (Files): Likewise.
24332         * modules/round-tests (Files): Likewise.
24333         * modules/roundl-tests (Files): Likewise.
24334         * modules/signbit-tests (Files): Likewise.
24335         * modules/snprintf-posix-tests (Files): Likewise.
24336         * modules/sprintf-posix-tests (Files): Likewise.
24337         * modules/truncf-tests (Files): Likewise.
24338         * modules/trunc-tests (Files): Likewise.
24339         * modules/truncl-tests (Files): Likewise.
24340         * modules/vasnprintf-posix-tests (Files): Likewise.
24341         * modules/vasprintf-posix-tests (Files): Likewise.
24342         * modules/vdprintf-posix-tests (Files): Likewise.
24343         * modules/vfprintf-posix-tests (Files): Likewise.
24344         * modules/vprintf-posix-tests (Files): Likewise.
24345         * modules/vsnprintf-posix-tests (Files): Likewise.
24346         * modules/vsprintf-posix-tests (Files): Likewise.
24347         * modules/xprintf-posix-tests (Files): Likewise.
24349 2011-09-11  Bruno Haible  <bruno@clisp.org>
24351         Ensure pid_t gets defined.
24352         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
24353         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24354         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24355         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24356         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24357         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24358         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
24359         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24360         * tests/test-fcntl-h.c: Check that pid_t is defined.
24361         * tests/test-sched.c: Likewise.
24362         * tests/test-termios.c: Likewise.
24363         * tests/test-time.c: Likewise.
24364         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
24365         * doc/posix-headers/signal.texi: Likewise.
24366         * doc/posix-headers/sys_types.texi: Likewise.
24367         * doc/posix-headers/time.texi: Likewise.
24369 2011-09-11  Bruno Haible  <bruno@clisp.org>
24371         acl: Fix compilation on Solaris 10 (older version).
24372         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
24373         of ACE_EVERYONE.
24374         * lib/set-mode-acl.c (qset_acl): Likewise.
24375         Reported by Christian Jullien <eligis@orange.fr>.
24377 2011-09-10  Bruno Haible  <bruno@clisp.org>
24379         iconv, unsetenv: Add support for MSVC compiler.
24380         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
24381         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
24383 2011-09-10  Bruno Haible  <bruno@clisp.org>
24385         *printf: Add support for MSVC compiler.
24386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
24387         handles the exception caused by the %n directive. When cross-compiling,
24388         guess no on native Windows.
24389         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
24390         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
24391         emulate it through vsnprintf.
24392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
24393         * doc/posix-functions/dprintf.texi: Update documentation regarding
24394         MSVC 9.
24395         * doc/posix-functions/fprintf.texi: Likewise.
24396         * doc/posix-functions/printf.texi: Likewise.
24397         * doc/posix-functions/snprintf.texi: Likewise.
24398         * doc/posix-functions/sprintf.texi: Likewise.
24399         * doc/posix-functions/swprintf.texi: Likewise.
24400         * doc/posix-functions/vdprintf.texi: Likewise.
24401         * doc/posix-functions/vfprintf.texi: Likewise.
24402         * doc/posix-functions/vprintf.texi: Likewise.
24403         * doc/posix-functions/vsnprintf.texi: Likewise.
24404         * doc/posix-functions/vsprintf.texi: Likewise.
24405         * doc/glibc-functions/asprintf.texi: Likewise.
24406         * doc/glibc-functions/obstack_printf.texi: Likewise.
24407         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24408         * doc/glibc-functions/vasprintf.texi: Likewise.
24410 2011-09-10  Bruno Haible  <bruno@clisp.org>
24412         nocrash: Add support for native Windows.
24413         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
24415 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
24416             Bruno Haible  <bruno@clisp.org>
24418         absolute-header, include-next: Add support for MSVC compiler.
24419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
24420         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
24421         directory separator in #line directives.
24422         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
24423         recognize also backslash as directory separator in #line directives.
24425 2011-09-08  Jim Meyering  <meyering@redhat.com>
24427         maint.mk: mark the post-release commit log with "maint: " prefix
24428         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
24429         one-line commit-log summary.
24431 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
24432             Bruno Haible  <bruno@clisp.org>
24434         Doc about crypt functions.
24435         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
24436         systems.
24437         * doc/posix-functions/encrypt.texi: Likewise.
24438         * doc/posix-functions/setkey.texi: Likewise.
24440 2011-09-08  Simon Josefsson  <simon@josefsson.org>
24442         * lib/gc.h: Fix copyright header.
24444 2011-09-07  Bruno Haible  <bruno@clisp.org>
24446         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
24447         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
24448         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
24450 2011-09-07  Bruno Haible  <bruno@clisp.org>
24452         openat: Work around compilation error with OSF/1 5.1 DTK cc.
24453         * lib/fopen.c: Use different syntax for include of <stdio.h>.
24454         * lib/freopen.c: Likewise.
24455         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
24456         * lib/lstat.c: Likewise.
24457         * lib/stat.c: Likewise.
24458         * lib/open.c: Use different syntax for include of <fcntl.h>.
24459         * lib/openat.c: Include fcntl.h again, explicitly.
24461 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
24463         parse-datetime: document the newly accepted format
24464         * doc/parse-datetime.texi (Combined date and time of day items):
24465         New section.
24467 2011-09-06  Bruno Haible  <bruno@clisp.org>
24469         acl: Fix a test failure on newer Solaris 10 with ZFS.
24470         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
24471         ENOSYS as no ACL.
24472         Reported by Jim Meyering.
24474 2011-09-06  Bruno Haible  <bruno@clisp.org>
24476         acl: Update for AIX >= 5.3 with NFS.
24477         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
24478         ENOSYS as no ACL.
24480         acl: Fix a test failure on AIX >= 5.3 with NFS.
24481         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
24482         as no ACL.
24484 2011-09-06  Bruno Haible  <bruno@clisp.org>
24486         acl: Fix a test failure on IRIX 6.5 with NFS.
24487         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
24488         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
24489         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
24490         * lib/copy-acl.c (qcopy_acl): Likewise.
24492 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
24494         openat: port to AIX 7.1 with large files
24495         AIX 7.1 does a "#define openat open64at" if large files are in use,
24496         so we can't simply #undef openat.  Use the orig_openat trick (similar
24497         to orig_open in lib/open.c) to work around the problem.  Problem
24498         reported by Kevin Brott for GNU tar, in the thread containing
24499         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
24500         * lib/openat.c (__need_system_fcntl_h): Define first.
24501         Include <fcntl.h> and <sys/types.h> before undefining.
24502         (orig_openat) [HAVE_OPENAT]: New inline function.
24503         (openat) [HAVE_OPENAT]: Do not undef.
24504         (rpl_openat): Use orig_openat, not openat.
24506 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24507             Bruno Haible  <bruno@clisp.org>
24509         acl: Avoid errors on NonStop Kernel.
24510         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
24511         ENOTSUP errors.
24513 2011-09-05  Bruno Haible  <bruno@clisp.org>
24515         acl: Clean up Solaris code.
24516         * lib/acl-internal.h: Remove no-op #if.
24517         * lib/file-has-acl.c: Likewise.
24518         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
24519         * lib/copy-acl.c (qcopy_acl): Likewise.
24521 2011-09-05  Bruno Haible  <bruno@clisp.org>
24523         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
24524         binaries built on the original Solaris 10.
24525         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
24526         trivial.
24528 2011-09-05  Bruno Haible  <bruno@clisp.org>
24530         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
24531         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
24532         10.
24533         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
24534         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
24535         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
24536         instead of acl_get, facl_get, acl_set, facl_set.
24538 2011-09-05  Bruno Haible  <bruno@clisp.org>
24540         copy-file: Try unit tests on more file systems.
24541         * tests/test-copy-file-1.sh: New file.
24542         * tests/test-copy-file-2.sh: New file.
24543         * modules/copy-file-tests (Files): Add them.
24544         (Makefile.am): Add them to TESTS.
24546         acl: Try unit tests on more file systems.
24547         * tests/test-file-has-acl-1.sh: New file.
24548         * tests/test-file-has-acl-2.sh: New file.
24549         * tests/test-set-mode-acl-1.sh: New file.
24550         * tests/test-set-mode-acl-2.sh: New file.
24551         * tests/test-copy-acl-1.sh: New file.
24552         * tests/test-copy-acl-2.sh: New file.
24553         * modules/acl-tests (Files): Add them.
24554         (Makefile.am): Add them to TESTS.
24556 2011-09-04  Bruno Haible  <bruno@clisp.org>
24558         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
24559         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
24560         10.
24561         (OLD_ALLOW, OLD_DENY): New macros.
24562         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
24563         ACE_ACCESS_ALLOWED_ACE_TYPE.
24564         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
24565         ACE_ACCESS_DENIED_ACE_TYPE.
24566         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
24567         (NEW_ACE_EXECUTE): Fix value.
24568         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
24569         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
24570         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
24571         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
24572         NEW_ACE_SYNCHRONIZE): New macros.
24573         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
24574         instead of acl_fromtext, acl_set, facl_set.
24575         Fixes a coreutils/tests/cp/perm failure.
24577 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
24579         openat: test for fstatat (..., 0) bug
24580         Further testing with tar suggests that fstatat (..., 0)
24581         does not work in general, on AIX 7.1; see
24582         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
24583         So, give up entirely on AIX 7.1's fstatat, and fall back on our
24584         replacement fstatat (which is what older AIX releases were using
24585         anyway).
24586         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
24587         use is now changed to orig_fstatat.  This was probably the right
24588         thing to do anyway.
24589         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
24590         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
24591         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
24592         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
24593         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
24594         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
24595         if the bug is found.
24597         openat: test for fstatat (AT_FDCWD, ..., 0) bug
24598         This tests for another fstatat bug on AIX 7.1:
24599         fstatat (AT_FDCWD, ..., 0) does not work.  See
24600         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
24601         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
24602         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
24603         (rpl_fstatat): Adjust so that it works around either (or both)
24604         bugs if present.
24605         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
24607 2011-09-03  Karl Berry  <karl@gnu.org>
24609         * doc/regex.texi (Character Class Operators): Avoid literal ":"
24610         in index entries.
24612 2011-09-02  Bruno Haible  <bruno@clisp.org>
24614         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
24615         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
24616         values of AR, ARFLAGS, RANLIB.
24617         Reported by John W. Eaton <jwe@gnu.org> for Octave.
24619 2011-09-02  Bruno Haible  <bruno@clisp.org>
24621         Find 'ar' program that fits with --host argument.
24622         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
24624 2011-09-02  Bruno Haible  <bruno@clisp.org>
24626         tests: init.sh: Support any non-GNU diff.
24627         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
24628         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
24629         Solaris 8.
24631 2011-09-02  Bruno Haible  <bruno@clisp.org>
24633         tests: init.sh: work also with any non-GNU diff that supports -u
24634         * tests/init.sh: Relax check for diff -u support.
24635         Rather than checking for GNU diff via --version, simply check
24636         for support for -u itself.  Useful at least on OpenBSD 4.9,
24637         AIX 7.1, IRIX 6.5, and Solaris 10.
24639 2011-09-01  Bruno Haible  <bruno@clisp.org>
24641         strtoimax, strtoumax: Document problem on HP-UX 11.
24642         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
24643         * doc/posix-functions/strtoumax.texi: Likewise.
24645 2011-09-01  Bruno Haible  <bruno@clisp.org>
24647         strtoumax: Avoid link error on OSF/1 with DTK cc.
24648         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
24649         defined as a function.
24650         * modules/strtoumax (Depends-on, configure.ac): Test only whether
24651         strtoumax is defined, not whether it is declared.
24653 2011-09-01  Bruno Haible  <bruno@clisp.org>
24655         strtoimax: Avoid link error on OSF/1 with DTK cc.
24656         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
24657         defined as a function.
24658         * modules/strtoimax (Depends-on, configure.ac): Test only whether
24659         strtoimax is defined, not whether it is declared.
24661 2011-09-01  Bruno Haible  <bruno@clisp.org>
24663         imaxdiv: Avoid link error on OSF/1 with DTK cc.
24664         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
24665         as a function.
24666         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
24667         whether it is declared.
24669 2011-09-01  Bruno Haible  <bruno@clisp.org>
24671         imaxabs: Avoid link error on OSF/1 with DTK cc.
24672         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
24673         as a function.
24674         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
24675         whether it is declared.
24677 2011-09-01  Bruno Haible  <bruno@clisp.org>
24679         Tests for module 'strtoumax'.
24680         * modules/strtoumax-tests: New file.
24681         * tests/test-strtoumax.c: New file.
24683         Tests for module 'strtoimax'.
24684         * modules/strtoimax-tests: New file.
24685         * tests/test-strtoimax.c: New file.
24687         Tests for module 'imaxdiv'.
24688         * modules/imaxdiv-tests: New file.
24689         * tests/test-imaxdiv.c: New file.
24691         Tests for module 'imaxabs'.
24692         * modules/imaxabs-tests: New file.
24693         * tests/test-imaxabs.c: New file.
24695 2011-09-01  Bruno Haible  <bruno@clisp.org>
24697         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
24698         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
24699         pthread_create.
24701 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24703         openat: work around AIX 7.1 fstatat issue
24704         This should fix the problem that was not properly fixed
24705         in the previous change, dated 2011-08-30.
24706         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
24707         __need_system_stat_h defined.
24708         (orig_fstatat) [HAVE_FSTATAT]: New function.
24709         (rpl_fstatat): Go back to the old way of doing things,
24710         except call orig_fstatat instead of fstatat.
24711         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
24712         Remove unnecessary check whether fstatat fills in st_size etc.
24714 2011-09-01  Bruno Haible  <bruno@clisp.org>
24716         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
24717         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
24718         just include the system's header.
24720 2011-08-31  Jim Meyering  <meyering@redhat.com>
24722         tests: avoid spurious assertion failure in test-float.c on ppc64
24723         * tests/test-float.c (test_long_double): Comment out an assertion,
24724         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
24725         with gcc-4.4.4.
24727         maint: indent with spaces, not TABs
24728         I need to get in the habit of running gnulib's "make check".
24729         Both of these would have been caught.
24730         * m4/largefile.m4: Indent with spaces, not TABs.
24731         * lib/parse-datetime.y (iso_8601_time): Likewise.
24732         Spotted by Pádraig Brady.
24734         test-parse-datetime.c: accommodate a relatively strict gcc warning
24735         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
24736         to avoid a warning from gcc's -Werror=missing-declarations.
24737         Insert a few spaces-before-funcall-parenthesis.
24739 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
24741         parse-datetime: accept ISO 8601 date and time rep with "T" separator
24742         The parser now accepts ISO 8601 date-time strings with "T" as the
24743         separator.  It has long parsed dates like "2004-02-29 16:21:42"
24744         with a space between the date and time strings.  Now it also parses
24745         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
24746         variants like "2004-02-29T16:21:42.333-07:00"
24747         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
24748         of day representation using the 'T' separator character.
24749         * doc/parse-datetime.texi (General date syntax): replace use of
24750         deprecated --iso-8601 option with --rfc-3339 in example of date
24751         command output formats that can be parsed.
24752         * tests/test-parse-datetime.c (tm_diff): New function, taken from
24753         lib/parse-datetime.y.
24754         (gmt_offset): New function.
24755         (main): Add additional test cases to validate ISO8601 extended
24756         date and time of day parsing.
24758 2011-08-31  Bruno Haible  <bruno@clisp.org>
24760         freopen: Documentation.
24761         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
24762         name.
24763         Reported by Claudio Bley <claudio.bley@gmail.com>.
24765 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
24767         freopen: Don't crash if the filename argument is NULL.
24768         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
24769         NULL.
24771 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24773         openat: work around AIX 7.1 fstatat bug
24774         Problem reported by Kevin Brott for GNU tar, in the thread containing
24775         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
24776         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
24777         FSTATAT_ST_SIZE_ETC_BROKEN.
24778         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
24779         rpl_fstatat.
24780         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
24781         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
24782         AC_CHECK_FUNCS_ONCE for fstatat.
24783         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
24784         fchmodat, mkdirat, openat and unlinkat.
24786 2011-08-30  Bruno Haible  <bruno@clisp.org>
24788         Avoid endless recursions if config.h includes some header files.
24789         * lib/fopen.c (__need_FILE): Define already before including config.h.
24790         * lib/freopen.c (__need_FILE): Likewise.
24791         * lib/open.c (__need_system_fcntl_h): Likewise.
24792         * lib/stat.c (__need_system_sys_stat_h): Likewise.
24793         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
24794         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24796 2011-08-25  Karl Berry  <karl@gnu.org>
24798         * config/srclist.txt (ylwrap): new try.
24799         * build-aux/ylwrap: new file.
24801 2011-08-23  Bruno Haible  <bruno@clisp.org>
24803         tmpdir: Use a good default directory on native Windows.
24804         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
24805         (P_tmpdir): Default to _P_tmpdir on native Windows.
24806         (path_search): On native Windows, try the value returned by GetTempPath
24807         before trying P_tmpdir.
24808         * modules/tmpdir (Depends-on): Add pathmax.
24809         Suggested by John Darrington <john@darrington.wattle.id.au>.
24811 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
24813         doc: fix typo in README-release
24814         * top/README-release: Capitalize first word of a sentence.
24816 2011-08-19  Jim Meyering  <meyering@redhat.com>
24818         fts: do not exhaust memory when processing million-entry directories
24819         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
24820         directory would require about 256*N bytes of memory.  Thus, it was
24821         easy to construct a directory too large to be processed by any of
24822         those tools.  With this change, fts' maximum memory utilization is
24823         now limited to around 30MB.
24824         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
24825         (fts_read): When we've processed the final entry (i.e., when
24826         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
24827         using the parent entry to read any remaining entries.  Dispatch
24828         depending on what fts_build returns:
24829         - NULL+stop, aka failure: stop
24830         - NULL otherwise: move up in the dir hierarchy
24831         - non-NULL: handle this new entry
24832         (fts_build): Declare and use new local, continue_readdir.
24833         Prepare to be called from fts_read, when the entries
24834         from a partially-read directory have just been exhausted.
24835         In that case, we'll skip the opendir and instead use the parent's
24836         fts_dirp and derive dir_fd from that.
24837         Finally, in the readdir loop, if we read max_entries entries,
24838         exit the loop ensuring *not* to call closedir.  This is required
24839         so that fts_dirp can be reused on a subsequent call.
24840         Prompted by Ben England's report of memory exhaustion in find
24841         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
24843         maint: fts: move decl of `dp' down into while loop; split a long line
24844         * lib/fts.c (fts_build): No semantic change.
24846         fts: add/use new struct member, fts_dirp
24847         We are about to use this to manage any directory with
24848         too many entries to read all of them into memory at once.
24849         To do that, we'll need to save the DIR* pointer in each
24850         affected FTSENT struct.
24851         * lib/fts_.h: Include <dirent.h>.
24852         (struct FTSENT) [fts_dirp]: New member.
24853         * lib/fts.c (closedir_and_clear): Define.
24854         Use it in place of closedir so that we are sure to
24855         clear the new fts_dirp member when done with it.
24856         (fts_alloc): Initialize the new member.
24857         (fts_lfree): Free, if needed.
24859         maint: fts: give __opendir2 a new parameter and rename
24860         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
24861         than surreptitiously using sole caller's "dir_fd".
24862         (fts_opendir): Rename from __opendir2.
24864         maint: fts.c: remove __opendir2's now-unused parameter, oflag
24865         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
24867         maint: fts.c: correct off-by-one indentation
24868         * lib/fts.c (fts_build): Correct indentation, change style
24869         of a couple of block comments, and bracing style.
24871         maint: fts.c: move __opendir2 #define "up" out of function body
24872         * lib/fts.c (__opendir2): Move "up".  No semantic change.
24874         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
24875         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
24876         out for a long time and besides was useful only on BSD systems.
24878 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24880         regex: port to Stratus OpenVOS
24881         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
24882         define to empty, rather than attempting nonportable optimizations.
24883         Problem reported by Paul Green in:
24884         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
24885         and fix suggested by Eric Blake in:
24886         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
24888 2011-08-17  Eric Blake  <eblake@redhat.com>
24890         getcwd: fix test failures on mingw
24891         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
24892         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
24893         test if long directory cannot be created, and allow mingw errno.
24895         getcwd-lgpl: fix m4 to match relaxed test for BSD
24896         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
24897         (gl_FUNC_GETCWD_SIGNATURE): New macro.
24898         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
24899         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
24900         signature problem.
24902         getcwd: fix compilation on mingw64
24903         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
24904         getcwd.
24905         Reported by Marc-André Lureau.
24907         pipe2: silence compiler warning
24908         * lib/pipe2.c (pipe2): Hide label if it is not used.
24910 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
24912         relocatable-prog: fix link error
24913         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
24914         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
24915         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
24916         into modules/relocatable-lib without noticing that
24917         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
24918         also needs to build relocatable.c.
24920 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24922         getaddrinfo: fix sh typo in gai_strerrorA decl checking
24923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
24924         shell code: it contained a 'break' that was not in a loop.
24925         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
24926         via a shell-language loop; this may have been true in old Autoconf
24927         versions, but it's not true in Autoconf 2.68.  I found this bug
24928         when testing coreutils git on Solaris 8, whose shell complains
24929         about the syntax error.
24931 2011-08-12  Simon Josefsson  <simon@josefsson.org>
24933         * lib/base64.c: Fix comment to reference RFC 4648.
24934         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
24935         <gvtulder@gmail.com>.
24937 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24939         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
24941         po/Makefile.in.in: fix make -q problem
24942         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
24943         rule, since there's no file named 'check-macro-version' and its
24944         use as a file breaks make -q.
24945         (all): Don't depend on check-macro-version.
24946         (CHECK_MACRO_VERSION): New macro.
24947         (stamp-po): Use it.
24949         configmake: fix make -q problem
24950         * modules/configmake (configmake.h): Update configmake.h's time stamp
24951         even if the file does not change.  Otherwise, 'make -q' fails.
24952         Problem reported by Simon Josefsson in
24953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
24955 2011-08-11  Jim Meyering  <meyering@redhat.com>
24957         git-version-gen: correct the advice in a comment
24958         * build-aux/git-version-gen: Correct comment.
24959         Don't recommend to list .tarball-version in .gitignore.
24961 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24963         base64: fix off-by-one buffer size bug
24964         Problem and (trivial) fix reported by Gijs van Tulder in
24965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
24966         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
24967         * tests/test-base64.c (main): Catch the bug.
24969 2011-08-10  Eric Blake  <eblake@redhat.com>
24971         closein: correct comments
24972         * lib/closein.c (close_stdin): Improve comments.
24974 2011-08-09  Bruno Haible  <bruno@clisp.org>
24976         More tests for 'fseeko'.
24977         * tests/test-fseeko3.c: New file, from Eric Blake.
24978         * tests/test-fseeko3.sh: New file.
24979         * modules/fseeko-tests (Files): Add them.
24980         (TESTS): Add test-fseeko3.sh.
24981         (check_PROGRAMS): Add test-fseeko3.
24983 2011-08-09  Eric Blake  <eblake@redhat.com>
24985         fseeko: remove unneeded hack
24986         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
24988         fseeko: fix bug on glibc
24989         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
24990         Reported by John W. Eaton.
24992 2011-08-08  Bruno Haible  <bruno@clisp.org>
24994         unictype/base: Fix interoperability with preinstalled libunistring.
24995         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
24996         Reported by Simon Josefsson.
24998 2011-08-08  Bruno Haible  <bruno@clisp.org>
25000         iswblank: Detect declaration correctly.
25001         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
25002         AC_CHECK_DECLS invocation.
25004 2011-08-08  Bruno Haible  <bruno@clisp.org>
25006         tcgetsid: Detect declaration correctly.
25007         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
25008         AC_CHECK_DECLS invocation.
25009         Reported by Simon Josefsson.
25011 2011-08-08  Eric Blake  <eblake@redhat.com>
25013         largefile: fix typo that regressed large file support
25014         * modules/largefile (configure.ac-early): Fix section name.
25016 2011-08-06  Karl Berry  <karl@gnu.org>
25018         * MODULES.html.sh (func_all_files): _Noreturn is no longer
25019         a separate module.
25021 2011-08-05  Simon Josefsson  <simon@josefsson.org>
25023         openat: Fix warnings and commens when building unlinkat.c on Hurd.
25024         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
25025         get prototype for free.
25027 2011-08-04  Bruno Haible  <bruno@clisp.org>
25029         Tests for module 'pathmax'.
25030         * modules/pathmax-tests: New file.
25031         * tests/test-pathmax.c: New file.
25033         canonicalize-lgpl: Support larger filenames on the Hurd.
25034         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
25035         Reported by Paul Eggert.
25037         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
25038         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
25039         * lib/chdir-long.h: Include pathmax.h.
25040         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
25041         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
25042         (PATH_MAX): Remove code that is done by pathmax.h.
25043         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
25044         * lib/tmpfile.c: Add a comment.
25045         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
25046         * modules/chdir-long (Depends-on): Add pathmax.
25047         * modules/getcwd (Depends-on): Add pathmax.
25048         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
25049         is not defined.
25050         * doc/posix-headers/limits.texi: Mention the pathmax module.
25051         * NEWS: Mention the change.
25053 2011-08-02  Bruno Haible  <bruno@clisp.org>
25055         pthread_sigmask: Actually use results of gl_THREADLIB.
25056         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
25057         gl_THREADLIB, not gl_[]THREADLIB.
25058         Reported by Eric Blake.
25060 2011-08-02  Jim Meyering  <meyering@redhat.com>
25062         maint.mk: relax the default _gl_TS_function_match regexp
25063         * top/maint.mk (_gl_TS_function_match): Don't require at least one
25064         space between function name and "(" in an "extern" declaration.
25065         That would fail to match a decl with no space there: extern void foo();
25067 2011-07-31  Iain Nicol  <iain@thenicols.net>
25069         git-version-gen: document that EXTRA_DIST must include .version
25070         * build-aux/git-version-gen: In the how-to-use comment, document
25071         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
25072         will fail when run from an unpacked distribution tarball.
25074 2011-08-01  Bruno Haible  <bruno@clisp.org>
25076         wctype-h: Fix last change.
25077         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
25078         REPLACE_TOWLOWER to 0.
25079         Reported by Sam Steingold <sds@gnu.org>.
25081 2011-07-31  Bruno Haible  <bruno@clisp.org>
25083         frexpl: Update autoconf test.
25084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
25085         according to changes of 2011-06-20.
25087 2011-07-31  Bruno Haible  <bruno@clisp.org>
25089         sys_utsname: Add support for Minix.
25090         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
25091         <sys/utsname.h>.
25092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25093         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
25095 2011-07-31  Bruno Haible  <bruno@clisp.org>
25097         strings: Add support for Minix.
25098         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
25099         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25100         * doc/posix-headers/strings.texi: Document the Minix problem.
25102 2011-07-31  Bruno Haible  <bruno@clisp.org>
25104         wctype-h: Add support for Minix.
25105         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
25106         REPLACE_TOWLOWER.
25107         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
25108         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
25109         REPLACE_ISWCNTRL.
25111 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
25113         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
25114         This is a performance improvement for 64-bit hosts: it causes the
25115         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
25117 2011-07-31  Bruno Haible  <bruno@clisp.org>
25119         stdioext: Add support for Minix.
25120         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
25121         * lib/fpurge.c (fpurge): Likewise.
25122         * lib/freadahead.c (freadahead): Likewise.
25123         * lib/freadable.c (freadable): Likewise.
25124         * lib/freading.c (freading): Likewise.
25125         * lib/freadptr.c (freadptr): Likewise.
25126         * lib/freadseek.c (freadptrinc): Likewise.
25127         * lib/fseeko.c (rpl_fseeko): Likewise.
25128         * lib/fseterr.c (fseterr): Likewise.
25129         * lib/fwritable.c (fwritable): Likewise.
25130         * lib/fwriting.c (fwriting): Likewise.
25131         * lib/fflush.c (clear_ungetc_buffer): Update comment.
25132         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
25134 2011-07-31  Bruno Haible  <bruno@clisp.org>
25136         errno: Port to Minix.
25137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
25138         ECONNABORTED are defined.
25139         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
25140         GNULIB_defined_ECONNABORTED): New macros.
25141         * lib/strerror-override.h (strerror_override): Test also
25142         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
25143         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
25144         ECONNABORTED.
25145         * doc/posix-headers/errno.texi: Mention the Minix problem.
25147 2011-07-31  Bruno Haible  <bruno@clisp.org>
25149         Work around declaration collisions on Minix.
25150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
25151         defined, set REPLACE_MBSINIT.
25152         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
25153         defined, set REPLACE_MBRTOWC.
25154         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
25155         set REPLACE_MBRLEN.
25156         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
25157         defined, set REPLACE_MBSRTOWCS.
25158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
25159         defined, set REPLACE_WCRTOMB.
25160         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
25161         defined, set REPLACE_WCSRTOMBS.
25163 2011-07-31  Bruno Haible  <bruno@clisp.org>
25165         Add support for Minix with ACK compiler.
25166         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
25167         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
25168         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
25170 2011-07-31  Bruno Haible  <bruno@clisp.org>
25172         Documentation about Minix.
25173         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
25174         * doc/glibc-headers/*.texi: Likewise.
25175         * doc/posix-functions/*.texi: Likewise.
25176         * doc/glibc-functions/*.texi: Likewise.
25178 2011-07-31  Bruno Haible  <bruno@clisp.org>
25180         snippet/warn-on-use: Fix indentation.
25181         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
25183 2011-07-25  Jim Meyering  <meyering@redhat.com>
25185         tests: test-update-copyright.sh: remove unnecessary "rm" commands
25186         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
25187         commands.
25189 2011-07-27  Jim Meyering  <meyering@redhat.com>
25191         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
25192         * top/maint.mk (gl_extract_significant_defines_): Now that
25193         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
25194         gnulib/lib/signal.in.h, and now that we recommend to
25195         define-if-undefined those two symbols in application code,
25196         we must filter them out of the "significant" list.
25197         This avoids a "make syntax-check" failure in coreutils.
25199 2011-07-26  Eric Blake  <eblake@redhat.com>
25201         warnings: add comments about previous patch
25202         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
25203         * m4/include_next.m4: Likewise.
25204         * m4/warn-on-use.m4: Likewise.
25205         * m4/warnings.m4: Likewise, and simplify use.
25206         Suggested by Stefano Lattarini.
25208         include-next, warnings: support older autoconf
25209         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
25210         AS_VAR_PUSHDEF in a way that works with older autoconf.
25211         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
25212         Reported by Daniel P. Berrange.
25214 2011-07-25  Bruno Haible  <bruno@clisp.org>
25216         fseek, ftell: Fix doc.
25217         * doc/posix-functions/fseek.texi: Reword statement about
25218         AC_SYS_LARGEFILE.
25219         * doc/posix-functions/ftell.texi: Likewise.
25221 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25222             Bruno Haible  <bruno@clisp.org>
25224         Add dependencies to the 'largefile' module.
25225         * modules/fopen (Depends-on): Add 'largefile'.
25226         * modules/freopen (Depends-on): Likewise.
25227         * modules/fseeko (Depends-on): Likewise.
25228         * modules/ftello (Depends-on): Likewise.
25229         * modules/glob (Depends-on): Likewise.
25230         * modules/lseek (Depends-on): Likewise.
25231         * modules/lstat (Depends-on): Likewise.
25232         * modules/mkostemp (Depends-on): Likewise.
25233         * modules/mkostemps (Depends-on): Likewise.
25234         * modules/mkstemp (Depends-on): Likewise.
25235         * modules/mkstemps (Depends-on): Likewise.
25236         * modules/open (Depends-on): Likewise.
25237         * modules/openat (Depends-on): Likewise.
25238         * modules/pread (Depends-on): Likewise.
25239         * modules/pwrite (Depends-on): Likewise.
25240         * modules/scandir (Depends-on): Likewise.
25241         * modules/stat (Depends-on): Likewise.
25242         * modules/tmpfile (Depends-on): Likewise.
25243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
25244         since the containing module now depends on the largefile module.
25245         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
25246         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
25247         off_t is fixed by gnulib.
25248         * doc/posix-functions/freopen.texi: Likewise.
25249         * doc/posix-functions/fseeko.texi: Likewise.
25250         * doc/posix-functions/fstatat.texi: Likewise.
25251         * doc/posix-functions/ftello.texi: Likewise.
25252         * doc/posix-functions/glob.texi: Likewise.
25253         * doc/posix-functions/lseek.texi: Likewise.
25254         * doc/posix-functions/lstat.texi: Likewise.
25255         * doc/posix-functions/mkstemp.texi: Likewise.
25256         * doc/posix-functions/open.texi: Likewise.
25257         * doc/posix-functions/openat.texi: Likewise.
25258         * doc/posix-functions/pread.texi: Likewise.
25259         * doc/posix-functions/pwrite.texi: Likewise.
25260         * doc/posix-functions/scandir.texi: Likewise.
25261         * doc/posix-functions/stat.texi: Likewise.
25262         * doc/posix-functions/tmpfile.texi: Likewise.
25263         * doc/glibc-functions/mkostemp.texi: Likewise.
25264         * doc/glibc-functions/mkostemps.texi: Likewise.
25265         * doc/glibc-functions/mkstemps.texi: Likewise.
25267 2011-07-25  Bruno Haible  <bruno@clisp.org>
25269         fcntl: Move AC_LIBOBJ invocation to module description.
25270         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
25271         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
25273         fcntl: Remove call-in from fchdir.m4.
25274         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
25275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
25277         dup3: Remove potential call-in from fchdir.m4.
25278         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
25279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
25281         dup2: Move AC_LIBOBJ invocation to module description.
25282         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
25283         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
25284         Don't invoke AC_LIBOBJ.
25285         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
25287         dup2: Remove call-in from fchdir.m4.
25288         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
25289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
25291         fclose: Move AC_LIBOBJ invocation to module description.
25292         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
25293         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
25294         to 1.
25295         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
25297         fclose: Remove call-in from close.m4.
25298         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
25299         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
25301         close: Move AC_LIBOBJ invocation to module description.
25302         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
25303         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
25304         1.
25305         * modules/close (configure.ac): Invoke AC_LIBOBJ.
25307         close: Remove call-in from fchdir.m4.
25308         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
25309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
25311         open: Move AC_LIBOBJ invocation to module description.
25312         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
25313         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
25314         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
25316         open: Remove call-in from fchdir.m4.
25317         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
25318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
25320         fchdir: Start to remove gl_REPLACE_* idiom.
25321         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
25322         (gl_FUNC_FCHDIR): Invoke it.
25324 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25326         * lib/ftell.c (ftell): Comment out cast.
25328         close: use gl_REPLACE_FCLOSE only if defined
25329         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
25330         is defined.  The close module doesn't depend on the fclose module
25331         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
25332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
25333         I reproduced the problem with "./gnulib-tool --test close sys_socket".
25335 2011-07-24  Jim Meyering  <meyering@redhat.com>
25337         test-select.h: avoid warning when using gcc's -Wmissing-declarations
25338         * tests/test-select.h (test_function): Declare as "static".
25340 2011-07-24  Bruno Haible  <bruno@clisp.org>
25342         doc: Mention the effects of AC_SYS_LARGEFILE.
25343         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
25344         on this function.
25345         * doc/posix-functions/aio_error.texi: Likewise.
25346         * doc/posix-functions/aio_fsync.texi: Likewise.
25347         * doc/posix-functions/aio_read.texi: Likewise.
25348         * doc/posix-functions/aio_return.texi: Likewise.
25349         * doc/posix-functions/aio_suspend.texi: Likewise.
25350         * doc/posix-functions/aio_write.texi: Likewise.
25351         * doc/posix-functions/fgetpos.texi: Likewise.
25352         * doc/posix-functions/fopen.texi: Likewise.
25353         * doc/posix-functions/freopen.texi: Likewise.
25354         * doc/posix-functions/fsetpos.texi: Likewise.
25355         * doc/posix-functions/fstatvfs.texi: Likewise.
25356         * doc/posix-functions/ftruncate.texi: Likewise.
25357         * doc/posix-functions/ftw.texi: Likewise.
25358         * doc/posix-functions/getrlimit.texi: Likewise.
25359         * doc/posix-functions/glob.texi: Likewise.
25360         * doc/posix-functions/lio_listio.texi: Likewise.
25361         * doc/posix-functions/lockf.texi: Likewise.
25362         * doc/posix-functions/mkstemp.texi: Likewise.
25363         * doc/posix-functions/mmap.texi: Likewise.
25364         * doc/posix-functions/nftw.texi: Likewise.
25365         * doc/posix-functions/openat.texi: Likewise.
25366         * doc/posix-functions/opendir.texi: Likewise.
25367         * doc/posix-functions/posix_fadvise.texi: Likewise.
25368         * doc/posix-functions/posix_fallocate.texi: Likewise.
25369         * doc/posix-functions/pread.texi: Likewise.
25370         * doc/posix-functions/pwrite.texi: Likewise.
25371         * doc/posix-functions/readdir.texi: Likewise.
25372         * doc/posix-functions/readdir_r.texi: Likewise.
25373         * doc/posix-functions/rewinddir.texi: Likewise.
25374         * doc/posix-functions/scandir.texi: Likewise.
25375         * doc/posix-functions/seekdir.texi: Likewise.
25376         * doc/posix-functions/setrlimit.texi: Likewise.
25377         * doc/posix-functions/statvfs.texi: Likewise.
25378         * doc/posix-functions/telldir.texi: Likewise.
25379         * doc/posix-functions/tmpfile.texi: Likewise.
25380         * doc/posix-functions/truncate.texi: Likewise.
25381         * doc/glibc-functions/fallocate.texi: Likewise.
25382         * doc/glibc-functions/fstatfs.texi: Likewise.
25383         * doc/glibc-functions/fts_children.texi: Likewise.
25384         * doc/glibc-functions/fts_read.texi: Likewise.
25385         * doc/glibc-functions/getdirentries.texi: Likewise.
25386         * doc/glibc-functions/mkostemp.texi: Likewise.
25387         * doc/glibc-functions/mkostemps.texi: Likewise.
25388         * doc/glibc-functions/mkstemps.texi: Likewise.
25389         * doc/glibc-functions/preadv.texi: Likewise.
25390         * doc/glibc-functions/pwritev.texi: Likewise.
25391         * doc/glibc-functions/sendfile.texi: Likewise.
25392         * doc/glibc-functions/statfs.texi: Likewise.
25394 2011-07-24  Bruno Haible  <bruno@clisp.org>
25396         doc: Fix typo.
25397         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
25399 2011-07-24  Bruno Haible  <bruno@clisp.org>
25401         doc: Mention fsusage.
25402         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
25404 2011-07-24  Bruno Haible  <bruno@clisp.org>
25406         doc: Mention new glibc headers and functions.
25407         * doc/glibc-headers/gshadow.texi: New file.
25408         * doc/glibc-functions/endsgent.texi: New file.
25409         * doc/glibc-functions/fgetsgent.texi: New file.
25410         * doc/glibc-functions/fgetsgent_r.texi: New file.
25411         * doc/glibc-functions/getsgent.texi: New file.
25412         * doc/glibc-functions/getsgent_r.texi: New file.
25413         * doc/glibc-functions/getsgnam.texi: New file.
25414         * doc/glibc-functions/getsgnam_r.texi: New file.
25415         * doc/glibc-functions/putsgent.texi: New file.
25416         * doc/glibc-functions/setsgent.texi: New file.
25417         * doc/glibc-functions/sgetsgent.texi: New file.
25418         * doc/glibc-functions/sgetsgent_r.texi: New file.
25419         * doc/glibc-functions/malloc_info.texi: New file.
25420         * doc/glibc-functions/preadv.texi: New file.
25421         * doc/glibc-functions/pwritev.texi: New file.
25422         * doc/glibc-functions/register_printf_modifier.texi: New file.
25423         * doc/glibc-functions/register_printf_specifier.texi: New file.
25424         * doc/glibc-functions/register_printf_type.texi: New file.
25425         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
25426         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
25427         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
25428         * doc/glibc-functions/pthread_getname_np.texi: New file.
25429         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
25430         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
25431         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
25432         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
25433         * doc/glibc-functions/pthread_setname_np.texi: New file.
25434         * doc/glibc-functions/pthread_sigqueue.texi: New file.
25435         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
25436         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
25437         * doc/glibc-functions/qsort_r.texi: New file.
25438         * doc/glibc-functions/quick_exit.texi: New file.
25439         * doc/glibc-functions/syncfs.texi: New file.
25440         * doc/gnulib.texi: Include them.
25441         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
25442         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
25443         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
25444         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
25445         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
25446         * doc/glibc-functions/execvpe.texi: Likewise.
25448 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25450         ftell: don't include <unistd.h>
25451         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
25452         guaranteed to define off_t, and the ftell module depends on the
25453         stdio module.
25455         ftell: do not assume wraparound signed arithmetic
25456         * lib/ftell.c: Include <limits.h>.
25457         (ftell): Don't assume wraparound signed arithmetic.
25459 2011-07-24  Bruno Haible  <bruno@clisp.org>
25461         close: No longer depend on module 'fclose'.
25462         * modules/close (Depends-on): Remove fclose.
25463         * NEWS: Mention the change.
25464         Suggested by Sam Steingold <sds@gnu.org>.
25466 2011-07-24  Bruno Haible  <bruno@clisp.org>
25468         fsusage: Enable large volume support on AIX >= 5.2.
25469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
25470         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
25471         instead of STAT_STATVFS.
25472         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
25474         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
25475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
25476         f_blocks field only on MacOS X.
25478         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
25479         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
25480         * modules/fsusage (Depends-on): Add largefile.
25482 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25484         * README: Modernize discussion of signed integers.
25485         Assuming overflow wraparound is no longer safe.
25486         Mention ones' complement and signed magnitude.
25488 2011-07-22  Bruno Haible  <bruno@clisp.org>
25490         select tests, pselect tests: Refactor.
25491         * tests/test-select.h: New file, extracted from tests/test-select.c.
25492         (select_fn): New type.
25493         (test, do_select, do_select_nowait, do_select_wait, test_tty,
25494         test_connect_first, test_accept_first, test_pair, test_socket_pair,
25495         test_pipe): Add my_select argument.
25496         (test_function): Renamed from main. Add my_select argument.
25497         * tests/test-select.c: Move most code to tests/test-select.h. Include
25498         test-select.h.
25499         * modules/select-tests (Files): Add tests/test-select.h.
25500         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
25501         (my_select, main): New functions.
25502         * modules/pselect-tests (Files): Add tests/test-select.h,
25503         tests/macros.h, tests/signature.h.
25504         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
25505         (configure.ac): Check for <sys/wait.h>.
25507 2011-07-22  Bruno Haible  <bruno@clisp.org>
25509         sys_select tests: Check the signature of FD_*.
25510         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
25511         signature tests from here...
25512         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
25513         here.
25514         * modules/sys_select-tests (Files): Add tests/signature.h.
25516 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25518         largefile: new module, replacing large-inode
25519         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
25520         * MODULES.html.sh: Add largefile, remove large-inode.
25521         * modules/largefile, m4/largefile.m4: New files.
25522         * modules/large-inode, m4/large-inode.m4: Remove.
25524         fsusage: port to MacOS X 10.7 with 4 TiB file systems
25525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
25526         implementations that use only 32 bits to count blocks.
25527         On typical hosts with 1024-byte blocks, this fails with file
25528         systems as small as 4 TiB.  Problem reported by Herb Wartens
25529         <http://debbugs.gnu.org/9140> and this should also fix a similar
25530         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
25532         large-inode: New module
25533         * MODULES.html.sh: Add it.
25534         * modules/large-inode, m4/large-inode.m4: New files.
25536         extensions: Enable extensions on MacOS X 10.5 and later.
25537         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
25539 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
25541         file-has-acl: use acl_extended_file_nofollow if available
25542         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
25543         (acl_extended_file): New macro.
25544         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
25545         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
25547 2011-07-21  Bruno Haible  <bruno@clisp.org>
25549         Declare system functions in a way that works with C++.
25550         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
25551         declare fdopendir as extern "C".
25552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
25553         declare frexpl as extern "C".
25554         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
25555         declare gai_strerror as extern "C".
25556         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
25557         programs, declare gai_strerror as extern "C".
25558         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
25559         declare getlogin_r as extern "C".
25560         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
25561         as extern "C".
25562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
25563         declare ldexpl as extern "C".
25564         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
25565         as extern "C".
25566         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
25567         program, declare getmntinfo as extern "C".
25568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
25569         stpncpy as extern "C".
25570         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
25571         program, declare __xpg_strerror_r as extern "C".
25572         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
25573         strndup as extern "C".
25574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
25575         declare memset and bzero as extern "C".
25576         Reported by Sam Steingold <sds@gnu.org>.
25578 2011-07-12  Jim Meyering  <meyering@redhat.com>
25580         maint.mk: prohibit inclusion of "verify.h" without use
25581         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
25583 2011-07-19  Pádraig Brady  <P@draigBrady.com>
25585         timer-time: A new module to check for timer_settime()
25586         * m4/timer_time.m4: Check for the posix function.
25587         * modules/timer-time: Add the new module.
25588         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
25589         Mention it.
25591 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
25592             Bruno Haible  <bruno@clisp.org>
25594         pthread_sigmask: assume POSIX threads if --avoid=threadlib
25595         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
25596         not defined, assume POSIX threads and look for pthread_sigmask in
25597         $LIBS, without changing $CPPFLAGS.
25599 2011-07-19  Bruno Haible  <bruno@clisp.org>
25601         strstr: Update cross-compilation guess.
25602         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
25603         CPUs, guess no, in view of glibc
25604         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
25605         Suggested by Eric Blake. Reported by Reuben Thomas.
25607 2011-07-19  Pádraig Brady  <P@draigBrady.com>
25609         getopt-gnu: suppress core dumps from detection code
25610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
25611         to suppress core dumps that may well occur on glibc systems.
25612         * modules/getopt-gnu: Depend on nocrash.
25614 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25616         pthread_sigmask: ensure usleep is declared
25617         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
25618         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
25620 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25622         doc: Document NonStop portability issues.
25623         * doc/posix-functions/sigaction.texi (sigaction):
25624         * doc/posix-headers/signal.texi (signal.h):
25625         Document NonStop.  See Joachim Schmitz in
25626         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
25628 2011-07-15  Bruno Haible  <bruno@clisp.org>
25630         ffsl, ffsll: Avoid unportable behaviour.
25631         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
25633 2011-07-15  Bruno Haible  <bruno@clisp.org>
25635         ffs: More tests.
25636         * tests/test-ffs.c (NBITS): New macro.
25637         (main): Add more tests.
25638         * tests/test-ffsl.c (NBITS): New macro.
25639         (main): Add more tests.
25640         * tests/test-ffsll.c (NBITS): New macro.
25641         (main): Add more tests.
25643 2011-07-15  Eric Blake  <eblake@redhat.com>
25645         ffsl, ffsll: new modules
25646         * modules/ffsl: New file.
25647         * modules/ffsll: Likewise.
25648         * m4/ffsl.m4: Likewise.
25649         * m4/ffsll.m4: Likewise.
25650         * lib/ffsl.c: Likewise.
25651         * lib/ffsl.h: Likewise.
25652         * lib/ffsll.c: Likewise.
25653         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
25654         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
25655         * modules/string (Makefile.am): Substitute witnesses.
25656         * lib/strings.in.h (ffsl, ffsll): Declare.
25657         * modules/ffsl-tests: New test file.
25658         * modules/ffsll-tests: Likewise.
25659         * tests/test-ffsl.c: Likewise.
25660         * tests/test-ffsll.c: Likewise.
25661         * MODULES.html.sh (Integer arithmetic functions): Mention it.
25662         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
25663         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
25665         ffs: fix m4 prerequisite
25666         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
25668         ffs: avoid undefined behavior
25669         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
25670         * tests/test-ffs.c (naive, main): Avoid signed shifts.
25671         Reported by Bruno Haible.
25673 2011-07-12  Bruno Haible  <bruno@clisp.org>
25675         pthread_sigmask: Rely on module 'threadlib'.
25676         * modules/pthread_sigmask (Depends-on): Add threadlib.
25677         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
25678         is defined.
25680 2011-07-12  Bruno Haible  <bruno@clisp.org>
25682         regex: Depend on module 'strcase'.
25683         * modules/regex (Depends-on): Add strcase, for strcasecmp().
25685 2011-07-12  Jim Meyering  <meyering@redhat.com>
25687         warn-on-use: fix typo in file name
25688         * modules/snippet/warn-on-use (Files): Correct file name:
25689         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
25691 2011-07-12  Bruno Haible  <bruno@clisp.org>
25693         strings: Document module.
25694         * doc/posix-headers/strings.texi: Mention module 'strings'.
25696 2011-07-12  Bruno Haible  <bruno@clisp.org>
25698         Rename module '_Noreturn' to 'snippet/_Noreturn'.
25699         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
25700         (Files, Makefile.am): Update.
25701         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
25702         * modules/stdlib (Depends-on): Update.
25704 2011-07-12  Bruno Haible  <bruno@clisp.org>
25706         * NEWS: Mention the changes.
25708         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
25709         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
25710         (Files, Makefile.am): Update.
25711         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
25712         * modules/arpa_inet (Depends-on): Update.
25713         * modules/ctype (Depends-on): Update.
25714         * modules/dirent (Depends-on): Update.
25715         * modules/fcntl-h (Depends-on): Update.
25716         * modules/glob (Depends-on): Update.
25717         * modules/iconv-h (Depends-on): Update.
25718         * modules/inttypes-incomplete (Depends-on): Update.
25719         * modules/langinfo (Depends-on): Update.
25720         * modules/locale (Depends-on): Update.
25721         * modules/math (Depends-on): Update.
25722         * modules/netdb (Depends-on): Update.
25723         * modules/poll-h (Depends-on): Update.
25724         * modules/pty (Depends-on): Update.
25725         * modules/search (Depends-on): Update.
25726         * modules/signal (Depends-on): Update.
25727         * modules/spawn (Depends-on): Update.
25728         * modules/stdio (Depends-on): Update.
25729         * modules/stdlib (Depends-on): Update.
25730         * modules/string (Depends-on): Update.
25731         * modules/strings (Depends-on): Update.
25732         * modules/sys_file (Depends-on): Update.
25733         * modules/sys_ioctl (Depends-on): Update.
25734         * modules/sys_select (Depends-on): Update.
25735         * modules/sys_socket (Depends-on): Update.
25736         * modules/sys_stat (Depends-on): Update.
25737         * modules/sys_time (Depends-on): Update.
25738         * modules/sys_times (Depends-on): Update.
25739         * modules/sys_utsname (Depends-on): Update.
25740         * modules/sys_wait (Depends-on): Update.
25741         * modules/termios (Depends-on): Update.
25742         * modules/time (Depends-on): Update.
25743         * modules/unistd (Depends-on): Update.
25744         * modules/wchar (Depends-on): Update.
25745         * modules/wctype-h (Depends-on): Update.
25746         * MODULES.html.sh (Support for building libraries and executables):
25747         Update.
25749         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
25750         * modules/snippet/unused-parameter: Renamed from
25751         modules/unused-parameter.
25752         (Files, Makefile.am): Update.
25753         * build-aux/snippet/unused-parameter.h: Renamed from
25754         build-aux/unused-parameter.h.
25755         * modules/selinux-h (Depends-on): Update.
25756         * modules/unistr/base (Depends-on): Update.
25757         * MODULES.html.sh (Core language properties): Update.
25759         Rename module 'link-warning' to 'snippet/link-warning'.
25760         * modules/snippet/link-warning: Renamed from modules/link-warning.
25761         (Files, Makefile.am): Update.
25762         * build-aux/snippet/link-warning.h: Renamed from
25763         build-aux/link-warning.h.
25764         * MODULES.html.sh (Support for building libraries and executables):
25765         Update.
25767         Rename module 'c++defs' to 'snippet/c++defs'.
25768         * modules/snippet/c++defs: Renamed from modules/c++defs.
25769         (Files, Makefile.am): Update.
25770         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
25771         * modules/arpa_inet (Depends-on): Update.
25772         * modules/ctype (Depends-on): Update.
25773         * modules/dirent (Depends-on): Update.
25774         * modules/fcntl-h (Depends-on): Update.
25775         * modules/glob (Depends-on): Update.
25776         * modules/iconv-h (Depends-on): Update.
25777         * modules/langinfo (Depends-on): Update.
25778         * modules/locale (Depends-on): Update.
25779         * modules/math (Depends-on): Update.
25780         * modules/netdb (Depends-on): Update.
25781         * modules/poll-h (Depends-on): Update.
25782         * modules/pty (Depends-on): Update.
25783         * modules/search (Depends-on): Update.
25784         * modules/signal (Depends-on): Update.
25785         * modules/spawn (Depends-on): Update.
25786         * modules/stdio (Depends-on): Update.
25787         * modules/stdlib (Depends-on): Update.
25788         * modules/string (Depends-on): Update.
25789         * modules/strings (Depends-on): Update.
25790         * modules/sys_ioctl (Depends-on): Update.
25791         * modules/sys_select (Depends-on): Update.
25792         * modules/sys_socket (Depends-on): Update.
25793         * modules/sys_stat (Depends-on): Update.
25794         * modules/sys_time (Depends-on): Update.
25795         * modules/sys_wait (Depends-on): Update.
25796         * modules/termios (Depends-on): Update.
25797         * modules/time (Depends-on): Update.
25798         * modules/unistd (Depends-on): Update.
25799         * modules/wchar (Depends-on): Update.
25800         * modules/wctype-h (Depends-on): Update.
25802         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
25803         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
25804         (Files, Makefile.am): Update.
25805         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
25806         * modules/argv-iter (Depends-on): Update.
25807         * modules/arpa_inet (Depends-on): Update.
25808         * modules/dirent (Depends-on): Update.
25809         * modules/fcntl-h (Depends-on): Update.
25810         * modules/fnmatch (Depends-on): Update.
25811         * modules/getopt-posix (Depends-on): Update.
25812         * modules/glob (Depends-on): Update.
25813         * modules/iconv-h (Depends-on): Update.
25814         * modules/inttypes-incomplete (Depends-on): Update.
25815         * modules/locale (Depends-on): Update.
25816         * modules/math (Depends-on): Update.
25817         * modules/netdb (Depends-on): Update.
25818         * modules/search (Depends-on): Update.
25819         * modules/signal (Depends-on): Update.
25820         * modules/spawn (Depends-on): Update.
25821         * modules/stdio (Depends-on): Update.
25822         * modules/stdlib (Depends-on): Update.
25823         * modules/string (Depends-on): Update.
25824         * modules/strings (Depends-on): Update.
25825         * modules/sys_socket (Depends-on): Update.
25826         * modules/sys_stat (Depends-on): Update.
25827         * modules/sys_time (Depends-on): Update.
25828         * modules/sys_times (Depends-on): Update.
25829         * modules/sys_utsname (Depends-on): Update.
25830         * modules/time (Depends-on): Update.
25831         * modules/unistd (Depends-on): Update.
25832         * modules/wchar (Depends-on): Update.
25833         * MODULES.html.sh (Support for building libraries and executables):
25834         Update.
25836 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
25838         Improvements on _Noreturn and related modules.
25840         modules/_Exit-tests: test _Noreturn too
25841         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
25842         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
25843         (main): Use them.
25845         stdnoreturn, stdnoreturn-tests: remove modules
25846         They're not needed here and a bit premature for use elsewhere.  See
25847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
25848         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
25849         * tests/test-stdnoreturn.c: Remove files.
25850         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
25851         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
25852         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
25853         and using noreturn.
25854         * modules/openat, modules/sigpipe-die, modules/xalloc:
25855         * modules/xmemdup0, modules/xstrtol:
25856         Remove dependency on stdnoreturn.
25858         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
25859         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
25860         Reparenthesize to avoid GCC warning.
25861         Support Microsoft's syntax.
25862         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
25864         _Noreturn-tests: remove module
25865         * modules/_Noreturn-tests: Remove.
25866         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
25867         * tests/test-_Noreturn.c: Remove.
25868         * tests/test-stdnoreturn.c: Merge from the old
25869         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
25871 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
25873         _Noreturn, stdnoreturn, and related modules.
25875         * top/maint.mk: Adjust to new noreturn support.
25876         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
25877         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
25879         xalloc: use stdnoreturn.h
25880         * lib/xalloc.h: Include <stdnoreturn.h>.
25881         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25882         * modules/xalloc (Depends-on): Add stdnoreturn.
25884         xstrtol: use stdnoreturn.h
25885         * lib/xstrtol.h: Include <stdnoreturn.h>.
25886         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25887         * modules/xstrtol (Depends-on): Add stdnoreturn.
25889         xmemdup0: use stdnoreturn.h
25890         * lib/xmemdup0.h: Include <stdnoreturn.h>.
25891         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25892         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
25894         sigpipe-die: use stdnoreturn.h
25895         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
25896         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25897         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
25899         openat: use stdnoreturn.h
25900         * lib/openat.h: Include <stdnoreturn.h>.
25901         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25902         * modules/openat (Depends-on): Add stdnoreturn.
25904         * lib/openat-die.c (openat_save_fail): Modernize comment.
25906         * lib/xalloc-die.c (xalloc_die): Modernize comment.
25908         * lib/glthread/thread.h: Modernize comment.
25910         obstack: use _Noreturn
25911         * lib/obstack.c (__attribute__): Remove macro.
25912         (print_and_abort): Use _Noreturn.
25914         c-stack: use _Noreturn
25915         * lib/c-stack.c (die, overflow_handler, segv_handler):
25916         Use _Noreturn rather than __attribute__((noreturn)).
25918         argmatch-tests, exclude_tests: use _Noreturn
25919         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
25920         Remove.
25921         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
25923         stdlib: use _Noreturn
25924         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
25925         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
25926         * modules/stdlib (Depends-on): Add _Noreturn.
25927         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
25929         stdnoreturn-tests: new module
25930         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
25932         stdnoreturn: new module
25933         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
25934         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
25936         _Noreturn-tests: new module
25937         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
25939         _Noreturn: new module
25940         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
25941         New section, mentioning it.
25942         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
25944         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
25946 2011-07-11  Eric Blake  <eblake@redhat.com>
25948         ffs: new module
25949         * modules/ffs: New file.
25950         * m4/ffs.m4: Likewise.
25951         * lib/ffs.c: Likewise.
25952         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
25953         * modules/strings (Makefile.am): Substitute witness.
25954         (Depends-on): Add c++defs.
25955         * lib/strings.in.h (ffs): Declare.
25956         * modules/ffs-tests: New test file.
25957         * tests/test-ffs.c: Test new module.
25958         * MODULES.html.sh (Integer arithmetic functions): Mention it.
25959         * doc/posix-functions/ffs.texi (ffs): Likewise.
25961         regex: avoid compiler warning
25962         * lib/regex.c (includes): Include <strings.h>, for use of
25963         strcasecmp in regcomp.c.
25964         Reported by Joachim Schmitz.
25966 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25968         stdint: respect system's intmax_t if INTMAX_MAX
25969         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
25970         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
25971         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
25972         long but int64_t is long long, and where we will clash with the
25973         system intmax_t if we override it.  See
25974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
25975         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
25976         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
25977         similarly for UINTMAX_C.
25979 2011-07-08  Bruno Haible  <bruno@clisp.org>
25981         pthread_sigmask tests: Avoid a compiler warning.
25982         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
25983         non-zero.
25985         sigprocmask tests: A better way to avoid a compiler warning.
25986         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
25987         (main): Complain if system() returns non-zero.
25988         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
25990 2011-07-08  Bruno Haible  <bruno@clisp.org>
25992         pthread_sigmask: Work around IRIX bug.
25993         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
25994         bug.
25995         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
25996         there may be unblocked pending signals.
25997         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
25999 2011-07-08  Bruno Haible  <bruno@clisp.org>
26001         pthread_sigmask: Work around Cygwin bug.
26002         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
26003         bug.
26004         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
26005         the system's pthread_sigmask function.
26006         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
26008 2011-07-08  Bruno Haible  <bruno@clisp.org>
26010         pthread_sigmask: Work around bug in single-threaded implementation.
26011         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
26012         FreeBSD, HP-UX, Solaris bug.
26013         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
26014         * lib/pthread_sigmask.c: Include <stddef.h>.
26015         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
26016         the system's pthread_sigmask function.
26017         * modules/pthread_sigmask (configure.ac): Invoke
26018         gl_PREREQ_PTHREAD_SIGMASK.
26019         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
26020         HP-UX, Solaris.
26022 2011-07-08  Eric Blake  <eblake@redhat.com>
26024         test-sigprocmask: avoid compiler warning
26025         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
26026         * tests/test-sigprocmask.c (main): Use it to silence warning.
26027         Reported by Jim Meyering.
26029         test-snprintf: avoid compiler warning
26030         * tests/test-snprintf.c (main): Avoid shadowed declaration.
26031         * tests/test-vsnprintf.c (main): Likewise.
26032         Reported by Jim Meyering.
26034 2011-07-08  Bruno Haible  <bruno@clisp.org>
26036         Tests for module 'pthread_sigmask'.
26037         * modules/pthread_sigmask-tests: New file.
26038         * tests/test-pthread_sigmask1.c: New file, based on
26039         tests/test-sigprocmask.c.
26040         * tests/test-pthread_sigmask2.c: New file.
26042 2011-07-08  Jim Meyering  <meyering@redhat.com>
26044         test-getopt.h: avoid warning about an unused variable
26045         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
26047 2011-07-07  Jim Meyering  <meyering@redhat.com>
26049         maint: reduce list of files exempt from sc_prohibit_leading_TABs
26050         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
26051         now that it no longer contains leading TABs.
26052         Remove unused "url=FIXME" statement.
26054 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26056         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
26057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
26058         When gl_THREADLIB is not in use, assume that the POSIX sematics
26059         are desired.  This is better for Emacs, which uses POSIX semantics
26060         on GNUish and/or POSIXish platforms, and does not use threads at
26061         all otherwise.
26063         pthread_sigmask: fix typo when testing for libraries
26064         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
26065         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
26067 2011-07-08  Eric Blake  <eblake@redhat.com>
26069         fts: introduce FTS_NOATIME
26070         * lib/fts_.h (FTS_NOATIME): New bit flag.
26071         (FTS_OPTIONMASK): Adjust.
26072         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
26073         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
26075 2011-07-08  Bruno Haible  <bruno@clisp.org>
26077         Tests for module 'thread'.
26078         * modules/thread-tests: New file.
26079         * tests/test-thread_self.c: New file.
26080         * tests/test-thread_create.cc: New file.
26082 2011-07-08  Bruno Haible  <bruno@clisp.org>
26084         thread: Avoid gcc warnings when using gl_thread_self().
26085         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
26086         'void *'.
26087         (gl_thread_self_pointer): Update.
26089 2011-07-07  Bruno Haible  <bruno@clisp.org>
26091         signal-c++-tests: Check declaration of pthread_sigmask.
26092         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
26093         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
26094         $(LIB_PTHREAD_SIGMASK).
26096 2011-07-07  Bruno Haible  <bruno@clisp.org>
26098         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
26099         * lib/signal.in.h (pthread_sigmask): Override if
26100         REPLACE_PTHREAD_SIGMASK is 1.
26101         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26102         REPLACE_PTHREAD_SIGMASK.
26103         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
26104         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
26105         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
26106         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
26107         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
26109 2011-07-07  Bruno Haible  <bruno@clisp.org>
26111         pthread_sigmask: Ensure declaration in <signal.h>.
26112         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
26113         include <pthread.h>.
26114         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
26115         problem.
26117 2011-07-07  Bruno Haible  <bruno@clisp.org>
26119         pthread_sigmask: Document the module.
26120         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
26122 2011-07-07  Bruno Haible  <bruno@clisp.org>
26124         pthread_sigmask: Follow gnulib conventions.
26125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
26126         gl_PTHREAD_SIGMASK.
26127         * modules/pthread_sigmask (configure.ac): Update.
26129 2011-07-07  Bruno Haible  <bruno@clisp.org>
26131         pthread_sigmask: Make declaration C++ safe.
26132         * lib/signal.in.h: In two special conditions, just do an #include_next.
26133         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
26134         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
26135         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26136         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
26137         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
26138         not REPLACE_PTHREAD_MASK.
26139         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
26140         not REPLACE_PTHREAD_MASK.
26141         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
26143 2011-07-07  Bruno Haible  <bruno@clisp.org>
26145         pthread_sigmask: Fix return value.
26146         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
26147         * lib/pthread_sigmask.c: New file.
26148         * modules/pthread_sigmask (Files): Add it.
26149         (configure.ac): Invoke AC_LIBOBJ.
26151 2011-07-07  Eric Blake  <eblake@redhat.com>
26153         getopt: more portable argv creation
26154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
26155         const, use char arrays rather than strings.
26156         Suggested by Paul Eggert.
26158 2011-07-07  Bruno Haible  <bruno@clisp.org>
26160         Tests for module 'sigprocmask'.
26161         * modules/sigprocmask-tests: New file.
26162         * tests/test-sigprocmask.c: New file.
26164 2011-07-07  Bruno Haible  <bruno@clisp.org>
26166         float tests: Tweak.
26167         * tests/test-float.c (main): Tweak skip message.
26169 2011-07-07  Eric Blake  <eblake@redhat.com>
26171         getopt: avoid compiler warning during configure
26172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
26173         assigning string literals to non-const pointer.
26175         getopt-gnu: avoid crash in glibc getopt
26176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
26177         * tests/test-getopt.h (test_getopt): Enhance test.
26178         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26179         * doc/posix-functions/getopt.texi (getopt): Document it.
26180         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26181         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26182         Likewise.
26184 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
26186         getopt: handle W; without long options in getopt [BZ #12922]
26187         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
26188         but no long options are defined, just return 'W'.
26190 2011-07-07  Bruno Haible  <bruno@clisp.org>
26192         Avoid literal tabs.
26193         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
26194         variable containing a tab instead of a literal tab.
26195         Reported by Jim Meyering.
26197 2011-07-07  Bruno Haible  <bruno@clisp.org>
26199         Comments.
26200         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
26202 2011-07-06  Bruno Haible  <bruno@clisp.org>
26204         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
26205         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
26206         <winsock2.h>.
26207         (rpl_fd_isset, FD_ISSET): New definitions, copied from
26208         lib/sys_socket.in.h.
26209         (close, gethostname): Hide declarations from <winsock2.h>.
26210         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26211         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
26212         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
26213         (select): Don't override if gnulib's <sys/select.h> was already
26214         included.
26215         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26216         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26217         setsockopt, shutdown, select): Tweak indentation.
26219 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26221         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
26222         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
26223         in an application that does not use the sys_select module.
26225 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
26227         poll: do not return 0 on timeout=-1
26228         * lib/poll.c: Loop with yield if no events occurred.
26230 2011-07-06  Eric Blake  <eblake@redhat.com>
26232         pthread_sigmask: always replace when not using pthread
26233         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
26234         replacement when using some threading other than pthread.  Fix
26235         logic bug.
26237 2011-07-06  Bruno Haible  <bruno@clisp.org>
26239         Comments.
26240         * m4/printf.m4: Update comments about mingw.
26242 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26244         sys_select: define sigset_t more portably
26245         * lib/sys_select.in.h: Always include <sys/types.h>, since
26246         we now need sigset_t and mingw defines it there.
26247         Include <signal.h> before split inclusion guard, to avoid
26248         mishaps on Solaris, whose <signal.h> eventually includes us.
26249         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
26250         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
26251         which come from ...
26252         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
26253         gl_CHECK_TYPE_SIGSET_T.
26254         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
26255         does the real work.
26256         * modules/sys_select (Depends-on): Add 'signal'.
26258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
26259         Suggested by Bruno Haible.
26261         pselect: Use pthread_sigmask, not sigprocmask.
26262         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
26263         multithreaded apps better than sigprocmask does.
26264         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
26265         sigprocmask directly.
26267 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26269         * lib/pselect.c (pselect): Use plain name, without "rpl_".
26270         Don't #undef,  since we don't need any underlying pselect.
26271         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
26272         (Depends-on): Add select.
26273         (Link): Add $(LIBSOCKET).
26274         These changes suggested by Bruno Haible.
26276         pselect: document better
26277         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
26278         * doc/posix-functions/pselect.texi (pselect): Document new module.
26280         pthread_sigmask: new module
26281         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
26282         * doc/posix-functions/pthread_sigmask.texi: Document new module.
26283         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
26284         This is done only as a macro; I don't know how well that'll
26285         work for C++.  Move <sys/types.h> include before the include_next,
26286         to avoid mishap on Solaris.
26287         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
26288         * modules/signal (Makefile.am): Substitute the check's results.
26289         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
26291         test-pselect: new module
26292         * modules/pselect-tests, tests/test-pselect.c: New files.
26293         * tests/test-select.c, tests/test-sys_select-c++.cc:
26294         If TEST_PSELECT is defined, test pselect instead of testing select.
26296         * tests/test-sys_select.c (sigset_t): Test for it, too.
26297         Suggested by Bruno Haible.
26299 2011-07-05  Eric Blake  <eblake@redhat.com>
26301         snprintf: guarantee %1$d, for libintl
26302         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
26303         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26304         * doc/posix-functions/snprintf.texi (snprintf): Update.
26305         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26306         * tests/test-snprintf.c (main): Enhance test.
26307         * tests/test-vsnprintf.c (main): Likewise.
26309 2011-07-05  Jim Meyering  <meyering@redhat.com>
26311         maint: exempt stdio-read.c and stdio-write.c from the cppi check
26312         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
26313         per Bruno's request, to accommodate this idiom (no space after "#")
26314         even when the function is inside an #if block:
26315         char *
26316         gets (char *s)
26317         #undef gets
26318         {
26319           ...
26320         }
26322 2011-07-04  Jim Meyering  <meyering@redhat.com>
26324         maint: indent with spaces, not TABs, and add a rule to check this
26325         * tests/test-userspec.c: Indent with spaces, not TABs.
26326         * tests/test-argp.c: Likewise.
26327         * tests/test-c-stack2.sh: Likewise.
26328         * tests/test-parse-duration.sh: Likewise
26329         * m4/strtod.m4: Likewise.
26330         * m4/alloca.m4: Likewise.
26331         * m4/pselect.m4: Likewise.
26332         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
26334 2011-07-03  Jim Meyering  <meyering@redhat.com>
26336         maint.mk: correct omissions in prohibit_argmatch_without_use check
26337         This rule would mistakenly report that argmatch.h is included without
26338         use even when both the argmatch and invalid_arg macro were used.
26339         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
26340         of argmatch and invalid_arg.
26342 2011-07-03  Bruno Haible  <bruno@clisp.org>
26344         Comments about EINTR.
26345         * lib/safe-read.h: Explain the purpose of this module.
26346         * lib/safe-write.h: Likewise.
26347         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
26348         module.
26349         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
26350         module.
26351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26353 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26355         xnanosleep: Rewrite to use new dtotimespec module.
26356         It has the conversion code that used to be in xnanosleep.
26357         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
26358         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
26359         (TIME_T_MAX): Remove.
26360         (xnanosleep): Rewrite in terms of dtotimespec.
26361         * modules/xnanosleep (Depends-on): Add dtotimespec.
26362         Remove intprops, stdbool.
26364         timespec-add, timespec-sub: new modules
26365         * lib/timespec.h (timespec_add, timespec_sub): New decls.
26366         * lib/timespec-add.c, lib/timespec-sub.c:
26367         * modules/timespec-add, modules/timespec-sub: New files.
26369         dtotimespec: new module
26370         * lib/timespec.h (dtotimespec): New decl.
26371         * lib/dtotimespec.c, modules/dtotimespec: New files.
26373         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
26375         pselect: new module
26376         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
26377         (pselect): New decls.
26378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
26379         since the standard pselect decl uses 'restrict'.
26380         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
26381         HAVE_PSELECT, REPLACE_PSELECT.
26382         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
26383         HAVE_PSELECT, REPLACE_PSELECT.
26384         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
26386         sys_select: don't depend on sys_socket
26387         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
26388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
26389         This fix works on GNU and GNU-like platforms, but has not been tested
26390         on native Windows.
26391         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
26392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
26393         gl_HEADER_SYS_SOCKET.
26394         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
26395         gl_PREREQ_SYS_H_WINSOCK2.
26397 2011-06-29  Eric Blake  <eblake@redhat.com>
26399         pipe2: fix C89 compile problem
26400         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
26401         Reported by Bruno Haible.
26403         pipe, pipe2: don't corrupt fd on error
26404         * lib/pipe.c (pipe): Leave fd unchanged on error.
26405         * lib/pipe2.c (pipe2): Likewise.
26406         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
26407         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26409 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
26411         mmap-anon: do not use regular expressions inadvertently
26412         * m4/mmap-anon.m4: Remove trailing period from strings sought
26413         in the output.
26415 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
26417         nanosleep: fix integer overflow problem
26418         * lib/nanosleep.c (my_usleep): Don't assume signed integer
26419         arithmetic wraps around on overflow.
26421         nanosleep: simplify carrying
26422         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
26423         first call to the underyling nanosleep, not for the last one.
26424         This doesn't fix any bugs, but it simplifies the computation of
26425         the remaining delay.  Found while auditing integer overflow issues.
26427         dup2: remove test for existence of fcntl
26428         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
26429         "#if HAVE_FCNTL", in the configure-time test program.
26430         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
26431         and therefore speeds up "configure" a bit.  Found while
26432         adding the dup2 module to Emacs.
26434 2011-06-24  Eric Blake  <eblake@redhat.com>
26436         maint.mk: enhance useless header checks
26437         * top/maint.mk (_sc_header_without_use): Check both include
26438         styles.
26439         (sc_prohibit_assert_without_use)
26440         (sc_prohibit_close_stream_without_use)
26441         (sc_prohibit_getopt_without_use)
26442         (sc_prohibit_quotearg_without_use)
26443         (sc_prohibit_quote_without_use)
26444         (sc_prohibit_long_options_without_use)
26445         (sc_prohibit_inttostr_without_use)
26446         (sc_prohibit_ignore_value_without_use)
26447         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
26448         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
26449         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
26450         (sc_prohibit_hash_pjw_without_use)
26451         (sc_prohibit_safe_read_without_use)
26452         (sc_prohibit_argmatch_without_use)
26453         (sc_prohibit_canonicalize_without_use)
26454         (sc_prohibit_root_dev_ino_without_use)
26455         (sc_prohibit_openat_without_use)
26456         (sc_prohibit_c_ctype_without_use)
26457         (sc_prohibit_signal_without_use)
26458         (sc_prohibit_stdio--_without_use)
26459         (sc_prohibit_stdio-safer_without_use)
26460         (sc_prohibit_strings_without_use)
26461         (sc_prohibit_intprops_without_use)
26462         (sc_prohibit_stddef_without_use)
26463         (sc_prohibit_xfreopen_without_use): Update clients.
26465 2011-06-24  Jim Meyering  <meyering@redhat.com>
26467         syntax-check: keep one maint.mk rule in sync with its header
26468         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
26469         of the bug Eric has just fixed, with today's commit 25e4c2ec.
26470         I prefer to avoid temporary files here, so use <(...), but that
26471         is not supported by /bin/sh, so...
26472         (SHELL): Define to /bin/bash.
26474 2011-06-24  Eric Blake  <eblake@redhat.com>
26476         maint.mk: update sc_prohibit_intprops_without_use
26477         * top/maint.mk (_intprops_names): Match recent changes.
26479 2011-06-24  Bruno Haible  <bruno@clisp.org>
26481         strerror-override: No-op tweak.
26482         * lib/strerror-override.h (strerror_override): Reorder conditions,
26483         for consistency with lib/strerror-override.c.
26485 2011-06-23  Eric Blake  <eblake@redhat.com>
26487         maint.mk: test further PATH_MAX issues
26488         * top/maint.mk (sc_prohibit_path_max_array): Rename...
26489         (sc_prohibit_path_max_allocation): ...and also test alloca.
26490         Suggested by Jim Meyering.
26492 2011-06-22  Eric Blake  <eblake@redhat.com>
26494         maint.mk: add syntax-check to avoid char[PATH_MAX]
26495         * top/maint.mk (sc_prohibit_path_max_array): New rule.
26497         stat: be robust to PATH_MAX definition
26498         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
26499         * modules/stat (Depends-on): Add verify.
26501         link: work around IRIX bug
26502         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
26503         * lib/link.c (rpl_link): Work around it.
26504         * tests/test-link.h (test_link): Enhance test.
26505         * doc/posix-functions/link.texi (link): Document the bug.
26507         getopt: silence clang warning
26508         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
26509         dereference.
26510         Reported by Gustavo Martin Domato.
26512 2011-06-22  Jim Meyering  <meyering@redhat.com>
26514         bootstrap: do not insert a blank line into each .gitignore file
26515         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
26517 2011-06-21  Eric Blake  <eblake@redhat.com>
26519         perror: test for output mismatch
26520         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
26521         perror on IRIX.
26523         strerror_r: fix OpenBSD behavior on out-of-range
26524         * lib/strerror_r.c (strerror_r): Always use maximal string.
26525         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
26527         strerror_r: fix OpenBSD behavior on 0
26528         * lib/strerror-override.c (strerror_override): Also override 0
26529         when needed.
26530         * lib/strerror-override.h (strerror_override): Likewise.
26531         * lib/strerror.c (strerror): Simplify, now that 0 override is done
26532         earlier.
26533         * lib/strerror_r.c (strerror_r): Likewise.
26534         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
26535         behavior...
26536         (gl_FUNC_STRERROR_0): ...into new macro.
26537         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
26538         is overridden.
26539         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
26540         * modules/strerror-override (Files): Add strerror.m4.
26541         (configure.ac): Also provide override for 0 when needed.
26542         * doc/posix-functions/strerror.texi (strerror): Document this.
26543         * doc/posix-functions/perror.texi (perror): Likewise.
26545         perror: adjust array size
26546         * modules/perror (Depends-on): Add strerror-override.
26547         * lib/perror.c (perror): Use it to avoid magic number.
26549         strerror-override: reduce size
26550         * lib/strerror-override.c (strerror_override): Use fewer lines.
26552 2011-06-20  Bruno Haible  <bruno@clisp.org>
26554         pathmax: Ensure correct value for PATH_MAX on HP-UX.
26555         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
26557 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26559         alloca: port to compilers that can optimize like GCC 4.6.0
26560         * lib/alloca.c (find_stack_direction): New signature, taken from
26561         Autoconf git.  This works with GCC 4.6.0.  This code should never
26562         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
26563         be used with other compilers that optimize as well as GCC 4.6.0 does.
26564         (alloca): Adjust to new signature.
26565         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
26566         New macro, which patches Autoconf in a similar way.
26568         c-stack: stop worrying about stack direction
26569         * lib/c-stack.c (find_stack_direction): Remove.
26570         (segv_handler): Don't worry about stack direction growth, as it's
26571         too much of a pain to configure this correctly, given how compilers
26572         are optimizing-away our stack-growth detection code.  Instead, assume
26573         that any access to just before or just after the stack is OK.
26574         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26575         Don't require AC_FUNC_ALLOCA; no longer needed.
26577 2011-06-20  Eric Blake  <eblake@redhat.com>
26579         test-stat: don't allocate PATH_MAX bytes
26580         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
26581         PATH_MAX-sized buffer.
26582         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
26583         * modules/stat-tests (Depends-on): Likewise.
26584         * tests/test-fstatat.c (includes): Drop pathmax.h.
26585         * tests/test-stat.c (includes): Likewise.
26586         Reported by Bruno Haible.
26588 2011-06-20  Bruno Haible  <bruno@clisp.org>
26590         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
26591         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
26592         * lib/float.c: New file.
26593         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
26594         REPLACE_FLOAT_LDBL.
26595         * modules/float (Files): Add lib/float.c.
26596         (configure.ac): Invoke AC_LIBOBJ.
26597         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
26599 2011-06-20  Bruno Haible  <bruno@clisp.org>
26601         Tests for module 'float'.
26602         * modules/float-tests: New file.
26603         * tests/test-float.c: New file.
26605 2011-06-19  Bruno Haible  <bruno@clisp.org>
26607         isinf: Coding style.
26608         * lib/isinf.c: Use GNU coding style.
26610 2011-06-19  Bruno Haible  <bruno@clisp.org>
26612         linkat test: Avoid test failure on AIX 7.1.
26613         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
26614         * tests/test-link.h (test_link): Likewise.
26616 2011-06-19  Bruno Haible  <bruno@clisp.org>
26618         pread test: Avoid test failure on OpenBSD 4.9.
26619         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
26621 2011-06-19  Bruno Haible  <bruno@clisp.org>
26623         sprintf-posix: Fix test failure on AIX 7.1.
26624         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
26625         * doc/posix-functions/dprintf.texi: Mention limited precision problem
26626         on AIX.
26627         * doc/posix-functions/fprintf.texi: Likewise.
26628         * doc/posix-functions/printf.texi: Likewise.
26629         * doc/posix-functions/snprintf.texi: Likewise.
26630         * doc/posix-functions/sprintf.texi: Likewise.
26631         * doc/posix-functions/vdprintf.texi: Likewise.
26632         * doc/posix-functions/vfprintf.texi: Likewise.
26633         * doc/posix-functions/vprintf.texi: Likewise.
26634         * doc/posix-functions/vsnprintf.texi: Likewise.
26635         * doc/posix-functions/vsprintf.texi: Likewise.
26637 2011-06-19  Bruno Haible  <bruno@clisp.org>
26639         roundl-ieee: Fix test failure on AIX 7.1.
26640         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
26641         * doc/posix-functions/roundl.texi: Mention problem with negative
26642         arguments.
26644 2011-06-19  Bruno Haible  <bruno@clisp.org>
26646         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
26647         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
26648         * doc/posix-functions/round.texi: Mention problem with negative
26649         arguments.
26650         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
26652 2011-06-19  Bruno Haible  <bruno@clisp.org>
26654         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
26655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
26656         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
26657         * doc/posix-functions/roundf.texi: Mention problem with negative
26658         arguments.
26659         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
26661 2011-06-19  Bruno Haible  <bruno@clisp.org>
26663         ceilf-ieee: Work around bug on MacOS X 10.5.
26664         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
26666         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
26667         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
26668         IEEE compliant, avoid compiler optimizations.
26669         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
26670         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26671         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
26672         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26673         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26674         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26675         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26676         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26677         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
26680 2011-06-19  Bruno Haible  <bruno@clisp.org>
26682         ceilf-ieee: Work around bug on AIX 7.1.
26683         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
26684         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
26686 2011-06-19  Bruno Haible  <bruno@clisp.org>
26688         ceil-ieee: Work around bug on AIX 7.1.
26689         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
26690         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
26692 2011-06-18  Bruno Haible  <bruno@clisp.org>
26694         fsync test: Avoid test failure on MacOS X and AIX.
26695         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
26696         EINVAL.
26698 2011-06-18  Bruno Haible  <bruno@clisp.org>
26700         openat, fdopendir tests: Fix link errors.
26701         * modules/openat-tests (Depends-on): Add progname.
26702         * modules/fdopendir-tests (Depends-on): Likewise.
26703         * tests/test-fchownat.c: Include progname.h.
26704         (main): Call set_program_name.
26705         * tests/test-fstatat.c: Include progname.h.
26706         (main): Call set_program_name.
26707         * tests/test-mkdirat.c: Include progname.h.
26708         (main): Call set_program_name.
26709         * tests/test-openat.c: Include progname.h.
26710         (main): Call set_program_name.
26711         * tests/test-unlinkat.c: Include progname.h.
26712         (main): Call set_program_name.
26713         * tests/test-fdopendir.c: Include progname.h.
26714         (main): Call set_program_name.
26716 2011-06-18  Bruno Haible  <bruno@clisp.org>
26718         Doc update.
26719         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
26720         HP-UX.
26721         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
26723 2011-06-18  Bruno Haible  <bruno@clisp.org>
26725         getcwd tests: Avoid compilation error on HP-UX 11.31.
26726         * modules/getcwd-tests (Depends-on): Add pathmax.
26727         * tests/test-getcwd.c: Include pathmax.h.
26729 2011-06-18  Bruno Haible  <bruno@clisp.org>
26731         isfinite, isinf: Fix link error on AIX 6 and 7.
26732         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
26733         needed, also test the macro with a 'float' argument.
26734         * m4/isinf.m4 (gl_ISINF): Likewise.
26736 2011-06-18  Bruno Haible  <bruno@clisp.org>
26738         getloadavg: Don't clobber LIBS. Regression from previous commit.
26739         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
26740         AC_CHECK_LIB from here...
26741         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
26742         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
26743         gl_func_getloadavg_done.
26744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26746 2011-06-18  Bruno Haible  <bruno@clisp.org>
26748         clean-temp: Improve documentation.
26749         * lib/clean-temp.h: Explain better how to use this module.
26750         Reported by John Darrington <john@darrington.wattle.id.au>.
26752 2011-06-17  Bruno Haible  <bruno@clisp.org>
26754         pread, pwrite: Avoid cc warning on AIX.
26755         * lib/unistd.in.h (pread): Undefine before defining as a macro.
26756         (pwrite): Likewise.
26758 2011-06-17  Bruno Haible  <bruno@clisp.org>
26760         spawn-pipe tests: Fix link error.
26761         * tests/test-spawn-pipe-child.c: Undefine fprintf.
26762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26764 2011-06-17  Bruno Haible  <bruno@clisp.org>
26766         Tests: Remove unnecessary dependency.
26767         * modules/canonicalize-tests (Depends-on): Remove progname.
26768         * modules/chown-tests (Depends-on): Likewise.
26769         * modules/dirname-tests (Depends-on): Likewise.
26770         * modules/fdopendir-tests (Depends-on): Likewise.
26771         * modules/fdutimensat-tests (Depends-on): Likewise.
26772         * modules/hash-tests (Depends-on): Likewise.
26773         * modules/lchown-tests (Depends-on): Likewise.
26774         * modules/linkat-tests (Depends-on): Likewise.
26775         * modules/renameat-tests (Depends-on): Likewise.
26776         * modules/spawn-pipe-tests (Depends-on): Likewise.
26777         * modules/utimensat-tests (Depends-on): Likewise.
26779 2011-06-17  Bruno Haible  <bruno@clisp.org>
26781         spawn-pipe tests: Fix link error.
26782         * tests/test-spawn-pipe-child.c: Undefine fflush.
26784 2011-06-17  Bruno Haible  <bruno@clisp.org>
26786         Fix tests link errors.
26787         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
26788         * modules/chown-tests (Makefile.am): Don't link test-chown with
26789         LIBINTL.
26790         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
26791         LIBINTL.
26792         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
26793         LIBINTL.
26794         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
26795         LIBINTL.
26797 2011-06-16  Bruno Haible  <bruno@clisp.org>
26799         crypto/gc-sha1: Fix recent regression.
26800         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
26801         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
26803         crypto/gc-md5: Fix recent regression.
26804         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
26806         crypto/gc-md4: Fix recent regression.
26807         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
26808         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
26810         crypto/gc-arctwo: Fix recent regression.
26811         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
26812         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
26814         crypto/gc-rijndael: Fix recent regression.
26815         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
26816         (configure.ac): Invoke AC_LIBOBJ here.
26817         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
26818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26820         crypto/gc-hmac-sha1: Fix recent regression.
26821         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
26822         (configure.ac): Invoke AC_LIBOBJ here.
26823         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
26824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26826         crypto/gc-hmac-md5: Fix recent regression.
26827         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
26828         (configure.ac): Invoke AC_LIBOBJ here.
26829         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
26830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26832         crypto/gc-des: Fix recent regression.
26833         * modules/crypto/gc-des (Files): Remove m4/des.m4.
26834         (configure.ac): Invoke AC_LIBOBJ here.
26835         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
26836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26838         crypto/gc-arcfour: Fix recent regression.
26839         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
26840         (configure.ac): Invoke AC_LIBOBJ here.
26841         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
26842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26844 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
26846         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
26847         After the 2011-05-21 change, this macro requires
26848         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
26849         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26851 2011-06-16  Bruno Haible  <bruno@clisp.org>
26853         fprintftime: Move AC_LIBOBJ invocations to module description.
26854         * m4/fprintftime.m4: Remove file.
26855         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
26856         (configure.ac): Remove gl_FPRINTFTIME call.
26857         (Makefile.am): Augment lib_SOURCES.
26858         Reported by Jim Meyering.
26860 2011-06-16  Bruno Haible  <bruno@clisp.org>
26862         tmpfile-safer: Finish 2011-05-23 commit.
26863         * m4/stdio-safer.m4: Really remove file.
26864         Reported by Jim Meyering.
26866 2011-06-16  Bruno Haible  <bruno@clisp.org>
26868         syntax-check: Fix typo.
26869         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
26870         printf-posix.m4.
26871         Reported by Jim Meyering.
26873 2011-06-13  Jim Meyering  <meyering@redhat.com>
26875         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
26876         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
26878 2011-05-23  Bruno Haible  <bruno@clisp.org>
26880         yesno: Move AC_LIBOBJ invocations to module description.
26881         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
26882         * modules/yesno (Makefile.am): Augment lib_SOURCES.
26884 2011-05-23  Bruno Haible  <bruno@clisp.org>
26886         xstrtol: Move AC_LIBOBJ invocations to module description.
26887         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
26888         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
26890 2011-05-23  Bruno Haible  <bruno@clisp.org>
26892         xstrtold: Move AC_LIBOBJ invocations to module description.
26893         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
26894         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
26896 2011-05-23  Bruno Haible  <bruno@clisp.org>
26898         xstrtod: Move AC_LIBOBJ invocations to module description.
26899         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
26900         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
26902 2011-05-23  Bruno Haible  <bruno@clisp.org>
26904         xnanosleep: Move AC_LIBOBJ invocations to module description.
26905         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
26906         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
26908 2011-05-23  Bruno Haible  <bruno@clisp.org>
26910         xgetcwd: Move AC_LIBOBJ invocations to module description.
26911         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
26912         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
26914 2011-05-23  Bruno Haible  <bruno@clisp.org>
26916         xalloc: Move AC_LIBOBJ invocations to module description.
26917         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
26918         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
26920 2011-05-23  Bruno Haible  <bruno@clisp.org>
26922         write-any-file: Move AC_LIBOBJ invocations to module description.
26923         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
26924         invocation.
26925         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
26927 2011-05-23  Bruno Haible  <bruno@clisp.org>
26929         utimens: Move AC_LIBOBJ invocations to module description.
26930         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
26931         * modules/utimens (Makefile.am): Augment lib_SOURCES.
26933 2011-05-23  Bruno Haible  <bruno@clisp.org>
26935         utimecmp: Move AC_LIBOBJ invocations to module description.
26936         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
26937         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
26939 2011-05-23  Bruno Haible  <bruno@clisp.org>
26941         userspec: Move AC_LIBOBJ invocations to module description.
26942         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
26943         * modules/userspec (Makefile.am): Augment lib_SOURCES.
26945 2011-05-23  Bruno Haible  <bruno@clisp.org>
26947         unlinkdir: Move AC_LIBOBJ invocations to module description.
26948         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
26949         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
26951 2011-05-23  Bruno Haible  <bruno@clisp.org>
26953         unistd-safer: Move AC_LIBOBJ invocations to module description.
26954         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
26955         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
26957 2011-05-23  Bruno Haible  <bruno@clisp.org>
26959         tempname: Move AC_LIBOBJ invocations to module description.
26960         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
26961         * modules/tempname (Makefile.am): Augment lib_SOURCES.
26963 2011-05-23  Bruno Haible  <bruno@clisp.org>
26965         strftime: Move AC_LIBOBJ invocations to module description.
26966         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
26967         * modules/strftime (Makefile.am): Augment lib_SOURCES.
26969 2011-05-23  Bruno Haible  <bruno@clisp.org>
26971         stdlib-safer: Move AC_LIBOBJ invocations to module description.
26972         * m4/stdlib-safer.m4: Remove file.
26973         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
26974         (configure.ac): Remove gl_STDLIB_SAFER call.
26975         (Makefile.am): Augment lib_SOURCES.
26977 2011-05-23  Bruno Haible  <bruno@clisp.org>
26979         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
26980         * m4/stdio-safer.m4: Remove file.
26981         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
26982         (configure.ac): Remove gl_TMPFILE_SAFER call.
26983         (Makefile.am): Augment lib_SOURCES.
26985 2011-05-23  Bruno Haible  <bruno@clisp.org>
26987         popen-safer: Move AC_LIBOBJ invocations to module description.
26988         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
26989         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
26990         (configure.ac): Remove gl_POPEN_SAFER call.
26991         (Makefile.am): Augment lib_SOURCES.
26993 2011-05-23  Bruno Haible  <bruno@clisp.org>
26995         freopen-safer: Move AC_LIBOBJ invocations to module description.
26996         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
26997         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
26998         (configure.ac): Remove gl_FREOPEN_SAFER call.
26999         (Makefile.am): Augment lib_SOURCES.
27001 2011-05-23  Bruno Haible  <bruno@clisp.org>
27003         fopen-safer: Move AC_LIBOBJ invocations to module description.
27004         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
27005         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
27006         (configure.ac): Remove gl_FOPEN_SAFER call.
27007         (Makefile.am): Augment lib_SOURCES.
27009 2011-05-23  Bruno Haible  <bruno@clisp.org>
27011         crypto/sha512: Move AC_LIBOBJ invocations to module description.
27012         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
27013         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
27015 2011-05-23  Bruno Haible  <bruno@clisp.org>
27017         crypto/sha256: Move AC_LIBOBJ invocations to module description.
27018         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
27019         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
27021 2011-05-23  Bruno Haible  <bruno@clisp.org>
27023         crypto/sha1: Move AC_LIBOBJ invocations to module description.
27024         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
27025         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
27027 2011-05-23  Bruno Haible  <bruno@clisp.org>
27029         settime: Move AC_LIBOBJ invocations to module description.
27030         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
27031         * modules/settime (Makefile.am): Augment lib_SOURCES.
27033 2011-05-23  Bruno Haible  <bruno@clisp.org>
27035         savedir: Move AC_LIBOBJ invocations to module description.
27036         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
27037         * modules/savedir (Makefile.am): Augment lib_SOURCES.
27039 2011-05-23  Bruno Haible  <bruno@clisp.org>
27041         save-cwd: Move AC_LIBOBJ invocations to module description.
27042         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
27043         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
27045 2011-05-23  Bruno Haible  <bruno@clisp.org>
27047         same: Move AC_LIBOBJ invocations to module description.
27048         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
27049         * modules/same (Makefile.am): Augment lib_SOURCES.
27051 2011-05-23  Bruno Haible  <bruno@clisp.org>
27053         safe-write: Move AC_LIBOBJ invocations to module description.
27054         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
27055         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
27056         instead of gl_SAFE_WRITE.
27057         (Makefile.am): Augment lib_SOURCES.
27059 2011-05-23  Bruno Haible  <bruno@clisp.org>
27061         safe-read: Move AC_LIBOBJ invocations to module description.
27062         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
27063         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
27064         of gl_SAFE_READ.
27065         (Makefile.am): Augment lib_SOURCES.
27067 2011-05-23  Bruno Haible  <bruno@clisp.org>
27069         safe-alloc: Move AC_LIBOBJ invocations to module description.
27070         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
27071         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
27073 2011-05-23  Bruno Haible  <bruno@clisp.org>
27075         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
27076         * m4/rijndael.m4: Remove file.
27077         * modules/crypto/rijndael (Files): Remove it.
27078         (configure.ac): Remove gl_RIJNDAEL call.
27079         (Makefile.am): Augment lib_SOURCES.
27081 2011-05-23  Bruno Haible  <bruno@clisp.org>
27083         readtokens: Move AC_LIBOBJ invocations to module description.
27084         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
27085         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
27087 2011-05-23  Bruno Haible  <bruno@clisp.org>
27089         read-file: Move AC_LIBOBJ invocations to module description.
27090         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
27091         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
27092         of gl_FUNC_READ_FILE.
27093         (Makefile.am): Augment lib_SOURCES.
27095 2011-05-23  Bruno Haible  <bruno@clisp.org>
27097         quotearg: Move AC_LIBOBJ invocations to module description.
27098         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
27099         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
27101 2011-05-23  Bruno Haible  <bruno@clisp.org>
27103         quote: Move AC_LIBOBJ invocations to module description.
27104         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
27105         * modules/quote (Makefile.am): Augment lib_SOURCES.
27107 2011-05-23  Bruno Haible  <bruno@clisp.org>
27109         posixver: Move AC_LIBOBJ invocations to module description.
27110         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
27111         * modules/posixver (Makefile.am): Augment lib_SOURCES.
27113 2011-05-23  Bruno Haible  <bruno@clisp.org>
27115         posixtm: Move AC_LIBOBJ invocations to module description.
27116         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
27117         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
27119 2011-05-23  Bruno Haible  <bruno@clisp.org>
27121         physmem: Move AC_LIBOBJ invocations to module description.
27122         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
27123         * modules/physmem (Makefile.am): Augment lib_SOURCES.
27125 2011-05-23  Bruno Haible  <bruno@clisp.org>
27127         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
27128         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
27129         invocation.
27130         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
27132 2011-05-23  Bruno Haible  <bruno@clisp.org>
27134         mpsort: Move AC_LIBOBJ invocations to module description.
27135         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
27136         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
27138 2011-05-23  Bruno Haible  <bruno@clisp.org>
27140         modechange: Move AC_LIBOBJ invocations to module description.
27141         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
27142         * modules/modechange (Makefile.am): Augment lib_SOURCES.
27144 2011-05-23  Bruno Haible  <bruno@clisp.org>
27146         mkdir-p: Move AC_LIBOBJ invocations to module description.
27147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
27148         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
27150 2011-05-23  Bruno Haible  <bruno@clisp.org>
27152         mkancesdirs: Move AC_LIBOBJ invocations to module description.
27153         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
27154         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
27156 2011-05-23  Bruno Haible  <bruno@clisp.org>
27158         mgetgroups: Move AC_LIBOBJ invocations to module description.
27159         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
27160         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
27162 2011-05-23  Bruno Haible  <bruno@clisp.org>
27164         memxor: Move AC_LIBOBJ invocations to module description.
27165         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
27166         * modules/memxor (Makefile.am): Augment lib_SOURCES.
27168 2011-05-23  Bruno Haible  <bruno@clisp.org>
27170         memcoll: Move AC_LIBOBJ invocations to module description.
27171         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
27172         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
27174 2011-05-23  Bruno Haible  <bruno@clisp.org>
27176         memcasecmp: Move AC_LIBOBJ invocations to module description.
27177         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
27178         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
27180 2011-05-23  Bruno Haible  <bruno@clisp.org>
27182         crypto/md5: Move AC_LIBOBJ invocations to module description.
27183         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
27184         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
27186 2011-05-23  Bruno Haible  <bruno@clisp.org>
27188         crypto/md4: Move AC_LIBOBJ invocations to module description.
27189         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
27190         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
27192 2011-05-23  Bruno Haible  <bruno@clisp.org>
27194         crypto/md2: Move AC_LIBOBJ invocations to module description.
27195         * m4/md2.m4: Remove file.
27196         * modules/crypto/md2 (Files): Remove it.
27197         (configure.ac): Remove gl_MD2 call.
27198         (Makefile.am): Augment lib_SOURCES.
27200 2011-05-23  Bruno Haible  <bruno@clisp.org>
27202         long-options: Move AC_LIBOBJ invocations to module description.
27203         * m4/long-options.m4: Remove file.
27204         * modules/long-options (Files): Remove it.
27205         (configure.ac): Remove gl_LONG_OPTIONS call.
27206         (Makefile.am): Augment lib_SOURCES.
27208 2011-05-23  Bruno Haible  <bruno@clisp.org>
27210         i-ring: Move AC_LIBOBJ invocations to module description.
27211         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
27212         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
27214 2011-05-23  Bruno Haible  <bruno@clisp.org>
27216         idcache: Move AC_LIBOBJ invocations to module description.
27217         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
27218         * modules/idcache (Makefile.am): Augment lib_SOURCES.
27220 2011-05-23  Bruno Haible  <bruno@clisp.org>
27222         human: Move AC_LIBOBJ invocations to module description.
27223         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
27224         * modules/human (Makefile.am): Augment lib_SOURCES.
27226 2011-05-23  Bruno Haible  <bruno@clisp.org>
27228         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
27229         * m4/hmac-sha1.m4: Remove file.
27230         * modules/crypto/hmac-sha1 (Files): Remove it.
27231         (configure.ac): Remove gl_HMAC_SHA1 call.
27232         (Makefile.am): Augment lib_SOURCES.
27234 2011-05-23  Bruno Haible  <bruno@clisp.org>
27236         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
27237         * m4/hmac-md5.m4: Remove file.
27238         * modules/crypto/hmac-md5 (Files): Remove it.
27239         (configure.ac): Remove gl_HMAC_MD5 call.
27240         (Makefile.am): Augment lib_SOURCES.
27242 2011-05-23  Bruno Haible  <bruno@clisp.org>
27244         hash: Move AC_LIBOBJ invocations to module description.
27245         * m4/hash.m4: Remove file.
27246         * modules/hash (Files): Remove it.
27247         (configure.ac): Remove gl_HASH call.
27248         (Makefile.am): Augment lib_SOURCES.
27250 2011-05-23  Bruno Haible  <bruno@clisp.org>
27252         hard-locale: Move AC_LIBOBJ invocations to module description.
27253         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
27254         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
27256 2011-05-23  Bruno Haible  <bruno@clisp.org>
27258         getugroups: Move AC_LIBOBJ invocations to module description.
27259         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
27260         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
27262 2011-05-23  Bruno Haible  <bruno@clisp.org>
27264         gettime: Move AC_LIBOBJ invocations to module description.
27265         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
27266         * modules/gettime (Makefile.am): Augment lib_SOURCES.
27268 2011-05-23  Bruno Haible  <bruno@clisp.org>
27270         getndelim2: Move AC_LIBOBJ invocations to module description.
27271         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
27272         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
27274 2011-05-23  Bruno Haible  <bruno@clisp.org>
27276         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
27277         * m4/gc-pbkdf2-sha1.m4: Remove file.
27278         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
27279         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
27280         (Makefile.am): Augment lib_SOURCES.
27282 2011-05-23  Bruno Haible  <bruno@clisp.org>
27284         fts: Move AC_LIBOBJ invocations to module description.
27285         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
27286         * modules/fts (configure.ac): ... to here.
27288 2011-05-23  Bruno Haible  <bruno@clisp.org>
27290         file-type: Move AC_LIBOBJ invocations to module description.
27291         * m4/file-type.m4: Remove file.
27292         * modules/file-type (Files): Remove it.
27293         (configure.ac): Remove gl_FILE_TYPE call.
27294         (Makefile.am): Augment lib_SOURCES.
27296 2011-05-23  Bruno Haible  <bruno@clisp.org>
27298         filenamecat*: Respect rules for use of AC_LIBOBJ.
27299         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
27300         Remove AC_LIBOBJ invocation.
27301         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
27302         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
27304 2011-05-23  Bruno Haible  <bruno@clisp.org>
27306         filemode: Move AC_LIBOBJ invocations to module description.
27307         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
27308         * modules/filemode (Makefile.am): Augment lib_SOURCES.
27310 2011-05-23  Bruno Haible  <bruno@clisp.org>
27312         openat-safer: Move AC_LIBOBJ invocations to module description.
27313         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
27314         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
27316 2011-05-23  Bruno Haible  <bruno@clisp.org>
27318         fcntl-safer: Move AC_LIBOBJ invocations to module description.
27319         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
27320         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
27322 2011-05-23  Bruno Haible  <bruno@clisp.org>
27324         exclude: Move AC_LIBOBJ invocations to module description.
27325         * m4/exclude.m4: Remove file.
27326         * modules/exclude (Files): Remove it.
27327         (configure.ac): Remove gl_EXCLUDE call.
27328         (Makefile.am): Augment lib_SOURCES.
27330 2011-05-23  Bruno Haible  <bruno@clisp.org>
27332         dirname*: Respect rules for use of AC_LIBOBJ.
27333         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
27334         invocations.
27335         * modules/dirname (Makefile.am): Augment lib_SOURCES.
27336         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
27338 2011-05-23  Bruno Haible  <bruno@clisp.org>
27340         dirent-safer: Move AC_LIBOBJ invocations to module description.
27341         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
27342         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
27344 2011-05-23  Bruno Haible  <bruno@clisp.org>
27346         crypto/des: Move AC_LIBOBJ invocations to module description.
27347         * m4/des.m4: Remove file.
27348         * modules/crypto/des (Files): Remove it.
27349         (configure.ac): Remove gl_DES call.
27350         (Makefile.am): Augment lib_SOURCES.
27352 2011-05-23  Bruno Haible  <bruno@clisp.org>
27354         cycle-check: Move AC_LIBOBJ invocations to module description.
27355         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
27356         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
27358 2011-05-23  Bruno Haible  <bruno@clisp.org>
27360         c-strtold: Move AC_LIBOBJ invocations to module description.
27361         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
27362         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
27364 2011-05-23  Bruno Haible  <bruno@clisp.org>
27366         c-strtod: Move AC_LIBOBJ invocations to module description.
27367         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
27368         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
27370 2011-05-23  Bruno Haible  <bruno@clisp.org>
27372         crc: Move AC_LIBOBJ invocations to module description.
27373         * m4/crc.m4: Remove file.
27374         * modules/crc (Files): Remove it.
27375         (configure.ac): Remove gl_CRC call.
27376         (Makefile.am): Augment lib_SOURCES.
27378 2011-05-23  Bruno Haible  <bruno@clisp.org>
27380         close-stream: Move AC_LIBOBJ invocations to module description.
27381         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
27382         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
27384 2011-05-23  Bruno Haible  <bruno@clisp.org>
27386         closeout: Move AC_LIBOBJ invocations to module description.
27387         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
27388         * modules/closeout (Makefile.am): Augment lib_SOURCES.
27390 2011-05-23  Bruno Haible  <bruno@clisp.org>
27392         closein: Move AC_LIBOBJ invocations to module description.
27393         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
27394         * modules/closein (Makefile.am): Augment lib_SOURCES.
27396 2011-05-23  Bruno Haible  <bruno@clisp.org>
27398         cloexec: Move AC_LIBOBJ invocations to module description.
27399         * m4/cloexec.m4: Remove file.
27400         * modules/cloexec (Files): Remove it.
27401         (configure.ac): Remove gl_CLOEXEC call.
27402         (Makefile.am): Augment lib_SOURCES.
27404 2011-05-23  Bruno Haible  <bruno@clisp.org>
27406         check-version: Move AC_LIBOBJ invocations to module description.
27407         * m4/check-version.m4: Remove file.
27408         * modules/check-version (Files): Remove it.
27409         (configure.ac): Remove gl_CHECK_VERSION call.
27410         (Makefile.am): Augment lib_SOURCES.
27412 2011-05-23  Bruno Haible  <bruno@clisp.org>
27414         chdir-safer: Move AC_LIBOBJ invocations to module description.
27415         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
27416         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
27418 2011-05-23  Bruno Haible  <bruno@clisp.org>
27420         canonicalize: Move AC_LIBOBJ invocations to module description.
27421         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
27422         AC_LIBOBJ invocation.
27423         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
27425 2011-05-23  Bruno Haible  <bruno@clisp.org>
27427         canon-host: Move AC_LIBOBJ invocations to module description.
27428         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
27429         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
27430         instead of gl_CANON_HOST.
27431         (Makefile.am): Augment lib_SOURCES.
27433 2011-05-23  Bruno Haible  <bruno@clisp.org>
27435         backupfile: Move AC_LIBOBJ invocations to module description.
27436         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
27437         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
27439 2011-05-23  Bruno Haible  <bruno@clisp.org>
27441         argmatch: Move AC_LIBOBJ invocations to module description.
27442         * m4/argmatch.m4: Remove file.
27443         * modules/argmatch (Files): Remove it.
27444         (configure.ac): Remove gl_ARGMATCH call.
27445         (Makefile.am): Augment lib_SOURCES.
27447 2011-05-23  Bruno Haible  <bruno@clisp.org>
27449         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
27450         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
27451         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
27453 2011-05-23  Bruno Haible  <bruno@clisp.org>
27455         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
27456         * m4/arcfour.m4: Remove file.
27457         * modules/crypto/arcfour (Files): Remove it.
27458         (configure.ac): Remove gl_ARCFOUR call.
27459         (Makefile.am): Augment lib_SOURCES.
27461 2011-05-22  Bruno Haible  <bruno@clisp.org>
27463         write: Move AC_LIBOBJ invocations to module description.
27464         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
27465         * modules/write (configure.ac): ... to here.
27467 2011-05-22  Bruno Haible  <bruno@clisp.org>
27469         wmemset: Move AC_LIBOBJ invocations to module description.
27470         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
27471         here...
27472         * modules/wmemset (configure.ac): ... to here.
27474 2011-05-22  Bruno Haible  <bruno@clisp.org>
27476         wmemmove: Move AC_LIBOBJ invocations to module description.
27477         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
27478         here...
27479         * modules/wmemmove (configure.ac): ... to here.
27481 2011-05-22  Bruno Haible  <bruno@clisp.org>
27483         wmemcpy: Move AC_LIBOBJ invocations to module description.
27484         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
27485         here...
27486         * modules/wmemcpy (configure.ac): ... to here.
27488 2011-05-22  Bruno Haible  <bruno@clisp.org>
27490         wmemcmp: Move AC_LIBOBJ invocations to module description.
27491         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
27492         here...
27493         * modules/wmemcmp (configure.ac): ... to here.
27495 2011-05-22  Bruno Haible  <bruno@clisp.org>
27497         wmemchr: Move AC_LIBOBJ invocations to module description.
27498         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
27499         here...
27500         * modules/wmemchr (configure.ac): ... to here.
27502 2011-05-22  Bruno Haible  <bruno@clisp.org>
27504         wcswidth: Move AC_LIBOBJ invocations to module description.
27505         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
27506         here...
27507         * modules/wcswidth (configure.ac): ... to here.
27509 2011-05-22  Bruno Haible  <bruno@clisp.org>
27511         wcwidth: Respect rules for use of AC_LIBOBJ.
27512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
27513         invocation from here...
27514         * modules/wcwidth (configure.ac): ... to here.
27515         (Depends-on): Update conditions.
27517 2011-05-22  Bruno Haible  <bruno@clisp.org>
27519         wctype: Move AC_LIBOBJ invocations to module description.
27520         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
27521         invocation from here...
27522         * modules/wctype (configure.ac): ... to here.
27523         (Depends-on): Update conditions.
27525 2011-05-22  Bruno Haible  <bruno@clisp.org>
27527         wctrans: Move AC_LIBOBJ invocations to module description.
27528         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
27529         invocation from here...
27530         * modules/wctrans (configure.ac): ... to here.
27532 2011-05-22  Bruno Haible  <bruno@clisp.org>
27534         wctomb: Move AC_LIBOBJ invocations to module description.
27535         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
27536         invocations from here...
27537         * modules/wctomb (configure.ac): ... to here.
27539 2011-05-22  Bruno Haible  <bruno@clisp.org>
27541         wctob: Move AC_LIBOBJ invocations to module description.
27542         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
27543         gl_PREREQ_WCTOB invocations from here...
27544         * modules/wctob (configure.ac): ... to here.
27545         (Depends-on): Update conditions.
27547 2011-05-22  Bruno Haible  <bruno@clisp.org>
27549         wcsxfrm: Move AC_LIBOBJ invocations to module description.
27550         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
27551         here...
27552         * modules/wcsxfrm (configure.ac): ... to here.
27554 2011-05-22  Bruno Haible  <bruno@clisp.org>
27556         wcstok: Move AC_LIBOBJ invocations to module description.
27557         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
27558         * modules/wcstok (configure.ac): ... to here.
27560 2011-05-22  Bruno Haible  <bruno@clisp.org>
27562         wcsstr: Move AC_LIBOBJ invocations to module description.
27563         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
27564         * modules/wcsstr (configure.ac): ... to here.
27566 2011-05-22  Bruno Haible  <bruno@clisp.org>
27568         wcsspn: Move AC_LIBOBJ invocations to module description.
27569         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
27570         * modules/wcsspn (configure.ac): ... to here.
27572 2011-05-22  Bruno Haible  <bruno@clisp.org>
27574         wcsrtombs: Move AC_LIBOBJ invocations to module description.
27575         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
27576         gl_PREREQ_WCSRTOMBS invocations from here...
27577         * modules/wcsrtombs (configure.ac): ... to here.
27579 2011-05-22  Bruno Haible  <bruno@clisp.org>
27581         wcsrchr: Move AC_LIBOBJ invocations to module description.
27582         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
27583         here...
27584         * modules/wcsrchr (configure.ac): ... to here.
27586 2011-05-22  Bruno Haible  <bruno@clisp.org>
27588         wcspbrk: Move AC_LIBOBJ invocations to module description.
27589         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
27590         here...
27591         * modules/wcspbrk (configure.ac): ... to here.
27593 2011-05-22  Bruno Haible  <bruno@clisp.org>
27595         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
27596         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
27597         gl_PREREQ_WCSNRTOMBS invocations from here...
27598         * modules/wcsnrtombs (configure.ac): ... to here.
27600 2011-05-22  Bruno Haible  <bruno@clisp.org>
27602         wcsnlen: Move AC_LIBOBJ invocations to module description.
27603         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
27604         here...
27605         * modules/wcsnlen (configure.ac): ... to here.
27607 2011-05-22  Bruno Haible  <bruno@clisp.org>
27609         wcsncpy: Move AC_LIBOBJ invocations to module description.
27610         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
27611         here...
27612         * modules/wcsncpy (configure.ac): ... to here.
27614 2011-05-22  Bruno Haible  <bruno@clisp.org>
27616         wcsncmp: Move AC_LIBOBJ invocations to module description.
27617         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
27618         here...
27619         * modules/wcsncmp (configure.ac): ... to here.
27621 2011-05-22  Bruno Haible  <bruno@clisp.org>
27623         wcsncat: Move AC_LIBOBJ invocations to module description.
27624         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
27625         here...
27626         * modules/wcsncat (configure.ac): ... to here.
27628 2011-05-22  Bruno Haible  <bruno@clisp.org>
27630         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
27631         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
27632         from here...
27633         * modules/wcsncasecmp (configure.ac): ... to here.
27635 2011-05-22  Bruno Haible  <bruno@clisp.org>
27637         wcslen: Move AC_LIBOBJ invocations to module description.
27638         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
27639         * modules/wcslen (configure.ac): ... to here.
27641 2011-05-22  Bruno Haible  <bruno@clisp.org>
27643         wcsdup: Move AC_LIBOBJ invocations to module description.
27644         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
27645         * modules/wcsdup (configure.ac): ... to here.
27647 2011-05-22  Bruno Haible  <bruno@clisp.org>
27649         wcscspn: Move AC_LIBOBJ invocations to module description.
27650         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
27651         here...
27652         * modules/wcscspn (configure.ac): ... to here.
27654 2011-05-22  Bruno Haible  <bruno@clisp.org>
27656         wcscpy: Move AC_LIBOBJ invocations to module description.
27657         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
27658         * modules/wcscpy (configure.ac): ... to here.
27660 2011-05-22  Bruno Haible  <bruno@clisp.org>
27662         wcscoll: Move AC_LIBOBJ invocations to module description.
27663         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
27664         here...
27665         * modules/wcscoll (configure.ac): ... to here.
27667 2011-05-22  Bruno Haible  <bruno@clisp.org>
27669         wcscmp: Move AC_LIBOBJ invocations to module description.
27670         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
27671         * modules/wcscmp (configure.ac): ... to here.
27673 2011-05-22  Bruno Haible  <bruno@clisp.org>
27675         wcschr: Move AC_LIBOBJ invocations to module description.
27676         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
27677         * modules/wcschr (configure.ac): ... to here.
27679 2011-05-22  Bruno Haible  <bruno@clisp.org>
27681         wcscat: Move AC_LIBOBJ invocations to module description.
27682         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
27683         * modules/wcscat (configure.ac): ... to here.
27685 2011-05-22  Bruno Haible  <bruno@clisp.org>
27687         wcscasecmp: Move AC_LIBOBJ invocations to module description.
27688         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
27689         here...
27690         * modules/wcscasecmp (configure.ac): ... to here.
27692 2011-05-22  Bruno Haible  <bruno@clisp.org>
27694         wcrtomb: Move AC_LIBOBJ invocations to module description.
27695         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
27696         invocations from here...
27697         * modules/wcrtomb (configure.ac): ... to here.
27699 2011-05-22  Bruno Haible  <bruno@clisp.org>
27701         wcpncpy: Move AC_LIBOBJ invocations to module description.
27702         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
27703         here...
27704         * modules/wcpncpy (configure.ac): ... to here.
27706 2011-05-22  Bruno Haible  <bruno@clisp.org>
27708         wcpcpy: Move AC_LIBOBJ invocations to module description.
27709         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
27710         * modules/wcpcpy (configure.ac): ... to here.
27712 2011-05-22  Bruno Haible  <bruno@clisp.org>
27714         waitpid: Move AC_LIBOBJ invocations to module description.
27715         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
27716         invocation from here...
27717         * modules/waitpid (configure.ac): ... to here.
27719 2011-05-22  Bruno Haible  <bruno@clisp.org>
27721         utimensat: Move AC_LIBOBJ invocations to module description.
27722         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
27723         here...
27724         * modules/utimensat (configure.ac): ... to here.
27726 2011-05-22  Bruno Haible  <bruno@clisp.org>
27728         usleep: Move AC_LIBOBJ invocations to module description.
27729         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
27730         here...
27731         * modules/usleep (configure.ac): ... to here.
27733 2011-05-22  Bruno Haible  <bruno@clisp.org>
27735         unlockpt: Move AC_LIBOBJ invocations to module description.
27736         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
27737         gl_PREREQ_UNLOCKPT invocations from here...
27738         * modules/unlockpt (configure.ac): ... to here.
27740 2011-05-22  Bruno Haible  <bruno@clisp.org>
27742         unlink: Respect rules for use of AC_LIBOBJ.
27743         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
27744         * modules/unlink (configure.ac): ... to here.
27746 2011-05-22  Bruno Haible  <bruno@clisp.org>
27748         uname: Move AC_LIBOBJ invocations to module description.
27749         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
27750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
27751         here...
27752         * modules/uname (configure.ac): ... to here.
27754 2011-05-22  Bruno Haible  <bruno@clisp.org>
27756         ttyname_r: Move AC_LIBOBJ invocations to module description.
27757         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
27758         gl_PREREQ_TTYNAME_R invocations from here...
27759         * modules/ttyname_r (configure.ac): ... to here.
27761 2011-05-22  Bruno Haible  <bruno@clisp.org>
27763         tsearch: Move AC_LIBOBJ invocations to module description.
27764         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
27765         invocations from here...
27766         * modules/tsearch (configure.ac): ... to here.
27768 2011-05-22  Bruno Haible  <bruno@clisp.org>
27770         towctrans: Move AC_LIBOBJ invocations to module description.
27771         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
27772         AC_LIBOBJ invocation from here...
27773         * modules/towctrans (configure.ac): ... to here.
27775 2011-05-22  Bruno Haible  <bruno@clisp.org>
27777         tmpfile: Move AC_LIBOBJ invocations to module description.
27778         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
27779         invocations from here...
27780         * modules/tmpfile (configure.ac): ... to here.
27782 2011-05-22  Bruno Haible  <bruno@clisp.org>
27784         times: Move AC_LIBOBJ invocations to module description.
27785         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
27786         * modules/times (configure.ac): ... to here.
27788 2011-05-22  Bruno Haible  <bruno@clisp.org>
27790         time_r: Move AC_LIBOBJ invocations to module description.
27791         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
27792         invocations from here...
27793         * modules/time_r (configure.ac): ... to here.
27795 2011-05-22  Bruno Haible  <bruno@clisp.org>
27797         timegm: Move AC_LIBOBJ invocations to module description.
27798         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
27799         invocations from here...
27800         * modules/timegm (configure.ac): ... to here.
27802 2011-05-22  Bruno Haible  <bruno@clisp.org>
27804         tcgetsid: Move AC_LIBOBJ invocations to module description.
27805         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
27806         and gl_PREREQ_TCGETSID invocations from here...
27807         * modules/tcgetsid (configure.ac): ... to here.
27808         (Depends-on): Update conditions.
27810 2011-05-22  Bruno Haible  <bruno@clisp.org>
27812         symlinkat: Move AC_LIBOBJ invocations to module description.
27813         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
27814         here...
27815         * modules/symlinkat (configure.ac): ... to here.
27817 2011-05-22  Bruno Haible  <bruno@clisp.org>
27819         symlink: Move AC_LIBOBJ invocations to module description.
27820         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
27821         here...
27822         * modules/symlink (configure.ac): ... to here.
27824 2011-05-22  Bruno Haible  <bruno@clisp.org>
27826         strverscmp: Move AC_LIBOBJ invocations to module description.
27827         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
27828         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
27829         from here...
27830         * modules/strverscmp (configure.ac): ... to here.
27832 2011-05-22  Bruno Haible  <bruno@clisp.org>
27834         strtok_r: Move AC_LIBOBJ invocations to module description.
27835         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
27836         and gl_PREREQ_STRTOK_R invocations from here...
27837         * modules/strtok_r (configure.ac): ... to here.
27838         (Depends-on): Update conditions.
27840 2011-05-22  Bruno Haible  <bruno@clisp.org>
27842         strtoumax: Move AC_LIBOBJ invocations to module description.
27843         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
27844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
27845         from here...
27846         * modules/strtoumax (configure.ac): ... to here.
27848 2011-05-22  Bruno Haible  <bruno@clisp.org>
27850         strtoimax: Move AC_LIBOBJ invocations to module description.
27851         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
27852         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
27853         from here...
27854         * modules/strtoimax (configure.ac): ... to here.
27856 2011-05-22  Bruno Haible  <bruno@clisp.org>
27858         strtoull: Move AC_LIBOBJ invocations to module description.
27859         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
27860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
27861         from here...
27862         * modules/strtoull (configure.ac): ... to here.
27864 2011-05-22  Bruno Haible  <bruno@clisp.org>
27866         strtoll: Move AC_LIBOBJ invocations to module description.
27867         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
27868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
27869         here...
27870         * modules/strtoll (configure.ac): ... to here.
27872 2011-05-22  Bruno Haible  <bruno@clisp.org>
27874         strtoul: Move AC_LIBOBJ invocations to module description.
27875         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
27876         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
27877         * modules/strtoul (configure.ac): ... to here.
27879 2011-05-22  Bruno Haible  <bruno@clisp.org>
27881         strtol: Move AC_LIBOBJ invocations to module description.
27882         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
27883         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
27884         * modules/strtol (configure.ac): ... to here.
27886 2011-05-22  Bruno Haible  <bruno@clisp.org>
27888         strtod: Move AC_LIBOBJ invocations to module description.
27889         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
27890         invocations from here...
27891         * modules/strtod (configure.ac): ... to here.
27893 2011-05-22  Bruno Haible  <bruno@clisp.org>
27895         strstr*: Move AC_LIBOBJ invocations to module description.
27896         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
27897         invocations from here...
27898         * modules/strstr-simple (configure.ac): ... to here.
27899         * modules/strstr (configure.ac): ... and here.
27901 2011-05-22  Bruno Haible  <bruno@clisp.org>
27903         strsignal: Move AC_LIBOBJ invocations to module description.
27904         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
27905         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
27906         * modules/strsignal (configure.ac): ... to here.
27907         (Depends-on): Update conditions.
27909 2011-05-22  Bruno Haible  <bruno@clisp.org>
27911         strsep: Move AC_LIBOBJ invocations to module description.
27912         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
27913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
27914         here...
27915         * modules/strsep (configure.ac): ... to here.
27917 2011-05-22  Bruno Haible  <bruno@clisp.org>
27919         strptime: Move AC_LIBOBJ invocations to module description.
27920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
27921         gl_PREREQ_STRPTIME invocations from here...
27922         * modules/strptime (configure.ac): ... to here.
27924 2011-05-22  Bruno Haible  <bruno@clisp.org>
27926         strpbrk: Move AC_LIBOBJ invocations to module description.
27927         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
27928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
27929         here...
27930         * modules/strpbrk (configure.ac): ... to here.
27932 2011-05-22  Bruno Haible  <bruno@clisp.org>
27934         strnlen: Move AC_LIBOBJ invocations to module description.
27935         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
27936         invocations from here...
27937         * modules/strnlen (configure.ac): ... to here.
27939 2011-05-22  Bruno Haible  <bruno@clisp.org>
27941         strndup: Move AC_LIBOBJ invocations to module description.
27942         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
27943         invocations from here...
27944         * modules/strndup (configure.ac): ... to here.
27945         (Depends-on): Update conditions.
27947 2011-05-22  Bruno Haible  <bruno@clisp.org>
27949         strncat: Move AC_LIBOBJ invocations to module description.
27950         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
27951         invocations from here...
27952         * modules/strncat (configure.ac): ... to here.
27954 2011-05-22  Bruno Haible  <bruno@clisp.org>
27956         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
27957         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
27958         invocations from here...
27959         * modules/strdup (configure.ac): ... to here.
27960         * modules/strdup-posix (configure.ac): ... and here.
27962 2011-05-22  Bruno Haible  <bruno@clisp.org>
27964         strcspn: Move AC_LIBOBJ invocations to module description.
27965         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
27966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
27967         here...
27968         * modules/strcspn (configure.ac): ... to here.
27970 2011-05-22  Bruno Haible  <bruno@clisp.org>
27972         strchrnul: Move AC_LIBOBJ invocations to module description.
27973         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
27974         gl_PREREQ_STRCHRNUL invocations from here...
27975         * modules/strchrnul (configure.ac): ... to here.
27977 2011-05-22  Bruno Haible  <bruno@clisp.org>
27979         strcasestr*: Move AC_LIBOBJ invocations to module description.
27980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27981         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
27982         * modules/strcasestr-simple (configure.ac): ... to here.
27983         * modules/strcasestr (configure.ac): ... and here.
27985 2011-05-22  Bruno Haible  <bruno@clisp.org>
27987         strcase: Move AC_LIBOBJ invocations to module description.
27988         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
27989         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
27990         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
27991         gl_PREREQ_STRNCASECMP invocations from here...
27992         * modules/strcase (configure.ac): ... to here.
27994 2011-05-22  Bruno Haible  <bruno@clisp.org>
27996         stpncpy: Move AC_LIBOBJ invocations to module description.
27997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
27998         here...
27999         * modules/stpncpy (configure.ac): ... to here.
28001 2011-05-22  Bruno Haible  <bruno@clisp.org>
28003         stpcpy: Move AC_LIBOBJ invocations to module description.
28004         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
28005         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
28006         here...
28007         * modules/stpcpy (configure.ac): ... to here.
28009 2011-05-21  Bruno Haible  <bruno@clisp.org>
28011         stat: Move AC_LIBOBJ invocations to module description.
28012         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
28013         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
28014         here...
28015         * modules/stat (configure.ac): ... to here.
28017 2011-05-21  Bruno Haible  <bruno@clisp.org>
28019         sleep: Move AC_LIBOBJ invocations to module description.
28020         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
28021         * modules/sleep (configure.ac): ... to here.
28023 2011-05-21  Bruno Haible  <bruno@clisp.org>
28025         signbit: Move AC_LIBOBJ invocations to module description.
28026         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
28027         * modules/signbit (configure.ac): ... to here.
28029 2011-05-21  Bruno Haible  <bruno@clisp.org>
28031         sigprocmask: Move AC_LIBOBJ invocations to module description.
28032         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
28033         gl_PREREQ_SIGPROMASK invocations from here...
28034         * modules/sigprocmask (configure.ac): ... to here.
28036 2011-05-21  Bruno Haible  <bruno@clisp.org>
28038         sigaction: Move AC_LIBOBJ invocations to module description.
28039         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
28040         gl_PREREQ_SIGACTION invocations from here...
28041         * modules/sigaction (configure.ac): ... to here.
28043 2011-05-21  Bruno Haible  <bruno@clisp.org>
28045         sig2str: Move AC_LIBOBJ invocations to module description.
28046         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
28047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
28048         here...
28049         * modules/sig2str (configure.ac): ... to here.
28051 2011-05-21  Bruno Haible  <bruno@clisp.org>
28053         setlocale: Move AC_LIBOBJ invocations to module description.
28054         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
28055         gl_PREREQ_SETLOCALE invocations from here...
28056         * modules/setlocale (configure.ac): ... to here.
28058 2011-05-21  Bruno Haible  <bruno@clisp.org>
28060         unsetenv: Move AC_LIBOBJ invocations to module description.
28061         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
28062         and gl_PREREQ_UNSETENV invocations from here...
28063         * modules/unsetenv (configure.ac): ... to here.
28064         (Depends-on): Update.
28066 2011-05-21  Bruno Haible  <bruno@clisp.org>
28068         setenv: Move AC_LIBOBJ invocations to module description.
28069         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
28070         here...
28071         * modules/setenv (configure.ac): ... to here.
28073 2011-05-21  Bruno Haible  <bruno@clisp.org>
28075         selinux-h: Move AC_LIBOBJ invocations to module description.
28076         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
28077         AC_LIBOBJ invocation from here...
28078         * modules/selinux-h (configure.ac): ... to here.
28080 2011-05-21  Bruno Haible  <bruno@clisp.org>
28082         select: Respect rules for use of AC_LIBOBJ.
28083         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
28084         here...
28085         * modules/select (configure.ac): ... to here.
28087 2011-05-21  Bruno Haible  <bruno@clisp.org>
28089         scandir: Move AC_LIBOBJ invocations to module description.
28090         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
28091         invocations from here...
28092         * modules/scandir (configure.ac): ... to here.
28094 2011-05-21  Bruno Haible  <bruno@clisp.org>
28096         rpmatch: Move AC_LIBOBJ invocations to module description.
28097         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
28098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
28099         here...
28100         * modules/rpmatch (configure.ac): ... to here.
28102 2011-05-21  Bruno Haible  <bruno@clisp.org>
28104         rmdir: Respect rules for use of AC_LIBOBJ.
28105         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
28106         * modules/rmdir (configure.ac): ... to here.
28108 2011-05-21  Bruno Haible  <bruno@clisp.org>
28110         renameat: Move AC_LIBOBJ invocations to module description.
28111         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
28112         here...
28113         * modules/renameat (configure.ac): ... to here.
28115 2011-05-21  Bruno Haible  <bruno@clisp.org>
28117         rename: Respect rules for use of AC_LIBOBJ.
28118         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
28119         here...
28120         * modules/rename (configure.ac): ... to here.
28122 2011-05-21  Bruno Haible  <bruno@clisp.org>
28124         remove: Move AC_LIBOBJ invocations to module description.
28125         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
28126         here...
28127         * modules/remove (configure.ac): ... to here.
28129 2011-05-21  Bruno Haible  <bruno@clisp.org>
28131         relocatable-lib: Move AC_LIBOBJ invocations to module description.
28132         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
28133         macro.
28134         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
28135         * modules/relocatable-lib (configure.ac): ... to here.
28136         * modules/relocatable-prog-wrapper (configure.ac): Invoke
28137         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
28139 2011-05-21  Bruno Haible  <bruno@clisp.org>
28141         relocatable-prog: Move AC_LIBOBJ invocations to module description.
28142         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
28143         here...
28144         * modules/relocatable-prog (configure.ac): ... to here.
28146 2011-05-21  Bruno Haible  <bruno@clisp.org>
28148         regex: Move AC_LIBOBJ invocations to module description.
28149         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
28150         invocations from here...
28151         * modules/regex (configure.ac): ... to here.
28153 2011-05-21  Bruno Haible  <bruno@clisp.org>
28155         realloc-*: Move AC_LIBOBJ invocations to module description.
28156         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
28157         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
28158         AC_LIBOBJ invocations from here...
28159         * modules/realloc-gnu (configure.ac): ... to here.
28160         * modules/realloc-posix (configure.ac): ... and here.
28162 2011-05-21  Bruno Haible  <bruno@clisp.org>
28164         readutmp: Move AC_LIBOBJ invocations to module description.
28165         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
28166         * modules/readutmp (configure.ac): ... to here.
28168 2011-05-21  Bruno Haible  <bruno@clisp.org>
28170         readlinkat: Move AC_LIBOBJ invocations to module description.
28171         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
28172         here...
28173         * modules/readlinkat (configure.ac): ... to here.
28175 2011-05-21  Bruno Haible  <bruno@clisp.org>
28177         readlink: Move AC_LIBOBJ invocations to module description.
28178         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
28179         gl_PREREQ_READLINK invocations from here...
28180         * modules/readlink (configure.ac): ... to here.
28182 2011-05-21  Bruno Haible  <bruno@clisp.org>
28184         readline: Move AC_LIBOBJ invocations to module description.
28185         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
28186         gl_PREREQ_READLINE invocations from here...
28187         * modules/readline (configure.ac): ... to here.
28189 2011-05-21  Bruno Haible  <bruno@clisp.org>
28191         read: Move AC_LIBOBJ invocations to module description.
28192         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
28193         * modules/read (configure.ac): ... to here.
28195 2011-05-21  Bruno Haible  <bruno@clisp.org>
28197         rawmemchr: Move AC_LIBOBJ invocations to module description.
28198         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
28199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
28200         from here...
28201         * modules/rawmemchr (configure.ac): ... to here.
28203 2011-05-21  Bruno Haible  <bruno@clisp.org>
28205         random_r: Move AC_LIBOBJ invocations to module description.
28206         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
28207         gl_PREREQ_RANDOM_R invocations from here...
28208         * modules/random_r (configure.ac): ... to here.
28210 2011-05-21  Bruno Haible  <bruno@clisp.org>
28212         pwrite: Move AC_LIBOBJ invocations to module description.
28213         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
28214         * modules/pwrite (configure.ac): ... to here.
28216 2011-05-21  Bruno Haible  <bruno@clisp.org>
28218         putenv: Move AC_LIBOBJ invocations to module description.
28219         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
28220         * modules/putenv (configure.ac): ... to here.
28222 2011-05-21  Bruno Haible  <bruno@clisp.org>
28224         login_tty: Move AC_LIBOBJ invocations to module description.
28225         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
28226         * modules/login_tty (configure.ac): ... to here.
28228 2011-05-21  Bruno Haible  <bruno@clisp.org>
28230         openpty: Move AC_LIBOBJ invocations to module description.
28231         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
28232         * modules/openpty (configure.ac): ... to here.
28234 2011-05-21  Bruno Haible  <bruno@clisp.org>
28236         forkpty: Move AC_LIBOBJ invocations to module description.
28237         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
28238         * modules/forkpty (configure.ac): ... to here.
28240 2011-05-21  Bruno Haible  <bruno@clisp.org>
28242         ptsname: Move AC_LIBOBJ invocations to module description.
28243         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
28244         invocations from here...
28245         * modules/ptsname (configure.ac): ... to here.
28247 2011-05-21  Bruno Haible  <bruno@clisp.org>
28249         pread: Move AC_LIBOBJ invocations to module description.
28250         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
28251         * modules/pread (configure.ac): ... to here.
28253 2011-05-21  Bruno Haible  <bruno@clisp.org>
28255         posix_spawn*: Move AC_LIBOBJ invocations to module description.
28256         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
28257         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
28258         * modules/posix_spawn (configure.ac): ... to here.
28259         * modules/posix_spawnp (configure.ac): ... and here.
28261 2011-05-21  Bruno Haible  <bruno@clisp.org>
28263         popen: Move AC_LIBOBJ invocations to module description.
28264         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
28265         invocations from here...
28266         * modules/popen (configure.ac): ... to here.
28268 2011-05-21  Bruno Haible  <bruno@clisp.org>
28270         poll: Move AC_LIBOBJ invocations to module description.
28271         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
28272         invocations from here...
28273         * modules/poll (configure.ac): ... to here.
28275 2011-05-21  Bruno Haible  <bruno@clisp.org>
28277         pipe-posix: Move AC_LIBOBJ invocations to module description.
28278         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
28279         * modules/pipe-posix (configure.ac): ... to here.
28281 2011-05-21  Bruno Haible  <bruno@clisp.org>
28283         openat: Respect rules for use of AC_LIBOBJ.
28284         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
28285         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
28286         * modules/openat (configure.ac): ... to here.
28288 2011-05-21  Bruno Haible  <bruno@clisp.org>
28290         obstack-printf*: Move AC_LIBOBJ invocations to module description.
28291         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
28292         invocation from here...
28293         * modules/obstack-printf (configure.ac): ... to here.
28294         * modules/obstack-printf-posix (configure.ac): ... and here.
28296 2011-05-21  Bruno Haible  <bruno@clisp.org>
28298         nl_langinfo: Move AC_LIBOBJ invocations to module description.
28299         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
28300         from here...
28301         * modules/nl_langinfo (configure.ac): ... to here.
28303 2011-05-21  Bruno Haible  <bruno@clisp.org>
28305         nanosleep: Move AC_LIBOBJ invocations to module description.
28306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
28307         gl_PREREQ_NANOSLEEP invocations from here...
28308         * modules/nanosleep (configure.ac): ... to here.
28310 2011-05-21  Bruno Haible  <bruno@clisp.org>
28312         mountlist: Move AC_LIBOBJ invocations to module description.
28313         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
28314         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
28315         * modules/mountlist (configure.ac): ... to here.
28317 2011-05-21  Bruno Haible  <bruno@clisp.org>
28319         mktime: Respect rules for use of AC_LIBOBJ.
28320         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
28321         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
28322         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
28323         (gl_FUNC_MKTIME_INTERNAL): ... and here...
28324         * modules/mktime (configure.ac): ... to here.
28325         * modules/mktime-internal (configure.ac): ... and here.
28326         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
28328 2011-05-21  Bruno Haible  <bruno@clisp.org>
28330         mkstemps: Move AC_LIBOBJ invocations to module description.
28331         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
28332         here...
28333         * modules/mkstemps (configure.ac): ... to here.
28335 2011-05-21  Bruno Haible  <bruno@clisp.org>
28337         mkstemp: Move AC_LIBOBJ invocations to module description.
28338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
28339         gl_PREREQ_MKSTEMP invocations from here...
28340         * modules/mkstemp (configure.ac): ... to here.
28342 2011-05-21  Bruno Haible  <bruno@clisp.org>
28344         mkostemps: Move AC_LIBOBJ invocations to module description.
28345         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
28346         here...
28347         * modules/mkostemps (configure.ac): ... to here.
28349 2011-05-21  Bruno Haible  <bruno@clisp.org>
28351         mkostemp: Move AC_LIBOBJ invocations to module description.
28352         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
28353         gl_PREREQ_MKOSTEMP invocations from here...
28354         * modules/mkostemp (configure.ac): ... to here.
28356 2011-05-21  Bruno Haible  <bruno@clisp.org>
28358         mknod: Move AC_LIBOBJ invocations to module description.
28359         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
28360         * modules/mknod (configure.ac): ... to here.
28362 2011-05-21  Bruno Haible  <bruno@clisp.org>
28364         mkfifoat: Move AC_LIBOBJ invocations to module description.
28365         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
28366         here...
28367         * modules/mkfifoat (configure.ac): ... to here.
28369 2011-05-21  Bruno Haible  <bruno@clisp.org>
28371         mkfifo: Respect rules for use of AC_LIBOBJ.
28372         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
28373         here...
28374         * modules/mkfifo (configure.ac): ... to here.
28376 2011-05-21  Bruno Haible  <bruno@clisp.org>
28378         mkdtemp: Move AC_LIBOBJ invocations to module description.
28379         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
28380         invocations from here...
28381         * modules/mkdtemp (configure.ac): ... to here.
28383 2011-05-21  Bruno Haible  <bruno@clisp.org>
28385         mkdir: Move AC_LIBOBJ invocations to module description.
28386         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
28387         * modules/mkdir (configure.ac): ... to here.
28389 2011-05-21  Bruno Haible  <bruno@clisp.org>
28391         memset: Move AC_LIBOBJ invocations to module description.
28392         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
28393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
28394         here...
28395         * modules/memset (configure.ac): ... to here.
28397 2011-05-21  Bruno Haible  <bruno@clisp.org>
28399         memrchr: Move AC_LIBOBJ invocations to module description.
28400         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
28401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
28402         here...
28403         * modules/memrchr (configure.ac): ... to here.
28405 2011-05-21  Bruno Haible  <bruno@clisp.org>
28407         mempcpy: Move AC_LIBOBJ invocations to module description.
28408         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
28409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
28410         here...
28411         * modules/mempcpy (configure.ac): ... to here.
28413 2011-05-21  Bruno Haible  <bruno@clisp.org>
28415         memmove: Move AC_LIBOBJ invocations to module description.
28416         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
28417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
28418         here...
28419         * modules/memmove (configure.ac): ... to here.
28421 2011-05-21  Bruno Haible  <bruno@clisp.org>
28423         memmem*: Move AC_LIBOBJ invocations to module description.
28424         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
28425         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
28426         here...
28427         (gl_FUNC_MEMMEM): ... and here...
28428         * modules/memmem-simple (configure.ac): ... to here.
28429         * modules/memmem (configure.ac): ... and here.
28431 2011-05-21  Bruno Haible  <bruno@clisp.org>
28433         memcpy: Move AC_LIBOBJ invocations to module description.
28434         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
28435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
28436         here...
28437         * modules/memcpy (configure.ac): ... to here.
28439 2011-05-21  Bruno Haible  <bruno@clisp.org>
28441         memcmp: Simplify autoconf macro.
28442         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
28443         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
28444         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
28446 2011-05-21  Bruno Haible  <bruno@clisp.org>
28448         memcmp: Move AC_LIBOBJ invocations to module description.
28449         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
28450         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
28451         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
28452         * modules/memcmp (configure.ac): ... to here.
28453         (Depends-on): Update conditions.
28455 2011-05-21  Bruno Haible  <bruno@clisp.org>
28457         memchr: Respect rules for use of AC_LIBOBJ.
28458         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
28459         invocations from here...
28460         * modules/memchr (configure.ac): ... to here.
28462 2011-05-21  Bruno Haible  <bruno@clisp.org>
28464         mbtowc: Move AC_LIBOBJ invocations to module description.
28465         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
28466         invocations from here...
28467         * modules/mbtowc (configure.ac): ... to here.
28469 2011-05-21  Bruno Haible  <bruno@clisp.org>
28471         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
28472         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
28473         gl_PREREQ_MBSRTOWCS invocations from here...
28474         * modules/mbsrtowcs (configure.ac): ... to here.
28476 2011-05-21  Bruno Haible  <bruno@clisp.org>
28478         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
28479         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
28480         gl_PREREQ_MBSNRTOWCS invocations from here...
28481         * modules/mbsnrtowcs (configure.ac): ... to here.
28483 2011-05-21  Bruno Haible  <bruno@clisp.org>
28485         mbsinit: Move AC_LIBOBJ invocations to module description.
28486         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
28487         invocations from here...
28488         * modules/mbsinit (configure.ac): ... to here.
28490 2011-05-21  Bruno Haible  <bruno@clisp.org>
28492         mbrlen: Move AC_LIBOBJ invocations to module description.
28493         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
28494         invocations from here...
28495         * modules/mbrlen (configure.ac): ... to here.
28497 2011-05-21  Bruno Haible  <bruno@clisp.org>
28499         mbrtowc: Respect rules for use of AC_LIBOBJ.
28500         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
28501         invocations from here...
28502         * modules/mbrtowc (configure.ac): ... to here.
28504 2011-05-21  Bruno Haible  <bruno@clisp.org>
28506         malloc-*: Move AC_LIBOBJ invocations to module description.
28507         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
28508         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
28509         AC_LIBOBJ invocations from here...
28510         * modules/malloc-gnu (configure.ac): ... to here.
28511         * modules/malloc-posix (configure.ac): ... and here.
28513 2011-05-21  Bruno Haible  <bruno@clisp.org>
28515         lstat, openat: Respect rules for use of AC_LIBOBJ.
28516         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
28517         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
28518         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
28519         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
28520         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
28521         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
28522         here.
28523         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
28525 2011-05-21  Bruno Haible  <bruno@clisp.org>
28527         lseek: Move AC_LIBOBJ invocations to module description.
28528         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
28529         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
28530         * modules/lseek (configure.ac): ... to here.
28532 2011-05-21  Bruno Haible  <bruno@clisp.org>
28534         linkat: Move AC_LIBOBJ invocations to module description.
28535         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
28536         here...
28537         * modules/linkat (configure.ac): ... to here.
28539 2011-05-21  Bruno Haible  <bruno@clisp.org>
28541         link: Respect rules for use of AC_LIBOBJ.
28542         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
28543         * modules/link (configure.ac): ... to here.
28545 2011-05-21  Bruno Haible  <bruno@clisp.org>
28547         lchown: Move AC_LIBOBJ invocations to module description.
28548         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
28549         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
28550         * modules/lchown (configure.ac): ... to here.
28552 2011-05-21  Bruno Haible  <bruno@clisp.org>
28554         iswctype: Move AC_LIBOBJ invocations to module description.
28555         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
28556         here...
28557         * modules/iswctype (configure.ac): ... to here.
28559 2011-05-21  Bruno Haible  <bruno@clisp.org>
28561         iswblank: Move AC_LIBOBJ invocations to module description.
28562         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
28563         here...
28564         * modules/iswblank (configure.ac): ... to here.
28566 2011-05-21  Bruno Haible  <bruno@clisp.org>
28568         atanl: Move AC_LIBOBJ invocations to module description.
28569         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
28570         * modules/atanl (configure.ac): ... to here.
28572 2011-05-21  Bruno Haible  <bruno@clisp.org>
28574         acosl: Move AC_LIBOBJ invocations to module description.
28575         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
28576         * modules/acosl (configure.ac): ... to here.
28578 2011-05-21  Bruno Haible  <bruno@clisp.org>
28580         asinl: Respect rules for use of AC_LIBOBJ.
28581         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
28582         * modules/asinl (configure.ac): ... to here.
28584 2011-05-21  Bruno Haible  <bruno@clisp.org>
28586         tanl: Move AC_LIBOBJ invocations to module description.
28587         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
28588         * modules/tanl (configure.ac): ... to here.
28590 2011-05-21  Bruno Haible  <bruno@clisp.org>
28592         cosl: Move AC_LIBOBJ invocations to module description.
28593         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
28594         * modules/cosl (configure.ac): ... to here.
28596 2011-05-21  Bruno Haible  <bruno@clisp.org>
28598         sinl: Move AC_LIBOBJ invocations to module description.
28599         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
28600         * modules/sinl (configure.ac): ... to here.
28602 2011-05-21  Bruno Haible  <bruno@clisp.org>
28604         logl: Move AC_LIBOBJ invocations to module description.
28605         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
28606         * modules/logl (configure.ac): ... to here.
28608 2011-05-21  Bruno Haible  <bruno@clisp.org>
28610         expl: Move AC_LIBOBJ invocations to module description.
28611         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
28612         * modules/expl (configure.ac): ... to here.
28614 2011-05-21  Bruno Haible  <bruno@clisp.org>
28616         roundl: Move AC_LIBOBJ invocations to module description.
28617         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
28618         * modules/roundl (configure.ac): ... to here.
28620 2011-05-21  Bruno Haible  <bruno@clisp.org>
28622         round: Move AC_LIBOBJ invocations to module description.
28623         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
28624         * modules/round (configure.ac): ... to here.
28626 2011-05-21  Bruno Haible  <bruno@clisp.org>
28628         roundf: Move AC_LIBOBJ invocations to module description.
28629         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
28630         * modules/roundf (configure.ac): ... to here.
28632 2011-05-21  Bruno Haible  <bruno@clisp.org>
28634         truncl: Move AC_LIBOBJ invocations to module description.
28635         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
28636         * modules/truncl (configure.ac): ... to here.
28638 2011-05-21  Bruno Haible  <bruno@clisp.org>
28640         trunc: Move AC_LIBOBJ invocations to module description.
28641         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
28642         * modules/trunc (configure.ac): ... to here.
28644 2011-05-21  Bruno Haible  <bruno@clisp.org>
28646         truncf: Move AC_LIBOBJ invocations to module description.
28647         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
28648         * modules/truncf (configure.ac): ... to here.
28650 2011-05-21  Bruno Haible  <bruno@clisp.org>
28652         ceill: Move AC_LIBOBJ invocations to module description.
28653         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
28654         * modules/ceill (configure.ac): ... to here.
28656 2011-05-21  Bruno Haible  <bruno@clisp.org>
28658         ceil: Move AC_LIBOBJ invocations to module description.
28659         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
28660         * modules/ceil (configure.ac): ... to here.
28662 2011-05-21  Bruno Haible  <bruno@clisp.org>
28664         ceilf: Move AC_LIBOBJ invocations to module description.
28665         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
28666         * modules/ceilf (configure.ac): ... to here.
28668 2011-05-21  Bruno Haible  <bruno@clisp.org>
28670         floorl: Respect rules for use of AC_LIBOBJ.
28671         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
28672         * modules/floorl (configure.ac): ... to here.
28674 2011-05-21  Bruno Haible  <bruno@clisp.org>
28676         floor: Respect rules for use of AC_LIBOBJ.
28677         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
28678         * modules/floor (configure.ac): ... to here.
28680 2011-05-21  Bruno Haible  <bruno@clisp.org>
28682         floorf: Move AC_LIBOBJ invocations to module description.
28683         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
28684         * modules/floorf (configure.ac): ... to here.
28686 2011-05-20  Bruno Haible  <bruno@clisp.org>
28688         sqrtl: Respect rules for use of AC_LIBOBJ.
28689         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
28690         * modules/sqrtl (configure.ac): ... to here.
28692 2011-05-20  Bruno Haible  <bruno@clisp.org>
28694         ldexpl: Respect rules for use of AC_LIBOBJ.
28695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
28696         * modules/ldexpl (configure.ac): ... to here.
28698 2011-05-20  Bruno Haible  <bruno@clisp.org>
28700         frexpl*: Respect rules for use of AC_LIBOBJ.
28701         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
28702         invocation from here...
28703         * modules/frexpl (configure.ac): ... to here.
28704         * modules/frexpl-nolibm (configure.ac): ... and here.
28706 2011-05-20  Bruno Haible  <bruno@clisp.org>
28708         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
28709         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
28710         invocation from here...
28711         * modules/frexp (configure.ac): ... to here.
28712         * modules/frexp-nolibm (configure.ac): ... and here.
28714 2011-05-20  Bruno Haible  <bruno@clisp.org>
28716         isnan: Respect rules for use of AC_LIBOBJ.
28717         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
28718         invocations here.
28719         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
28720         REPLACE_ISNAN.
28721         * modules/isnand (configure.ac): Likewise.
28722         * modules/isnanl (configure.ac): Likewise.
28724 2011-05-20  Bruno Haible  <bruno@clisp.org>
28726         isnanl*: Respect rules for use of AC_LIBOBJ.
28727         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
28728         invocation from here...
28729         * modules/isnanl (configure.ac): ... to here.
28730         * modules/isnanl-nolibm (configure.ac): ... and here.
28732 2011-05-20  Bruno Haible  <bruno@clisp.org>
28734         isnand*: Move AC_LIBOBJ invocations to module description.
28735         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
28736         invocation from here...
28737         * modules/isnand (configure.ac): ... to here.
28738         * modules/isnand-nolibm (configure.ac): ... and here.
28740 2011-05-20  Bruno Haible  <bruno@clisp.org>
28742         isnanf*: Move AC_LIBOBJ invocations to module description.
28743         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
28744         invocation from here...
28745         * modules/isnanf (configure.ac): ... to here.
28746         * modules/isnanf-nolibm (configure.ac): ... and here.
28748 2011-05-20  Bruno Haible  <bruno@clisp.org>
28750         isnan*: Separate the AC_LIBOBJ invocations.
28751         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
28752         AC_LIBOBJ invocation.
28753         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
28754         here.
28755         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
28756         AC_LIBOBJ invocation.
28757         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
28758         here.
28759         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
28760         AC_LIBOBJ invocation.
28761         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
28762         here.
28763         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
28765 2011-05-08  Bruno Haible  <bruno@clisp.org>
28767         isinf: Move AC_LIBOBJ invocations to module description.
28768         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
28769         * modules/isinf (configure.ac): ... to here.
28771 2011-05-08  Bruno Haible  <bruno@clisp.org>
28773         isfinite: Move AC_LIBOBJ invocations to module description.
28774         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
28775         * modules/isfinite (configure.ac): ... to here.
28777 2011-05-08  Bruno Haible  <bruno@clisp.org>
28779         isblank: Move AC_LIBOBJ invocations to module description.
28780         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
28781         here...
28782         * modules/isblank (configure.ac): ... to here.
28784 2011-05-08  Bruno Haible  <bruno@clisp.org>
28786         isapipe: Move AC_LIBOBJ invocations to module description.
28787         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
28788         gl_PREREQ_ISAPIPE invocations from here...
28789         * modules/isapipe (configure.ac): ... to here.
28790         (Depends-on): Update condition.
28792 2011-05-08  Bruno Haible  <bruno@clisp.org>
28794         ioctl: Move AC_LIBOBJ invocations to module description.
28795         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
28796         invocations from here...
28797         * modules/ioctl (configure.ac): ... to here.
28798         (Depends-on): Update condition.
28800 2011-05-08  Bruno Haible  <bruno@clisp.org>
28802         imaxdiv: Move AC_LIBOBJ invocations to module description.
28803         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
28804         invocations from here...
28805         * modules/imaxdiv (configure.ac): ... to here.
28807 2011-05-08  Bruno Haible  <bruno@clisp.org>
28809         imaxabs: Move AC_LIBOBJ invocations to module description.
28810         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
28811         invocations from here...
28812         * modules/imaxabs (configure.ac): ... to here.
28814 2011-05-08  Bruno Haible  <bruno@clisp.org>
28816         getaddrinfo: Move AC_LIBOBJ invocations to module description.
28817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
28818         AC_LIBOBJ invocations from here...
28819         * modules/getaddrinfo (configure.ac): ... to here.
28820         (Depends-on): Add conditions.
28822 2011-05-08  Bruno Haible  <bruno@clisp.org>
28824         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
28825         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
28826         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
28827         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
28828         (gl_PREREQ_INET_PTON): ... from here.
28829         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
28830         gl_PREREQ_INET_PTON here.
28831         (Depends-on): Update condition.
28833 2011-05-08  Bruno Haible  <bruno@clisp.org>
28835         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
28836         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
28837         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
28838         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
28839         (gl_PREREQ_INET_NTOP): ... from here.
28840         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
28841         gl_PREREQ_INET_NTOP here.
28842         (Depends-on): Update condition.
28844 2011-05-08  Bruno Haible  <bruno@clisp.org>
28846         iconv_open: Move AC_LIBOBJ invocations to module description.
28847         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
28848         AC_LIBOBJ invocations from here...
28849         * modules/iconv_open (configure.ac): ... to here.
28851 2011-05-08  Bruno Haible  <bruno@clisp.org>
28853         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
28854         If module 'iconv_open' is among the main modules and module
28855         'iconv_open-utf' is among the tests dependencies, then
28856         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
28857         return the special iconv_t values. Therefore iconv() and iconv_close()
28858         must support these special iconv_t values, already in lib, not only in
28859         tests.
28860         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
28861         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
28862         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
28863         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
28864         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
28865         (Depends-on): Add the dependencies of iconv_open-utf.
28866         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
28867         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
28868         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
28870 2011-05-08  Bruno Haible  <bruno@clisp.org>
28872         group-member: Move AC_LIBOBJ invocations to module description.
28873         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
28874         gl_PREREQ_GROUP_MEMBER invocations from here...
28875         * modules/group-member (configure.ac): ... to here.
28877 2011-05-08  Bruno Haible  <bruno@clisp.org>
28879         grantpt: Move AC_LIBOBJ invocations to module description.
28880         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
28881         invocations from here...
28882         * modules/grantpt (configure.ac): ... to here.
28884 2011-05-08  Bruno Haible  <bruno@clisp.org>
28886         glob: Move AC_LIBOBJ invocations to module description.
28887         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
28888         from here...
28889         * modules/glob (configure.ac): ... to here.
28891 2011-05-08  Bruno Haible  <bruno@clisp.org>
28893         getusershell: Move AC_LIBOBJ invocations to module description.
28894         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
28895         Move AC_LIBOBJ invocation from here...
28896         * modules/getusershell (configure.ac): ... to here.
28897         (Depends-on): Update condition.
28899 2011-05-08  Bruno Haible  <bruno@clisp.org>
28901         gettimeofday: Move AC_LIBOBJ invocations to module description.
28902         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
28903         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
28904         gl_PREREQ_GETTIMEOFDAY invocations from here...
28905         * modules/gettimeofday (configure.ac): ... to here.
28907 2011-05-08  Bruno Haible  <bruno@clisp.org>
28909         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
28910         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
28911         just gl_FUNC_TZSET.
28912         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
28913         (gl_FUNC_TZSET_CLOBBER): Remove actions.
28914         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
28915         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
28917 2011-05-08  Bruno Haible  <bruno@clisp.org>
28919         getsubopt: Move AC_LIBOBJ invocations to module description.
28920         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
28921         gl_PREREQ_GETSUBOPT invocations from here...
28922         * modules/getsubopt (configure.ac): ... to here.
28924 2011-05-08  Bruno Haible  <bruno@clisp.org>
28926         getpass-gnu: Move AC_LIBOBJ invocations to module description.
28927         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
28928         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
28929         * modules/getpass-gnu (configure.ac): ... to here.
28931 2011-05-08  Bruno Haible  <bruno@clisp.org>
28933         getpass: Move AC_LIBOBJ invocations to module description.
28934         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
28935         gl_PREREQ_GETPASS invocations from here...
28936         * modules/getpass (configure.ac): ... to here.
28938 2011-05-08  Bruno Haible  <bruno@clisp.org>
28940         getpagesize: Move AC_LIBOBJ invocations to module description.
28941         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
28942         from here...
28943         * modules/getpagesize (configure.ac): ... to here.
28945 2011-05-08  Bruno Haible  <bruno@clisp.org>
28947         getopt: Move AC_LIBOBJ invocations to module description.
28948         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
28949         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
28950         invocations from here...
28951         * modules/getopt-gnu (configure.ac): ... to here.
28952         * modules/getopt-posix (configure.ac): ... and here.
28953         (Depends-on): Update condition.
28955 2011-05-08  Bruno Haible  <bruno@clisp.org>
28957         getopt, argp: Respect rules for use of AC_LIBOBJ.
28958         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
28959         (gl_REPLACE_GETOPT_ALWAYS): New macro.
28960         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
28961         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
28963 2011-05-08  Bruno Haible  <bruno@clisp.org>
28965         getlogin_r: Move AC_LIBOBJ invocations to module description.
28966         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
28967         gl_PREREQ_GETLOGIN_R invocations from here...
28968         * modules/getlogin_r (configure.ac): ... to here.
28970 2011-05-08  Bruno Haible  <bruno@clisp.org>
28972         getlogin: Move AC_LIBOBJ invocations to module description.
28973         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
28974         here...
28975         * modules/getlogin (configure.ac): ... to here.
28977 2011-05-08  Bruno Haible  <bruno@clisp.org>
28979         getloadavg: Move AC_LIBOBJ invocations to module description.
28980         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
28981         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
28982         * modules/getloadavg (configure.ac): ... to here.
28984 2011-05-08  Bruno Haible  <bruno@clisp.org>
28986         gethrxtime: Move AC_LIBOBJ invocations to module description.
28987         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
28988         LIB_GETHRXTIME from here...
28989         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
28990         invocations from here...
28991         * modules/gethrxtime (configure.ac): ... to here.
28993 2011-05-08  Bruno Haible  <bruno@clisp.org>
28995         gethostname: Move AC_LIBOBJ invocations to module description.
28996         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
28997         gl_PREREQ_GETHOSTNAME invocations from here...
28998         * modules/gethostname (configure.ac): ... to here.
29000 2011-05-08  Bruno Haible  <bruno@clisp.org>
29002         getgroups: Move AC_LIBOBJ invocations to module description.
29003         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
29004         here...
29005         * modules/getgroups (configure.ac): ... to here.
29007 2011-05-08  Bruno Haible  <bruno@clisp.org>
29009         getdtablesize: Move AC_LIBOBJ invocations to module description.
29010         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
29011         invocation from here...
29012         * modules/getdtablesize (configure.ac): ... to here.
29014 2011-05-08  Bruno Haible  <bruno@clisp.org>
29016         getdomainname: Move AC_LIBOBJ invocations to module description.
29017         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
29018         gl_PREREQ_GETDOMAINNAME invocations from here...
29019         * modules/getdomainname (configure.ac): ... to here.
29021 2011-05-08  Bruno Haible  <bruno@clisp.org>
29023         getline: Move AC_LIBOBJ invocations to module description.
29024         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
29025         invocations from here...
29026         * modules/getline (configure.ac): ... to here.
29028 2011-05-08  Bruno Haible  <bruno@clisp.org>
29030         getline: Simplify.
29031         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
29032         It's already handled through the module dependency.
29034 2011-05-08  Bruno Haible  <bruno@clisp.org>
29036         getdelim: Move AC_LIBOBJ invocations to module description.
29037         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
29038         and gl_PREREQ_GETDELIM invocations from here...
29039         * modules/getdelim (configure.ac): ... to here.
29040         (Depends-on): Fix condition.
29042 2011-05-08  Bruno Haible  <bruno@clisp.org>
29044         getcwd: Move AC_LIBOBJ invocations to module description.
29045         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
29046         invocations from here...
29047         * modules/getcwd (configure.ac): ... to here.
29049 2011-05-08  Bruno Haible  <bruno@clisp.org>
29051         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
29052         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
29053         here...
29054         * modules/getcwd-lgpl (configure.ac): ... to here.
29056 2011-05-07  Bruno Haible  <bruno@clisp.org>
29058         crypto/gc: Move AC_LIBOBJ invocations to module description.
29059         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
29060         * modules/crypto/gc (configure.ac): ... to here.
29062 2011-05-07  Bruno Haible  <bruno@clisp.org>
29064         fwriting: Move AC_LIBOBJ invocations to module description.
29065         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
29066         here...
29067         * modules/fwriting (configure.ac): ... to here.
29069 2011-05-07  Bruno Haible  <bruno@clisp.org>
29071         fwritable: Move AC_LIBOBJ invocations to module description.
29072         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
29073         here...
29074         * modules/fwritable (configure.ac): ... to here.
29076 2011-05-07  Bruno Haible  <bruno@clisp.org>
29078         futimens: Move AC_LIBOBJ invocations to module description.
29079         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
29080         here...
29081         * modules/futimens (configure.ac): ... to here.
29083 2011-05-07  Bruno Haible  <bruno@clisp.org>
29085         ftruncate: Move AC_LIBOBJ invocations to module description.
29086         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
29087         gl_PREREQ_FTRUNCATE invocations from here...
29088         * modules/ftruncate (configure.ac): ... to here.
29090 2011-05-07  Bruno Haible  <bruno@clisp.org>
29092         fsync: Move AC_LIBOBJ invocations to module description.
29093         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
29094         invocations from here...
29095         * modules/fsync (configure.ac): ... to here.
29097 2011-05-07  Bruno Haible  <bruno@clisp.org>
29099         fsusage: Move AC_LIBOBJ invocations to module description.
29100         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
29101         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
29102         * modules/fsusage (configure.ac): ... to here.
29104 2011-05-07  Bruno Haible  <bruno@clisp.org>
29106         freopen: Move AC_LIBOBJ invocations to module description.
29107         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
29108         invocations from here...
29109         * modules/freopen (configure.ac): ... to here.
29111 2011-05-07  Bruno Haible  <bruno@clisp.org>
29113         free: Move AC_LIBOBJ invocations to module description.
29114         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
29115         invocations from here...
29116         * modules/free (configure.ac): ... to here.
29118 2011-05-07  Bruno Haible  <bruno@clisp.org>
29120         freadable: Move AC_LIBOBJ invocations to module description.
29121         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
29122         here...
29123         * modules/freadable (configure.ac): ... to here.
29125 2011-05-07  Bruno Haible  <bruno@clisp.org>
29127         fpurge: Move AC_LIBOBJ invocations to module description.
29128         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
29129         invocations from here...
29130         * modules/fpurge (configure.ac): ... to here.
29132 2011-05-07  Bruno Haible  <bruno@clisp.org>
29134         fpending: Move AC_LIBOBJ invocations to module description.
29135         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
29136         gl_FUNC_FPENDING.
29137         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
29138         invocations from here...
29139         * modules/fpending (configure.ac): ... to here.
29141 2011-05-07  Bruno Haible  <bruno@clisp.org>
29143         fopen: Move AC_LIBOBJ invocations to module description.
29144         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
29145         invocations from here...
29146         * modules/fopen (configure.ac): ... to here.
29148 2011-05-07  Bruno Haible  <bruno@clisp.org>
29150         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
29151         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
29152         gl_FUNC_FNMATCH_POSIX.
29153         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
29154         invocations from here...
29155         * modules/fnmatch (configure.ac): ... to here.
29156         * modules/fnmatch-gnu (configure.ac): ... and here.
29158 2011-05-07  Bruno Haible  <bruno@clisp.org>
29160         flock: Move AC_LIBOBJ invocations to module description.
29161         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
29162         invocations from here...
29163         * modules/flock (configure.ac): ... to here.
29165 2011-05-07  Bruno Haible  <bruno@clisp.org>
29167         fileblocks: Move AC_LIBOBJ invocations to module description.
29168         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
29169         gl_PREREQ_FILEBLOCKS invocations from here...
29170         * modules/fileblocks (configure.ac): ... to here.
29172 2011-05-06  Bruno Haible  <bruno@clisp.org>
29174         fflush: Move AC_LIBOBJ invocations to module description.
29175         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
29176         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
29177         invocations from here...
29178         * modules/fflush (configure.ac): ... to here.
29180 2011-05-06  Bruno Haible  <bruno@clisp.org>
29182         fdopendir: Move AC_LIBOBJ invocations to module description.
29183         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
29184         here...
29185         * modules/fdopendir (configure.ac): ... to here.
29186         (Depends-on): Improve conditions.
29188 2011-05-06  Bruno Haible  <bruno@clisp.org>
29190         _Exit: Move AC_LIBOBJ invocations to module description.
29191         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
29192         invocations from here...
29193         * modules/_Exit (configure.ac): ... to here.
29195 2011-05-21  Bruno Haible  <bruno@clisp.org>
29197         euidaccess: Respect rules for use of AC_LIBOBJ.
29198         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
29199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
29200         from here...
29201         * modules/euidaccess (configure.ac): ... to here.
29203 2011-05-06  Bruno Haible  <bruno@clisp.org>
29205         error: Move AC_LIBOBJ invocations to module description.
29206         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
29207         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
29208         invocations from here...
29209         * modules/error (configure.ac): ... to here.
29211 2011-05-06  Bruno Haible  <bruno@clisp.org>
29213         duplocale: Move AC_LIBOBJ invocations to module description.
29214         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
29215         gl_PREREQ_DUPLOCALE invocations from here...
29216         * modules/duplocale (configure.ac): ... to here.
29218 2011-05-05  Bruno Haible  <bruno@clisp.org>
29220         dirfd: Move AC_LIBOBJ invocations to module description.
29221         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
29222         gl_FUNC_DIRFD.
29223         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
29224         here...
29225         * modules/dirfd (configure.ac): ... to here.
29226         (Depends-on): Fix condition.
29228 2011-05-05  Bruno Haible  <bruno@clisp.org>
29230         chown: Respect rules for use of AC_LIBOBJ.
29231         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
29232         * modules/chown (configure.ac): ... to here.
29234 2011-05-05  Bruno Haible  <bruno@clisp.org>
29236         chdir-long: Move AC_LIBOBJ invocations to module description.
29237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
29238         gl_PREREQ_CHDIR_LONG invocations from here...
29239         * modules/chdir-long (configure.ac): ... to here.
29241 2011-05-05  Bruno Haible  <bruno@clisp.org>
29243         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
29244         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
29245         from here...
29246         * modules/canonicalize-lgpl (configure.ac): ... to here.
29248 2011-05-05  Bruno Haible  <bruno@clisp.org>
29250         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
29251         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
29252         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
29253         REPLACE_CALLOC.
29254         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
29255         * modules/calloc-gnu (configure.ac): Likewise.
29257 2011-05-05  Bruno Haible  <bruno@clisp.org>
29259         btowc: Move AC_LIBOBJ invocations to module description.
29260         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
29261         invocations from here...
29262         * modules/btowc (configure.ac): ... to here.
29264 2011-05-21  Bruno Haible  <bruno@clisp.org>
29266         atexit: Move AC_LIBOBJ invocations to module description.
29267         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
29268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
29269         here...
29270         * modules/atexit (configure.ac): ... to here.
29272 2011-05-05  Bruno Haible  <bruno@clisp.org>
29274         atoll: Move AC_LIBOBJ invocations to module description.
29275         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
29276         invocations from here...
29277         * modules/atoll (configure.ac): ... to here.
29279 2011-05-05  Bruno Haible  <bruno@clisp.org>
29281         argz: Move AC_LIBOBJ invocations to module description.
29282         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
29283         * modules/argz (configure.ac): ... to here.
29285 2011-05-05  Bruno Haible  <bruno@clisp.org>
29287         alphasort: Move AC_LIBOBJ invocations to module description.
29288         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
29289         gl_PREREQ_ALPHASORT invocations from here...
29290         * modules/alphasort (configure.ac): ... to here.
29292 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
29294         verify: new macro verify_expr; verify_true deprecated
29295         * NEWS: Mention this.
29296         * doc/verify.texi (Compile-time Assertions): Document this.
29297         * lib/verify.h (verify_true): Deprecate.
29298         (verify_expr): New macro.
29299         * tests/test-verify.c (function): Test verify_expr.
29301 2011-06-14  Jim Meyering  <meyering@redhat.com>
29303         init.sh: give more portable redirection-related advice in a comment
29304         * tests/init.sh (stderr_fileno_): Update the advice in comments.
29305         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
29306         for lots of discussion.  Stefano Lattarini suggested the solution
29307         of putting "9>&2" after the command.  Reported by Bruno Haible.
29309 2011-06-13  Bruno Haible  <bruno@clisp.org>
29311         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
29312         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
29313         'none'.
29315 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29317         ftoastr: use strtof only if HAVE_STRTOF
29318         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
29319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
29320         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
29321         * modules/ftoastr (configure.ac): Check for strtof.
29323 2011-06-13  Bruno Haible  <bruno@clisp.org>
29325         gnulib-tool: Addendum to 2011-06-08 commit.
29326         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
29327         and --witness-c-macro have been given, augment AM_CPPFLAGS.
29329 2011-06-13  Bruno Haible  <bruno@clisp.org>
29331         fseeko: Provide a non-inline replacement of fseek().
29332         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
29333         * modules/fseeko (Depends-on): Add fseek.
29334         * modules/fseek (License): Change to LGPLv2+.
29336 2011-06-13  Bruno Haible  <bruno@clisp.org>
29338         ftello: Provide a non-inline replacement of ftell().
29339         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
29340         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
29341         not have ftello() (such as on mingw).
29342         * modules/ftello (Depends-on): Add ftell.
29343         * modules/ftell (License): Change to LGPLv2+.
29345 2011-05-07  Bruno Haible  <bruno@clisp.org>
29347         ftell: Move AC_LIBOBJ invocations to module description.
29348         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
29349         * modules/ftell (configure.ac): ... to here.
29351 2011-05-07  Bruno Haible  <bruno@clisp.org>
29353         ftello: Respect rules for use of AC_LIBOBJ.
29354         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
29355         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
29356         here...
29357         * modules/ftello (configure.ac): ... to here.
29359 2011-05-07  Bruno Haible  <bruno@clisp.org>
29361         fseeko: Simplify.
29362         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
29363         (gl_FUNC_FSEEKO): Inline it here.
29365 2011-05-07  Bruno Haible  <bruno@clisp.org>
29367         fseek: Move AC_LIBOBJ invocations to module description.
29368         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
29369         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
29370         * modules/fseek (configure.ac): ... to here.
29372 2011-05-07  Bruno Haible  <bruno@clisp.org>
29374         fseek: Respect rules for use of AC_LIBOBJ.
29375         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
29376         here...
29377         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
29379 2011-05-07  Bruno Haible  <bruno@clisp.org>
29381         fseeko: Respect rules for use of AC_LIBOBJ.
29382         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
29383         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
29384         here...
29385         * modules/fseeko (configure.ac): ... to here.
29387 2011-06-13  Bruno Haible  <bruno@clisp.org>
29389         gnulib-tool: Allow comments in the 'Depends-on' section.
29390         * doc/gnulib.texi (Module description): Mention comment syntax in the
29391         Depends-on section.
29392         * gnulib-tool (func_get_dependencies): Filter out comment lines.
29394 2011-06-13  Bruno Haible  <bruno@clisp.org>
29396         file-set.h: guard __attibute__ use, now that it's not always defined
29397         * lib/file-set.h (record_file): Use __attribute__ only with compiler
29398         versions that support it.  This fixes a coreutils build failure with
29399         the vendor cc on HP-UX 11.31.
29401 2011-06-12  Bruno Haible  <bruno@clisp.org>
29403         acl: Add support for HP-UX >= 11.11 JFS ACLs.
29404         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
29405         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
29406         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
29407         (acl, aclsort): New declarations.
29408         (aclv_nontrivial): New declaration.
29409         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
29410         (file_has_acl): Read also the second kind of HP-UX ACLs.
29411         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
29412         kind of HP-UX ACLs if the first kind fails.
29413         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
29414         second kind of HP-UX ACLs.
29415         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
29416         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
29417         agree.
29418         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
29419         hpuxjfs.
29420         Handle hpuxjfs.
29421         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
29422         hpuxjfs.
29423         Handle hpuxjfs.
29424         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
29425         (func_test_same_acls): Use both lsacl and getacl.
29426         Handle hpuxjfs.
29427         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
29428         (func_test_same_acls): Use both lsacl and getacl.
29429         Handle hpuxjfs.
29431 2011-06-12  Bruno Haible  <bruno@clisp.org>
29433         acl: Complete the 2010-08-10 fix.
29434         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
29435         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
29436         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
29437         explicitly.
29438         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
29439         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
29441 2011-06-12  Bruno Haible  <bruno@clisp.org>
29443         spawn-pipe tests: Comments.
29444         * tests/test-spawn-pipe-child.c (main): Update comment.
29445         Reported by James Youngman <jay@gnu.org>.
29447 2011-06-11  James Youngman  <jay@gnu.org>
29449         New module 'stat-size'.
29450         * modules/stat-size: New module.  Provides macros for accessing
29451         file size information in instances of struct stat.  Depends on the
29452         fileblocks module because it calls st_blocks.
29453         * lib/stat-size.h: New file, adapted from coreutils' system.h.
29454         * doc/gnulib.texi: Include stat-size.texi.
29455         * doc/stat-size.texi: Documentation for this module.
29456         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
29457         * m4/fileblocks.m4: Mention that stat-size depends on the call to
29458         AC_STRUCT_ST_BLOCKS.
29460 2011-06-09  Bruno Haible  <bruno@clisp.org>
29462         thread: Support pthreads-win32.
29463         * lib/glthread/thread.h (gl_thread_self): Define differently on
29464         pthreads-win32.
29465         (gl_null_thread): New declaration.
29466         (gl_thread_self_pointer): New macro.
29467         * lib/glthread/thread.c (gl_null_thread): New constant.
29468         * tests/test-lock.c: Use gl_thread_self_pointer instead of
29469         gl_thread_self.
29470         * tests/test-tls.c: Likewise.
29471         Suggested by Paul Eggert. Reported by Eric Blake.
29473 2011-06-09  Bruno Haible  <bruno@clisp.org>
29475         thread: Fix confusion between NULL and 0.
29476         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
29477         Reported by Paul Eggert.
29479 2011-06-09  Bruno Haible  <bruno@clisp.org>
29481         spawn-pipe tests: Avoid test failure on HP-UX 11.
29482         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
29483         is closed.
29485 2011-06-09  Bruno Haible  <bruno@clisp.org>
29487         acl tests: Fix compilation error on HP-UX 11.
29488         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
29490 2011-06-09  Bruno Haible  <bruno@clisp.org>
29492         rmdir: Avoid test failure on HP-UX 10.20.
29493         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
29494         EEXIST.
29496 2011-06-08  Eric Blake  <eblake@redhat.com>
29498         perror: fix test on mingw
29499         * modules/perror-tests (Depends-on): Add dup2.
29501         strerror_r-posix: fix on MacOS
29502         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
29503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
29504         logic bug.
29505         * lib/strerror_r.c (strerror_r): Fix the bug.
29506         * lib/strerror.c (strerror): Likewise.
29507         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
29508         problem.
29509         * doc/posix-functions/strerror.texi (strerror): Likewise.
29510         * doc/posix-functions/perror.texi (perror): Likewise.
29511         * tests/test-strerror.c (main): Enhance test.
29512         * tests/test-strerror_r.c (main): Likewise.
29514 2011-06-08  Bruno Haible  <bruno@clisp.org>
29516         gnulib-tool: Better isolation between different gnulib-tool invocations.
29517         * gnulib-tool: New option --witness-c-macro.
29518         (witness_c_macro): New variable.
29519         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
29520         AM_CPPFLAGS define it as a C macro.
29521         (func_emit_tests_Makefile_am): Likewise.
29522         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
29523         read it from there.
29524         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
29525         m4_define, not AC_DEFUN.
29526         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
29527         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
29528         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
29529         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
29530         s|...|...|, to substitute the values of the GNULIB_* module indicator
29531         variables.
29532         * modules/dirent (Makefile.am): Likewise.
29533         * modules/fcntl-h (Makefile.am): Likewise.
29534         * modules/iconv-h (Makefile.am): Likewise.
29535         * modules/langinfo (Makefile.am): Likewise.
29536         * modules/locale (Makefile.am): Likewise.
29537         * modules/math (Makefile.am): Likewise.
29538         * modules/netdb (Makefile.am): Likewise.
29539         * modules/poll-h (Makefile.am): Likewise.
29540         * modules/pty (Makefile.am): Likewise.
29541         * modules/search (Makefile.am): Likewise.
29542         * modules/signal (Makefile.am): Likewise.
29543         * modules/spawn (Makefile.am): Likewise.
29544         * modules/stdio (Makefile.am): Likewise.
29545         * modules/stdlib (Makefile.am): Likewise.
29546         * modules/string (Makefile.am): Likewise.
29547         * modules/sys_ioctl (Makefile.am): Likewise.
29548         * modules/sys_select (Makefile.am): Likewise.
29549         * modules/sys_socket (Makefile.am): Likewise.
29550         * modules/sys_stat (Makefile.am): Likewise.
29551         * modules/sys_times (Makefile.am): Likewise.
29552         * modules/sys_utsname (Makefile.am): Likewise.
29553         * modules/sys_wait (Makefile.am): Likewise.
29554         * modules/termios (Makefile.am): Likewise.
29555         * modules/time (Makefile.am): Likewise.
29556         * modules/unistd (Makefile.am): Likewise.
29557         * modules/wchar (Makefile.am): Likewise.
29559 2011-06-08  Eric Blake  <eblake@redhat.com>
29561         strerror: simplify replacement
29562         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
29563         * modules/strerror (configure.ac): No prereqs needed here...
29564         * modules/strerror-override (configure.ac): ...but this needs it.
29565         (Files): Add file for needed prereq macro.
29567 2011-06-08  Bruno Haible  <bruno@clisp.org>
29569         strerror_r-posix: Tweaks.
29570         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
29571         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
29572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
29573         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
29574         (gl_FUNC_STRERROR_R): ... to here.
29575         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
29577 2011-06-07  Eric Blake  <eblake@redhat.com>
29579         perror: document fixed bugs
29580         * doc/posix-functions/perror.texi (perror): Document recent
29581         patches.
29583 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29585         stat-time: get_stat_birthtime failure is better-defined
29586         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
29587         return a timestamp whose tv_sec and tv_nsec values are both -1.
29588         Previously, the spec said only that the tv_nsec value was negative.
29589         This upward-compatible change simplifies GNU tar a bit.
29591 2011-06-07  Eric Blake  <eblake@redhat.com>
29593         strerror_r-posix: work around cygwin 1.7.9
29594         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
29595         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
29596         bug without replacing strerror_r.
29597         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
29598         strerror_r is buggy, but without requiring strerror_r compilation.
29599         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
29601         test-perror: relax test to ignore cygwin bug
29602         * tests/test-perror2.c (main): Relax test on requiring detection
29603         of stream errors, and use unbuffered stream.
29604         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
29605         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
29606         * doc/posix-functions/fputc.texi (fputc): Likewise.
29607         * doc/posix-functions/fputs.texi (fputs): Likewise.
29608         * doc/posix-functions/fputws.texi (fputws): Likewise.
29609         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
29610         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
29611         * doc/posix-functions/getopt.texi (getopt): Likewise.
29612         * doc/posix-functions/perror.texi (perror): Likewise.
29613         * doc/posix-functions/printf.texi (printf): Likewise.
29614         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
29615         * doc/posix-functions/psignal.texi (psignal): Likewise.
29616         * doc/posix-functions/putc.texi (putc): Likewise.
29617         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
29618         Likewise.
29619         * doc/posix-functions/putchar.texi (putchar): Likewise.
29620         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
29621         Likewise.
29622         * doc/posix-functions/puts.texi (puts): Likewise.
29623         * doc/posix-functions/putwc.texi (putwc): Likewise.
29624         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29625         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29626         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29627         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
29628         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29629         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29630         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29631         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
29633 2011-05-22  Bruno Haible  <bruno@clisp.org>
29635         strerror: Move AC_LIBOBJ invocations to module description.
29636         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
29637         gl_PREREQ_STRERROR invocations from here...
29638         * modules/strerror (configure.ac): ... to here.
29640 2011-05-21  Bruno Haible  <bruno@clisp.org>
29642         perror: Use common idiom.
29643         * modules/perror (configure.ac): Reorder statements.
29645 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
29647         tests: fix usage message in 'mktempd_'
29648         * tests/init.sh (mktempd_): In the usage message, use literal
29649         'mktempd_', not '$ME' (which is even undefined), as the name of
29650         the subroutine.
29652 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
29654         tests init: new function 'fatal_', for hard errors
29655         Before this patch, the only way offered by tests/init.sh to
29656         properly signal a hard error was the `framework_failure_'
29657         function.  But the error message issued by that function,
29658         as its name would suggest, refers to a set-up failure in the
29659         testsuite, while hard errors can obviously also be due to
29660         other reasons.  The best way to fix this inconsistency is to
29661         introduce a new function with a more general error message.
29662         * tests/init.sh (fatal_): New function.
29664 2011-06-06  Eric Blake  <eblake@redhat.com>
29666         canonicalize-lgpl: use common idiom
29667         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
29668         over newer POSIX -Rf.
29669         Reported by Bruno Haible.
29671         canonicalize-lgpl: work around AIX realpath bug
29672         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
29673         * doc/posix-functions/realpath.texi (realpath): Document it.
29674         Reported by Bruno Haible.
29676         strerror: work around FreeBSD bug
29677         * lib/strerror.c (strerror): Special case 0.
29678         Reported by Bruno Haible.
29680         strerror-override: avoid bloating errno module
29681         * modules/errno (Files, configure.ac): Move replacement strings...
29682         * modules/strerror-override: ...to new module.
29683         * modules/strerror (Depends-on): Add strerror-override.
29684         * modules/strerror_r-posix (Depends-on): Likewise.
29685         * MODULES.html.sh: Document new module.
29686         Reported by Bruno Haible.
29688 2011-06-06  Bruno Haible  <bruno@clisp.org>
29690         spawn-pipe tests: Rename program.
29691         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
29692         * tests/test-spawn-pipe-child.c: Update comment.
29693         * tests/test-spawn-pipe.sh: Update.
29694         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
29696         spawn-pipe tests: Link the child program only against libc.
29697         * tests/test-spawn-pipe-child.c: New file, extracted from
29698         tests/test-spawn-pipe.c.
29699         (main): Expect only one argument.
29700         (is_open): New function, copied from tests/test-pipe.c.
29701         * tests/test-spawn-pipe.c: Don't include <errno.h>.
29702         (child_main): Remove function.
29703         (test_pipe): Pass only one argument to the child program.
29704         (main): Remove child process code. Expect the child program's name as
29705         first argument.
29706         * tests/test-spawn-pipe.sh: Pass the child program's name as first
29707         argument.
29708         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
29709         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
29710         test-spawn-pipe-child against no libraries.
29712 2011-06-06  Bruno Haible  <bruno@clisp.org>
29714         careadlinkat: Avoid mismatch between ssize_t and int.
29715         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
29716         * lib/careadlinkat.c (careadlinkatcwd): Define always.
29718 2011-06-06  Jim Meyering  <meyering@redhat.com>
29720         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
29721         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
29722         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
29724 2011-06-05  Bruno Haible  <bruno@clisp.org>
29726         ansi-c++-opt: Interoperability with libtool.
29727         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
29728         set the variable to "no", not to ":".
29729         * NEWS: Mention the change.
29731 2011-06-05  Bruno Haible  <bruno@clisp.org>
29733         acl: Fix test failure on AIX 7.
29734         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
29735         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
29737 2011-06-05  Bruno Haible  <bruno@clisp.org>
29739         pipe-filter-ii: Fix test failure on AIX and IRIX.
29740         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
29741         with EAGAIN, retry with a smaller buffer size.
29743 2011-06-05  Bruno Haible  <bruno@clisp.org>
29745         localename: Fix link dependencies.
29746         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
29747         * modules/localename-tests (Makefile.am): Link test-localename with
29748         $(LIBTHREAD).
29750 2011-06-05  Bruno Haible  <bruno@clisp.org>
29752         error: Avoid gcc warning.
29753         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
29755 2011-06-05  Bruno Haible  <bruno@clisp.org>
29757         unsetenv: Avoid gcc warning.
29758         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
29760 2011-06-05  Bruno Haible  <bruno@clisp.org>
29762         setenv: Avoid gcc warning.
29763         * lib/setenv.c (setenv): Provide declaration if system lacks it.
29765 2011-06-05  Bruno Haible  <bruno@clisp.org>
29767         sys_select: Ensure memset is declared also on AIX 7.
29768         * lib/sys_select.in.h: Include <string.h> also on AIX.
29769         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
29770         self-contained also on AIX 7.1.
29772 2011-06-04  Jim Meyering  <meyering@redhat.com>
29774         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
29775         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
29776         function name, "error".
29777         (_gl_translatable_diag_func_re): New configurable variable.
29779 2011-06-04  Bruno Haible  <bruno@clisp.org>
29781         getopt: Avoid gcc warning.
29782         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
29784 2011-06-04  Bruno Haible  <bruno@clisp.org>
29786         strerror_r: Fix comments.
29787         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
29788         commit.
29790 2011-06-04  Bruno Haible  <bruno@clisp.org>
29792         perror: Fix compilation error.
29793         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
29794         Undefine fprintf, not sprintf.
29795         * modules/perror (Depends-on): Remove intprops, verify.
29797 2011-06-04  Bruno Haible  <bruno@clisp.org>
29799         setlocale: Enable replacement on Cygwin 1.5.
29800         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
29801         Cygwin 1.5.x.
29802         * doc/posix-functions/setlocale.texi: Mention that the problem with the
29803         LC_CTYPE category also exists on Cygwin 1.5.x.
29805 2011-06-04  Bruno Haible  <bruno@clisp.org>
29807         strerror-override: Don't disable symbol renamings.
29808         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
29809         * lib/strerror-override.c: Include config.h.
29810         (strerror_override): Don't undefine.
29812 2011-06-03  Bruno Haible  <bruno@clisp.org>
29814         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
29815         * lib/localename.h: Update copyright header.
29816         * lib/localename.c: Likewise.
29817         * lib/relocatable.h: Likewise.
29818         * lib/relocatable.c: Likewise.
29820 2011-06-02  Bruno Haible  <bruno@clisp.org>
29822         doc: Fix a module name.
29823         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
29825 2011-06-02  Bruno Haible  <bruno@clisp.org>
29827         pipe2: Remove dependency on 'nonblocking' module.
29828         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
29829         O_NONBLOCK is defined by gnulib.
29830         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
29831         is zero.
29832         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
29833         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
29834         defined by gnulib.
29835         (get_nonblocking_flag): New function.
29836         (main): Test O_NONBLOCK flag only if it is nonzero.
29837         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
29839 2011-06-03  Jim Meyering  <meyering@redhat.com>
29841         maint: three new prohibit-header-without-use rules
29842         Prohibit use of cloexec.h, posixver.h, same.h without use.
29843         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
29844         (sc_prohibit_posixver_without_use): Likewise.
29845         (sc_prohibit_same_without_use): Likewise.
29847 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29849         allocator: 'die' routine is now given requested size
29850         * lib/allocator.h (struct allocator.die): New size arg.
29851         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
29852         If the actual problem is an ssize_t limitation, not a size_t or
29853         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
29855 2011-06-01  Eric Blake  <eblake@redhat.com>
29857         strerror: drop strerror_r dependency
29858         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
29859         * lib/strerror-override.c (strerror_override): ...to new file.
29860         * lib/strerror-override.h: Add prototype.
29861         * lib/strerror-impl.h: Delete.
29862         * lib/strerror.c (strerror): New implementation.
29863         * modules/errno (Files): Add new files.
29864         (configure.ac): Compile new file as appropriate.
29865         * modules/strerror (Files): Drop unused file.
29866         (Depends-on): Drop strerror_r-posix.
29867         * MODULES.html.sh: Document strerror_r-posix.
29868         Requested by Sam Steingold.
29870         perror: call strerror_r directly
29871         * modules/perror (Files): Drop strerror-impl.h.
29872         * lib/perror.c (perror): Use our own stack buffer, rather than
29873         calling a wrapper that uses static storage.
29874         * doc/posix-functions/perror.texi (perror): Document a limitation
29875         of our replacement.
29877         strerror_r: fix includes for FreeBSD
29878         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
29879         since we use abort on some platforms.
29880         Reported by Matthias Bolte.
29882 2011-05-31  Bruno Haible  <bruno@clisp.org>
29884         Fix link errors in tests: openat-die uses gettext-h.
29885         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
29886         against $(LIBINTL).
29887         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
29888         against $(LIBINTL).
29889         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
29890         $(LIBINTL).
29891         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
29892         against $(LIBINTL).
29893         * modules/linkat-tests (Makefile.am): Link test-linkat against
29894         $(LIBINTL).
29895         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
29896         $(LIBINTL).
29897         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
29898         against $(LIBINTL).
29899         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
29900         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
29901         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
29902         $(LIBINTL).
29903         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
29904         $(LIBINTL).
29905         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
29906         $(LIBINTL).
29907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29909 2011-05-31  Bruno Haible  <bruno@clisp.org>
29911         Fix link errors in tests: wait-process uses gettext-h.
29912         * modules/nonblocking-pipe-tests (Makefile.am): Set
29913         test_nonblocking_pipe_main_LDADD.
29914         * modules/nonblocking-socket-tests (Makefile.am): Link
29915         test-nonblocking-socket-main against $(LIBINTL).
29916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29918 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29920         assert-h: work around 'verify' incompatibility
29921         * lib/verify.h: Use @...@ directives, not ifdef.
29922         * modules/assert-h (assert.h): Implement the directives.
29923         (assert.h): Substitute the symbol-prefix more consistently.
29925 2011-05-29  Jim Meyering  <meyering@redhat.com>
29927         trim: remove three superfluous assignments
29928         * lib/trim.c (trim2): Remove three superfluous assignments
29929         and correct brace positioning.
29931 2011-05-29  Bruno Haible  <bruno@clisp.org>
29933         wctype-h: Avoid namespace pollution on Solaris 2.6.
29934         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
29935         identifiers.
29936         * doc/posix-headers/wctype.texi: Mention the problem.
29937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29939 2011-05-28  Jim Meyering  <meyering@redhat.com>
29941         parse-datetime.y: accommodate -Wstrict-overflow
29942         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
29943         placate -Wstrict-overflow.
29945         trim: avoid a warning from -O2 -Wstrict-overflow
29946         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
29948 2011-05-29  Bruno Haible  <bruno@clisp.org>
29950         gnulib-tool: Fix bug in yesterday's commit.
29951         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
29952         twice.
29954 2011-05-29  Bruno Haible  <bruno@clisp.org>
29956         Allow multiple gnulib generated include files to be combined.
29957         * gnulib-tool (func_compute_include_guard_prefix): New function.
29958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
29959         ${gl_include_guard_prefix} references.
29960         (func_import, func_create_testdir): Invoke
29961         func_compute_include_guard_prefix.
29962         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
29963         * lib/ctype.in.h: Likewise.
29964         * lib/dirent.in.h: Likewise.
29965         * lib/errno.in.h: Likewise.
29966         * lib/fcntl.in.h: Likewise.
29967         * lib/float.in.h: Likewise.
29968         * lib/getopt.in.h: Likewise.
29969         * lib/iconv.in.h: Likewise.
29970         * lib/langinfo.in.h: Likewise.
29971         * lib/locale.in.h: Likewise.
29972         * lib/math.in.h: Likewise.
29973         * lib/netdb.in.h: Likewise.
29974         * lib/netinet_in.in.h: Likewise.
29975         * lib/poll.in.h: Likewise.
29976         * lib/pthread.in.h: Likewise.
29977         * lib/pty.in.h: Likewise.
29978         * lib/sched.in.h: Likewise.
29979         * lib/se-selinux.in.h: Likewise.
29980         * lib/search.in.h: Likewise.
29981         * lib/signal.in.h: Likewise.
29982         * lib/spawn.in.h: Likewise.
29983         * lib/stdarg.in.h: Likewise.
29984         * lib/stddef.in.h: Likewise.
29985         * lib/stdint.in.h: Likewise.
29986         * lib/stdio.in.h: Likewise.
29987         * lib/stdlib.in.h: Likewise.
29988         * lib/string.in.h: Likewise.
29989         * lib/strings.in.h: Likewise.
29990         * lib/sys_file.in.h: Likewise.
29991         * lib/sys_ioctl.in.h: Likewise.
29992         * lib/sys_select.in.h: Likewise.
29993         * lib/sys_socket.in.h: Likewise.
29994         * lib/sys_stat.in.h: Likewise.
29995         * lib/sys_time.in.h: Likewise.
29996         * lib/sys_times.in.h: Likewise.
29997         * lib/sys_uio.in.h: Likewise.
29998         * lib/sys_utsname.in.h: Likewise.
29999         * lib/sys_wait.in.h: Likewise.
30000         * lib/sysexits.in.h: Likewise.
30001         * lib/termios.in.h: Likewise.
30002         * lib/time.in.h: Likewise.
30003         * lib/unistd.in.h: Likewise.
30004         * lib/wchar.in.h: Likewise.
30005         * lib/wctype.in.h: Likewise.
30006         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
30007         * modules/ctype (Makefile.am): Likewise.
30008         * modules/dirent (Makefile.am): Likewise.
30009         * modules/errno (Makefile.am): Likewise.
30010         * modules/fcntl-h (Makefile.am): Likewise.
30011         * modules/float (Makefile.am): Likewise.
30012         * modules/getopt-posix (Makefile.am): Likewise.
30013         * modules/iconv-h (Makefile.am): Likewise.
30014         * modules/langinfo (Makefile.am): Likewise.
30015         * modules/locale (Makefile.am): Likewise.
30016         * modules/math (Makefile.am): Likewise.
30017         * modules/netdb (Makefile.am): Likewise.
30018         * modules/netinet_in (Makefile.am): Likewise.
30019         * modules/poll-h (Makefile.am): Likewise.
30020         * modules/pthread (Makefile.am): Likewise.
30021         * modules/pty (Makefile.am): Likewise.
30022         * modules/sched (Makefile.am): Likewise.
30023         * modules/search (Makefile.am): Likewise.
30024         * modules/selinux-h (Makefile.am): Likewise.
30025         * modules/signal (Makefile.am): Likewise.
30026         * modules/spawn (Makefile.am): Likewise.
30027         * modules/stdarg (Makefile.am): Likewise.
30028         * modules/stddef (Makefile.am): Likewise.
30029         * modules/stdint (Makefile.am): Likewise.
30030         * modules/stdio (Makefile.am): Likewise.
30031         * modules/stdlib (Makefile.am): Likewise.
30032         * modules/string (Makefile.am): Likewise.
30033         * modules/strings (Makefile.am): Likewise.
30034         * modules/sys_file (Makefile.am): Likewise.
30035         * modules/sys_ioctl (Makefile.am): Likewise.
30036         * modules/sys_select (Makefile.am): Likewise.
30037         * modules/sys_socket (Makefile.am): Likewise.
30038         * modules/sys_stat (Makefile.am): Likewise.
30039         * modules/sys_time (Makefile.am): Likewise.
30040         * modules/sys_times (Makefile.am): Likewise.
30041         * modules/sys_uio (Makefile.am): Likewise.
30042         * modules/sys_utsname (Makefile.am): Likewise.
30043         * modules/sys_wait (Makefile.am): Likewise.
30044         * modules/sysexits (Makefile.am): Likewise.
30045         * modules/termios (Makefile.am): Likewise.
30046         * modules/time (Makefile.am): Likewise.
30047         * modules/unistd (Makefile.am): Likewise.
30048         * modules/wchar (Makefile.am): Likewise.
30049         * modules/wctype-h (Makefile.am): Likewise.
30050         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
30052 2011-05-29  Bruno Haible  <bruno@clisp.org>
30054         assert-h: Allow multiple gnulib generated replacements to coexist.
30055         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
30057 2011-05-29  Bruno Haible  <bruno@clisp.org>
30059         argp: Allow coexistence with strerror_r-posix module.
30060         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
30061         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
30062         by gnulib's <string.h> replacement), assume it has the POSIX signature,
30063         not the glibc signature.
30065 2011-05-28  Bruno Haible  <bruno@clisp.org>
30067         gnulib-tool: Alternative structure of testdirs, similar to --import.
30068         * gnulib-tool: New option --single-configure.
30069         (func_usage): Document it.
30070         (single_configure): New variable.
30071         (func_modules_transitive_closure_separately,
30072         func_modules_transitive_closure_separately,
30073         func_determine_use_libtests, func_modules_add_dummy_separately,
30074         func_modules_to_filelist_separately): New functions, extracted from
30075         func_import.
30076         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
30077         (func_import): Use the new functions.
30078         (func_create_testdir): Set final_modules. Handle $single_configure =
30079         true case.
30081 2011-05-28  Bruno Haible  <bruno@clisp.org>
30083         getloadavg: Remove an unreliable safety check.
30084         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
30085         getloadavg.c is in place.
30086         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
30087         Reported by Sam Steingold <sds@gnu.org>.
30089 2011-05-28  Bruno Haible  <bruno@clisp.org>
30091         doc: Cleanup yet another file produced by texinfo.tex.
30092         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
30094 2011-05-28  Bruno Haible  <bruno@clisp.org>
30096         Finish the conditional dependencies mechanism.
30097         * gnulib-tool: New option --no-conditional-dependencies.
30098         (func_usage): Document it. Don't mark --conditional-dependencies as
30099         experimental.
30100         (cond_dependencies): The possible values can now be true, false, empty.
30101         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
30102         (func_import): Store setting in gnulib-cache.m4 and read it from there.
30103         * doc/gnulib-tool.texi (Conditional dependencies): New section.
30105 2011-05-28  Bruno Haible  <bruno@clisp.org>
30107         doc: Use a recent texinfo.tex.
30108         * doc/Makefile (tex_opts): New variable.
30109         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
30111 2011-05-28  Jim Meyering  <meyering@redhat.com>
30113         intprops.h: adjust comment to match code change
30114         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
30115         only once, it *may* have side effects.  Also fix an unrelated typo.
30116         (_GL_INT_SIGNED): Likewise.
30118 2011-05-26  Simon Josefsson  <simon@josefsson.org>
30120         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
30122 2011-05-26  Bruno Haible  <bruno@clisp.org>
30124         mbsrchr: Avoid collision with system function on Interix.
30125         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
30126         Reported by Markus Duft <mduft@gentoo.org>.
30128 2011-05-15  James Youngman  <jay@gnu.org>
30130         getopt: for ambiguous options, enumerate the possibilities.
30131         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
30132         the ambiguous options when an ambiguous prefix is given. This was
30133         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
30134         glibc change was
30135         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
30137 2011-05-25  Eric Blake  <eblake@redhat.com>
30139         getcwd: work around mingw bug
30140         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
30141         * doc/posix-functions/getcwd.texi (getcwd): Document it.
30142         Reported by Matthias Bolte.
30144 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
30146         test-intprops: disable -Wtype-limits diagnostics
30147         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
30148         diagnostics.  Otherwise, the integer overflow macros generate many
30149         diagnostics.  Reported by Jim Meyering in
30150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
30152         intprops: shorten, to pacify gcc -Woverlength-strings
30153         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
30154         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
30155         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
30156         likely to run afoul of C compiler limits for string constant lengths.
30157         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
30159 2011-05-24  Eric Blake  <eblake@redhat.com>
30161         docs: document recently fixed glibc printf bug
30162         * doc/posix-functions/fprintf.texi (fprintf): Document it.
30163         * doc/posix-functions/printf.texi (printf): Likewise.
30164         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30165         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30167         closein-tests: convert to init.sh
30168         * modules/closein-tests (Files): Add init.sh
30169         * tests/test-closein.sh Use it.
30171         yesno-tests: convert to init.sh
30172         * modules/yesno-tests (Files): Add init.sh.
30173         * tests/test-yesno.sh: Use it.
30175         atexit-tests: ensure reliable exit status
30176         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
30177         Reported by Bruno Haible.
30179 2011-05-24  Bruno Haible  <bruno@clisp.org>
30181         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
30182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
30183         gl_PREREQ_STRERROR_R invocations from here...
30184         * modules/strerror_r-posix (configure.ac): ... to here.
30186 2011-05-24  Eric Blake  <eblake@redhat.com>
30188         strerror_r: fix missing header
30189         * lib/strerror_r.c: Avoid compiler warning about snprintf.
30191         strerror_r: fix AIX test failures
30192         * lib/strerror_r.c (strerror_r): Convert silent truncation to
30193         ERANGE failure.
30195         strerror_r: fix Solaris test failures
30196         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
30197         failures.
30198         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
30200         strerror_r: enforce POSIX recommendations
30201         * lib/strerror_r.c (safe_copy): New helper method.
30202         (strerror_r): Guarantee a non-empty string.
30203         * tests/test-strerror_r.c (main): Enhance tests to incorporate
30204         recent POSIX rulings and to match our strerror guarantees.
30205         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
30207 2011-05-24  Jim Meyering  <meyering@redhat.com>
30209         test-perror2.c: avoid warning about unused variable
30210         * tests/test-perror2.c (main): Remove declaration of unused "fp".
30212 2011-05-24  Eric Blake  <eblake@redhat.com>
30214         perror: avoid spurious test failure on HP-UX
30215         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
30217         tests: fix logic bug in init.sh
30218         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
30219         shell.
30221 2011-05-24  Jim Meyering  <meyering@redhat.com>
30223         utimensat: do not reference an out-of-scope buffer
30224         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
30225         declared in an inner scope, yet "times" would be dereferenced outside
30226         the scope in which "ts" was valid.
30227         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
30228         of ts[2] "out/up", so that the use of aliased "times" (via
30229         "times = ts;") does not end up referencing an out-of-scope "ts"
30231         opendir-safer.c: don't clobber errno; don't close negative FD
30232         * lib/opendir-safer.c (opendir_safer):
30233         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
30234         file descriptor, and more importantly, don't clobber the
30235         offending errno value with EINVAL.  Before, upon failure
30236         of dup_safer, we would pass the negative file descriptor to
30237         fdopendir, which would clobber errno.
30239 2011-05-23  Bruno Haible  <bruno@clisp.org>
30241         idcache: Fix module description.
30242         * modules/idcache (Include): Set to "idcache.h".
30244 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
30246         gnulib-tool: fix portability problem with MacOS sed
30247         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
30248         before the "}".  Problem reported by Leo in
30249         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
30250         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
30251         sed_extract_condition1, sed_extract_condition2.
30253 2011-05-23  Bruno Haible  <bruno@clisp.org>
30255         hash: Simplify autoconf macro.
30256         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
30258 2011-05-23  Bruno Haible  <bruno@clisp.org>
30260         getugroups: Fix module description.
30261         * modules/getugroups (Include): Set to "getugroups.h".
30263 2011-05-23  Bruno Haible  <bruno@clisp.org>
30265         linkat: Simplify autoconf macro.
30266         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
30268 2011-05-23  Bruno Haible  <bruno@clisp.org>
30269             Eric Blake  <eblake@redhat.com>
30271         linkat, renameat: Update dependencies.
30272         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
30273         * modules/linkat (Depends-on): Likewise. Remove also readlink,
30274         symlinkat.
30276 2011-05-23  Jim Meyering  <meyering@redhat.com>
30278         maint.mk: more tight_scope improvements
30279         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
30280         (_gl_TS_headers): Define only in if-0'd block.
30281         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
30282         sometimes we must *not* use it.  Adjust uses accordingly.
30283         (sc_tight_scope): Use much simpler grep-based test to determine
30284         whether we skip this rule.
30286         maint.mk: generalize/improve the tight-scope rule
30287         * top/maint.mk: Emit a warning when the test is skipped.
30288         (_gl_TS_dir): Add $(srcdir)/ prefix.
30289         (_gl_TS_function_match): Simplify, rather than trying
30290         to enumerate common types.  Otherwise, it would fail to match an
30291         "extern unsigned char const *" declaration in idutils.
30292         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
30293         a way to support use of that type of macro.
30294         (_gl_TS_var_match): Simplify regexp.
30295         (_gl_TS_obj_files): New configurable variable.
30296         (_gl_TS_headers): Likewise.
30298 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30300         verify: fix bug when gnulib <assert.h> is also included
30301         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
30302         is defined, not if _GL_STATIC_ASSERT_H is not defined.
30303         Perhaps there's a better way, but this fixes the immediate problem.
30304         Problem reported by Bruno Haible in
30305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
30307 2011-05-22  Bruno Haible  <bruno@clisp.org>
30309         xgetcwd: Simplify autoconf macro.
30310         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
30312 2011-05-22  Bruno Haible  <bruno@clisp.org>
30314         New module 'mktime-internal'.
30315         * modules/mktime-internal: New file.
30316         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
30317         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
30318         mktime_internal as a C macro if libc has __mktime_internal.
30319         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
30320         conditions.
30321         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
30323 2011-05-22  Bruno Haible  <bruno@clisp.org>
30325         timegm: Correct mktime replacement statements.
30326         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
30327         defining mktime as a C macro. This completes a 2009-07-28 commit.
30329 2011-05-22  Bruno Haible  <bruno@clisp.org>
30331         timegm: Simplify autoconf macro.
30332         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
30334 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
30336         clock-time: change to LGPLv2+.
30337         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
30338         BSD-like but we have no mark for that; this is good enough for now.
30340 2011-05-21  Bruno Haible  <bruno@clisp.org>
30342         strerror_r: Fix comments.
30343         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
30345 2011-05-21  Bruno Haible  <bruno@clisp.org>
30347         relocatable-prog-wrapper: Fix possible link error.
30348         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
30349         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
30350         (gl_FUNC_SETENV): ... to here.
30351         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
30352         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
30354 2011-05-21  Bruno Haible  <bruno@clisp.org>
30356         relocatable-prog-wrapper: Assume strerror() exists.
30357         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
30358         m4/strerror.m4.
30359         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
30360         * lib/relocwrapper.c: Remove mention of strerror module.
30361         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
30362         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
30363         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
30364         C macro.
30366 2011-05-21  Bruno Haible  <bruno@clisp.org>
30368         select: Simplify replacement idiom.
30369         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
30370         Win32 platforms.
30371         * lib/sys_select.in.h (select): Simplify accordingly.
30372         * modules/select (Depends-on): Likewise.
30374 2011-05-21  Bruno Haible  <bruno@clisp.org>
30376         mkdir-p: Simplify autoconf macro.
30377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
30378         gl_FUNC_LCHOWN.
30380 2011-05-21  Eric Blake  <eblake@redhat.com>
30382         strerror_r: avoid clobbering strerror on cygwin
30383         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
30384         fall back instead to sys_errlist.
30385         * modules/strerror (configure.ac): Add witness.
30386         * tests/test-strerror_r.c (main): Enhance test.
30387         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
30388         * tests/test-perror2.c (main): Free memory before exit.
30390 2011-05-21  Bruno Haible  <bruno@clisp.org>
30392         mkdtemp: Use gnulib naming conventions.
30393         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
30394         * modules/mkdtemp (configure.ac): Update.
30396 2011-05-20  Eric Blake  <eblake@redhat.com>
30398         strerror_r: avoid corrupting errno on Solaris
30399         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
30400         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
30402         strerror_r: avoid compiler warning
30403         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
30405         strerror_r: simplify AIX code
30406         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
30408         test-perror: avoid spurious failure on FreeBSD
30409         * modules/perror-tests (Depends-on): Add strerror, now that
30410         strerror_r no longer pulls it in.
30412 2011-05-20  Bruno Haible  <bruno@clisp.org>
30414         strerror_r-posix: Remove unused dependencies.
30415         * modules/strerror_r-posix (Depends-on): Remove strerror.
30416         Reported by Eric Blake.
30418 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30420         intprops: remove assumption about A|B representation
30421         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
30422         is a valid integer if both A and B are.  Although this is true for
30423         all known practical hosts, the C standard doesn't guarantee it,
30424         and the code need not assume it.  Also, this change may work around
30425         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
30426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
30428 2011-05-20  Eric Blake  <eblake@redhat.com>
30430         perror: work around FreeBSD bug
30431         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
30432         is broken.  Move AC_LIBOBJ...
30433         * modules/perror (configure.ac): Here.
30434         * doc/posix-functions/perror.texi (perror): Document this.
30435         * tests/test-perror2.c (main): Enhance test.
30437         test-perror: check for strerror interactions
30438         * tests/macros.h (STREQ): Add macro.
30439         * modules/perror-tests (Files): Add second test.
30440         * tests/test-perror2.c (main): New file.
30441         * doc/posix-functions/perror.texi (perror): Document glibc bug.
30443         test-perror: rewrite to use init script
30444         * modules/perror-tests (Files): Add init.sh.
30445         * tests/test-perror.sh: Use temporary directory.
30447 2011-05-20  Jim Meyering  <meyering@redhat.com>
30449         maint: replace misused "a" with "an"
30450         * doc/intprops.texi: "a integer"
30451         * doc/regex.texi: "a explanation"
30452         * lib/alignof.h: "a object"
30453         * lib/argmatch.h: "a explanation"
30454         * lib/argp-help.c: "a option" and "a OPTION_DOC"
30455         * lib/stdint.in.h: "a integer"
30456         * lib/userspec.c: "a owner"
30457         * doc/gnulib.texi: Fix "a idea", and reword.
30459 2011-05-19  Jim Meyering  <meyering@redhat.com>
30461         maint: correct misuse of "a" and "an"
30462         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
30463         * lib/argp-help.c: "an docum...": s/an/a/
30464         * lib/argp-parse.c: "An vector": s/An/A/
30465         * lib/execute.c: "an native": s/an/a/
30466         * lib/spawn-pipe.c: Likewise.
30467         * lib/gc.h: "an Gc_rc": s/an/a/
30468         * lib/unigbrk.in.h: "an grapheme": s/an/a/
30469         * lib/fts.c: "an stat.st_dev": s/an/a/
30471 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30473         intprops-tests: work around HP-UX 11.23 cc bug with constants
30474         * tests/test-intprops.c (VERIFY): New macro.
30475         (main): Use it, instead of verify, to work around the compiler bug; see
30476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
30478         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
30479         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
30480         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
30481         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
30482         (_GL_REMAINDER_OVERFLOW): Use it.
30484         intprops-tests: revert unsigned part of previous change
30485         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
30486         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
30487         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
30488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
30490 2011-05-19  Bruno Haible  <bruno@clisp.org>
30492         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
30493         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
30494         strerror_r() returned without filling the buffer.
30495         Reported by Eric Blake.
30497 2011-05-19  Eric Blake  <eblake@redhat.com>
30499         strerror_r: guarantee unchanged errno
30500         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
30501         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
30502         failure.
30503         * tests/test-strerror_r.c (main): Enhance test.
30505 2011-05-19  Bruno Haible  <bruno@clisp.org>
30507         strerror_r: Reorder #if blocks.
30508         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
30509         for consistency with the previous commit.
30511 2011-05-19  Bruno Haible  <bruno@clisp.org>
30513         perror: Avoid clobbering the strerror buffer when possible.
30514         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
30515         * lib/strerror.c: Include it.
30516         * modules/strerror (Files): Add lib/strerror-impl.h.
30517         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
30518         (my_strerror): New function, defined through lib/strerror-impl.h.
30519         (perror): Use it instead of strerror.
30520         * modules/perror (Files): Add lib/strerror-impl.h.
30521         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
30523 2011-05-19  Eric Blake  <eblake@redhat.com>
30525         strerror_r: fix on newer cygwin
30526         * lib/strerror_r.c (strerror_r): Cygwin now has
30527         __xpg_strerror_r, use it.
30529 2011-05-19  Bruno Haible  <bruno@clisp.org>
30531         strerror_r: Avoid clobbering the strerror buffer when possible.
30532         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
30533         (sys_nerr, sys_errlist): New declarations.
30534         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
30535         HP-UX, native Win32, IRIX, and 32-bit Solaris.
30536         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
30538 2011-05-19  Bruno Haible  <bruno@clisp.org>
30540         strerror_r: Fix test failure on mingw.
30541         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
30542         EXTEND_STRERROR_R.
30543         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
30544         macros from errno.in.h instead.
30546 2011-05-19  Eric Blake  <eblake@redhat.com>
30548         strerror: relax test for Solaris
30549         * tests/test-strerror.c (main): Permit Solaris behavior.
30550         * tests/test-strerror_r.c (main): Likewise.
30552         strerror: enforce POSIX ruling on strerror(0)
30553         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
30554         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
30555         * lib/strerror_r.c (rpl_strerror_r): Work around it.
30556         * doc/posix-functions/strerror.texi (strerror): Document it.
30557         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
30558         * tests/test-strerror.c (main): Strengthen test.
30559         * tests/test-strerror_r.c (main): Likewise.
30561 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30563         intprop-tests: port to older and more-pedantic compilers
30564         * modules/intprops-tests (Files): Add tests/macros.h.
30565         * tests/test-intprops.c: Include macros.h.
30566         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
30567         it's no longer documented to expand to an integer constant expression.
30568         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
30569         argument is floating point, as it's no longer documented to expand
30570         to an integer constant expression in that case.
30571         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
30572         compiler bugs reported by Bruno Haible.  See
30573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
30574         (U0, U1): New constants, to work around the same bugs.  Also,
30575         in tests, use e.g., "(unsigned int) 39" rather than "39u".
30577         intprops: work around C compiler bugs
30578         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
30579         bug in Sun C 5.11 2010/08/13 and other compilers; see
30580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
30582         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
30583         * doc/intprops.texi (Integer Type Determination): Fix
30584         documentation for TYPE_IS_INTEGER: it returns an constant
30585         expression, not an integer constant expression.  Fix doc for
30586         TYPE_SIGNED: it returns an integer constant expression only if its
30587         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
30588         hardly worth documented that way....)
30590 2011-05-18  Bruno Haible  <bruno@clisp.org>
30592         strerror_r: Avoid clobbering the strerror buffer when possible.
30593         * lib/strerror_r.c (strerror_r): Merge the three implementations.
30594         Handle gnulib defined errno values here. When strerror() returns NULL
30595         or an empty string, return EINVAL.
30596         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
30597         gnulib defined errno values here.
30598         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
30600 2011-05-18  Eric Blake  <eblake@redhat.com>
30602         fnmatch: avoid compiler warning
30603         * lib/fnmatch_loop.c (FCT): Use correct type.
30604         Reported by Matthias Bolte.
30606 2011-05-13  Jim Meyering  <meyering@redhat.com>
30608         maint.mk: three new prohibit_<HDR>_without_use rules
30609         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
30610         (sc_prohibit_stdio-safer_without_use): Likewise.
30611         (sc_prohibit_xfreopen_without_use): Likewise.
30613 2011-05-17  Jim Meyering  <meyering@redhat.com>
30615         announce-gen: fail if the NEWS delta is empty
30616         If there's nothing noteworthy in NEWS, then either you forgot
30617         or you shouldn't be releasing.
30618         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
30620 2011-05-17  Pádraig Brady <P@draigBrady.com>
30622         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
30623         reserved symbols starting with double underscore from the check.
30625 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30627         intprops: add doc
30628         * doc/intprops.texi: New file, documenting intprops.
30629         * doc/gnulib.texi (Particular Modules): Include it.
30631         verify: add doc to gnulib manual and fix example
30632         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
30633         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
30634         (Compile-time Assertions): Fix example so it can't overflow.
30636 2011-05-17  Jim Meyering  <meyering@redhat.com>
30638         warnings.m4: don't usurp save_CPPFLAGS variable name
30639         * m4/warnings.m4: Prefix local temporary variable name with gl_.
30641         doc: fix typo
30642         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
30644 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30645             Bruno Haible  <bruno@clisp.org>
30647         doc: Tweak recent change.
30648         * README (Portability guidelines): Tweak new text.
30649         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
30650         Interix 6.1.
30652 2011-05-16  Eric Blake  <eblake@redhat.com>
30654         inttypes: avoid autoconf warning
30655         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
30656         * m4/stdint.m4 (gl_STDINT_H): Likewise.
30658 2011-05-16  Sam Steingold <sds@gnu.org>
30659         and Eric Blake  <eblake@redhat.com>
30661         vc-list-files: accept multiple directory operands
30662         * build-aux/vc-list-files: Iterate over all remaining operands.
30664 2011-05-16  Bruno Haible  <bruno@clisp.org>
30666         Fix confusion regarding deprecated modules.
30667         * modules/calloc (Status, Notice): Mark module as deprecated, not
30668         obsolete.
30669         * modules/fnmatch-posix (Status, Notice): Likewise.
30670         * modules/getdate (Status, Notice): Likewise.
30671         * modules/getopt (Status, Notice): Likewise.
30672         * modules/malloc (Status, Notice): Likewise.
30673         * modules/pipe (Status, Notice): Likewise.
30674         * modules/realloc (Status, Notice): Likewise.
30675         * modules/rename-dest-slash (Status, Notice): Likewise.
30676         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
30677         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
30678         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
30679         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
30680         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
30682 2011-05-16  Bruno Haible  <bruno@clisp.org>
30684         doc: List the target platforms.
30685         * doc/gnulib-intro.texi (Target Platforms): New section.
30686         * doc/gnulib.texi (Introduction): Update menu.
30687         * README (Portability guidelines): Refer to the new section. Update
30688         statement about oldest supported environment. Remove rationale why
30689         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
30690         unportable C89 function.
30691         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
30692         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
30694 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30696         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
30698 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30700         intprops-tests: new module
30701         * modules/intprops-tests, tests/test-intprops.c: New files.
30703         intprops: add safe, portable integer overflow checking
30704         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
30705         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
30706         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
30707         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
30708         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
30709         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
30710         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
30711         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
30712         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
30713         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
30714         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
30716 2011-05-12  James Youngman  <jay@gnu.org>
30718         Add a test for glibc's Bugzilla bug #12378.
30719         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
30720         doesn't allow the literal matching of a lone "[" (which is
30721         required by POSIX).
30722         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
30724 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
30726         Sync glibc change fixing Bugzilla bug #12378.
30727         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
30728         beginning and fall back to matching as normal character if the
30729         string ends before the matching ']' is found.  This is what POSIX
30730         requires.
30732 2011-05-13  Eric Blake  <eblake@redhat.com>
30734         getcwd-lgpl: relax test for FreeBSD
30735         * doc/posix-functions/getcwd.texi (getcwd): Document portability
30736         issue.
30737         * tests/test-getcwd-lgpl.c (main): Relax test.
30738         Reported by Matthias Bolte.
30740 2011-05-11  Eric Blake  <eblake@redhat.com>
30742         test-fflush: silence compiler warning
30743         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
30745 2011-05-11  Bruno Haible  <bruno@clisp.org>
30747         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
30748         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
30749         * modules/canonicalize (Depends-on): Add 'nocrash'.
30750         * modules/canonicalize-lgpl (Depends-on): Likewise.
30751         * doc/posix-functions/realpath.texi: Update platforms list.
30752         Reported by Ryan Schmidt <ryandesign@macports.org>.
30754 2011-05-11  Bruno Haible  <bruno@clisp.org>
30756         group-member: Declare function in <unistd.h>.
30757         * lib/unistd.in.h (group_member): New declaration.
30758         * lib/group-member.h: Remove file.
30759         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
30760         * tests/test-unistd-c++.cc: Check signature of group_member.
30761         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
30762         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
30763         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
30764         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
30765         HAVE_GROUP_MEMBER.
30766         * modules/group-member (Files): Remove lib/group-member.h.
30767         (Depends-on): Add unistd. Specify conditions.
30768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30769         (Include): Change to <unistd.h>.
30770         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
30771         HAVE_GROUP_MEMBER.
30772         * NEWS: Mention the change.
30773         * lib/euidaccess.c: Don't include group-member.h.
30775 2011-05-11  Bruno Haible  <bruno@clisp.org>
30777         group-member: Document module.
30778         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
30779         module.
30781 2011-05-11  Bruno Haible  <bruno@clisp.org>
30783         fclose: Fix mistake earlier today.
30784         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
30786 2011-05-11  Eric Blake  <eblake@redhat.com>
30788         fclose: preserve fflush errors
30789         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
30790         Reported by Jim Meyering.
30792         bootstrap: support a prereq of 'rpcgen -' on RHEL5
30793         * build-aux/bootstrap (check_versions): When no specific version
30794         is required, merely check that the app produces an exit status
30795         that indicates its existence.
30797         maint.mk: drop redundant check
30798         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
30799         the same but better.
30801 2011-05-11  Bruno Haible  <bruno@clisp.org>
30803         fclose: Fix possible link error.
30804         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
30805         unregister_shadow_fd. Improve comments.
30806         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
30807         Eric Blake.
30809 2011-05-11  Jim Meyering  <meyering@redhat.com>
30811         maint.mk: improve "can not" detection and generalize rule name
30812         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
30813         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
30814         Use the same technique as in sc_prohibit_doubled_word, so that
30815         we recognize "can not" also when the words are separated by a newline.
30816         Suggested by Eric Blake.
30817         (perl_filename_lineno_text_): Define.  Factored out of...
30818         (prohibit_doubled_word_): ...here.  Use the new definition.
30819         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
30820         (prohibit_undesirable_word_seq_RE_): New overridable variable.
30821         (ignore_undesirable_word_sequence_RE_): New overridable variable.
30823 2011-05-10  Eric Blake  <eblake@redhat.com>
30825         fclose: avoid double close race when possible
30826         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
30827         all but WINDOWS_SOCKETS.
30829 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
30831         openat: correct new comment
30832         * lib/openat-proc.c (openat_proc_name): Correct the comment.
30834 2011-05-10  Jim Meyering  <meyering@redhat.com>
30836         openat: add comments
30837         * lib/openat-proc.c (openat_proc_name): Add comments,
30838         mostly from Eric Blake.
30840 2011-05-09  Eric Blake  <eblake@redhat.com>
30842         openat: reduce syscalls in first probe of /proc
30843         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
30844         be a directory.  Simplify the probe for .. bugs.
30845         * modules/openat (Depends-on): Drop same-inode.
30846         Reported by Bastien ROUCARIES.
30848 2011-05-09  Jim Meyering  <meyering@redhat.com>
30850         maint.mk: change semantics/name of tight_scope variables
30851         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
30852         Rename variables to align with semantics that make them more useful.
30854         maint.mk: tweak new rule's name not to impinge
30855         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
30856         (sc_tight_scope): Use new rule name rather than $@-0.
30858         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
30859         * top/maint.mk (sc_tight_scope): New rule.
30860         (sc_tight_scope-0): New rule, ifdef'd out.
30861         (_gl_TS_dir): Default.
30862         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
30863         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
30865 2011-05-09  Simon Josefsson  <simon@josefsson.org>
30867         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
30868         Haible <bruno@clisp.org>.
30870 2011-05-08  Bruno Haible  <bruno@clisp.org>
30872         Comments.
30873         * m4/isnanf.m4: Add comment.
30874         * m4/isnanl.m4: Likewise.
30876 2011-05-08  Bruno Haible  <bruno@clisp.org>
30878         glob: Remove obsolete macro.
30879         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
30881 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
30883         intprops: Sun C 5.11 supports __typeof__
30884         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
30885         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
30886         which is new.
30887         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
30889         intprops: switch to usual gnulib indenting and naming
30890         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
30891         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
30893         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
30895 2011-05-08  Jim Meyering  <meyering@redhat.com>
30897         maint.mk: suppress "Entering/Leaving directory" diag in announcement
30898         * top/maint.mk (release-prep): Use make's --no-print-directory
30899         option when generating the announcement.  This eliminates the
30900         pesky "make[2]: Entering/Leaving directory" diagnostics in the
30901         generated announcement template.
30903 2011-05-08  Bruno Haible  <bruno@clisp.org>
30905         tzset: Fix gettimeofday wrapper on Solaris 2.6.
30906         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
30907         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
30909 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
30911         ignore-value, verify: Omit include files from lib_SOURCES.
30912         * modules/ignore-value, modules/verify (Makefile.am):
30913         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
30914         that leads Automake to duplicate use of am__objects_... variables
30915         in Makefile.in.  See
30916         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
30918 2011-05-07  Bruno Haible  <bruno@clisp.org>
30920         fclose: Simplify autoconf macro.
30921         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
30922         defined.
30924 2011-05-07  Bruno Haible  <bruno@clisp.org>
30926         canonicalize-lgpl: Fix autoconf macro ordering bug.
30927         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
30928         gl_STDLIB_H_DEFAULTS.
30930 2011-05-06  Eric Blake  <eblake@redhat.com>
30932         maintainer-makefile: make sc_po_check easier to tune
30933         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
30934         to probe for strings, such as an alternate location for gnulib.
30936         fclose: guarantee behavior on seekable stdin
30937         * modules/fclose (Depends-on): Add fflush.
30938         * doc/posix-functions/fclose.texi (fclose): Document this.
30939         * tests/test-fclose.c (main): Make test for this unconditional.
30941 2011-05-06  Bruno Haible  <bruno@clisp.org>
30943         fflush, fpurge: Relicense under LGPLv2+.
30944         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
30945         * modules/fpurge (License): Likewise.
30946         With permission from Eric Blake and Jim Meyering.
30947         Suggested by Eric Blake.
30949 2011-05-06  Karl Berry  <karl@gnu.org>
30951         * MODULES.html.sh (func_all_modules): remove exit.
30953 2011-05-06  Jim Meyering  <meyering@redhat.com>
30955         maint.mk: use info-gnu@ as the default only for a stable release
30956         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
30957         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
30958         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
30959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
30961 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30963         assert-h: new module, which supports C1X-style static_assert
30964         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
30965         * lib/verify.h: Revamp so that this can be copied into assert.h,
30966         while retaining the ability to use it standalone as before.
30967         Rename private identifiers so as not to encroach on the
30968         standard C namespace, since this is now used by assert.h.
30969         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
30970         the old verify_true.
30971         (_GL_VERIFY_TRUE): New macro, with much of the contents of
30972         the old verify_true.  Use _GL_VERIFY_TYPE.
30973         (_GL_VERIFY): New macro, with much of the contents of the old verify.
30974         (static_assert): New macro, if _GL_STATIC_ASSERT_H
30975         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
30976         defined when this file is copied into the replacement assert.h.
30977         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
30978         and _Static_assert is not built in.
30979         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
30980         defined, and use the new macros mentioned above.
30981         * doc/posix-headers/assert.texi: Document this.
30983 2011-05-05  Bruno Haible  <bruno@clisp.org>
30985         fclose, fflush: Respect rules for use of AC_LIBOBJ.
30986         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
30987         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
30988         gl_REPLACE_FCLOSE here.
30989         * modules/fflush (Depends-on): Remove fclose.
30990         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
30991         combination with module 'fclose'.
30993 2011-05-05  Bruno Haible  <bruno@clisp.org>
30995         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
30996         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
30997         gl_FUNC_FFLUSH.
30998         (gl_FUNC_FFLUSH): Use it.
30999         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
31000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
31001         gl_REPLACE_FSEEKO here.
31003 2011-05-05  Bruno Haible  <bruno@clisp.org>
31005         tzset: Relicense under LGPL.
31006         * modules/tzset (License): Change to LGPL.
31007         No agreement needed; it's a no-op.
31009         strtoimax, strtoumax: Relicense under LGPL.
31010         * modules/strtoimax (License): Change to LGPL.
31011         * modules/strtoumax (License): Likewise.
31012         With permission from Jim Meyering, Paul Eggert:
31013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
31014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
31016         getgroups: Relicense under LGPL.
31017         * modules/getgroups (License): Change to LGPL.
31018         With permission from Jim Meyering, Paul Eggert, Eric Blake:
31019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
31020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
31021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31023         nanosleep: Relicense under LGPL.
31024         * modules/nanosleep (License): Change to LGPL.
31025         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
31026         Haible:
31027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
31028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
31029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
31032         futimens: Relicense under LGPL.
31033         * modules/futimens (License): Change to LGPL.
31034         With permission from Eric Blake:
31035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31037         fflush: Relicense under LGPL.
31038         * modules/fflush (License): Change to LGPL.
31039         With permission from Eric Blake, Bruno Haible, Jim Meyering:
31040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
31042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
31044         tmpfile: Relicense under LGPL.
31045         * modules/tmpfile (License): Change to LGPL.
31046         With permission from Ben Pfaff:
31047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
31049         isfinite: Relicense under LGPL.
31050         * modules/isfinite (License): Change to LGPL.
31051         With permission from Ben Pfaff, Bruno Haible:
31052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
31053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
31055         acosl..tanl: Relicense under LGPL.
31056         * modules/acosl (License): Change to LGPL.
31057         * modules/asinl (License): Likewise.
31058         * modules/atanl (License): Likewise.
31059         * modules/cosl (License): Likewise.
31060         * modules/expl (License): Likewise.
31061         * modules/logl (License): Likewise.
31062         * modules/sinl (License): Likewise.
31063         * modules/sqrtl (License): Likewise.
31064         * modules/tanl (License): Likewise.
31065         Source code originally from glibc and Paolo Bonzini. Agreements:
31066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
31067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
31069 2011-05-05  Bruno Haible  <bruno@clisp.org>
31071         signal: Define sighandler_t.
31072         * lib/signal.in.h (sighandler_t): New type.
31073         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
31074         whether sighandler_t is defined.
31075         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
31076         * modules/signal (Depends-on): Add extensions.
31077         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
31078         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
31079         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
31081 2011-05-05  Eric Blake  <eblake@redhat.com>
31083         maint: remove useless REPLACE_*_H macros
31084         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
31085         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31086         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31087         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
31088         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31089         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31090         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
31091         * m4/btowc.m4: Update callers.
31092         * m4/dirfd.m4: Likewise.
31093         * m4/duplocale.m4: Likewise.
31094         * m4/fchdir.m4: Likewise.
31095         * m4/fdopendir.m4: Likewise.
31096         * m4/inet_ntop.m4: Likewise.
31097         * m4/inet_pton.m4: Likewise.
31098         * m4/ioctl.m4: Likewise.
31099         * m4/mbrlen.m4: Likewise.
31100         * m4/mbrtowc.m4: Likewise.
31101         * m4/mbsinit.m4: Likewise.
31102         * m4/mbsnrtowcs.m4: Likewise.
31103         * m4/mbsrtowcs.m4: Likewise.
31104         * m4/poll.m4: Likewise.
31105         * m4/setlocale.m4: Likewise.
31106         * m4/wcrtomb.m4: Likewise.
31107         * m4/wcsnrtombs.m4: Likewise.
31108         * m4/wcsrtombs.m4: Likewise.
31109         * m4/wctob.m4: Likewise.
31110         * m4/wcwidth.m4: Likewise.
31111         * modules/posix_spawn: Likewise.
31112         * modules/posix_spawn_file_actions_addclose: Likewise.
31113         * modules/posix_spawn_file_actions_adddup2: Likewise.
31114         * modules/posix_spawn_file_actions_addopen: Likewise.
31115         * modules/posix_spawn_file_actions_destroy: Likewise.
31116         * modules/posix_spawn_file_actions_init: Likewise.
31117         * modules/posix_spawnattr_destroy: Likewise.
31118         * modules/posix_spawnattr_getflags: Likewise.
31119         * modules/posix_spawnattr_getpgroup: Likewise.
31120         * modules/posix_spawnattr_getschedparam: Likewise.
31121         * modules/posix_spawnattr_getschedpolicy: Likewise.
31122         * modules/posix_spawnattr_getsigdefault: Likewise.
31123         * modules/posix_spawnattr_getsigmask: Likewise.
31124         * modules/posix_spawnattr_init: Likewise.
31125         * modules/posix_spawnattr_setflags: Likewise.
31126         * modules/posix_spawnattr_setpgroup: Likewise.
31127         * modules/posix_spawnattr_setschedparam: Likewise.
31128         * modules/posix_spawnattr_setschedpolicy: Likewise.
31129         * modules/posix_spawnattr_setsigdefault: Likewise.
31130         * modules/posix_spawnattr_setsigmask: Likewise.
31131         * modules/posix_spawnp: Likewise.
31133 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
31135         Add option to do-release-commit-and-tag to specify branch.
31136         * build-aux/do-release-commit-and-tag: Add --branch.
31138 2011-05-03  Bruno Haible  <bruno@clisp.org>
31140         Avoid unnecessary compilation units, through conditional dependencies.
31141         * modules/accept (Depends-on): Add conditions to the dependencies.
31142         * modules/acosl (Depends-on): Likewise.
31143         * modules/argz (Depends-on): Likewise.
31144         * modules/asinl (Depends-on): Likewise.
31145         * modules/atanl (Depends-on): Likewise.
31146         * modules/atoll (Depends-on): Likewise.
31147         * modules/bind (Depends-on): Likewise.
31148         * modules/btowc (Depends-on): Likewise.
31149         * modules/canonicalize-lgpl (Depends-on): Likewise.
31150         * modules/ceil (Depends-on): Likewise.
31151         * modules/ceilf (Depends-on): Likewise.
31152         * modules/ceill (Depends-on): Likewise.
31153         * modules/chdir-long (Depends-on): Likewise.
31154         * modules/chown (Depends-on): Likewise.
31155         * modules/close (Depends-on): Likewise.
31156         * modules/connect (Depends-on): Likewise.
31157         * modules/cosl (Depends-on): Likewise.
31158         * modules/dirfd (Depends-on): Likewise.
31159         * modules/dprintf (Depends-on): Likewise.
31160         * modules/dprintf-posix (Depends-on): Likewise.
31161         * modules/error (Depends-on): Likewise.
31162         * modules/euidaccess (Depends-on): Likewise.
31163         * modules/expl (Depends-on): Likewise.
31164         * modules/faccessat (Depends-on): Likewise.
31165         * modules/fchdir (Depends-on): Likewise.
31166         * modules/fclose (Depends-on): Likewise.
31167         * modules/fcntl (Depends-on): Likewise.
31168         * modules/fdopendir (Depends-on): Likewise.
31169         * modules/fflush (Depends-on): Likewise.
31170         * modules/floor (Depends-on): Likewise.
31171         * modules/floorf (Depends-on): Likewise.
31172         * modules/floorl (Depends-on): Likewise.
31173         * modules/fnmatch (Depends-on): Likewise.
31174         * modules/fopen (Depends-on): Likewise.
31175         * modules/fprintf-posix (Depends-on): Likewise.
31176         * modules/frexp (Depends-on): Likewise.
31177         * modules/frexp-nolibm (Depends-on): Likewise.
31178         * modules/frexpl (Depends-on): Likewise.
31179         * modules/frexpl-nolibm (Depends-on): Likewise.
31180         * modules/fseek (Depends-on): Likewise.
31181         * modules/fsusage (Depends-on): Likewise.
31182         * modules/ftell (Depends-on): Likewise.
31183         * modules/ftello (Depends-on): Likewise.
31184         * modules/futimens (Depends-on): Likewise.
31185         * modules/getcwd (Depends-on): Likewise.
31186         * modules/getcwd-lgpl (Depends-on): Likewise.
31187         * modules/getdelim (Depends-on): Likewise.
31188         * modules/getdomainname (Depends-on): Likewise.
31189         * modules/getgroups (Depends-on): Likewise.
31190         * modules/gethostname (Depends-on): Likewise.
31191         * modules/getline (Depends-on): Likewise.
31192         * modules/getlogin_r (Depends-on): Likewise.
31193         * modules/getopt-posix (Depends-on): Likewise.
31194         * modules/getpeername (Depends-on): Likewise.
31195         * modules/getsockname (Depends-on): Likewise.
31196         * modules/getsockopt (Depends-on): Likewise.
31197         * modules/getsubopt (Depends-on): Likewise.
31198         * modules/getusershell (Depends-on): Likewise.
31199         * modules/glob (Depends-on): Likewise.
31200         * modules/grantpt (Depends-on): Likewise.
31201         * modules/iconv_open (Depends-on): Likewise.
31202         * modules/iconv_open-utf (Depends-on): Likewise.
31203         * modules/inet_ntop (Depends-on): Likewise.
31204         * modules/inet_pton (Depends-on): Likewise.
31205         * modules/ioctl (Depends-on): Likewise.
31206         * modules/isapipe (Depends-on): Likewise.
31207         * modules/isfinite (Depends-on): Likewise.
31208         * modules/isinf (Depends-on): Likewise.
31209         * modules/lchown (Depends-on): Likewise.
31210         * modules/ldexpl (Depends-on): Likewise.
31211         * modules/link (Depends-on): Likewise.
31212         * modules/linkat (Depends-on): Likewise.
31213         * modules/listen (Depends-on): Likewise.
31214         * modules/logl (Depends-on): Likewise.
31215         * modules/lstat (Depends-on): Likewise.
31216         * modules/mbrlen (Depends-on): Likewise.
31217         * modules/mbrtowc (Depends-on): Likewise.
31218         * modules/mbsinit (Depends-on): Likewise.
31219         * modules/mbsnrtowcs (Depends-on): Likewise.
31220         * modules/mbsrtowcs (Depends-on): Likewise.
31221         * modules/mbtowc (Depends-on): Likewise.
31222         * modules/memcmp (Depends-on): Likewise.
31223         * modules/mkdir (Depends-on): Likewise.
31224         * modules/mkdtemp (Depends-on): Likewise.
31225         * modules/mkfifo (Depends-on): Likewise.
31226         * modules/mkfifoat (Depends-on): Likewise.
31227         * modules/mknod (Depends-on): Likewise.
31228         * modules/mkostemp (Depends-on): Likewise.
31229         * modules/mkostemps (Depends-on): Likewise.
31230         * modules/mkstemp (Depends-on): Likewise.
31231         * modules/mkstemps (Depends-on): Likewise.
31232         * modules/mktime (Depends-on): Likewise.
31233         * modules/nanosleep (Depends-on): Likewise.
31234         * modules/open (Depends-on): Likewise.
31235         * modules/openat (Depends-on): Likewise.
31236         * modules/perror (Depends-on): Likewise.
31237         * modules/poll (Depends-on): Likewise.
31238         * modules/popen (Depends-on): Likewise.
31239         * modules/posix_spawn (Depends-on): Likewise.
31240         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
31241         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31242         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31243         * modules/posix_spawnp (Depends-on): Likewise.
31244         * modules/pread (Depends-on): Likewise.
31245         * modules/printf-posix (Depends-on): Likewise.
31246         * modules/ptsname (Depends-on): Likewise.
31247         * modules/putenv (Depends-on): Likewise.
31248         * modules/pwrite (Depends-on): Likewise.
31249         * modules/readline (Depends-on): Likewise.
31250         * modules/readlink (Depends-on): Likewise.
31251         * modules/readlinkat (Depends-on): Likewise.
31252         * modules/recv (Depends-on): Likewise.
31253         * modules/recvfrom (Depends-on): Likewise.
31254         * modules/regex (Depends-on): Likewise.
31255         * modules/remove (Depends-on): Likewise.
31256         * modules/rename (Depends-on): Likewise.
31257         * modules/renameat (Depends-on): Likewise.
31258         * modules/rmdir (Depends-on): Likewise.
31259         * modules/round (Depends-on): Likewise.
31260         * modules/roundf (Depends-on): Likewise.
31261         * modules/roundl (Depends-on): Likewise.
31262         * modules/rpmatch (Depends-on): Likewise.
31263         * modules/select (Depends-on): Likewise.
31264         * modules/send (Depends-on): Likewise.
31265         * modules/sendto (Depends-on): Likewise.
31266         * modules/setenv (Depends-on): Likewise.
31267         * modules/setlocale (Depends-on): Likewise.
31268         * modules/setsockopt (Depends-on): Likewise.
31269         * modules/shutdown (Depends-on): Likewise.
31270         * modules/sigaction (Depends-on): Likewise.
31271         * modules/signbit (Depends-on): Likewise.
31272         * modules/sigprocmask (Depends-on): Likewise.
31273         * modules/sinl (Depends-on): Likewise.
31274         * modules/sleep (Depends-on): Likewise.
31275         * modules/snprintf (Depends-on): Likewise.
31276         * modules/snprintf-posix (Depends-on): Likewise.
31277         * modules/socket (Depends-on): Likewise.
31278         * modules/sprintf-posix (Depends-on): Likewise.
31279         * modules/sqrtl (Depends-on): Likewise.
31280         * modules/stat (Depends-on): Likewise.
31281         * modules/strchrnul (Depends-on): Likewise.
31282         * modules/strdup-posix (Depends-on): Likewise.
31283         * modules/strerror (Depends-on): Likewise.
31284         * modules/strerror_r-posix (Depends-on): Likewise.
31285         * modules/strndup (Depends-on): Likewise.
31286         * modules/strnlen (Depends-on): Likewise.
31287         * modules/strptime (Depends-on): Likewise.
31288         * modules/strsep (Depends-on): Likewise.
31289         * modules/strsignal (Depends-on): Likewise.
31290         * modules/strstr-simple (Depends-on): Likewise.
31291         * modules/strtod (Depends-on): Likewise.
31292         * modules/strtoimax (Depends-on): Likewise.
31293         * modules/strtok_r (Depends-on): Likewise.
31294         * modules/strtoumax (Depends-on): Likewise.
31295         * modules/symlink (Depends-on): Likewise.
31296         * modules/symlinkat (Depends-on): Likewise.
31297         * modules/tanl (Depends-on): Likewise.
31298         * modules/tcgetsid (Depends-on): Likewise.
31299         * modules/tmpfile (Depends-on): Likewise.
31300         * modules/trunc (Depends-on): Likewise.
31301         * modules/truncf (Depends-on): Likewise.
31302         * modules/truncl (Depends-on): Likewise.
31303         * modules/uname (Depends-on): Likewise.
31304         * modules/unlink (Depends-on): Likewise.
31305         * modules/unlockpt (Depends-on): Likewise.
31306         * modules/unsetenv (Depends-on): Likewise.
31307         * modules/usleep (Depends-on): Likewise.
31308         * modules/utimensat (Depends-on): Likewise.
31309         * modules/vasprintf (Depends-on): Likewise.
31310         * modules/vdprintf (Depends-on): Likewise.
31311         * modules/vdprintf-posix (Depends-on): Likewise.
31312         * modules/vfprintf-posix (Depends-on): Likewise.
31313         * modules/vprintf-posix (Depends-on): Likewise.
31314         * modules/vsnprintf (Depends-on): Likewise.
31315         * modules/vsnprintf-posix (Depends-on): Likewise.
31316         * modules/vsprintf-posix (Depends-on): Likewise.
31317         * modules/wcrtomb (Depends-on): Likewise.
31318         * modules/wcscasecmp (Depends-on): Likewise.
31319         * modules/wcscspn (Depends-on): Likewise.
31320         * modules/wcsdup (Depends-on): Likewise.
31321         * modules/wcsncasecmp (Depends-on): Likewise.
31322         * modules/wcsnrtombs (Depends-on): Likewise.
31323         * modules/wcspbrk (Depends-on): Likewise.
31324         * modules/wcsrtombs (Depends-on): Likewise.
31325         * modules/wcsspn (Depends-on): Likewise.
31326         * modules/wcsstr (Depends-on): Likewise.
31327         * modules/wcstok (Depends-on): Likewise.
31328         * modules/wcswidth (Depends-on): Likewise.
31329         * modules/wctob (Depends-on): Likewise.
31330         * modules/wctomb (Depends-on): Likewise.
31331         * modules/wctype (Depends-on): Likewise.
31332         * modules/wcwidth (Depends-on): Likewise.
31333         * modules/write (Depends-on): Likewise.
31335 2011-05-03  Bruno Haible  <bruno@clisp.org>
31337         Support for conditional dependencies.
31338         * doc/gnulib.texi (Module description): Document the syntax of
31339         conditional dependencies.
31340         * gnulib-tool: New option --conditional-dependencies.
31341         (func_usage): Document it.
31342         (cond_dependencies): New variable.
31343         (func_get_automake_snippet_conditional,
31344         func_get_automake_snippet_unconditional): New functions, extracted from
31345         func_get_automake_snippet.
31346         (func_get_automake_snippet): Use them.
31347         (sed_first_32_chars): New variable.
31348         (func_module_shellfunc_name): New function.
31349         (func_module_shellvar_name): New function.
31350         (func_module_conditional_name): New function.
31351         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
31352         func_cond_module_condition): New functions.
31353         (func_modules_transitive_closure): Add support for conditional
31354         dependencies.
31355         (func_emit_lib_Makefile_am): For a conditional module, enclose the
31356         conditional automake snippet in an automake conditional.
31357         (func_emit_autoconf_snippets): Emit shell functions that contain the
31358         code for conditional modules.
31359         (func_import, func_create_testdir): Update specification.
31361 2011-05-03  Eric Blake  <eblake@redhat.com>
31363         test-getaddrinfo: report error information
31364         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
31366 2011-05-03  Jim Meyering  <meyering@redhat.com>
31368         bootstrap: avoid build failure when $GZIP is set
31369         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
31370         program name.  If defined at all, it is supposed to list gzip options.
31371         Reported by Alan Curry in http://debbugs.gnu.org/8609
31373 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
31375         readme-release: new module with release instructions
31376         * modules/readme-release: New module.
31377         * top/README-release: New file, from coreutils, grep, diffutils.
31378         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31380 2011-05-02  Eric Blake  <eblake@redhat.com>
31382         fflush: also replace fclose when fixing fflush
31383         * modules/fflush (Depends-on): Add fclose.
31384         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
31385         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
31386         memstreams with no backing fd.
31387         * doc/posix-functions/fclose.texi (fclose): Document the use of
31388         fflush module to fix the bug.
31389         * tests/test-fclose.c (main): Relax test when fclose is used in
31390         isolation.
31392         fclose: add some tests
31393         * modules/fclose-tests: New test module.
31394         * tests/test-fclose.c: New file.
31395         * doc/posix-functions/fclose.texi (fclose): Document the bug.
31397         fclose: reduced dependencies
31398         * modules/fclose (Depends-on): Switch from fflush/fseeko to
31399         simpler lseek.
31400         * lib/fclose.c (rpl_fclose): Likewise.
31401         Reported by Simon Josefsson.
31403         exit: drop remaining clients
31404         * modules/argmatch (Depends-on): Replace exit with stdlib.
31405         * modules/copy-file (Depends-on): Likewise.
31406         * modules/execute (Depends-on): Likewise.
31407         * modules/exitfail (Depends-on): Likewise.
31408         * modules/obstack (Depends-on): Likewise.
31409         * modules/pagealign_alloc (Depends-on): Likewise.
31410         * modules/pipe-filter-gi (Depends-on): Likewise.
31411         * modules/pipe-filter-ii (Depends-on): Likewise.
31412         * modules/savewd (Depends-on): Likewise.
31413         * modules/spawn-pipe (Depends-on): Likewise.
31414         * modules/wait-process (Depends-on): Likewise.
31415         * modules/xsetenv (Depends-on): Likewise.
31416         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
31417         * modules/git-merge-changelog (Depends-on): Likewise.
31418         * modules/long-options (Depends-on): Likewise.
31419         * modules/pt_chown (Depends-on): Likewise.
31420         * modules/sysexits (Depends-on): Likewise.
31422         freading: relax license from LGPLv3+ to LGPLv2+
31423         * modules/freading (License): Relax LGPL version.
31425 2011-05-02  Bruno Haible  <bruno@clisp.org>
31427         fchdir: Remove unused dependencies.
31428         * modules/fchdir (Depends-on): Remove include_next.
31430 2011-05-02  Bruno Haible  <bruno@clisp.org>
31432         gnulib-tool: Refactor.
31433         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
31434         from func_emit_autoconf_snippets.
31435         (func_emit_autoconf_snippets): Use it.
31437 2011-05-02  Simon Josefsson  <simon@josefsson.org>
31439         * NEWS: Document removal of 'exit'.
31440         * modules/exit: Remove file.
31442 2011-05-01  Bruno Haible  <bruno@clisp.org>
31444         Update DEPENDENCIES.
31445         * DEPENDENCIES (gettext): Recommend the newest release.
31446         Reported by Simon Josefsson.
31448 2011-05-01  Bruno Haible  <bruno@clisp.org>
31450         gnulib-tool: Reduce code duplication.
31451         * gnulib-tool (func_emit_autoconf_snippets): New function.
31452         (func_import, func_create_testdir): Use it.
31454 2011-04-30  Eric Blake  <eblake@redhat.com>
31456         fclose: don't fail on non-seekable input stream
31457         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
31458         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
31459         since fflush is allowed to fail in that case.
31461 2011-04-30  Bruno Haible  <bruno@clisp.org>
31463         dup3: cleanup
31464         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
31466 2011-04-30  Bruno Haible  <bruno@clisp.org>
31468         netdb: Make it work in C++ mode.
31469         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
31470         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
31471         module.
31472         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
31473         gl_MODULE_INDICATOR_FOR_TESTS.
31474         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
31475         * modules/netdb-c++-tests: New file.
31476         * tests/test-netdb-c++.cc: New file.
31478 2011-04-30  Bruno Haible  <bruno@clisp.org>
31480         New modules 'vfscanf', 'vscanf'.
31481         * modules/vfscanf: New file.
31482         * modules/vscanf: New file.
31483         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
31484         here.
31485         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
31486         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
31488 2011-04-30  Bruno Haible  <bruno@clisp.org>
31490         passfd: Add comments.
31491         * lib/passfd.c: Add comments about platforms.
31493 2011-04-30  Bruno Haible  <bruno@clisp.org>
31495         sys_uio: Make <sys/uio.h> self-contained.
31496         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
31497         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
31499 2011-04-30  Bruno Haible  <bruno@clisp.org>
31501         sys_socket: Ensure 'struct iovec' definition.
31502         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
31503         <sys/socket.h>.
31504         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
31506 2011-04-30  Bruno Haible  <bruno@clisp.org>
31508         sys_uio: Protect definition of 'struct iovec'.
31509         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
31510         it as a C struct.
31512 2011-04-30  Bruno Haible  <bruno@clisp.org>
31514         manywarnings: fix indentation
31515         * m4/manywarnings.m4: Indent by 2 spaces consistently.
31517 2011-04-30  Pádraig Brady <P@draigBrady.com>
31519         manywarnings: add -Wno-missing-field-initializers if needed.
31520         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
31521         option if it's needed to allow initialization with { 0, }
31523 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
31525         announce-gen: cosmetic improvement
31526         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
31528 2011-04-29  Jim Meyering  <meyering@redhat.com>
31530         vc-list-files: indent with spaces, not TABs
31531         * build-aux/vc-list-files: Convert leading TABs to spaces,
31532         to match the style of most other files in gnulib.
31534         announce-gen: indent with spaces, not TABs
31535         * build-aux/announce-gen: Convert all TABs to spaces, to match
31536         the style of most other files in gnulib.
31538 2011-04-29  Eric Blake  <eblake@redhat.com>
31540         quotearg: avoid uninitialized variable use
31541         * lib/quotearg.c (quoting_options_from_style): Initialize
31542         remaining fields, and ensure that custom styles are only used via
31543         quoting_options rather than quoting_style.
31545 2011-04-29  Jim Meyering  <meyering@redhat.com>
31547         maint.mk: remove unused VC-tag variable
31548         * top/maint.mk (VC-tag): Remove unused variable.
31550 2011-04-29  Bruno Haible  <bruno@clisp.org>
31552         netdb: fix gai_strerror replacements
31553         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
31554         * modules/netdb: Substitute it.
31556 2011-04-29  Jim Meyering  <meyering@redhat.com>
31558         test-getcwd.c: avoid new set-but-not-used warning
31559         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
31560         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
31561         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
31562         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
31564         test-hash.c: avoid a new shadowing warning
31565         * tests/test-hash.c (main): Don't shadow "dup".
31567 2011-04-28  Eric Blake  <eblake@redhat.com>
31569         getaddrinfo: fix gai_strerror signature
31570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
31571         and work around mingw with UNICODE defined.
31572         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
31573         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
31574         * modules/netdb (Makefile.am): Substitute it.
31575         * lib/netdb.in.h (gai_strerror): Declare replacement.
31576         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
31577         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
31578         the fix.
31580         getsockopt: avoid compiler warning
31581         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
31582         Reported by Matthias Bolte.
31584         tests: drop unused link dependency
31585         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
31586         * modules/dirent-safer-tests (Makefile.am): Likewise.
31587         * modules/fdopendir-tests (Makefile.am): Likewise.
31588         * modules/mkfifoat-tests (Makefile.am): Likewise.
31589         * modules/openat-safer-tests (Makefile.am): Likewise.
31590         * modules/openat-tests (Makefile.am): Likewise.
31591         * modules/readlinkat-tests (Makefile.am): Likewise.
31592         * modules/symlinkat-tests (Makefile.am): Likewise.
31593         * modules/linkat-tests (Makefile.am): Likewise.
31594         (Depends-on): Switch to filenamecat-lgpl.
31595         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
31596         LIBINTL.
31597         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
31598         * tests/test-linkat.c (main): Don't require xalloc.
31600         hash, mgetgroups: drop xalloc dependency
31601         * lib/hash.c (includes): Adjust includes.
31602         * lib/mgetgroups.c (includes): Likewise.
31603         (xgetgroups): Move...
31604         * lib/xgetgroups.c: ...to new file.
31605         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
31606         * modules/xgetgroups: New file, split from...
31607         * modules/mgetgroups: ...here.
31608         (Depends-on): Add xalloc-oversized.
31609         * modules/hash (Depends-on): Likewise.
31610         * modules/hash-tests (Depends-on): Drop xalloc.
31611         (test_hash_LDADD): Drop unused library.
31612         * tests/test-hash.c (main): Break xalloc dependency.
31613         (includes): Drop unused include.
31615         xalloc-oversized: new module
31616         * modules/xalloc-oversized: New module.
31617         * modules/xalloc (Depends-on): Add it.
31618         * lib/xalloc.h (xalloc_oversized): Move...
31619         * lib/xalloc-oversized.h: ...into new file.
31621         utimecmp: drop dependency on xmalloc
31622         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
31623         due to memory pressure.
31624         * modules/utimecmp (Depends-on): Drop xalloc.
31626 2011-04-27  Eric Blake  <eblake@redhat.com>
31628         getcwd: fix mingw bugs
31629         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
31630         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
31631         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
31633 2011-04-27  Bruno Haible  <bruno@clisp.org>
31635         mkstemps: Ensure declaration on MacOS X 10.5.
31636         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
31637         * doc/glibc-functions/mkstemps.texi: Document header file problem on
31638         MacOS X.
31640 2011-04-27  Bruno Haible  <bruno@clisp.org>
31642         mkstemp: More documentation.
31643         * doc/posix-functions/mkstemp.texi: Document header file problem on
31644         MacOS X.
31646 2011-04-27  Bruno Haible  <bruno@clisp.org>
31648         mkstemp: Tweak configure message when cross-compiling.
31649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
31650         result as a guess.
31652 2011-04-27  Bruno Haible  <bruno@clisp.org>
31654         clean-temp: Clarify what it does.
31655         * lib/clean-temp.h: Add more comments.
31656         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
31657         module.
31658         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
31659         * doc/glibc-functions/mkstemps.texi: Likewise.
31660         * doc/glibc-functions/mkostemps.texi: Likewise.
31662 2011-04-27  Eric Blake  <eblake@redhat.com>
31664         fchdir: avoid extra chdir and fix test
31665         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
31666         getcwd-lgpl.
31667         * lib/fchdir.c (get_name): Any absolute name will do; it does not
31668         have to be canonical.
31669         (canonicalize_file_name): Drop unused macro.
31670         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
31672         filenamecat-lgpl: fix licence
31673         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
31674         when it was first created.
31676         linkat, renameat: add missing dependency
31677         * modules/linkat (Depends-on): Require getcwd-lgpl.
31678         * modules/renameat (Depends-on): Likewise.
31680         tests: reduce dependencies
31681         * tests/test-linkat.c (main): Use lighter-weight getcwd.
31682         * tests/test-renameat.c (main): Likewise.
31683         * modules/linkat-tests (Depends-on): Relax dependency.
31684         * modules/renameat-tests (Depends-on): Likewise.
31685         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
31686         dependency explicit.
31688         save-cwd: reduce default dependency
31689         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
31690         * lib/save-cwd.c: Update comments.
31691         * NEWS: Document the semantic change.
31693         getcwd: enhance tests
31694         * tests/test-getcwd-lgpl.c: New file, taken from...
31695         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
31696         repeat long path stress tests from m4 probe.
31697         * modules/getcwd-lgpl-tests: New module.
31698         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
31699         * m4/getcwd-abort-bug.m4: Update comment.
31700         * m4/getcwd-path-max.m4: Likewise.
31702         getcwd-lgpl: new module
31703         * modules/getcwd-lgpl: New module.
31704         * lib/getcwd-lgpl.c: New file.
31705         * doc/posix-functions/getcwd.texi (getcwd): Document it.
31706         * MODULES.html.sh (lacking POSIX:2008): Likewise.
31707         * modules/getcwd (configure.ac): Set C witness.
31708         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
31710         getcwd: tweak comments
31711         * m4/getcwd-abort-bug.m4: Fix comments.
31712         * m4/getcwd-path-max.m4: Likewise.
31713         * m4/getcwd.m4: Likewise.
31715 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
31716         and Eric Blake  <eblake@redhat.com>
31718         mkstemp: replace if system version uses wrong permissions
31719         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
31720         read/write mode bits set in file created by mkstemp.
31721         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
31723 2011-04-27  Eric Blake  <eblake@redhat.com>
31725         passfd: avoid compiler warning
31726         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
31727         Reported by Laine Stump.
31729 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
31731         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
31732         required by the NetBSD (and perhaps other 4.4BSD derived) join.
31734 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
31735         and Eric Blake  <eblake@redhat.com>
31737         mkstemp: mention clean-temp module
31738         * lib/mkstemp.c: Add comment.
31739         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
31741 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
31743         inttypes: also provide default values for 32-bit tests
31744         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
31745         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
31747 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
31749         strtoumax: remove dependency on strtoimax
31750         This is like the strtoull change of yesterday.
31751         * modules/strtoumax (Files): Add lib/strtoimax.c.
31752         (Depends-on): Remove strtoimax and add verify.
31754         inttypes-incomplete: new module
31755         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
31756         all but the PRI* and SCN* parts of gl_INTTYPES_H.
31757         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
31758         of gl_INTTYPES_H.
31759         (gl_INTTYPES_H): Rewrite in terms of these new macros.
31760         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
31761         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
31762         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
31763         * modules/strtoumax, modules/xstrtol (Depends-on):
31764         Depend on inttypes-incomplete, not inttypes.
31765         * modules/inttypes-incomplete: New module, containing the contents
31766         of the old modules/inttypes module, except that the Files: section
31767         omits m4/inttypes-pri.m4, and the configure.ac section invokes
31768         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
31769         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
31770         (Depends-on): Depend only on inttypes-incomplete.
31771         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
31773         inttypes: omit now-redundant strtoimax and strtoumax work
31774         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
31775         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
31777         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
31778         This supports apps that need pointers to strtoimax and strtoumax,
31779         and ports to HP-UX 11.00 64.bit, which has macros that expand to
31780         nonexistent functions.  See
31781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
31782         et seq.
31783         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
31784         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
31785         a macro.
31786         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
31788 2011-04-25  Simon Josefsson  <simon@josefsson.org>
31790         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
31792 2011-04-25  Bruno Haible  <bruno@clisp.org>
31794         strtol, strtoul: Mark modules as obsolete.
31795         * modules/strtol (Status, Notice): New sections.
31796         * modules/strtoul (Status, Notice): New sections.
31798 2011-04-25  Bruno Haible  <bruno@clisp.org>
31800         strtod: Remove check for strtod, unless supporting old platforms.
31801         * modules/strtod-obsolete: New file.
31802         * m4/strtod-obsolete.m4: New file.
31803         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
31804         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
31805         * modules/strtod (Depends-on): Add strtod-obsolete.
31806         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
31808 2011-04-25  Bruno Haible  <bruno@clisp.org>
31810         strcase: Make module obsolete.
31811         * modules/strcase (Status, Notice): New sections.
31813 2011-04-25  Bruno Haible  <bruno@clisp.org>
31815         dup2: Remove check for dup2, unless supporting old obsolete platforms.
31816         * modules/dup2-obsolete: New file.
31817         * m4/dup2-obsolete.m4: New file.
31818         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
31819         gl_FUNC_DUP2_OBSOLETE is not also defined.
31820         * modules/dup2 (Depends-on): Add dup2-obsolete.
31821         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
31823 2011-04-25  Bruno Haible  <bruno@clisp.org>
31825         strnlen: Avoid memchr related link error on old obsolete platforms.
31826         * modules/memchr-obsolete: New file.
31827         * m4/memchr-obsolete.m4: New file.
31828         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
31829         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
31830         * modules/memchr (Depends-on): Add memchr-obsolete.
31831         * modules/strnlen (Depends-on): Likewise.
31832         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
31834 2011-04-25  Jim Meyering  <meyering@redhat.com>
31836         maint.mk: makefile_at_at_check extend and clean up
31837         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
31838         in addition to */Makefile.am.
31839         Exempt legitimate uses of @VAR@ notation, e.g.,
31840         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
31841         Remove obsolete coreutils-specific comment.
31842         Prompted by discussion here:
31843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
31845 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31847         strtoul: remove dependency on strtol
31848         This is so that 'configure' need not check for strtol merely because
31849         the application needs strtoul.
31850         * modules/strtoul (Files): Add lib/strtol.c.
31851         (Depends-on): Remove strtol.
31853         strtoull: remove dependency on strtoul
31854         This is like the strtoll change.
31855         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
31856         (Depends-on): Remove strtoul.
31858         strtoll: remove dependency on strtol
31859         This is so that 'configure' need not check for strtol merely because
31860         the application needs strtoll.
31861         * modules/strtoll (Files): Add lib/strtol.c.
31862         (Depends-on): Remove strtol.
31864 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31866         inttypes: Move some configure check to module 'imaxdiv'.
31867         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
31868         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
31869         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
31871 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31873         inttypes: Move some configure check to module 'imaxabs'.
31874         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
31875         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
31876         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
31878 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31880         inttypes: Remove configure tests that are not needed since 2009-12-31.
31881         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
31882         gl_cv_header_working_inttypes_h.
31884 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31886         * modules/strnlen (Depends-on): Remove memchr.
31887         The strnlen implementation doesn't need the memchr module's fixes; see
31888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
31890         strtol: remove dependency on wchar
31891         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
31892         * modules/strtol (Depends-on): Remove wchar.
31894 2011-04-21  Eric Blake  <eblake@redhat.com>
31896         passfd: fix test regression on Linux
31897         * modules/passfd-tests (configure.ac): Correct socketpair check.
31899         passfd: speed up configure and drop unused code
31900         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
31901         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
31902         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
31903         Instead of probing at configure for unix_scm_rights_bsd44_way,
31904         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
31905         check to a struct member probe.
31906         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
31907         (sendfd, recvfd): Update preprocessor checks.
31908         * modules/passfd (Files): Reflect rename, and drop unused file.
31909         (Depends-on): Drop unused dependency.
31911         passfd: allow compilation on mingw
31912         * modules/sys_socket (Depends-on): Add sys_uio.
31913         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
31914         iovec and a minimal struct msghdr.
31915         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
31916         * tests/test-sys_socket.c (main): Enhance test.
31917         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
31918         guaranteed to provide what we need.
31919         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
31920         * modules/passfd-tests (Depends-on): Add sys_wait.
31921         * tests/test-passfd.c (main): Skip test on mingw, for now.
31922         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
31923         partial 'struct msghdr' implementation.
31925         sys_uio: new module
31926         * modules/sys_uio: New module.
31927         * modules/sys_uio-tests: Likewise.
31928         * lib/sys_uio.in.h: New file.
31929         * m4/sys_uio_h.m4: Likewise.
31930         * tests/test-sys_uio.c: Likewise.
31931         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
31932         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
31934 2011-04-20  Jim Meyering  <meyering@redhat.com>
31936         useless-if-before-free: avoid false-positive
31937         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
31938         disjunct so that it too requires a terminating ";".  Without that,
31939         this script would identify as useless one statement from gcc that
31940         was not:
31941           if (aligned_ptr)
31942             free (((void **) aligned_ptr) [-1]);
31944 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
31946         doc: update users.txt.
31947         * users.txt: Add barcode.
31949 2011-04-19  Bruno Haible  <bruno@clisp.org>
31951         ioctl: Remove link dependency on native Windows.
31952         * lib/fd-hook.h: Renamed from lib/close-hook.h.
31953         (gl_close_fn, gl_ioctl_fn): New types.
31954         (struct fd_hook): Renamed from struct close_hook. Change type of
31955         private_close_fn field. Add private_ioctl_fn field.
31956         (close_hook_fn): Add parameter for primary close method.
31957         (execute_close_hooks, execute_all_close_hooks): Likewise.
31958         (ioctl_hook_fn): New type.
31959         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
31960         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
31961         argument.
31962         (unregister_fd_hook): Renamed from unregister_close_hook.
31963         * lib/fd-hook.c: Renamed from lib/close-hook.c.
31964         Don't include <unistd.h>.
31965         (close): Remove undef.
31966         (anchor): Update.
31967         (execute_close_hooks): Add argument for primary close method.
31968         (execute_all_close_hooks): Likewise.
31969         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
31970         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
31971         argument. Allow each argument to be NULL.
31972         (unregister_fd_hook): Renamed from unregister_close_hook.
31973         * lib/close.c (rpl_close): Pass 'close' function pointer to
31974         execute_all_close_hooks.
31975         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
31976         (primary_ioctl): New function.
31977         (ioctl): Don't call ioctlsocket here. Instead, call
31978         execute_all_ioctl_hooks.
31979         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
31980         close method.
31981         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
31982         (fd_sockets_hook): Renamed from close_sockets_hook.
31983         (gl_sockets_startup, gl_sockets_cleanup): Update.
31984         * modules/fd-hook: Renamed from modules/close-hook. Update.
31985         * modules/close (Depends-on): Add fd-hook, remove close-hook.
31986         * modules/sockets (Depends-on): Likewise.
31987         * modules/ioctl (Depends-on): Add fd-hook.
31988         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
31989         GNULIB_SOCKET.
31991 2011-04-19  Bruno Haible  <bruno@clisp.org>
31993         Move the support of O_NONBLOCK in open() to the 'open' module.
31994         * modules/nonblocking (Depends-on): Remove 'open'.
31995         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
31996         gl_cv_have_open_O_NONBLOCK.
31997         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
31998         O_NONBLOCK support.
31999         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
32001 2011-04-17  Bruno Haible  <bruno@clisp.org>
32003         pipe2: Simplify code.
32004         * lib/pipe2.c (pipe2): Reduce code duplication.
32006 2011-04-17  Bruno Haible  <bruno@clisp.org>
32008         nonblocking: Add comment.
32009         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
32011 2011-04-17  Bruno Haible  <bruno@clisp.org>
32013         nonblocking: Add tests for sockets.
32014         * tests/test-nonblocking-socket.sh: New file.
32015         * tests/test-nonblocking-socket-main.c: New file.
32016         * tests/test-nonblocking-socket-child.c: New file.
32017         * tests/test-nonblocking-socket.h: New file.
32018         * tests/socket-server.h: New file.
32019         * tests/socket-client.h: New file.
32020         * modules/nonblocking-socket-tests: New file.
32021         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
32023 2011-04-17  Bruno Haible  <bruno@clisp.org>
32025         nonblocking: Add tests for pipes.
32026         * tests/test-nonblocking-pipe.sh: New file.
32027         * tests/test-nonblocking-pipe-main.c: New file.
32028         * tests/test-nonblocking-pipe-child.c: New file.
32029         * tests/test-nonblocking-pipe.h: New file.
32030         * tests/test-nonblocking-writer.h: New file.
32031         * tests/test-nonblocking-reader.h: New file.
32032         * tests/test-nonblocking-misc.h: New file.
32033         * modules/nonblocking-pipe-tests: New file.
32034         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
32036 2011-04-16  Bruno Haible  <bruno@clisp.org>
32038         gettext: Clarify the needed programmer actions.
32039         * modules/gettext (Notice): New field.
32040         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32042 2011-04-16  Bruno Haible  <bruno@clisp.org>
32044         strchrnul: Tweak last commit.
32045         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
32046         bug.
32047         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
32048         as in _GL_FUNCDECL_SYS.
32049         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
32050         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
32052 2011-04-15  Eric Blake  <eblake@redhat.com>
32054         strchrnul: work around cygwin bug
32055         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
32056         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
32057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
32058         * modules/string (Makefile.am): Substitute it.
32059         * lib/string.in.h (strchrnul): Use it.
32061 2011-04-15  Bruno Haible  <bruno@clisp.org>
32063         Don't require lib/stdio-write.c when only module 'stdio' is used.
32064         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
32065         invocation.
32066         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
32068 2011-04-14  Bruno Haible  <bruno@clisp.org>
32070         Support non-blocking pipe I/O in read() on native Windows.
32071         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
32072         (read): New declaration.
32073         * lib/read.c: New file.
32074         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
32075         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
32076         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
32077         vscanf): New declarations.
32078         * lib/stdio-read.c: New file.
32079         * m4/read.m4: New file.
32080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
32081         REPLACE_READ.
32082         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
32083         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
32084         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
32085         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
32086         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
32087         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
32088         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
32089         * modules/read: New file.
32090         * modules/nonblocking (Files): Add lib/stdio-read.c.
32091         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
32092         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
32093         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
32094         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
32095         * modules/pread (Depends-on): Add read.
32096         * modules/safe-read (Depends-on): Likewise.
32097         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
32098         gets, scanf, vfscanf, vscanf): Verify signatures.
32099         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
32100         problem with non-blocking pipes.
32101         * doc/posix-functions/fgetc.texi: Likewise.
32102         * doc/posix-functions/fgets.texi: Likewise.
32103         * doc/posix-functions/fread.texi: Likewise.
32104         * doc/posix-functions/fscanf.texi: Likewise.
32105         * doc/posix-functions/getc.texi: Likewise.
32106         * doc/posix-functions/getchar.texi: Likewise.
32107         * doc/posix-functions/gets.texi: Likewise.
32108         * doc/posix-functions/scanf.texi: Likewise.
32109         * doc/posix-functions/vfscanf.texi: Likewise.
32110         * doc/posix-functions/vscanf.texi: Likewise.
32112 2011-04-14  Bruno Haible  <bruno@clisp.org>
32114         Support non-blocking pipe I/O in write() on native Windows.
32115         * lib/write.c (rpl_write): Split a write request that failed merely
32116         because the byte count was larger than the pipe buffer's size.
32117         * doc/posix-functions/write.texi: Mention the problem with large byte
32118         counts.
32120 2011-04-14  Bruno Haible  <bruno@clisp.org>
32122         wchar: Ensure that wchar_t gets defined on uClibc.
32123         * lib/wchar.in.h: On uClibc, include <stddef.h>.
32124         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
32126 2011-04-13  Bruno Haible  <bruno@clisp.org>
32128         safe-write, full-read: Avoid unnecessary compilation units.
32129         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
32130         (Depends-on): Remove safe-read. Add ssize_t.
32131         * modules/full-read (Files): Add lib/full-write.c.
32132         (Depends-on): Add full-write.
32134 2011-04-13  Bruno Haible  <bruno@clisp.org>
32136         Support non-blocking pipe I/O and SIGPIPE in pwrite().
32137         * modules/pwrite (Depends-on): Add 'write'.
32139 2011-04-13  Bruno Haible  <bruno@clisp.org>
32141         Support non-blocking pipe I/O in write() on native Windows.
32142         * lib/unistd.in.h (write): Enable replacement also if
32143         GNULIB_UNISTD_H_NONBLOCKING is 1.
32144         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
32145         (rpl_write): When failing to write on a non-blocking pipe, change
32146         errno from ENOSPC to EAGAIN.
32147         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
32148         putchar, puts, vfprintf, vprintf): Enable replacement also if
32149         GNULIB_STDIO_H_NONBLOCKING is 1.
32150         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
32151         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
32152         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
32153         CALL_WITH_SIGPIPE_EMULATION.
32154         (CALL_WITH_SIGPIPE_EMULATION): Use them.
32155         * m4/nonblocking.m4: New file.
32156         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
32157         for non-blocking I/O support.
32158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32159         GNULIB_UNISTD_H_NONBLOCKING.
32160         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
32161         required for non-blocking I/O support.
32162         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
32163         * modules/nonblocking (Files): Add m4/nonblocking.m4,
32164         lib/stdio-write.c, m4/asm-underscore.m4.
32165         (Depends-on): Add stdio, unistd.
32166         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
32167         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
32168         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
32169         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
32170         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
32171         problem with non-blocking pipes.
32172         * doc/posix-functions/fputc.texi: Likewise.
32173         * doc/posix-functions/fputs.texi: Likewise.
32174         * doc/posix-functions/fwrite.texi: Likewise.
32175         * doc/posix-functions/printf.texi: Likewise.
32176         * doc/posix-functions/putc.texi: Likewise.
32177         * doc/posix-functions/putchar.texi: Likewise.
32178         * doc/posix-functions/puts.texi: Likewise.
32179         * doc/posix-functions/vfprintf.texi: Likewise.
32180         * doc/posix-functions/vprintf.texi: Likewise.
32181         * doc/posix-functions/write.texi: Likewise.
32183 2011-04-10  Jim Meyering  <meyering@redhat.com>
32185         maint.mk: prohibit doubled words
32186         Detect them also when they're separated by a newline.
32187         There are 3 ways to customize it:
32188           - disable the test on a per file basis, as usual with rules using
32189             $(VC_LIST_EXCEPT)
32190           - replace the default doubled-word-selecting regexp (affects all files)
32191           - ignore a particular file-vs-doubled-word match
32192         I nearly used that last one to ignore the "is is" match in
32193         coreutils' NEWS file, since the text was "ls -is is ..."
32194         To do that, I would have added this line to cfg.mk:
32195           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
32196         but it would have ignored any "is is" match in NEWS.
32197         Low probability, but still...
32198         Instead, I changed the text, slightly:
32199           -  ls -is is now consistent with ls -lis in ignoring values returned
32200           +  "ls -is" is now consistent with ls -lis in ignoring values returned
32201         * top/maint.mk (prohibit_double_word_RE_): Provide default.
32202         (prohibit_doubled_word_): Define.
32203         (sc_prohibit_doubled_word): New rule.
32204         (sc_prohibit_the_the): Remove.  Subsumed by the above.
32206 2011-04-10  Jim Meyering  <meyering@redhat.com>
32208         maint: fix doubled-word typo in comment
32209         * m4/gethostname.m4: s/is is/it is/
32210         * m4/getdomainname.m4: Likewise.
32212 2011-04-10  Jim Meyering  <meyering@redhat.com>
32214         maint: remove doubled word: s/it it/it/
32215         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
32217 2011-04-10  Jim Meyering  <meyering@redhat.com>
32219         maint.mk: remove useless semicolon and backslash
32220         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
32221         semicolon and backslash.
32223 2011-04-10  Bruno Haible  <bruno@clisp.org>
32225         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
32226         * modules/stdint-tests (Depends-on): Add wchar.
32228 2011-04-10  Jim Meyering  <meyering@redhat.com>
32230         maint: remove doubled words in comments, e.g., s/a a/a/
32231         * lib/strptime.c (day_of_the_week): s/the the/the/
32232         * tests/test-chown.h (test_chown): s/a a/a/
32234         test-chown.h: correct a cast
32235         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
32236         when the destination is a stat.st_gid.
32238 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
32240         getaddrinfo: Fix test for sa_len member.
32241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
32242         include <sys/types.h> before <sys/socket.h>.
32244 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32246         maint: change "can not" to "cannot"
32247         * doc/posix-functions/iconv.texi (iconv): This one crossed line
32248         boundaries.
32250 2011-04-09  Jim Meyering  <meyering@redhat.com>
32252         maint: change "a a" to "a"
32253         * tests/test-lchown.h (test_lchown): s/a a/a/
32255         maint.mk: prohibit \<the the\>
32256         * top/maint.mk (sc_prohibit_the_the): New rule.
32258         maint: fix "the the" in comment
32259         * lib/count-one-bits.h: s/the the/the/
32261         maint: change "can not" to "cannot"
32262         But do not change the occurrences in maintain.texi or in
32263         build-aux/po/Makefile.in.in, which I presume comes from gettext.
32264         * doc/gnulib-tool.texi: s/can not/cannot/
32265         * doc/posix-functions/accept.texi (accept): Likewise.
32266         * doc/posix-functions/socket.texi (socket): Likewise.
32267         * lib/mbrtowc.c: Likewise.
32269         maint.mk: prohibit use of "can not"
32270         * top/maint.mk (sc_prohibit_can_not): New rule.
32271         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
32273 2011-04-09  Bruno Haible  <bruno@clisp.org>
32275         careadlinkat: Guard against misuse of careadlinkatcwd.
32276         * lib/careadlinkat.c: Include <stdlib.h>.
32277         (careadlinkatcwd): Check that the fd argument is as expected.
32279 2011-04-09  Bruno Haible  <bruno@clisp.org>
32281         careadlinkat: Use common coding style.
32282         * lib/careadlinkat.c: Move gnulib includes after system includes.
32284 2011-04-09  Bruno Haible  <bruno@clisp.org>
32286         careadlinkat: Clarify specification.
32287         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
32288         (careadlinkatcwd): Add comment.
32289         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
32291 2011-04-09  Bruno Haible  <bruno@clisp.org>
32293         areadlinkat: Avoid link error on many platforms.
32294         * modules/areadlinkat (Depends-on): Add areadlink.
32296 2011-04-09  Bruno Haible  <bruno@clisp.org>
32298         allocator, careadlinkat: Fix double-inclusion guard.
32299         * lib/allocator.h: Fix double-inclusion guard.
32300         * lib/careadlinkat.h: Likewise.
32302 2011-04-09  Bruno Haible  <bruno@clisp.org>
32304         relocatable-prog-wrapper: Update after module 'areadlink' changed.
32305         * lib/relocwrapper.c: Update dependencies hierarchy.
32306         * build-aux/install-reloc: Update list of files to be compiled.
32307         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
32308         lib/allocator.[hc].
32310 2011-04-08  Eric Blake  <eblake@redhat.com>
32312         strftime: silence gnulib-tool warning
32313         * modules/strftime-tests (Depends-on): Drop automatic dependency.
32315 2011-04-08  Bruno Haible  <bruno@clisp.org>
32317         verify: Fix syntax error with GCC 4.6 in C++ mode.
32318         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
32319         (HAVE_STATIC_ASSERT): New macro.
32320         (verify_true, verify): Use 'static_assert' if it is supported and
32321         '_Static_assert' is not supported.
32323 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
32325         allocator: New module.
32326         * modules/allocator, lib/allocator.c: New files.
32327         * lib/allocator.h (stdlib_allocator): New decl.
32328         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
32329         Remove.  Do not include <stdlib.h>.
32330         (careadlinkat): Use stdlib_allocator instead of rolling our own.
32331         * modules/careadlinkat (Files): Remove lib/allocator.h.
32332         (Depends-on): Add allocator.
32334         stdlib: let modules use system malloc, realloc
32335         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
32336         if !_GL_USE_STDLIB_ALLOC.
32337         (malloc, realloc): Limit this change to a smaller scope.
32339         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
32340         (malloc, realloc): Don't #undef; no longer needed.
32341         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
32342         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
32343         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
32344         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
32345         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
32346         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
32347         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
32348         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
32350         careadlinkat: rename members to avoid problem
32351         * lib/allocator.h (struct allocator): Rename members from
32352         malloc/realloc to allocate/reallocate, to avoid problems if malloc
32353         and realloc are #define'd.  Reported by Eric Blake in
32354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
32355         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
32357 2011-04-08  Eric Blake  <eblake@redhat.com>
32359         nonblocking: reduce dependency
32360         * tests/test-nonblocking.c: Only test sockets when in use.
32361         * modules/nonblocking-tests (Depends-on): Drop socket.
32362         (Makefile.am): Link even if sockets are not present.
32363         * modules/pipe2-tests (Makefile.am): Likewise.
32364         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
32366         pipe2: fix O_NONBLOCK support on mingw
32367         * modules/pipe2 (Depends-on): Add nonblocking.
32368         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
32369         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
32370         * tests/test-nonblocking.c (main): Likewise.
32371         * modules/pipe2-tests (Makefile.am): Avoid link failure.
32373         fcntl-h: fix O_ACCMODE on cygwin
32374         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
32375         * lib/fcntl.in.h (O_ACCMODE): Fix it.
32377         pipe-filter: drop O_NONBLOCK workarounds
32378         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
32379         * modules/pipe-filter-ii (Depends-on): Likewise.
32380         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
32382         nonblocking: provide O_NONBLOCK for mingw
32383         * modules/nonblocking (Depends-on): Add open.
32384         (configure.ac): Set new witness macro.
32385         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
32386         * modules/fcntl-h (Makefile.am): Substitute it.
32387         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
32388         nonblocking module is in use.
32389         * lib/nonblocking.c: Adjust portability test.
32390         * lib/open.c (open): Don't let native open see gnulib flag.
32391         * tests/test-fcntl-h.c (main): Enhance test.
32392         * tests/test-open.h (test_open): Likewise.
32393         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
32395         careadlinkat: fix compilation error on mingw
32396         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
32397         within struct allocator.
32399 2011-04-06  Eric Blake  <eblake@redhat.com>
32401         binary-io: relicense under LGPLv2+
32402         * modules/binary-io (License): Relax to LGPLv2+.
32403         Requested for libvirt, and required by pipe2.
32405 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
32407         verify: use _Static_assert if available
32408         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
32409         (verify_true, verify): Use it if available.  This generates better
32410         diagnostics with GCC 4.6.0 and later.
32412 2011-04-05  Bruno Haible  <bruno@clisp.org>
32414         Remove leftover generated .h files after config.status changed.
32416         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
32417         GL_GENERATE_ALLOCA_H.
32418         * modules/alloca-opt (Makefile.am): Remove alloca.h if
32419         GL_GENERATE_ALLOCA_H evaluates to false.
32421         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
32422         GL_GENERATE_ARGZ_H.
32423         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
32424         evaluates to false.
32426         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
32427         GL_GENERATE_BYTESWAP_H.
32428         * modules/byteswap (Makefile.am): Remove byteswap.h if
32429         GL_GENERATE_BYTESWAP_H evaluates to false.
32431         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
32432         GL_GENERATE_ERRNO_H.
32433         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
32434         evaluates to false.
32436         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
32437         GL_GENERATE_FLOAT_H.
32438         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
32439         evaluates to false.
32441         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
32442         GL_GENERATE_FNMATCH_H.
32443         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
32444         GL_GENERATE_FNMATCH_H evaluates to false.
32446         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
32447         GL_GENERATE_GLOB_H.
32448         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
32449         evaluates to false.
32451         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
32452         automake conditional GL_GENERATE_ICONV_H.
32453         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
32454         evaluates to false.
32456         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
32457         GL_GENERATE_NETINET_IN_H.
32458         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
32459         GL_GENERATE_NETINET_IN_H evaluates to false.
32461         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
32462         conditional GL_GENERATE_PTHREAD_H.
32463         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
32464         * modules/pthread (Makefile.am): Remove pthread.h if
32465         GL_GENERATE_PTHREAD_H evaluates to false.
32467         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
32468         GL_GENERATE_SCHED_H.
32469         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
32470         evaluates to false.
32472         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
32473         conditional GL_GENERATE_SELINUX_CONTEXT_H.
32474         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
32475         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
32477         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
32478         GL_GENERATE_STDARG_H.
32479         * modules/stdarg (Makefile.am): Remove stdarg.h if
32480         GL_GENERATE_STDARG_H evaluates to false.
32482         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
32483         GL_GENERATE_STDBOOL_H.
32484         * modules/stdbool (Makefile.am): Remove stdbool.h if
32485         GL_GENERATE_STDBOOL_H evaluates to false.
32487         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
32488         conditional GL_GENERATE_STDDEF_H.
32489         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
32490         * modules/stddef (Makefile.am): Remove stddef.h if
32491         GL_GENERATE_STDDEF_H evaluates to false.
32493         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
32494         GL_GENERATE_STDINT_H.
32495         * modules/stdint (Makefile.am): Remove stdint.h if
32496         GL_GENERATE_STDINT_H evaluates to false.
32498         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
32499         GL_GENERATE_SYSEXITS_H.
32500         * modules/sysexits (Makefile.am): Remove sysexits.h if
32501         GL_GENERATE_SYSEXITS_H evaluates to false.
32503         Reported by Karl Berry and Ralf Wildenhues.
32505 2011-04-05  Bruno Haible  <bruno@clisp.org>
32507         Ensure to rebuild generated .h files when config.status has changed.
32508         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
32509         config.status.
32510         * modules/ctype (Makefile.am): Likewise.
32511         * modules/dirent (Makefile.am): Likewise.
32512         * modules/errno (Makefile.am): Likewise.
32513         * modules/fcntl-h (Makefile.am): Likewise.
32514         * modules/float (Makefile.am): Likewise.
32515         * modules/getopt-posix (Makefile.am): Likewise.
32516         * modules/glob (Makefile.am): Likewise.
32517         * modules/iconv-h (Makefile.am): Likewise.
32518         * modules/inttypes (Makefile.am): Likewise.
32519         * modules/langinfo (Makefile.am): Likewise.
32520         * modules/locale (Makefile.am): Likewise.
32521         * modules/math (Makefile.am): Likewise.
32522         * modules/netdb (Makefile.am): Likewise.
32523         * modules/netinet_in (Makefile.am): Likewise.
32524         * modules/poll-h (Makefile.am): Likewise.
32525         * modules/pthread (Makefile.am): Likewise.
32526         * modules/pty (Makefile.am): Likewise.
32527         * modules/sched (Makefile.am): Likewise.
32528         * modules/search (Makefile.am): Likewise.
32529         * modules/selinux-h (Makefile.am): Likewise.
32530         * modules/signal (Makefile.am): Likewise.
32531         * modules/spawn (Makefile.am): Likewise.
32532         * modules/stdarg (Makefile.am): Likewise.
32533         * modules/stdbool (Makefile.am): Likewise.
32534         * modules/stddef (Makefile.am): Likewise.
32535         * modules/stdint (Makefile.am): Likewise.
32536         * modules/stdio (Makefile.am): Likewise.
32537         * modules/stdlib (Makefile.am): Likewise.
32538         * modules/string (Makefile.am): Likewise.
32539         * modules/strings (Makefile.am): Likewise.
32540         * modules/sys_file (Makefile.am): Likewise.
32541         * modules/sys_ioctl (Makefile.am): Likewise.
32542         * modules/sys_select (Makefile.am): Likewise.
32543         * modules/sys_socket (Makefile.am): Likewise.
32544         * modules/sys_stat (Makefile.am): Likewise.
32545         * modules/sys_time (Makefile.am): Likewise.
32546         * modules/sys_times (Makefile.am): Likewise.
32547         * modules/sys_utsname (Makefile.am): Likewise.
32548         * modules/sys_wait (Makefile.am): Likewise.
32549         * modules/sysexits (Makefile.am): Likewise.
32550         * modules/termios (Makefile.am): Likewise.
32551         * modules/time (Makefile.am): Likewise.
32552         * modules/unistd (Makefile.am): Likewise.
32553         * modules/wchar (Makefile.am): Likewise.
32554         * modules/wctype-h (Makefile.am): Likewise.
32555         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
32557 2011-04-05  Bruno Haible  <bruno@clisp.org>
32559         pipe2: Relicense under LGPLv2+.
32560         * modules/pipe2 (License): Change to LGPLv2+.
32561         Requested by Eric Blake, for libvirt.
32563 2011-04-05  Bruce Korb  <bkorb@gnu.org>
32565         bootstrap: compute gnulib_extra_files after updating build_aux
32566         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
32567         change build_aux or also supply gnulib_extra_files.  Handle correctly.
32569 2011-04-05  Eric Blake  <eblake@redhat.com>
32571         bootstrap: preserve git whitelist item sorting
32572         * build-aux/bootstrap (sort_patterns): New function.
32573         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
32575 2011-04-05  Simon Josefsson  <simon@josefsson.org>
32577         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
32578         sc_space_tab check.
32580 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
32582         areadlink, areadlinkat: rewrite in terms of careadlinkat
32583         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
32584         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
32585         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
32586         (malloc, realloc): Remove #undefs.
32587         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
32588         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
32589         readlink, ssize_t, stdint, unistd.
32590         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
32591         areadlink, stdint.
32593         careadlinkat: new module
32594         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
32595         * modules/careadlinkat: New files, written by me with
32596         a review and feedback from Ben Pfaff in
32597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
32599 2011-04-01  Bruno Haible  <bruno@clisp.org>
32601         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
32602         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
32603         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
32604         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
32605         Reported by Bruce Korb <bruce.korb@gmail.com>.
32607 2011-04-01  Bruno Haible  <bruno@clisp.org>
32609         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
32610         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
32611         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
32612         * modules/wcpcpy (Depends-on): Add extensions.
32613         * modules/wcpncpy (Depends-on): Likewise.
32614         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
32615         systems.
32616         * doc/posix-functions/wcpncpy.texi: Likewise.
32617         * doc/posix-functions/wcwidth.texi: Likewise.
32619 2011-03-31  Eric Blake  <eblake@redhat.com>
32621         nonblocking: fix mingw test failures
32622         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
32623         non-blocking flag on regular file.
32624         (get_nonblocking_flag): Set errno on invalid fd.
32625         * tests/test-nonblocking.c (main): Avoid test failure on
32626         directories if fchdir is not active.
32627         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
32629 2011-03-31  Bruno Haible  <bruno@clisp.org>
32631         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
32632         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
32633         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
32634         Reported by Simon Josefsson <simon@josefsson.org>.
32636 2011-03-31  Bruno Haible  <bruno@clisp.org>
32637         and Eric Blake  <eblake@redhat.com>
32639         nonblocking: new module
32640         * modules/nonblocking: New module.
32641         * modules/nonblocking-tests: Likewise.
32642         * lib/nonblocking.h: New file.
32643         * lib/nonblocking.c: Likewise.
32644         * tests/test-nonblocking.c: New test.
32645         * lib/ioctl.c (ioctl) [mingw]: Update comment.
32647 2011-03-30  Bruno Haible  <bruno@clisp.org>
32649         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
32650         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
32651         instead of 'printf' format for GCC >= 4.4.
32652         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
32653         (fprintf, printf, vfprintf, vprintf): Declare with
32654         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
32655         the system's vfprintf() function.
32656         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
32658 2011-03-30  Eric Blake  <eblake@redhat.com>
32660         passfd: fix scoping bug
32661         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
32662         before sendmsg/recvmsg.
32664         passfd: standardize coding conventions
32665         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
32666         can be learned at compile time.
32667         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
32668         ifdefs.
32669         (sendfd, recvfd): Follow gnulib code conventions.
32671         passfd: fix incorrect sendmsg arguments
32672         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
32673         incorrect msg_controllen value.
32674         * modules/passfd-tests (Depends-on): Check for alarm.
32675         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
32676         Reported by Bastien ROUCARIES.
32678 2011-03-30  Bruno Haible  <bruno@clisp.org>
32680         c-strcasestr: Relicense under LGPLv2+.
32681         * modules/c-strcasestr (License): Change to LGPLv2+.
32682         Requested by Eric Blake, for libvirt.
32684 2011-03-30  Simon Josefsson  <simon@josefsson.org>
32686         * users.txt: Add libidn2.  Fix libtasn1 link.
32688 2011-03-30  Jim Meyering  <meyering@redhat.com>
32690         tests: readlink* ("",... fails with EINVAL on newer kernels
32691         readlink and readlinkat have typically failed with ENOENT for
32692         the invalid, empty file name,  "".  However, with the advent
32693         of linux-2.6.39, they fail with EINVAL.
32694         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
32695         when operating on the empty file name.
32696         * tests/test-readlink.h (test_readlink): Likewise.
32698 2011-03-29  Bruno Haible  <bruno@clisp.org>
32700         Relicense some modules under LGPLv2+, for libidn2.
32701         * modules/array-mergesort (License): Change to LGPLv2+.
32702         * modules/c-strcaseeq (License): Likewise.
32703         * modules/striconveh (License): Likewise.
32704         * modules/striconveha (License): Likewise.
32705         * modules/uniconv/base (License): Likewise.
32706         * modules/uniconv/u8-conv-from-enc (License): Likewise.
32707         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
32708         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
32709         * modules/unictype/base (License): Likewise.
32710         * modules/unictype/bidiclass-of (License): Likewise.
32711         * modules/unictype/category-M (License): Likewise.
32712         * modules/unictype/category-none (License): Likewise.
32713         * modules/unictype/category-of (License): Likewise.
32714         * modules/unictype/category-test (License): Likewise.
32715         * modules/unictype/category-test-withtable (License): Likewise.
32716         * modules/unictype/combining-class (License): Likewise.
32717         * modules/unictype/joiningtype-of (License): Likewise.
32718         * modules/unictype/scripts (License): Likewise.
32719         * modules/uninorm/base (License): Likewise.
32720         * modules/uninorm/canonical-decomposition (License): Likewise.
32721         * modules/uninorm/composition (License): Likewise.
32722         * modules/uninorm/decompose-internal (License): Likewise.
32723         * modules/uninorm/decomposition-table (License): Likewise.
32724         * modules/uninorm/nfc (License): Likewise.
32725         * modules/uninorm/nfd (License): Likewise.
32726         * modules/uninorm/u32-normalize (License): Likewise.
32727         * modules/unistr/base (License): Likewise.
32728         * modules/unistr/u32-cpy (License): Likewise.
32729         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
32730         * modules/unistr/u32-to-u8 (License): Likewise.
32731         * modules/unistr/u32-uctomb (License): Likewise.
32732         * modules/unistr/u8-check (License): Likewise.
32733         * modules/unistr/u8-mblen (License): Likewise.
32734         * modules/unistr/u8-mbtouc (License): Likewise.
32735         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
32736         * modules/unistr/u8-mbtoucr (License): Likewise.
32737         * modules/unistr/u8-prev (License): Likewise.
32738         * modules/unistr/u8-strlen (License): Likewise.
32739         * modules/unistr/u8-to-u32 (License): Likewise.
32740         * modules/unistr/u8-uctomb (License): Likewise.
32741         * modules/unitypes (License): Likewise.
32742         Requested by Simon Josefsson.
32744 2011-03-29  Simon Josefsson  <simon@josefsson.org>
32746         lib-symbol-visibility: Add a notice.
32747         * modules/lib-symbol-visibility (Notice): New field.
32749 2011-03-29  Bruno Haible  <bruno@clisp.org>
32751         getaddrinfo: Doc fix.
32752         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
32753         section "fixed in Gnulib".
32755 2011-03-28  Simon Josefsson  <simon@josefsson.org>
32757         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
32758         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
32760 2011-03-26  Bruno Haible  <bruno@clisp.org>
32762         unictype/property-byname: Reduce the number of load-time relocations.
32763         * lib/unictype/pr_byname.c: Include <stdlib.h>.
32764         (UC_PROPERTY_INDEX_*): New enumeration values.
32765         (uc_property_byname): Convert an index from the lookup table to an
32766         uc_property_t.
32767         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
32768         values.
32770 2011-03-26  Bruno Haible  <bruno@clisp.org>
32772         unictype/property-byname: Allow omitted word separators and aliases.
32773         * lib/unictype/pr_byname.gperf: Add property names without word
32774         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
32775         for 'space'.
32777 2011-03-26  Bruno Haible  <bruno@clisp.org>
32779         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
32780         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
32781         also hyphens to space.
32782         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
32783         without spaces.
32784         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
32786 2011-03-26  Bruno Haible  <bruno@clisp.org>
32788         unictype/joiningtype-byname: Recognize long names as well.
32789         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
32790         a long name.
32791         * lib/unictype/joiningtype_byname.c: Include <string.h>,
32792         unictype/joiningtype_byname.h.
32793         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
32794         * lib/unictype/joiningtype_byname.gperf: New file.
32795         * modules/unictype/joiningtype-byname (Files): Add
32796         lib/unictype/joiningtype_byname.gperf.
32797         (Depends-on): Add gperf.
32798         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
32799         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
32800         long names.
32802         Tests for module 'unictype/joiningtype-longname'.
32803         * modules/unictype/joiningtype-longname-tests: New file.
32804         * tests/unictype/test-joiningtype_longname.c: New file.
32806         New module 'unictype/joiningtype-longname'.
32807         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
32808         * lib/unictype/joiningtype_longname.c: New file.
32809         * modules/unictype/joiningtype-longname: New file.
32810         * modules/unictype/joiningtype-all (Depends-on): Add
32811         unictype/joiningtype-longname.
32813 2011-03-26  Bruno Haible  <bruno@clisp.org>
32815         unictype/bidiclass-byname: Recognize long names as well.
32816         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
32817         name.
32818         * lib/unictype/bidi_byname.c: Include <string.h>,
32819         unictype/bidi_byname.h.
32820         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
32821         * lib/unictype/bidi_byname.gperf: New file.
32822         * modules/unictype/bidiclass-byname (Files): Add
32823         lib/unictype/bidi_byname.gperf.
32824         (Depends-on): Add gperf.
32825         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
32826         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
32827         long names.
32829         Tests for module 'unictype/bidiclass-longname'.
32830         * modules/unictype/bidiclass-longname-tests: New file.
32831         * tests/unictype/test-bidi_longname.c: New file.
32833         New module 'unictype/bidiclass-longname'.
32834         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
32835         * lib/unictype/bidi_longname.c: New file.
32836         * modules/unictype/bidiclass-longname: New file.
32837         * modules/unictype/bidiclass-all (Depends-on): Add
32838         unictype/bidiclass-longname.
32840 2011-03-26  Bruno Haible  <bruno@clisp.org>
32842         unictype/bidi*: Rename modules.
32843         * modules/unictype/bidiclass-all: Renamed from
32844         modules/unictype/bidicategory-all.
32845         * modules/unictype/bidiclass-name: Renamed from
32846         modules/unictype/bidiclass-name.
32847         (Description): Update.
32848         * modules/unictype/bidiclass-name-tests: Renamed from
32849         modules/unictype/bidicategory-name-tests.
32850         * modules/unictype/bidiclass-byname: Renamed from
32851         modules/unictype/bidicategory-byname.
32852         (Description): Update.
32853         * modules/unictype/bidiclass-byname-tests: Renamed from
32854         modules/unictype/bidicategory-byname-tests.
32855         * modules/unictype/bidiclass-of: Renamed from
32856         modules/unictype/bidicategory-of.
32857         (Description): Update.
32858         * modules/unictype/bidiclass-of-tests: Renamed from
32859         modules/unictype/bidicategory-of-tests.
32860         * modules/unictype/bidiclass-test: Renamed from
32861         modules/unictype/bidicategory-test.
32862         (Description): Update.
32863         * modules/unictype/bidiclass-test-tests: Renamed from
32864         modules/unictype/bidicategory-test-tests.
32865         * modules/unictype/bidicategory-all: New file, a simple redirection.
32866         * modules/unictype/bidicategory-name: Likewise.
32867         * modules/unictype/bidicategory-byname: Likewise.
32868         * modules/unictype/bidicategory-of: Likewise.
32869         * modules/unictype/bidicategory-test: Likewise.
32870         * modules/unictype/property-bidi-* (Dependencies): Update.
32871         * lib/unictype/bidi_*.c: Update comment.
32873 2011-03-26  Bruno Haible  <bruno@clisp.org>
32875         unictype/bidi*: Rename functions, part 2.
32876         * modules/unictype/bidicategory-name (configure.ac): Update required
32877         libunistring version.
32878         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
32880 2011-03-25  Bruno Haible  <bruno@clisp.org>
32882         New module 'unictype/combining-class-all'.
32883         * modules/unictype/combining-class-all: New file.
32885         Tests for module 'unictype/combining-class-byname'.
32886         * modules/unictype/combining-class-byname-tests: New file.
32887         * tests/unictype/test-combiningclass_byname.c: New file.
32889         New module 'unictype/combining-class-byname'.
32890         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
32891         * lib/unictype/combiningclass_byname.c: New file.
32892         * lib/unictype/combiningclass_byname.gperf: New file.
32893         * modules/unictype/combining-class-byname: New file.
32895         Tests for module 'unictype/combining-class-longname'.
32896         * modules/unictype/combining-class-longname-tests: New file.
32897         * tests/unictype/test-combiningclass_longname.c: New file.
32899         New module 'unictype/combining-class-longname'.
32900         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
32901         * lib/unictype/combiningclass_longname.c: New file.
32902         * modules/unictype/combining-class-longname: New file.
32904         Tests for module 'unictype/combining-class-name'.
32905         * modules/unictype/combining-class-name-tests: New file.
32906         * tests/unictype/test-combiningclass_name.c: New file.
32908         New module 'unictype/combining-class-name'.
32909         * lib/unictype.in.h (uc_combining_class_name): New declaration.
32910         * lib/unictype/combiningclass_name.c: New file.
32911         * modules/unictype/combining-class-name: New file.
32913 2011-03-25  Bruno Haible  <bruno@clisp.org>
32915         unictype/combining-class: Rename source files.
32916         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
32917         of unictype/combining.h.
32918         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
32919         Update.
32920         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
32921         * modules/unictype/combining-class (Description): Fix.
32922         (Files, Makefile.am): Update.
32923         * tests/unictype/test-combiningclass.c: Renamed from
32924         tests/unictype/test-combining.c.
32925         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
32927 2011-03-25  Bruno Haible  <bruno@clisp.org>
32929         unictype: Update list of canonical combining classes.
32930         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
32932 2011-03-25  Bruno Haible  <bruno@clisp.org>
32934         unictype/category-byname: Recognize long names as well.
32935         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
32936         a long name.
32937         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
32938         unictype/categ_byname.h.
32939         (UC_CATEGORY_INDEX_*): New enumeration values.
32940         (uc_general_category_byname): Use uc_general_category_lookup and
32941         convert from index to value.
32942         * lib/unictype/categ_byname.gperf: New file.
32943         * modules/unictype/category-byname (Files): Add
32944         lib/unictype/categ_byname.gperf.
32945         (Depends-on): Add gperf.
32946         (Makefile.am): Add rule for generating unictype/categ_byname.h.
32947         * tests/unictype/test-categ_byname.c (main): Test the recognition of
32948         long names.
32950         Tests for module 'unictype/category-longname'.
32951         * modules/unictype/category-longname-tests: New file.
32952         * tests/unictype/test-categ_longname.c: New file.
32954         New module 'unictype/category-longname'.
32955         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
32956         * lib/unictype/categ_longname.c: New file.
32957         * modules/unictype/category-longname: New file.
32958         * modules/unictype/category-all (Depends-on): Add it.
32960 2011-03-25  Bruno Haible  <bruno@clisp.org>
32962         Tests for module 'unictype/category-LC'.
32963         * modules/unictype/category-LC-tests: New file.
32964         * tests/unictype/test-categ_LC.c: New file, automatically generated.
32966         New module 'unictype/category-LC'.
32967         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
32968         (UC_CATEGORY_LC): New declaration.
32969         (UC_CASED_LETTER): New macro.
32970         * lib/gen-uni-tables.c (is_category_LC): New function.
32971         (output_categories): Also handle category LC.
32972         (UC_CATEGORY_MASK_LC): New enumeration value.
32973         (general_category_byname): Also handle category LC.
32974         * lib/unictype/categ_LC.c: New file.
32975         * lib/unictype/categ_LC.h: New file, automatically generated.
32976         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
32977         category LC.
32978         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
32979         * modules/unictype/category-LC: New file.
32980         * modules/unictype/category-byname (Depends-on): Add
32981         unictype/category-LC.
32982         * modules/unictype/category-all (Depends-on): Likewise.
32984 2011-03-25  Eric Blake  <eblake@redhat.com>
32986         xmalloc: revert yesterday's regression
32987         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
32988         realloc's underlying behavior (allowing allocation of zero-size
32989         objects, especially if malloc-gnu is also in use).
32991 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
32993         maint.mk: add missing version to VC-tag
32994         * top/maint.mk: git tag was missing actual tag name; add it.
32996         valgrind: do leak checking, and exit with code 1 on error (not 0)
32997         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
32998         to VALGRIND.
33000 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
33002         posix-modules: say what it does.
33003         * posix-modules: Add a line to the --help output saying what it does.
33005 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33007         xmalloc: Do not leak if underlying realloc is C99 compatible.
33008         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
33009         This avoids a leak on C99-based systems.  See
33010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
33012 2011-03-24  Eric Blake  <eblake@redhat.com>
33014         realloc: document portability problem
33015         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
33016         passing 0 size to realloc.
33018 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
33020         doc: update users.txt
33021         * users.txt: Add cvsps, tmpwatch
33023 2011-03-23  Matt Rice  <ratmice@gmail.com>
33025         doc: update users.txt
33026         * users.txt: Add gdb.
33028 2011-03-23  Jim Meyering  <meyering@redhat.com>
33030         doc: update users.txt
33031         Looking through matches up to the following URL (there are still
33032         several more pages), I found several projects that use gnulib:
33033         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
33034         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
33035         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
33037 2011-03-22  Bruno Haible  <bruno@clisp.org>
33039         unictype/bidi*: Rename functions.
33040         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
33041         uc_bidi_class, uc_is_bidi_class): New declarations.
33042         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
33043         uc_bidi_category_byname.
33044         (uc_bidi_category_byname): New function.
33045         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
33046         u_bidi_category_name.
33047         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
33048         (uc_bidi_category_name): New function.
33049         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
33050         uc_bidi_category.
33051         (uc_bidi_category): New function.
33052         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
33053         uc_is_bidi_category. Invoke uc_bidi_class.
33054         (uc_is_bidi_category): New function.
33055         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
33056         instead of uc_bidi_category_byname.
33057         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
33058         instead of uc_bidi_category_name.
33059         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
33060         uc_bidi_category.
33061         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
33062         instead of uc_is_bidi_category.
33064 2011-03-21  Bruno Haible  <bruno@clisp.org>
33066         New module 'unictype/joininggroup-all'.
33067         * modules/unictype/joininggroup-all: New file.
33069         Tests for module 'unictype/joininggroup-of'.
33070         * modules/unictype/joininggroup-of-tests: New file.
33071         * tests/unictype/test-joininggroup_of.c: New file.
33072         * tests/unictype/test-joininggroup_of.h: New file, automatically
33073         generated by gen-uni-tables.
33075         New module 'unictype/joininggroup-of'.
33076         * modules/unictype/joininggroup-of: New file.
33077         * lib/unictype/joininggroup_of.c: New file.
33078         * lib/unictype/joininggroup_of.h: New file, automatically generated by
33079         gen-uni-tables.
33081         Tests for module 'unictype/joininggroup-byname'.
33082         * modules/unictype/joininggroup-byname-tests: New file.
33083         * tests/unictype/test-joininggroup_byname.c: New file.
33085         New module 'unictype/joininggroup-byname'.
33086         * modules/unictype/joininggroup-byname: New file.
33087         * lib/unictype/joininggroup_byname.c: New file.
33088         * lib/unictype/joininggroup_byname.gperf: New file.
33090         Tests for module 'unictype/joininggroup-name'.
33091         * modules/unictype/joininggroup-name-tests: New file.
33092         * tests/unictype/test-joininggroup_name.c: New file.
33094         New module 'unictype/joininggroup-name'.
33095         * modules/unictype/joininggroup-name: New file.
33096         * lib/unictype/joininggroup_name.c: New file.
33097         * lib/unictype/joininggroup_name.h: New file.
33099         New module 'unictype/joiningtype-all'.
33100         * modules/unictype/joiningtype-all: New file.
33102         Tests for module 'unictype/joiningtype-of'.
33103         * modules/unictype/joiningtype-of-tests: New file.
33104         * tests/unictype/test-joiningtype_of.c: New file.
33105         * tests/unictype/test-joiningtype_of.h: New file, automatically
33106         generated by gen-uni-tables.
33108         New module 'unictype/joiningtype-of'.
33109         * modules/unictype/joiningtype-of: New file.
33110         * lib/unictype/joiningtype_of.c: New file.
33111         * lib/unictype/joiningtype_of.h: New file, automatically generated by
33112         gen-uni-tables.
33114         Tests for module 'unictype/joiningtype-byname'.
33115         * modules/unictype/joiningtype-byname-tests: New file.
33116         * tests/unictype/test-joiningtype_byname.c: New file.
33118         New module 'unictype/joiningtype-byname'.
33119         * modules/unictype/joiningtype-byname: New file.
33120         * lib/unictype/joiningtype_byname.c: New file.
33122         Tests for module 'unictype/joiningtype-name'.
33123         * modules/unictype/joiningtype-name-tests: New file.
33124         * tests/unictype/test-joiningtype_name.c: New file.
33126         New module 'unictype/joiningtype-name'.
33127         * modules/unictype/joiningtype-name: New file.
33128         * lib/unictype/joiningtype_name.c: New file.
33130         unictype: Add support for Arabic shaping properties.
33131         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
33132         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
33133         declarations.
33134         (UC_JOINING_GROUP_*): New enumeration values.
33135         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
33136         declarations.
33137         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
33138         (unicode_joining_type): New variable.
33139         (UC_JOINING_GROUP_*): New enumeration values.
33140         (unicode_joining_group): New variable.
33141         (fill_arabicshaping, joining_type_as_c_identifier,
33142         output_joining_type_test, output_joining_type,
33143         joining_group_as_c_identifier, output_joining_group_test,
33144         output_joining_group): New functions.
33145         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
33146         fill_arabicshaping and output_joining_type_test, output_joining_type,
33147         output_joining_group_test, output_joining_group.
33148         Reported by Simon Josefsson.
33150 2011-03-21  Jim Meyering  <meyering@redhat.com>
33152         strftime: fix a bug in yesterday's change
33153         * lib/strftime.c (add): Accommodate width's initial value of -1.
33154         Otherwise, nstrftime would copy uninitialized data into
33155         the result buffer.
33157 2011-03-21  Jim Meyering  <meyering@redhat.com>
33159         tests: add strftime-tests module
33160         * tests/test-strftime.c: New file.
33161         * modules/strftime-tests: New module.
33163 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
33165         strftime: don't assume a byte count fits in 'int'
33166         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
33167         found this problem by static analysis, using gcc -Wstrict-overflow
33168         (GCC 4.5.2, x86-64).  This reported an optimization that depended
33169         on an integer overflow having undefined behavior, but it turns out
33170         that the argument is a size, which might not fit in 'int' anyway,
33172 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
33174         stdio: don't require ignore_value around fwrite
33176         This patch works around libc bug 11959
33177         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
33178         Without this patch, applications must often write
33179         ignore_value (fwrite (...)) even though the ignore_value is
33180         not helpful here.  It's common to write many objects, using
33181         fwrite/printf/etc., and then use ferror to detect output error.
33183         I considered making this patch optional, but decided against it,
33184         because libc is obviously being inconsistent here: there is no
33185         reason libc should insist that user code must inspect fwrite
33186         return's value without also insisting that it inspect printf's,
33187         putchar's, etc.  If user code wants to have a strict style where
33188         all these functions' values are checked (so that ferror need not
33189         be checked), we could add support for that style in a new gnulib
33190         module, but in the meantime it's better to be consistent and to
33191         support common usage.
33193         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
33194         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
33195         that we are compiling in checking mode, and if not C++, and
33196         if not already wrapping fwrite for some other reason.
33197         (fwrite): #define to rpl_fwrite if the latter is defined.
33199 2011-03-20  Bruno Haible  <bruno@clisp.org>
33201         verror: Fix compilation error introduced on 2011-02-13.
33202         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
33203         instead of __attribute__.
33204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33206 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
33207             Bruno Haible  <bruno@clisp.org>
33209         socklen: do not depend on sys_socket
33210         While trying to modify Emacs to use gnulib's socklen module,
33211         I discovered a circular dependency: socklen depends on sys_socket
33212         and vice versa.  Emacs can use socklen, but it does not need
33213         sys_socket because it has its own substitute for sys/socket.h.
33214         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
33215         gl_TYPE_SOCKLEN_T.
33216         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
33217         gl_PREREQ_SYS_H_SOCKET.
33218         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
33219         gl_PREREQ_SYS_H_SOCKET.
33220         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
33221         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
33222         * modules/socklen (Depends-on): Do not depend on sys_socket.
33223         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
33225 2011-03-20  Jim Meyering  <meyering@redhat.com>
33227         maint.mk: sort file names *after* new transformation
33228         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
33229         prefix would have led to an unwarranted failure in GNU parted.
33230         Sort after that transformation.
33232 2011-03-19  Jim Meyering  <meyering@redhat.com>
33234         maint.mk: fix po-file syntax-check rule
33235         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
33236         Patch by Bruno Haible.
33238 2011-03-19  Bruno Haible  <bruno@clisp.org>
33240         socklen: Update comment.
33241         * m4/socklen.m4: Update comment about platforms.
33243 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33244             Bruno Haible  <bruno@clisp.org>
33246         inet_ntop, inet_pton: Simplify.
33247         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
33248         documented to provide socklen_t and we already depend on sys_socket.
33249         * modules/inet_pton (Depends-on): Likewise.
33250         * lib/arpa_inet.in.h: Adjust comment.
33252 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33253             Bruno Haible  <bruno@clisp.org>
33255         netdb: Simplify.
33256         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
33257         documented to provide socklen_t and we already depend on sys_socket.
33258         * lib/netdb.in.h: Adjust comment.
33260 2011-03-19  Bruno Haible  <bruno@clisp.org>
33262         sys_socket, netdb: Document problem with socklen_t.
33263         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
33264         platforms.
33265         * doc/posix-headers/netdb.texi: Likewise.
33267 2011-03-18  Eric Blake  <eblake@redhat.com>
33269         maint.mk: let po check work in VPATH build
33270         * top/maint.mk (po_file): Allow cfg.mk override.
33271         (sc_po_check): Allow VPATH use.
33272         Reported by Jiri Denemark.
33274 2011-03-16  Jim Meyering  <meyering@redhat.com>
33276         maint.mk: allow fine-grained syntax-check exclusion via Make variables
33277         Before, you would have had to create one .x-sc_ file per rule in order
33278         to exempt offending files.  Now, you may instead use a Make variable --
33279         usually defined in cfg.mk -- whose name identifies the affected rule.
33280         * top/maint.mk (_sc_excl): Define.
33281         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
33282         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
33284 2011-03-13  Bruno Haible  <bruno@clisp.org>
33286         ignore-value tests: Avoid warnings.
33287         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
33288         empty for gcc < 3.4.
33290 2011-03-13  Bruno Haible  <bruno@clisp.org>
33292         passfd: Fix link error on Solaris.
33293         * modules/passfd (Description): Correct.
33294         (Depends-on): Add socketlib.
33295         (Link): New section.
33296         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
33298 2011-03-13  Bruno Haible  <bruno@clisp.org>
33300         passfd: Fix link error on AIX 5.2.
33301         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
33303 2011-03-13  Bruno Haible  <bruno@clisp.org>
33305         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
33306         * lib/sys_socket.in.h: Include <stddef.h>.
33307         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
33308         CMSG_FIRSTHDR. Remove unused variable.
33310 2011-03-13  Bruno Haible  <bruno@clisp.org>
33312         passfd: Fix compilation error on OpenBSD.
33313         * lib/passfd.c: Include <sys/uio.h>.
33315 2011-03-13  Bruno Haible  <bruno@clisp.org>
33317         passfd test: Fix warnings.
33318         * tests/test-passfd.c: Include <sys/wait.h>.
33319         (main): Fix typo.
33321 2011-03-13  Bruno Haible  <bruno@clisp.org>
33323         passfd module, part 4, tweaks.
33324         * tests/test-passfd.c: Reorder includes.
33325         (main): Fix perror and printf calls.
33327 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
33329         passfd module, part 4.
33330         * modules/passfd-tests: New file.
33331         * tests/test-passfd.c: New file.
33333 2011-03-13  Jim Meyering  <meyering@redhat.com>
33335         Makefile: rely on GNU make; derive syntax-check rule names
33336         Rather than requiring that each sc_ rule be listed as a dependent
33337         of "check", use features of GNU make to derive the list.
33338         * Makefile (syntax-check-rules): Define.
33339         (check): Depend on the new variable, not the hard-coded list.
33341 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
33342             Bruno Haible  <bruno@clisp.org>
33344         passfd module, part 3.
33345         * lib/passfd.h (recvfd): Add a flags argument.
33346         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
33347         (recvfd): Add a flags argument.
33348         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
33349         exists.
33350         * modules/passfd (Depends-on): Add cloexec.
33351         Suggested by Eric Blake.
33353 2011-03-13  Bruno Haible  <bruno@clisp.org>
33355         passfd module, part 2, tweaks.
33356         * modules/passfd (Files): Reorder.
33357         (Depends-on): Remove errno.
33358         (Include): Remove <sys/socket.h>, <sys/un.h>.
33359         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
33360         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
33361         specification header. Include <sys/socket.h> always. Don't include
33362         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
33363         (sendfd): Clarify that it sets errno when it fails.
33364         (recvfd): Fix specification.
33366 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
33368         passfd module, part 2.
33369         * modules/passfd: New file.
33370         * lib/passfd.h: New file.
33371         * lib/passfd.c: New file.
33373 2011-03-12  Bruno Haible  <bruno@clisp.org>
33375         wcswidth, mbswidth: Avoid integer overflow.
33376         * lib/wcswidth.c: Include <limits.h>.
33377         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
33378         * lib/mbswidth.c: Include <limits.h>.
33379         (mbsnwidth): Avoid 'int' overflow.
33380         Reported by Jim Meyering.
33382 2011-03-12  Bruno Haible  <bruno@clisp.org>
33384         futimens, utimensat: Avoid endless recursion on Solaris 10.
33385         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
33386         Solaris.
33387         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
33388         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
33390 2011-03-11  Jim Meyering  <meyering@redhat.com>
33392         maint.mk: relax a regexp to accommodate other formatting styles
33393         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
33394         between "ngettext" and the following "(".
33396 2011-03-11  Pádraig Brady <P@draigBrady.com>
33398         maint.mk: suppress a false positive warning
33399         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
33400         diagnostics are marked with ngettext.
33402 2011-03-10  Eric Blake  <eblake@redhat.com>
33404         wchar: add explicit dependencies, for Tru64
33405         * modules/mbmemcasecoll (Depends-on): Add wchar.
33406         * modules/mbtowc (Depends-on): Likewise.
33407         * modules/vasnprintf (Depends-on): Likewise.
33408         * modules/unistdio/u-printf-args (Depends-on): Likewise.
33409         * modules/wctomb (Depends-on): Likewise.
33410         Reported by Peter O'Gorman.
33412 2011-03-08  Bruno Haible  <bruno@clisp.org>
33414         passfd module, part 1, tweaks.
33415         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
33416         Improve indentation. Improve AC_MSG_CHECKING messages.
33417         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
33418         gl_SOCKET_FAMILIES.
33420 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
33422         passfd module, part 1.
33423         * m4/afunix.m4: New file.
33424         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
33425         sockets.
33427 2011-03-08  Bruno Haible  <bruno@clisp.org>
33429         regex-quote: New API.
33430         * lib/regex-quote.h: Include <stdbool.h>.
33431         (struct regex_quote_spec): New type.
33432         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
33433         New declarations.
33434         (regex_quote_length, regex_quote_copy, regex_quote): Take a
33435         'const struct regex_quote_spec *' argument.
33436         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
33437         (pcre_special): New constant.
33438         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
33439         New functions.
33440         (regex_quote_length, regex_quote_copy, regex_quote): Take a
33441         'const struct regex_quote_spec *' argument.
33442         * modules/regex-quote (Depends-on): Add stdbool.
33443         * tests/test-regex-quote.c (check): Update for new API. Add test for
33444         anchored results.
33445         * NEWS: Mention the API change.
33446         Reported by Reuben Thomas and Eric Blake.
33448 2011-03-06  Bruno Haible  <bruno@clisp.org>
33450         regex-quote: Fix creation of POSIX extended regular expressions.
33451         * lib/regex-quote.c (ere_special): Add grouping and alternation
33452         operators.
33454 2011-03-05  Bruno Haible  <bruno@clisp.org>
33456         doc: Improve doc regarding autopoint vs. gnulib.
33457         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
33458         disable autopoint while running autoreconf.
33459         Suggested by Ralf Wildenhues.
33461 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33463         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
33464         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
33466 2011-03-03  Bruce Korb  <bkorb@gnu.org>
33468         parse-duration: remove xalloc.h dependency
33469         * lib/parse-duration.c (parse_period): handle NULL return from
33470         strdup instead of calling xstrdup().
33471         * modules/parse-duration: remove "xalloc" dependency
33473 2011-03-03  Matthew Booth  <mbooth@redhat.com>
33475         bootstrap: honor m4_base when running aclocal
33476         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
33478 2011-03-02  Jim Meyering  <meyering@redhat.com>
33480         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
33481         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
33482         on request from Matt Booth.
33484 2011-03-01  Eric Blake  <eblake@redhat.com>
33486         test-link: work on Hurd
33487         * tests/test-link.h (test_link): Hurd rejects linking directories
33488         with EISDIR instead of the POSIX-mandated EPERM.
33490 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
33492         stdio: simplify by moving files to printf-posix, sigpipe
33493         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
33494         since this symbol is needed only if printf is replaced.
33495         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
33496         Require gl_ASM_SYMBOL_PREFIX.
33497         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
33498         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
33499         (Depends-on): Add 'raise'.
33500         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
33501         * modules/stdio (Files): Remove lib/stdio-write.c,
33502         m4/asm-underscore.m4.
33503         (Depends-on): Remove 'raise'.
33505         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
33506         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
33507         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
33508         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
33510 2011-02-28  Bruno Haible  <bruno@clisp.org>
33512         localcharset: Assume ANSI C behaviour of free().
33513         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
33514         calling free().
33515         Suggested by Simon Josefsson <simon@josefsson.org>.
33517 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
33518             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
33519             Bruno Haible  <bruno@clisp.org>  (tiny change)
33521         On Cygwin, use /proc file system instead of win32 API.
33522         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
33523         Win32 file names.
33524         (DllMain): Simplify by removing Cygwin specific code.
33525         (find_shared_library_fullname): Use Linux specific implementation also
33526         for Cygwin.
33527         (get_shared_library_fullname): Update accordingly.
33528         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
33529         Win32 file names.
33530         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
33531         Cygwin specific code.
33533 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
33534             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
33536         Fix OpenMP flag detection for various Fortran compilers.
33537         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
33538         OpenMP-conditional compilation construct, to force compile
33539         failure with missing OpenMP flag.
33540         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
33542 2011-02-25  Eric Blake  <eblake@redhat.com>
33544         strstr: expand test coverage
33545         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
33546         compilation.
33547         * tests/test-memmem.c (main): Duplicate tests.
33548         * tests/test-strcasestr.c (main): Likewise.
33549         * tests/test-c-strcasestr.c (main): Likewise.
33551 2011-02-25  Jim Meyering  <meyering@redhat.com>
33553         maint.mk: detect missing-NL-at-EOF, too
33554         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
33555         it also detects when a file lacks a newline at EOF.
33556         (require_exactly_one_NL_at_EOF_): Renamed from
33557         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
33558         since people may well have .x-sc_... file names tied to the
33559         existing name.  Suggested by Eric Blake.
33561 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33563         dirname: move m4/dos.m4 functionality into lib/dosname.h
33565         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
33566         extracts symbols from it, puts them into config.h; but it's much
33567         easier to use the symbols directly.  filename.h already does this,
33568         but it disagrees with dos.m4 in some respects.  This patch
33569         introduces a different include file dosname.h that packages up
33570         dos.m4, and then later we can work on merging filename.h and
33571         dosname.h.  Applications that need only the easy-to-configure
33572         symbols should consider including dosname.h rather than dirname.h.
33573         * NEWS: Mention incompatible changes.
33574         * m4/dos.m4: Remove.
33575         * lib/dosname.h, modules/dosname: New files.
33576         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
33577         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
33578         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
33579         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
33580         Include dosname.h, not dirname.h.
33581         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
33582         Include dosname.h, for definitions of symbols like ISSLASH
33583         that used to be in config.h.
33584         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
33585         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
33586         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33587         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33588         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
33589         * modules/rmdir (Files): Likewise.
33590         * modules/stat (Files): Likewise.
33591         * modules/unlink (Files): Likewise.
33592         * modules/dirname-lgpl (Depends-on): Add dosname.
33593         * modules/lstat (Depends-on): Likewise.
33594         * modules/openat (Depends-on): Likewise.
33595         * modules/rmdir (Depends-on): Likewise.
33596         * modules/savewd (Depends-on): Likewise.
33597         * modules/stat (Depends-on): Likewise.
33598         * modules/unlink (Depends-on): Likewise.
33599         * modules/openat (Depends-on): Remove dirname-lgpl.
33600         * modules/savewd (Depends-on): Likewise.
33601         * tests/test-dirname.c: Do not use removed symbols like
33602         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
33603         the remaining symbols, e.g., ISSLASH ('\\').
33605 2011-02-25  Eric Blake  <eblake@redhat.com>
33607         strstr: revert patches that introduced bug and pessimization
33608         * lib/str-two-way.h: Add another reference.
33609         (two_way_short_needle, two_way_long_needle): Revert changes from
33610         2011-02-24; they pessimize search speed.
33611         (critical_factorization): Partially revert changes from
33612         2010-06-22; they violate the requirement that the left half of the
33613         needle be smaller than the period of the needle.
33615 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33617         filenamecat: remove unnecessary dependency on dirname-lgpl
33618         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
33619         is no direct dependency, just an indirect one via filenamecat-lgpl.
33621         remove: remove unnecessary use of m4/dos.m4
33622         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
33623         * modules/remove (FILES): Remove m4/dos.m4.
33625         * lib/openat-proc.c: Don't include dirname.h; not needed.
33627         backupfile: remove unnecessary use of m4/dos.m4
33628         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
33629         of its symbols are used by the backupfile code.  backupfile.c does
33630         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
33631         for the rare case of programs that want all their backup file
33632         names to live within 8+3 limits, and dos.m4 doesn't address that.
33633         * modules/backupfile (Files): Remove m4/dos.m4.
33635 2011-02-24  Jim Meyering  <meyering@redhat.com>
33637         strstr: fix a bug whereby strstr would mistakenly return NULL
33638         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
33639         in period calculation.
33640         (two_way_long_needle): Likewise.
33641         The original problem was reported by Mike Stump in
33642         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
33643         Ralf Wildenhues provided the short needle and haystack.
33644         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
33645         Add a more involved test to trigger the bug in two_way_long_needle.
33647 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33649         gnulib-tool: remove use of bold display in help screen
33650         * gnulib-tool (func_usage): Do not use bold display anymore in the
33651         help screen.  That was just meant to be a temporary emphasis for a
33652         backward-incompatible change.
33654 2011-02-23  Bruno Haible  <bruno@clisp.org>
33656         Fix misindentation of preprocessor directives.
33657         * lib/argp-namefrob.h: Reindent preprocessor directives.
33658         * lib/getopt_int.h (struct _getopt_data): Likewise.
33659         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
33660         * lib/vasnprintf.c (decode_long_double): Likewise.
33661         * tests/test-argmatch.c: Insert blank lines, for clarity.
33662         * tests/test-exclude.c: Likewise.
33664 2011-02-22  Bruno Haible  <bruno@clisp.org>
33666         ioctl: Fix for MacOS X in 64-bit mode.
33667         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
33668         value.
33669         Suggested by Eric Blake.
33670         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
33672 2011-02-22  Jim Meyering  <meyering@redhat.com>
33674         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
33675         * Makefile (sc_cpp_indent_check): Don't limit the check to files
33676         in lib/.
33678 2011-02-22  Eric Blake  <eblake@redhat.com>
33680         maint: avoid any CDPATH issue
33681         * Makefile (sc_cpp_indent_check): Anchor cd argument.
33683         maint: adjust cpp indentation for my modules, as well
33684         * Makefile (sc_cpp_indent_check): Add my name.
33685         * lib/fbufmode.c: Filter through cppi.
33686         * lib/fpurge.c: Likewise.
33687         * lib/freadable.c: Likewise.
33688         * lib/freading.c: Likewise.
33689         * lib/fwritable.c: Likewise.
33690         * lib/fwriting.c: Likewise.
33691         * lib/sigaction.c: Likewise.
33693 2011-02-22  Jim Meyering  <meyering@redhat.com>
33695         maint: adjust cpp indentation to reflect nesting depth
33696         I.e., in a block of code that begins with an unnested "#if",
33697         put one space between the "#" in column 1 and following token.
33698         For example,
33699         -#include <sys/vfs.h>
33700         +# include <sys/vfs.h>
33701         Do this only in .c files that are part of a module I maintain.
33702         * lib/linkat.c: Filter through cppi.
33703         * lib/nanosleep.c: Likewise.
33704         * lib/openat.c: Likewise.
33705         * lib/openat-die.c: Likewise.
33706         * lib/dup3.c: Likewise.
33707         * lib/fchownat.c: Likewise.
33708         * lib/flock.c: Likewise.
33709         * lib/fsync.c: Likewise.
33710         * lib/fts.c: Likewise.
33711         * lib/getpass.c: Likewise.
33712         * lib/gettimeofday.c: Likewise.
33713         * lib/userspec.c: Likewise.
33714         * Makefile (sc_cpp_indent_check): New rule, to check this.
33716 2011-02-22  Bruno Haible  <bruno@clisp.org>
33718         New module 'wctomb'.
33719         * lib/stdlib.in.h (wctomb): New declaration.
33720         * lib/wctomb.c: New file.
33721         * lib/wctomb-impl.h: New file.
33722         * m4/wctomb.m4: New file.
33723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
33724         REPLACE_WCTOMB.
33725         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
33726         REPLACE_WCTOMB.
33727         * modules/wctomb: New file.
33728         * tests/test-stdlib-c++.cc: Test signature of wctomb.
33729         * doc/posix-functions/wctomb.texi: Mention the new module.
33730         * modules/wctob (Depends-on): Add wctomb.
33732 2011-02-22  Bruno Haible  <bruno@clisp.org>
33734         New module 'mbtowc'.
33735         * lib/stdlib.in.h (mbtowc): New declaration.
33736         * lib/mbtowc.c: New file.
33737         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
33738         * m4/mbtowc.m4: New file.
33739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
33740         REPLACE_MBTOWC.
33741         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
33742         REPLACE_MBTOWC.
33743         * modules/mbtowc: New file.
33744         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
33745         * doc/posix-functions/mbtowc.texi: Mention the new module.
33746         * modules/btowc (Depends-on): Add mbtowc.
33748 2011-02-22  Bruno Haible  <bruno@clisp.org>
33750         wcrtomb: Add more tests for native Windows platforms.
33751         * tests/test-wcrtomb-w32-1.sh: New file.
33752         * tests/test-wcrtomb-w32-2.sh: New file.
33753         * tests/test-wcrtomb-w32-3.sh: New file.
33754         * tests/test-wcrtomb-w32-4.sh: New file.
33755         * tests/test-wcrtomb-w32-5.sh: New file.
33756         * tests/test-wcrtomb-w32.c: New file.
33757         * modules/wcrtomb-tests (Files): Add them.
33758         (Makefile.am): Arrange to run these tests.
33759         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
33760         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
33762 2011-02-20  Bruno Haible  <bruno@clisp.org>
33764         wcrtomb: Enhance test.
33765         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
33767 2011-02-20  Bruno Haible  <bruno@clisp.org>
33769         mbrtowc: Tiny optimization.
33770         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
33772 2011-02-20  Jim Meyering  <meyering@redhat.com>
33774         test-exclude.c: remove unmatched #endif
33775         * tests/test-exclude.c: Remove stray #endif, left over from
33776         the change of a week ago.
33778 2011-02-19  Jim Meyering  <meyering@redhat.com>
33780         git-version-gen: skip "-dirty" check when appropriate
33781         * build-aux/git-version-gen: Don't run any git commands when the
33782         version string comes from .tarball-version.  Prior to this, we
33783         would run git update-index --refresh even from a just-unpacked
33784         tarball directory, and that could affect a .git/ directory in a
33785         parent of the build directory.  Reported by Mike Frysinger.
33787 2011-02-19  Bruno Haible  <bruno@clisp.org>
33789         unictype/property-byname: Reduce the size of the 'data' segment.
33790         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
33792 2011-02-19  Bruno Haible  <bruno@clisp.org>
33794         unictype/scripts: Reduce the size of the 'data' segment.
33795         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
33796         '%pic'.
33797         * lib/unictype/scripts_byname.gperf: Regenerated.
33799 2011-02-19  Bruno Haible  <bruno@clisp.org>
33801         stdint: Update documentation.
33802         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
33804 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
33806         stdint: omit redundant check for wchar.h
33807         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
33808         always tests whether wchar.h exists, so remove the now-redundant test.
33810 2011-02-18  Bruno Haible  <bruno@clisp.org>
33812         stdint: Cut dependency to module 'wchar'.
33813         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
33814         include the necessary prerequisites.
33815         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
33816         * modules/stdint (Depends-on): Remove wchar.
33817         (Makefile.am): Substitute HAVE_WCHAR_H.
33818         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
33820 2011-02-18  Eric Blake  <eblake@redhat.com>
33822         longlong: skip, rather than fail, on cross-compilation
33823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
33824         when cross-compiling; regression from 2011-02-16.
33826 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
33828         * NEWS: Mention 2011-02-08 change to stdlib.
33830 2011-02-17  Bruno Haible  <bruno@clisp.org>
33832         getloadavg: Add comments about platforms.
33833         * m4/getloadavg.m4: Add comment.
33834         * lib/getloadavg.c: Likewise.
33836 2011-02-17  Bruno Haible  <bruno@clisp.org>
33838         getloadavg: Fix link error on Solaris 2.6.
33839         * modules/getloadavg (Link): New section.
33840         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
33841         linking test-getloadavg.
33842         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
33843         getloadavg.
33845 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
33847         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
33848         It was 'int', but this doesn't match the IRIX 6.5 manual.
33849         Suggested by Bruno Haible in
33850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
33852 2011-02-17  Bruno Haible  <bruno@clisp.org>
33854         havelib: Fix comments.
33855         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
33856         change.
33858 2011-02-17  Bruno Haible  <bruno@clisp.org>
33860         havelib: Update config.rpath.
33861         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
33863 2011-02-17  Bruno Haible  <bruno@clisp.org>
33865         getloadavg test: Add some plausibility checks.
33866         * tests/test-getloadavg.c (check_avg): Print a warning when the value
33867         is improbable.
33869 2011-02-16  Eric Blake  <eblake@redhat.com>
33871         maintainer-makefile: make syntax-check a no-op from tarballs
33872         * top/maint.mk (no-vc-detected): New rule.
33873         (local-checks-available): Use it to avoid hanging if someone tries
33874         'make syntax-check' from a tarball.  Also append to any non-syntax
33875         checks already defined in cfg.mk.
33877 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
33879         longlong: tune, particularly for common case of c99
33881         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
33882         or running anything if c99, or if unsigned long long int does not
33883         work.  In either case, we know the answer without further tests.
33884         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
33885         it at most once, and use its results for both long long int and
33886         unsigned long long int.  This is more likely to be efficient in
33887         the common case where the program wants to check for both long
33888         long int and unsigned long long int.
33889         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
33890         since the answer is already known.
33892 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
33894         getloadavg: set errno
33895         * lib/getloadavg.c: Set errno when returning -1.  If no other
33896         error number looks appropriate, set it to ENOSYS if the getloadavg
33897         looks like it can't possibly ever work, ENOTSUP otherwise.
33898         Suggested by Bruno Haible in
33899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
33901         getloadavg: trim unused parts and speed up 'configure'
33902         * NEWS: Document this.
33903         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
33904         always compiled if getloadavg is absent.
33905         Move test code to ...
33906         * tests/test-getloadavg.c: New file, containing previous
33907         contents of test from lib/getloadavg.c.  It also contains
33908         suggestions by Bruno Haible in
33909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
33910         * modules/getloadavg-tests: New file.
33911         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
33912         Do tests in the same order as they're needed for getloadavg.c.
33913         Omit setgid-related tests that generate symbols KMEM_GROUP,
33914         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
33915         Do only the tests that are needed to see whether the system has
33916         getloadavg, moving the other tests into ...
33917         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
33918         NLIST_NAME_UNION; nobody should be using it.  Do not define
33919         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
33920         relevant, as the user of this module shouldn't care how getloadavg
33921         is implemented.
33923         getloadavg: omit unused var
33924         * lib/getloadavg.c (getloadavg): Omit unused local variable.
33926 2011-02-15  Jim Meyering  <meyering@redhat.com>
33928         doc: update users.txt
33929         * users.txt: Update iwhd's URL.
33931 2011-02-13  Bruno Haible  <bruno@clisp.org>
33933         Consistent macro naming for macros that use GCC __attribute__.
33934         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
33935         _ATTRIBUTE_NONNULL_.
33936         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
33937         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
33938         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
33939         ATTRIBUTE_DEPRECATED.
33940         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
33941         ATTRIBUTE_NORETURN.
33942         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33943         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33944         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33945         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33946         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
33947         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
33948         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
33949         ATTRIBUTE_SENTINEL.
33950         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
33951         ATTRIBUTE_RETURN_CHECK.
33952         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
33953         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
33954         ATTRIBUTE_NORETURN.
33955         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
33956         Reported by Paul Eggert.
33958 2011-02-13  Bruno Haible  <bruno@clisp.org>
33960         Don't interfere with a program's definition of __attribute__.
33961         * lib/argp.h (__attribute__): Remove definition.
33962         (_GL_ATTRIBUTE_FORMAT): New macro.
33963         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
33964         * lib/argp-fmtstream.h (__attribute__): Remove definition.
33965         (_GL_ATTRIBUTE_FORMAT): New macro.
33966         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
33967         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
33968         GCC 3 or newer.
33969         * lib/error.h (__attribute__): Remove definition.
33970         (_GL_ATTRIBUTE_FORMAT): New macro.
33971         (error, error_at_line): Use it.
33972         * lib/hash.h (__attribute__): Remove definition.
33973         (ATTRIBUTE_WUR): Update definition. Define always.
33974         * lib/openat.h (__attribute__): Remove definition.
33975         (ATTRIBUTE_NORETURN): Update definition. Define always.
33976         * lib/sigpipe-die.h (__attribute__): Remove definition.
33977         (ATTRIBUTE_NORETURN): Update definition. Define always.
33978         * lib/vasnprintf.h (__attribute__): Remove definition.
33979         (_GL_ATTRIBUTE_FORMAT): New macro.
33980         (asnprintf, vasnprintf): Use it.
33981         * lib/xalloc.h (__attribute__): Remove definition.
33982         (ATTRIBUTE_NORETURN): Update definition. Define always.
33983         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
33984         * lib/xmemdup0.h (__attribute__): Remove definition.
33985         (ATTRIBUTE_NORETURN): Update definition. Define always.
33986         * lib/xprintf.h (__attribute__): Remove definition.
33987         (_GL_ATTRIBUTE_FORMAT): New macro.
33988         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
33989         * lib/xstrtol.h (__attribute__): Remove definition.
33990         (ATTRIBUTE_NORETURN): Update definition. Define always.
33991         * lib/xvasprintf.h (__attribute__): Remove definition.
33992         (_GL_ATTRIBUTE_FORMAT): New macro.
33993         (xasprintf, xvasprintf): Use it.
33994         * tests/test-argmatch.c (__attribute__): Remove definition.
33995         (ATTRIBUTE_NORETURN): Update definition. Define always.
33996         * tests/test-exclude.c (__attribute__): Remove definition.
33997         (ATTRIBUTE_NORETURN): Update definition. Define always.
33998         Reported by Paul Eggert.
34000 2011-02-13  Bruno Haible  <bruno@clisp.org>
34002         mbrtowc: Add more tests for native Windows platforms.
34003         * tests/test-mbrtowc-w32-1.sh: New file.
34004         * tests/test-mbrtowc-w32-2.sh: New file.
34005         * tests/test-mbrtowc-w32-3.sh: New file.
34006         * tests/test-mbrtowc-w32-4.sh: New file.
34007         * tests/test-mbrtowc-w32-5.sh: New file.
34008         * tests/test-mbrtowc-w32.c: New file.
34009         * modules/mbrtowc-tests (Files): Add them.
34010         (Makefile.am): Arrange to run these tests.
34011         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
34012         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
34014 2011-02-13  Bruno Haible  <bruno@clisp.org>
34016         mbrtowc: Work around native Windows bug.
34017         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
34018         guess when no suitable locale for testing was found.
34019         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
34021 2011-02-13  Bruno Haible  <bruno@clisp.org>
34023         mbsinit: Work around mingw bug.
34024         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
34025         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
34026         Windows.
34027         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
34029 2011-02-13  Bruno Haible  <bruno@clisp.org>
34031         mbsinit: Don't crash for a NULL argument.
34032         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
34033         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
34035 2011-02-13  Bruno Haible  <bruno@clisp.org>
34037         Don't interfere with a program's definition of __attribute__.
34038         * lib/stdio.in.h (__attribute__): Remove definition.
34039         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
34040         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
34041         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
34042         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
34043         * lib/string.in.h (__attribute__): Remove definition.
34044         Reported by Paul Eggert.
34046 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34048         stdlib: don't get in the way of non-GCC __attribute__
34049         See thread starting at
34050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
34051         Revert previous stdlib change, installing the following instead:
34052         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
34053         to get in the way of a non-GCC compiler that supports __attribute__.
34054         (_GL_ATTRIBUTE_RETURN): New macro.
34055         (_Exit): Use it instead of __attribute__.
34057 2011-02-12  Bruno Haible  <bruno@clisp.org>
34059         quotearg test: Avoid test failure on mingw.
34060         * tests/test-quotearg.sh: Convert the locale identifier from native
34061         Windows syntax to Unix syntax.
34063 2011-02-12  Bruno Haible  <bruno@clisp.org>
34065         setlocale: Prefer gnulib's override over libintl's override.
34066         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
34067         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
34068         GNULIB_defined_setlocale is set.
34070 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34072         stdlib: support non-GCC __attribute__
34074         Fix a serious and tricky problem encountered when attempting to
34075         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
34076         5.5, but it crashed due to memory corruption on Solaris 10 with
34077         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
34078         bits that are otherwise zero.  This tagging is optional inside
34079         Emacs but is preferred and is used when __attribute__ ((__aligned
34080         (8))) works, as it does with both recent-enough GCC and with Sun C
34081         5.11.  However, Sun C 5.11 is not GCC and does not #define
34082         __GNUC__ and __GNUC_MINOR__.
34084         When I added the getloadavg module to Emacs, it brought in
34085         stdlib.in.h, which contained this fragment:
34087            #ifndef __attribute__
34088            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
34089            #  define __attribute__(Spec)   /* empty */
34090            # endif
34091            #endif
34093         When files that include <stdlib.h> were compiled with Sun C 5.11,
34094         the above code disabled __attribute__ ((__aligned (8))), which
34095         caused variables to not be properly aligned, which eventually led
34096         to the pointer corruption mentioned above.  (This was a bit hard
34097         to diagnose, unfortunately.)
34099         Several "#define __attribute__(X) /* empty */" code snippets need
34100         to be eradicated from Gnulib to work with non-GCC compilers that
34101         support __attribute__.  The Autoconf way to do this is to test for
34102         each kind of attribute that we want support for, and selectively
34103         enable that in source code.
34105         Fix this problem just for stdlib.h, by adding a test for the
34106         __noreturn__ attribute, and change stdlib.in.h to use that test
34107         when needed.  This technique can be easily generalized to the
34108         other *.in.h files and attributes, and a similar technique can be
34109         used for *.h and *.c files.  This patch is enough to solve the
34110         problem for Emacs + getloadavg, and I thought I'd publish it for
34111         feedback before undertaking further, similar fixes in other
34112         modules.
34114         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
34115         because it's not needed for stdlib.h.  It merely substitutes the
34116         value directly into stdlib.h.  We may well need to #define it, or
34117         similar symbols, for other modules, but it's nice to also have an
34118         option to not #define it for applications like Emacs that do not
34119         need it.
34121         * lib/stdlib.in.h (__attribute__): Do not #define.
34122         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
34123         be defined only if the _Exit module is also used.
34124         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
34125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
34126         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
34127         platforms.
34128         * modules/_Exit (Files): Add m4/attribute.m4.
34129         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
34130         * m4/attribute.m4: New file.
34132 2011-02-12  Bruno Haible  <bruno@clisp.org>
34134         wcsrtombs: Work around bug on native Windows.
34135         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
34136         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
34137         instead of len.
34138         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
34140 2011-02-12  Bruno Haible  <bruno@clisp.org>
34142         mbsrtowcs: Work around bug on native Windows.
34143         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
34144         against mingw bug.
34145         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
34147 2011-02-12  Bruno Haible  <bruno@clisp.org>
34149         Avoid setlocale bugs in tests.
34150         * modules/btowc (Dependencies): Add setlocale.
34151         * modules/c-strcase (Dependencies): Likewise.
34152         * modules/mbmemcasecmp (Dependencies): Likewise.
34153         * modules/mbmemcasecoll (Dependencies): Likewise.
34154         * modules/mbrtowc (Dependencies): Likewise.
34155         * modules/mbscasecmp (Dependencies): Likewise.
34156         * modules/mbscasestr (Dependencies): Likewise.
34157         * modules/mbschr (Dependencies): Likewise.
34158         * modules/mbscspn (Dependencies): Likewise.
34159         * modules/mbsinit (Dependencies): Likewise.
34160         * modules/mbsncasecmp (Dependencies): Likewise.
34161         * modules/mbsnrtowcs (Dependencies): Likewise.
34162         * modules/mbspbrk (Dependencies): Likewise.
34163         * modules/mbspcasecmp (Dependencies): Likewise.
34164         * modules/mbsrchr (Dependencies): Likewise.
34165         * modules/mbsrtowcs (Dependencies): Likewise.
34166         * modules/mbsspn (Dependencies): Likewise.
34167         * modules/mbsstr (Dependencies): Likewise.
34168         * modules/nl_langinfo (Dependencies): Likewise.
34169         * modules/quotearg (Dependencies): Likewise.
34170         * modules/unicase/locale-language (Dependencies): Likewise.
34171         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
34172         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
34173         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
34174         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
34175         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
34176         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
34177         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
34178         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
34179         * modules/vasnprintf-posix (Dependencies): Likewise.
34180         * modules/wcrtomb (Dependencies): Likewise.
34181         * modules/wcsnrtombs (Dependencies): Likewise.
34182         * modules/wcsrtombs (Dependencies): Likewise.
34184 2011-02-12  Bruno Haible  <bruno@clisp.org>
34186         setlocale: Workaround native Windows bug.
34187         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
34188         succeeds but sets LC_CTYPE to "C", report a failure.
34189         * tests/test-setlocale2.sh: New file.
34190         * tests/test-setlocale2.c: New file.
34191         * modules/setlocale-tests (Files): Add the new files.
34192         (Makefile.am): Enable test-setlocale2.sh test.
34193         * doc/posix-functions/setlocale.texi: Mention workaround.
34195 2011-02-11  Bruno Haible  <bruno@clisp.org>
34197         Tests for module 'setlocale'.
34198         * modules/setlocale-tests: New file.
34199         * tests/test-setlocale1.sh: New file.
34200         * tests/test-setlocale1.c: New file.
34202         New module 'setlocale'.
34203         * lib/locale.in.h (setlocale): New declaration.
34204         * lib/setlocale.c: New file, based on
34205         gettext/gettext-runtime/intl/setlocale.c.
34206         * m4/setlocale.m4: New file.
34207         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
34208         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
34209         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
34210         REPLACE_SETLOCALE.
34211         * modules/setlocale: New file.
34212         * tests/test-locale-c++.cc: Test the declaration of setlocale.
34213         * doc/posix-functions/setlocale.texi: Mention the new module.
34215 2011-02-11  Bruno Haible  <bruno@clisp.org>
34217         Prepare for locale dependent tests on mingw.
34218         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
34219         because it has the wrong locale encoding.
34220         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
34221         French_France.1252 instead of "fr".
34222         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
34223         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
34224         because it has the wrong locale encoding.
34225         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
34226         native Windows, try Turkish_Turkey.65001.
34227         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
34228         Chinese_China.54936.
34230         Prepare for locale dependent tests on mingw.
34231         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
34232         differently.
34233         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
34234         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
34235         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34236         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34238 2011-02-11  Eric Blake  <eblake@redhat.com>
34240         strptime: avoid compiler warnings
34241         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
34242         compiler warnings about dead code.
34243         Reported by Daniel P. Berrange.
34245 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
34247         doc: update users.txt
34248         * users.txt: Add rcs.
34250 2011-02-10  John W. Eaton  <jwe@gnu.org>
34252         doc: update users.txt
34253         * users.txt: Add octave.
34255 2011-02-10  Jim Meyering  <meyering@redhat.com>
34257         doc: update users.txt
34258         * users.txt: Add iwhd.
34260 2011-02-09  Bruno Haible  <bruno@clisp.org>
34262         gnulib-tool: Make copyright notice adjustment more robust.
34263         * gnulib-tool (func_import): In sed_transform_main_lib_file,
34264         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
34265         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
34266         License".
34267         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
34269 2011-02-06  Bruno Haible  <bruno@clisp.org>
34271         New module 'towctrans'.
34272         * modules/towctrans: New file.
34273         * lib/wctype.in.h (towctrans): New declaration.
34274         * lib/towctrans.c: New file.
34275         * lib/towctrans-impl.h: New file.
34276         * m4/towctrans.m4: New file.
34277         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
34278         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
34279         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
34280         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
34281         * doc/posix-functions/towctrans.texi: Mention the new module.
34283 2011-02-06  Bruno Haible  <bruno@clisp.org>
34285         New module 'wctrans'.
34286         * modules/wctrans: New file.
34287         * lib/wctype.in.h (wctrans): New declaration.
34288         * lib/wctrans.c: New file.
34289         * lib/wctrans-impl.h: New file.
34290         * m4/wctrans.m4: New file.
34291         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
34292         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
34293         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
34294         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
34295         * doc/posix-functions/wctrans.texi: Mention the new module.
34297 2011-02-06  Bruno Haible  <bruno@clisp.org>
34299         New module 'iswctype'.
34300         * modules/iswctype: New file.
34301         * lib/wctype.in.h (iswctype): New declaration.
34302         * lib/iswctype.c: New file.
34303         * lib/iswctype-impl.h: New file.
34304         * m4/iswctype.m4: New file.
34305         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
34306         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
34307         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
34308         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
34309         * doc/posix-functions/iswctype.texi: Mention the new module and the
34310         HP-UX 11.00 problem.
34312 2011-02-06  Bruno Haible  <bruno@clisp.org>
34314         New module 'wctype'.
34315         * modules/wctype: Change to represent the wctype() substitute.
34316         * lib/wctype.in.h (wctype): New declaration.
34317         * lib/wctype.c: New file.
34318         * lib/wctype-impl.h: New file.
34319         * m4/wctype.m4: New file.
34320         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
34321         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
34322         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
34323         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
34324         * doc/posix-functions/wctype.texi: Mention the new module and the
34325         HP-UX 11.00 problem.
34327 2011-02-06  Bruno Haible  <bruno@clisp.org>
34329         wctype-h: Ensure wctype_t and wctrans_t are defined.
34330         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
34331         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
34332         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
34333         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
34334         HAVE_WCTRANS_T.
34335         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
34337 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34339         flock: fix license typo
34341         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
34342         omitted.
34344 2011-02-08  Bruno Haible  <bruno@clisp.org>
34346         Split large sed scripts, for HP-UX sed.
34347         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
34348         to avoid HP-UX limit of 99 commands, in the near future.
34349         * modules/stdlib (Makefile.am): Likewise.
34350         * modules/unistd (Makefile.am): Likewise.
34351         * modules/wchar (Makefile.am): Likewise.
34352         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34353         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
34354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
34356 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34357             Bruno Haible  <bruno@clisp.org>
34359         stdlib: improve random_r modularization
34360         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
34361         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
34362         you also need the random_r module to get this material right.
34363         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
34364         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
34365         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
34367 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34369         stdlib: don't depend on stdint
34370         * lib/stdlib.in.h: Don't include <stdint.h> merely because
34371         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
34372         be independent of whether stdint.h is needed.
34373         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
34374         here, instead of ...
34375         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
34376         struct random_data should be using the random_r module, not just
34377         the stdlib module (which wouldn't make sense: what package needs
34378         just struct random_data without also needing random_r?).
34379         * modules/stdlib (Depends-on): Remove stdint.
34381         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
34382         See the thread rooted at
34383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
34384         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
34385         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
34386         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
34387         __VMS)); previously it was always included (via fcntl--.h).
34388         (getloadavg): Do not use c_strtod.  Instead, approximate it by
34389         hand; this is good enough for load averages.  Also, do not use
34390         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
34391         flags directly if available and don't bother otherwise.  (Packages
34392         that need the extra reliability should use the modules that define
34393         these flags on older platforms that lack them.)
34394         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
34395         fcntl-safer.
34397 2011-02-08  Jim Meyering  <meyering@redhat.com>
34399         di-set.h, ino-map.h: add multiple-inclusion guard
34400         Technically, the guard is required only for ino-map.h, due to its
34401         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
34402         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
34403         * lib/ino-map.h: Likewise.
34405 2011-02-06  Bruno Haible  <bruno@clisp.org>
34407         iswblank: Ensure declaration on glibc systems.
34408         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
34409         * modules/iswblank (Dependencies): Add 'extensions'.
34410         * doc/posix-functions/iswblank.texi: Document the glibc problem.
34412 2011-02-06  Bruno Haible  <bruno@clisp.org>
34414         New module 'iswblank'.
34415         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
34416         * modules/iswblank: New file.
34417         * modules/wctype-h (Files): Remove lib/iswblank.c.
34418         (Makefile.am): Substitute GNULIB_ISWBLANK.
34419         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
34420         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
34421         (gl_WCTYPE_H_DEFAULTS): New macro.
34422         (gl_WCTYPE_H): Require it. Remove iswblank related code.
34423         * modules/iswblank-tests: New file.
34424         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
34425         * tests/test-wctype-h.c (main): Remove iswblank tests.
34426         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
34427         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
34428         of 'wctype-h'.
34429         * NEWS: Mention the change.
34430         * modules/mbchar (Depends-on): Add iswblank.
34432 2011-02-08  Bruno Haible  <bruno@clisp.org>
34434         di-set tests: Refactor.
34435         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
34436         unnecessary includes.
34437         (ASSERT): Remove macro.
34438         (main): Make C90 compliant by avoiding variable declaration after
34439         statement.
34440         * modules/di-set-tests (Files): Add tests/macros.h.
34442 2011-02-08  Bruno Haible  <bruno@clisp.org>
34444         ino-map tests: Refactor.
34445         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
34446         unnecessary includes.
34447         (ASSERT): Remove macro.
34448         (main): Make C90 compliant by avoiding variable declaration after
34449         statement.
34450         * modules/ino-map-tests (Files): Add tests/macros.h.
34452 2011-02-08  Jim Meyering  <meyering@redhat.com>
34454         di-set: add "const" to a cast
34455         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
34456         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
34458 2011-02-06  Bruno Haible  <bruno@clisp.org>
34460         Rename module 'wctype' to 'wctype-h'.
34461         * modules/wctype-h: Renamed from modules/wctype.
34462         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
34463         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
34464         (Files, Depends-on, Makefile.am): Update.
34465         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
34466         (Files, Makefile.am): Update.
34467         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
34468         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
34469         * doc/posix-headers/wctype.texi: Update.
34470         * doc/posix-functions/iswalnum.texi: Update.
34471         * doc/posix-functions/iswalpha.texi: Update.
34472         * doc/posix-functions/iswblank.texi: Update.
34473         * doc/posix-functions/iswcntrl.texi: Update.
34474         * doc/posix-functions/iswdigit.texi: Update.
34475         * doc/posix-functions/iswgraph.texi: Update.
34476         * doc/posix-functions/iswlower.texi: Update.
34477         * doc/posix-functions/iswprint.texi: Update.
34478         * doc/posix-functions/iswpunct.texi: Update.
34479         * doc/posix-functions/iswspace.texi: Update.
34480         * doc/posix-functions/iswupper.texi: Update.
34481         * doc/posix-functions/iswxdigit.texi: Update.
34482         * doc/posix-functions/towlower.texi: Update.
34483         * doc/posix-functions/towupper.texi: Update.
34484         * NEWS: Mention the change.
34485         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
34486         * modules/mbchar (Dependencies): Likewise.
34487         * modules/mbswidth (Dependencies): Likewise.
34488         * modules/quotearg (Dependencies): Likewise.
34489         * modules/regex (Dependencies): Likewise.
34490         * modules/wcscasecmp (Dependencies): Likewise.
34491         * modules/wcsncasecmp (Dependencies): Likewise.
34492         * modules/wcwidth (Dependencies): Likewise.
34494 2011-02-06  Bruno Haible  <bruno@clisp.org>
34496         New module 'wcswidth'.
34497         * modules/wcswidth: New file.
34498         * lib/wchar.in.h (wcswidth): New declaration.
34499         * lib/wcswidth.c: New file.
34500         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
34501         * m4/wcswidth.m4: New file.
34502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
34503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
34504         REPLACE_WCSWIDTH.
34505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
34506         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
34507         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
34508         * doc/posix-functions/wcswidth.texi: Mention the new module.
34510 2011-02-06  Bruno Haible  <bruno@clisp.org>
34512         New module 'wcstok'.
34513         * modules/wcstok: New file.
34514         * lib/wchar.in.h (wcstok): New declaration.
34515         * lib/wcstok.c: New file.
34516         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
34517         * m4/wcstok.m4: New file.
34518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
34519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
34520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
34521         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
34522         * doc/posix-functions/wcstok.texi: Mention the new module.
34524 2011-02-06  Bruno Haible  <bruno@clisp.org>
34526         New module 'wcsstr'.
34527         * modules/wcsstr: New file.
34528         * lib/wchar.in.h (wcsstr): New declaration.
34529         * lib/wcsstr.c: New file.
34530         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
34531         * m4/wcsstr.m4: New file.
34532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
34533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
34534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
34535         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
34536         * doc/posix-functions/wcsstr.texi: Mention the new module.
34538 2011-02-06  Bruno Haible  <bruno@clisp.org>
34540         New module 'wcspbrk'.
34541         * modules/wcspbrk: New file.
34542         * lib/wchar.in.h (wcspbrk): New declaration.
34543         * lib/wcspbrk.c: New file.
34544         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
34545         * m4/wcspbrk.m4: New file.
34546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
34547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
34548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
34549         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
34550         * doc/posix-functions/wcspbrk.texi: Mention the new module.
34552 2011-02-06  Bruno Haible  <bruno@clisp.org>
34554         New module 'wcsspn'.
34555         * modules/wcsspn: New file.
34556         * lib/wchar.in.h (wcsspn): New declaration.
34557         * lib/wcsspn.c: New file.
34558         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
34559         * m4/wcsspn.m4: New file.
34560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
34561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
34562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
34563         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
34564         * doc/posix-functions/wcsspn.texi: Mention the new module.
34566 2011-02-06  Bruno Haible  <bruno@clisp.org>
34568         New module 'wcscspn'.
34569         * modules/wcscspn: New file.
34570         * lib/wchar.in.h (wcscspn): New declaration.
34571         * lib/wcscspn.c: New file.
34572         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
34573         * m4/wcscspn.m4: New file.
34574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
34575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
34576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
34577         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
34578         * doc/posix-functions/wcscspn.texi: Mention the new module.
34580 2011-02-06  Bruno Haible  <bruno@clisp.org>
34582         New module 'wcsrchr'.
34583         * modules/wcsrchr: New file.
34584         * lib/wchar.in.h (wcsrchr): New declaration.
34585         * lib/wcsrchr.c: New file.
34586         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
34587         * m4/wcsrchr.m4: New file.
34588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
34589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
34590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
34591         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
34592         * doc/posix-functions/wcsrchr.texi: Mention the new module.
34594 2011-02-06  Bruno Haible  <bruno@clisp.org>
34596         New module 'wcschr'.
34597         * modules/wcschr: New file.
34598         * lib/wchar.in.h (wcschr): New declaration.
34599         * lib/wcschr.c: New file.
34600         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
34601         * m4/wcschr.m4: New file.
34602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
34603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
34604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
34605         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
34606         * doc/posix-functions/wcschr.texi: Mention the new module.
34608 2011-02-06  Bruno Haible  <bruno@clisp.org>
34610         New module 'wcsdup'.
34611         * modules/wcsdup: New file.
34612         * lib/wchar.in.h (wcsdup): New declaration.
34613         * lib/wcsdup.c: New file.
34614         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
34615         * m4/wcsdup.m4: New file.
34616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
34617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
34618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
34619         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
34620         * doc/posix-functions/wcsdup.texi: Mention the new module.
34622 2011-02-06  Bruno Haible  <bruno@clisp.org>
34624         New module 'wcsxfrm'.
34625         * modules/wcsxfrm: New file.
34626         * lib/wchar.in.h (wcsxfrm): New declaration.
34627         * lib/wcsxfrm.c: New file.
34628         * lib/wcsxfrm-impl.h: New file.
34629         * m4/wcsxfrm.m4: New file.
34630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
34631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
34632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
34633         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
34634         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
34636 2011-02-06  Bruno Haible  <bruno@clisp.org>
34638         New module 'wcscoll'.
34639         * modules/wcscoll: New file.
34640         * lib/wchar.in.h (wcscoll): New declaration.
34641         * lib/wcscoll.c: New file.
34642         * lib/wcscoll-impl.h: New file.
34643         * m4/wcscoll.m4: New file.
34644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
34645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
34646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
34647         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
34648         * doc/posix-functions/wcscoll.texi: Mention the new module.
34650 2011-02-06  Bruno Haible  <bruno@clisp.org>
34652         New module 'wcsncasecmp'.
34653         * modules/wcsncasecmp: New file.
34654         * lib/wchar.in.h (wcsncasecmp): New declaration.
34655         * lib/wcsncasecmp.c: New file.
34656         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
34657         * m4/wcsncasecmp.m4: New file.
34658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
34659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
34660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
34661         HAVE_WCSNCASECMP.
34662         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
34663         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
34665 2011-02-06  Bruno Haible  <bruno@clisp.org>
34667         New module 'wcscasecmp'.
34668         * modules/wcscasecmp: New file.
34669         * lib/wchar.in.h (wcscasecmp): New declaration.
34670         * lib/wcscasecmp.c: New file.
34671         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
34672         * m4/wcscasecmp.m4: New file.
34673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
34674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
34675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
34676         HAVE_WCSCASECMP.
34677         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
34678         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
34680 2011-02-05  Bruno Haible  <bruno@clisp.org>
34682         New module 'wcsncmp'.
34683         * modules/wcsncmp: New file.
34684         * lib/wchar.in.h (wcsncmp): New declaration.
34685         * lib/wcsncmp.c: New file.
34686         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
34687         * m4/wcsncmp.m4: New file.
34688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
34689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
34690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
34691         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
34692         * doc/posix-functions/wcsncmp.texi: Mention the new module.
34694 2011-02-05  Bruno Haible  <bruno@clisp.org>
34696         New module 'wcscmp'.
34697         * modules/wcscmp: New file.
34698         * lib/wchar.in.h (wcscmp): New declaration.
34699         * lib/wcscmp.c: New file.
34700         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
34701         * m4/wcscmp.m4: New file.
34702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
34703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
34704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
34705         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
34706         * doc/posix-functions/wcscmp.texi: Mention the new module.
34708 2011-02-05  Bruno Haible  <bruno@clisp.org>
34710         New module 'wcsncat'.
34711         * modules/wcsncat: New file.
34712         * lib/wchar.in.h (wcsncat): New declaration.
34713         * lib/wcsncat.c: New file.
34714         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
34715         * m4/wcsncat.m4: New file.
34716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
34717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
34718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
34719         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
34720         * doc/posix-functions/wcsncat.texi: Mention the new module.
34722 2011-02-05  Bruno Haible  <bruno@clisp.org>
34724         New module 'wcscat'.
34725         * modules/wcscat: New file.
34726         * lib/wchar.in.h (wcscat): New declaration.
34727         * lib/wcscat.c: New file.
34728         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
34729         * m4/wcscat.m4: New file.
34730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
34731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
34732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
34733         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
34734         * doc/posix-functions/wcscat.texi: Mention the new module.
34736 2011-02-05  Bruno Haible  <bruno@clisp.org>
34738         New module 'wcpncpy'.
34739         * modules/wcpncpy: New file.
34740         * lib/wchar.in.h (wcpncpy): New declaration.
34741         * lib/wcpncpy.c: New file.
34742         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
34743         * m4/wcpncpy.m4: New file.
34744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
34745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
34746         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
34747         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
34748         * doc/posix-functions/wcpncpy.texi: Mention the new module.
34750 2011-02-05  Bruno Haible  <bruno@clisp.org>
34752         New module 'wcsncpy'.
34753         * modules/wcsncpy: New file.
34754         * lib/wchar.in.h (wcsncpy): New declaration.
34755         * lib/wcsncpy.c: New file.
34756         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
34757         * m4/wcsncpy.m4: New file.
34758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
34759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
34760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
34761         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
34762         * doc/posix-functions/wcsncpy.texi: Mention the new module.
34764 2011-02-05  Bruno Haible  <bruno@clisp.org>
34766         New module 'wcpcpy'.
34767         * modules/wcpcpy: New file.
34768         * lib/wchar.in.h (wcpcpy): New declaration.
34769         * lib/wcpcpy.c: New file.
34770         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
34771         * m4/wcpcpy.m4: New file.
34772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
34773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
34774         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
34775         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
34776         * doc/posix-functions/wcpcpy.texi: Mention the new module.
34778 2011-02-05  Bruno Haible  <bruno@clisp.org>
34780         New module 'wcscpy'.
34781         * modules/wcscpy: New file.
34782         * lib/wchar.in.h (wcscpy): New declaration.
34783         * lib/wcscpy.c: New file.
34784         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
34785         * m4/wcscpy.m4: New file.
34786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
34787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
34788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
34789         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
34790         * doc/posix-functions/wcscpy.texi: Mention the new module.
34792 2011-02-05  Bruno Haible  <bruno@clisp.org>
34794         New module 'wcsnlen'.
34795         * modules/wcsnlen: New file.
34796         * lib/wchar.in.h (wcsnlen): New declaration.
34797         * lib/wcsnlen.c: New file.
34798         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
34799         * m4/wcsnlen.m4: New file.
34800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
34801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
34802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
34803         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
34804         * doc/posix-functions/wcsnlen.texi: Mention the new module.
34806 2011-02-05  Bruno Haible  <bruno@clisp.org>
34808         New module 'wcslen'.
34809         * modules/wcslen: New file.
34810         * lib/wchar.in.h (wcslen): New declaration.
34811         * lib/wcslen.c: New file.
34812         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
34813         * m4/wcslen.m4: New file.
34814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
34815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
34816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
34817         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
34818         * doc/posix-functions/wcslen.texi: Mention the new module.
34820 2011-02-05  Bruno Haible  <bruno@clisp.org>
34822         New module 'wmemset'.
34823         * modules/wmemset: New file.
34824         * lib/wchar.in.h (wmemset): New declaration.
34825         * lib/wmemset.c: New file.
34826         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
34827         * m4/wmemset.m4: New file.
34828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
34829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
34830         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
34831         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
34832         * doc/posix-functions/wmemset.texi: Mention the new module.
34834 2011-02-05  Bruno Haible  <bruno@clisp.org>
34836         New module 'wmemmove'.
34837         * modules/wmemmove: New file.
34838         * lib/wchar.in.h (wmemmove): New declaration.
34839         * lib/wmemmove.c: New file.
34840         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
34841         * m4/wmemmove.m4: New file.
34842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
34843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
34844         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
34845         HAVE_WMEMMOVE.
34846         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
34847         * doc/posix-functions/wmemmove.texi: Mention the new module.
34849 2011-02-05  Bruno Haible  <bruno@clisp.org>
34851         New module 'wmemcpy'.
34852         * modules/wmemcpy: New file.
34853         * lib/wchar.in.h (wmemcpy): New declaration.
34854         * lib/wmemcpy.c: New file.
34855         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
34856         * m4/wmemcpy.m4: New file.
34857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
34858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
34859         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
34860         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
34861         * doc/posix-functions/wmemcpy.texi: Mention the new module.
34863 2011-02-05  Bruno Haible  <bruno@clisp.org>
34865         New module 'wmemcmp'.
34866         * modules/wmemcmp: New file.
34867         * lib/wchar.in.h (wmemcmp): New declaration.
34868         * lib/wmemcmp.c: New file.
34869         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
34870         * m4/wmemcmp.m4: New file.
34871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
34872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
34873         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
34874         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
34875         * doc/posix-functions/wmemcmp.texi: Mention the new module.
34877 2011-02-07  Jim Meyering  <meyering@redhat.com>
34879         di-set, ino-map: new modules, from coreutils
34880         * lib/di-set.c: New file.
34881         * lib/di-set.h: Likewise.
34882         * lib/ino-map.c: Likewise.
34883         * lib/ino-map.h: Likewise.
34884         * modules/di-set: Likewise.
34885         * modules/di-set-tests: Likewise.
34886         * modules/ino-map: Likewise.
34887         * modules/ino-map-tests: Likewise.
34888         * tests/test-di-set.c: Likewise.
34889         * tests/test-ino-map.c: Likewise.
34891 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34893         getloadavg: merge minor changes from Emacs
34895         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
34896         (getloadavg): Use memset, not bzero.
34898         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
34899         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
34900         clash (bug#86).
34902 2010-11-14  Bruno Haible  <bruno@clisp.org>
34904         Allow multiple gnulib generated replacements to coexist.
34905         * lib/getopt.in.h (struct option): Avoid identical redefinition.
34906         * lib/inttypes.in.h (imaxdiv_t): Likewise.
34907         * lib/langinfo.in.h (nl_item): Likewise.
34908         * lib/math.in.h (_NaN, NAN): Likewise.
34909         * lib/netdb.in.h (struct addrinfo): Likewise.
34910         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
34911         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
34912         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
34913         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
34914         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
34915         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
34916         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
34917         pthread_mutexattr_init, pthread_mutexattr_settype,
34918         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
34919         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
34920         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
34921         pthread_spin_trylock, pthread_spin_unlock): Likewise.
34922         * lib/sched.in.h (struct sched_param): Likewise.
34923         * lib/se-selinux.in.h (security_class_t, security_context_t,
34924         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
34925         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
34926         lsetfilecon, fsetfilecon, security_check_context,
34927         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
34928         Likewise.
34929         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
34930         Likewise.
34931         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
34932         _gl_function_taking_int_returning_void_t, union sigval,
34933         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
34934         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
34935         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
34936         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
34937         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
34938         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
34939         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
34940         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
34941         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
34942         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
34943         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
34944         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
34945         socklen_t, rpl_fd_isset): Likewise.
34946         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
34947         * lib/sys_time.in.h (struct timeval): Likewise.
34948         * lib/sys_times.in.h (struct tms): Likewise.
34949         * lib/sys_utsname.in.h (struct utsname):
34950         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
34951         * lib/unistd.in.h (getpagesize): Likewise.
34952         * lib/wchar.in.h (mbstate_t): Likewise.
34953         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34954         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
34955         towlower, towupper): Likewise.
34956         Reported by Sam Steingold <sds@gnu.org>.
34958 2011-02-05  Eric Blake  <eblake@redhat.com>
34960         unsetenv: work around Haiku issues
34961         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
34962         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
34964 2010-12-30  Bruce Korb  <bkorb@gnu.org>
34966         libposix: avoid calling error() within libposix
34967         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
34968         is defined.
34970 2011-02-05  Eric Blake  <eblake@redhat.com>
34972         strerror_r-posix: port to cygwin
34973         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
34974         implementation.
34975         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
34976         * tests/test-strerror_r.c (main): Fix test.
34977         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
34978         issue.
34980 2011-02-05  Bruno Haible  <bruno@clisp.org>
34982         New module 'wmemchr'.
34983         * modules/wmemchr: New file.
34984         * lib/wchar.in.h (wmemchr): New declaration.
34985         * lib/wmemchr.c: New file.
34986         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
34987         * m4/wmemchr.m4: New file.
34988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
34989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
34990         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
34991         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
34992         * doc/posix-functions/wmemchr.texi: Mention the new module.
34994 2011-02-04  Eric Blake  <eblake@redhat.com>
34996         fdopendir: detect FreeBSD bug
34997         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
34998         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
35000 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35002         stdbool: do not define HAVE_STDBOOL_H
35003         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
35004         AC_HEADER_STDBOOL.  All uses changed.  Do not define
35005         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
35006         imported from the latest Autoconf git.  It was motivated by Emacs,
35007         which uses gnulib but does not need HAVE_STDBOOL_H.
35009 2011-02-04  Bruno Haible  <bruno@clisp.org>
35011         wcsnrtombs: Prepare for new module wwcsnrtombs.
35012         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
35013         * lib/wcsnrtombs.c: Include it.
35014         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
35016         wcsrtombs: Prepare for new module wwcsrtombs.
35017         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
35018         * lib/wcsrtombs.c: Include it.
35019         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
35021         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
35022         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
35023         * lib/mbsnrtowcs.c: Include it.
35024         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
35026         mbsrtowcs: Prepare for new module mbsrtowwcs.
35027         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
35028         * lib/mbsrtowcs.c: Include it.
35029         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
35031 2011-02-04  Bruno Haible  <bruno@clisp.org>
35033         vasnprintf: Reduce use of malloc for small format strings.
35034         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
35035         (arguments): Add room for the first 7 arguments.
35036         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
35037         (char_directives, u8_directives, u16_directives, u32_directives): Add
35038         room for the first 7 directives.
35039         * lib/printf-parse.c: Include <string.h>.
35040         (PRINTF_PARSE): Change memory handling code so that it uses the first
35041         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
35042         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
35043         Reported by Pádraig Brady <P@draigbrady.com>.
35045 2011-01-31  Eric Blake  <eblake@redhat.com>
35047         dup2: work around Haiku bug
35048         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
35049         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
35050         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35051         * tests/test-dup2.c (main): Enhance test.
35053 2011-01-31  Simon Josefsson  <simon@josefsson.org>
35055         doc: off_t is not available in eglibc 2.11.2 stdio.h.
35056         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
35057         declared by eglibc 2.11.2.
35058         * lib/stdio.in.h: Likewise.
35060 2011-01-31  Eric Blake  <eblake@redhat.com>
35062         ignore-value: add missing test dependency
35063         * tests/test-ignore-value.c: Revert previous change; stdio.h
35064         provides off_t.
35065         * modules/ignore-value-tests (Depends-on): Add missing dependency.
35067 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35069         mktime: clarify long_int width checking
35070         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
35071         the top level, to make it clearer that the assumption about
35072         long_int width is being checked.  See
35073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
35075 2011-01-30  Simon Josefsson  <simon@josefsson.org>
35077         ignore-value: Fix self-test.
35078         * tests/test-ignore-value.c: Include sys/types.h for off_t.
35080 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35082         TYPE_MAXIMUM: avoid theoretically undefined behavior
35083         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
35084         negative number, which the C Standard says has undefined behavior.
35085         In practice this is not a problem, but might as well do it by the book.
35086         Reported by Rich Felker and Eric Blake; see
35087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
35088         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
35089         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
35090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35091         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
35092         * m4/stdint.m4 (gl_STDINT_H): Likewise.
35093         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
35095         mktime: #undef mktime before #defining it
35096         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
35098         mktime: systematically normalize tm_isdst comparisons
35099         * lib/mktime.c (isdst_differ): New function.
35100         (__mktime_internal): Use it systematically for all isdst comparisons.
35101         This completes the fix for libc BZ #6723, and removes the need for
35102         normalizing tm_isdst.  See
35103         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
35104         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
35106         mktime: fix some integer overflow issues and sidestep the rest
35108         This was prompted by a bug report by Benjamin Lindner for MinGW
35109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
35110         His bug is due to signed integer overflow (0 - INT_MIN), and I
35111         I scanned through mktime.c looking for other integer overflow
35112         problems, fixing all the bugs I found.
35114         Although the C Standard says the resulting code is still not safe
35115         in the presence of integer overflow, in practice it should be good
35116         enough for all real-world two's-complement implementations, except
35117         for debugging environments that deliberately trap on integer
35118         overflow (e.g., gcc -ftrapv).
35120         * lib/mktime.c (WRAPV): New macro.
35121         (SHR): Also check that long_int and time_t shift right in the
35122         usual way, before using the fast-but-unportable method.
35123         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
35124         used.  The code already assumed two's complement, so there's
35125         no need to test for alternatives.  All uses removed.
35126         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
35127         the C standard.  Problem reported by Rich Felker in
35128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
35129         (twos_complement_arithmetic): Also check long_int and time_t.
35130         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
35131         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
35132         (__mktime_internal): Avoid integer overflow with unary subtraction
35133         in two instances where -1 - X is an adequate replacement for -X,
35134         since the calculations are approximate.
35136 2011-01-29  Eric Blake  <eblake@redhat.com>
35138         mktime: avoid infinite loop
35139         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
35140         type; behavior is still undefined but portable to all known targets.
35141         Reported by Rich Felker.
35143 2011-01-29  Simon Josefsson  <simon@josefsson.org>
35145         rename, unlink, same-inode: Relicense.
35146         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
35147         * modules/unlink (License): Likewise.
35148         * modules/same-inode (License): Likewise.
35150 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35152         mktime: avoid problems on NetBSD 5 / i386
35153         * lib/mktime.c (long_int): New type.  This works around a problem
35154         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
35155         but time_t is 64 bits, and where I expect the existing code is
35156         wrong in some cases.
35157         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
35158         (ydhms_diff): Bring back the compile-time check for wide-enough
35159         year and yday.
35161         mktime: fix misspelling in comment
35162         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
35163         This merges all recent glibc changes of importance.
35165 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35167         move-if-change: cope with concurrent mv of identical file.
35168         * build-aux/move-if-change (CMPPROG): Accept environment
35169         variable as an override for `cmp'.
35170         (usage): Document CMPPROG.
35171         Adjust comparison to drop stdout.  Cope with failure of mv if
35172         the target file exists and is identical to the source, for
35173         parallel builds.
35174         Report from H.J. Lu against binutils in PR binutils/12283.
35176 2011-01-28  Bruce Korb  <bkorb@gnu.org>
35178         * users.txt: Mention sharutils.
35180 2011-01-28  Simon Josefsson  <simon@josefsson.org>
35182         * users.txt: Mention OATH Toolkit.
35184 2011-01-27  Bruno Haible  <bruno@clisp.org>
35186         Prepare for supporting FreeBSD 10.
35187         * build-aux/config.libpath: Remove handling of freebsd1*.
35189 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
35191         Prepare for supporting FreeBSD 10.
35192         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
35193         match FreeBSD 10.0.
35195 2011-01-27  Bruno Haible  <bruno@clisp.org>
35197         vma-iter, get-rusage-as: Add OpenBSD support.
35198         * modules/vma-iter (configure.ac): Test for mquery.
35199         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
35200         * lib/vma-iter.c: Include <sys/mman.h>.
35201         (vma_iterate): Add an implementation based on mquery().
35202         * lib/resource-ext.h (get_rusage_as): Update comments.
35203         * lib/get-rusage-as.c: Likewise.
35204         * lib/get-rusage-data.c: Likewise.
35206 2011-01-26  Karl Berry  <karl@gnu.org>
35208         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
35209         variables to make it easier to override the makeinfo program used.
35211 2011-01-26  Eric Blake  <eblake@redhat.com>
35213         fcntl: work around Haiku F_DUPFD bugs
35214         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
35215         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
35216         cloexec bit on duplication.
35217         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
35219 2011-01-26  Bruno Haible  <bruno@clisp.org>
35221         Enable memory leak tests on AIX.
35222         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
35223         * tests/test-fprintf-posix3.c (main): Likewise.
35225 2011-01-26  Bruno Haible  <bruno@clisp.org>
35227         Tests for module 'get-rusage-data'.
35228         * modules/get-rusage-data-tests: New file.
35229         * tests/test-get-rusage-data.c: New file.
35231         New module 'get-rusage-data'.
35232         * lib/resource-ext.h (get_rusage_data): New declaration.
35233         * lib/get-rusage-data.c: New file.
35234         * modules/get-rusage-data: New file.
35236 2011-01-25  Bruno Haible  <bruno@clisp.org>
35238         get-rusage-as: Allow for easier testing.
35239         * lib/resource-ext.h (get_rusage_as): Add comment.
35240         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
35241         (main): New function for interactive testing.
35243 2011-01-25  Bruno Haible  <bruno@clisp.org>
35245         vma-iter: Treat Haiku like BeOS.
35246         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
35247         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
35249 2011-01-25  Eric Blake  <eblake@redhat.com>
35251         c-stack: fix regression on cygwin when libsigsegv is present
35252         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
35254 2011-01-24  Bruno Haible  <bruno@clisp.org>
35256         vma-iter: Avoid empty intervals.
35257         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
35258         on an empty interval.
35260 2011-01-24  Jim Meyering  <meyering@redhat.com>
35262         u64: remove unnecessary #include
35263         * lib/u64.h: Don't include <stddef.h>.  It was not used.
35265 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35267         Allow the user to avoid the HAVE_RAW_DECL_* macros.
35268         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
35270 2011-01-23  Bruno Haible  <bruno@clisp.org>
35272         New module 'vma-iter'.
35273         * lib/vma-iter.h: New file.
35274         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
35275         * modules/vma-iter: New file.
35276         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
35277         for get_rusage_as_via_iterator.
35278         (vma_iterate_callback): New function.
35279         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
35280         * modules/get-rusage-as (Depends-on): Add vma-iter.
35282 2011-01-23  Bruno Haible  <bruno@clisp.org>
35284         uninorm: Tweak includes.
35285         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
35286         Reported by Jim Meyering.
35288 2011-01-23  Bruno Haible  <bruno@clisp.org>
35290         get-rusage-as: Improve on NetBSD.
35291         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
35292         /proc, like on FreeBSD.
35294 2011-01-23  Jim Meyering  <meyering@redhat.com>
35296         xreadlink.h: remove unnecessary #include
35297         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
35299         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
35300         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
35302 2011-01-23  Bruno Haible  <bruno@clisp.org>
35304         get-rusage-as: Fix bug.
35305         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
35306         original limit when aborting the first loop.
35308 2011-01-23  Bruno Haible  <bruno@clisp.org>
35310         wctype: Ensure valid C syntax.
35311         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
35312         unconditionally, instead of gl_NEXT_HEADERS conditionally.
35314 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35316         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
35317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
35318         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
35319         as they are needed only for configure's test case.
35320         This removes two unnecessary symbols from config.h.
35322         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
35323         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
35324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
35325         AC_CHECK_HEADERS_ONCE on a header that we also invoke
35326         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
35327         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
35328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
35329         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
35330         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35331         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35332         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35334         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35335         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35336         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
35337         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35338         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
35339         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
35341 2011-01-21  Eric Blake  <eblake@redhat.com>
35343         maintainer-makefile: work with older git for submodule check
35344         * top/maint.mk (public-submodule-commit): Rewrite to avoid
35345         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
35346         Reported by Matthias Bolte.
35348         bootstrap: minor portability fixes
35349         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
35350         (usage): Omit leading capital and trailing . on help phrases, per
35351         GNU Coding Standards.
35352         (check_versions, top level): Prefix messages with script name.
35354 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
35356         bootstrap: support --no-git option
35357         * build-aux/bootstrap: Add --no-git option, to be used when
35358         --gnulib-srcdir points to the exact desired checkout.
35360 2011-01-21  Eric Blake  <eblake@redhat.com>
35362         strerror_r-posix: work with glibc 2.13
35363         * lib/strerror_r.c (strerror_r): Fix return type.
35365 2011-01-21  Pádraig Brady  <P@draigBrady.com>
35366             Bruno Haible  <bruno@clisp.org>
35368         uN_strstr: New unit tests.
35369         * modules/unistr/u8-strstr-tests: New file.
35370         * modules/unistr/u16-strstr-tests: New file.
35371         * modules/unistr/u32-strstr-tests: New file.
35372         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
35373         * tests/unistr/test-u8-strstr.c: New file.
35374         * tests/unistr/test-u16-strstr.c: New file.
35375         * tests/unistr/test-u32-strstr.c: New file.
35377 2011-01-21  Pádraig Brady  <P@draigBrady.com>
35378             Bruno Haible  <bruno@clisp.org>
35380         Make uN_strstr functions O(n) worst-case.
35381         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
35382         16-bit and 32-bit unit cases, use the unibyte algorithm from
35383         lib/mbsstr.c.
35384         * lib/unistr/u8-strstr.c: Include <string.h>.
35385         (UNIT_IS_UINT8_T): New macro.
35386         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
35387         (U_STRLEN, U_STRNLEN): New macros.
35388         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
35389         (U_STRLEN, U_STRNLEN): New macros.
35390         * modules/unistr/u8-strstr (Depends-on): Add strstr.
35391         (configure.ac): Update required libunistring version.
35392         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
35393         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
35394         malloca.
35395         (configure.ac): Update required libunistring version.
35396         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
35397         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
35398         malloca.
35399         (configure.ac): Update required libunistring version.
35401 2011-01-21  Pádraig Brady  <P@draigBrady.com>
35402             Bruno Haible  <bruno@clisp.org>
35404         Prepare for faster uN_strstr functions.
35405         * lib/str-kmp.h: Support definable UNITs.
35406         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
35407         needle_len argument.
35408         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
35409         * lib/mbscasestr.c (mbscasestr): Likewise.
35411 2011-01-21  Pádraig Brady <P@draigBrady.com>
35413         malloca-tests: make faster by unsetting MALLOC_PERTURB_
35414         * tests/test-malloca.c (main): Unset the environment variable
35415         to greatly speed up the test.
35416         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
35417         * modules/malloca-tests: Depend on unsetenv.
35419 2011-01-21  Pádraig Brady <P@draigBrady.com>
35421         ignore-value: remove stdint dependency
35422         * lib/ignore-value.h: Remove <stdint.h>
35423         * modules/ignore-value: Remove stdint dependency.
35425 2011-01-21  Jim Meyering  <meyering@redhat.com>
35427         maint.mk: adjust variable name to be consistent with other gl_ vars
35428         * top/maint.mk (gl_public_submodule_commit): Rename the variable
35429         to be lower case.
35431 2011-01-20  Jim Meyering  <meyering@redhat.com>
35433         maint.mk: make "check" depend on public-submodule-commit by default
35434         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
35436 2011-01-20  Bruno Haible  <bruno@clisp.org>
35438         mbfile, mbiter: Complete change from 2008-12-21.
35439         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
35440         * m4/mbiter.m4 (gl_MBITER): Likewise.
35442 2011-01-20  Jim Meyering  <meyering@redhat.com>
35444         init.sh: insert space between each function name and "()"
35445         * tests/init.sh: Make it a little easier to see that a function's
35446         name is "warn_", and not "warn" when looking at the first part of
35447         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
35449 2011-01-20  Jim Meyering  <meyering@redhat.com>
35451         mountlist: clean up code formatting
35452         * lib/mountlist.c (read_file_system_list): Split a long line,
35453         correct bracing style, use NULL in place of "(struct statfs *)0",
35454         don't parenthesize return value, add spaces around "=" and after
35455         ";-in-for-stmt".
35457 2011-01-14  Markus Duft <mduft@gentoo.org>
35459         mountlist: add support for Interix
35460         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
35461         Apply statvfs to all entries of /dev/fs.
35462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
35463         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
35465 2011-01-20  Jim Meyering  <meyering@redhat.com>
35467         maint.mk: improve the public-submodule-commit rule
35468         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
35469         to suppress printing of its commands... unless V=1.
35470         Add git submodule's --quiet option to suppress printing of e.g.,
35471         "Entering gnulib" output.
35472         "cd" into $(srcdir) before running git submodule.
35474 2011-01-20  Bruno Haible  <bruno@clisp.org>
35476         include_next: Fix bug introduced on 2011-01-18.
35477         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
35478         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
35479         ac_cv_header_... variable if the second argument is not 'check'.
35480         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
35481         gl_NEXT_HEADERS_INTERNAL.
35483 2011-01-20  Bruno Haible  <bruno@clisp.org>
35485         Allow the user to avoid the GNULIB_TEST_* macros.
35486         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
35487         Suggested by Paul Eggert.
35489 2011-01-14  Jim Meyering  <meyering@redhat.com>
35491         bootstrap: avoid failure when there is no .gitmodules file
35492         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
35493         has been assigned to, even when its value is the empty string.
35494         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
35495         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
35496         Reported by John W. Eaton <jwe@gnu.org>.
35498 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
35500         assume <ctype.h>, ..., <time.h> exist
35501         For years gnulib has been assuming the existence of the headers
35502         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
35503         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
35504         them, since they don't appear to be needed.
35505         * README (Portability guidelines): Document this.
35506         * lib/flock.c: Assume <fcntl.h> exists.
35507         * lib/regex_internal.h: Assume <locale.h> exists.
35508         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
35509         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
35510         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
35511         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
35512         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
35513         * m4/regex.m4 (gl_REGEX): Likewise.
35514         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
35515         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
35516         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
35517         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
35518         * tests/test-argp.c: Likewise.
35519         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
35521         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
35522         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
35523         AA_APPLE_UNIVERSAL_BUILD.  See
35524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
35525         * NEWS: Document this.
35527 2011-01-19  Eric Blake  <eblake@redhat.com>
35529         c-stack: assume stack overflow if SA_SIGINFO unsupported
35530         * lib/c-stack.c (SIGACTION_WORKS): Rename...
35531         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
35532         sigaction will work.
35533         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
35534         behavior match Linux.
35535         * tests/test-c-stack.c (main): Prefer NULL for pointers.
35537         stdbool-tests: accommodate Haiku
35538         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
35540         binary-io: fix O_TEXT on Haiku
35541         * modules/binary-io (Depends-on): Add fcntl-h.
35542         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
35543         than blindly undefining O_TEXT.
35544         Reported by Scott McCreary.
35546 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
35548         include_next: do not check for standard headers like stddef.h
35550         I found this problem when modifying Emacs to use gnulib.
35551         I noticed that it added HAVE_STDDEF_H to config.h, even though
35552         gnulib always assumes <stddef.h> exists as per README and this
35553         symbol is unnecessary.
35554         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
35555         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
35556         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
35557         faster for headers like stddef.h that are known to exist.
35558         (gl_CHECK_NEXT_HEADERS): Use it.
35559         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
35560         rather than gl_CHECK_NEXT_HEADERS.
35561         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
35562         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
35564 2011-01-18  Eric Blake  <eblake@redhat.com>
35566         ansi-c++-opt: skip C++ dependency style if C++ is unused
35567         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
35568         tests when we know C++ compilation is not desired.
35569         Reported by Scott McCreary.
35571 2011-01-18  Bruno Haible  <bruno@clisp.org>
35573         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
35574         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
35575         (main): Perform test also when getrlimit and setrlimit don't exist or
35576         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
35577         limiting the address space size using setrlimit, compare the address
35578         space size before and after the the test.
35579         * tests/test-dprintf-posix2.c: Likewise.
35580         * tests/test-fprintf-posix3.sh: Update skip messages.
35581         * tests/test-dprintf-posix2.sh: Likewise.
35582         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
35583         * modules/dprintf-posix-tests (Depends-on): Likewise.
35584         Reported by Bruce Korb <bkorb@gnu.org> and
35585         Gary V. Vaughan <gary@gnu.org>.
35587 2011-01-18  Bruno Haible  <bruno@clisp.org>
35589         get-rusage-as: Improvement for Cygwin.
35590         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
35591         areas that are merely reserved.
35593 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
35595         strftime: remove dependencies on multibyte modules
35597         strftime depended on mbrlen, mbsinit, and wchar, but these modules
35598         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
35599         only if __osf__ is defined, and I suspect OSF doesn't need these
35600         other modules.  If my guess is wrong, we'll need to come up with a
35601         variant of strftime that doesn't need the multibyte modules.
35603         I discovered this problem when attempting modify Emacs to use the
35604         strftime module.  With the previous gnulib, this caused Emacs to
35605         need 31 new files, ranging from lib/config.charset to
35606         m4/wint_t.m4.  This was overkill and I expect would be offputting
35607         to the Emacs maintainers.  After this change, only 6 new files are
35608         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
35609         stdbool.m4, and tm_gmtoff.m4.
35611         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
35612         Suggested by Bruno Haible in
35613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
35614         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
35615         and do not check for wchar.h.
35616         * modules/strftime (Files): Remove m4/mbstate_t.m4.
35617         (Depends-on): Remove mbrlen, mbsinit, wchar.
35619 2011-01-18  Bruno Haible  <bruno@clisp.org>
35621         Tests for module 'get-rusage-as'.
35622         * modules/get-rusage-as-tests: New file.
35623         * tests/test-get-rusage-as.c: New file.
35625         New module 'get-rusage-as'.
35626         * modules/get-rusage-as: New file.
35627         * lib/resource-ext.h: New file.
35628         * lib/get-rusage-as.c: New file.
35630 2011-01-17  Eric Blake  <eblake@redhat.com>
35632         sigaction: relax license from LGPLv3+ to LGPLv2+
35633         * modules/sigaction (License): Relax to LGPLv2+.
35635 2011-01-14  Bruno Haible  <bruno@clisp.org>
35637         filemode: Make function declarations usable in C++ mode.
35638         * lib/filemode.h: Enclose function declarations in extern "C" block.
35639         Reported by John W. Eaton <jwe@gnu.org>.
35641 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
35643         save-cwd: no longer include "xgetcwd.h"
35644         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
35645         This avoids a compilation failure in projects that use save-cwd
35646         without also using the xgetcwd module.
35648 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
35650         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
35651         This is so that a program like Emacs, which needs only dtoastr,
35652         does not have to bother with distributing and compiling ftoastr
35653         and ldtoastr.
35654         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
35655         * modules/dtoastr, modules/ldtoastr: New files.
35656         * modules/ftoastr: Now works just for 'float'.
35657         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
35658         (Makefile.am): Remove ftoastr.h (not needed and no effect),
35659         dtoastr.c, ldtoastr.c.
35661 2011-01-11  Jim Meyering  <meyering@redhat.com>
35663         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
35664         There is no need to work around the lack of the fchdir function,
35665         since gnulib can now provide a replacement when required.
35666         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
35667         * modules/save-cwd (Depends-on): Add fchdir.
35669 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
35671         openat, save-cwd: avoid xmalloc
35673         This removes a direct (but undocumented) dependency of openat on
35674         xalloc, along with an indirect dependency via save-cwd.  It also
35675         removes a dependency of save-cwd on xgetcwd, and thereby
35676         indirectly on xalloc.  This change causes the openat substitute
35677         to fall back on save_cwd when memory is tight, and for save_cwd to
35678         fail instead of dying when memory is tight, but that's good enough.
35679         Problem and initial idea for fix reported by Bastien Roucaries in
35680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
35682         * lib/openat-proc.c: Include stdlib.h (for malloc), not
35683         xalloc.h (for xmalloc).
35684         (openat_proc_name): Use malloc, not xmalloc.
35685         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
35686         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
35688         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
35689         This avoids heap allocation for file names whose lengths are in
35690         the range 512..1023, with the upper bound increasing to at most
35691         4031 depending on the platform's PATH_MAX.  (We do not want
35692         pathmax.h here as it might supply a non-constant PATH_MAX.)
35693         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
35694         Perhaps they should be moved to malloca.h?
35695         (OPENAT_BUFFER_SIZE): Use them.
35697 2011-01-10  Bruno Haible  <bruno@clisp.org>
35699         doc: Update users.txt.
35700         * users.txt: Add recutils.
35702 2011-01-09  Karl Berry  <karl@gnu.org>
35704         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
35706         * doc/configmake.texi: New file.
35707         * doc/gnulib.texi: Include it.
35708         * modules/configmake: Move documentation from here.
35710 2011-01-09  Bruno Haible  <bruno@clisp.org>
35712         Update to Unicode 6.0.0.
35713         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
35714         (get_lbp): Update for Unicode 6.0.0.
35715         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
35716         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
35717         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
35718         U+11001, U+11038..U+11046. Remove U+06DE.
35719         (uc_width): Fix bounds of planes.
35720         * tests/uniwidth/test-uc_width2.sh: Same updates as in
35721         lib/uniwidth/width.c.
35722         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
35723         trailing whitespace removed.
35724         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
35725         without comments, but with the original copyright notice.
35726         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
35727         * lib/unicase/ignorable.h: Likewise.
35728         * lib/unicase/tocasefold.h: Likewise.
35729         * lib/unicase/tolower.h: Likewise.
35730         * lib/unicase/totitle.h: Likewise.
35731         * lib/unicase/toupper.h: Likewise.
35732         * lib/unictype/bidi_of.h: Likewise.
35733         * lib/unictype/blocks.h: Likewise.
35734         * lib/unictype/categ_C.h: Likewise.
35735         * lib/unictype/categ_Cn.h: Likewise.
35736         * lib/unictype/categ_L.h: Likewise.
35737         * lib/unictype/categ_Ll.h: Likewise.
35738         * lib/unictype/categ_Lm.h: Likewise.
35739         * lib/unictype/categ_Lo.h: Likewise.
35740         * lib/unictype/categ_Lu.h: Likewise.
35741         * lib/unictype/categ_M.h: Likewise.
35742         * lib/unictype/categ_Mc.h: Likewise.
35743         * lib/unictype/categ_Me.h: Likewise.
35744         * lib/unictype/categ_Mn.h: Likewise.
35745         * lib/unictype/categ_N.h: Likewise.
35746         * lib/unictype/categ_Nd.h: Likewise.
35747         * lib/unictype/categ_No.h: Likewise.
35748         * lib/unictype/categ_P.h: Likewise.
35749         * lib/unictype/categ_Po.h: Likewise.
35750         * lib/unictype/categ_S.h: Likewise.
35751         * lib/unictype/categ_Sc.h: Likewise.
35752         * lib/unictype/categ_Sk.h: Likewise.
35753         * lib/unictype/categ_Sm.h: Likewise.
35754         * lib/unictype/categ_So.h: Likewise.
35755         * lib/unictype/categ_of.h: Likewise.
35756         * lib/unictype/combining.h: Likewise.
35757         * lib/unictype/ctype_alnum.h: Likewise.
35758         * lib/unictype/ctype_alpha.h: Likewise.
35759         * lib/unictype/ctype_graph.h: Likewise.
35760         * lib/unictype/ctype_lower.h: Likewise.
35761         * lib/unictype/ctype_print.h: Likewise.
35762         * lib/unictype/ctype_punct.h: Likewise.
35763         * lib/unictype/ctype_upper.h: Likewise.
35764         * lib/unictype/decdigit.h: Likewise.
35765         * lib/unictype/digit.h: Likewise.
35766         * lib/unictype/numeric.h: Likewise.
35767         * lib/unictype/pr_alphabetic.h: Likewise.
35768         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35769         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35770         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35771         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35772         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35773         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35774         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35775         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35776         * lib/unictype/pr_case_ignorable.h: Likewise.
35777         * lib/unictype/pr_cased.h: Likewise.
35778         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
35779         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
35780         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
35781         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
35782         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
35783         * lib/unictype/pr_combining.h: Likewise.
35784         * lib/unictype/pr_composite.h: Likewise.
35785         * lib/unictype/pr_currency_symbol.h: Likewise.
35786         * lib/unictype/pr_decimal_digit.h: Likewise.
35787         * lib/unictype/pr_deprecated.h: Likewise.
35788         * lib/unictype/pr_format_control.h: Likewise.
35789         * lib/unictype/pr_grapheme_base.h: Likewise.
35790         * lib/unictype/pr_grapheme_extend.h: Likewise.
35791         * lib/unictype/pr_grapheme_link.h: Likewise.
35792         * lib/unictype/pr_id_continue.h: Likewise.
35793         * lib/unictype/pr_id_start.h: Likewise.
35794         * lib/unictype/pr_ideographic.h: Likewise.
35795         * lib/unictype/pr_lowercase.h: Likewise.
35796         * lib/unictype/pr_math.h: Likewise.
35797         * lib/unictype/pr_numeric.h: Likewise.
35798         * lib/unictype/pr_other_alphabetic.h: Likewise.
35799         * lib/unictype/pr_other_id_continue.h: Likewise.
35800         * lib/unictype/pr_other_math.h: Likewise.
35801         * lib/unictype/pr_punctuation.h: Likewise.
35802         * lib/unictype/pr_sentence_terminal.h: Likewise.
35803         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35804         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35805         * lib/unictype/pr_unified_ideograph.h: Likewise.
35806         * lib/unictype/pr_uppercase.h: Likewise.
35807         * lib/unictype/pr_xid_continue.h: Likewise.
35808         * lib/unictype/pr_xid_start.h: Likewise.
35809         * lib/unictype/scripts.h: Likewise.
35810         * lib/unictype/scripts_byname.gperf: Likewise.
35811         * lib/unictype/sy_java_ident.h: Likewise.
35812         * lib/unigbrk/gbrkprop.h: Likewise.
35813         * lib/unilbrk/lbrkprop1.h: Likewise.
35814         * lib/unilbrk/lbrkprop2.h: Likewise.
35815         * lib/uninorm/decomposition-table2.h: Likewise.
35816         * lib/uniwbrk/wbrkprop.h: Likewise.
35817         * tests/unicase/test-cased.c: Likewise.
35818         * tests/unicase/test-ignorable.c: Likewise.
35819         * tests/unicase/test-uc_tolower.c: Likewise.
35820         * tests/unicase/test-uc_totitle.c: Likewise.
35821         * tests/unicase/test-uc_toupper.c: Likewise.
35822         * tests/unictype/test-categ_C.c: Likewise.
35823         * tests/unictype/test-categ_Cn.c: Likewise.
35824         * tests/unictype/test-categ_L.c: Likewise.
35825         * tests/unictype/test-categ_Ll.c: Likewise.
35826         * tests/unictype/test-categ_Lm.c: Likewise.
35827         * tests/unictype/test-categ_Lo.c: Likewise.
35828         * tests/unictype/test-categ_Lu.c: Likewise.
35829         * tests/unictype/test-categ_M.c: Likewise.
35830         * tests/unictype/test-categ_Mc.c: Likewise.
35831         * tests/unictype/test-categ_Me.c: Likewise.
35832         * tests/unictype/test-categ_Mn.c: Likewise.
35833         * tests/unictype/test-categ_N.c: Likewise.
35834         * tests/unictype/test-categ_Nd.c: Likewise.
35835         * tests/unictype/test-categ_No.c: Likewise.
35836         * tests/unictype/test-categ_P.c: Likewise.
35837         * tests/unictype/test-categ_Po.c: Likewise.
35838         * tests/unictype/test-categ_S.c: Likewise.
35839         * tests/unictype/test-categ_Sc.c: Likewise.
35840         * tests/unictype/test-categ_Sk.c: Likewise.
35841         * tests/unictype/test-categ_Sm.c: Likewise.
35842         * tests/unictype/test-categ_So.c: Likewise.
35843         * tests/unictype/test-ctype_alnum.c: Likewise.
35844         * tests/unictype/test-ctype_alpha.c: Likewise.
35845         * tests/unictype/test-ctype_graph.c: Likewise.
35846         * tests/unictype/test-ctype_lower.c: Likewise.
35847         * tests/unictype/test-ctype_print.c: Likewise.
35848         * tests/unictype/test-ctype_punct.c: Likewise.
35849         * tests/unictype/test-ctype_upper.c: Likewise.
35850         * tests/unictype/test-decdigit.h: Likewise.
35851         * tests/unictype/test-digit.h: Likewise.
35852         * tests/unictype/test-numeric.h: Likewise.
35853         * tests/unictype/test-pr_alphabetic.c: Likewise.
35854         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35855         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35856         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35857         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35858         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35859         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35860         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35861         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35862         * tests/unictype/test-pr_case_ignorable.c: Likewise.
35863         * tests/unictype/test-pr_cased.c: Likewise.
35864         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
35865         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
35866         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
35867         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
35868         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
35869         * tests/unictype/test-pr_combining.c: Likewise.
35870         * tests/unictype/test-pr_composite.c: Likewise.
35871         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35872         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35873         * tests/unictype/test-pr_deprecated.c: Likewise.
35874         * tests/unictype/test-pr_format_control.c: Likewise.
35875         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35876         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35877         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35878         * tests/unictype/test-pr_id_continue.c: Likewise.
35879         * tests/unictype/test-pr_id_start.c: Likewise.
35880         * tests/unictype/test-pr_ideographic.c: Likewise.
35881         * tests/unictype/test-pr_lowercase.c: Likewise.
35882         * tests/unictype/test-pr_math.c: Likewise.
35883         * tests/unictype/test-pr_numeric.c: Likewise.
35884         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35885         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35886         * tests/unictype/test-pr_other_math.c: Likewise.
35887         * tests/unictype/test-pr_punctuation.c: Likewise.
35888         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35889         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35890         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35891         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35892         * tests/unictype/test-pr_uppercase.c: Likewise.
35893         * tests/unictype/test-pr_xid_continue.c: Likewise.
35894         * tests/unictype/test-pr_xid_start.c: Likewise.
35895         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
35896         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
35897         changes.
35898         * lib/unictype/categ_Cc.h: Likewise.
35899         * lib/unictype/categ_Cf.h: Likewise.
35900         * lib/unictype/categ_Co.h: Likewise.
35901         * lib/unictype/categ_Cs.h: Likewise.
35902         * lib/unictype/categ_Lt.h: Likewise.
35903         * lib/unictype/categ_Nl.h: Likewise.
35904         * lib/unictype/categ_Pc.h: Likewise.
35905         * lib/unictype/categ_Pd.h: Likewise.
35906         * lib/unictype/categ_Pe.h: Likewise.
35907         * lib/unictype/categ_Pf.h: Likewise.
35908         * lib/unictype/categ_Pi.h: Likewise.
35909         * lib/unictype/categ_Ps.h: Likewise.
35910         * lib/unictype/categ_Z.h: Likewise.
35911         * lib/unictype/categ_Zl.h: Likewise.
35912         * lib/unictype/categ_Zp.h: Likewise.
35913         * lib/unictype/categ_Zs.h: Likewise.
35914         * lib/unictype/ctype_blank.h: Likewise.
35915         * lib/unictype/ctype_cntrl.h: Likewise.
35916         * lib/unictype/ctype_digit.h: Likewise.
35917         * lib/unictype/ctype_space.h: Likewise.
35918         * lib/unictype/ctype_xdigit.h: Likewise.
35919         * lib/unictype/mirror.h: Likewise.
35920         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35921         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35922         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35923         * lib/unictype/pr_bidi_control.h: Likewise.
35924         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35925         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35926         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35927         * lib/unictype/pr_bidi_pdf.h: Likewise.
35928         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35929         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35930         * lib/unictype/pr_dash.h: Likewise.
35931         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35932         * lib/unictype/pr_diacritic.h: Likewise.
35933         * lib/unictype/pr_extender.h: Likewise.
35934         * lib/unictype/pr_hex_digit.h: Likewise.
35935         * lib/unictype/pr_hyphen.h: Likewise.
35936         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35937         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35938         * lib/unictype/pr_ignorable_control.h: Likewise.
35939         * lib/unictype/pr_iso_control.h: Likewise.
35940         * lib/unictype/pr_join_control.h: Likewise.
35941         * lib/unictype/pr_left_of_pair.h: Likewise.
35942         * lib/unictype/pr_line_separator.h: Likewise.
35943         * lib/unictype/pr_logical_order_exception.h: Likewise.
35944         * lib/unictype/pr_non_break.h: Likewise.
35945         * lib/unictype/pr_not_a_character.h: Likewise.
35946         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35947         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35948         * lib/unictype/pr_other_id_start.h: Likewise.
35949         * lib/unictype/pr_other_lowercase.h: Likewise.
35950         * lib/unictype/pr_other_uppercase.h: Likewise.
35951         * lib/unictype/pr_paired_punctuation.h: Likewise.
35952         * lib/unictype/pr_paragraph_separator.h: Likewise.
35953         * lib/unictype/pr_pattern_syntax.h: Likewise.
35954         * lib/unictype/pr_pattern_white_space.h: Likewise.
35955         * lib/unictype/pr_private_use.h: Likewise.
35956         * lib/unictype/pr_quotation_mark.h: Likewise.
35957         * lib/unictype/pr_radical.h: Likewise.
35958         * lib/unictype/pr_soft_dotted.h: Likewise.
35959         * lib/unictype/pr_space.h: Likewise.
35960         * lib/unictype/pr_titlecase.h: Likewise.
35961         * lib/unictype/pr_variation_selector.h: Likewise.
35962         * lib/unictype/pr_white_space.h: Likewise.
35963         * lib/unictype/pr_zero_width.h: Likewise.
35964         * lib/unictype/sy_c_ident.h: Likewise.
35965         * lib/unictype/sy_c_whitespace.h: Likewise.
35966         * lib/unictype/sy_java_whitespace.h: Likewise.
35967         * lib/uninorm/composition-table.gperf: Likewise.
35968         * lib/uninorm/decomposition-table1.h: Likewise.
35969         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
35970         LB8.
35971         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35972         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35973         * modules/unictype/*: Bump version number of expected libunistring
35974         version.
35976 2011-01-09  Bruno Haible  <bruno@clisp.org>
35978         Update to Unicode 5.2.0.
35979         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
35980         trailing whitespace removed.
35982 2011-01-09  Bruno Haible  <bruno@clisp.org>
35984         New Unicode character properties, from Unicode 5.2.0.
35985         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
35986         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
35987         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
35988         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
35989         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
35990         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
35991         uc_is_property_cased, uc_is_property_case_ignorable,
35992         uc_is_property_changes_when_lowercased,
35993         uc_is_property_changes_when_uppercased,
35994         uc_is_property_changes_when_titlecased,
35995         uc_is_property_changes_when_casefolded,
35996         uc_is_property_changes_when_casemapped): New declarations.
35997         * lib/unictype/pr_byname.gperf: Add the new properties.
35998         * modules/unictype/property-byname (Depends-on): Depend on the new
35999         properties modules.
36000         * modules/unictype/property-all (Depends-on): Likewise.
36001         * MODULES.html.sh (Unicode string functions): Add
36002         unictype/property-case-ignorable, unictype/property-cased,
36003         unictype/property-changes-when-casefolded,
36004         unictype/property-changes-when-casemapped,
36005         unictype/property-changes-when-lowercased,
36006         unictype/property-changes-when-titlecased,
36007         unictype/property-changes-when-uppercased.
36009         New module 'unictype/property-changes-when-casemapped'.
36010         * modules/unictype/property-changes-when-casemapped: New file.
36011         * lib/unictype/pr_changes_when_casemapped.c: New file.
36012         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
36013         generated by gen-uni-tables.
36014         * modules/unictype/property-changes-when-casemapped-tests: New file.
36015         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
36016         automatically generated by gen-uni-tables.
36018         New module 'unictype/property-changes-when-casefolded'.
36019         * modules/unictype/property-changes-when-casefolded: New file.
36020         * lib/unictype/pr_changes_when_casefolded.c: New file.
36021         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
36022         generated by gen-uni-tables.
36023         * modules/unictype/property-changes-when-casefolded-tests: New file.
36024         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
36025         automatically generated by gen-uni-tables.
36027         New module 'unictype/property-changes-when-titlecased'.
36028         * modules/unictype/property-changes-when-titlecased: New file.
36029         * lib/unictype/pr_changes_when_titlecased.c: New file.
36030         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
36031         generated by gen-uni-tables.
36032         * modules/unictype/property-changes-when-titlecased-tests: New file.
36033         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
36034         automatically generated by gen-uni-tables.
36036         New module 'unictype/property-changes-when-uppercased'.
36037         * modules/unictype/property-changes-when-uppercased: New file.
36038         * lib/unictype/pr_changes_when_uppercased.c: New file.
36039         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
36040         generated by gen-uni-tables.
36041         * modules/unictype/property-changes-when-uppercased-tests: New file.
36042         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
36043         automatically generated by gen-uni-tables.
36045         New module 'unictype/property-changes-when-lowercased'.
36046         * modules/unictype/property-changes-when-lowercased: New file.
36047         * lib/unictype/pr_changes_when_lowercased.c: New file.
36048         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
36049         generated by gen-uni-tables.
36050         * modules/unictype/property-changes-when-lowercased-tests: New file.
36051         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
36052         automatically generated by gen-uni-tables.
36054         New module 'unictype/property-case-ignorable'.
36055         * modules/unictype/property-case-ignorable: New file.
36056         * lib/unictype/pr_case_ignorable.c: New file.
36057         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
36058         by gen-uni-tables.
36059         * modules/unictype/property-case-ignorable-tests: New file.
36060         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
36061         generated by gen-uni-tables.
36063         New module 'unictype/property-cased'.
36064         * modules/unictype/property-cased: New file.
36065         * lib/unictype/pr_cased.c: New file.
36066         * lib/unictype/pr_cased.h: New file, automatically generated by
36067         gen-uni-tables.
36068         * modules/unictype/property-cased-tests: New file.
36069         * tests/unictype/test-pr_cased.c: New file, automatically generated by
36070         gen-uni-tables.
36072 2011-01-09  Bruno Haible  <bruno@clisp.org>
36074         Update to Unicode 5.2.0.
36075         * lib/gen-uni-tables.c (output_predicate, output_category,
36076         output_combclass, output_bidi_category, output_decimal_digit_test,
36077         output_decimal_digit, output_digit_test, output_digit,
36078         output_numeric_test, output_numeric, output_mirror, output_scripts,
36079         output_scripts_byname, output_blocks, output_ident_category): Fix
36080         comment header.
36081         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
36082         get_wbp.
36083         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
36084         items.
36085         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
36086         Changes_When_Lowercased, Changes_When_Uppercased,
36087         Changes_When_Titlecased, Changes_When_Casefolded,
36088         Changes_When_Casemapped.
36089         (is_property_alphabetic, is_property_default_ignorable_code_point):
36090         Update for Unicode 5.2.0.
36091         (is_property_cased, is_property_case_ignorable,
36092         is_property_changes_when_lowercased,
36093         is_property_changes_when_uppercased,
36094         is_property_changes_when_titlecased,
36095         is_property_changes_when_casefolded,
36096         is_property_changes_when_casemapped): New functions.
36097         (output_properties): Output also the properties cased, case_ignorable,
36098         changes_when_lowercased, changes_when_uppercased,
36099         changes_when_titlecased, changes_when_casefolded,
36100         changes_when_casemapped.
36101         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
36102         Unicode TR#11 revision 17 -> 19.
36103         (LBP_CP): New enumeration value.
36104         (LBP_*): Adjust values accordingly.
36105         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
36106         TR#14 revision 22 -> 24.
36107         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
36108         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
36109         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
36110         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
36111         is_WBP_MIDLETTER.
36112         (output_composition_tables): Allow for 24 bits instead of 16 bits in
36113         the code1 and code2 of each composition rule.
36114         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
36115         * lib/unicase/ignorable.h: Likewise.
36116         * lib/unicase/tocasefold.h: Likewise.
36117         * lib/unicase/tolower.h: Likewise.
36118         * lib/unicase/totitle.h: Likewise.
36119         * lib/unicase/toupper.h: Likewise.
36120         * lib/unictype/bidi_of.h: Likewise.
36121         * lib/unictype/blocks.h: Likewise.
36122         * lib/unictype/categ_C.h: Likewise.
36123         * lib/unictype/categ_Cf.h: Likewise.
36124         * lib/unictype/categ_Cn.h: Likewise.
36125         * lib/unictype/categ_L.h: Likewise.
36126         * lib/unictype/categ_Ll.h: Likewise.
36127         * lib/unictype/categ_Lm.h: Likewise.
36128         * lib/unictype/categ_Lo.h: Likewise.
36129         * lib/unictype/categ_Lu.h: Likewise.
36130         * lib/unictype/categ_M.h: Likewise.
36131         * lib/unictype/categ_Mc.h: Likewise.
36132         * lib/unictype/categ_Mn.h: Likewise.
36133         * lib/unictype/categ_N.h: Likewise.
36134         * lib/unictype/categ_Nd.h: Likewise.
36135         * lib/unictype/categ_Nl.h: Likewise.
36136         * lib/unictype/categ_No.h: Likewise.
36137         * lib/unictype/categ_P.h: Likewise.
36138         * lib/unictype/categ_Pd.h: Likewise.
36139         * lib/unictype/categ_Po.h: Likewise.
36140         * lib/unictype/categ_S.h: Likewise.
36141         * lib/unictype/categ_Sc.h: Likewise.
36142         * lib/unictype/categ_So.h: Likewise.
36143         * lib/unictype/categ_of.h: Likewise.
36144         * lib/unictype/combining.h: Likewise.
36145         * lib/unictype/ctype_alnum.h: Likewise.
36146         * lib/unictype/ctype_alpha.h: Likewise.
36147         * lib/unictype/ctype_graph.h: Likewise.
36148         * lib/unictype/ctype_lower.h: Likewise.
36149         * lib/unictype/ctype_print.h: Likewise.
36150         * lib/unictype/ctype_punct.h: Likewise.
36151         * lib/unictype/ctype_upper.h: Likewise.
36152         * lib/unictype/decdigit.h: Likewise.
36153         * lib/unictype/digit.h: Likewise.
36154         * lib/unictype/numeric.h: Likewise.
36155         * lib/unictype/pr_alphabetic.h: Likewise.
36156         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36157         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36158         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36159         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36160         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36161         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36162         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36163         * lib/unictype/pr_combining.h: Likewise.
36164         * lib/unictype/pr_composite.h: Likewise.
36165         * lib/unictype/pr_currency_symbol.h: Likewise.
36166         * lib/unictype/pr_dash.h: Likewise.
36167         * lib/unictype/pr_decimal_digit.h: Likewise.
36168         * lib/unictype/pr_deprecated.h: Likewise.
36169         * lib/unictype/pr_diacritic.h: Likewise.
36170         * lib/unictype/pr_extender.h: Likewise.
36171         * lib/unictype/pr_grapheme_base.h: Likewise.
36172         * lib/unictype/pr_grapheme_extend.h: Likewise.
36173         * lib/unictype/pr_grapheme_link.h: Likewise.
36174         * lib/unictype/pr_id_continue.h: Likewise.
36175         * lib/unictype/pr_id_start.h: Likewise.
36176         * lib/unictype/pr_ideographic.h: Likewise.
36177         * lib/unictype/pr_ignorable_control.h: Likewise.
36178         * lib/unictype/pr_logical_order_exception.h: Likewise.
36179         * lib/unictype/pr_lowercase.h: Likewise.
36180         * lib/unictype/pr_numeric.h: Likewise.
36181         * lib/unictype/pr_other_alphabetic.h: Likewise.
36182         * lib/unictype/pr_punctuation.h: Likewise.
36183         * lib/unictype/pr_sentence_terminal.h: Likewise.
36184         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36185         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36186         * lib/unictype/pr_unified_ideograph.h: Likewise.
36187         * lib/unictype/pr_uppercase.h: Likewise.
36188         * lib/unictype/pr_xid_continue.h: Likewise.
36189         * lib/unictype/pr_xid_start.h: Likewise.
36190         * lib/unictype/pr_zero_width.h: Likewise.
36191         * lib/unictype/scripts.h: Likewise.
36192         * lib/unictype/scripts_byname.gperf: Likewise.
36193         * lib/unictype/sy_java_ident.h: Likewise.
36194         * lib/unigbrk/gbrkprop.h: Likewise.
36195         * lib/unilbrk/lbrkprop1.h: Likewise.
36196         * lib/unilbrk/lbrkprop2.h: Likewise.
36197         * lib/unilbrk/lbrktables.h: Likewise.
36198         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
36199         LBP_CP. Implement rule LB30.
36200         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
36201         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
36202         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
36203         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
36204         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
36205         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
36206         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
36207         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
36208         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
36209         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
36210         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
36211         bits instead of 16 bits in the code1 and code2 of each composition
36212         rule.
36213         (uc_composition): Update for Unicode 5.2.0.
36214         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
36215         * lib/uninorm/decomposition-table2.h: Likewise.
36216         * lib/uniwbrk/wbrkprop.h: Likewise.
36217         * tests/unicase/test-cased.c: Likewise.
36218         * tests/unicase/test-ignorable.c: Likewise.
36219         * tests/unicase/test-uc_tolower.c: Likewise.
36220         * tests/unicase/test-uc_totitle.c: Likewise.
36221         * tests/unicase/test-uc_toupper.c: Likewise.
36222         * tests/unictype/test-categ_C.c: Likewise.
36223         * tests/unictype/test-categ_Cf.c: Likewise.
36224         * tests/unictype/test-categ_Cn.c: Likewise.
36225         * tests/unictype/test-categ_L.c: Likewise.
36226         * tests/unictype/test-categ_Ll.c: Likewise.
36227         * tests/unictype/test-categ_Lm.c: Likewise.
36228         * tests/unictype/test-categ_Lo.c: Likewise.
36229         * tests/unictype/test-categ_Lu.c: Likewise.
36230         * tests/unictype/test-categ_M.c: Likewise.
36231         * tests/unictype/test-categ_Mc.c: Likewise.
36232         * tests/unictype/test-categ_Mn.c: Likewise.
36233         * tests/unictype/test-categ_N.c: Likewise.
36234         * tests/unictype/test-categ_Nd.c: Likewise.
36235         * tests/unictype/test-categ_Nl.c: Likewise.
36236         * tests/unictype/test-categ_No.c: Likewise.
36237         * tests/unictype/test-categ_P.c: Likewise.
36238         * tests/unictype/test-categ_Pd.c: Likewise.
36239         * tests/unictype/test-categ_Po.c: Likewise.
36240         * tests/unictype/test-categ_S.c: Likewise.
36241         * tests/unictype/test-categ_Sc.c: Likewise.
36242         * tests/unictype/test-categ_So.c: Likewise.
36243         * tests/unictype/test-ctype_alnum.c: Likewise.
36244         * tests/unictype/test-ctype_alpha.c: Likewise.
36245         * tests/unictype/test-ctype_graph.c: Likewise.
36246         * tests/unictype/test-ctype_lower.c: Likewise.
36247         * tests/unictype/test-ctype_print.c: Likewise.
36248         * tests/unictype/test-ctype_punct.c: Likewise.
36249         * tests/unictype/test-ctype_upper.c: Likewise.
36250         * tests/unictype/test-decdigit.h: Likewise.
36251         * tests/unictype/test-digit.h: Likewise.
36252         * tests/unictype/test-numeric.h: Likewise.
36253         * tests/unictype/test-pr_alphabetic.c: Likewise.
36254         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36255         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36256         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36257         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36258         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36259         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36260         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36261         * tests/unictype/test-pr_combining.c: Likewise.
36262         * tests/unictype/test-pr_composite.c: Likewise.
36263         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36264         * tests/unictype/test-pr_dash.c: Likewise.
36265         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36266         * tests/unictype/test-pr_deprecated.c: Likewise.
36267         * tests/unictype/test-pr_diacritic.c: Likewise.
36268         * tests/unictype/test-pr_extender.c: Likewise.
36269         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36270         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36271         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36272         * tests/unictype/test-pr_id_continue.c: Likewise.
36273         * tests/unictype/test-pr_id_start.c: Likewise.
36274         * tests/unictype/test-pr_ideographic.c: Likewise.
36275         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36276         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36277         * tests/unictype/test-pr_lowercase.c: Likewise.
36278         * tests/unictype/test-pr_numeric.c: Likewise.
36279         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36280         * tests/unictype/test-pr_punctuation.c: Likewise.
36281         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36282         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36283         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36284         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36285         * tests/unictype/test-pr_uppercase.c: Likewise.
36286         * tests/unictype/test-pr_xid_continue.c: Likewise.
36287         * tests/unictype/test-pr_xid_start.c: Likewise.
36288         * tests/unictype/test-pr_zero_width.c: Likewise.
36289         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
36290         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
36291         changed behaviour: line breaking is now disallowed between a letter
36292         or '=' and '('.
36293         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36294         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36295         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36296         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
36297         * tests/uniwidth/test-uc_width2.sh: Same updates as in
36298         lib/uniwidth/width.c.
36299         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
36300         without comments, but with the original copyright notice.
36301         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
36302         changes.
36303         * lib/unictype/categ_Cc.h: Likewise.
36304         * lib/unictype/categ_Co.h: Likewise.
36305         * lib/unictype/categ_Cs.h: Likewise.
36306         * lib/unictype/categ_Lt.h: Likewise.
36307         * lib/unictype/categ_Me.h: Likewise.
36308         * lib/unictype/categ_Pc.h: Likewise.
36309         * lib/unictype/categ_Pe.h: Likewise.
36310         * lib/unictype/categ_Pf.h: Likewise.
36311         * lib/unictype/categ_Pi.h: Likewise.
36312         * lib/unictype/categ_Ps.h: Likewise.
36313         * lib/unictype/categ_Sk.h: Likewise.
36314         * lib/unictype/categ_Sm.h: Likewise.
36315         * lib/unictype/categ_Z.h: Likewise.
36316         * lib/unictype/categ_Zl.h: Likewise.
36317         * lib/unictype/categ_Zp.h: Likewise.
36318         * lib/unictype/categ_Zs.h: Likewise.
36319         * lib/unictype/ctype_blank.h: Likewise.
36320         * lib/unictype/ctype_cntrl.h: Likewise.
36321         * lib/unictype/ctype_digit.h: Likewise.
36322         * lib/unictype/ctype_space.h: Likewise.
36323         * lib/unictype/ctype_xdigit.h: Likewise.
36324         * lib/unictype/mirror.h: Likewise.
36325         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36326         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36327         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36328         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36329         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36330         * lib/unictype/pr_bidi_control.h: Likewise.
36331         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36332         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36333         * lib/unictype/pr_bidi_pdf.h: Likewise.
36334         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36335         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36336         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36337         * lib/unictype/pr_format_control.h: Likewise.
36338         * lib/unictype/pr_hex_digit.h: Likewise.
36339         * lib/unictype/pr_hyphen.h: Likewise.
36340         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36341         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36342         * lib/unictype/pr_iso_control.h: Likewise.
36343         * lib/unictype/pr_join_control.h: Likewise.
36344         * lib/unictype/pr_left_of_pair.h: Likewise.
36345         * lib/unictype/pr_line_separator.h: Likewise.
36346         * lib/unictype/pr_math.h: Likewise.
36347         * lib/unictype/pr_non_break.h: Likewise.
36348         * lib/unictype/pr_not_a_character.h: Likewise.
36349         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36350         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36351         * lib/unictype/pr_other_id_continue.h: Likewise.
36352         * lib/unictype/pr_other_id_start.h: Likewise.
36353         * lib/unictype/pr_other_lowercase.h: Likewise.
36354         * lib/unictype/pr_other_math.h: Likewise.
36355         * lib/unictype/pr_other_uppercase.h: Likewise.
36356         * lib/unictype/pr_paired_punctuation.h: Likewise.
36357         * lib/unictype/pr_paragraph_separator.h: Likewise.
36358         * lib/unictype/pr_pattern_syntax.h: Likewise.
36359         * lib/unictype/pr_pattern_white_space.h: Likewise.
36360         * lib/unictype/pr_private_use.h: Likewise.
36361         * lib/unictype/pr_quotation_mark.h: Likewise.
36362         * lib/unictype/pr_radical.h: Likewise.
36363         * lib/unictype/pr_soft_dotted.h: Likewise.
36364         * lib/unictype/pr_space.h: Likewise.
36365         * lib/unictype/pr_titlecase.h: Likewise.
36366         * lib/unictype/pr_variation_selector.h: Likewise.
36367         * lib/unictype/pr_white_space.h: Likewise.
36368         * lib/unictype/sy_c_ident.h: Likewise.
36369         * lib/unictype/sy_c_whitespace.h: Likewise.
36370         * lib/unictype/sy_java_whitespace.h: Likewise.
36371         * modules/uni*/*: Bump version number of expected libunistring version.
36372         Reported by Simon Josefsson.
36374 2011-01-09  Karl Heuer  <kwzh@gnu.org>
36376         useless-if-before-free: fix typo in --help and make the internal,
36377         automatic version date update process work once again.
36378         --help output contained a NUL character instead of the
36379         backslash-zero that was intended.  Also, the "must lie within
36380         the first 8 lines" line is on line 9, and hence not getting
36381         automatically updated.
36382         * build-aux/useless-if-before-free: Fix the former by adding a
36383         backslash, and the latter by condensing the three lines of what-it-does
36384         to a single line, leaving one line of slack for the future.
36386 2011-01-09  Bruno Haible  <bruno@clisp.org>
36388         uniwidth/width: Fix width of U+1D173..U+1D17A.
36389         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
36390         symbolic_width, output_width_property_test): New functions.
36391         (main): Invoke output_nonspacing_property, output_width_property_test.
36392         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
36393         U+1D173..U+1D17A.
36394         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
36395         1.
36396         * modules/uniwidth/*: Bump version number of expected libunistring
36397         version.
36398         * modules/unilbrk/*: Likewise.
36400 2011-01-08  Bruno Haible  <bruno@clisp.org>
36402         uninorm tests: Preserve copyright of Unicode data file.
36403         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
36404         Mention modifications.
36406 2011-01-08  Bruno Haible  <bruno@clisp.org>
36408         gen-uni-tables: Prepare for Unicode 5.2.0.
36409         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
36410         (debug_output_lbp, output_lbp): Update.
36412 2011-01-08  Bruno Haible  <bruno@clisp.org>
36414         unilbrk: Clarify gen-uni-tables.c code.
36415         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
36416         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
36417         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
36419 2011-01-07  Bruno Haible  <bruno@clisp.org>
36421         strtod: Restore errno when successfully parsing Infinity or NaN.
36422         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
36423         restore the original errno.
36425 2011-01-07  Bruno Haible  <bruno@clisp.org>
36427         remove test: Avoid failure on HP-UX 11.
36428         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
36430 2011-01-07  Bruno Haible  <bruno@clisp.org>
36432         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
36433         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
36434         error code.
36436 2011-01-07  Pádraig Brady <P@draigBrady.com>
36438         ignore-value: fixup comments, and add Eric Blake
36439         as an author since he rewrote the macros.
36440         * lib/ignore-value.h (ignore_value):  State that
36441         we now support aggregates.  Also specify exactly
36442         when the GCC warn_unused_result feature was added.
36444 2011-01-06  Eric Blake  <eblake@redhat.com>
36446         ignore-value: support aggregate types
36447         * lib/ignore-value.h (ignore_value): Provide separate gcc
36448         definition.
36449         * modules/ignore-value-tests: New test module.
36450         * tests/test-ignore-value.c: New test.
36452         maint.mk: improve sc_prohibit_strcmp regex
36453         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
36454         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
36455         definition of STRNEQ.
36457         signal: work around Haiku issue with SIGBUS
36458         * lib/siglist.h: Add comment.
36459         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
36460         strsignal's favoring of SIGSEGV.
36461         * tests/test-signal.c (main): Avoid test failure.
36462         * doc/posix-headers/signal.texi (signal.h): Document the issue.
36463         Reported by Scott McCreary.
36465         maint.mk: add pre-release check to ensure submodule commits are public
36466         * top/maint.mk (public-submodule-commit): New rule.
36467         (submodule-checks): New variable.
36468         (alpha beta stable): Depend on the variable.
36470 2011-01-05  Pádraig Brady <P@draigBrady.com>
36471         and Jim Meyering  <meyering@redhat.com>
36473         ignore-value: make ignore_value more generic; deprecate ignore_ptr
36474         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
36475         (ATTRIBUTE_DEPRECATED): Define.
36476         (_ignore_case): New function.
36477         (ignore_value): New macro, to replace the old function.
36478         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
36479         * modules/ignore-value (Depends-on): Add stdint.
36481 2011-01-04  Eric Blake  <eblake@redhat.com>
36483         doc: regenerate INSTALL
36484         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
36485         @firstparagraphindent support, now that autoconf dropped it.
36486         (INSTALL_PRELUDE): Reinstate old macro.
36487         * doc/install.texi: Resync from autoconf.
36488         * doc/INSTALL: Reflect recent autoconf update.
36489         * doc/INSTALL.ISO: Likewise.
36490         * doc/INSTALL.UTF-8: Likewise.
36491         Reported by Karl Berry.
36493 2011-01-04  Bruce Korb  <address@hidden>
36495         git-version-gen: avoid a sub-shell
36496         * build-aux/git-version-gen: Redirect stderr in `...` via
36497         "exec 2>...", rather than via an added sub-shell.
36499 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
36501         git-version-gen: use (...) rather than sh -c '...'
36502         * build-aux/git-version-gen: Rather than hard-coding a shell's name
36503         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
36505 2011-01-03  Jim Meyering  <meyering@redhat.com>
36507         git-version-gen: convert leading TABs to spaces
36508         * build-aux/git-version-gen: Expand leading TABs.
36510         git-version-gen: handle failed "git rev-list"
36511         * build-aux/git-version-gen: Rather than leaking a "fatal" error
36512         from git and proceeding as if it had succeeded but printed no SHA1
36513         checksums, suppress the diagnostic and handle the failure.
36514         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
36516         git-version-gen: include command name in one more diagnostic
36517         * build-aux/git-version-gen: When the required .tarball-version file
36518         was missing or unreadable, you might see the diagnostic from "cat",
36519         but no trace of the name of the invoking script.  Now, you still see
36520         the diagnostic from cat, but also get one from "git-version-gen: ".
36521         Inspired by a patch from Bruce Korb.
36523         update-copyright: adjust test to match changed code
36524         * tests/test-update-copyright.sh: Change test's expected output
36525         to match new actual output.
36527 2011-01-02  Bruno Haible  <bruno@clisp.org>
36529         getlogin_r: Avoid test failure on HP-UX 11.
36530         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
36531         ERANGE when the second argument is zero.
36532         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
36533         portability problem.
36535 2011-01-02  Bruce Korb  <bkorb@gnu.org>
36537         * build-aux/update-copyright: doc Simon's changes
36539 2011-01-02  Simon Josefsson  <simon@josefsson.org>
36541         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
36542         environment variable.
36544 2011-01-02  Bruno Haible  <bruno@clisp.org>
36546         unigbrk: Avoid gcc warnings.
36547         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
36548         unused variable.
36549         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
36550         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
36551         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
36552         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
36553         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
36554         Change type of first argument to 'const char *'.
36555         (main): Remove unused variable.
36556         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
36557         type of first argument to 'const char *'.
36558         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
36559         Likewise.
36560         (main): Change type of variable 's'.
36561         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
36562         to 'int'.
36564 2011-01-02  Bruno Haible  <bruno@clisp.org>
36566         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
36567         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
36568         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
36569         bug.
36570         * lib/pwrite.c: Undo 2010-12-31 patch.
36571         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
36573 2011-01-02  Bruno Haible  <bruno@clisp.org>
36575         pread: Fix test whether it works.
36576         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
36578 2011-01-02  Bruno Haible  <bruno@clisp.org>
36580         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
36581         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
36582         ends in "6". Don't require a specific month name. Try also the locale
36583         names found on HP-UX 11 and Solaris 7.
36585 2011-01-02  Bruno Haible  <bruno@clisp.org>
36587         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
36588         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
36589         C linkage.
36590         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
36592 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
36594         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
36595         for consistency, since the "cluster" term is not used elsewhere.
36596         * lib/unigbrk.in.h: Update name.
36597         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
36598         * lib/unigbrk/u16-grapheme-next.c: Update name.
36599         * lib/unigbrk/u16-grapheme-prev.c: Update name.
36600         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
36601         * lib/unigbrk/u32-grapheme-next.c: Update name.
36602         * lib/unigbrk/u32-grapheme-prev.c: Update name.
36603         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
36604         * lib/unigbrk/u8-grapheme-next.c: Update name.
36605         * lib/unigbrk/u8-grapheme-prev.c: Update name.
36606         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
36607         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
36608         Suggested by Bruno Haible.
36610 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
36612         Remove module 'u8-grapheme-len' as too redundant with
36613         'u8-grapheme-next'.
36614         * modules/unigbrk/u8-grapheme-len: Delete file.
36615         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
36616         * lib/unigbrk.in.h: Remove prototype for deleted function.
36617         * lib/unigbrk/u8-grapheme-len.c: Delete file.
36618         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
36620         Remove module 'u16-grapheme-len' as too redundant with
36621         'u16-grapheme-next'.
36622         * modules/unigbrk/u16-grapheme-len: Delete file.
36623         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
36624         * lib/unigbrk.in.h: Remove prototype for deleted function.
36625         * lib/unigbrk/u16-grapheme-len.c: Delete file.
36626         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
36628         Remove module 'u32-grapheme-len' as too redundant with
36629         'u32-grapheme-next'.
36630         * modules/unigbrk/u32-grapheme-len: Delete file.
36631         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
36632         * lib/unigbrk.in.h: Remove prototype for deleted function.
36633         * lib/unigbrk/u32-grapheme-len.c: Delete file.
36634         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
36636         Suggested by Bruno Haible.
36638 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
36640         * unigbrk.in.h: Fix typo: "ben" => "been".
36641         Reported by Bruno Haible.
36643 2011-01-01  Jim Meyering  <meyering@redhat.com>
36645         maint: update almost all copyright ranges to include 2011
36646         Run the new "make update-copyright" rule.
36648 2011-01-01  Jim Meyering  <meyering@redhat.com>
36650         maint: update-copyright: exempt doc/INSTALL*
36651         * Makefile (update-copyright): Also exclude doc/INSTALL*,
36652         since they are generated.  Suggested by Bruno Haible.
36654 2011-01-01  Jim Meyering  <meyering@redhat.com>
36656         maint: refine the update-copyright rule
36657         * Makefile (update-copyright): Also exclude any file that includes
36658         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
36659         code that merely generates the comment.
36661 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
36663         New module 'u8-grapheme-len'.
36664         * modules/unigbrk/u8-grapheme-len: New file.
36665         * modules/unigbrk/u8-grapheme-len-tests: New file.
36666         * lib/unigbrk.in.h: Add prototype for new function.
36667         * lib/unigbrk/u8-grapheme-len.c: New file.
36668         * tests/unigbrk/test-u8-grapheme-len.c: New file.
36670         New module 'u16-grapheme-len'.
36671         * modules/unigbrk/u16-grapheme-len: New file.
36672         * modules/unigbrk/u16-grapheme-len-tests: New file.
36673         * lib/unigbrk.in.h: Add prototype for new function.
36674         * lib/unigbrk/u16-grapheme-len.c: New file.
36675         * tests/unigbrk/test-u16-grapheme-len.c: New file.
36677         New module 'u32-grapheme-len'.
36678         * modules/unigbrk/u32-grapheme-len: New file.
36679         * modules/unigbrk/u32-grapheme-len-tests: New file.
36680         * lib/unigbrk.in.h: Add prototype for new function.
36681         * lib/unigbrk/u32-grapheme-len.c: New file.
36682         * tests/unigbrk/test-u32-grapheme-len.c: New file.
36684         New module 'u8-grapheme-next'.
36685         * modules/unigbrk/u8-grapheme-next: New file.
36686         * modules/unigbrk/u8-grapheme-next-tests: New file.
36687         * lib/unigbrk.in.h: Add prototype for new function.
36688         * lib/unigbrk/u8-grapheme-next.c: New file.
36689         * tests/unigbrk/test-u8-grapheme-next.c: New file.
36691         New module 'u16-grapheme-next'.
36692         * modules/unigbrk/u16-grapheme-next: New file.
36693         * modules/unigbrk/u16-grapheme-next-tests: New file.
36694         * lib/unigbrk.in.h: Add prototype for new function.
36695         * lib/unigbrk/u16-grapheme-next.c: New file.
36696         * tests/unigbrk/test-u16-grapheme-next.c: New file.
36698         New module 'u32-grapheme-next'.
36699         * modules/unigbrk/u32-grapheme-next: New file.
36700         * modules/unigbrk/u32-grapheme-next-tests: New file.
36701         * lib/unigbrk.in.h: Add prototype for new function.
36702         * lib/unigbrk/u32-grapheme-next.c: New file.
36703         * tests/unigbrk/test-u32-grapheme-next.c: New file.
36705         New module 'u8-grapheme-prev'.
36706         * modules/unigbrk/u8-grapheme-prev: New file.
36707         * modules/unigbrk/u8-grapheme-prev-tests: New file.
36708         * lib/unigbrk.in.h: Add prototype for new function.
36709         * lib/unigbrk/u8-grapheme-prev.c: New file.
36710         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
36712         New module 'u16-grapheme-prev'.
36713         * modules/unigbrk/u16-grapheme-prev: New file.
36714         * modules/unigbrk/u16-grapheme-prev-tests: New file.
36715         * lib/unigbrk.in.h: Add prototype for new function.
36716         * lib/unigbrk/u16-grapheme-prev.c: New file.
36717         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
36719         New module 'u32-grapheme-prev'.
36720         * modules/unigbrk/u32-grapheme-prev: New file.
36721         * modules/unigbrk/u32-grapheme-prev-tests: New file.
36722         * lib/unigbrk.in.h: Add prototype for new function.
36723         * lib/unigbrk/u32-grapheme-prev.c: New file.
36724         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
36726         New module 'u8-grapheme-breaks'.
36727         * modules/unigbrk/u8-grapheme-breaks: New file.
36728         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
36729         * lib/unigbrk.in.h: Add prototype for new function.
36730         * lib/unigbrk/u8-grapheme-breaks.c: New file.
36731         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
36733         New module 'u16-grapheme-breaks'.
36734         * modules/unigbrk/u16-grapheme-breaks: New file.
36735         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
36736         * lib/unigbrk.in.h: Add prototype for new function.
36737         * lib/unigbrk/u16-grapheme-breaks.c: New file.
36738         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
36740         New module 'u32-grapheme-breaks'.
36741         * modules/unigbrk/u32-grapheme-breaks: New file.
36742         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
36743         * lib/unigbrk.in.h: Add prototype for new function.
36744         * lib/unigbrk/u32-grapheme-breaks.c: New file.
36745         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
36747         New module 'ulc-grapheme-breaks'.
36748         * modules/unigbrk/ulc-grapheme-breaks: New file.
36749         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
36750         * m4/locale-ar.m4: New file.
36751         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
36752         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
36753         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
36755 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
36757         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
36758         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
36759         modified how this file was generated before I initially submitted
36760         the module, but failed to regenerate it.  This meant that several
36761         of the level2 entries were wrong.
36762         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
36763         Remove the division-by-2 that is folded into the table now that
36764         gbrkprop.h has been regenerated properly.  Now -1 entries are
36765         handled correctly.
36767         New module 'unigbrk/uc-gbrk-prop-tests'.
36768         * modules/unigbrk/uc-gbrk-prop-tests: New file.
36769         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
36770         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
36771         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
36773 2011-01-01  Bruno Haible  <bruno@clisp.org>
36775         Avoid use of hexadecimal escapes.
36776         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
36777         instead of hexadecimal escapes.
36779 2011-01-01  Jim Meyering  <meyering@redhat.com>
36781         maint: new rule to update copyright year ranges
36782         * Makefile (update-copyright): New rule.
36784         maint: indent with TABs in Makefile
36785         * Makefile: Expand leading sequences of spaces to TABs
36787         version-etc: update the copyright year it reports
36788         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
36790 2010-12-31  Bruno Haible  <bruno@clisp.org>
36792         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
36793         * lib/isfinite.c (zerof, zerod, zerol): New variables.
36794         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
36795         zero.
36797 2010-12-31  Bruno Haible  <bruno@clisp.org>
36799         pwrite: Work around HP-UX 11.11 bug.
36800         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
36801         works and set REPLACE_PWRITE if not.
36802         * lib/pwrite.c (pwrite): Add an implementation that uses the system
36803         function.
36804         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
36806 2010-12-31  Bruno Haible  <bruno@clisp.org>
36808         pread: Work around HP-UX 11 bugs.
36809         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
36810         and set REPLACE_PREAD if not.
36811         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
36813 2010-12-31  Eric Blake  <eblake@redhat.com>
36815         nl_langinfo: fix YESEXPR on Irix 6.5
36816         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
36817         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
36818         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
36819         it.
36821 2010-12-31  Bruno Haible  <bruno@clisp.org>
36823         iconv: Document HP-UX 11 bug.
36824         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
36826 2010-12-31  Bruno Haible  <bruno@clisp.org>
36828         ldexpl: Fix link error on HP-UX 11.
36829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
36830         LDEXPL_LIBM, using $ISNANL_LIBM.
36832 2010-12-31  Eric Blake  <eblake@redhat.com>
36834         ftello: avoid compilation failure with SunStudio c89
36835         * lib/ftello.c (ftello): Use lseek, not llseek.
36837         tests: avoid failing coreutils tests on cygwin
36838         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
36839         (create_exe_shims_): Return 0 when skipping.
36841 2010-12-31  Bruno Haible  <bruno@clisp.org>
36843         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
36844         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
36846 2010-12-31  Bruno Haible  <bruno@clisp.org>
36848         waitpid: Fix link error in C++ mode.
36849         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
36851 2010-12-31  Bruno Haible  <bruno@clisp.org>
36853         isnan: Use GCC built-ins when possible.
36854         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
36855         __builtin_isnan.
36856         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
36857         (isnan): Define using GCC built-ins for GCC >= 4.0.
36859 2010-12-31  Bruno Haible  <bruno@clisp.org>
36861         isnand: Fix mistake.
36862         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
36863         __builtin_isnand.
36865 2010-12-31  Bruno Haible  <bruno@clisp.org>
36867         open: Avoid C++ error on HP-UX 11.
36868         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
36870 2010-12-31  Bruno Haible  <bruno@clisp.org>
36872         time_r: Add missing declarations on HP-UX 11.
36873         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
36874         instead of HAVE_LOCALTIME_R.
36875         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
36876         HAVE_LOCALTIME_R always.
36877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
36878         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
36879         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
36880         HAVE_LOCALTIME_R.
36881         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
36882         * doc/posix-functions/localtime_r.texi: Likewise.
36884 2010-12-29  Eric Blake  <eblake@redhat.com>
36886         mountlist: tweak previous commit
36887         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
36888         Reported by Paul Eggert.
36890         mountlist: fix local drive detection on cygwin
36891         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
36892         that works for cygwin.
36894 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36896         ftoastr, snprintf: ftoastr + snprintf module
36897         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
36898         since the snprintf module now should be good enough here.
36899         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
36900         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
36901         and gl_MODULE_INDICATOR([snprintf]), but the former enables
36902         GNULIB_SNPRINTF only for the test directory, and the latter
36903         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
36904         seems to suffice by itself.
36906 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36908         alloca: one step towards thread-safety
36909         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
36910         need for a static variable.  All callers changed.  This does not
36911         make the alloca replacement thread-safe, but it's one step.
36913         tests: minor indenting change
36914         * tests/init.sh: Sync from coreutils housekeeping patch
36915         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
36916         to keep lines within 80 columns.
36918 2010-12-28  Jim Meyering  <meyering@redhat.com>
36920         regex: don't infloop on persistent failing calloc
36921         * lib/regexec.c (build_trtable): Return failure indication upon
36922         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
36923         In glibc, this was fixed for version 2.13:
36924         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
36926 2010-12-28  Bruno Haible  <bruno@clisp.org>
36927             Paul Eggert <eggert@cs.ucla.edu>
36929         linkat: Make implementation robust against system behaviour variations.
36930         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
36931         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
36932         way, and to -2 if it needs a generic runtime test.
36933         * lib/linkat.c (solaris_optimized_link_immediate,
36934         solaris_optimized_link_follow): New functions.
36935         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
36936         (check_same_link): Use it.
36938 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
36940         New module 'unigbrk/base'.
36941         * modules/unigbrk/base: New file.
36942         * lib/unigbrk.in.h: New file.
36944         New module 'unigbrk/uc-gbrk-prop'.
36945         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
36946         * modules/unigbrk/uc-gbrk-prop: New file.
36947         * lib/unigbrk/gbrkprop.h: New file.
36948         * lib/unigbrk/uc-gbrk-prop.c: New file.
36950         New module 'unigbrk/uc-is-grapheme-break'.
36951         * modules/unigbrk/uc-is-grapheme-break: New file.
36952         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
36953         * lib/unigbrk/uc-is-grapheme-break.c: New file.
36954         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
36955         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
36956         * tests/unigbrk/GraphemeBreakTest.txt: New file.
36958         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
36960 2010-12-27  Bruno Haible  <bruno@clisp.org>
36962         linkat test: Avoid failure on Solaris 11 2010-11.
36963         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
36965 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36967         utimens: work around glibc rounding bug on more platforms
36968         * lib/utimens.c (fdutimens): Work around rounding bug even if
36969         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
36970         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
36972 2010-12-27  Bruno Haible  <bruno@clisp.org>
36974         select tests: Improve comments.
36975         * tests/test-select.c (do_select): Add comments.
36977 2010-12-27  Bruno Haible  <bruno@clisp.org>
36979         select tests: Safer way of handling timeout.
36980         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
36981         at every invocation.
36983 2010-12-27  Bruno Haible  <bruno@clisp.org>
36985         select tests: Use 'bool' where appropriate.
36986         * tests/test-select.c (connect_to_socket): Change argument type to
36987         'bool'.
36989 2010-12-27  Bruno Haible  <bruno@clisp.org>
36991         select tests: Use existing modules.
36992         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
36993         (configure.ac): Don't test for unistd.h.
36994         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
36995         declared in <unistd.h>.
36997 2010-12-27  Bruno Haible  <bruno@clisp.org>
36999         mbrtowc: Work around a Solaris 7 bug.
37000         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
37001         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
37002         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
37003         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
37004         MBRTOWC_NULL_ARG1_BUG.
37005         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
37006         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
37007         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
37008         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
37010 2010-12-27  Jim Meyering  <meyering@redhat.com>
37012         read-file.c: tweak syntax
37013         * lib/read-file.c (fread_file): Remove space after "*" in function
37014         definitions.
37016 2010-12-27  Bruno Haible  <bruno@clisp.org>
37018         times test: Avoid gcc warnings on OSF/1.
37019         * tests/test-times.c (main): Cast printf arguments from clock_t to
37020         'long int'.
37022 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37024         utimens: work around glibc rounding bug on older Linux kernels
37025         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
37026         on Linux with a glibc whose utimes might not work, then work
37027         around a longstanding glibc bug involving rounding rather than
37028         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
37029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
37031 2010-12-26  Bruno Haible  <bruno@clisp.org>
37033         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
37034         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
37035         _GL_CXXALIAS_SYS.
37036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37038 2010-12-26  Bruno Haible  <bruno@clisp.org>
37040         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
37041         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
37042         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
37043         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
37044         looking for the declaration.
37045         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
37046         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
37047         problem.
37048         * doc/posix-functions/inet_pton.texi: Likewise.
37050 2010-12-26  Bruno Haible  <bruno@clisp.org>
37052         arpa_inet: Use the common idioms with C++ support.
37053         * lib/arpa_inet.in.h: Include c++defs.h.
37054         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
37055         support.
37056         * modules/arpa_inet (Depends-on): Add c++defs.
37057         (Makefile.am): Substitute the contents of c++defs.h.
37058         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
37059         * modules/arpa_inet-c++-tests: New file.
37060         * tests/test-arpa_inet-c++.cc: New file.
37062 2010-12-25  Bruno Haible  <bruno@clisp.org>
37064         Fix more C++ link errors on Solaris 8.
37065         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
37066         $(LIB_EACCESS).
37067         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
37068         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
37069         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
37070         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
37071         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
37073 2010-12-25  Bruno Haible  <bruno@clisp.org>
37075         printf-posix: Fix link error when a non-GCC compiler is used.
37076         * lib/stdio.in.h (printf): When not using GCC, override printf
37077         correctly.
37078         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37080 2010-12-25  Bruno Haible  <bruno@clisp.org>
37082         strerror_r-posix: Update doc.
37083         * doc/posix-functions/strerror_r.texi: Update doc about the return
37084         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
37086 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37088         utimens: simplify the logic of the previous change
37089         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
37090         This should not affect whether the test succeeds or fails.
37092         utimens: configure better on hosts with NFS clock skew
37093         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
37094         uses the clock of the local host.  It might use the clock of the
37095         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
37096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
37098 2010-12-25  Bruno Haible  <bruno@clisp.org>
37100         ptsname test: Avoid failure on Solaris.
37101         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
37102         open a pseudo-terminal; don't use BSD-style ptys.
37103         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
37105 2010-12-25  Bruno Haible  <bruno@clisp.org>
37107         ptsname: Avoid ERANGE failure on some systems.
37108         * lib/ptsname.c (buffer): Increase size.
37110 2010-12-25  Bruno Haible  <bruno@clisp.org>
37112         rename, renameat: Avoid test failures at NFS mounted locations.
37113         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
37114         so that subsequent mkdir calls succeed.
37116 2010-12-25  Bruno Haible  <bruno@clisp.org>
37118         iswblank: Fix C++ link error on Solaris 8.
37119         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
37120         _GL_FUNCDECL_SYS.
37122 2010-12-25  Bruno Haible  <bruno@clisp.org>
37124         unistd: Fix C++ link error on Solaris 8.
37125         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
37127 2010-12-25  Bruno Haible  <bruno@clisp.org>
37129         readlink doc: Mention an old glibc bug.
37130         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
37132 2010-12-25  Bruno Haible  <bruno@clisp.org>
37134         fcntl-h: Fix for use of C++ on glibc systems.
37135         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
37136         also on glibc systems in C++ mode.
37137         Reported by Gary V. Vaughan <gary@gnu.org>.
37139 2010-12-25  Bruno Haible  <bruno@clisp.org>
37141         roundl-ieee: Make it work on OSF/1 5.1 with cc.
37142         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
37144 2010-12-25  Bruno Haible  <bruno@clisp.org>
37146         truncl-ieee: Make it work on OSF/1 5.1 with cc.
37147         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
37148         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
37149         test whether truncl works according to ISO C 99 with IEC 60559.
37150         * m4/truncl-ieee.m4: New file.
37151         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
37152         m4/signbit.m4.
37153         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
37155 2010-12-25  Bruno Haible  <bruno@clisp.org>
37157         ceill-ieee: Make it work on OSF/1 5.1 with cc.
37158         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
37159         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
37160         test whether ceill works according to ISO C 99 with IEC 60559.
37161         * m4/ceill-ieee.m4: New file.
37162         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
37163         m4/signbit.m4.
37164         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
37166 2010-12-25  Bruno Haible  <bruno@clisp.org>
37168         Ensure all prerequisites of <wchar.h> are included.
37169         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
37170         before <wchar.h>.
37171         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
37172         gl_MBRLEN_NUL_RETVAL): Likewise.
37173         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37174         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
37175         AC_FUNC_MBRTOWC): Likewise.
37176         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37177         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37178         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
37179         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37180         Likewise.
37181         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37182         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
37183         (gl_WCHAR_H): Improve comments.
37184         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
37186 2010-12-25  Bruno Haible  <bruno@clisp.org>
37188         strtok_r: Fix C syntax error in autoconf macro.
37189         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
37190         characters in test program.
37192 2010-12-24  Bruno Haible  <bruno@clisp.org>
37194         ceil, trunc, round: Fix gcc warnings.
37195         * lib/ceil.c (MIN): Undefine before redefining.
37196         * lib/trunc.c (MIN): Likewise.
37197         * lib/round.c (MIN): Likewise.
37198         Include <math.h> first.
37200 2010-12-24  Bruno Haible  <bruno@clisp.org>
37202         select tests: Avoid failures on OSF/1 5.1.
37203         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
37204         failure of closing the last socket; it may fail with ECONNRESET.
37206 2010-12-24  Eric Blake  <eblake@redhat.com>
37208         stdint: avoid HP-UX 10.20 preprocessor bug
37209         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
37210         than #if.
37211         * tests/test-floor2.c (main): Likewise.
37212         Reported by Peter O'Gorman.
37214         pipe: make obsoletion transition easier
37215         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
37216         * modules/pipe (Files): Include revived file.
37217         (Include): Drop reference, to mirror getdate's behavior.
37219 2010-12-24  Bruno Haible  <bruno@clisp.org>
37221         sys_socket: Hide mismatch of declarations on NonStop Kernel.
37222         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
37223         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
37224         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37226 2010-12-24  Bruno Haible  <bruno@clisp.org>
37228         gethostname: Ensure declaration on NonStop Kernel.
37229         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
37230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37232 2010-12-24  Bruno Haible  <bruno@clisp.org>
37234         sys_select: Ensure all necessary types on NonStop Kernel.
37235         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
37236         include <sys/time.h>.
37237         * doc/posix-headers/sys_select.texi: Mention that it's missing on
37238         NonStop Kernel.
37239         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37241 2010-12-24  Bruno Haible  <bruno@clisp.org>
37243         sys_select: Remove unneeded include.
37244         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
37245         have <sys/select.h>.
37247 2010-12-24  Bruno Haible  <bruno@clisp.org>
37249         gethostname: Provide a fallback for HOST_NAME_MAX.
37250         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
37251         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
37252         instead.
37253         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37255 2010-12-24  Bruno Haible  <bruno@clisp.org>
37257         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
37258         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
37259         (SA_RESTART): Likewise.
37260         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37262 2010-12-24  Bruno Haible  <bruno@clisp.org>
37264         signal: Define NSIG.
37265         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
37266         * tests/test-signal.c (nsig): New variable.
37267         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37269 2010-12-24  Bruno Haible  <bruno@clisp.org>
37271         rename, renameat: Avoid test failures on OSF/1 5.1.
37272         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
37273         alternative error codes.
37274         * tests/test-renameat.c (main): Likewise.
37276 2010-12-24  Bruno Haible  <bruno@clisp.org>
37278         *printf: Detect large precisions bug on Solaris 10/SPARC.
37279         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
37280         by Paul Eggert.
37281         * tests/test-snprintf-posix.h (test_function): Add this test code here
37282         too.
37283         * tests/test-sprintf-posix.h (test_function): Likewise.
37284         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37285         * tests/test-vasprintf-posix.c (test_function): Likewise.
37286         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
37287         around by gnulib.
37288         * doc/posix-functions/printf.texi: Likewise.
37289         * doc/posix-functions/snprintf.texi: Likewise.
37290         * doc/posix-functions/sprintf.texi: Likewise.
37291         * doc/posix-functions/vfprintf.texi: Likewise.
37292         * doc/posix-functions/vprintf.texi: Likewise.
37293         * doc/posix-functions/vsnprintf.texi: Likewise.
37294         * doc/posix-functions/vsprintf.texi: Likewise.
37295         * doc/posix-functions/dprintf.texi: Undo last commit.
37296         * doc/posix-functions/vdprintf.texi: Likewise.
37298 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37300         tests: port test-fdutimensat.c to Solaris 8
37301         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
37302         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
37303         On Solaris 8, it fails with errno == ENOSYS, because there is no
37304         futimens (so it can't use the fd), and there is no lutimens (so it
37305         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
37307         vsnprintf: make more consistent with snprintf; doc fixes
37309         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
37310         the byte count return problem was promoted from the snprintf-posix
37311         to the snprintf module.
37312         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37313         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
37314         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
37315         * tests/test-snprintf.c (main): Check the byte count returned.
37316         * tests/test-vsnprintf.c (main): Likewise.
37318 2010-12-23  Eric Blake  <eblake@redhat.com>
37320         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
37321         * modules/sigpipe (License): Relax license.
37323 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37325         doc: document Solaris printf bug with large float precisions
37326         * doc/posix-functions/dprintf.texi (dprintf):
37327         * doc/posix-functions/fprintf.texi (fprintf):
37328         * doc/posix-functions/printf.texi (printf):
37329         * doc/posix-functions/snprintf.texi (snprintf):
37330         * doc/posix-functions/sprintf.texi (sprintf):
37331         * doc/posix-functions/vdprintf.texi (vdprintf):
37332         * doc/posix-functions/vfprintf.texi (vfprintf):
37333         * doc/posix-functions/vprintf.texi (vprintf):
37334         * doc/posix-functions/vsnprintf.texi (vsnprintf):
37335         * doc/posix-functions/vsprintf.texi (vsprintf):
37336         Mention that these functions mishandle large floating point
37337         precisions on Solaris 10.  The same bug is also present in Solaris
37338         8, and I assume earlier.  This causes "cd gnulib-tests; make
37339         check" to fail on Solaris 8 (and I assume, later) when building
37340         the latest coreutils, in test-vasprintf-posix's call to
37341         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
37342         the wide flavors (e.g., wprintf) so this patch just updates the
37343         documentation for the narrow ones.
37345         test-posixtm.c: add two tests
37346         * tests/test-posixtm.c: Add two tests, to highlight the
37347         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
37348         around this bug; this is merely to document it.
37350 2010-12-22  Bruno Haible  <bruno@clisp.org>
37352         getlogin_r: Work around portability problem on OSF/1.
37353         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
37354         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
37355         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
37356         test for a truncated result.
37357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
37358         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
37359         * modules/getlogin_r (Depends-on): Add memchr.
37360         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
37362 2010-12-22  Bruno Haible  <bruno@clisp.org>
37364         ptsname: Avoid test failure on OSF/1 5.1.
37365         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
37366         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
37367         (same_slave): New function.
37368         (main): Use it to compare ptsname's result with the expected file name.
37370 2010-12-22  Bruno Haible  <bruno@clisp.org>
37372         Port extended stdio modules to HP NonStop Kernel.
37373         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
37374         macros.
37375         * lib/fbufmode.c: Update comments.
37376         * lib/fflush.c: Likewise.
37377         * lib/fpurge.c: Likewise.
37378         * lib/freadable.c: Likewise.
37379         * lib/freadahead.c: Likewise.
37380         * lib/freading.c: Likewise.
37381         * lib/freadptr.c: Likewise.
37382         * lib/freadseek.c: Likewise.
37383         * lib/fseeko.c: Likewise.
37384         * lib/fseterr.c: Likewise.
37385         * lib/fwritable.c: Likewise.
37386         * lib/fwriting.c: Likewise.
37387         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37389 2010-12-22  Bruno Haible  <bruno@clisp.org>
37391         ttyname_r: Work around bug on OSF/1 5.1.
37392         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
37393         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
37394         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
37395         present.
37396         * lib/ttyname_r.c (ttyname_r): Update comments.
37398 2010-12-22  Bruno Haible  <bruno@clisp.org>
37400         round: Implement result sign according to IEEE 754.
37401         * lib/round.c (MIN, MINUS_ZERO): New macros.
37402         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
37403         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
37404         * tests/test-round-ieee.c (main): Likewise.
37405         * tests/test-roundl-ieee.c (main): Likewise.
37407         trunc: Implement result sign according to IEEE 754.
37408         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
37409         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
37410         * tests/test-trunc2.c: Include minus-zero.h.
37411         (MINUS_ZERO): New macro.
37412         (trunc_reference): Keep in sync with lib/trunc.c.
37413         * tests/test-truncf2.c: Include minus-zero.h.
37414         (MINUS_ZERO): New macro.
37415         (truncf_reference): Keep in sync with lib/trunc.c.
37416         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
37417         * tests/test-trunc-ieee.c (main): Likewise.
37418         * tests/test-truncl-ieee.c (main): Likewise.
37420         ceil: Implement result sign according to IEEE 754.
37421         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
37422         (FUNC): Return -0.0 for -1 < x < 0.
37423         * tests/test-ceil2.c: Include minus-zero.h.
37424         (MINUS_ZERO): New macro.
37425         (ceil_reference): Keep in sync with lib/ceil.c.
37426         * tests/test-ceilf2.c: Include minus-zero.h.
37427         (MINUS_ZERO): New macro.
37428         (ceilf_reference): Keep in sync with lib/ceil.c.
37429         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
37430         * tests/test-ceil-ieee.c (main): Likewise.
37431         * tests/test-ceill-ieee.c (main): Likewise.
37433         floor: Implement result sign according to IEEE 754.
37434         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
37435         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
37436         * tests/test-floorf2.c (floorf_reference): Likewise.
37437         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
37438         * tests/test-floor-ieee.c (main): Likewise.
37439         * tests/test-floorl-ieee.c (main): Likewise.
37441 2010-12-22  Bruno Haible  <bruno@clisp.org>
37443         getaddrinfo: Update doc.
37444         * doc/posix-functions/gai_strerror.texi: Return type is also different
37445         on AIX and HP-UX.
37447 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37449         getaddrinfo, inet_ntop: Update doc for Solaris.
37450         * doc/posix-functions/gai_strerror.texi: Return type is also an
37451         issue on Solaris 9 and earlier.
37452         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
37453         on Solaris 10 and earlier.
37455 2010-12-21  Bruno Haible  <bruno@clisp.org>
37457         New module 'roundl-ieee'.
37458         * modules/roundl-ieee: New file.
37459         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
37460         test whether roundl works according to ISO C 99 with IEC 60559.
37461         * m4/roundl-ieee.m4: New file.
37462         * modules/roundl-ieee-tests: New file.
37463         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
37464         * tests/test-roundl.c (main): Remove signbit tests.
37465         * modules/roundl-tests (Depends-on): Remove signbit.
37466         * doc/posix-functions/roundl.texi: Mention the new module.
37468 2010-12-21  Bruno Haible  <bruno@clisp.org>
37470         New module 'truncl-ieee'.
37471         * modules/truncl-ieee: New file.
37472         * modules/truncl-ieee-tests: New file.
37473         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
37474         * tests/test-truncl.c (main): Remove signbit tests.
37475         * modules/truncl-tests (Depends-on): Remove signbit.
37476         * doc/posix-functions/truncl.texi: Mention the new module.
37478 2010-12-21  Bruno Haible  <bruno@clisp.org>
37480         New module 'ceill-ieee'.
37481         * modules/ceill-ieee: New file.
37482         * modules/ceill-ieee-tests: New file.
37483         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
37484         * tests/test-ceill.c (main): Remove signbit tests.
37485         * modules/ceill-tests (Depends-on): Remove signbit.
37486         * doc/posix-functions/ceill.texi: Mention the new module.
37488 2010-12-21  Bruno Haible  <bruno@clisp.org>
37490         New module 'floorl-ieee'.
37491         * modules/floorl-ieee: New file.
37492         * modules/floorl-ieee-tests: New file.
37493         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
37494         * tests/test-floorl.c (main): Remove signbit tests.
37495         * modules/floorl-tests (Depends-on): Remove signbit.
37496         * doc/posix-functions/floorl.texi: Mention the new module.
37498 2010-12-21  Bruno Haible  <bruno@clisp.org>
37500         New module 'round-ieee'.
37501         * modules/round-ieee: New file.
37502         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
37503         whether round works according to ISO C 99 with IEC 60559.
37504         * m4/round-ieee.m4: New file.
37505         * modules/round-ieee-tests: New file.
37506         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
37507         * tests/test-round1.c (main): Remove signbit tests.
37508         * modules/round-tests (Depends-on): Remove 'signbit'.
37509         * doc/posix-functions/round.texi: Mention the new module.
37511 2010-12-21  Bruno Haible  <bruno@clisp.org>
37513         New module 'trunc-ieee'.
37514         * modules/trunc-ieee: New file.
37515         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
37516         whether trunc works according to ISO C 99 with IEC 60559.
37517         * m4/trunc-ieee.m4: New file.
37518         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
37519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
37520         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
37521         * modules/trunc-ieee-tests: New file.
37522         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
37523         * tests/test-trunc1.c (main): Remove signbit tests.
37524         * modules/trunc-tests (Depends-on): Remove 'signbit'.
37525         * doc/posix-functions/trunc.texi: Mention the new module.
37527 2010-12-21  Bruno Haible  <bruno@clisp.org>
37529         New module 'ceil-ieee'.
37530         * modules/ceil-ieee: New file.
37531         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
37532         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
37533         ISO C 99 with IEC 60559.
37534         * m4/ceil-ieee.m4: New file.
37535         * modules/ceil (Files): Add lib/ceil.c.
37536         (Depends-on): Add 'float'.
37537         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37538         * lib/math.in.h (ceil): New declaration.
37539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
37540         REPLACE_CEIL.
37541         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
37542         * modules/ceil-ieee-tests: New file.
37543         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
37544         * tests/test-math-c++.cc: Check the signature of 'ceil'.
37545         * doc/posix-functions/ceil.texi: Mention the new module.
37547 2010-12-21  Bruno Haible  <bruno@clisp.org>
37549         New module 'floor-ieee'.
37550         * modules/floor-ieee: New file.
37551         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
37552         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
37553         ISO C 99 with IEC 60559.
37554         * m4/floor-ieee.m4: New file.
37555         * modules/floor (Files): Add lib/floor.c.
37556         (Depends-on): Add 'float'.
37557         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37558         * lib/math.in.h (floor): New declaration.
37559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
37560         REPLACE_FLOOR.
37561         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
37562         * modules/floor-ieee-tests: New file.
37563         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
37564         * tests/test-math-c++.cc: Check the signature of 'floor'.
37565         * doc/posix-functions/floor.texi: Mention the new module.
37567 2010-12-21  Bruno Haible  <bruno@clisp.org>
37569         New module 'roundf-ieee'.
37570         * modules/roundf-ieee: New file.
37571         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
37572         test whether roundf works according to ISO C 99 with IEC 60559.
37573         * m4/roundf-ieee.m4: New file.
37574         * modules/roundf-ieee-tests: New file.
37575         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
37576         * tests/test-roundf1.c (main): Remove signbit tests.
37577         * modules/roundf-tests (Depends-on): Remove 'signbit'.
37578         * doc/posix-functions/roundf.texi: Mention the new module.
37580 2010-12-21  Bruno Haible  <bruno@clisp.org>
37582         New module 'truncf-ieee'.
37583         * modules/truncf-ieee: New file.
37584         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
37585         test whether truncf works according to ISO C 99 with IEC 60559.
37586         * m4/truncf-ieee.m4: New file.
37587         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
37588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
37589         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
37590         * modules/truncf-ieee-tests: New file.
37591         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
37592         * tests/test-truncf1.c (main): Remove signbit tests.
37593         * modules/truncf-tests (Depends-on): Remove 'signbit'.
37594         * doc/posix-functions/truncf.texi: Mention the new module.
37596 2010-12-21  Bruno Haible  <bruno@clisp.org>
37598         New module 'ceilf-ieee'.
37599         * modules/ceilf-ieee: New file.
37600         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
37601         test whether ceilf works according to ISO C 99 with IEC 60559.
37602         * m4/ceilf-ieee.m4: New file.
37603         * modules/ceilf-ieee-tests: New file.
37604         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
37605         * tests/test-ceilf1.c (main): Remove signbit tests.
37606         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
37607         * doc/posix-functions/ceilf.texi: Mention the new module.
37609 2010-12-21  Bruno Haible  <bruno@clisp.org>
37611         New module 'floorf-ieee'.
37612         * modules/floorf-ieee: New file.
37613         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
37614         test whether floorf works according to ISO C 99 with IEC 60559.
37615         * m4/floorf-ieee.m4: New file.
37616         * modules/floorf-ieee-tests: New file.
37617         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
37618         * tests/test-floorf1.c (main): Remove signbit tests.
37619         * modules/floorf-tests (Depends-on): Remove 'signbit'.
37620         * doc/posix-functions/floorf.texi: Mention the new module.
37622 2010-12-21  Bruno Haible  <bruno@clisp.org>
37624         Support for minus zero in autoconf macros.
37625         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
37626         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
37627         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
37628         * tests/minus-zero.h: Update comments.
37630 2010-12-21  Bruno Haible  <bruno@clisp.org>
37632         Tests for module 'ceil'.
37633         * modules/ceil-tests: New file.
37634         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
37635         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
37637 2010-12-21  Bruno Haible  <bruno@clisp.org>
37639         Tests for module 'floor'.
37640         * modules/floor-tests: New file.
37641         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
37642         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
37644 2010-12-21  Bruno Haible  <bruno@clisp.org>
37646         math: Fix indentation.
37647         * lib/math.in.h (floorf): Fix indentation.
37649 2010-12-21  Bruno Haible  <bruno@clisp.org>
37651         Fix cross-compilation guesses on Solaris.
37652         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
37653         not match "solaris2.10".
37654         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
37655         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
37656         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
37658 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37660         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
37661         This fixes a problem observed with the latest coreutils snapshot
37662         that caused a test to fail on Solaris 8.  src/csplit.c's call
37663         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
37664         earlier, instead of returning the number of bytes that would have
37665         been generated; this causes csplit to incorrectly report memory
37666         exhaustion.
37667         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
37668         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
37669         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
37670         comments to match.
37671         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
37672         Fix typo in matching older versions of Solaris: "solaris2.10"
37673         is matched by the shell pattern "solaris2.[0-9]*".  This matters
37674         only for guessing while cross-compiling.
37675         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
37677 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
37679         ftoastr: fix comment again
37680         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
37681         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
37682         Also, simplify example a bit by using flags = 0.
37684 2010-12-20  Bruno Haible  <bruno@clisp.org>
37686         round*, trunc*: Update documentation regarding glibc.
37687         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
37688         * doc/posix-functions/round.texi: Likewise.
37689         * doc/posix-functions/roundl.texi: Likewise.
37690         * doc/posix-functions/truncf.texi: Likewise.
37691         * doc/posix-functions/trunc.texi: Likewise.
37692         * doc/posix-functions/truncl.texi: Likewise.
37694 2010-12-20  Bruno Haible  <bruno@clisp.org>
37696         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
37697         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
37698         * doc/posix-functions/round.texi: Likewise.
37699         * doc/posix-functions/roundl.texi: Likewise.
37701 2010-12-20  Bruno Haible  <bruno@clisp.org>
37703         ttyname_r: Add missing declaration on HP-UX 11.
37704         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
37705         HAVE_TTYNAME_R.
37706         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
37707         declared. Set HAVE_TTYNAME_R always.
37708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37709         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
37710         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
37711         HAVE_TTYNAME_R.
37712         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
37714 2010-12-20  Bruno Haible  <bruno@clisp.org>
37716         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
37717         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
37718         * doc/posix-functions/getlogin_r.texi: Likewise.
37719         * tests/test-getlogin.c: Include <errno.h>.
37720         (main): Avoid test failure on HP-UX 11.11.
37721         * tests/test-getlogin_r.c (main): Likewise.
37723 2010-12-20  Bruno Haible  <bruno@clisp.org>
37725         getlogin_r: Add missing declaration on HP-UX 11.
37726         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
37727         declared also when it exists as a function.
37728         * doc/posix-functions/getlogin_r.texi: Document this workaround.
37730 2010-12-20  Bruno Haible  <bruno@clisp.org>
37732         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
37733         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
37734         through wcrtomb.
37736 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
37738         ftoastr: fix comment
37739         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
37740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
37742 2010-12-19  Bruno Haible  <bruno@clisp.org>
37744         isnan: Ensure it is a macro.
37745         * lib/math.in.h (isnan): Define as a macro if not already a macro.
37746         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
37747         Solaris.
37749 2010-12-19  Bruno Haible  <bruno@clisp.org>
37751         ldexpl test: Fix link error on OSF/1 5.1.
37752         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
37754 2010-12-19  Bruno Haible  <bruno@clisp.org>
37756         wctype: Make it work in C++ mode on OSF/1 5.1.
37757         * lib/wctype.in.h (iswblank): Declare but not define here.
37758         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
37759         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
37760         * modules/wctype (Files): Add lib/iswblank.c.
37762 2010-12-19  Bruno Haible  <bruno@clisp.org>
37764         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
37765         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
37766         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
37768 2010-12-19  Bruno Haible  <bruno@clisp.org>
37770         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
37771         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
37772         _POSIX_PII_SOCKET.
37773         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
37774         * doc/posix-functions/recvfrom.texi: Likewise.
37775         * doc/posix-functions/send.texi: Likewise.
37776         * doc/posix-functions/sendto.texi: Likewise.
37778 2010-12-19  Bruno Haible  <bruno@clisp.org>
37780         tcgetsid: Add missing declaration on OSF/1 5.1.
37781         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
37782         HAVE_TCGETSID.
37783         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
37784         Don't set HAVE_TCGETSID.
37785         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
37786         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
37787         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
37788         HAVE_TCGETSID.
37789         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
37791 2010-12-19  Bruno Haible  <bruno@clisp.org>
37793         stdio: Fix problem with popen() declaration on OSF/1 5.1.
37794         * lib/stdio.in.h: During the include_next statement, let recursive
37795         includes of this file include only the system header file.
37797 2010-12-19  Bruno Haible  <bruno@clisp.org>
37799         iconv_open: Fix regression from 2010-12-04.
37800         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
37801         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
37803 2010-12-19  Bruno Haible  <bruno@clisp.org>
37805         stdbool test: Avoid a gcc warning.
37806         * tests/test-stdbool.c (main): Fail if e1 is false.
37807         Reported by Jim Meyering.
37809 2010-12-19  Jim Meyering  <meyering@redhat.com>
37811         setenv: restore to working order
37812         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
37813         mistakenly removed.
37814         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
37815         HAVE_SETENV.
37816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
37817         HAVE_SETENV.
37819 2010-12-19  Bruno Haible  <bruno@clisp.org>
37821         Document some different function declarations on OSF/1 5.1.
37822         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
37823         * doc/posix-functions/inet_ntop.texi: Likewise.
37824         * doc/posix-functions/gethostname.texi: Likewise.
37825         * lib/unistd.in.h (gethostname): Update comment.
37827 2010-12-19  Bruno Haible  <bruno@clisp.org>
37829         doc: Mention vasprintf-posix module.
37830         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
37831         the 'vasprintf-posix' module.
37832         * doc/glibc-functions/vasprintf.texi: Likewise.
37834 2010-12-19  Bruno Haible  <bruno@clisp.org>
37836         unsetenv: Add missing declaration on OSF/1 5.1.
37837         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
37838         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
37839         Don't set HAVE_UNSETENV. In the test program, set _BSD.
37840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
37841         not HAVE_UNSETENV.
37842         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
37843         HAVE_UNSETENV.
37844         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
37846 2010-12-19  Bruno Haible  <bruno@clisp.org>
37848         setenv: Add missing declaration on OSF/1 5.1.
37849         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
37850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
37851         declared. Don't set HAVE_SETENV.
37852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
37853         not HAVE_SETENV.
37854         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
37855         HAVE_SETENV.
37856         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
37858 2010-12-19  Bruno Haible  <bruno@clisp.org>
37860         nl_langinfo tests: Avoid gcc warning.
37861         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
37863 2010-12-19  Bruno Haible  <bruno@clisp.org>
37865         mknod: Avoid error in C++ mode on OSF/1 with GCC.
37866         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
37867         _GL_CXXALIAS_SYS.
37869 2010-12-19  Bruno Haible  <bruno@clisp.org>
37871         stdbool: Relax test.
37872         * tests/test-stdbool.c (e): Don't require that casts from a variable's
37873         address to 'bool' work in static initializer, for compilers other than
37874         GCC.
37876 2010-12-19  Bruno Haible  <bruno@clisp.org>
37878         ftello: Add missing declaration on OSF/1 5.1.
37879         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
37880         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
37881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
37882         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
37883         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
37885 2010-12-19  Bruno Haible  <bruno@clisp.org>
37887         fseeko: Add missing declaration on OSF/1 5.1.
37888         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
37889         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
37890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
37891         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
37892         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
37894 2010-12-19  Bruno Haible  <bruno@clisp.org>
37896         fchdir: Add missing declaration on OSF/1 5.1.
37897         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
37898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
37899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
37900         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
37901         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
37903 2010-12-19  Bruno Haible  <bruno@clisp.org>
37905         relocatable-prog-wrapper: Separate from relocatable-prog.
37906         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
37907         uninstall-relocwrapper rule here.
37908         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
37909         Reported by Ian Beckwith <ianb@erislabs.net>.
37911 2010-12-19  Bruno Haible  <bruno@clisp.org>
37913         unistr/u8-mbsnlen: Add missing dependency.
37914         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
37915         Reported by Ian Beckwith <ianb@erislabs.net>.
37917 2010-12-19  Bruno Haible  <bruno@clisp.org>
37919         iconv: Make it possible again to use this module without 'iconv-h'.
37920         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
37921         if it is not defined.
37922         Reported by Ian Beckwith <ianb@erislabs.net>.
37924 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37926         acl: port to Solaris 8 when copying from tmpfs to ufs
37927         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
37928         error number.  Problem observed on Solaris 8 with latest
37929         coreutils, with "mv A B", where A is on a tmpfs file system and B
37930         is on a ufs file system.  This caused coreutils' mv/part-symlink
37931         test to fail.
37933         tests: set fail=0 at start
37934         * tests/init.sh (setup_): Move fail=0 initialization here ...
37935         (mktempd_): ... from here, so that tests can rely on fail being
37936         set to 0 initially.  This fixes a problem in coreutils; see:
37937         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
37939 2010-12-18  Bruno Haible  <bruno@clisp.org>
37941         memmem-simple: Stylistic changes.
37942         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
37943         Fix preprocessor directive indentation.
37945 2010-12-15  Pádraig Brady <P@draigBrady.com>
37947         memmem, memmem-simple: reorganize and expand empty needle check
37948         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
37949         functional checks to memmem-simple so that one has a fully functional
37950         memmem by using just this module.
37951         Restrict the performance only check to the memmem module.
37952         Also expand the empty needle check to ensure the correct
37953         pointer is returned, not just a non NULL pointer.
37954         * doc/glibc-functions/memmem.texi: Rearrange the portability
37955         documentation to correlate with the rearranged checks.
37956         Clarify exactly how the memmem and memmem-simple modules
37957         relate to each other.
37959 2010-12-15  Pádraig Brady <P@draigBrady.com>
37960             Bruno Haible  <bruno@clisp.org>
37962         Improve cross-compilation guesses for uClibc.
37963         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
37964         that uClibc does not have the glibc bug.
37965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
37966         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
37968 2010-12-14  Eric Blake  <eblake@redhat.com>
37970         configmake: provide fallbacks for oldest supported autotools
37971         * m4/configmake.m4: New file.
37972         * modules/configmake (Files): Ship it.
37973         (configure.ac): Use it to guarantee fallbacks.
37975 2010-12-13  Pádraig Brady <P@draigBrady.com>
37977         read-file: Improve handling of large files
37978         * lib/read-file.c (fread_file): Minimize realloc()s
37979         for regular files, and better manage sizes around SIZE_MAX.
37981 2010-12-13  Eric Blake  <eblake@redhat.com>
37983         cloexec, fcntl: relax license
37984         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
37985         consent from all contributors.
37986         * modules/fcntl (License): Likewise.
37988 2010-12-10  Bruno Haible  <bruno@clisp.org>
37990         Tests for module 'pipe-posix'.
37991         * modules/pipe-posix-tests: New file.
37992         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
37994 2010-12-10  Bruno Haible  <bruno@clisp.org>
37996         pipe-posix: Make it work in C++ mode.
37997         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
37998         (pipe): Use common idiom, not a macro definition.
37999         * lib/pipe.c: New file.
38000         * m4/pipe.m4: New file.
38001         * modules/pipe-posix (Description): Enhance.
38002         (Files): Add lib/pipe.c, m4/pipe.m4.
38003         (configure.ac): Invoke gl_FUNC_PIPE.
38004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
38005         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
38006         * tests/test-unistd-c++.cc: Check the signature of pipe.
38008 2010-12-10  Bruno Haible  <bruno@clisp.org>
38010         Rename module 'pipe' to 'spawn-pipe'.
38011         * modules/spawn-pipe: New file, renamed from modules/pipe.
38012         (Files, configure.ac, Makefile.am): Update.
38013         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
38014         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
38015         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
38016         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
38017         "spawn-pipe.h" instead of "pipe.h".
38018         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
38019         to gl_SPAWN_PIPE.
38020         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
38021         (Files, Makefile.am): Update.
38022         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
38023         Update.
38024         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
38025         Include "spawn-pipe.h" instead of "pipe.h".
38026         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
38027         * lib/javacomp.c: Likewise.
38028         * lib/javaversion.c: Likewise.
38029         * lib/pipe-filter-gi.c: Likewise.
38030         * lib/pipe-filter-ii.c: Likewise.
38031         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
38032         * modules/javacomp (Depends-on): Likewise.
38033         * modules/javaversion (Depends-on): Likewise.
38034         * modules/pipe-filter-gi (Depends-on): Likewise.
38035         * modules/pipe-filter-ii (Depends-on): Likewise.
38036         * MODULES.html.sh (Executing programs): Update.
38037         * NEWS: Mention the change.
38039 2010-12-10  Eric Blake  <eblake@redhat.com>
38041         pipe-posix: new module
38042         * modules/pipe-posix: New file.
38043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
38044         (gl_UNISTD_H): Check for declaration.
38045         * modules/unistd (Makefile.am): Substitute it.
38046         * lib/unistd.in.h (pipe): Provide it for mingw.
38047         * doc/posix-functions/pipe.texi (pipe): Update documentation.
38048         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
38050 2010-12-07  Bruno Haible  <bruno@clisp.org>
38052         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
38053         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
38054         u8_strcmp_gnu.
38055         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
38057 2010-12-06  Bruno Haible  <bruno@clisp.org>
38059         Update internal documentation.
38060         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
38062 2010-12-04  Bruno Haible  <bruno@clisp.org>
38064         Put more information about failed tests into the test return codes.
38065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
38066         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
38067         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
38068         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38069         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
38070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38071         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38072         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38073         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
38074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
38076         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38077         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
38078         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38079         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
38080         returns a bit mask.
38081         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
38082         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
38083         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
38084         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
38085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
38087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38089         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
38090         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
38091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38092         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
38093         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38094         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
38095         * m4/link.m4 (gl_FUNC_LINK): Likewise.
38096         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
38097         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
38098         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
38099         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38100         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
38101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38102         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38103         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
38104         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38105         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
38106         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38107         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
38108         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
38109         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
38110         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
38111         gl_PRINTF_PRECISION): Likewise.
38112         * m4/regex.m4 (gl_REGEX): Likewise.
38113         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38114         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
38115         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
38116         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
38120         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
38121         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38122         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
38123         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
38124         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38125         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
38126         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38127         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38128         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38129         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
38130         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
38131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38132         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
38133         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
38134         enumerated value.
38135         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
38137 2010-12-04  Bruno Haible  <bruno@clisp.org>
38139         Update for Solaris 11 2010-11.
38140         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
38141         Express, released in November 2010.
38143 2010-12-04  Bruno Haible  <bruno@clisp.org>
38145         nproc: Relax license.
38146         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
38147         and Paul Eggert.
38148         Requested by Ludovic Courtès <ludo@gnu.org>.
38150 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
38152         utimecmp: fine-grained src to nearby coarse-grained dest
38154         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
38155         and the source is on a file system with higher-resolution time
38156         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
38157         not work, and the time stamps are close together, the algorithm to
38158         determine the exact resolution from the read-back mtime was buggy:
38159         it had a "!=" where it should have had an "==".  This bug has been
38160         in the code ever since it was introduced to gnulib.
38161         Problem reported by Dan Jacobson in
38162         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
38164 2010-11-30  Bruno Haible  <bruno@clisp.org>
38166         strerror_r-posix: Fix autoconf test.
38167         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
38169 2010-11-28  Bruno Haible  <bruno@clisp.org>
38170             Paul Eggert  <eggert@cs.ucla.edu>
38172         Tests for module 'getdomainname'.
38173         * modules/getdomainname-tests: New file.
38174         * tests/test-getdomainname.c: New file, based on
38175         tests/test-gethostname.c.
38177 2010-11-28  Bruno Haible  <bruno@clisp.org>
38178             Paul Eggert  <eggert@cs.ucla.edu>
38180         getdomainname: Use the system function when possible.
38181         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
38182         (getdomainname): Replace if needed. Provide the declaration if it is
38183         missing. Don't use _GL_CXXALIAS_SYS_CAST.
38184         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
38185         (getdomainname): When the system has getdomainname, call the system
38186         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
38187         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38188         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
38189         found in libnsl. Look for the declaration also in <netdb.h>. Replace
38190         the function if its second argument is of type 'int' or if it is found
38191         in libnsl.
38192         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
38193         <sys/systeminfo.h> and sysinfo().
38194         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
38195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38196         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
38197         HAVE_GETDOMAINNAME.
38198         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
38199         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
38200         * doc/glibc-functions/getdomainname.texi: Document the problems with
38201         the getdomainname declaration.
38203 2010-11-28  Bruno Haible  <bruno@clisp.org>
38205         sys_socket: Ensure ss_family field on AIX.
38206         * lib/sys_socket.in.h (ss_family): New macro definition.
38207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
38208         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
38209         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38210         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
38211         * modules/sys_socket (Makefile.am): Substitute
38212         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
38213         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
38215 2010-11-27  Bruno Haible  <bruno@clisp.org>
38217         readline: Improve configure output.
38218         * m4/readline.m4 (gl_FUNC_READLINE): Make the
38219         "checking for readline..." result understandable.
38221 2010-11-27  Bruno Haible  <bruno@clisp.org>
38223         *printf-posix: Detect a bug on Solaris 10/x86.
38224         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
38225         for floating-point output.
38226         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
38227         directive.
38228         * tests/test-snprintf-posix.h (test_function): Likewise.
38229         * tests/test-sprintf-posix.h (test_function): Likewise.
38230         * tests/test-vasprintf-posix.c (test_function): Likewise.
38231         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
38232         * doc/posix-functions/printf.texi: Likewise.
38233         * doc/posix-functions/snprintf.texi: Likewise.
38234         * doc/posix-functions/sprintf.texi: Likewise.
38235         * doc/posix-functions/vfprintf.texi: Likewise.
38236         * doc/posix-functions/vprintf.texi: Likewise.
38237         * doc/posix-functions/vsnprintf.texi: Likewise.
38238         * doc/posix-functions/vsprintf.texi: Likewise.
38239         * doc/glibc-functions/obstack_printf.texi: Likewise.
38240         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38242 2010-11-27  Bruno Haible  <bruno@clisp.org>
38244         Fix link error when module libunistring-optional is in use.
38245         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
38246         * modules/striconveha-tests (Makefile.am): Likewise.
38248 2010-11-27  Bruno Haible  <bruno@clisp.org>
38250         regex: Mention link dependencies.
38251         * modules/regex (Link): New section.
38252         * modules/rpmatch (Link): Likewise.
38253         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
38255 2010-11-27  Bruno Haible  <bruno@clisp.org>
38257         ftoastr: Fix compilation error on Solaris.
38258         * lib/ftoastr.c: Include <config.h>.
38260 2010-11-27  Bruno Haible  <bruno@clisp.org>
38262         getloadavg: Update documentation.
38263         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
38265 2010-11-27  Bruno Haible  <bruno@clisp.org>
38267         sys_socket: Fix test whether the functions are declared.
38268         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
38269         not <sys/select.h>.
38271 2010-11-27  Bruno Haible  <bruno@clisp.org>
38273         getpass: Make sure to get system declaration on some platforms.
38274         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
38275         gl_USE_SYSTEM_EXTENSIONS.
38276         * modules/getpass (Depends-on): Add extensions.
38278 2010-11-26  Bruno Haible  <bruno@clisp.org>
38280         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
38281         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
38282         'iconv' module is present.
38283         (ICONV_CONST): New macro.
38284         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
38285         ICONV_CONST.
38286         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
38287         set ICONV_CONST.
38288         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
38289         here.
38290         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
38291         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
38292         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
38293         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
38294         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
38295         present.
38297 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
38299         ftoastr: comment fix
38300         * lib/ftoastr.c: "little" -> "little or no" in comment
38302 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
38304         stdint: port to GCC 4.3 + OSX + Octave
38305         On this platform, stdint.h is buggy and defines int64_t to long
38306         long int.  The replacement defined it to long int, causing
38307         problems with C++ style name mangling.  Instead, trust the system
38308         definition if INT64_MAX is defined, and likewise for the unsigned
38309         variant.   Problem reported by Jarno Rajahalme in
38310         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
38311         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
38312         and don't mess with int64_t and INT64_MAX in this case.
38313         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
38315 2010-11-24  Bruno Haible  <bruno@clisp.org>
38317         doc: Corrections regarding MacOS X 10.4 and 10.5.
38318         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
38319         MacOS X.
38320         Reported by Simon Josefsson.
38322 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
38324         Uninstall ".bin" files installed by relocwrapper.
38325         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
38326         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
38327         unless it is already there.
38329 2010-11-21  Bruno Haible  <bruno@clisp.org>
38331         Update for NetBSD 5.0.
38332         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
38333         NetBSD; the test fails on NetBSD 5.0.
38334         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
38335         about NetBSD.
38337 2010-11-21  Bruno Haible  <bruno@clisp.org>
38339         Update for HP-UX 11.23 and HP-UX 11.31.
38340         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
38341         HP-UX.
38343 2010-11-21  Bruno Haible  <bruno@clisp.org>
38345         Update for MacOS X 10.5.
38346         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
38347         MacOS X; the test fails on MacOS X 10.5.8.
38348         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
38349         about MacOS X.
38351 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
38353         bootstrap: add bootstrap_sync option.
38354         See discussion at
38355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
38356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
38357         * build-aux/bootstrap: Accept --bootstrap-sync to update
38358         bootstrap if it is not identical to the local gnulib's
38359         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
38360         enable this by default.  Accept --no-bootstrap-sync to disable
38361         it.
38363 2010-11-20  Bruno Haible  <bruno@clisp.org>
38365         Ensure that <features.h> is included before __GLIBC__ is tested.
38366         * lib/printf-parse.h: Include <features.h>.
38367         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
38368         Reported by Mike Frysinger <vapier@gentoo.org>.
38370         Ensure that <features.h> is included before __GLIBC__ is tested.
38371         * lib/wchar.in.h: Include <features.h>.
38372         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
38373         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
38374         Reported by Mike Frysinger <vapier@gentoo.org>.
38376         Ensure that <features.h> is included before __GLIBC__ is tested.
38377         * lib/arpa_inet.in.h: Include <features.h>.
38378         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
38379         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
38380         Reported by Mike Frysinger <vapier@gentoo.org>.
38382         Ensure that <features.h> is included before __GLIBC__ is tested.
38383         * build-aux/link-warning.h: Include <features.h>.
38384         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
38385         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
38386         Reported by Mike Frysinger <vapier@gentoo.org>.
38388         Ensure that <features.h> is included before __GLIBC__ is tested.
38389         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
38390         Reported by Mike Frysinger <vapier@gentoo.org>.
38392 2010-11-20  Bruno Haible  <bruno@clisp.org>
38394         memmem: Fix autoconf test.
38395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
38397 2010-11-20  Bruno Haible  <bruno@clisp.org>
38399         Port to uClibc.
38400         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
38401         * lib/fcntl.in.h: Likewise.
38402         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
38403         * lib/mbrtowc.c (mbrtowc): Likewise.
38404         * lib/relocatable.c (find_shared_library_fullname): Likewise.
38405         * lib/strerror_r.c: Likewise.
38406         * lib/unistr/u8-strnlen.c: Likewise.
38407         * lib/vasnprintf.c (decimal_point_char): Likewise.
38408         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
38409         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
38410         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38411         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38412         * tests/test-sigaction.c (handler, main): Likewise.
38413         * lib/freading.h: Treat uClibc like a non-glibc platform.
38414         * lib/freading.c: Likewise.
38415         * lib/gettext.h: Likewise.
38416         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
38417         Likewise.
38418         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
38419         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38420         * lib/propername.c (proper_name_utf8): Likewise.
38421         * lib/spawn.in.h: Likewise.
38422         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
38423         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
38424         mem_cd_iconveh_internal): Likewise.
38425         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
38426         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
38427         strstr, strcasestr): Likewise.
38428         * lib/unicodeio.c (unicode_to_mb): Likewise.
38429         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
38430         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
38431         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
38432         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
38433         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
38434         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
38435         * lib/unistr/u8-stpncpy.c: Likewise.
38436         * lib/vasnprintf.c (VASNPRINTF): Likewise.
38437         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
38438         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38439         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38440         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38441         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
38442         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
38443         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
38444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
38445         Likewise.
38446         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
38447         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
38448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38449         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38452         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38453         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
38454         * tests/test-getopt.h (OPTIND_MIN): Likewise.
38455         * tests/test-striconveha.c (main): Likewise.
38456         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38457         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
38458         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
38459         * doc/posix-functions/getline.texi: Likewise.
38460         Reported by Mike Frysinger <vapier@gentoo.org>.
38462 2010-11-20  Bruno Haible  <bruno@clisp.org>
38464         nproc: Fix condition.
38465         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
38466         HAVE_PTHREAD_AFFINITY_NP.
38468 2010-11-20  Bruno Haible  <bruno@clisp.org>
38470         Fix a comment.
38471         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
38473 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
38475         ftoastr: don't assume snprintf
38476         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
38477         Implement a subset of snprintf here, by using sprintf safely.
38478         * modules/ftoastr (Depends-on): Remove snprintf.
38480 2010-11-19  Jim Meyering  <meyering@redhat.com>
38482         test-rename.h: fix compilation failure
38483         * tests/test-rename.h (test_rename): Add omitted "}".
38485 2010-11-17  Jim Meyering  <meyering@redhat.com>
38487         maint.mk: add a URL discussing the no-@acronym policy
38488         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
38490 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
38492         ftoastr: depend on snprintf, improve comments
38493         * lib/ftoastr.c: Also mention Loitsch's draft.
38494         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
38495         needed in the current implementation, but it might simplify
38496         speeding up the code later.
38497         * modules/ftoastr: Depend on snprintf; this improves portability.
38498         Suggested by Bruno Haible in the same email.
38500         ftoastr: port to hosts lacking strtof and strtold
38501         Problem reported by Bruno Haible in
38502         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
38503         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
38504         environment and strtold (and presumably strtof) are not available.
38505         * modules/ftoastr (Files): Add m4/c-strtod.m4.
38506         (configure.ac): Require gl_C99_STRTOLD.
38508 2010-11-18  Bruno Haible  <bruno@clisp.org>
38510         c-strtold: Avoid link error on AIX 7.
38511         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
38512         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
38513         (gl_C_STRTOLD): Test whether strtold_l exists.
38514         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38516 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
38518         intprops: new macro INT_BITS_STRLEN_BOUND
38519         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
38520         ftoastr.h.  This exposes an internal of intprops.h that was formerly
38521         not exposed.  Also, it uses a slightly tighter bound than before;
38522         though this makes no practical difference, we might as well be as
38523         tight as we easily can.
38525         ftoastr: new module, for lossless conversion of floats to short strings
38526         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
38527         * modules/ftoastr: New files.
38529 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38531         bootstrap: port to Solaris sed
38532         * build-aux/bootstrap (get_version): Port to Solaris sed.
38533         See Ralf Wildenhues's note in
38534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
38536 2010-11-14  Jim Meyering  <meyering@redhat.com>
38538         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
38539         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
38540         and move definition closer to sole use.
38542 2010-11-13  Jim Meyering  <meyering@redhat.com>
38544         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
38545         Now we require at least autoconf-2.59, which means the work-around
38546         is no longer needed.
38547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
38548         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38549         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38550         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38551         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38553 2010-11-13  Bruno Haible  <bruno@clisp.org>
38555         rename, renameat: Avoid test failures at NFS mounted locations.
38556         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
38557         functions.
38558         (test_rename): Use assert_nonexistent.
38559         * tests/test-rename.c: Include <dirent.h>.
38560         * tests/test-renameat.c: Likewise.
38561         Reported by Gary V. Vaughan <gary@gnu.org>.
38563         rename, renameat: Document Linux bug with NFS
38564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
38565         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
38566         * doc/posix-functions/renameat.texi: Likewise.
38567         Suggested by Eric Blake.
38569 2010-11-13  Bruno Haible  <bruno@clisp.org>
38571         rename test: Add comments.
38572         * tests/test-rename.h (test_rename): Add structure and comments.
38574 2010-11-13  Eric Blake  <eblake@redhat.com>
38576         maintainer-makefile: cover a few more files
38577         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
38578         scripts generated within C files, for libvirt.
38580 2010-11-13  Bruno Haible  <bruno@clisp.org>
38582         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
38583         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
38584         character, return the number of bytes that belong together, not always
38585         1.
38586         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
38587         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
38588         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
38589         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
38590         number of bytes of an invalid character.
38591         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
38592         (main): Invoke it.
38593         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
38594         results.
38595         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
38596         malformed byte sequences.
38597         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
38598         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
38599         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
38600         Reported by Ben Pfaff and Paolo Bonzini.
38602 2010-11-13  Bruno Haible  <bruno@clisp.org>
38604         openat: Work around glibc bug with fchownat() and empty file names.
38605         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
38606         (gl_FUNC_FCHOWNAT): Invoke it.
38607         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
38608         * doc/posix-functions/fchownat.texi: Document the glibc bug.
38609         Reported by Gary V. Vaughan <gary@gnu.org>.
38611 2010-11-13  Bruno Haible  <bruno@clisp.org>
38613         openat: Ensure autoconf macro ordering.
38614         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
38615         gl_USE_SYSTEM_EXTENSIONS.
38616         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
38618 2010-11-13  Bruno Haible  <bruno@clisp.org>
38620         Update comments.
38621         * lib/unistr/u8-check.c: Update file name in comments.
38622         * lib/unistr/u8-mblen.c: Likewise.
38623         * lib/unistr/u8-prev.c: Likewise.
38624         * lib/unistr/u8-strmblen.c: Likewise.
38625         * lib/unistr/u8-strmbtouc.c: Likewise.
38627 2010-11-13  Jim Meyering  <meyering@redhat.com>
38629         tests: avoid test failure on Solaris 10 due to lack of PATH export
38630         * tests/test-update-copyright.sh: Don't forget to export PATH.
38632         init.sh: ensure that IFS is defined, just in case...
38633         * tests/init.sh (setup_): Ensure that IFS is defined,
38634         so that saving and restoring it works as expected.  This
38635         appears to be useful at least for an old version of dash
38636         from a long time ago (RH 6).  See here for details:
38637         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
38639         maint.mk: tighten "test a == b" check
38640         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
38641         test to files that contain something like #!/bin/sh.
38642         Without this, coreutils would get two false positives in
38643         the comments of C source files.
38645 2010-11-12  Eric Blake  <eblake@redhat.com>
38647         bootstrap: fix typo in previous attempt
38648         * build-aux/bootstrap (buildreq): Correct the grouping.
38649         Reported by Paul Eggert.
38651         maintainer-makefile: prohibit test x == x
38652         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
38653         Based on a report by Matthias Bolte.
38655         bootstrap: allow FreeBSD gzip
38656         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
38657         which has no '.' and goes to stderr.
38658         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
38659         Reported by Matthias Bolte.
38661         maintainer-makefile: check for i18n setup
38662         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
38663         will likely work.
38665 2010-11-12  Bruno Haible  <bruno@clisp.org>
38667         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
38668         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
38669         * lib/nanosleep.c (nanosleep): Likewise.
38671 2010-11-11  Bruno Haible  <bruno@clisp.org>
38673         fcntl-h: Fix for use of C++ on glibc systems.
38674         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
38675         also on glibc systems in C++ mode.
38676         Reported by Gary V. Vaughan <gary@gnu.org>.
38678 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
38680         mknod: avoid false failure with dash
38681         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
38683 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
38685         unlink: Fix "is it should" typo in diagnostic.
38686         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
38687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
38689 2010-11-11  Bruno Haible  <bruno@clisp.org>
38691         Tests for module 'strerror_r-posix'.
38692         * modules/strerror_r-posix-tests: New file.
38693         * tests/test-strerror_r.c: New file.
38694         * tests/test-string-c++.cc: Check the signature of strerror_r.
38696         New module 'strerror_r-posix'.
38697         * lib/string.in.h (strerror_r): New declaration.
38698         * lib/strerror_r.c: New file.
38699         * m4/strerror_r.m4: New file.
38700         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
38701         of strerror_r.
38702         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
38703         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
38704         * modules/strerror_r-posix: New file.
38705         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
38706         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
38707         * doc/posix-functions/strerror_r.texi: Mention the new module and the
38708         portability problems.
38710 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
38712         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
38713         line is also considered for output. Quoted function name in shell
38714         command, so temporary files for functions like MyClass::operator()
38715         are removed correctly without errors.
38717 2010-11-09  Bruno Haible  <bruno@clisp.org>
38719         * doc/posix-functions/strerror.texi: List more failing platforms.
38721         * doc/posix-functions/strerror.texi: Add a comment.
38723 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
38725         fdopendir: fix bug on MacOS X when low on file descriptors
38727         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
38728         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
38729         All callers changed.
38730         (fdopendir): Invoke save_cwd at the top level, not after using
38731         multiple dup() calls to use up file descriptors.  Then retry
38732         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
38733         less than the maximum number of open file descriptors, because
38734         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
38735         on Mac OS X 10.6.4 for tar 1.24
38736         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
38737         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
38738         and for tar 1.25
38739         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
38741 2010-11-07  Bruno Haible  <bruno@clisp.org>
38743         vasnprintf: Support I flag on glibc systems.
38744         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
38745         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
38746         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
38747         snprintf function.
38748         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
38749         glibc systems.
38750         * tests/test-vasnprintf-posix3.c: New file.
38751         * modules/vasnprintf-posix-tests (Files): Add it.
38752         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
38754 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38756         [html] Fix copy/paste bug: Use unique name for compiler warnings.
38757         * MODULES.html.sh: For compiler warnings, use name
38758         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
38760 2010-11-05  Eric Blake  <eblake@redhat.com>
38762         ceil, floor: avoid spurious failure with icc
38763         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
38764         [denormals-as-zero] when optimizing without -mieee-fp option.
38765         * tests/test-floorf2.c (floorf_reference): Likewise.
38766         * tests/test-ceilf1.c (dummy): New function.
38767         (main): Use it to outsmart icc's optimization.
38768         * tests/test-floorf1.c (dummy, main): Likewise.
38770         tests: require working signbit
38771         * modules/ceilf-tests (Depends-on): Add signbit.
38772         * modules/ceill-tests (Depends-on): Likewise.
38773         * modules/floorf-tests (Depends-on): Likewise.
38774         * modules/floorl-tests (Depends-on): Likewise.
38775         * modules/round-tests (Depends-on): Likewise.
38776         * modules/roundf-tests (Depends-on): Likewise.
38777         * modules/roundl-tests (Depends-on): Likewise.
38778         * modules/trunc-tests (Depends-on): Likewise.
38779         * modules/truncf-tests (Depends-on): Likewise.
38780         * modules/truncl-tests (Depends-on): Likewise.
38782         strtod: work around icc bug
38783         * lib/strtod.c (minus_zero): Define to working value.
38784         (strtod): Use it to avoid icc bug.
38786         copysign: enhance tests
38787         * modules/copysign-tests (Files): Add minus-zero.h.
38788         * tests/test-copysign.c (main): Also test zeros.
38790 2010-11-04  Eric Blake  <eblake@redhat.com>
38792         ceil, floor, round, trunc: enhance tests of -0
38793         * tests/test-ceilf1.c (main): Ensure correct sign of result.
38794         * tests/test-ceill.c (main): Likewise.
38795         * tests/test-floorf1.c (main): Likewise.
38796         * tests/test-floorl.c (main): Likewise.
38797         * tests/test-round1.c (main): Likewise.
38798         * tests/test-roundf1.c (main): Likewise.
38799         * tests/test-roundl.c (main): Likewise.
38800         * tests/test-trunc1.c (main): Likewise.
38801         * tests/test-truncf1.c (main): Likewise.
38802         * tests/test-truncl.c (main): Likewise.
38804 2010-11-04  Eric Blake  <eblake@redhat.com>
38806         frexp, tests: work around ICC bug with -zero
38807         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
38808         works with more compilers.
38809         * tests/minus-zero.h: New file.
38810         * modules/ceilf-tests (Files): Include it.
38811         * modules/ceill-tests (Files): Likewise.
38812         * modules/floorf-tests (Files): Likewise.
38813         * modules/floorl-tests (Files): Likewise.
38814         * modules/frexp-nolibm-tests (Files): Likewise.
38815         * modules/frexp-tests (Files): Likewise.
38816         * modules/frexpl-nolibm-tests (Files): Likewise.
38817         * modules/frexpl-tests (Files): Likewise.
38818         * modules/isnan-tests (Files): Likewise.
38819         * modules/isnand-nolibm-tests (Files): Likewise.
38820         * modules/isnand-tests (Files): Likewise.
38821         * modules/isnanf-nolibm-tests (Files): Likewise.
38822         * modules/isnanf-tests (Files): Likewise.
38823         * modules/isnanl-nolibm-tests (Files): Likewise.
38824         * modules/isnanl-tests (Files): Likewise.
38825         * modules/round-tests (Files): Likewise.
38826         * modules/roundf-tests (Files): Likewise.
38827         * modules/roundl-tests (Files): Likewise.
38828         * modules/ldexpl-tests (Files): Likewise.
38829         * modules/signbit-tests (Files): Likewise.
38830         * modules/snprintf-posix-tests (Files): Likewise.
38831         * modules/sprintf-posix-tests (Files): Likewise.
38832         * modules/strtod-tests (Files): Likewise.
38833         * modules/trunc-tests (Files): Likewise.
38834         * modules/truncf-tests (Files): Likewise.
38835         * modules/truncl-tests (Files): Likewise.
38836         * modules/vsnprintf-posix-tests (Files): Likewise.
38837         * modules/vsprintf-posix-tests (Files): Likewise.
38838         * modules/vasnprintf-posix-tests (Files): Likewise.
38839         * modules/vasprintf-posix-tests (Files): Likewise.
38840         * tests/test-ceilf1.c (main): Use it.
38841         * tests/test-ceill.c (main): Likewise.
38842         * tests/test-floorf1.c (main): Likewise.
38843         * tests/test-floorl.c (main): Likewise.
38844         * tests/test-frexp.c (main): Likewise.
38845         * tests/test-frexpl.c (main): Likewise.
38846         * tests/test-isnan.c (main): Likewise.
38847         * tests/test-isnand.h (main): Likewise.
38848         * tests/test-isnanf.h (main): Likewise.
38849         * tests/test-isnanl.h (main): Likewise.
38850         * tests/test-ldexpl.c (main): Likewise.
38851         * tests/test-round.c (main): Likewise.
38852         * tests/test-roundf.c (main): Likewise.
38853         * tests/test-roundl.c (main): Likewise.
38854         * tests/test-signbit.c (test_signbitf, test_signbitd)
38855         (test_signbitl): Likewise.
38856         * tests/test-snprintf-posix.h (test_function): Likewise.
38857         * tests/test-sprintf-posix.h (test_function): Likewise.
38858         * tests/test-strtod.c (main): Likewise.
38859         * tests/test-trunc1.c (main): Likewise.
38860         * tests/test-truncf1.c (main): Likewise.
38861         * tests/test-truncl.c (main): Likewise.
38863         isnanl: work around icc bug
38864         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
38866 2010-11-03  Eric Blake  <eblake@redhat.com>
38868         tests: fix compiler warnings
38869         * tests/test-getopt.h (test_getopt): Fix condition.
38870         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38871         * tests/test-pipe2.c (main): Likewise.
38872         * tests/test-quotearg-simple.c (main): Avoid icc warning.
38874         utimens: fix broken m4 test
38875         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
38877 2010-10-28  Bruno Haible  <bruno@clisp.org>
38879         posix_spawn*, getdtablesize: Relax license.
38880         * modules/posix_spawn (License): Change to LGPLv2+.
38881         * modules/posix_spawnp (License): Likewise.
38882         * modules/posix_spawn-internal (License): Likewise.
38883         * modules/posix_spawnattr_init (License): Likewise.
38884         * modules/posix_spawnattr_getflags (License): Likewise.
38885         * modules/posix_spawnattr_setflags (License): Likewise.
38886         * modules/posix_spawnattr_getpgroup (License): Likewise.
38887         * modules/posix_spawnattr_setpgroup (License): Likewise.
38888         * modules/posix_spawnattr_getschedparam (License): Likewise.
38889         * modules/posix_spawnattr_setschedparam (License): Likewise.
38890         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
38891         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
38892         * modules/posix_spawnattr_getsigdefault (License): Likewise.
38893         * modules/posix_spawnattr_setsigdefault (License): Likewise.
38894         * modules/posix_spawnattr_getsigmask (License): Likewise.
38895         * modules/posix_spawnattr_setsigmask (License): Likewise.
38896         * modules/posix_spawnattr_destroy (License): Likewise.
38897         * modules/posix_spawn_file_actions_init (License): Likewise.
38898         * modules/posix_spawn_file_actions_addclose (License): Likewise.
38899         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
38900         * modules/posix_spawn_file_actions_addopen (License): Likewise.
38901         * modules/posix_spawn_file_actions_destroy (License): Likewise.
38902         * modules/getdtablesize (License): Likewise.
38903         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
38905 2010-10-26  Bruno Haible  <bruno@clisp.org>
38907         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
38908         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
38909         Cygwin and mingw.
38910         Suggested by Eric Blake.
38912 2010-10-26  Bruno Haible  <bruno@clisp.org>
38914         stdio: Work around compilation error due to renameat() on Solaris 10.
38915         * lib/stdio.in.h: Include <unistd.h> on Solaris.
38916         * lib/renameat.c: Don't include <unistd.h> here.
38917         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
38918         Reported by Paul Eggert and Eric Blake.
38920 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
38922         renameat: port to Solaris 10, which declares renameat in unistd.h
38924         * lib/renameat.c: Include unistd.h before stdio.h, because
38925         Solaris 10 declares renameat in unistd.h.  Problem encountered
38926         when building GNU tar 1.24 on Solaris 10.
38928 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
38930         fdopendir: fix C89 compilation
38931         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
38932         compilers.
38934 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
38936         inttostr: simplify by removing unnecessary redundancy
38937         * lib/anytostr.c: Don't include verify.h.
38938         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
38939         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
38940         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
38941         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
38942         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
38943         Likewise.
38944         * modules/inttostr (Depends-on): Remove 'verify'.
38946 2010-10-23  Bruno Haible  <bruno@clisp.org>
38948         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
38949         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
38950         Reported by Eric Blake.
38952 2010-10-23  Bruno Haible  <bruno@clisp.org>
38954         Tests: Fix LOCALE_JA on MirBSD 10.
38955         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
38956         to an UTF-8 locale.
38957         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
38958         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38959         Reported by Eric Blake.
38961 2010-10-21  Bruno Haible  <bruno@clisp.org>
38963         nl_langinfo test: Avoid test failure on NetBSD 5.
38964         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
38965         Reported by Eric Blake.
38967 2010-10-21  Eric Blake  <eblake@redhat.com>
38969         c-stack: work around libsigsegv 2.8 bug
38970         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
38971         overflow on at least PowerPC64.
38973 2010-10-17  Bruno Haible  <bruno@clisp.org>
38975         userspec: Drop redundant file.
38976         * modules/userspec (Files): Remove lib/inttostr.h.
38978 2010-10-17  Bruno Haible  <bruno@clisp.org>
38980         nl_langinfo tests: Silence some warnings.
38981         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
38982         Reported by Jim Meyering.
38984 2010-10-17  Bruno Haible  <bruno@clisp.org>
38986         Make use of GCC's attribute __alloc_size__.
38987         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
38988         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
38989         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
38990         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
38991         __alloc_size__.
38992         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38993         Suggested by Jim Meyering.
38995 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
38997         bootstrap: anchor .gitignore entries.
38998         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
38999         with...
39000         (insert_vc_ignore): ... this new function, which prepends `/' to
39001         all .gitignore entries before passing them to
39002         insert_sorted_if_absent.
39004 2010-10-16  Bruno Haible  <bruno@clisp.org>
39006         nextafter: Fix configure check.
39007         * modules/nextafter (configure.ac): Correct expected prototype.
39009 2010-10-16  Bruno Haible  <bruno@clisp.org>
39011         termios: Update documentation.
39012         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
39014 2010-10-16  Bruno Haible  <bruno@clisp.org>
39016         tests: Make them compile with TinyCC.
39017         * tests/test-strstr.c (main): Remove parentheses around array
39018         initializer.
39020 2010-10-15  Eric Blake  <eblake@redhat.com>
39022         ignore-value: make header idempotent
39023         * lib/ignore-value.h: Add double-inclusion guards.
39024         Reported by Stefan Berger.
39026 2010-10-15  Jim Meyering  <meyering@redhat.com>
39028         GNUmakefile: handle "stable" target, not "major"
39029         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
39030         lists in maint.mk and announce-gen.  Without this, "make stable"
39031         would fail to ensure that $(VERSION) is up to date.
39033 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
39035         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
39036         & co.
39038 2010-10-14  Bruno Haible  <bruno@clisp.org>
39040         vasnprintf: Don't set errno to 0.
39041         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
39042         block that sets it to 0.
39043         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39045 2010-10-14  Bruno Haible  <bruno@clisp.org>
39047         socketlib: Fix.
39048         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
39049         gl_PREREQ_SYS_H_WINSOCK2.
39050         Reported by Ian Beckwith <ianb@erislabs.net>.
39052 2010-10-13  Jim Meyering  <meyering@redhat.com>
39054         test-select-stdin.c: avoid warn_unused_result warnings
39055         * tests/test-select-stdin.c: Include "macros.h".
39056         ASSERT that read and fflush succeed.
39058 2010-10-13  Jim Meyering  <meyering@redhat.com>
39060         git-version-gen: do require git-VC'd files in cwd
39061         * build-aux/git-version-gen: Reject a git version string
39062         if there are no commits associated with the current directory.
39063         This avoids an unlikely false-positive (unrelated dir whose parent
39064         repository also contains a tag matching v*), as pointed out
39065         by Giuseppe Scrivano in
39066         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
39068 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
39070         argv-iter: omit nonconforming declaration
39071         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
39072         enum arg_iter_err declaration, which doesn't conform to C99.
39073         Solaris 10 cc warns about this.
39075 2010-10-13  Eric Blake  <eblake@redhat.com>
39077         termios: fix compilation on mingw
39078         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
39079         (gl_TERMIOS_H): Adjust it on mingw.
39080         * modules/termios (Makefile.am): Substitute new key.
39081         * lib/termios.in.h (includes): Make include_next conditional.
39082         * doc/posix-headers/termios.texi (termios.h): Update
39083         documentation.
39084         Reported by Daniel P. Berrange.
39086 2010-10-13  Jim Meyering  <meyering@redhat.com>
39088         git-version-gen: don't require that .git/ be in the current dir
39089         * build-aux/git-version-gen: Adjust this script so that it works
39090         when run from any working directory beneath the top-level .git/-
39091         containing directory.  Inspired by a patch from Giuseppe Scrivano,
39092         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
39094         test-select: avoid warn_unused_result warnings
39095         * tests/test-select.c: Include "macros.h".
39096         ASSERT that each call to read, write, and pipe succeeds.
39097         While not technically required, also check each "close".
39098         * modules/select-tests (Files): Add tests/macros.h.
39100         test-symlinkat: remove declaration of unused local
39101         * tests/test-symlinkat.c (main): Remove unused local, "buf".
39103         test-inttostr: avoid shadowing warnings
39104         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
39105         and use malloc rather than the stack for the same reason as
39106         mentioned in the comment justifying the other allocation.
39108 2010-10-11  Bruno Haible  <bruno@clisp.org>
39110         stdlib: Allow multiple gnulib generated replacements to coexist.
39111         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
39112         Reported by Sam Steingold <sds@gnu.org>.
39114 2010-10-11  Jim Meyering  <meyering@redhat.com>
39116         fix a documentation typo
39117         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
39119 2010-10-11  Eric Blake  <eblake@redhat.com>
39121         futimens: work around Solaris 11 bug
39122         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
39123         * tests/test-futimens.h (test_futimens): Enhance, rather than
39124         weaken test.
39125         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39127 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39129         Indentation.
39130         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
39131         higher-level operators more to the left.
39133 2010-10-11  Jim Meyering  <meyering@redhat.com>
39135         test-futimens: avoid unwarranted test failure on Solaris 5.11
39136         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
39137         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
39138         because it tries to dereference the NULL name argument.
39140 2010-10-11  Bruno Haible  <bruno@clisp.org>
39142         Indentation.
39143         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
39144         indentation.
39146 2010-10-11  Jim Meyering  <meyering@redhat.com>
39148         spawn.in.h: make indentation consistent with parentheses
39149         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
39150         Make indentation consistent with parentheses.
39152 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
39154         Fix mismatched parens in previous commit
39155         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
39156         parens.
39158 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39160         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
39162         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
39163         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
39164         * lib/malloca.c: Include "verify.h".
39165         (verify1): Remove, replacing with a verify call.
39166         * lib/relocwrapper.c (verify1): Likewise.
39167         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
39168         Likewise.
39169         * modules/malloca (Depends-on): Add 'verify'.
39170         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
39171         * modules/vasnprintf (Depends-on): Add 'verify'.
39172         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39173         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39174         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39175         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39176         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39177         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39178         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39180         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
39182         Formerly the style was sometimes 2*X - 1, because the C standard
39183         was wrongly thought to disallow ?: in integral constant expressions.
39184         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
39185         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
39186         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
39187         * lib/stdint.in.h (_verify_intmax_size): Likewise.
39188         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
39189         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
39190         verify that time_t cannot be floating.
39192 2010-10-08  Eric Blake  <eblake@redhat.com>
39194         time: enforce recent POSIX ruling that time_t is integral
39195         * lib/time.in.h (__time_t_must_be_integral): Detect any
39196         problematic systems, allowing the rest of gnulib to assume POSIX.
39198 2010-10-08  Jim Meyering  <meyering@redhat.com>
39200         fdopendir: fix a bug on systems lacking openat and /proc support
39201         OpenBSD 4.7 is one such system.  The most noticeable effect was
39202         failure of any application making nontrivial use of fts: rm, du,
39203         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
39204           ./rm: traversal failed: `a': Bad file descriptor
39205         Debugging that, you see that even though FD 6 was closed just
39206         prior to the opendir call in fd_clone_opendir, its resulting
39207         dir->dd_fd was 8, rather than the expected value of 6:
39209         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
39210         93                close (fd);
39211         (gdb) n
39212         94                dir = fd_clone_opendir (dupfd);
39213         (gdb) n
39214         95                saved_errno = errno;
39215         (gdb) p dir->dd_fd
39216         $11 = 8
39218         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
39219         The problem is that on OpenBSD, fd_clone_opendir has to resort
39220         to using the old-style save/restore CWD mechanism, due to its
39221         lack of openat/proc support, and *that* would steal the FD (6)
39222         that opendir was supposed to use.
39224         The fix is to squirrel away the desired FD so that save_cwd uses a
39225         different one, and then free the dest FD right before calling opendir.
39226         That guarantees opendir will use the required file descriptor.
39228         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
39230 2010-10-08  Bruno Haible  <bruno@clisp.org>
39232         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
39233         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
39235 2010-10-08  Bruno Haible  <bruno@clisp.org>
39237         nanosleep: Make replacement POSIX compliant.
39238         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
39239         is out of range.
39240         Reported by Jim Meyering.
39242 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39244         bootstrap: add hook for altering gnulib.mk, for Bison
39245         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
39246         the Bison bootstrapping process can rewrite file names and variables
39247         in this file before later parts of 'bootstrap' use the file.
39248         Bison wants to include lib/gnulib.mk from the top-level makefile,
39249         so it needs the file names in this file to be relative to the top
39250         level, not relative to lib; plus it needs variable names to be
39251         rewritten.
39252         (slurp): Use the new function.
39254         bootstrap: reformat for readability
39255         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
39257 2010-10-08  Eric Blake  <eblake@redhat.com>
39259         docs: update cygwin progress
39260         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
39261         1.7.7.
39262         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
39263         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
39264         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
39265         * doc/posix-functions/carg.texi (carg): Likewise.
39266         * doc/posix-functions/cargf.texi (cargf): Likewise.
39267         * doc/posix-functions/casin.texi (casin): Likewise.
39268         * doc/posix-functions/casinf.texi (casinf): Likewise.
39269         * doc/posix-functions/casinh.texi (casinh): Likewise.
39270         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
39271         * doc/posix-functions/catan.texi (catan): Likewise.
39272         * doc/posix-functions/catanf.texi (catanf): Likewise.
39273         * doc/posix-functions/catanh.texi (catanh): Likewise.
39274         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
39275         * doc/posix-functions/ccos.texi (ccos): Likewise.
39276         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
39277         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
39278         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
39279         * doc/posix-functions/cexp.texi (cexp): Likewise.
39280         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
39281         * doc/posix-functions/cimag.texi (cimag): Likewise.
39282         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
39283         * doc/posix-functions/clog.texi (clog): Likewise.
39284         * doc/posix-functions/clogf.texi (clogf): Likewise.
39285         * doc/posix-functions/conj.texi (conj): Likewise.
39286         * doc/posix-functions/conjf.texi (conjf): Likewise.
39287         * doc/posix-functions/cpow.texi (cpow): Likewise.
39288         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
39289         * doc/posix-functions/cproj.texi (cproj): Likewise.
39290         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
39291         * doc/posix-functions/creal.texi (creal): Likewise.
39292         * doc/posix-functions/crealf.texi (crealf): Likewise.
39293         * doc/posix-functions/csin.texi (csin): Likewise.
39294         * doc/posix-functions/csinf.texi (csinf): Likewise.
39295         * doc/posix-functions/csinh.texi (csinh): Likewise.
39296         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
39297         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
39298         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
39299         * doc/posix-functions/ctan.texi (ctan): Likewise.
39300         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
39301         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
39302         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
39303         * doc/posix-headers/complex.texi (complex.h): Likewise.
39305 2010-10-07  Jim Meyering  <meyering@redhat.com>
39307         parse-datetime: avoid compilation failure on OpenBSD 4.7
39308         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
39309         This works around a compilation failure on OpenBSD 4.7:
39310         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
39312 2010-10-07  Eric Blake  <eblake@redhat.com>
39314         docs: update cygwin progress
39315         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
39316         1.7.6.
39317         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39318         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
39319         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
39320         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
39321         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
39322         Likewise.
39323         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
39324         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
39325         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
39326         Likewise.
39327         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
39328         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
39329         Likewise.
39330         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
39331         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
39332         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
39333         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
39334         Likewise.
39335         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
39336         Likewise.
39337         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
39339         docs: update parse-datetime history
39340         * doc/parse-datetime.texi (Authors of parse_datetime): Better
39341         documentation of this function's history and alternatives.
39343         cygwin: use more robust version check
39344         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
39345         exclude an eventual cygwin 1.9.1.
39346         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
39347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
39348         (gl_FUNC_STRCASESTR): Likewise.
39349         Reported by Bruno Haible.
39351 2010-10-06  Bruno Haible  <bruno@clisp.org>
39353         string, sys_select: Avoid #including large headers unless necessary.
39354         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
39355         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
39356         OSF/1, BeOS, Haiku.
39357         Reported by Jim Meyering.
39359 2010-10-05  Eric Blake  <eblake@redhat.com>
39361         memmem, strstr, strcasestr: fix bug with long periodic needle
39362         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
39363         periodic needle having false positive.
39364         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
39365         and cygwin 1.7.7.
39366         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
39367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
39368         (gl_FUNC_STRCASESTR): Likewise.
39369         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
39370         * tests/test-memmem.c (main): Expose the bug.
39371         * tests/test-strcasestr.c (main): Likewise.
39372         * tests/test-strstr.c (main): Likewise.
39373         * tests/test-c-strcasestr.c (main): Likewise.
39374         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
39375         * doc/posix-functions/strstr.texi (strstr): Likewise.
39376         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39377         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
39379 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39381         parse-datetime: do some more renaming
39382         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
39383         parse_datetime, not get_date.  Mention the renaming.
39384         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
39385         in comments.
39386         * m4/bison.m4: Likewise.
39388 2010-10-05  Eric Blake  <eblake@redhat.com>
39390         parse-datetime: better name than get_date
39391         * NEWS: Reword the deprecation notice.
39392         * modules/get_date: Rename to modules/parse-datetime.
39393         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
39394         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
39395         * lib/get_date.y: Rename to lib/parse-datetime.y.
39396         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
39397         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
39398         * doc/getdate.texi: Provide fallback wrapper.
39399         * lib/getdate.h: Move guts, and wrap...
39400         * lib/parse-datetime.h: ...new file.
39401         * lib/parse-datetime.y (get_date): Rename...
39402         (parse_datetime): ...to this.
39403         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
39404         (gl_PARSE_DATETIME): ...to this.
39405         * doc/posix-functions/getdate.texi (get_date): Provide fallback
39406         documentation.
39407         * modules/getdate (Files): Provide fallback docs and header.
39408         (Notice, Depends-on): Update references.
39409         * tests/test-parse-datetime.c: Likewise.
39410         * DEPENDENCIES: Likewise.
39411         * MODULES.html.sh (Date and time <time.h>): Likewise.
39412         * doc/parse-datetime.texi (Date input formats)
39413         (Authors of parse_datetime): Likewise.
39414         * modules/parse-datetime (Files, configure.ac, Makefile.am)
39415         (Include): Likewise.
39416         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
39417         * gnulib-tool: Likewise.
39418         * m4/bison.m4 (gl_BISON): Likewise.
39419         Suggested by Bruno Haible.
39421 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39423         more ports to Solaris tr, which needs [] around ranges
39424         * gnulib-tool: Solaris tr needs [] around ranges.
39425         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
39426         * tests/test-pipe-filter-gi1.c (main): Likewise.
39427         * tests/test-pipe-filter-ii1.c (main): Likewise.
39429 2010-10-05  Eric Blake  <eblake@redhat.com>
39431         bootstrap: fix Solaris regression
39432         * build-aux/bootstrap (check_versions): Solaris tr still needs []
39433         around ranges.
39434         Reported by Pádraig Brady.
39436         bootstrap: work with pkg-config
39437         * build-aux/bootstrap (check_versions): Also transliterate - in
39438         prerequisite name.
39439         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
39440         prerequisites that were already found, to avoid confusion.
39441         Reported by Justin Clift.
39443         faccessat: remove unused wrappers
39444         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
39445         presence of these wrappers dragged in -lgen on Solaris.
39446         Reported by Clemens Brogi; fix suggested by Paul Eggert.
39448 2010-10-05  Jim Meyering  <meyering@redhat.com>
39450         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
39451         * Makefile (sc_pragma_columns): New syntax-check rule.
39453 2010-10-04  Bruno Haible  <bruno@clisp.org>
39455         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
39456         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
39457         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
39458         Reported by Bruce Korb and Eric Blake.
39460 2010-10-04  Bruno Haible  <bruno@clisp.org>
39462         threadlib: Make option --with-libpth-prefix work.
39463         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
39464         use $LIBPTH, not just -lpth.
39466 2010-10-04  Bruno Haible  <bruno@clisp.org>
39468         Avoid line length limitation from HP NonStop system header files.
39469         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
39470         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
39471         * lib/ctype.in.h: Likewise.
39472         * lib/dirent.in.h: Likewise.
39473         * lib/errno.in.h: Likewise.
39474         * lib/fcntl.in.h: Likewise.
39475         * lib/float.in.h: Likewise.
39476         * lib/getopt.in.h: Likewise.
39477         * lib/iconv.in.h: Likewise.
39478         * lib/inttypes.in.h: Likewise.
39479         * lib/langinfo.in.h: Likewise.
39480         * lib/locale.in.h: Likewise.
39481         * lib/math.in.h: Likewise.
39482         * lib/netdb.in.h: Likewise.
39483         * lib/netinet_in.in.h: Likewise.
39484         * lib/poll.in.h: Likewise.
39485         * lib/pthread.in.h: Likewise.
39486         * lib/pty.in.h: Likewise.
39487         * lib/sched.in.h: Likewise.
39488         * lib/se-selinux.in.h: Likewise.
39489         * lib/search.in.h: Likewise.
39490         * lib/signal.in.h: Likewise.
39491         * lib/spawn.in.h: Likewise.
39492         * lib/stdarg.in.h: Likewise.
39493         * lib/stddef.in.h: Likewise.
39494         * lib/stdint.in.h: Likewise.
39495         * lib/stdio.in.h: Likewise.
39496         * lib/stdlib.in.h: Likewise.
39497         * lib/string.in.h: Likewise.
39498         * lib/strings.in.h: Likewise.
39499         * lib/sys_file.in.h: Likewise.
39500         * lib/sys_ioctl.in.h: Likewise.
39501         * lib/sys_select.in.h: Likewise.
39502         * lib/sys_socket.in.h: Likewise.
39503         * lib/sys_stat.in.h: Likewise.
39504         * lib/sys_time.in.h: Likewise.
39505         * lib/sys_times.in.h: Likewise.
39506         * lib/sys_utsname.in.h: Likewise.
39507         * lib/sys_wait.in.h: Likewise.
39508         * lib/sysexits.in.h: Likewise.
39509         * lib/termios.in.h: Likewise.
39510         * lib/time.in.h: Likewise.
39511         * lib/unistd.in.h: Likewise.
39512         * lib/wchar.in.h: Likewise.
39513         * lib/wctype.in.h: Likewise.
39514         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
39515         * modules/ctype (Makefile.am): Likewise.
39516         * modules/dirent (Makefile.am): Likewise.
39517         * modules/errno (Makefile.am): Likewise.
39518         * modules/fcntl-h (Makefile.am): Likewise.
39519         * modules/float (Makefile.am): Likewise.
39520         * modules/getopt-posix (Makefile.am): Likewise.
39521         * modules/iconv-h (Makefile.am): Likewise.
39522         * modules/inttypes (Makefile.am): Likewise.
39523         * modules/langinfo (Makefile.am): Likewise.
39524         * modules/locale (Makefile.am): Likewise.
39525         * modules/math (Makefile.am): Likewise.
39526         * modules/netdb (Makefile.am): Likewise.
39527         * modules/netinet_in (Makefile.am): Likewise.
39528         * modules/poll-h (Makefile.am): Likewise.
39529         * modules/pthread (Makefile.am): Likewise.
39530         * modules/pty (Makefile.am): Likewise.
39531         * modules/sched (Makefile.am): Likewise.
39532         * modules/search (Makefile.am): Likewise.
39533         * modules/selinux-h (Makefile.am): Likewise.
39534         * modules/signal (Makefile.am): Likewise.
39535         * modules/spawn (Makefile.am): Likewise.
39536         * modules/stdarg (Makefile.am): Likewise.
39537         * modules/stddef (Makefile.am): Likewise.
39538         * modules/stdint (Makefile.am): Likewise.
39539         * modules/stdio (Makefile.am): Likewise.
39540         * modules/stdlib (Makefile.am): Likewise.
39541         * modules/string (Makefile.am): Likewise.
39542         * modules/strings (Makefile.am): Likewise.
39543         * modules/sys_file (Makefile.am): Likewise.
39544         * modules/sys_ioctl (Makefile.am): Likewise.
39545         * modules/sys_select (Makefile.am): Likewise.
39546         * modules/sys_socket (Makefile.am): Likewise.
39547         * modules/sys_stat (Makefile.am): Likewise.
39548         * modules/sys_time (Makefile.am): Likewise.
39549         * modules/sys_times (Makefile.am): Likewise.
39550         * modules/sys_utsname (Makefile.am): Likewise.
39551         * modules/sys_wait (Makefile.am): Likewise.
39552         * modules/sysexits (Makefile.am): Likewise.
39553         * modules/termios (Makefile.am): Likewise.
39554         * modules/time (Makefile.am): Likewise.
39555         * modules/unistd (Makefile.am): Likewise.
39556         * modules/wchar (Makefile.am): Likewise.
39557         * modules/wctype (Makefile.am): Likewise.
39559 2010-10-04  Bruno Haible  <bruno@clisp.org>
39561         read-file tests: Avoid a test failure on NonStop Kernel.
39562         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
39563         a regular file.
39564         Reported by Joachim Schmitz <schmitz@hp.com>.
39566 2010-10-03  Bruno Haible  <bruno@clisp.org>
39568         gnulib-tool: Fixes for --create-testdir with --libtool.
39569         * gnulib-tool (func_get_automake_snippet): Don't augment
39570         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
39571         an executable.
39572         (func_create_testdir): Handle module 'alloca' like func_import.
39573         Reported by Bruce Korb <bruce.korb@gmail.com>.
39575 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
39577         Avoid some lines longer than 80 characters.
39578         * lib/stdint.in.h: Break long comment lines.
39579         * lib/math.in.h: Likewise.
39580         (_GL_NUM_UINT_WORDS): New macro, for readability.
39581         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
39582         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
39583         * lib/stdlib.in.h: Likewise.
39584         * lib/spawn.in.h: Likewise.
39585         * lib/sys_socket.in.h: Update an URL.
39586         * lib/sys_stat.in.h: Break long line.
39588 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
39590         Improve pmccabe2html.
39591         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
39592         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
39593         when the sources change. Remove the line in the HTML about "Used
39594         ranges" (which implied that there might be other unused ranges),
39595         rename "Resume" to "Summary" (easier to understand for more users).
39596         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
39597         styles, and some unnecessary blank lines.
39599 2010-10-03  Bruno Haible  <bruno@clisp.org>
39600             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
39602         acl: Add support for ACLs on NonStop Kernel.
39603         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
39604         Check whether the function aclsort() exists.
39605         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
39606         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
39607         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
39608         (acl_nontrivial [HAVE_ACLSORT]: New function.
39609         (file_has_acl): Implement for NonStop Kernel.
39610         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
39611         (qset_acl): Implement for NonStop Kernel.
39612         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
39613         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
39614         (main): Implement for NonStop Kernel.
39615         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
39616         Kernel. Handle this flavor.
39617         * tests/test-set-mode-acl.sh: Likewise.
39618         * tests/test-copy-acl.sh: Likewise.
39619         * tests/test-copy-file.sh: Likewise.
39621 2010-10-03  Bruno Haible  <bruno@clisp.org>
39623         Info about ACLs on NonStop Kernel.
39624         * doc/acl-resources.txt: Add info about NonStop Kernel.
39625         References by Joachim Schmitz <schmitz@hp.com>.
39627 2010-10-02  Bruno Haible  <bruno@clisp.org>
39629         Define missing EDQUOT on NonStop Kernel.
39630         * lib/errno.in.h (EDQUOT): Assign a value if missing.
39631         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
39632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
39633         missing.
39634         * doc/posix-headers/errno.texi: Mention the NSK bug.
39635         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
39636         Reported by Joachim Schmitz <schmitz@hp.com>.
39638 2010-10-02  Bruno Haible  <bruno@clisp.org>
39640         Update doc for POSIX:2008.
39641         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
39642         Update URL of POSIX specification.
39644 2010-10-02  Bruno Haible  <bruno@clisp.org>
39646         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
39647         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
39648         from gnulib, not from Automake.
39650 2010-10-02  Bruno Haible  <bruno@clisp.org>
39652         New module 'system-posix'.
39653         * modules/system-posix: New file.
39654         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
39655         module is present.
39656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39657         GNULIB_SYSTEM_POSIX.
39658         * modules/stdlib (Depends-on): Remove sys_wait.
39659         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
39660         * doc/posix-functions/system.texi: Mention the new module.
39661         * doc/posix-headers/stdlib.texi: Likewise.
39662         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
39663         define test_sys_wait_macros to a no-op.
39664         Reported by Sam Steingold <sds@gnu.org>.
39666 2010-09-30  Bruno Haible  <bruno@clisp.org>
39668         More renaming from 'getdate' to 'get_date'.
39669         * doc/get_date.texi: Renamed from doc/getdate.texi.
39670         * modules/get_date (Files): Update.
39671         * MODULES.html.sh (Date and time <time.h>): Update.
39672         * DEPENDENCIES: Update.
39673         * gnulib-tool: Update comment.
39674         * m4/bison.m4 (gl_BISON): Likewise.
39675         * m4/get_date.m4 (gl_GET_DATE): Likewise.
39677 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
39679         bootstrap: support ACLOCAL_FLAGS during aclocal
39680         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
39681         can add additional -I dir for third-party .m4 files.
39683 2010-09-30  Eric Blake  <eblake@redhat.com>
39685         bootstrap: use glibtoolize on MacOS
39686         * build-aux/bootstrap (check_versions): Convert libtool into
39687         libtoolize.
39688         (tool search): Move libtool check earlier, and look for
39689         glibtoolize for MacOS.
39690         (gnulib_tool_options): Auto-add --libtool when appropriate.
39691         Reported by Justin Clift.
39693         poll: fix typo that broke test on MacOS
39694         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
39695         Reported by Justin Clift.
39697         getdate: rename to get_date
39698         Note: getdate.h is not renamed, to minimize client impact.
39699         * modules/getdate: Mark obsolete.  Move old contents...
39700         * modules/get_date: ...to new module name.
39701         * modules/getdate-tests: Move...
39702         * modules/get_date-tests: ...here.
39703         * m4/getdate.m4: Move...
39704         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
39705         * lib/getdate.y: Move...
39706         * lib/get_date.y: ...here.
39707         * tests/test-getdate.c: Move...
39708         * tests/test-get_date.c: ...here.
39709         * doc/posix-functions/getdate.texi (getdate): Update name.
39710         * NEWS: Mention the change.
39712 2010-09-29  Bruno Haible  <bruno@clisp.org>
39714         Separate the module 'waitpid' from the module 'sys_wait'.
39715         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
39716         present.
39717         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
39718         gl_MODULE_INDICATOR_FOR_TESTS.
39719         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
39720         * modules/sys_wait (Depends-on): Remove waitpid.
39721         (Makefile.am): Substitute GNULIB_WAITPID.
39722         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
39723         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
39724         signature only if the 'waitpid' module is present.
39725         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
39726         * NEWS: Mention the change.
39727         * modules/grantpt (Depends-on): Add waitpid.
39728         * modules/wait-process (Depends-on): Likewise.
39730 2010-09-29  Bruno Haible  <bruno@clisp.org>
39732         More tests for module 'sys_wait'.
39733         * modules/sys_wait-c++-tests: New file.
39734         * tests/test-sys_wait-c++.cc: New file.
39735         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
39736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
39738 2010-09-29  Bruno Haible  <bruno@clisp.org>
39740         New module 'waitpid'.
39741         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
39742         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
39743         Don't include <process.h>.
39744         (waitpid): Declare only, using modern idiom.
39745         * m4/waitpid.m4: New file.
39746         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
39747         * modules/waitpid: New file.
39748         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
39749         (Makefile.am): Update.
39750         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
39752 2010-09-28  Bruno Haible  <bruno@clisp.org>
39754         poll: Assume ANSI C.
39755         * lib/poll.c (poll): Use an ANSI C declaration.
39757 2010-09-28  Bruno Haible  <bruno@clisp.org>
39759         poll-h: Create poll.h on all platforms.
39760         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
39761         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
39762         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
39763         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
39764         (gl_REPLACE_POLL_H): Don't set POLL_H.
39765         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
39766         * modules/poll-h (Depends-on): Add include_next.
39767         (Makefile.am): Create poll.h unconditionally. Substitute also
39768         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
39770 2010-09-28  Bruno Haible  <bruno@clisp.org>
39772         Tests for module 'poll-h'.
39773         * modules/poll-h-c++-tests: New file.
39774         * tests/test-poll-h-c++.cc: New file.
39776         Tests for module 'poll-h'.
39777         * modules/poll-h-tests: New file.
39778         * tests/test-poll-h.c: New file.
39780 2010-09-28  Bruno Haible  <bruno@clisp.org>
39782         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
39783         * modules/poll-h (Depends-on): Add 'extensions'.
39785 2010-09-28  Bruno Haible  <bruno@clisp.org>
39787         New module 'poll-h'.
39788         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
39789         (poll): Use modern idiom.
39790         * modules/poll-h: New file.
39791         * modules/poll (Files): Remove lib/poll.in.h.
39792         (Depends-on): Add poll-h.
39793         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
39794         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
39795         * m4/poll_h.m4: New file.
39796         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
39797         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
39798         and invoke gl_REPLACE_POLL_H.
39799         * lib/poll.c: Use common idiom.
39800         * tests/test-poll.c: Likewise.
39801         * doc/posix-headers/poll.texi: Mention the poll-h module.
39802         Suggested by Eric Blake.
39804 2010-09-26  Bruno Haible  <bruno@clisp.org>
39806         sys_wait: Implement WSTOPSIG.
39807         * lib/sys_wait.in.h (WSTOPSIG): New macro.
39808         Reported by Simon Josefsson.
39810 2010-09-26  Simon Josefsson  <simon@josefsson.org>
39812         stdlib, sys_wait: Avoid compilation error on mingw.
39813         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
39815 2010-09-26  Bruno Haible  <bruno@clisp.org>
39817         stdlib tests: Avoid code duplication.
39818         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
39819         * modules/sys_wait-tests (Files): Likewise.
39820         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
39821         * tests/test-stdlib.c: Include test-sys_wait.h.
39822         (main): Invoke test_sys_wait_macros.
39823         * tests/test-sys_wait.c: Include test-sys_wait.h.
39824         (main): Invoke test_sys_wait_macros.
39826 2010-09-25  Simon Josefsson  <simon@josefsson.org>
39828         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
39829         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
39830         sure Windows sockets are working before calling getaddrinfo.
39831         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
39832         * doc/gnulib.texi (Windows sockets): Fix typo.
39834 2010-09-25  Bruno Haible  <bruno@clisp.org>
39836         Tests for module 'regex-quote'.
39837         * modules/regex-quote-tests: New file.
39838         * tests/test-regex-quote.c: New file.
39840         New module 'regex-quote'.
39841         * lib/regex-quote.h: New file.
39842         * lib/regex-quote.c: New file.
39843         * modules/regex-quote: New file.
39844         Suggested by Reuben Thomas <rrt@sc3d.org>.
39846 2010-09-24  Bruno Haible  <bruno@clisp.org>
39848         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
39849         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
39851 2010-09-23  Bruno Haible  <bruno@clisp.org>
39853         setenv: Relax license.
39854         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
39855         Blake.
39856         Requested by Eric Blake.
39858 2010-09-22  Bruno Haible  <bruno@clisp.org>
39860         termios: Relax license.
39861         * modules/termios (License): Change to LGPLv2+.
39862         Requested by Eric Blake.
39864 2010-09-22  Bruno Haible  <bruno@clisp.org>
39866         threadlib: Allow the package to change the default to 'no'.
39867         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
39868         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
39869         Reported by Paul Eggert.
39871 2010-09-22  Pádraig Brady  <P@draigbrady.com>
39872             Bruno Haible  <bruno@clisp.org>
39874         Fix endless loop in mbmemcasecoll.
39875         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
39876         byte.
39877         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
39879 2010-09-22  Bruno Haible  <bruno@clisp.org>
39881         Tests for module 'memcoll'.
39882         * modules/memcoll-tests: New file.
39883         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
39885         memcoll, xmemcoll: Clarify size vs. length.
39886         * modules/memcoll.c (memcoll0): Clarify specification.
39887         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
39888         passed to collate_error.
39890 2010-09-22  Bruno Haible  <bruno@clisp.org>
39892         Tests for module 'memcasecmp'.
39893         * modules/memcasecmp-tests: New file.
39894         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
39896 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39898         * lib/pthread.in.h: Add split double-inclusion guard, and include
39899         system <pthread.h> if there is one.  Use @@-style as in other
39900         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
39901         pthread.h doesn't.
39902         (pthread_mutexattr_destroy, pthread_mutexattr_init):
39903         (pthread_mutexattr_settype, pthread_mutex_trylock):
39904         New static inline functions, if there's no system <pthread.h>.
39905         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
39906         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
39907         Approximate with mutexes if the system lacks spinlocks, as in
39908         MacOS.
39909         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
39910         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
39911         @@-style.  Check for spinlocks separately.
39912         (gl_PTHREAD_DEFAULTS): New macro.
39913         * modules/pthread: Redo to use a more typical style for in.h files.
39915 2010-09-21  Eric Blake  <eblake@redhat.com>
39917         net_if: enhance tests
39918         * tests/test-net_if.c (main): Move signature checks earlier.
39919         Print failures to stderr.
39920         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
39921         Document the bug that we do not yet fix.
39923 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
39925         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
39926         about gnulib, not GSS.
39928 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
39930         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
39931         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
39932         for Emacs.
39933         * build-aux/pmccabe2html: Make Makefile.am example code more
39934         cut-and-paste friendly.
39936 2010-09-21  Simon Josefsson  <simon@josefsson.org>
39938         * tests/test-net_if.c: New file.
39939         * modules/net_if-tests: New file.
39941 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39943         pthread: add pthread_spin_destroy
39944         * lib/pthread.in.h (pthread_spin_destroy): New function.
39946 2010-09-19  Bruno Haible  <bruno@clisp.org>
39948         gnulib-tool: Fix --help output.
39949         * gnulib-tool (func_usage): Fix help message.
39950         Reported by Reuben Thomas <rrt@sc3d.org>.
39952 2010-09-18  Jim Meyering  <meyering@redhat.com>
39954         maint.mk: avoid unexpanded \n in two diagnostics
39955         * top/maint.mk (sc_prohibit_always_true_header_tests):
39956         Don't use a literal \n in a halt=... assignment.  It would not be
39957         expanded, and the two \n bytes would appear in the diagnostic output
39958         rather than the desired newline.  Use halt=$$(printf ... instead.
39959         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
39961 2010-09-18  Bruno Haible  <bruno@clisp.org>
39963         netinet_in: Doc tweak.
39964         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
39965         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
39967 2010-09-18  Jim Meyering  <meyering@redhat.com>
39969         init.sh: correct an outdated comment
39970         * tests/init.sh (create_exe_shims_):  s/function/alias/
39972         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
39973         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
39974         a file named "*.exe" is removed between the glob expansion and the
39975         processing of that oddly named file.
39977 2010-09-17  Eric Blake  <eblake@redhat.com>
39979         mirbsd: add some more support
39980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
39981         in BSD family.
39982         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
39983         devices as OpenBSD.
39984         * m4/host-os.m4 (mirbsd): Add MirBSD.
39986         tests: fix unportable assumption on sys/wait.h
39987         * tests/test-sys_wait.c (main): Relax test.
39988         * tests/test-stdlib.c (main): Likewise.
39990         init.sh: accommodate directory with no .exes
39991         * tests/init.sh: Accomodate directory containing only scripts.
39993         tests: avoid compiler warning
39994         * tests/test-stdlib.c (main): Use the variable.
39996         fdutimens, fdutimensat: update signature, again
39997         * lib/utimens.h (gl_futimens): Delete, and move signature...
39998         (fdutimens): ...here.
39999         (fdutimensat): Rearrange signature.
40000         (lutimensat): Rename variable for clarity.
40001         * lib/fdutimensat.c (fdutimensat): Update signature.
40002         * lib/utimens.c (fdutimens): Likewise.
40003         (gl_futimens): Delete.
40004         (utimens, lutimens): Update callers.
40005         * lib/futimens.c (futimens): Likewise.
40006         * tests/test-fdutimensat.c: Likewise.
40007         * tests/test-utimens.c: Likewise.
40008         * tests/test-futimens.h: Update comment.
40009         * NEWS: Mention this.
40010         Suggested by Paul Eggert.
40012 2010-09-17  Bruno Haible  <bruno@clisp.org>
40014         Take over the maintenance of some older macros from Autoconf.
40015         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
40016         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
40017         GNU Autoconf.
40018         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
40019         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
40021 2010-09-17  Eric Blake  <eblake@redhat.com>
40023         fdutimensat: drop atflag validation
40024         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
40025         with valid fd, to close a race scenario where futimens is
40026         unsupported and FILE was replaced by a symlink.
40027         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
40028         accordingly.
40029         Suggested by Paul Eggert.
40031 2010-09-16  Bruno Haible  <bruno@clisp.org>
40033         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
40034         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
40036 2010-09-16  Bruno Haible  <bruno@clisp.org>
40038         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
40039         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
40040         login_tty exists.
40041         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40043 2010-09-16  Bruno Haible  <bruno@clisp.org>
40045         login_tty: Make the replacement code work on BSD systems.
40046         * lib/login_tty.c: Include <sys/ioctl.h>.
40047         (login_tty): Use ioctl TIOCSCTTY when available.
40048         * modules/login_tty (Depends-on): Add sys_ioctl.
40049         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40051 2010-09-16  Bruno Haible  <bruno@clisp.org>
40053         login_tty: Stricter unit test.
40054         * modules/login_tty-tests (Depends-on): Add tcgetsid.
40055         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
40056         and tcgetsid() after login_tty.
40057         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40059 2010-09-16  Bruno Haible  <bruno@clisp.org>
40061         New module 'tcgetsid'.
40062         * lib/tcgetsid.c: New file.
40063         * m4/tcgetsid.m4: New file.
40064         * modules/tcgetsid: New file.
40065         * modules/termios (Depends-on): Add c++defs, warn-on-use.
40066         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
40067         GNULIB_TCGETSID, HAVE_TCGETSID.
40068         * lib/termios.in.h: Include <sys/types.h>.
40069         (tcgetsid): New declaration.
40070         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
40071         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
40072         * doc/posix-functions/tcgetsid.texi: Mention the new module.
40073         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
40075 2010-09-16  Bruno Haible  <bruno@clisp.org>
40077         Tests for module 'termios'.
40078         * modules/termios-c++-tests: New file.
40079         * modules/termios-tests: New file.
40080         * tests/test-termios-c++.cc: New file.
40081         * tests/test-termios.c: New file.
40083         New module 'termios'.
40084         * modules/termios: New file.
40085         * lib/termios.in.h: New file.
40086         * m4/termios_h.m4: New file.
40087         * doc/posix-headers/termios.texi: Mention the new module.
40089 2010-09-16  Eric Blake  <eblake@redhat.com>
40091         fdutimensat: add an atflag parameter
40092         * lib/fdutimensat.c (fdutimensat): Add new parameter.
40093         * lib/utimens.h (fdutimensat): Update prototype.
40094         * tests/test-fdutimensat.c: Adjust test to match.
40095         * NEWS: Document the change.
40096         Suggested by Paul Eggert.
40098 2010-09-16  Bruno Haible  <bruno@clisp.org>
40100         Fix typos in comments.
40101         * lib/striconveh.h: Fix typo in comment.
40102         * lib/login_tty.c (login_tty): Likewise.
40104 2010-09-15  Bruno Haible  <bruno@clisp.org>
40106         stdlib: clarify MirBSD WEXITSTATUS bug
40107         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
40108         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40110 2010-09-15  Eric Blake  <eblake@redhat.com>
40112         stdlib: work around MirBSD WEXITSTATUS bug
40113         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
40114         * modules/stdlib (Depends-on): Add sys_wait.
40115         * tests/test-sys_wait.c (main): Enhance test.
40116         * tests/test-stdlib.c (main): Likewise.
40117         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
40119         docs: mention MacOS issue with WEXITSTATUS(constant)
40120         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
40121         issue.
40122         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40124         strnlen: add tests
40125         * modules/strnlen-tests: New file.
40126         * tests/test-strnlen.c: Likewise.
40128 2010-09-14  Bruno Haible  <bruno@clisp.org>
40130         unistr/base: Avoid link errors when module 'libunistring' is also used.
40131         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
40132         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
40133         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
40134         Declare also when HAVE_LIBUNISTRING is set.
40135         Reported by Pádraig Brady <P@draigbrady.com>.
40137 2010-09-14  Eric Blake  <eblake@redhat.com>
40139         test-rawmemchr: make more robust
40140         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
40141         (Depends-on, configure.ac): Add needed prerequisites to use it.
40142         * modules/memchr-tests (Files, Depends-on, configure.ac):
40143         Likewise, to avoid implicit reliance on memchr module prereqs.
40144         * tests/test-memchr.c (main): Ensure proper masking.
40145         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
40146         reads.
40148         memchr: detect glibc Alpha bug
40149         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
40150         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
40151         Alpha.
40152         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
40153         * tests/test-memchr.c (main): Enhance test.
40154         Reported by Nelson H. F. Beebe.
40156 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40158         fts, getcwd, glob: audit for dirfd returning -1
40159         * lib/fts.c (opendir): Remove #define; no longer used.
40160         (opendirat): New arg PDIR_FD.  All callers changed.
40161         (fts_build, _opendir2): Use new opendirat to avoid the need for
40162         dirfd, or for checking whether dirfd returns a negative value.
40163         Don't use opendir; always use openat followed by fdopendir.
40164         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
40165         it.
40166         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
40167         returns -1 here.
40168         * modules/fts (Depends-on): Remove dirfd.
40169         * modules/getcwd (Depends-on): Likewise.
40171 2010-09-13  Eric Blake  <eblake@redhat.com>
40173         float: fix broken MirBSD header
40174         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
40175         * doc/posix-headers/float.texi (float.h): Document it.
40177 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40179         fts: use O_NOFOLLOW to avoid race condition when opening a directory
40180         * lib/fts.c (opendirat): New arg extra_flags.
40181         (__opendir2): Use it to avoid following symlinks when opening
40182         a directory, if symlinks are not supposed to be followed.  See
40183         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
40185         fdopendir: preserve argument fd before returning
40186         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
40187         (fdopendir_with_dup, fd_clone_opendir): New static functions.
40188         (fdopendir): Use them, arranging for FD to be open to the same
40189         directory that it was when it started.  (It might be temporarily
40190         closed while fdopendir is running, so this not thread- or
40191         signal-safe.)  Be careful to do the right thing even when file
40192         descriptors are scarce and dup fails with errno == EMFILE.  See
40193         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
40195 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
40197         regex: Pass the system regex if its only problem is 32-bit regoff_t.
40198         * NEWS: Document change.
40199         * m4/regex.m4: Disable test for regoff_t size.
40201 2010-09-13  Jim Meyering  <meyering@redhat.com>
40203         fts: don't operate on an invalid file descriptor after failed dup
40204         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
40205         negative file descriptor.
40207 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
40209         savedir: add streamsavedir, deprecate fdsavedir
40210         * NEWS: Mention deprecation of fdsavedir.
40211         * lib/savedir.c (streamsavedir): New extern function, whose name
40212         ends in "savedir" to be consistent with the others.  This differs
40213         from savedirstream in that it doesn't close its argument.  The
40214         next version of GNU tar will use this instead of fdsavedir, to
40215         avoid some race conditions and conserve file descriptors.
40216         (savedirstream): Reimplement as a wrapper around streamsavedir.
40217         (fdsavedir): Add a comment deprecating this function.  As far as
40218         I know, only GNU tar used it, and GNU tar doesn't need it any more.
40219         * lib/savedir.h (streamsavedir): New decl.
40220         (fdsavedir): Add a comment deprecating this.
40222 2010-09-10  Bruno Haible  <bruno@clisp.org>
40224         langinfo: Fix last commit.
40225         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
40226         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
40227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40229 2010-09-10  Bruno Haible  <bruno@clisp.org>
40231         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
40232         * lib/progreloc.c (O_EXEC): Define fallback.
40234 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
40236         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
40237         * NEWS: Document recent changes to fcntl-h.
40238         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
40239         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
40240         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
40241         Similarly for O_SEARCH; this last was already true, but not documented.
40242         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
40243         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
40244         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
40245         Likewise.
40246         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
40247         is zero, not whether it is defined.
40248         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
40249         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
40250         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
40252 2010-09-10  Bruno Haible  <bruno@clisp.org>
40254         langinfo, nl_langinfo: Fix for IRIX 5.3.
40255         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
40256         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
40257         HAVE_LANGINFO_YESEXPR.
40258         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
40259         HAVE_LANGINFO_YESEXPR.
40260         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
40261         HAVE_LANGINFO_T_FMT_AMPM is 0.
40262         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
40263         HAVE_LANGINFO_YESEXPR is 0.
40264         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
40265         NOEXPR.
40266         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
40267         * doc/posix-functions/nl_langinfo.texi: Likewise.
40268         Reported by Eric Blake.
40270 2010-09-10  Bruno Haible  <bruno@clisp.org>
40272         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
40273         * doc/glibc-functions/login_tty.texi: Mention the include file problem
40274         on FreeBSD 8.0 and OpenBSD 4.6.
40275         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
40276         * m4/pty_h.m4 (gl_PTY_H): Likewise.
40277         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
40278         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
40279         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
40280         ac_includes_default.
40281         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40283 2010-09-09  Eric Blake  <eblake@redhat.com>
40285         strsignal: work around NetBSD bug
40286         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
40287         * lib/string.in.h (includes): Likewise.
40288         * doc/posix-functions/strsignal.texi (strsignal): Document the
40289         bug.
40290         Reported by Nelson H. F. Beebe.
40292         gnulib-tool: work with NetBSD /bin/sh
40293         * gnulib-tool (func_cache_var, func_cache_lookup_module)
40294         (func_get_description, func_get_comment, func_get_status)
40295         (func_get_notice, func_get_applicability, func_get_filelist)
40296         (func_get_dependencies, func_get_autoconf_early_snippet)
40297         (func_get_autoconf_snippet, func_get_automake_snippet)
40298         (func_get_include_directive, func_get_link_directive)
40299         (func_get_license, func_get_maintainer, func_import): Avoid
40300         shell syntax errors from parsing syntax extensions.
40302 2010-09-09  Bruno Haible  <bruno@clisp.org>
40304         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
40305         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
40306         a reliable way to determine whether the 'alias' command works.
40308 2010-09-08  Jim Meyering  <meyering@redhat.com>
40310         init.sh: penalize a set-x-impaired shell; don't disqualify it
40311         * tests/init.sh: Too many shells corrupt application stderr when
40312         you set -x, so we can't afford to disqualify them, since at least
40313         on Irix-6.5, that would disqualify all bourne shells.
40314         Instead, use a two-pass approach.
40315         On the first pass, try to find a shell that meets the stricter
40316         condition that set -x does not corrupt stderr.
40317         If no shell meets the stricter condition, retest each candidate
40318         shell, but without that extra condition.  Finally, when
40319         VERBOSE=yes is requested and set -x might cause trouble, simply
40320         issue a warning and refrain from enabling debug output.
40322 2010-09-08  Eric Blake  <eblake@redhat.com>
40324         unsetenv: fix OpenBSD bug
40325         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
40326         * doc/posix-functions/unsetenv.texi (unsetenv): Update
40327         documentation.
40328         Reported by Jim Meyering.
40330         strtod: work around IRIX 6.5 bug
40331         * lib/strtod.c (strtod): Reparse number on shorter string if
40332         exponent parse was invalid.
40333         * tests/test-strtod.c (main): Add check for "0x1p 2".
40334         Reported by Tom G. Christensen.
40336         getopt: optimize previous patch
40337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
40338         empty variable.  Speed up awk script.
40339         Reported by Paolo Bonzini.
40341 2010-09-08  Jim Meyering  <meyering@redhat.com>
40343         test.sh: disqualify shells for which set -x corrupts stderr
40344         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
40345         and OpenBSD 4.7.  They make it so with "set -x", environment settings
40346         appear in stderr output.  For example, this command:
40347             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
40348         prints "P=1" on those two systems:
40350 2010-09-08  Bruno Haible  <bruno@clisp.org>
40352         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
40353         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
40354         commands, because some shells ignore redirections when there is an
40355         error in the command lookup.
40356         Reported by Eric Blake.
40358 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
40360         * lib/regex.h: Fix a mention of `regex_compile' (should be
40361         `re_compile_pattern').
40362         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
40363         (re_set_registers): Correct name of parameter in comment.
40365         * doc/regex.texi: Add documentation for missing syntax flags.
40366         Remove commented-out documentation of defunct syntax option
40367         RE_NO_EMPTY_ALTS.
40368         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
40369         Add documentation of re_set_registers.
40370         Document trick to re-use a pattern buffer by setting fastmap manually.
40371         Update documentation of struct re_pattern_buffer per public members.
40372         Uncomment documentation of equivalence class operators and
40373         collating symbol operators, since they are now implemented,
40374         Explain leftmost-longest matching in relation to alternatives.
40375         Tidy documentation of substring matching.
40376         Remove POSIX documentation, which is done better in
40377         glibc, and refer the reader there. Keep BSD API documentation, as
40378         that is not readily available elsewhere.
40380 2010-09-07  Eric Blake  <eblake@redhat.com>
40382         getopt: handle POSIXLY_CORRECT set but not exported
40383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
40384         export state of POSIXLY_CORRECT, due to bash set -o posix.
40385         Reported by Dustin J. Mitchell.
40387 2010-09-05  Bruno Haible  <bruno@clisp.org>
40389         gnulib-tool: Highlight the changed options.
40390         * gnulib-tool (func_usage): Display the --import, --add-import,
40391         --remove-import explanations in bold font.
40393 2010-09-06  Karl Berry  <karl@gnu.org>
40395         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
40397 2010-09-05  Bruno Haible  <bruno@clisp.org>
40399         uniwidth/width: Update comment.
40400         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
40401         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
40403 2010-09-05  Bruno Haible  <bruno@clisp.org>
40405         isinf, isnan: Relax license.
40406         * modules/isinf (License): Change from GPL to LGPL, with consent from
40407         Ben Pfaff.
40408         * modules/isnan (License): Likewise.
40409         Requested by Ludovic Courtès.
40411 2010-09-04  Bruno Haible  <bruno@clisp.org>
40413         gnulib-tool: Help migration from --import to --add-import or --update.
40414         * gnulib-tool: Emit a verbose error message when --import is used
40415         without any module name.
40417 2010-09-04  Bruno Haible  <bruno@clisp.org>
40419         Update doc about gnulib-tool.
40420         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
40421         'gnulib-tool --update' in more detail.
40422         Reported by Eric Blake.
40424 2010-09-04  Bruno Haible  <bruno@clisp.org>
40426         gnulib-tool: Change --import. New options --add/remove-import.
40427         * gnulib-tool: New options --add-import, --remove-import.
40428         (func_usage): Document them.
40429         (have_associative): Define always.
40430         (func_import): In import mode, don't merge the specified settings with
40431         the cached settings. Implement remove-import mode.
40432         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
40433         Explain when to use them versus --import.
40434         (Simple update): Use --add-import instead of --import.
40435         * NEWS: Mention the change.
40437 2010-09-04  Bruno Haible  <bruno@clisp.org>
40439         * doc/gnulib-tool.texi (Initial import): Update paragraph about
40440         separate gnulib.mk.
40442 2010-09-04  Bruno Haible  <bruno@clisp.org>
40444         gnulib-tool: Don't talk about CVS any more.
40445         * gnulib-tool (func_usage, func_import): Write "version control"
40446         instead of CVS.
40448 2010-09-04  Jim Meyering  <meyering@redhat.com>
40450         maint.mk: avoid obscure sc_copyright_check failure in coreutils
40451         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
40452         false positives (whose names may be ill-chosen) when searching
40453         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
40454         would cause a false-positive.
40456         avoid coreutils "make distcheck" failure
40457         Coreutils tests with an absolute build directory name that contains
40458         a space.  Not quoting this directory name caused a failure.
40459         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
40460         * tests/test-vc-list-files-cvs.sh: Likewise.
40462 2010-09-04  Bruno Haible  <bruno@clisp.org>
40464         gnulib-tool: Avoid error when run in a package without Makefile.am.
40465         * gnulib-tool: When collecting the m4dirs in a package that does not
40466         have a Makefile.am, eliminate those directories that contain no
40467         gnulib-cache.m4. Fix expression that counts these directories.
40469 2010-09-04  Bruno Haible  <bruno@clisp.org>
40471         update-copyright test: Improve output when perl is missing or too old.
40472         * tests/test-update-copyright.sh: Move test of Perl version down after
40473         the test whether Perl exists. Provide an explanation relating Perl's
40474         error message to Automake's SKIP: message.
40476 2010-09-04  Bruno Haible  <bruno@clisp.org>
40478         Don't augment PATH in TESTS_ENVIRONMENT.
40479         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
40480         set abs_aux_dir instead of augmenting PATH.
40481         * modules/vc-list-files-tests (Makefile.am): Likewise.
40482         * tests/test-update-copyright.sh: Augment PATH here.
40483         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
40484         path_prepend_.
40485         * tests/test-vc-list-files-git.sh: Likewise.
40487 2010-09-04  Jim Meyering  <meyering@redhat.com>
40489         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
40490         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
40492 2010-09-04  Bruno Haible  <bruno@clisp.org>
40494         strdup: Fix compilation error in C++ mode.
40495         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
40496         the macro.
40498 2010-09-04  Bruno Haible  <bruno@clisp.org>
40500         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
40501         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
40502         macro into a function.
40503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
40505 2010-09-04  Bruno Haible  <bruno@clisp.org>
40507         Set PATH_SEPARATOR the same way autoconf does.
40508         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
40509         the value of PATH_SEPARATOR the same way autoconf-generated configure
40510         scripts do.
40511         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
40512         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40514 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40516         Set PATH_SEPARATOR the same way autoconf does.
40517         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
40518         the same way autoconf-generated configure scripts do.
40519         * posix-modules: Likewise.
40521 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
40523         hash: fix safe_hasher const typo
40524         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
40525         const; otherwise, there is a type error later.
40527 2010-09-02  Jim Meyering  <meyering@redhat.com>
40529         test-update-copyright.sh: require perl 5.8.0
40530         * tests/test-update-copyright.sh: Require 5.8.0,
40531         which Tom G. Christensen has confirmed is adequate,
40532         while 5.6.1 is not.
40534 2010-09-02  Eric Blake  <eblake@redhat.com>
40536         tests: init.sh improvements for re-exec'ing with zsh
40537         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
40538         -vx through shell re-exec.
40539         Reported by Tom G. Christensen.
40541         wctype: fix typo in previous commit
40542         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
40543         Reported by Ludovic Courtès.
40545 2010-09-02  Jim Meyering  <meyering@redhat.com>
40547         test-update-copyright.sh: skip test if Perl is too old
40548         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
40549         Reported by Tom G. Christensen.
40551 2010-09-02  Bruno Haible  <bruno@clisp.org>
40553         wctype: Avoid compilation error on IRIX 6.5.30.
40554         * lib/wctype.in.h (iswblank): Declare with a replacement if
40555         REPLACE_ISWBLANK is set.
40556         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
40557         declared. Set REPLACE_ISWBLANK.
40558         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
40559         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
40560         * doc/posix-headers/wctype.texi: Likewise.
40561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40563 2010-09-01  Bruno Haible  <bruno@clisp.org>
40565         New module 'socketlib'.
40566         * modules/socketlib: New file.
40567         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
40568         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
40569         * modules/sockets (Depends-on): Add socketlib.
40570         Suggested by Sam Steingold <sds@gnu.org>.
40572 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40574         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
40576         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
40577         when one needs search access to a directory but not read access.
40578         On systems where it is available, it works in some cases where
40579         O_RDONLY does not, namely on directories that are searchable but
40580         not readable, and which need only to be searchable.  If O_SEARCH
40581         is not available, fall back to the traditional method of using
40582         O_RDONLY.
40584         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
40585         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
40586         when opening a directory that needs only to be searchable.
40587         * lib/chdir-safer.c (chdir_no_follow): Likewise.
40588         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
40589         * lib/openat-proc.c (openat_proc_name): Likewise.
40590         * lib/openat.c (openat_needs_fchdir): Likewise.
40591         * lib/save-cwd.c (save_cwd): Likewise.
40592         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
40594 2010-08-28  Bruno Haible  <bruno@clisp.org>
40596         New module 'host-cpu-c-abi'.
40597         * modules/host-cpu-c-abi: New file.
40598         * m4/host-cpu-c-abi.m4: New file, based on part of
40599         clisp/src/m4/general.m4.
40600         Requested by Sam Steingold <sds@gnu.org>.
40602 2010-08-31  Eric Blake  <eblake@redhat.com>
40603         and Jim Meyering  <meyering@redhat.com>
40605         hash: factor, and guard against misbehaving hasher function
40606         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
40607         of table->hasher's return value.  Also protect against a hash value
40608         so large that adding it to table->bucket results in a NULL pointer.
40609         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
40610         Use it in place of open-coded check-and-abort.
40612 2010-08-30  Bruno Haible  <bruno@clisp.org>
40614         hash: silence spurious clang warning
40615         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
40616         Reported by Eric Blake.
40618 2010-08-30  Eric Blake  <eblake@redhat.com>
40620         strstr, memmem, strcasestr: avoid leaked shell message
40621         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
40622         FreeBSD.
40623         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40624         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40626         tests: silence clang warning
40627         * tests/test-malloca.c (do_allocation): Avoid dead store.
40629 2010-08-29  Bruno Haible  <bruno@clisp.org>
40631         gettext: Fix recent mistake.
40632         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
40634 2010-08-29  Bruno Haible  <bruno@clisp.org>
40636         selinux-h: Offer a --without-selinux option.
40637         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
40638         --without-selinux was specified, skip all tests and define
40639         HAVE_SELINUX_SELINUX_H to 0.
40640         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
40641         set LIB_SELINUX to empty.
40642         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
40643         gl_LIBSELINUX. If --without-selinux was specified, replace
40644         selinux/context.h.
40645         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
40647 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40648             Bruno Haible  <bruno@clisp.org>
40650         Make the module 'realloc-gnu' work again on AIX and OSF/1.
40651         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
40652         of HAVE_REALLOC.
40653         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
40654         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
40655         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
40656         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
40658 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40659             Bruno Haible  <bruno@clisp.org>
40661         Make the module 'calloc-gnu' work again on AIX and OSF/1.
40662         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
40663         HAVE_CALLOC.
40664         * lib/xmalloc.c: Update accordingly.
40665         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
40666         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
40667         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
40669 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40670             Bruno Haible  <bruno@clisp.org>
40672         Make the module 'malloc-gnu' work again on AIX and OSF/1.
40673         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
40674         HAVE_MALLOC.
40675         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
40676         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
40677         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
40679 2010-08-29  Bruno Haible  <bruno@clisp.org>
40681         Update modules list.
40682         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40683         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
40684         (String handling <string.h>): Add astrxfrm.
40685         (File system functions): Add readlinkat.
40687 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40689         Tests for module 'realloc-gnu'.
40690         * modules/realloc-gnu-tests: New file.
40691         * tests/test-realloc-gnu.c: New file.
40693         Tests for module 'calloc-gnu'.
40694         * modules/calloc-gnu-tests: New file.
40695         * tests/test-calloc-gnu.c: New file.
40697         Tests for module 'malloc-gnu'.
40698         * modules/malloc-gnu-tests: New file.
40699         * tests/test-malloc-gnu.c: New file.
40701 2010-08-28  Bruno Haible  <bruno@clisp.org>
40703         Rename module 'realloc' -> 'realloc-gnu'.
40704         * modules/realloc-gnu: New file, copied from modules/realloc.
40705         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
40706         obsolete.
40707         * modules/mgetgroups (Depends-on): Update.
40708         * doc/posix-functions/realloc.texi: Update.
40709         * NEWS: Mention the change.
40711         Rename module 'calloc' -> 'calloc-gnu'.
40712         * modules/calloc-gnu: New file, copied from modules/calloc.
40713         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
40714         obsolete.
40715         * doc/posix-functions/calloc.texi: Update.
40716         * NEWS: Mention the change.
40718         Rename module 'malloc' -> 'malloc-gnu'.
40719         * modules/malloc-gnu: New file, copied from modules/malloc.
40720         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
40721         obsolete.
40722         * modules/argp (Depends-on): Update.
40723         * modules/regex (Depends-on): Update.
40724         * doc/posix-functions/malloc.texi: Update.
40725         * NEWS: Mention the change.
40727 2010-08-28  Eric Blake  <eblake@redhat.com>
40729         pread, pwrite: add missing dependency
40730         * modules/pread (Depends-on): Add extensions.
40731         * modules/pwrite (Depends-on): Likewise.
40733 2010-08-28  Bruno Haible  <bruno@clisp.org>
40735         unistr/u*-strchr: Fix tests dependencies.
40736         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
40737         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
40738         Reported by Ian Beckwith <ianb@erislabs.net>.
40740 2010-08-28  Bruno Haible  <bruno@clisp.org>
40742         read-file: Don't occupy too much unused memory.
40743         * lib/read-file.c (fread_file): Shrink the buffer at the end.
40745 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
40746             Eric Blake  <eblake@redhat.com>
40747             Bruno Haible  <bruno@clisp.org>
40749         read-file: Avoid memory reallocations with regular files.
40750         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
40751         (fread_file): With regular files, use the remaining length as the
40752         initial buffer size.  Check against overflow.
40753         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
40754         sys_stat.
40756 2010-08-28  Bruno Haible  <bruno@clisp.org>
40758         ftello: Relax license.
40759         * modules/ftello (License): Relax to LGPLv2+.
40760         Reported by Eric Blake.
40762 2010-08-28  Bruno Haible  <bruno@clisp.org>
40764         Avoid relocwrapper link errors due to gnulib replacement functions.
40765         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
40766         function.
40767         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40769 2010-08-28  Bruno Haible  <bruno@clisp.org>
40771         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
40772         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
40773         defined.
40774         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
40775         Suggested by Eric Blake.
40777 2010-08-28  Bruno Haible  <bruno@clisp.org>
40779         sys_socket, netdb: Ensure socklen_t gets defined.
40780         * modules/sys_socket (Depends-on): Add socklen.
40781         * modules/netdb (Depends-on): Likewise.
40782         * modules/getaddrinfo (Depends-on): Remove socklen.
40783         * modules/getsockopt (Depends-on): Likewise.
40784         * modules/setsockopt (Depends-on): Likewise.
40785         * tests/test-sys_socket.c: Check that socklen_t is defined.
40786         * tests/test-netdb.c: Likewise.
40787         * m4/socklen.m4: Update comments.
40788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40790 2010-08-27  Eric Blake  <eblake@redhat.com>
40792         login_tty: add missing dependency
40793         * modules/login_tty (Depends-on): Add pty.
40795 2010-08-26  Eric Blake  <eblake@redhat.com>
40797         lib-symbol-versions: fix m4 quoting
40798         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
40799         format for AC_LINK_IFELSE.
40801         glob: fix compile test
40802         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
40804         btowc: fix missing file
40805         * modules/btowc (Files): Also ship locale-fr.m4.
40807         lseek: fix link test
40808         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
40809         AC_LINK_IFELSE.
40811         include_next: silence autoconf 2.68 warning
40812         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
40813         AC_COMPILE_IFELSE as special.
40814         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
40815         autoconf < 2.68.
40817         acl: fix compilation test
40818         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
40819         AC_COMPILE_IFELSE.
40821 2010-08-26  Bruno Haible  <bruno@clisp.org>
40823         Modernize AC_TRY_RUN invocations.
40824         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
40825         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
40826         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
40827         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
40828         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
40829         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
40830         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
40831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40832         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40833         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
40834         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
40835         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40836         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
40837         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40838         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
40839         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
40840         gl_MBRLEN_NUL_RETVAL): Likewise.
40841         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40842         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40843         Likewise.
40844         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40845         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40846         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
40847         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
40848         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
40849         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
40850         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
40851         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
40852         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
40853         Likewise.
40854         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40855         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
40856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40857         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40858         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40859         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
40860         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
40861         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
40862         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40865 2010-08-26  Bruno Haible  <bruno@clisp.org>
40867         Modernize AC_TRY_LINK invocations.
40868         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
40869         AC_TRY_LINK.
40870         * m4/argp.m4 (gl_ARGP): Likewise.
40871         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
40872         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
40873         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40874         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40875         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40876         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
40877         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
40878         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
40879         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40880         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40881         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40882         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
40883         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
40884         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40885         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40886         * m4/hostent.m4 (gl_HOSTENT): Likewise.
40887         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
40888         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
40889         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40890         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
40891         Likewise.
40892         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
40893         Likewise.
40894         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
40895         Likewise.
40896         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
40898         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
40899         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40900         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
40901         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
40902         * m4/servent.m4 (gl_SERVENT): Likewise.
40903         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
40904         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
40905         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
40906         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
40907         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40908         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
40909         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
40910         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40911         * modules/tsearch-tests (configure.ac): Likewise.
40913 2010-08-26  Bruno Haible  <bruno@clisp.org>
40915         Modernize AC_TRY_COMPILE invocations.
40916         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
40917         AC_TRY_COMPILE.
40918         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
40919         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
40920         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40921         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40922         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40923         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40924         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40925         * m4/lock.m4 (gl_LOCK): Likewise.
40926         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
40927         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40928         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
40929         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40930         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40931         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
40932         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
40934         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40935         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40936         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40937         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40938         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
40939         extraneous semicolon.
40941 2010-08-26  Jim Meyering  <meyering@redhat.com>
40943         stat-time: relax license LGPL
40944         * modules/stat-time (License): Change from GPL to LGPL,
40945         with consent from all contributors, for use in libguile.
40946         Requested by Ludovic Courtès.
40948 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
40950         poll: return immediately on POLLHUP.
40951         * lib/poll.c (poll): Always set timeout before wait_timeout is
40952         computed.
40954 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40956         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
40957         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
40958         rmdir ("dir/.//"), unlinkat.
40960 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40962         stdbool: avoid spurious failure with modern xlc
40963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
40965 2010-08-24  Bruno Haible  <bruno@clisp.org>
40967         getloadavg: simplify code
40968         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
40969         gl_have_func. Update comments.
40971 2010-08-24  Eric Blake  <eblake@redhat.com>
40973         getloadavg: don't define SVR4 on cygwin
40974         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
40975         only define SVR4 when -lkvm is required.
40976         Reported by Yaakov Selkowitz.
40978 2010-08-24  Bruno Haible  <bruno@clisp.org>
40980         priv-set: fix comment
40981         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
40983 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40985         priv-set: fix comments
40986         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
40987         to match code, as suggested by David Bartley in:
40988         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
40990 2010-08-23  Eric Blake  <eblake@redhat.com>
40992         stdbool: avoid rejecting clang
40993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
40994         * tests/test-stdbool.c: Enable more tests if using the system
40995         <stdbool.h> instead of the gnulib replacement.
40996         (main): Move xlc bug test to a runtime test for all compilers.
40997         Reported by Anders Kaseorg.
40999         argz: fix shell quoting issue
41000         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
41001         Reported by Charles Wilson.
41003 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
41004             Erik Faye-Lund <kusmabite@gmail.com>
41006         poll, select: handle ERROR_BROKEN_PIPE.
41007         * lib/poll.c (win32_compute_revents): Return POLLHUP when
41008         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
41009         * lib/select.c (win32_compute_revents): Do not mark a pipe
41010         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
41012 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
41014         fts: allow compilation with C++
41015         * lib/fts_.h: Specify extern "C" linkage with C++.
41017 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41019         Fix gnulib-tool sed script de-commentation for AIX sed.
41020         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
41021         sed.
41023 2010-08-17  Eric Blake  <eblake@redhat.com>
41025         test-stddef: test for (some) offsetof bugs
41026         * tests/test-stddef.c: Enhance test to ensure correct type of
41027         offsetof.
41028         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
41029         that we are not fixing at this time.
41031 2010-08-15  Bruno Haible  <bruno@clisp.org>
41033         stpncpy: Allow stpncpy to be defined as a macro.
41034         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
41035         if it's already correctly declared.
41036         * lib/string.in.h (stpncpy): Undefine before redefining.
41037         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
41039 2010-08-14  Bruno Haible  <bruno@clisp.org>
41041         Rename module 'memxfrm' to 'amemxfrm'.
41042         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
41043         (amemxfrm): Renamed from memxfrm.
41044         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
41045         (amemxfrm): Renamed from memxfrm.
41046         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
41047         * NEWS: Mention the change.
41048         * MODULES.html.sh (String handling <string.h>): Update.
41049         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
41050         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
41051         * lib/unicase/u16-casexfrm.c: Likewise.
41052         * lib/unicase/u32-casexfrm.c: Likewise.
41053         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
41054         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
41055         * lib/uninorm/u16-normxfrm.c: Likewise.
41056         * lib/uninorm/u32-normxfrm.c: Likewise.
41057         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
41058         memxfrm.
41059         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
41060         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
41061         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
41062         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
41063         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
41064         Suggested by Paul Eggert.
41066 2010-08-14  Bruno Haible  <bruno@clisp.org>
41068         Tests for module 'astrxfrm'.
41069         * modules/astrxfrm-tests: New file.
41070         * tests/test-astrxfrm.c: New file.
41072         New module 'astrxfrm'.
41073         * lib/astrxfrm.h: New file.
41074         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
41075         * modules/astrxfrm: New file.
41077 2010-08-14  Reuben Thomas <rrt@sc3d.org>
41079         regex: Tweak doc.
41080         * doc/regex.texi (Overview): Don't mention regex.c.
41081         (GNU Regular Expression Compiling): Likewise.
41082         (Match-end-of-line Operator): Mention 'not_eol'.
41084 2010-08-14  Brian Gough  <bjg@gnu.org>
41085             Bruno Haible  <bruno@clisp.org>
41087         git-merge-changelog: add doc relating to use with bzr and hg.
41088         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
41090 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
41092         pthread: fix pthread.h creation for srcdir != builddir
41093         * modules/pthread (Makefile.am): Fix the rule to work also in a
41094         non-srcdir build.
41096 2010-08-13  Karl Berry  <karl@gnu.org>
41098         * doc/regex.texi (Predefined Syntaxes): @smallexample.
41099         * doc/posix-*/*: force line break before @url of POSIX
41100         specifications.
41101         Suggested by Werner Lemberg.
41103 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41105         strtod: fix const diagnostic
41106         * lib/strtod.c (strtod): Don't assign const char * to char *,
41107         as this elicits a warning from GCC when warnings are enabled.
41109 2010-08-10  Pádraig Brady <P@draigbrady.com>
41110         and Eric Blake  <eblake@redhat.com>
41112         copy-acl: ignore ENOTSUP on HP-UX
41113         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
41114         so that it is available for HP-UX.
41115         * lib/copy-acl.c (qcopy_acl): Use it.
41116         Reported by Patrick M. Callahan.
41118 2010-08-10  Eric Blake  <eblake@redhat.com>
41120         open, chown: relax license
41121         * modules/open (License): Change to LGPLv2+, with consent by all
41122         authors, for use in augeas.
41123         * modules/chown (License): Likewise.
41124         * modules/lchown (Likewise): Likewise.
41125         Requested by Adam Stokes.
41127 2010-08-09  Karl Berry  <karl@gnu.org>
41129         * build-aux/ar-lib: new file, import from Automake.
41130         * config/srclist.txt: autocheck for updates.
41132 2010-08-09  Eric Blake  <eblake@redhat.com>
41134         readlinkat: adjust client modules
41135         * modules/areadlinkat (Depends-on): Use readlinkat, not
41136         symlinkat.
41137         * modules/areadlinkat-with-size (Depends-on): Likewise.
41139         mknod: be more vocal about danger of running tests as root
41140         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
41141         root, since that is just asking for problems.
41142         Suggested by Bruno Haible, based on a report by Rainer Tammer.
41144         readlinkat: split into its own module
41145         * modules/symlinkat: Split readlinkat...
41146         * modules/readlinkat: ...into separate module.
41147         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
41148         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
41149         * lib/symlinkat.c (readlinkat): Move...
41150         * lib/readlinkat.c: ...into new file.
41151         * modules/symlinkat-tests: Split readlinkat test...
41152         * modules/readlinkat-tests: ...into separate module.
41153         * tests/test-symlinkat.c: Split...
41154         * tests/test-readlinkat.c: ...into new file.
41155         * NEWS: Document the split.
41156         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41157         * lib/unistd.in.h (readlinkat): Likewise.
41158         Suggested by Bruno Haible.
41160 2010-08-08  Bruno Haible  <bruno@clisp.org>
41162         memxfrm: Speed up.
41163         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
41164         that usually only one call to strxfrm is necessary for each string
41165         part.
41166         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41168 2010-08-07  Karl Berry  <karl@gnu.org>
41170         * doc/posix-headers/limits.texi,
41171         * doc/posix-functions/malloc.texi,
41172         * doc/posix-functions/strsignal.texi: missing @item.
41173         * doc/ld-version-script.texi: spurious leading i.
41174         * doc/regex.texi (Interval Operators): no commas inside @var.
41176 2010-08-01  Bruno Haible  <bruno@clisp.org>
41178         Integrate the regex documentation.
41179         * doc/gnulib.texi: Define 'cn' index.
41180         (Regular expressions): New a chapter that includes regex.texi and
41181         regexprops-generic.texi.
41182         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
41183         syntax.
41185         Whitespace cleanup.
41186         * doc/regex.texi: Remove trailing spaces.
41188         Add regex documentation.
41189         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
41190         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
41191         Written by Kathy A. Hargreaves and Karl Berry.
41193 2010-08-01  Bruno Haible  <bruno@clisp.org>
41195         link: Update documentation.
41196         * doc/posix-functions/link.texi: Update regarding Solaris.
41198 2010-07-31  Bruno Haible  <bruno@clisp.org>
41200         Update modules list.
41201         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
41202         (String handling <string.h>): Add memcmp2, memxfrm.
41203         (Container data structures): Add xlist, xsublist, xoset.
41204         (Core language properties): Add alignof, unused-parameter.
41205         (Process control, Numeric conversion functions <stdlib.h>): Renamed
41206         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
41207         (Unibyte characters <ctype.h>): New section.
41208         (String handling <string.h>): New section.
41209         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
41210         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
41211         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
41212         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
41213         tan, tanh, tanl, y0, y1, yn.
41214         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
41215         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
41216         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
41217         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
41218         unlockpt, vdprintf, vdprintf-posix.
41219         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
41220         (File system functions): Add concat-filename, sys_file, sys_ioctl,
41221         xconcat-filename.
41222         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
41223         getdtablesize, pipe2, pipe2-safer.
41224         (Security): New section.
41225         (Networking functions): Add accept4.
41226         (Signal handling): Add sigpipe.
41227         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
41228         mbmemcasecoll.
41229         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
41230         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
41231         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
41232         pipe-filter-ii.
41233         (Misc): Add argp-version-etc, login_tty, parse-duration.
41235 2010-07-31  Bruno Haible  <bruno@clisp.org>
41237         Improve doc in MODULES.html.
41238         * modules/linkat (Description): Add the word "function".
41239         * modules/mkfifo (Description): Likewise.
41240         * modules/mknod (Description): Likewise.
41241         * modules/remove (Description): Likewise.
41242         * modules/renameat (Description): Likewise.
41243         * modules/stat (Description): Likewise.
41244         * modules/symlink (Description): Likewise.
41245         * modules/unlink (Description): Likewise.
41247 2010-07-31  Bruno Haible  <bruno@clisp.org>
41249         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
41250         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
41251         option --enable/disable-c++ instead of --enable/disable-cxx.
41252         * NEWS: Mention the change.
41254 2010-07-31  Bruno Haible  <bruno@clisp.org>
41256         readlink, areadlink: Relax test a bit.
41257         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
41258         alternative to ENOTDIR.
41259         * tests/test-areadlink.h (test_areadlink): Likewise.
41260         Reported by Rainer Tammer.
41262 2010-07-31  Bruno Haible  <bruno@clisp.org>
41264         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
41265         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
41266         character, perform the search using U_STRCHR.
41267         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
41268         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
41269         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
41270         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
41271         Suggested by Paolo Bonzini.
41273 2010-07-31  Bruno Haible  <bruno@clisp.org>
41275         unistr/u*-strstr: Fix dependencies.
41276         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
41277         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
41278         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
41280 2010-07-31  Bruno Haible  <bruno@clisp.org>
41282         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
41283         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
41284         the beginning of the loop.
41285         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
41286         cases in 'switch' statement.
41288         unistr/u8-strchr: Fix several bugs.
41289         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
41290         the string. When not found, return NULL, not a pointer near the end.
41292         More tests for unistr/u8-strchr.
41293         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
41294         that the function does not read past the first occurrence of the byte
41295         being searched.
41296         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
41297         * tests/unistr/test-u16-strchr.c (main): New function.
41298         * tests/unistr/test-u32-strchr.c (main): New function.
41300 2010-07-31  Bruno Haible  <bruno@clisp.org>
41302         posix-modules: Ignore backup files of documentation files.
41303         * posix-modules: grep only through files named *.texi.
41305 2010-07-31  Bruno Haible  <bruno@clisp.org>
41307         symlinkat: Fix documentation.
41308         * doc/posix-functions/readlinkat.texi: Fix module name.
41310 2010-07-31  Bruno Haible  <bruno@clisp.org>
41312         fchownat: Replace also when chown has the trailing slash bug.
41313         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
41314         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
41315         introduced on 2010-04-10.
41316         Reported by Rainer Tammer.
41318 2010-07-31  Bruno Haible  <bruno@clisp.org>
41320         linkat: Work around AIX 7.1 bug.
41321         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
41322         whether linkat handles trailing slash correctly. If not, replace linkat
41323         and define LINKAT_TRAILING_SLASH_BUG.
41324         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
41325         check whether (fd1,file1) points to a directory if file1 or file2 ends
41326         in a slash. Code taken from lib/link.c.
41327         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
41328         Reported by Rainer Tammer.
41330 2010-07-31  Bruno Haible  <bruno@clisp.org>
41332         Correctly determine whether pow is available in libc on AIX 7 with xlc.
41333         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
41334         This disables an xlc optimization that was causing wrong test results.
41335         Reported by Rainer Tammer.
41337 2010-07-31  Bruno Haible  <bruno@clisp.org>
41339         iconv: Work around AIX 6.1..7.1 bug.
41340         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
41341         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
41342         cross-compiling, guess no on all versions of AIX.
41343         Reported by Rainer Tammer.
41345 2010-07-31  Bruno Haible  <bruno@clisp.org>
41347         readlink: Relax test a bit.
41348         * tests/test-readlink.h (test_readlink): Allow different errno value
41349         when readlink is called with a file name that ends in / and refers to
41350         a file.
41351         Suggested by Eric Blake.
41352         Reported by Rainer Tammer.
41354 2010-07-31  Bruno Haible  <bruno@clisp.org>
41356         copysign: Does not require -lm on glibc systems.
41357         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
41358         gl_COMMON_DOUBLE_MATHFUNC.
41359         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
41361 2010-07-31  Bruno Haible  <bruno@clisp.org>
41363         duplocale: Work around AIX 7.1 bug.
41364         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
41365         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
41366         * lib/duplocale.c (rpl_duplocale): Update comment.
41367         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
41368         Reported by Rainer Tammer.
41370 2010-07-30  Bruno Haible  <bruno@clisp.org>
41372         dirfd: Avoid link error on AIX 7.1.
41373         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
41374         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
41375         exist, set REPLACE_DIRFD.
41376         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
41377         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
41378         * doc/posix-functions/dirfd.texi: Update.
41379         Reported by Rainer Tammer.
41381 2010-07-30  Eric Blake  <eblake@redhat.com>
41383         strtod: next round of AIX fixes
41384         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
41385         exponent.
41386         * tests/test-strtod.c (main): Enhance tests.
41387         * doc/posix-functions/strtod.texi (strtod): Document next bug.
41388         Reported by Rainer Tammer.
41390         futimens: fix configure check
41391         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
41392         Reported by Bruno Haible.
41394 2010-07-30  Bruno Haible  <bruno@clisp.org>
41396         getline: Update regarding AIX.
41397         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
41398         Reported by Rainer Tammer.
41400 2010-07-30  Bruno Haible  <bruno@clisp.org>
41402         wcwidth: Drop replacement on AIX 7.
41403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
41404         AIX 7.
41405         Reported by Rainer Tammer.
41407 2010-07-30  Bruno Haible  <bruno@clisp.org>
41409         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
41410         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
41411         a 'char *'.
41412         Reported by Rainer Tammer.
41414 2010-07-30  Bruno Haible  <bruno@clisp.org>
41416         unlink: Update regarding AIX.
41417         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
41418         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
41419         Reported by Rainer Tammer.
41421 2010-07-30  Bruno Haible  <bruno@clisp.org>
41423         symlink: Update regarding AIX.
41424         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
41425         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
41426         Reported by Rainer Tammer.
41428 2010-07-30  Bruno Haible  <bruno@clisp.org>
41430         strndup: Update regarding AIX.
41431         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
41432         AIX 7.
41433         Reported by Rainer Tammer.
41435 2010-07-30  Bruno Haible  <bruno@clisp.org>
41437         stat: Update regarding AIX.
41438         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
41439         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
41440         Reported by Rainer Tammer.
41442 2010-07-30  Bruno Haible  <bruno@clisp.org>
41444         truncl: Fix autoconf test.
41445         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
41446         whether truncl works.
41447         Reported by Rainer Tammer.
41449 2010-07-30  Bruno Haible  <bruno@clisp.org>
41451         round: Update regarding AIX.
41452         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
41453         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
41454         Reported by Rainer Tammer.
41456 2010-07-30  Bruno Haible  <bruno@clisp.org>
41458         rename: Update regarding AIX.
41459         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
41460         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
41461         Reported by Rainer Tammer.
41463 2010-07-30  Bruno Haible  <bruno@clisp.org>
41465         printf.m4: Update regarding AIX.
41466         * m4/printf.m4: Update comments regarding AIX.
41467         Reported by Rainer Tammer.
41469 2010-07-30  Bruno Haible  <bruno@clisp.org>
41471         iconv: Update regarding AIX.
41472         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
41473         AIX 7.
41474         Reported by Rainer Tammer.
41476 2010-07-30  Bruno Haible  <bruno@clisp.org>
41478         getopt: Update regarding AIX.
41479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
41480         no on AIX.
41481         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
41482         Reported by Rainer Tammer.
41484 2010-07-30  Bruno Haible  <bruno@clisp.org>
41486         ldexpl; Update regarding AIX.
41487         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
41488         on AIX 7.
41489         Reported by Rainer Tammer.
41491 2010-07-30  Bruno Haible  <bruno@clisp.org>
41493         frexpl: Update regarding AIX.
41494         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
41495         on AIX 7.
41496         Reported by Rainer Tammer.
41498 2010-07-30  Bruno Haible  <bruno@clisp.org>
41500         open, fopen: Update regarding AIX.
41501         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
41502         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
41503         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
41504         * doc/posix-functions/fopen.texi: Likewise.
41505         Reported by Rainer Tammer.
41507 2010-07-30  Bruno Haible  <bruno@clisp.org>
41509         chown: Update doc regarding AIX.
41510         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
41511         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
41512         Reported by Rainer Tammer.
41514 2010-07-30  Eric Blake  <eblake@redhat.com>
41516         strtod: fix bug in replacement function on AIX
41517         * lib/strtod.c (strtod): Special case broken "0x" parse in
41518         underlying strtod.
41519         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
41520         * doc/posix-functions/strtod.texi (strtod): Likewise.
41521         Reported by Rainer Tammer.
41523 2010-07-30  Bruno Haible  <bruno@clisp.org>
41525         mbrlen: Fix cross-compilation guess for AIX.
41526         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
41527         guess. Leftover from 2008-12-22.
41529 2010-07-30  Bruno Haible  <bruno@clisp.org>
41531         mbrtowc: Fix cross-compilation guess for AIX.
41532         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
41533         guess. Leftover from 2008-12-21.
41535 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
41537         init.sh: work around trap limitation of some shells
41538         * tests/init.sh (setup_): Move exit trap outside of shell function.
41540 2010-07-29  Eric Blake  <eblake@redhat.com>
41542         strtod: aid debugging
41543         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
41544         understanding why strtod is rejected.
41546 2010-07-28  Bruno Haible  <bruno@clisp.org>
41548         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
41549         * lib/unistr/u8-chr.c: Include <string.h>.
41550         * tests/unistr/test-u8-chr.c: Likewise.
41551         * tests/unistr/test-u16-chr.c: Likewise.
41552         * tests/unistr/test-u32-chr.c: Likewise.
41553         * tests/unistr/test-u8-strchr.c: Likewise.
41554         * tests/unistr/test-u16-strchr.c: Likewise.
41555         * tests/unistr/test-u32-strchr.c: Likewise.
41556         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
41557         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
41558         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
41559         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
41561 2010-07-28  Bruno Haible  <bruno@clisp.org>
41563         Use spaces for indentation, not tabs.
41564         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41566 2010-07-27  Bruno Haible  <bruno@clisp.org>
41568         mbspcasecmp: Fix function specification.
41569         * lib/string.in.h (mbspcasecmp): Fix specification comment.
41570         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
41571         Reported by Eric Blake <eblake@redhat.com>.
41573 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
41575         timespec: use cast and not conditional, as truncation isn't possible
41576         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
41577         instead of a conditional.  Comment about the situation in more detail.
41578         This undoes most of the 2009-10-29 patch.
41580 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
41582         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
41583         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
41584         * lib/unistr/u8-strchr.c: Likewise.
41585         * modules/unistr/u8-chr: Depend on memchr.
41587         unistr/u*-strchr: add tests
41588         * modules/unistr/u8-strchr-tests: New file.
41589         * modules/unistr/u16-strchr-tests: New file.
41590         * modules/unistr/u32-strchr-tests: New file.
41591         * tests/unistr/test-strchr.h: New file.
41592         * tests/unistr/test-u8-strchr.c: New file.
41593         * tests/unistr/test-u16-strchr.c: New file.
41594         * tests/unistr/test-u32-strchr.c: New file.
41596         unistr/u*-chr: test multibyte sequences more
41597         * tests/unistr/test-chr.h: Do complete testing of the characters in the
41598         test vector.
41599         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
41600         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
41601         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
41603         unistr/u*-chr: test multibyte sequences
41604         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
41606         unistr/u*-chr: prepare for multibyte tests
41607         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
41608         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
41609         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
41610         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
41611         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
41612         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
41614 2010-07-18  Bruno Haible  <bruno@clisp.org>
41616         unistr/u8-strchr: Optimize non-ASCII argument case.
41617         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
41618         because the first byte often matches anyway.
41619         Reported by Pádraig Brady <P@draigbrady.com>.
41621 2010-07-15  Karl Berry  <karl@gnu.org>
41623         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
41625 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
41627         getcwd: on Solaris, work better if ancestors are inaccessible
41628         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
41629         buffer and size, try again with a large buffer.  This works better
41630         on Solaris, since its getcwd succeeds even if the path to the root
41631         is inaccessible, and this is helpful in common cases such as .zfs
41632         hidden directories.  Problem reported by J Chapman Flack in
41633         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
41634         Use system getcwd if it's declared, not merely if it's partly
41635         working; use the partly-working test only to avoid needless effort
41636         if the system getcwd fails.
41637         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
41638         comment that was already obsolete and is now even more obsolete.
41639         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
41640         now might call strdup.
41642 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
41644         pthread: Add enough so that coreutils/src/sort.c compiles.
41645         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
41646         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
41647         gnulib. Include <sched.h> and <time.h>, as per POSIX.
41648         Include <sys/types.h>, in case it defines pthread_t.
41649         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
41650         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
41651         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
41652         (pthread_rwlockattr_t, pthread_spinlock_t):
41653         New typedefs, if HAVE_PTHREAD_T is not defined.
41654         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
41655         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
41656         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
41657         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
41658         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
41659         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
41660         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
41661         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
41662         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
41663         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
41664         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
41665         New macros.
41666         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
41667         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
41668         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
41669         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
41670         (pthread_spin_unlock): New dummy functions.
41671         (pthread_create): Return EAGAIN; don't set errno.
41672         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
41673         require AC_C_INLINE.
41674         * modules/pthread (Depends-on): Add sched, time.
41675         (pthread.h): Use AM_V_GEN.
41677 2010-07-13  Bruno Haible  <bruno@clisp.org>
41679         striconveh: Don't malloc memory if the result buffer is sufficient.
41680         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
41681         buffer if its size is sufficient.
41682         Reported by Ludovic Courtès <ludo@gnu.org>.
41684 2010-07-13  Bruno Haible  <bruno@clisp.org>
41686         strtod: Add safety check.
41687         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
41689 2010-07-12  Bruno Haible  <bruno@clisp.org>
41691         Unify tests that set gl_cv_func_ldexpl_no_libm.
41692         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
41693         gl_FUNC_LDEXPL.
41694         (gl_FUNC_LDEXPL): Invoke it.
41695         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41697 2010-07-12  Bruno Haible  <bruno@clisp.org>
41699         Unify tests that set gl_cv_func_ldexp_no_libm.
41700         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
41701         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
41702         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
41703         (configure.ac): Simply invoke gl_FUNC_LDEXP.
41704         * modules/strtod (Files): Add m4/ldexp.m4.
41706 2010-07-12  Bruno Haible  <bruno@clisp.org>
41708         Unify tests that set gl_cv_func_frexpl_no_libm.
41709         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
41710         gl_FUNC_FREXPL_NO_LIBM.
41711         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
41712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41714 2010-07-12  Bruno Haible  <bruno@clisp.org>
41716         Unify tests that set gl_cv_func_frexp_no_libm.
41717         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
41718         gl_FUNC_FREXP_NO_LIBM.
41719         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
41720         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
41722 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
41724         memcoll: clarify sizes versus lengths, document better, and tweak perf
41725         * lib/memcoll.c (strcoll_loop, memcoll0):
41726         Improve quality of descriptive comments.  Name variables
41727         consistently as to whether they are lengths (which do not include
41728         terminating null) versus sizes (which do).
41729         * lib/xmemcoll.c (xmemcoll0): Likewise.
41730         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
41731         returned when s1size == 0; this is easier to compile and saves
41732         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
41734 2010-07-12  Bruno Haible  <bruno@clisp.org>
41736         Tests for module '_Exit'.
41737         * modules/_Exit-tests: New file.
41738         * tests/test-_Exit.sh: New file.
41739         * tests/test-_Exit.c: New file.
41741         New module '_Exit'.
41742         * lib/stdlib.in.h (__attribute__): New macro.
41743         (_Exit): New declaration.
41744         * lib/_Exit.c: New file.
41745         * m4/_Exit.m4: New file.
41746         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
41747         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
41748         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
41749         * modules/_Exit: New file.
41750         * tests/test-stdlib-c++.cc (_Exit): Check signature.
41751         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
41753 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
41755         strtod: make it more-accurate typically, and don't require libm
41756         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
41757         Include limits.h.  Don't include string.h.
41758         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
41759         (locale_isspace): New function, so that no casts are needed to
41760         check whether *s is a space.
41761         (ldexp): Provide an unused dummy if not available.
41762         (scale_radix_exp, parse_number, underlying_strtod): New functions.
41763         (strtod): Use them.  This implementation prefers to use the
41764         underlying strtod if available, falling back on our own code
41765         only to fix known bugs.  This is more likely to produce an
41766         accurate result.  Also, it avoids the use of libm functions.
41767         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
41768         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
41769         was absent, but it caused a test failure with coreutils.
41770         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
41771         with libm.
41772         * modules/strtod (Makefile.am, Link): libm is no longer needed.
41773         * modules/strtod-tests (Makefile.am): Likewise.
41775 2010-07-11  Pádraig Brady  <P@draigBrady.com>
41776             Bruno Haible  <bruno@clisp.org>
41778         unistr/u8-strchr: Optimize ASCII argument case.
41779         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
41781 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
41783         (x)memcoll: minor tweaks
41784         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
41785         is after the type that it qualifies.
41786         (memcoll0): Likewise.
41787         * lib/memcoll.h (memcoll0): Likewise.
41788         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
41789         * lib/xmemcoll.h (xmemcoll0): Likewise.
41790         * lib/memcoll.c (memcoll0): Correct the comment.  This function
41791         differs from memcoll in that the NUL byte is part of the argument.
41792         Omit the abort-checks, as performance is a real issue here.  Plus,
41793         the checks were wrong anyway (an off-by-one error).  Omit local
41794         variable 'diff', as it's a bit clearer that way.
41795         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
41796         no longer needed.
41798 2010-07-08  Chen Guo <chenguo4@yahoo.com>
41800         (x)memcoll: speedup when input is known to be NUL delimited
41801         * lib/memcoll.c: Include stdlib.
41802         (memcoll0): New function.
41803         (strcoll_loop): New function, refactored for use in both memcoll
41804         and memcoll0.
41805         * lib/memcoll.h (memcoll0): Add prototype.
41806         * lib/xmemcoll.c (xmemcoll0): New function.
41807         (collate_error): New function, refactored for use in both xmemcoll
41808         and xmemcoll0.
41809         * lib/xmemcoll.h (xmemcoll0): Add prototype.
41810         * m4/memcoll.m4: add inline invocation.
41812 2010-07-06  Pádraig Brady  <P@draigBrady.com>
41814         * build-aux/bootstrap: Remove any local translations
41815         from the translation project synchronization directory,
41816         so that local only translations are not distributed.
41818 2010-07-04  Bruno Haible  <bruno@clisp.org>
41820         fsusage: Clarify which code applies to which platforms.
41821         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
41822         platform.
41823         * lib/fsusage.c (get_fs_usage): Likewise.
41825 2010-07-04  Bruno Haible  <bruno@clisp.org>
41827         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
41828         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
41829         Reported by Martin Lambers <marlam@marlam.de>.
41831 2010-07-04  Jim Meyering  <meyering@redhat.com>
41833         hash: once again explicitly disallow insertion of NULL
41834         * lib/hash.c (hash_insert0): Reinstate just-removed test:
41835         inserting a NULL pointer cannot work with these functions.
41836         Add a comment with details.
41837         This reverts part of the 2010-07-01 commit, 5bef1a35
41838         "hash: extend module to deal with non-pointer keys".
41840 2010-07-01  Bruno Haible  <bruno@clisp.org>
41842         stdbool: Update doc.
41843         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
41844         Info from Christian Weisgerber <naddy@mips.inka.de>.
41846 2010-07-01  Jim Meyering  <meyering@redhat.com>
41848         hash: extend module to deal with non-pointer keys
41849         * lib/hash.c (hash_insert0): New interface, much like hash_insert
41850         but that allows insertion of non-pointer entries.
41851         Do not disallow an ENTRY value of NULL.
41852         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
41853         * lib/hash.h (hash_insert0): Declare.
41855 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
41857         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
41858         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
41859         not present (i.e. with autoconf 2.59 and when using gettextize, not
41860         gnulib), require AC_GNU_SOURCE instead.
41862 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
41864         idpriv-drop: Fix tests.
41865         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
41866         not to the test-idpriv-droptemp program.
41868 2010-06-29  Bruno Haible  <bruno@clisp.org>
41870         string: Fix syntax error with g++ 2.96.
41871         * lib/string.in.h (__pure__): Remove definition.
41872         (_GL_ATTRIBUTE_PURE): New macro.
41873         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
41874         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
41875         Reported by Christian Weisgerber <naddy@mips.inka.de>.
41877 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
41879         unitypes: Fix bug introduced on 2010-05-18.
41880         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
41882 2010-06-22  Eric Blake  <eblake@redhat.com>
41884         memmem: slight optimization
41885         * lib/str-two-way.h (critical_factorization): Update comments.
41886         Reduce work during factorization phase.
41887         Reported by Carlos Bueno <carlos@bueno.org>.
41889 2010-06-21  Bruno Haible  <bruno@clisp.org>
41891         Fix HAVE_CALLOC_POSIX misnomer.
41892         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
41893         !HAVE_CALLOC_POSIX.
41894         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
41895         HAVE_CALLOC_POSIX.
41896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
41897         instead of HAVE_CALLOC_POSIX.
41898         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
41899         HAVE_CALLOC_POSIX.
41901         Use modern idiom for calloc() replacement.
41902         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
41903         AC_FUNC_CALLOC.
41904         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
41905         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
41906         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
41907         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
41908         (gl_REPLACE_CALLOC): New macro.
41910 2010-06-21  Bruno Haible  <bruno@clisp.org>
41912         Fix HAVE_REALLOC_POSIX misnomer.
41913         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
41914         !HAVE_REALLOC_POSIX.
41915         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
41916         HAVE_REALLOC_POSIX.
41917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
41918         instead of HAVE_REALLOC_POSIX.
41919         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
41920         HAVE_REALLOC_POSIX.
41922         Use modern idiom for realloc() replacement.
41923         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
41924         AC_FUNC_REALLOC.
41925         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
41926         Autoconf's AC_FUNC_REALLOC.
41927         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
41928         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
41929         (gl_REPLACE_REALLOC): New macro.
41930         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
41932 2010-06-21  Bruno Haible  <bruno@clisp.org>
41934         Fix HAVE_MALLOC_POSIX misnomer.
41935         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
41936         !HAVE_MALLOC_POSIX.
41937         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
41938         HAVE_MALLOC_POSIX.
41939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
41940         instead of HAVE_MALLOC_POSIX.
41941         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
41942         HAVE_MALLOC_POSIX.
41944         Use modern idiom for malloc() replacement.
41945         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
41946         AC_FUNC_MALLOC.
41947         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
41948         Autoconf's AC_FUNC_MALLOC.
41949         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
41950         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
41951         (gl_REPLACE_MALLOC): New macro.
41952         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
41954 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
41956         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
41957         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
41958         This macro takes 3 arguments, not 4.
41960 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
41962         ipv6: fix detection under mingw
41963         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
41964         in6_addr.
41966 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
41968         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
41969         that strtod() works when cross-compiling to a glibc version known
41970         to work.
41972 2010-06-15  Bruno Haible  <bruno@clisp.org>
41974         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
41976 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
41978         select: Correct timeout.
41979         * lib/select.c (rpl_select): Compute wait_timeout correctly.
41981 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41983         git-version-gen: init shell var to avoid env var influence
41984         * build-aux/git-version-gen (v): Init shell var to empty.
41986 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
41988         priv-set: Don't assume that priv.h exists merely because getppriv does.
41989         See Jan Andersen's bug report about AIX 5L in
41990         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
41991         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
41992         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
41993         * lib/priv-set.h: Likewise.
41994         * tests/test-priv-set.c: Likewise.
41996 2010-06-13  Bruno Haible  <bruno@clisp.org>
41998         relocatable: Make it easier to test whether to install wrappers.
41999         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
42000         RELOCATABLE_VIA_WRAPPER.
42002 2010-06-13  Bruno Haible  <bruno@clisp.org>
42004         gnulib-tool: Display specified modules and dependencies differently.
42005         * gnulib-tool (func_show_module_list): New function.
42006         (func_import, func_create_testdir): Invoke it.
42007         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42009 2010-06-13  Bruno Haible  <bruno@clisp.org>
42011         gnulib-tool: Align code of func_import and func_create_testdir.
42012         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
42013         specified_modules.
42015 2010-06-12  Jim Meyering  <meyering@redhat.com>
42017         test-inttostr: avoid spurious failure on Solaris 9
42018         * tests/test-inttostr.c (main): Skip the test when snprintf fails
42019         to accept "%ju".  Reported by Bruno Haible.
42021 2010-06-11  Jim Meyering  <meyering@redhat.com>
42023         test-sys_socket: mark variables as used more readably
42024         * tests/test-sys_socket.c (main): Mark otherwise unused variables
42025         as "used" explicitly via (void) statement casts.  This is more
42026         readable than using them in an artificial return expression.
42027         Suggestion from Bruno Haible.
42029 2010-06-11  Bruno Haible  <bruno@clisp.org>
42031         Avoid some more warnings from "gcc -Wwrite-strings".
42032         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
42033         to 'const char *'.
42034         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
42035         * tests/test-c-strcasestr.c (main): Likewise.
42036         * tests/test-mbscasestr1.c (main): Likewise.
42037         * tests/test-mbscasestr2.c (main): Likewise.
42038         * tests/test-memmem.c (main): Likewise.
42039         * tests/test-strstr.c (main): Likewise.
42040         * tests/test-strcasestr.c (main): Likewise.
42042 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42044         init.sh: change framework_failure_ to fail with status 99, not 1
42045         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
42046         automake's parallel-tests rule that this is an unexpected failure,
42047         even if the test is listed in XFAIL_TESTS.
42049 2010-06-11  Jim Meyering  <meyering@redhat.com>
42051         test-inttostr: avoid warnings about 4-6KB literal strings
42052         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
42053         Include "macros.h", for its definition of ASSERT.
42054         (CK): s/assert/ASSERT/
42055         * modules/inttostr-tests (Files): Add macros.h.
42057         init.sh: don't use $ME_ or skip_ before they are defined
42058         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
42059         their first uses.  Also hoist their companions: warn_, fail_,
42060         framework_failure_, $stderr_fileno.  Prompted by a patch from
42061         Stefano Lattarini.
42063         test-sys_socket: avoid set-but-not-used warnings from gcc
42064         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
42065         avoid warning about set-but-not-used variables.
42067         test-xvasprintf: avoid 'const' discard warnings
42068         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
42069         "const" when assigning from literal strings.
42070         (test_xasprintf): Add "void" in function argument list to placate
42071         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
42073         tests: avoid compilation warnings in argmatch and exclude tests...
42074         in packages that define ARGMATCH_DIE_DECL, like coreutils.
42075         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
42076         Since it always exits, declare with the "noreturn" attribute.
42077         * tests/test-argmatch.c: Likewise.
42079         tests: avoid 'const' discard warnings in mbsstr tests
42080         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
42081         * tests/test-mbsstr2.c (main): Likewise.
42083         test-verify: avoid warning from gcc's -Wmissing-declarations
42084         * tests/test-verify.c (function): Declare to be static.
42086         test-inttostr.c: include <string.h> for use of strcmp
42087         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
42089         test-linkat: avoid failed assertion on "other" architectures
42090         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
42091         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
42092         sparc: https://bugs.launchpad.net/bugs/591968
42094 2010-06-11  Jim Meyering  <meyering@redhat.com>
42096         printf.m4: avoid autoconf's "Expanded Before Required" warning
42097         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
42098         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
42099         autoconf warning.
42101 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
42103         Replacement header templates are now named with ".in", not "_".
42104         * doc/gnulib-intro.texi: Correct.
42106 2010-06-10  Jim Meyering  <meyering@redhat.com>
42108         inttostr-tests: depend on snprintf, not snprintf-posix
42109         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
42110         snprintf-posix, to avoid this aclocal failure:
42111           missing file gnulib-tests/vasnprintf.c
42112           configure.ac:45: error: expected source file, required through \
42113           AC_LIBSOURCES, not found
42115 2010-06-10  Jim Meyering  <meyering@redhat.com>
42117         inttostr: add a new function, inttostr, and tests
42118         The namesake function was not available.  The existence of the
42119         template file, inttostr.c makes its addition nontrivial.
42120         * lib/anytostr.c: Rename from inttostr.c.
42121         (anytostr): Rename from inttostr.
42122         * lib/inttostr.c: New file.
42123         * modules/inttostr (Files): Add anytostr.c.
42124         (Makefile.am): Set lib_SOURCES instead of ...
42125         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
42126         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
42127         * lib/offtostr.c: Likewise.
42128         * lib/uinttostr.c: Likewise.
42129         * lib/umaxtostr.c: Likewise.
42130         * modules/inttostr-tests: New file.
42131         * tests/test-inttostr.c: New file.  Test these functions.
42133 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
42134             Bruno Haible  <bruno@clisp.org>
42136         Add "Extending Gnulib" chapter to manual.
42137         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
42138         chapter.
42139         (Extending Gnulib): New chapter.
42140         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
42141         chapter.
42143 2010-06-09  Bruno Haible  <bruno@clisp.org>
42145         Avoid relocwrapper link errors due to gnulib replacement functions.
42146         * lib/areadlink.c: Use the system's malloc, realloc functions.
42147         (areadlink): Set errno to ENOMEM explicitly.
42148         * modules/areadlink (Depends-on): Remove malloc-posix.
42149         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42151 2010-06-09  Bruno Haible  <bruno@clisp.org>
42153         Avoid relocwrapper link errors due to gnulib replacement functions.
42154         * lib/canonicalize-lgpl.c: Use the system's malloc function.
42155         * lib/malloca.c: Likewise.
42156         * lib/relocatable.c: Likewise.
42157         * lib/progreloc.c: Use the system's malloc, sprintf functions.
42158         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
42159         * lib/setenv.c: Use the system's malloc, realloc functions.
42160         * lib/strerror.c: Use the system's sprintf function.
42161         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42163 2010-06-04  Bruno Haible  <bruno@clisp.org>
42165         Prefer documented low-level autoconf macro names.
42166         * m4/lib-link.m4: Use m4_translit instead of translit.
42167         * m4/environ.m4: Likewise.
42168         * m4/mathfunc.m4: Likewise.
42169         * m4/onceonly.m4: Likewise.
42170         * m4/stdint.m4: Likewise.
42171         Suggested by Eric Blake.
42173 2010-06-04  Martin Lambers  <marlam@marlam.de>
42174             Bruno Haible  <bruno@clisp.org>
42176         havelib: Allow library names with '+' characters.
42177         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42178         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
42180 2010-06-09  Bruno Haible  <bruno@clisp.org>
42182         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
42183         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
42184         realloc failed.
42186 2010-06-08  Peter Simons  <simons@cryp.to>
42188         maint.mk: make the news-check rule more configurable
42189         * top/maint.mk (news-check-lines-spec): New variable.
42190         (news-check): Use "sed -n 1,10p" in place of "head".
42192 2010-06-07  Jim Meyering  <meyering@redhat.com>
42194         do-release-commit-and-tag: fix typo in --help
42195         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
42197         regex: avoid new dead-code warning with gcc-4.6.0
42198         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
42199         if-block containing a while-loop.  It's been unused for at least
42200         5 years.
42202 2010-06-05  Bruno Haible  <bruno@clisp.org>
42204         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
42205         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
42207 2010-06-04  Bruno Haible  <bruno@clisp.org>
42209         Update to GNU gettext 0.18.1.
42210         * modules/gettext (configure.ac): Require gettext infrastructure from
42211         version 0.18.1.
42213 2010-06-03  Bruno Haible  <bruno@clisp.org>
42215         Don't use AC_LIBOBJ with file names in subdirectories.
42216         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
42217         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
42218         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
42219         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
42220         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
42221         gl_LIBUNISTRING_LIBSOURCE.
42222         (Makefile.am): Augment lib_SOURCES here, conditionally.
42223         * NEWS: Drop requirement for Automake option 'subdir-objects'.
42225 2010-06-03  Bruno Haible  <bruno@clisp.org>
42227         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
42228         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
42229         expansion does not end with a newline.
42230         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
42231         unnecessary newline.
42233 2010-06-03  Bruno Haible  <bruno@clisp.org>
42235         Reduce dependencies.
42236         * tests/test-quotearg.h: New file, extracted from
42237         tests/test-quotearg.c.
42238         * tests/test-quotearg-simple.c: New file, extracted from
42239         tests/test-quotearg.c.
42240         * tests/test-quotearg.c: Don't include <ctype.h>.
42241         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
42242         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
42243         use_quote_double_quotes, use_quotearg_colon): Moved to
42244         tests/test-quotearg.h.
42245         (results_g, flag_results, custom_quotes, custom_results): Moved
42246         to tests/test-quotearg-simple.c.
42247         (main): Moved the part that does not depend on gettext to
42248         tests/test-quotearg-simple.c. Return 77 if the test cannot be
42249         performed.
42250         * modules/quotearg-simple: New file.
42251         * modules/quotearg-simple-tests: New file.
42252         * modules/quotearg (Depends-on): Add quotearg-simple.
42253         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
42254         (Files): Add tests/test-quotearg.h.
42255         Reported by Paolo Bonzini.
42257 2010-06-03  Bruno Haible  <bruno@clisp.org>
42259         Reduce dependencies.
42260         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
42262 2010-06-03  Bruno Haible  <bruno@clisp.org>
42264         time: Undefine more broken macros.
42265         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
42266         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
42267         Reported by Eric Blake.
42269 2010-06-03  Bruno Haible  <bruno@clisp.org>
42271         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
42272         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
42273         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
42274         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
42275         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
42276         Reported by Ludovic Courtès <ludo@gnu.org>.
42278 2010-06-02  Eric Blake  <eblake@redhat.com>
42280         time: work with mingw + pthreads-win32 library
42281         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
42282         if timespec is defined only in pthread.h.
42283         * modules/time (Makefile.am): Substitute it.
42284         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
42285         <pthread.h>, when needed.
42286         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
42287         from the library.
42289 2010-05-31  Bruno Haible  <bruno@clisp.org>
42291         Avoid expanding two macros in the wrong order.
42292         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
42293         gl_LIBUNISTRING if it is defined.
42294         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
42295         autoconf >= 2.64.
42296         Reported by Ludovic Courtès <ludo@gnu.org>.
42298 2010-05-27  Jim Meyering  <meyering@redhat.com>
42300         maint.mk: also prohibit "#undef" of always-defined symbols
42301         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
42302         Allow more than one space before the symbol name.
42303         (sc_prohibit_always-defined_macros): Use grep's -E, now that
42304         the regexp uses alternation.
42306 2010-05-26  Eric Blake  <eblake@redhat.com>
42308         maint.mk: avoid echo -e
42309         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
42310         Convert all uses of echo -* to printf.
42311         Reported by Matthias Bolte.
42313 2010-05-25  Bruno Haible  <bruno@clisp.org>
42315         Update to GNU gettext 0.18, part 2.
42316         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
42317         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
42319 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42321         Add missing include in test-pwrite.c.
42322         * tests/test-pwrite.c: Include string.h, for strcmp.
42324 2010-05-24  Bruno Haible  <bruno@clisp.org>
42326         * NEWS: Mention requirement for Automake option 'subdir-objects'.
42328 2010-05-24  Bruno Haible  <bruno@clisp.org>
42330         Don't use conversion with transliteration in u{8,16,32}_strcoll.
42331         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
42332         iconveh_error argument.
42333         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
42334         U_STRCONV_TO_LOCALE.
42335         * lib/unistr/u16-strcoll.c: Likewise.
42336         * lib/unistr/u32-strcoll.c: Likewise.
42337         * modules/unistr/u8-strcoll (Depends-on): Add
42338         uniconv/u8-strconv-to-enc, localcharset. Remove
42339         uniconv/u8-strconv-to-locale.
42340         (configure.ac): Bump version number.
42341         * modules/unistr/u16-strcoll (Depends-on): Add
42342         uniconv/u16-strconv-to-enc, localcharset. Remove
42343         uniconv/u16-strconv-to-locale.
42344         (configure.ac): Bump version number.
42345         * modules/unistr/u32-strcoll (Depends-on): Add
42346         uniconv/u32-strconv-to-enc, localcharset. Remove
42347         uniconv/u32-strconv-to-locale.
42348         (configure.ac): Bump version number.
42350 2010-05-24  Bruno Haible  <bruno@clisp.org>
42352         Avoid a test failure on NetBSD 5.0.
42353         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
42354         an iconv() bug.
42356 2010-05-24  Bruno Haible  <bruno@clisp.org>
42358         Adjust #include directive style.
42359         * modules/regex (Includes): Recommend to write <regex.h>.
42361 2010-05-24  Bruno Haible  <bruno@clisp.org>
42363         regex: Don't require alloca.
42364         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
42365         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
42366         only inside if (0).
42368 2010-05-23  Jim Meyering  <meyering@redhat.com>
42370         test-renameat.c: include <sys/stat.h>
42371         * tests/test-renameat.c: Include <sys/stat.h>; required for
42372         definition of S_IS* macros.
42374 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
42376         Update maintainer documentation for 'relocatable-prog' module.
42377         * doc/relocatable-maint.texi: Update.
42378         Comments by Bruno Haible.
42380 2010-05-23  Bruno Haible  <bruno@clisp.org>
42382         git-merge-changelog: Enable --split-merged-entry by default.
42383         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
42384         (usage): Don't mention this option any more.
42385         Reported by Ralf Wildenhues.
42387 2010-05-23  Jim Meyering  <meyering@redhat.com>
42389         test-pwrite: do not leave behind a test file named "out"
42390         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
42391         The trivial-looking use of init.sh is really necessary.
42392         It ensures that the temporary file, "out", is created in
42393         a temporary directory, and removed upon termination.
42394         * tests/test-pwrite.sh: Re-add file.
42395         * modules/pwrite-tests: Reference it.
42397 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42399         Fix output redirection buglet in init.sh.
42400         * tests/init.sh: Fix redirection of stderr.
42402 2010-05-20  Simon Josefsson  <simon@josefsson.org>
42404         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
42406 2010-05-17  Simon Josefsson  <simon@josefsson.org>
42408         * modules/valgrind-tests: New file.
42409         * m4/valgrind-tests.m4: New file.
42410         * doc/valgrind-tests.texi: New file.
42411         * doc/gnulib.texi (Running self-tests under valgrind): New
42412         section.
42414 2010-05-19  Bruno Haible  <bruno@clisp.org>
42416         Clean up dead code in recent commit.
42417         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
42418         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
42419         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
42420         Suggested by Paolo Bonzini.
42422 2010-05-19  Bruno Haible  <bruno@clisp.org>
42424         Avoid valgrind error reports from libunistring.
42425         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
42426         * modules/libunistring (Files): Add it.
42427         * modules/libunistring-optional (Files): Likewise.
42429 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
42430             Bruno Haible  <bruno@clisp.org>
42432         New module 'libunistring-optional'.
42433         * modules/libunistring-optional: New file.
42434         * m4/libunistring-base.m4: New file.
42435         * m4/libunistring-optional.m4: New file.
42436         * lib/unicase.in.h: Renamed from lib/unicase.h.
42437         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
42438         * lib/unictype.in.h: Renamed from lib/unictype.h.
42439         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
42440         * lib/uniname.in.h: Renamed from lib/uniname.h.
42441         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
42442         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
42443         * lib/unistr.in.h: Renamed from lib/unistr.h.
42444         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
42445         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
42446         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
42447         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
42448         gl_LIBUNISTRING. If the library was found, determine the installed
42449         version and set LIBUNISTRING_VERSION.
42450         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
42451         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
42452         handle a configuration option --with-included-libunistring.
42453         * modules/libunistring (Files): Add m4/absolute-header.m4.
42454         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
42455         Add m4/libunistring-base.m4.
42456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42457         (Makefile.am): Build unicase.h from unicase.in.h.
42458         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
42459         Add m4/libunistring-base.m4.
42460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42461         (Makefile.am): Build uniconv.h from uniconv.in.h.
42462         * modules/unictype/base (Files): Use unictype.in.h instead of
42463         unictype.h. Add m4/libunistring-base.m4.
42464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42465         (Makefile.am): Build unictype.h from unictype.in.h.
42466         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
42467         Add m4/libunistring-base.m4.
42468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42469         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
42470         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
42471         Add m4/libunistring-base.m4.
42472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42473         (Makefile.am): Build uniname.h from uniname.in.h.
42474         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
42475         Add m4/libunistring-base.m4.
42476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42477         (Makefile.am): Build uninorm.h from uninorm.in.h.
42478         * modules/unistdio/base (Files): Use unistdio.in.h instead of
42479         unistdio.h. Add m4/libunistring-base.m4.
42480         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42481         (Makefile.am): Build unistdio.h from unistdio.in.h.
42482         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
42483         Add m4/libunistring-base.m4.
42484         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42485         (Makefile.am): Build unistr.h from unistr.in.h.
42486         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
42487         Add m4/libunistring-base.m4.
42488         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42489         (Makefile.am): Build unitypes.h from unitypes.in.h.
42490         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
42491         Add m4/libunistring-base.m4.
42492         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42493         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
42494         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
42495         uniwidth.h. Add m4/libunistring-base.m4.
42496         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42497         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
42498         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
42499         instead of augmenting lib_SOURCES.
42500         * modules/unicase/empty-suffix-context: Likewise.
42501         * modules/unicase/locale-language: Likewise.
42502         * modules/unicase/tolower: Likewise.
42503         * modules/unicase/totitle: Likewise.
42504         * modules/unicase/toupper: Likewise.
42505         * modules/unicase/u8-casecmp: Likewise.
42506         * modules/unicase/u8-casecoll: Likewise.
42507         * modules/unicase/u8-casefold: Likewise.
42508         * modules/unicase/u8-casexfrm: Likewise.
42509         * modules/unicase/u8-ct-casefold: Likewise.
42510         * modules/unicase/u8-ct-tolower: Likewise.
42511         * modules/unicase/u8-ct-totitle: Likewise.
42512         * modules/unicase/u8-ct-toupper: Likewise.
42513         * modules/unicase/u8-is-cased: Likewise.
42514         * modules/unicase/u8-is-casefolded: Likewise.
42515         * modules/unicase/u8-is-lowercase: Likewise.
42516         * modules/unicase/u8-is-titlecase: Likewise.
42517         * modules/unicase/u8-is-uppercase: Likewise.
42518         * modules/unicase/u8-prefix-context: Likewise.
42519         * modules/unicase/u8-suffix-context: Likewise.
42520         * modules/unicase/u8-tolower: Likewise.
42521         * modules/unicase/u8-totitle: Likewise.
42522         * modules/unicase/u8-toupper: Likewise.
42523         * modules/unicase/u16-casecmp: Likewise.
42524         * modules/unicase/u16-casecoll: Likewise.
42525         * modules/unicase/u16-casefold: Likewise.
42526         * modules/unicase/u16-casexfrm: Likewise.
42527         * modules/unicase/u16-ct-casefold: Likewise.
42528         * modules/unicase/u16-ct-tolower: Likewise.
42529         * modules/unicase/u16-ct-totitle: Likewise.
42530         * modules/unicase/u16-ct-toupper: Likewise.
42531         * modules/unicase/u16-is-cased: Likewise.
42532         * modules/unicase/u16-is-casefolded: Likewise.
42533         * modules/unicase/u16-is-lowercase: Likewise.
42534         * modules/unicase/u16-is-titlecase: Likewise.
42535         * modules/unicase/u16-is-uppercase: Likewise.
42536         * modules/unicase/u16-prefix-context: Likewise.
42537         * modules/unicase/u16-suffix-context: Likewise.
42538         * modules/unicase/u16-tolower: Likewise.
42539         * modules/unicase/u16-totitle: Likewise.
42540         * modules/unicase/u16-toupper: Likewise.
42541         * modules/unicase/u32-casecmp: Likewise.
42542         * modules/unicase/u32-casecoll: Likewise.
42543         * modules/unicase/u32-casefold: Likewise.
42544         * modules/unicase/u32-casexfrm: Likewise.
42545         * modules/unicase/u32-ct-casefold: Likewise.
42546         * modules/unicase/u32-ct-tolower: Likewise.
42547         * modules/unicase/u32-ct-totitle: Likewise.
42548         * modules/unicase/u32-ct-toupper: Likewise.
42549         * modules/unicase/u32-is-cased: Likewise.
42550         * modules/unicase/u32-is-casefolded: Likewise.
42551         * modules/unicase/u32-is-lowercase: Likewise.
42552         * modules/unicase/u32-is-titlecase: Likewise.
42553         * modules/unicase/u32-is-uppercase: Likewise.
42554         * modules/unicase/u32-prefix-context: Likewise.
42555         * modules/unicase/u32-suffix-context: Likewise.
42556         * modules/unicase/u32-tolower: Likewise.
42557         * modules/unicase/u32-totitle: Likewise.
42558         * modules/unicase/u32-toupper: Likewise.
42559         * modules/unicase/ulc-casecmp: Likewise.
42560         * modules/unicase/ulc-casecoll: Likewise.
42561         * modules/unicase/ulc-casexfrm: Likewise.
42562         * modules/uniconv/u8-conv-from-enc: Likewise.
42563         * modules/uniconv/u8-conv-to-enc: Likewise.
42564         * modules/uniconv/u8-strconv-from-enc: Likewise.
42565         * modules/uniconv/u8-strconv-from-locale: Likewise.
42566         * modules/uniconv/u8-strconv-to-enc: Likewise.
42567         * modules/uniconv/u8-strconv-to-locale: Likewise.
42568         * modules/uniconv/u16-conv-from-enc: Likewise.
42569         * modules/uniconv/u16-conv-to-enc: Likewise.
42570         * modules/uniconv/u16-strconv-from-enc: Likewise.
42571         * modules/uniconv/u16-strconv-from-locale: Likewise.
42572         * modules/uniconv/u16-strconv-to-enc: Likewise.
42573         * modules/uniconv/u16-strconv-to-locale: Likewise.
42574         * modules/uniconv/u32-conv-from-enc: Likewise.
42575         * modules/uniconv/u32-conv-to-enc: Likewise.
42576         * modules/uniconv/u32-strconv-from-enc: Likewise.
42577         * modules/uniconv/u32-strconv-from-locale: Likewise.
42578         * modules/uniconv/u32-strconv-to-enc: Likewise.
42579         * modules/uniconv/u32-strconv-to-locale: Likewise.
42580         * modules/unictype/bidicategory-byname: Likewise.
42581         * modules/unictype/bidicategory-name: Likewise.
42582         * modules/unictype/bidicategory-of: Likewise.
42583         * modules/unictype/bidicategory-test: Likewise.
42584         * modules/unictype/block-list: Likewise.
42585         * modules/unictype/block-test: Likewise.
42586         * modules/unictype/category-C: Likewise.
42587         * modules/unictype/category-Cc: Likewise.
42588         * modules/unictype/category-Cf: Likewise.
42589         * modules/unictype/category-Cn: Likewise.
42590         * modules/unictype/category-Co: Likewise.
42591         * modules/unictype/category-Cs: Likewise.
42592         * modules/unictype/category-L: Likewise.
42593         * modules/unictype/category-Ll: Likewise.
42594         * modules/unictype/category-Lm: Likewise.
42595         * modules/unictype/category-Lo: Likewise.
42596         * modules/unictype/category-Lt: Likewise.
42597         * modules/unictype/category-Lu: Likewise.
42598         * modules/unictype/category-M: Likewise.
42599         * modules/unictype/category-Mc: Likewise.
42600         * modules/unictype/category-Me: Likewise.
42601         * modules/unictype/category-Mn: Likewise.
42602         * modules/unictype/category-N: Likewise.
42603         * modules/unictype/category-Nd: Likewise.
42604         * modules/unictype/category-Nl: Likewise.
42605         * modules/unictype/category-No: Likewise.
42606         * modules/unictype/category-P: Likewise.
42607         * modules/unictype/category-Pc: Likewise.
42608         * modules/unictype/category-Pd: Likewise.
42609         * modules/unictype/category-Pe: Likewise.
42610         * modules/unictype/category-Pf: Likewise.
42611         * modules/unictype/category-Pi: Likewise.
42612         * modules/unictype/category-Po: Likewise.
42613         * modules/unictype/category-Ps: Likewise.
42614         * modules/unictype/category-S: Likewise.
42615         * modules/unictype/category-Sc: Likewise.
42616         * modules/unictype/category-Sk: Likewise.
42617         * modules/unictype/category-Sm: Likewise.
42618         * modules/unictype/category-So: Likewise.
42619         * modules/unictype/category-Z: Likewise.
42620         * modules/unictype/category-Zl: Likewise.
42621         * modules/unictype/category-Zp: Likewise.
42622         * modules/unictype/category-Zs: Likewise.
42623         * modules/unictype/category-and: Likewise.
42624         * modules/unictype/category-and-not: Likewise.
42625         * modules/unictype/category-byname: Likewise.
42626         * modules/unictype/category-name: Likewise.
42627         * modules/unictype/category-none: Likewise.
42628         * modules/unictype/category-of: Likewise.
42629         * modules/unictype/category-or: Likewise.
42630         * modules/unictype/category-test: Likewise.
42631         * modules/unictype/combining-class: Likewise.
42632         * modules/unictype/ctype-alnum: Likewise.
42633         * modules/unictype/ctype-alpha: Likewise.
42634         * modules/unictype/ctype-blank: Likewise.
42635         * modules/unictype/ctype-cntrl: Likewise.
42636         * modules/unictype/ctype-digit: Likewise.
42637         * modules/unictype/ctype-graph: Likewise.
42638         * modules/unictype/ctype-lower: Likewise.
42639         * modules/unictype/ctype-print: Likewise.
42640         * modules/unictype/ctype-punct: Likewise.
42641         * modules/unictype/ctype-space: Likewise.
42642         * modules/unictype/ctype-upper: Likewise.
42643         * modules/unictype/ctype-xdigit: Likewise.
42644         * modules/unictype/decimal-digit: Likewise.
42645         * modules/unictype/digit: Likewise.
42646         * modules/unictype/mirror: Likewise.
42647         * modules/unictype/numeric: Likewise.
42648         * modules/unictype/property-alphabetic: Likewise.
42649         * modules/unictype/property-ascii-hex-digit: Likewise.
42650         * modules/unictype/property-bidi-arabic-digit: Likewise.
42651         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
42652         * modules/unictype/property-bidi-block-separator: Likewise.
42653         * modules/unictype/property-bidi-boundary-neutral: Likewise.
42654         * modules/unictype/property-bidi-common-separator: Likewise.
42655         * modules/unictype/property-bidi-control: Likewise.
42656         * modules/unictype/property-bidi-embedding-or-override: Likewise.
42657         * modules/unictype/property-bidi-eur-num-separator: Likewise.
42658         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
42659         * modules/unictype/property-bidi-european-digit: Likewise.
42660         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
42661         * modules/unictype/property-bidi-left-to-right: Likewise.
42662         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
42663         * modules/unictype/property-bidi-other-neutral: Likewise.
42664         * modules/unictype/property-bidi-pdf: Likewise.
42665         * modules/unictype/property-bidi-segment-separator: Likewise.
42666         * modules/unictype/property-bidi-whitespace: Likewise.
42667         * modules/unictype/property-byname: Likewise.
42668         * modules/unictype/property-combining: Likewise.
42669         * modules/unictype/property-composite: Likewise.
42670         * modules/unictype/property-currency-symbol: Likewise.
42671         * modules/unictype/property-dash: Likewise.
42672         * modules/unictype/property-decimal-digit: Likewise.
42673         * modules/unictype/property-default-ignorable-code-point: Likewise.
42674         * modules/unictype/property-deprecated: Likewise.
42675         * modules/unictype/property-diacritic: Likewise.
42676         * modules/unictype/property-extender: Likewise.
42677         * modules/unictype/property-format-control: Likewise.
42678         * modules/unictype/property-grapheme-base: Likewise.
42679         * modules/unictype/property-grapheme-extend: Likewise.
42680         * modules/unictype/property-grapheme-link: Likewise.
42681         * modules/unictype/property-hex-digit: Likewise.
42682         * modules/unictype/property-hyphen: Likewise.
42683         * modules/unictype/property-id-continue: Likewise.
42684         * modules/unictype/property-id-start: Likewise.
42685         * modules/unictype/property-ideographic: Likewise.
42686         * modules/unictype/property-ids-binary-operator: Likewise.
42687         * modules/unictype/property-ids-trinary-operator: Likewise.
42688         * modules/unictype/property-ignorable-control: Likewise.
42689         * modules/unictype/property-iso-control: Likewise.
42690         * modules/unictype/property-join-control: Likewise.
42691         * modules/unictype/property-left-of-pair: Likewise.
42692         * modules/unictype/property-line-separator: Likewise.
42693         * modules/unictype/property-logical-order-exception: Likewise.
42694         * modules/unictype/property-lowercase: Likewise.
42695         * modules/unictype/property-math: Likewise.
42696         * modules/unictype/property-non-break: Likewise.
42697         * modules/unictype/property-not-a-character: Likewise.
42698         * modules/unictype/property-numeric: Likewise.
42699         * modules/unictype/property-other-alphabetic: Likewise.
42700         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
42701         * modules/unictype/property-other-grapheme-extend: Likewise.
42702         * modules/unictype/property-other-id-continue: Likewise.
42703         * modules/unictype/property-other-id-start: Likewise.
42704         * modules/unictype/property-other-lowercase: Likewise.
42705         * modules/unictype/property-other-math: Likewise.
42706         * modules/unictype/property-other-uppercase: Likewise.
42707         * modules/unictype/property-paired-punctuation: Likewise.
42708         * modules/unictype/property-paragraph-separator: Likewise.
42709         * modules/unictype/property-pattern-syntax: Likewise.
42710         * modules/unictype/property-pattern-white-space: Likewise.
42711         * modules/unictype/property-private-use: Likewise.
42712         * modules/unictype/property-punctuation: Likewise.
42713         * modules/unictype/property-quotation-mark: Likewise.
42714         * modules/unictype/property-radical: Likewise.
42715         * modules/unictype/property-sentence-terminal: Likewise.
42716         * modules/unictype/property-soft-dotted: Likewise.
42717         * modules/unictype/property-space: Likewise.
42718         * modules/unictype/property-terminal-punctuation: Likewise.
42719         * modules/unictype/property-test: Likewise.
42720         * modules/unictype/property-titlecase: Likewise.
42721         * modules/unictype/property-unassigned-code-value: Likewise.
42722         * modules/unictype/property-unified-ideograph: Likewise.
42723         * modules/unictype/property-uppercase: Likewise.
42724         * modules/unictype/property-variation-selector: Likewise.
42725         * modules/unictype/property-white-space: Likewise.
42726         * modules/unictype/property-xid-continue: Likewise.
42727         * modules/unictype/property-xid-start: Likewise.
42728         * modules/unictype/property-zero-width: Likewise.
42729         * modules/unictype/scripts: Likewise.
42730         * modules/unictype/syntax-c-ident: Likewise.
42731         * modules/unictype/syntax-c-whitespace: Likewise.
42732         * modules/unictype/syntax-java-ident: Likewise.
42733         * modules/unictype/syntax-java-whitespace: Likewise.
42734         * modules/unilbrk/u8-possible-linebreaks: Likewise.
42735         * modules/unilbrk/u8-width-linebreaks: Likewise.
42736         * modules/unilbrk/u16-possible-linebreaks: Likewise.
42737         * modules/unilbrk/u16-width-linebreaks: Likewise.
42738         * modules/unilbrk/u32-possible-linebreaks: Likewise.
42739         * modules/unilbrk/u32-width-linebreaks: Likewise.
42740         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
42741         * modules/unilbrk/ulc-width-linebreaks: Likewise.
42742         * modules/uniname/uniname: Likewise.
42743         * modules/uninorm/canonical-decomposition: Likewise.
42744         * modules/uninorm/composition: Likewise.
42745         * modules/uninorm/decomposing-form: Likewise.
42746         * modules/uninorm/decomposition: Likewise.
42747         * modules/uninorm/filter: Likewise.
42748         * modules/uninorm/nfc: Likewise.
42749         * modules/uninorm/nfd: Likewise.
42750         * modules/uninorm/nfkc: Likewise.
42751         * modules/uninorm/nfkd: Likewise.
42752         * modules/uninorm/u8-normalize: Likewise.
42753         * modules/uninorm/u8-normcmp: Likewise.
42754         * modules/uninorm/u8-normcoll: Likewise.
42755         * modules/uninorm/u8-normxfrm: Likewise.
42756         * modules/uninorm/u16-normalize: Likewise.
42757         * modules/uninorm/u16-normcmp: Likewise.
42758         * modules/uninorm/u16-normcoll: Likewise.
42759         * modules/uninorm/u16-normxfrm: Likewise.
42760         * modules/uninorm/u32-normalize: Likewise.
42761         * modules/uninorm/u32-normcmp: Likewise.
42762         * modules/uninorm/u32-normcoll: Likewise.
42763         * modules/uninorm/u32-normxfrm: Likewise.
42764         * modules/unistdio/u8-asnprintf: Likewise.
42765         * modules/unistdio/u8-asprintf: Likewise.
42766         * modules/unistdio/u8-snprintf: Likewise.
42767         * modules/unistdio/u8-sprintf: Likewise.
42768         * modules/unistdio/u8-u8-asnprintf: Likewise.
42769         * modules/unistdio/u8-u8-asprintf: Likewise.
42770         * modules/unistdio/u8-u8-snprintf: Likewise.
42771         * modules/unistdio/u8-u8-sprintf: Likewise.
42772         * modules/unistdio/u8-u8-vasnprintf: Likewise.
42773         * modules/unistdio/u8-u8-vasprintf: Likewise.
42774         * modules/unistdio/u8-u8-vsnprintf: Likewise.
42775         * modules/unistdio/u8-u8-vsprintf: Likewise.
42776         * modules/unistdio/u8-vasnprintf: Likewise.
42777         * modules/unistdio/u8-vasprintf: Likewise.
42778         * modules/unistdio/u8-vsnprintf: Likewise.
42779         * modules/unistdio/u8-vsprintf: Likewise.
42780         * modules/unistdio/u16-asnprintf: Likewise.
42781         * modules/unistdio/u16-asprintf: Likewise.
42782         * modules/unistdio/u16-snprintf: Likewise.
42783         * modules/unistdio/u16-sprintf: Likewise.
42784         * modules/unistdio/u16-u16-asnprintf: Likewise.
42785         * modules/unistdio/u16-u16-asprintf: Likewise.
42786         * modules/unistdio/u16-u16-snprintf: Likewise.
42787         * modules/unistdio/u16-u16-sprintf: Likewise.
42788         * modules/unistdio/u16-u16-vasnprintf: Likewise.
42789         * modules/unistdio/u16-u16-vasprintf: Likewise.
42790         * modules/unistdio/u16-u16-vsnprintf: Likewise.
42791         * modules/unistdio/u16-u16-vsprintf: Likewise.
42792         * modules/unistdio/u16-vasnprintf: Likewise.
42793         * modules/unistdio/u16-vasprintf: Likewise.
42794         * modules/unistdio/u16-vsnprintf: Likewise.
42795         * modules/unistdio/u16-vsprintf: Likewise.
42796         * modules/unistdio/u32-asnprintf: Likewise.
42797         * modules/unistdio/u32-asprintf: Likewise.
42798         * modules/unistdio/u32-snprintf: Likewise.
42799         * modules/unistdio/u32-sprintf: Likewise.
42800         * modules/unistdio/u32-u32-asnprintf: Likewise.
42801         * modules/unistdio/u32-u32-asprintf: Likewise.
42802         * modules/unistdio/u32-u32-snprintf: Likewise.
42803         * modules/unistdio/u32-u32-sprintf: Likewise.
42804         * modules/unistdio/u32-u32-vasnprintf: Likewise.
42805         * modules/unistdio/u32-u32-vasprintf: Likewise.
42806         * modules/unistdio/u32-u32-vsnprintf: Likewise.
42807         * modules/unistdio/u32-u32-vsprintf: Likewise.
42808         * modules/unistdio/u32-vasnprintf: Likewise.
42809         * modules/unistdio/u32-vasprintf: Likewise.
42810         * modules/unistdio/u32-vsnprintf: Likewise.
42811         * modules/unistdio/u32-vsprintf: Likewise.
42812         * modules/unistdio/ulc-asnprintf: Likewise.
42813         * modules/unistdio/ulc-asprintf: Likewise.
42814         * modules/unistdio/ulc-fprintf: Likewise.
42815         * modules/unistdio/ulc-snprintf: Likewise.
42816         * modules/unistdio/ulc-sprintf: Likewise.
42817         * modules/unistdio/ulc-vasnprintf: Likewise.
42818         * modules/unistdio/ulc-vasprintf: Likewise.
42819         * modules/unistdio/ulc-vfprintf: Likewise.
42820         * modules/unistdio/ulc-vsnprintf: Likewise.
42821         * modules/unistdio/ulc-vsprintf: Likewise.
42822         * modules/unistr/u8-check: Likewise.
42823         * modules/unistr/u8-chr: Likewise.
42824         * modules/unistr/u8-cmp: Likewise.
42825         * modules/unistr/u8-cmp2: Likewise.
42826         * modules/unistr/u8-cpy: Likewise.
42827         * modules/unistr/u8-cpy-alloc: Likewise.
42828         * modules/unistr/u8-endswith: Likewise.
42829         * modules/unistr/u8-mblen: Likewise.
42830         * modules/unistr/u8-mbsnlen: Likewise.
42831         * modules/unistr/u8-mbtouc: Likewise.
42832         * modules/unistr/u8-mbtouc-unsafe: Likewise.
42833         * modules/unistr/u8-mbtoucr: Likewise.
42834         * modules/unistr/u8-move: Likewise.
42835         * modules/unistr/u8-next: Likewise.
42836         * modules/unistr/u8-prev: Likewise.
42837         * modules/unistr/u8-set: Likewise.
42838         * modules/unistr/u8-startswith: Likewise.
42839         * modules/unistr/u8-stpcpy: Likewise.
42840         * modules/unistr/u8-stpncpy: Likewise.
42841         * modules/unistr/u8-strcat: Likewise.
42842         * modules/unistr/u8-strchr: Likewise.
42843         * modules/unistr/u8-strcmp: Likewise.
42844         * modules/unistr/u8-strcoll: Likewise.
42845         * modules/unistr/u8-strcpy: Likewise.
42846         * modules/unistr/u8-strcspn: Likewise.
42847         * modules/unistr/u8-strdup: Likewise.
42848         * modules/unistr/u8-strlen: Likewise.
42849         * modules/unistr/u8-strmblen: Likewise.
42850         * modules/unistr/u8-strmbtouc: Likewise.
42851         * modules/unistr/u8-strncat: Likewise.
42852         * modules/unistr/u8-strncmp: Likewise.
42853         * modules/unistr/u8-strncpy: Likewise.
42854         * modules/unistr/u8-strnlen: Likewise.
42855         * modules/unistr/u8-strpbrk: Likewise.
42856         * modules/unistr/u8-strrchr: Likewise.
42857         * modules/unistr/u8-strspn: Likewise.
42858         * modules/unistr/u8-strstr: Likewise.
42859         * modules/unistr/u8-strtok: Likewise.
42860         * modules/unistr/u8-to-u16: Likewise.
42861         * modules/unistr/u8-to-u32: Likewise.
42862         * modules/unistr/u8-uctomb: Likewise.
42863         * modules/unistr/u16-check: Likewise.
42864         * modules/unistr/u16-chr: Likewise.
42865         * modules/unistr/u16-cmp: Likewise.
42866         * modules/unistr/u16-cmp2: Likewise.
42867         * modules/unistr/u16-cpy: Likewise.
42868         * modules/unistr/u16-cpy-alloc: Likewise.
42869         * modules/unistr/u16-endswith: Likewise.
42870         * modules/unistr/u16-mblen: Likewise.
42871         * modules/unistr/u16-mbsnlen: Likewise.
42872         * modules/unistr/u16-mbtouc: Likewise.
42873         * modules/unistr/u16-mbtouc-unsafe: Likewise.
42874         * modules/unistr/u16-mbtoucr: Likewise.
42875         * modules/unistr/u16-move: Likewise.
42876         * modules/unistr/u16-next: Likewise.
42877         * modules/unistr/u16-prev: Likewise.
42878         * modules/unistr/u16-set: Likewise.
42879         * modules/unistr/u16-startswith: Likewise.
42880         * modules/unistr/u16-stpcpy: Likewise.
42881         * modules/unistr/u16-stpncpy: Likewise.
42882         * modules/unistr/u16-strcat: Likewise.
42883         * modules/unistr/u16-strchr: Likewise.
42884         * modules/unistr/u16-strcmp: Likewise.
42885         * modules/unistr/u16-strcoll: Likewise.
42886         * modules/unistr/u16-strcpy: Likewise.
42887         * modules/unistr/u16-strcspn: Likewise.
42888         * modules/unistr/u16-strdup: Likewise.
42889         * modules/unistr/u16-strlen: Likewise.
42890         * modules/unistr/u16-strmblen: Likewise.
42891         * modules/unistr/u16-strmbtouc: Likewise.
42892         * modules/unistr/u16-strncat: Likewise.
42893         * modules/unistr/u16-strncmp: Likewise.
42894         * modules/unistr/u16-strncpy: Likewise.
42895         * modules/unistr/u16-strnlen: Likewise.
42896         * modules/unistr/u16-strpbrk: Likewise.
42897         * modules/unistr/u16-strrchr: Likewise.
42898         * modules/unistr/u16-strspn: Likewise.
42899         * modules/unistr/u16-strstr: Likewise.
42900         * modules/unistr/u16-strtok: Likewise.
42901         * modules/unistr/u16-to-u32: Likewise.
42902         * modules/unistr/u16-to-u8: Likewise.
42903         * modules/unistr/u16-uctomb: Likewise.
42904         * modules/unistr/u32-check: Likewise.
42905         * modules/unistr/u32-chr: Likewise.
42906         * modules/unistr/u32-cmp: Likewise.
42907         * modules/unistr/u32-cmp2: Likewise.
42908         * modules/unistr/u32-cpy: Likewise.
42909         * modules/unistr/u32-cpy-alloc: Likewise.
42910         * modules/unistr/u32-endswith: Likewise.
42911         * modules/unistr/u32-mblen: Likewise.
42912         * modules/unistr/u32-mbsnlen: Likewise.
42913         * modules/unistr/u32-mbtouc: Likewise.
42914         * modules/unistr/u32-mbtouc-unsafe: Likewise.
42915         * modules/unistr/u32-mbtoucr: Likewise.
42916         * modules/unistr/u32-move: Likewise.
42917         * modules/unistr/u32-next: Likewise.
42918         * modules/unistr/u32-prev: Likewise.
42919         * modules/unistr/u32-set: Likewise.
42920         * modules/unistr/u32-startswith: Likewise.
42921         * modules/unistr/u32-stpcpy: Likewise.
42922         * modules/unistr/u32-stpncpy: Likewise.
42923         * modules/unistr/u32-strcat: Likewise.
42924         * modules/unistr/u32-strchr: Likewise.
42925         * modules/unistr/u32-strcmp: Likewise.
42926         * modules/unistr/u32-strcoll: Likewise.
42927         * modules/unistr/u32-strcpy: Likewise.
42928         * modules/unistr/u32-strcspn: Likewise.
42929         * modules/unistr/u32-strdup: Likewise.
42930         * modules/unistr/u32-strlen: Likewise.
42931         * modules/unistr/u32-strmblen: Likewise.
42932         * modules/unistr/u32-strmbtouc: Likewise.
42933         * modules/unistr/u32-strncat: Likewise.
42934         * modules/unistr/u32-strncmp: Likewise.
42935         * modules/unistr/u32-strncpy: Likewise.
42936         * modules/unistr/u32-strnlen: Likewise.
42937         * modules/unistr/u32-strpbrk: Likewise.
42938         * modules/unistr/u32-strrchr: Likewise.
42939         * modules/unistr/u32-strspn: Likewise.
42940         * modules/unistr/u32-strstr: Likewise.
42941         * modules/unistr/u32-strtok: Likewise.
42942         * modules/unistr/u32-to-u16: Likewise.
42943         * modules/unistr/u32-to-u8: Likewise.
42944         * modules/unistr/u32-uctomb: Likewise.
42945         * modules/uniwbrk/u8-wordbreaks: Likewise.
42946         * modules/uniwbrk/u16-wordbreaks: Likewise.
42947         * modules/uniwbrk/u32-wordbreaks: Likewise.
42948         * modules/uniwbrk/ulc-wordbreaks: Likewise.
42949         * modules/uniwbrk/wordbreak-property: Likewise.
42950         * modules/uniwidth/u8-strwidth: Likewise.
42951         * modules/uniwidth/u8-width: Likewise.
42952         * modules/uniwidth/u16-strwidth: Likewise.
42953         * modules/uniwidth/u16-width: Likewise.
42954         * modules/uniwidth/u32-strwidth: Likewise.
42955         * modules/uniwidth/u32-width: Likewise.
42956         * modules/uniwidth/width: Likewise.
42957         * modules/unicase/cased-tests (Makefile.am): Link all test programs
42958         with $(LIBUNISTRING).
42959         * modules/unicase/ignorable-tests: Likewise.
42960         * modules/unicase/locale-language-tests: Likewise.
42961         * modules/unicase/tolower-tests: Likewise.
42962         * modules/unicase/totitle-tests: Likewise.
42963         * modules/unicase/toupper-tests: Likewise.
42964         * modules/unicase/u8-casecmp-tests: Likewise.
42965         * modules/unicase/u8-casecoll-tests: Likewise.
42966         * modules/unicase/u8-casefold-tests: Likewise.
42967         * modules/unicase/u8-is-cased-tests: Likewise.
42968         * modules/unicase/u8-is-casefolded-tests: Likewise.
42969         * modules/unicase/u8-is-lowercase-tests: Likewise.
42970         * modules/unicase/u8-is-titlecase-tests: Likewise.
42971         * modules/unicase/u8-is-uppercase-tests: Likewise.
42972         * modules/unicase/u8-tolower-tests: Likewise.
42973         * modules/unicase/u8-totitle-tests: Likewise.
42974         * modules/unicase/u8-toupper-tests: Likewise.
42975         * modules/unicase/u16-casecmp-tests: Likewise.
42976         * modules/unicase/u16-casecoll-tests: Likewise.
42977         * modules/unicase/u16-casefold-tests: Likewise.
42978         * modules/unicase/u16-is-cased-tests: Likewise.
42979         * modules/unicase/u16-is-casefolded-tests: Likewise.
42980         * modules/unicase/u16-is-lowercase-tests: Likewise.
42981         * modules/unicase/u16-is-titlecase-tests: Likewise.
42982         * modules/unicase/u16-is-uppercase-tests: Likewise.
42983         * modules/unicase/u16-tolower-tests: Likewise.
42984         * modules/unicase/u16-totitle-tests: Likewise.
42985         * modules/unicase/u16-toupper-tests: Likewise.
42986         * modules/unicase/u32-casecmp-tests: Likewise.
42987         * modules/unicase/u32-casecoll-tests: Likewise.
42988         * modules/unicase/u32-casefold-tests: Likewise.
42989         * modules/unicase/u32-is-cased-tests: Likewise.
42990         * modules/unicase/u32-is-casefolded-tests: Likewise.
42991         * modules/unicase/u32-is-lowercase-tests: Likewise.
42992         * modules/unicase/u32-is-titlecase-tests: Likewise.
42993         * modules/unicase/u32-is-uppercase-tests: Likewise.
42994         * modules/unicase/u32-tolower-tests: Likewise.
42995         * modules/unicase/u32-totitle-tests: Likewise.
42996         * modules/unicase/u32-toupper-tests: Likewise.
42997         * modules/unicase/ulc-casecmp-tests: Likewise.
42998         * modules/unicase/ulc-casecoll-tests: Likewise.
42999         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
43000         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
43001         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
43002         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
43003         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
43004         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
43005         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
43006         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
43007         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
43008         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
43009         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
43010         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
43011         * modules/unictype/bidicategory-byname-tests: Likewise.
43012         * modules/unictype/bidicategory-name-tests: Likewise.
43013         * modules/unictype/bidicategory-of-tests: Likewise.
43014         * modules/unictype/bidicategory-test-tests: Likewise.
43015         * modules/unictype/block-list-tests: Likewise.
43016         * modules/unictype/block-of-tests: Likewise.
43017         * modules/unictype/block-test-tests: Likewise.
43018         * modules/unictype/category-C-tests: Likewise.
43019         * modules/unictype/category-Cc-tests: Likewise.
43020         * modules/unictype/category-Cf-tests: Likewise.
43021         * modules/unictype/category-Cn-tests: Likewise.
43022         * modules/unictype/category-Co-tests: Likewise.
43023         * modules/unictype/category-Cs-tests: Likewise.
43024         * modules/unictype/category-L-tests: Likewise.
43025         * modules/unictype/category-Ll-tests: Likewise.
43026         * modules/unictype/category-Lm-tests: Likewise.
43027         * modules/unictype/category-Lo-tests: Likewise.
43028         * modules/unictype/category-Lt-tests: Likewise.
43029         * modules/unictype/category-Lu-tests: Likewise.
43030         * modules/unictype/category-M-tests: Likewise.
43031         * modules/unictype/category-Mc-tests: Likewise.
43032         * modules/unictype/category-Me-tests: Likewise.
43033         * modules/unictype/category-Mn-tests: Likewise.
43034         * modules/unictype/category-N-tests: Likewise.
43035         * modules/unictype/category-Nd-tests: Likewise.
43036         * modules/unictype/category-Nl-tests: Likewise.
43037         * modules/unictype/category-No-tests: Likewise.
43038         * modules/unictype/category-P-tests: Likewise.
43039         * modules/unictype/category-Pc-tests: Likewise.
43040         * modules/unictype/category-Pd-tests: Likewise.
43041         * modules/unictype/category-Pe-tests: Likewise.
43042         * modules/unictype/category-Pf-tests: Likewise.
43043         * modules/unictype/category-Pi-tests: Likewise.
43044         * modules/unictype/category-Po-tests: Likewise.
43045         * modules/unictype/category-Ps-tests: Likewise.
43046         * modules/unictype/category-S-tests: Likewise.
43047         * modules/unictype/category-Sc-tests: Likewise.
43048         * modules/unictype/category-Sk-tests: Likewise.
43049         * modules/unictype/category-Sm-tests: Likewise.
43050         * modules/unictype/category-So-tests: Likewise.
43051         * modules/unictype/category-Z-tests: Likewise.
43052         * modules/unictype/category-Zl-tests: Likewise.
43053         * modules/unictype/category-Zp-tests: Likewise.
43054         * modules/unictype/category-Zs-tests: Likewise.
43055         * modules/unictype/category-and-not-tests: Likewise.
43056         * modules/unictype/category-and-tests: Likewise.
43057         * modules/unictype/category-byname-tests: Likewise.
43058         * modules/unictype/category-name-tests: Likewise.
43059         * modules/unictype/category-none-tests: Likewise.
43060         * modules/unictype/category-of-tests: Likewise.
43061         * modules/unictype/category-or-tests: Likewise.
43062         * modules/unictype/category-test-withtable-tests: Likewise.
43063         * modules/unictype/combining-class-tests: Likewise.
43064         * modules/unictype/ctype-alnum-tests: Likewise.
43065         * modules/unictype/ctype-alpha-tests: Likewise.
43066         * modules/unictype/ctype-blank-tests: Likewise.
43067         * modules/unictype/ctype-cntrl-tests: Likewise.
43068         * modules/unictype/ctype-digit-tests: Likewise.
43069         * modules/unictype/ctype-graph-tests: Likewise.
43070         * modules/unictype/ctype-lower-tests: Likewise.
43071         * modules/unictype/ctype-print-tests: Likewise.
43072         * modules/unictype/ctype-punct-tests: Likewise.
43073         * modules/unictype/ctype-space-tests: Likewise.
43074         * modules/unictype/ctype-upper-tests: Likewise.
43075         * modules/unictype/ctype-xdigit-tests: Likewise.
43076         * modules/unictype/decimal-digit-tests: Likewise.
43077         * modules/unictype/digit-tests: Likewise.
43078         * modules/unictype/mirror-tests: Likewise.
43079         * modules/unictype/numeric-tests: Likewise.
43080         * modules/unictype/property-alphabetic-tests: Likewise.
43081         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
43082         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
43083         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
43084         * modules/unictype/property-bidi-block-separator-tests: Likewise.
43085         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
43086         * modules/unictype/property-bidi-common-separator-tests: Likewise.
43087         * modules/unictype/property-bidi-control-tests: Likewise.
43088         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
43089         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
43090         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
43091         * modules/unictype/property-bidi-european-digit-tests: Likewise.
43092         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
43093         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
43094         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
43095         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
43096         * modules/unictype/property-bidi-pdf-tests: Likewise.
43097         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
43098         * modules/unictype/property-bidi-whitespace-tests: Likewise.
43099         * modules/unictype/property-byname-tests: Likewise.
43100         * modules/unictype/property-combining-tests: Likewise.
43101         * modules/unictype/property-composite-tests: Likewise.
43102         * modules/unictype/property-currency-symbol-tests: Likewise.
43103         * modules/unictype/property-dash-tests: Likewise.
43104         * modules/unictype/property-decimal-digit-tests: Likewise.
43105         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
43106         * modules/unictype/property-deprecated-tests: Likewise.
43107         * modules/unictype/property-diacritic-tests: Likewise.
43108         * modules/unictype/property-extender-tests: Likewise.
43109         * modules/unictype/property-format-control-tests: Likewise.
43110         * modules/unictype/property-grapheme-base-tests: Likewise.
43111         * modules/unictype/property-grapheme-extend-tests: Likewise.
43112         * modules/unictype/property-grapheme-link-tests: Likewise.
43113         * modules/unictype/property-hex-digit-tests: Likewise.
43114         * modules/unictype/property-hyphen-tests: Likewise.
43115         * modules/unictype/property-id-continue-tests: Likewise.
43116         * modules/unictype/property-id-start-tests: Likewise.
43117         * modules/unictype/property-ideographic-tests: Likewise.
43118         * modules/unictype/property-ids-binary-operator-tests: Likewise.
43119         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
43120         * modules/unictype/property-ignorable-control-tests: Likewise.
43121         * modules/unictype/property-iso-control-tests: Likewise.
43122         * modules/unictype/property-join-control-tests: Likewise.
43123         * modules/unictype/property-left-of-pair-tests: Likewise.
43124         * modules/unictype/property-line-separator-tests: Likewise.
43125         * modules/unictype/property-logical-order-exception-tests: Likewise.
43126         * modules/unictype/property-lowercase-tests: Likewise.
43127         * modules/unictype/property-math-tests: Likewise.
43128         * modules/unictype/property-non-break-tests: Likewise.
43129         * modules/unictype/property-not-a-character-tests: Likewise.
43130         * modules/unictype/property-numeric-tests: Likewise.
43131         * modules/unictype/property-other-alphabetic-tests: Likewise.
43132         * modules/unictype/property-other-default-ignorable-code-point-tests:
43133         Likewise.
43134         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
43135         * modules/unictype/property-other-id-continue-tests: Likewise.
43136         * modules/unictype/property-other-id-start-tests: Likewise.
43137         * modules/unictype/property-other-lowercase-tests: Likewise.
43138         * modules/unictype/property-other-math-tests: Likewise.
43139         * modules/unictype/property-other-uppercase-tests: Likewise.
43140         * modules/unictype/property-paired-punctuation-tests: Likewise.
43141         * modules/unictype/property-paragraph-separator-tests: Likewise.
43142         * modules/unictype/property-pattern-syntax-tests: Likewise.
43143         * modules/unictype/property-pattern-white-space-tests: Likewise.
43144         * modules/unictype/property-private-use-tests: Likewise.
43145         * modules/unictype/property-punctuation-tests: Likewise.
43146         * modules/unictype/property-quotation-mark-tests: Likewise.
43147         * modules/unictype/property-radical-tests: Likewise.
43148         * modules/unictype/property-sentence-terminal-tests: Likewise.
43149         * modules/unictype/property-soft-dotted-tests: Likewise.
43150         * modules/unictype/property-space-tests: Likewise.
43151         * modules/unictype/property-terminal-punctuation-tests: Likewise.
43152         * modules/unictype/property-test-tests: Likewise.
43153         * modules/unictype/property-titlecase-tests: Likewise.
43154         * modules/unictype/property-unassigned-code-value-tests: Likewise.
43155         * modules/unictype/property-unified-ideograph-tests: Likewise.
43156         * modules/unictype/property-uppercase-tests: Likewise.
43157         * modules/unictype/property-variation-selector-tests: Likewise.
43158         * modules/unictype/property-white-space-tests: Likewise.
43159         * modules/unictype/property-xid-continue-tests: Likewise.
43160         * modules/unictype/property-xid-start-tests: Likewise.
43161         * modules/unictype/property-zero-width-tests: Likewise.
43162         * modules/unictype/scripts-tests: Likewise.
43163         * modules/unictype/syntax-c-ident-tests: Likewise.
43164         * modules/unictype/syntax-c-whitespace-tests: Likewise.
43165         * modules/unictype/syntax-java-ident-tests: Likewise.
43166         * modules/unictype/syntax-java-whitespace-tests: Likewise.
43167         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
43168         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
43169         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
43170         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
43171         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
43172         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
43173         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
43174         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
43175         * modules/uniname/uniname-tests: Likewise.
43176         * modules/uninorm/canonical-decomposition-tests: Likewise.
43177         * modules/uninorm/compat-decomposition-tests: Likewise.
43178         * modules/uninorm/composition-tests: Likewise.
43179         * modules/uninorm/decomposing-form-tests: Likewise.
43180         * modules/uninorm/decomposition-tests: Likewise.
43181         * modules/uninorm/filter-tests: Likewise.
43182         * modules/uninorm/nfc-tests: Likewise.
43183         * modules/uninorm/nfd-tests: Likewise.
43184         * modules/uninorm/nfkc-tests: Likewise.
43185         * modules/uninorm/nfkd-tests: Likewise.
43186         * modules/uninorm/u8-normcmp-tests: Likewise.
43187         * modules/uninorm/u8-normcoll-tests: Likewise.
43188         * modules/uninorm/u16-normcmp-tests: Likewise.
43189         * modules/uninorm/u16-normcoll-tests: Likewise.
43190         * modules/uninorm/u32-normcmp-tests: Likewise.
43191         * modules/uninorm/u32-normcoll-tests: Likewise.
43192         * modules/unistdio/u8-asnprintf-tests: Likewise.
43193         * modules/unistdio/u8-vasnprintf-tests: Likewise.
43194         * modules/unistdio/u8-vasprintf-tests: Likewise.
43195         * modules/unistdio/u8-vsnprintf-tests: Likewise.
43196         * modules/unistdio/u8-vsprintf-tests: Likewise.
43197         * modules/unistdio/u16-asnprintf-tests: Likewise.
43198         * modules/unistdio/u16-vasnprintf-tests: Likewise.
43199         * modules/unistdio/u16-vasprintf-tests: Likewise.
43200         * modules/unistdio/u16-vsnprintf-tests: Likewise.
43201         * modules/unistdio/u16-vsprintf-tests: Likewise.
43202         * modules/unistdio/u32-asnprintf-tests: Likewise.
43203         * modules/unistdio/u32-vasnprintf-tests: Likewise.
43204         * modules/unistdio/u32-vasprintf-tests: Likewise.
43205         * modules/unistdio/u32-vsnprintf-tests: Likewise.
43206         * modules/unistdio/u32-vsprintf-tests: Likewise.
43207         * modules/unistdio/ulc-asnprintf-tests: Likewise.
43208         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
43209         * modules/unistdio/ulc-vasprintf-tests: Likewise.
43210         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
43211         * modules/unistdio/ulc-vsprintf-tests: Likewise.
43212         * modules/unistr/u8-check-tests: Likewise.
43213         * modules/unistr/u8-chr-tests: Likewise.
43214         * modules/unistr/u8-cmp-tests: Likewise.
43215         * modules/unistr/u8-cmp2-tests: Likewise.
43216         * modules/unistr/u8-cpy-alloc-tests: Likewise.
43217         * modules/unistr/u8-cpy-tests: Likewise.
43218         * modules/unistr/u8-mblen-tests: Likewise.
43219         * modules/unistr/u8-mbsnlen-tests: Likewise.
43220         * modules/unistr/u8-mbtouc-tests: Likewise.
43221         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
43222         * modules/unistr/u8-mbtoucr-tests: Likewise.
43223         * modules/unistr/u8-move-tests: Likewise.
43224         * modules/unistr/u8-next-tests: Likewise.
43225         * modules/unistr/u8-prev-tests: Likewise.
43226         * modules/unistr/u8-set-tests: Likewise.
43227         * modules/unistr/u8-stpcpy-tests: Likewise.
43228         * modules/unistr/u8-stpncpy-tests: Likewise.
43229         * modules/unistr/u8-strcat-tests: Likewise.
43230         * modules/unistr/u8-strcmp-tests: Likewise.
43231         * modules/unistr/u8-strcoll-tests: Likewise.
43232         * modules/unistr/u8-strcpy-tests: Likewise.
43233         * modules/unistr/u8-strdup-tests: Likewise.
43234         * modules/unistr/u8-strlen-tests: Likewise.
43235         * modules/unistr/u8-strmblen-tests: Likewise.
43236         * modules/unistr/u8-strmbtouc-tests: Likewise.
43237         * modules/unistr/u8-strncat-tests: Likewise.
43238         * modules/unistr/u8-strncmp-tests: Likewise.
43239         * modules/unistr/u8-strncpy-tests: Likewise.
43240         * modules/unistr/u8-strnlen-tests: Likewise.
43241         * modules/unistr/u8-to-u16-tests: Likewise.
43242         * modules/unistr/u8-to-u32-tests: Likewise.
43243         * modules/unistr/u8-uctomb-tests: Likewise.
43244         * modules/unistr/u16-check-tests: Likewise.
43245         * modules/unistr/u16-chr-tests: Likewise.
43246         * modules/unistr/u16-cmp-tests: Likewise.
43247         * modules/unistr/u16-cmp2-tests: Likewise.
43248         * modules/unistr/u16-cpy-alloc-tests: Likewise.
43249         * modules/unistr/u16-cpy-tests: Likewise.
43250         * modules/unistr/u16-mblen-tests: Likewise.
43251         * modules/unistr/u16-mbsnlen-tests: Likewise.
43252         * modules/unistr/u16-mbtouc-tests: Likewise.
43253         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
43254         * modules/unistr/u16-mbtoucr-tests: Likewise.
43255         * modules/unistr/u16-move-tests: Likewise.
43256         * modules/unistr/u16-next-tests: Likewise.
43257         * modules/unistr/u16-prev-tests: Likewise.
43258         * modules/unistr/u16-set-tests: Likewise.
43259         * modules/unistr/u16-stpcpy-tests: Likewise.
43260         * modules/unistr/u16-stpncpy-tests: Likewise.
43261         * modules/unistr/u16-strcat-tests: Likewise.
43262         * modules/unistr/u16-strcmp-tests: Likewise.
43263         * modules/unistr/u16-strcoll-tests: Likewise.
43264         * modules/unistr/u16-strcpy-tests: Likewise.
43265         * modules/unistr/u16-strdup-tests: Likewise.
43266         * modules/unistr/u16-strlen-tests: Likewise.
43267         * modules/unistr/u16-strmblen-tests: Likewise.
43268         * modules/unistr/u16-strmbtouc-tests: Likewise.
43269         * modules/unistr/u16-strncat-tests: Likewise.
43270         * modules/unistr/u16-strncmp-tests: Likewise.
43271         * modules/unistr/u16-strncpy-tests: Likewise.
43272         * modules/unistr/u16-strnlen-tests: Likewise.
43273         * modules/unistr/u16-to-u32-tests: Likewise.
43274         * modules/unistr/u16-to-u8-tests: Likewise.
43275         * modules/unistr/u16-uctomb-tests: Likewise.
43276         * modules/unistr/u32-check-tests: Likewise.
43277         * modules/unistr/u32-chr-tests: Likewise.
43278         * modules/unistr/u32-cmp-tests: Likewise.
43279         * modules/unistr/u32-cmp2-tests: Likewise.
43280         * modules/unistr/u32-cpy-alloc-tests: Likewise.
43281         * modules/unistr/u32-cpy-tests: Likewise.
43282         * modules/unistr/u32-mblen-tests: Likewise.
43283         * modules/unistr/u32-mbsnlen-tests: Likewise.
43284         * modules/unistr/u32-mbtouc-tests: Likewise.
43285         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
43286         * modules/unistr/u32-mbtoucr-tests: Likewise.
43287         * modules/unistr/u32-move-tests: Likewise.
43288         * modules/unistr/u32-next-tests: Likewise.
43289         * modules/unistr/u32-prev-tests: Likewise.
43290         * modules/unistr/u32-set-tests: Likewise.
43291         * modules/unistr/u32-stpcpy-tests: Likewise.
43292         * modules/unistr/u32-stpncpy-tests: Likewise.
43293         * modules/unistr/u32-strcat-tests: Likewise.
43294         * modules/unistr/u32-strcmp-tests: Likewise.
43295         * modules/unistr/u32-strcoll-tests: Likewise.
43296         * modules/unistr/u32-strcpy-tests: Likewise.
43297         * modules/unistr/u32-strdup-tests: Likewise.
43298         * modules/unistr/u32-strlen-tests: Likewise.
43299         * modules/unistr/u32-strmblen-tests: Likewise.
43300         * modules/unistr/u32-strmbtouc-tests: Likewise.
43301         * modules/unistr/u32-strncat-tests: Likewise.
43302         * modules/unistr/u32-strncmp-tests: Likewise.
43303         * modules/unistr/u32-strncpy-tests: Likewise.
43304         * modules/unistr/u32-strnlen-tests: Likewise.
43305         * modules/unistr/u32-to-u16-tests: Likewise.
43306         * modules/unistr/u32-to-u8-tests: Likewise.
43307         * modules/unistr/u32-uctomb-tests: Likewise.
43308         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
43309         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
43310         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
43311         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
43312         * modules/uniwidth/u8-strwidth-tests: Likewise.
43313         * modules/uniwidth/u8-width-tests: Likewise.
43314         * modules/uniwidth/u16-strwidth-tests: Likewise.
43315         * modules/uniwidth/u16-width-tests: Likewise.
43316         * modules/uniwidth/u32-strwidth-tests: Likewise.
43317         * modules/uniwidth/u32-width-tests: Likewise.
43318         * modules/uniwidth/width-tests: Likewise.
43320 2010-05-18  Richard Jones  <rjones@redhat.com>
43322         doc: users.txt: list hivex
43323         * users.txt: Add hivex.
43325 2010-05-18  Richard Jones  <rjones@redhat.com>
43327         doc: users.txt: list febootstrap
43328         * users.txt: Add febootstrap.
43330 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
43332         bootstrap: fix an error when gnulib is not used as a git submodule
43333         * build-aux/bootstrap (gnulib_path): If its length is zero then
43334         assign "gnulib" to it.
43335         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
43337 2010-05-16  Bruno Haible  <bruno@clisp.org>
43339         Avoid autoconf warnings about AM_ICONV.
43340         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
43341         2.64.
43343 2010-05-16  Bruno Haible  <bruno@clisp.org>
43345         absolute-header: Make the macro usable in more situations.
43346         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
43347         from gl_ABSOLUTE_HEADER.
43348         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
43350 2010-05-16  James Youngman  <jay@gnu.org>
43352         doc: update users.txt
43353         * users.txt: Add CSSC.
43355 2010-05-16  Jim Meyering  <meyering@redhat.com>
43357         init.sh: fix an error in the previous change; add more comments
43358         * tests/init.sh: Compare exit code in loop against 9, not 2.
43359         Patch by Bruno Haible.
43360         Make the two tests more similar by adding an empty "then" clause.
43361         Add comments.
43363         init.sh: avoid unnecessary shell re-exec
43364         * tests/init.sh: Improve the re-exec-required check to first test the
43365         current shell.  If it passes the test, do not search for a shell that
43366         does pass, and do not re-exec.  This test is particularly contorted to
43367         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
43368         of $(...) evokes a syntax error and causes immediate shell exit with
43369         status 2.  Bruno Haible reported that the re-exec made it impossible
43370         to single-step through any init.sh-using script.
43372 2010-05-16  Bruno Haible  <bruno@clisp.org>
43374         Fix collision between gnulib's and libintl's printf replacements.
43375         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
43376         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
43377         (printf): When using GNU C, map the __printf__ function to rpl_printf
43378         via __asm__. When not using GNU C, define rpl_printf instead of
43379         __printf__.
43380         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
43381         commit.
43382         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
43383         commit.
43384         * m4/asm-underscore.m4: New file.
43385         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
43386         * modules/stdio (Files): Add m4/asm-underscore.m4.
43387         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
43388         Reported by Ben Pfaff.
43390 2010-05-16  Bruno Haible  <bruno@clisp.org>
43392         verify: Avoid skipping the test on openSUSE 11.0.
43393         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
43395 2010-05-13  Bruno Haible  <bruno@clisp.org>
43397         Avoid useless warnings from G++.
43398         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
43399         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
43400         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43402 2010-05-11  Jim Meyering  <meyering@redhat.com>
43404         maint.mk: tweak preceding change
43405         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
43406         regexps tighter by anchoring at EOL, and make the new group "shy"
43407         for slightly decreased overhead.
43409 2010-05-11  Eric Blake  <eblake@redhat.com>
43411         maint.mk: gnulib doesn't guarantee NSIG
43412         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
43414 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
43416         test-pwrite.c: Remove unused variable declaration.
43417         * tests/test-pwrite.c (main): Remove read_buf declaration.
43419         Remove useless test-pwrite.sh file.
43420         * tests/test-pwrite.sh: Delete file.
43421         * modules/pwrite-tests: Remove references.
43422         Reported by Bruno Haible.
43424 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
43426         init.sh: fix a typo
43427         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
43429 2010-05-10  Jim Meyering  <meyering@redhat.com>
43431         maint.mk: avoid using a temporary file in the always-defined-macros check
43432         * top/maint.mk (.re-defmac): Remove rule.
43433         (gl_trap_): Remove definition.
43434         (sc_prohibit_always-defined_macros): Rewrite not to create and
43435         depend on a temporary file.  Instead, depend on GNU grep's ability
43436         to read a list of regular expressions from stdin when given "-f -".
43438 2010-05-09  Bruno Haible  <bruno@clisp.org>
43440         Update to GNU gettext 0.18, part 1.
43441         * m4/gettext.m4: Update to GNU gettext 0.18.
43442         * m4/intl.m4: Likewise.
43443         * m4/po.m4: Likewise.
43444         * modules/gettext (Files): Add m4/fcntl-o.m4.
43445         (configure.ac): Require gettext infrastructure from version 0.18.
43447 2010-05-09  Jim Meyering  <meyering@redhat.com>
43449         init.sh: enable MALLOC_PERTURB_
43450         * tests/init.sh: Enable glibc's malloc-perturbing option.
43452         maint.mk: improve sc_cross_check_PATH_usage_in_tests
43453         With my recent change in init.sh from the two-line form:
43454             -#   : ${srcdir=.}
43455             -#   . "$srcdir/init.sh"; path_prepend_ .
43456             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
43457         I noticed that using the one-line form would cause this test
43458         to fail with a false-positive, or to stop working altogether,
43459         depending on whether help-version changed or all the tests did.
43460         * top/maint.mk (_hv_regex): Remove this definition.
43461         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
43462         (_hv_regex_strong): Use a stronger regex to check for conformance.
43463         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
43464         Give a separate diagnostic for lack of conforming use.
43466         maint.mk: prohibit definition of symbols defined by gnulib
43467         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
43468         definition of symbols defined by gnulib.
43470 2010-05-09  Bruno Haible  <bruno@clisp.org>
43472         acl: Avoid test failure on Cygwin-hosted mingw.
43473         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
43475 2010-05-09  Bruno Haible  <bruno@clisp.org>
43477         error: Use system's fcntl function.
43478         * lib/error.c (fcntl): Undefine.
43480 2010-05-09  Jim Meyering  <meyering@redhat.com>
43482         verify: adjust formatting to be more consistent
43483         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
43484         argument-list '('s, and after one comma.
43486 2010-05-09  Bruno Haible  <bruno@clisp.org>
43488         error: More reliable output on mingw.
43489         * lib/error.c: Include <windows.h>.
43490         (is_open): New function.
43491         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
43492         defined.
43494 2010-05-09  Bruno Haible  <bruno@clisp.org>
43496         vasnprintf: Fix syntax errors in libintl build on mingw.
43497         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
43498         pad_ourselves and prec_ourselves after use.
43500 2010-05-08  Bruno Haible  <bruno@clisp.org>
43502         * lib/config.charset: Update comments for Cygwin 1.7.
43503         * lib/localcharset.c: Likewise.
43505 2010-05-07  Jim Meyering  <meyering@redhat.com>
43507         init.sh: improve comments
43508         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
43509         . "${srcdir=.}/init.sh"; path_prepend_ .
43510         Add a note about path_prepend_ and the alternative of using
43511         TESTS_ENVIRONMENT.
43513 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43515         exclude: Unescape hashed patterns in wildcard mode.
43516         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
43517         to the hash list.
43518         * tests/test-exclude8.sh: New test case.
43519         * modules/exclude-tests: Add new test.
43521 2010-05-05  Eric Blake  <eblake@redhat.com>
43523         verify: automate tests
43524         * modules/verify-tests: New module.
43525         * tests/test-verify.sh: New file.
43526         * tests/test-verify.c: Guard each negative test with a unique id.
43527         Also avoid warning about unused left hand of comma expressions.
43529 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
43531         Further improvements to verify.h, suggested by Eric Blake.
43532         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
43533         the GL_* versions, to avoid collision with OpenGL.
43534         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
43535         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
43536         than testing merely whether it's defined.
43538         Modify verify.h to pacify gcc -Wredundant_decls.
43539         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
43540         These use the prefix "GL_" since they're likely to be useful elsewhere.
43541         We may need to break them out into a different .h file.
43542         (__COUNTER__): Define to 0 if the compiler doesn't support it.
43543         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
43544         of verify_function__.
43546 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
43548         Tests for module pwrite.
43549         * modules/pwrite-tests: New file.
43550         * tests/test-pwrite.sh: New file.
43551         * tests/test-pwrite.c: New file.
43553         New module pwrite.
43554         * lib/unistd.in.h (pwrite): New declaration.
43555         * lib/pwrite.c: New file, from glibc with modifications.
43556         * m4/pwrite.m4: New file.
43557         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
43558         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
43559         REPLACE_PWRITE.
43560         * modules/pwrite: New file.
43561         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
43562         REPLACE_PWRITE.
43563         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
43564         * doc/posix-functions/pwrite.texi: Mention the new module.
43566 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
43568         pread: Update documentation.
43569         * doc/posix-functions/pread.texi: Mention the 'pread' module.
43571 2010-05-04  Eric Blake  <eblake@redhat.com>
43573         docs: update cygwin progress
43574         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
43575         this bug.
43576         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
43577         Added in cygwin 1.7.2.
43578         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
43579         Likewise.
43580         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
43581         Likewise.
43582         * doc/glibc-functions/dup3.texi (dup3): Likewise.
43583         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
43584         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43585         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
43586         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
43587         Mention nproc module.
43588         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
43589         bug in cygwin 1.7.5 addition.
43590         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
43591         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
43592         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
43593         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
43594         1.7.5.
43595         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
43596         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
43597         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
43598         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
43599         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
43600         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
43601         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
43602         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
43603         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
43604         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
43605         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
43606         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
43607         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
43608         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
43609         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
43610         Likewise.
43611         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
43612         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
43613         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
43614         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
43615         Likewise.
43616         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
43617         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
43618         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
43619         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
43620         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
43621         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
43622         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
43623         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
43624         Likewise.
43625         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
43626         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
43627         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
43628         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
43629         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
43630         Likewise.
43631         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
43632         Likewise.
43633         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
43634         Likewise.
43635         * doc/glibc-functions/xdrrec_endofrecord.texi
43636         (xdrrec_endofrecord): Likewise.
43637         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
43638         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
43639         Likewise.
43640         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
43641         Likewise.
43643 2010-05-04  Jim Meyering  <meyering@redhat.com>
43645         gendocs.sh: make its "-s FILE" option more useful
43646         * build-aux/gendocs.sh: When honoring the -s FILE option, update
43647         $PACKAGE to reflect the probably-different basename of "FILE".
43649 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43651         bootstrap: don't ignore download_po_files failure
43652         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
43653         failure.
43655 2010-05-03  Jim Meyering  <meyering@redhat.com>
43657         maint.mk: allow to pass options to gendocs.sh
43658         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
43659         (gendocs_options_): New overridable variable.
43661         gnu-web-doc-update: don't ignore configure or build failure
43662         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
43664         announce-gen: backslash-escape '@'s in --help output
43665         * build-aux/announce-gen: Fix syntax errors.
43667         maint.mk, announce-gen: allow project-specific announcement mail headers
43668         * top/maint.mk (translation_project_): Define default.
43669         (announcement_Cc_, announcement_mail_headers_): Likewise.
43670         (announcement): Invoke announce-gen with new --mail-headers option.
43671         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
43673         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
43674         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
43675         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
43676         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
43677         line in the "err2" output file when running "make check" in verbose
43678         mode (i.e., with set -x enabled).
43680 2010-05-03  Bruno Haible  <bruno@clisp.org>
43682         wctob: Fix for weird platforms.
43683         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
43684         argument value.
43686 2010-05-03  Jim Meyering  <meyering@redhat.com>
43688         maint.mk: prohibit unwarranted use of <strings.h>
43689         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
43690         strings.h in a file that does not also use strcasecmp, strncasecmp,
43691         ffs or ffsll.
43693         maint.mk: remove obsolete comments
43694         * top/maint.mk: Remove stale, commented-out rules.
43696 2010-05-02  Bruno Haible  <bruno@clisp.org>
43698         wcwidth: Declare also when it's aliased.
43699         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
43700         macro.
43702 2010-05-02  Bruno Haible  <bruno@clisp.org>
43704         Fix regression from 2010-04-25.
43705         * gnulib-tool (func_modules_transitive_closure): Check the status of
43706         all modules, not only of the tests that are of the form foo-tests where
43707         foo is a module.
43709 2010-05-02  Bruno Haible  <bruno@clisp.org>
43711         wctob: Work around nasty Cygwin 1.7.2 bug.
43712         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
43713         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
43715 2010-05-01  Bruno Haible  <bruno@clisp.org>
43717         fpurge: Sharper test.
43718         * tests/test-fpurge.c (main): Add one more ftell check.
43719         * modules/fpurge-tests (Depends-on): Add ftell.
43720         Suggested by Eric Blake.
43722 2010-05-01  Bruno Haible  <bruno@clisp.org>
43724         ftello: Another test.
43725         * tests/test-ftello3.c: New file.
43726         * modules/ftello-tests (Files): Add it.
43727         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
43728         MOSTLYCLEANFILES.
43730         ftell: Another test.
43731         * tests/test-ftell3.c: New file.
43732         * modules/ftell-tests (Files): Add it.
43733         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
43734         MOSTLYCLEANFILES.
43736 2010-05-01  Bruno Haible  <bruno@clisp.org>
43738         ftell, ftello: Work around Solaris bug.
43739         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
43740         * lib/ftello.c: Include stdio-impl.h.
43741         (ftello): On Solaris, when _IOWRT is set, compute the result without
43742         looking at _IOREAD.
43743         * modules/ftello (Files): Add lib/stdio-impl.h.
43744         * doc/posix-functions/ftell.texi: Mention Solaris bug.
43745         * doc/posix-functions/ftello.texi: Likewise.
43746         Reported by Eric Blake.
43748 2010-05-01  Bruno Haible  <bruno@clisp.org>
43750         freading: Adapt to special meaning of _IOREAD flag on Solaris.
43751         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
43752         the _IOWRT flag is also set.
43754 2010-05-01  Bruno Haible  <bruno@clisp.org>
43756         Fix doc about a HP-UX stdio bug.
43757         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
43758         * doc/posix-functions/ftello.texi: Likewise.
43760 2010-05-01  Bruno Haible  <bruno@clisp.org>
43762         lseek test: Fix failure on Solaris.
43763         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
43764         output.
43766 2010-04-30  Jim Meyering  <meyering@redhat.com>
43768         bootstrap: don't ignore failure to generate po*/Makevars
43769         * build-aux/bootstrap (with_gettext): Don't ignore failure
43770         to create po/Makevars or runtime-po/Makevars.
43772 2010-04-29  Eric Blake  <eblake@redhat.com>
43774         headers: relax license to LGPLv2+
43775         * modules/fcntl-h (License): Relax license.
43776         * modules/getopt-posix (License): Likewise.
43777         * modules/locale (License): Likewise.
43778         * modules/math (License): Likewise.
43779         * modules/pty (License): Likewise.
43780         * modules/sched (License): Likewise.
43781         * modules/search (License): Likewise.
43782         * modules/spawn (License): Likewise.
43783         * modules/stdarg (License): Likewise.
43784         * modules/sysexits (License): Likewise.
43786 2010-04-29  Jim Meyering  <meyering@redhat.com>
43788         inttypes: relax license to LGPLv2+
43789         * modules/inttypes (License): Relax license.
43791 2010-04-29  Simon Josefsson  <simon@josefsson.org>
43793         * top/maint.mk (indent): Run twice to produce idempotent results.
43795 2010-04-28  Bruno Haible  <bruno@clisp.org>
43797         getdate: Generate getdate.c in the source directory.
43798         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
43799         MOSTLYCLEANFILES.
43800         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
43802 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
43804         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
43805         is not declared as a const *; avoid warnings in that case.
43807 2010-04-28  Eric Blake  <eblake@redhat.com>
43809         canonicalize-lgpl: avoid compiler warning
43810         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
43811         declaration' / 'extraneous semicolon' warning with some compilers.
43812         Reported by Andreas Gruenbacher.
43814 2010-04-28  Jim Meyering  <meyering@redhat.com>
43816         init.sh: ensure a more reliable exit status when exiting via trap
43817         * tests/init.sh (setup_): Don't rely on $? in signal handler.
43818         Inspired by patches from Dmitry V. Levin.
43819         Also trap on signal 3 (SIGQUIT).
43821 2010-04-27  Bruno Haible  <bruno@clisp.org>
43823         Update doc about utimes().
43824         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
43825         'utimens' module.
43826         Reported by Andreas Gruenbacher <agruen@suse.de>.
43828 2010-04-27  Eric Blake  <eblake@redhat.com>
43830         full-read, full-write: relax license
43831         * modules/full-read (License): Drop to LGPLv2+.
43832         * modules/full-write (License): Likewise.
43833         * modules/safe-read (License): Likewise.
43834         * modules/safe-write (License): Likewise.
43836         pthread: mention library for linking
43837         * modules/pthread (Link): Mention $(LIB_PTHREAD).
43839 2010-04-27  Jim Meyering  <meyering@redhat.com>
43841         maint.mk: fix a bug introduced in last change
43842         * top/maint.mk (gl_assured_headers_): Now that all names are on
43843         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
43844         is not anchored to end of word, it should be adequate.
43846         maint.mk: avoid side-effect in latest syntax-check
43847         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
43848         to run commands via $(shell...), and hence to incur cost only when
43849         the new rule is actually run.
43851         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
43852         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
43853         and use that to create a regexp used to detect all #if HAVE_..._H uses.
43854         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
43855         (gl_assured_headers_, az_, AZ_): Define.
43856         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
43858 2010-04-26  Jim Meyering  <jim@meyering.net>
43859             Bruno Haible  <bruno@clisp.org>
43861         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
43862         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
43863         Prompted by an exchange with Gilles Espinasse.
43865 2010-04-26  Jim Meyering  <meyering@redhat.com>
43867         git-version-gen: aesthetic tweak
43868         * build-aux/git-version-gen: Use "$nl" rather than a literal,
43869         so that the command remains on a single line.
43871 2010-04-26  Eric Blake  <eblake@redhat.com>
43873         git-version-gen: allow use on EBCDIC hosts
43874         * build-aux/git-version-gen (dirty): Use literal rather than tying
43875         ourselves to ascii.
43876         Reported by Steve Goetze.
43878 2010-04-25  Bruno Haible  <bruno@clisp.org>
43880         netdb: Add support for GNULIB_POSIXCHECK.
43881         * lib/netdb.in.h: Include warn-on-use.h.
43882         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
43883         functions are used when GNULIB_POSIXCHECK is defined and the
43884         getaddrinfo module is not in use.
43885         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
43886         freeaddrinfo, gai_strerror, getnameinfo are declared.
43887         * modules/netdb (Depends-on): Add warn-on-use.
43888         (Makefile.am): Include warn-on-use.h in netdb.h.
43890 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
43892         build: avoid "make check" failure without .git/ directory
43893         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
43894         there is no .git/ directory.
43896 2010-04-25  Bruno Haible  <bruno@clisp.org>
43898         ptsname: Fix misuse of ttyname_r.
43899         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
43900         of errno.
43902 2010-04-25  Bruno Haible  <bruno@clisp.org>
43904         ttyname_r: Make it work on Solaris 10.
43905         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
43906         if the system function has the POSIX declaration. Test whether the
43907         function fails if the buffer is less than 128 bytes large.
43908         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
43909         system's ttyname_r function. Provide a reasonably large buffer.
43910         * modules/ttyname_r (Depends-on): Add extensions.
43911         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
43913 2010-04-25  Bruno Haible  <bruno@clisp.org>
43915         Use the 'extensions' module for some more functions on Solaris.
43916         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
43917         module.
43918         * doc/posix-functions/ctime_r.texi: Likewise.
43919         * doc/posix-functions/getgrgid_r.texi: Likewise.
43920         * doc/posix-functions/getgrnam_r.texi: Likewise.
43921         * doc/posix-functions/getpwnam_r.texi: Likewise.
43922         * doc/posix-functions/getpwuid_r.texi: Likewise.
43923         * doc/posix-functions/readdir_r.texi: Likewise.
43924         * doc/posix-functions/sigwait.texi: Likewise.
43925         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
43926         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
43928 2010-04-25  Bruno Haible  <bruno@clisp.org>
43930         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
43931         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
43932         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
43933         * lib/ttyname_r.c: Include <limits.h>.
43934         (ttyname_r): Define using the system's ttyname_r function, if it exists
43935         and not on Solaris.
43936         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
43937         set.
43938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
43939         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
43940         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
43941         Reported by Simon Josefsson.
43943 2010-04-25  Bruno Haible  <bruno@clisp.org>
43945         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
43946         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
43947         * doc/posix-functions/ctime_r.texi: Likewise.
43948         * doc/posix-functions/getgrgid_r.texi: Likewise.
43949         * doc/posix-functions/getgrnam_r.texi: Likewise.
43950         * doc/posix-functions/getlogin_r.texi: Likewise.
43951         * doc/posix-functions/getpwnam_r.texi: Likewise.
43952         * doc/posix-functions/getpwuid_r.texi: Likewise.
43953         * doc/posix-functions/readdir_r.texi: Likewise.
43954         * doc/posix-functions/sigwait.texi: Likewise.
43955         * doc/posix-functions/ttyname_r.texi: Likewise.
43956         Reported by Simon Josefsson.
43958 2010-04-25  Bruno Haible  <bruno@clisp.org>
43960         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
43961         * gnulib-tool (func_usage): Document that --with-*-tests options apply
43962         also to --create-testdir.
43963         (func_acceptable): Don't consider the status of *-tests modules here.
43964         (func_modules_transitive_closure): Consider it here, before including a
43965         test module.
43966         (func_import, func_create_testdir): Set inc_all_direct_tests,
43967         inc_all_indirect_tests.
43968         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
43969         --create-testdir and --create-megatestdir.
43971 2010-04-25  Bruno Haible  <bruno@clisp.org>
43973         gnulib-tool: Add --without-*-tests options.
43974         * gnulib-tool (func_usage): Document the --without-*-tests options.
43975         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
43976         excl_unportable_tests): New variables.
43977         Fail if they are specified with --import or --update.
43978         (func_acceptable): Respect the excl_*_tests variables.
43979         (func_import): Set the excl_*_tests variables to empty.
43981 2010-04-25  Simon Josefsson  <simon@josefsson.org>
43982             Bruno Haible  <bruno@clisp.org>
43984         Work around a MacOS X 10.4 bug with openpty.
43985         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
43986         * tests/test-openpty.c (main): Close the master side explicitly.
43988 2010-04-25  Bruno Haible  <bruno@clisp.org>
43990         strnlen: Fix a C++ test error on MacOS X and Solaris.
43991         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
43992         the function is not declared.
43993         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
43994         Simon Josefsson.
43996 2010-04-24  Bruno Haible  <bruno@clisp.org>
43998         Avoid a gcc warning.
43999         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
44000         of correct type for %08lx directive.
44001         Reported by Eric Blake.
44003 2010-04-24  Bruno Haible  <bruno@clisp.org>
44005         vasnprintf: Correct errno value in case of out-of-memory.
44006         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
44007         or sprintf. Use the errno value from SNPRINTF or sprintf.
44008         Reported by Ian Beckwith <ianb@erislabs.net>.
44010 2010-04-24  Bruno Haible  <bruno@clisp.org>
44012         ansi-c++-opt: Find correct compiler when cross-compiling.
44013         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
44014         AC_CHECK_PROGS.
44015         Reported by Simon Josefsson.
44017 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
44019         vc-list-files: Add support for subversion
44020         * build-aux/vc-list-files: Use "svn list" to generate the list of
44021         files controlled by subversion.
44023 2010-04-23  Jim Meyering  <meyering@redhat.com>
44025         vc-list-files tests: convert to use init.sh
44026         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
44027         path_prepend_.
44028         Use Exit, not exit.
44029         Use skip_ rather than open coding it.
44030         Remove trap set-up and compare definitions.
44031         * tests/test-vc-list-files-git.sh: Likewise.
44032         * modules/vc-list-files-tests (Files): Add tests/init.sh.
44034 2010-04-22  Simon Josefsson  <simon@josefsson.org>
44036         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
44037         backup files.
44039 2010-04-21  Simon Josefsson  <simon@josefsson.org>
44041         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
44043 2010-04-20  Eric Blake  <eblake@redhat.com>
44045         tests: be robust to ignored SIGPIPE
44046         * tests/test-select-in.sh: Consume all output.
44047         * tests/test-lseek.sh: Check correct exit status, while avoiding
44048         EPIPE.
44050 2010-04-20  Simon Josefsson  <simon@josefsson.org>
44051             Bruno Haible  <bruno@clisp.org>
44053         visibility: Don't use -fvisibility if it leads to a warning.
44054         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
44055         yes, don't pretend that visibility works if it leads to a warning.
44056         Reported by Mike Gran <spk121@yahoo.com>.
44058 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
44060         * build-aux/bootstrap: Use "git -h" for testing for supported options
44061         instead of "git --help".  The short-form option only shows a summary,
44062         and doesn't layout the full man page.  Grep for the full option name
44063         in the summary, too.
44065 2010-04-19  Bruno Haible  <bruno@clisp.org>
44067         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
44068         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
44069         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
44070         mention of RELOCATABLE_STRIP.
44071         Reported by Sylvain Beucler <beuc@beuc.net>.
44073 2010-04-19  Bruno Haible  <bruno@clisp.org>
44075         * lib/diffseq.h: Fix typo in comment.
44076         Reported by Eric Blake.
44078 2010-04-19  Bruno Haible  <bruno@clisp.org>
44080         ioctl: Move autoconf macro to a .m4 file.
44081         * m4/ioctl.m4: New file, extracted from modules/ioctl.
44082         * modules/ioctl (Files): Add it.
44083         (configure.ac): Simply invoke gl_FUNC_IOCTL.
44084         Reported by Ian Beckwith <ianb@erislabs.net>.
44086 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
44087             Bruno Haible  <bruno@clisp.org>
44089         diffseq: Accommodate use-case with abstract arrays.
44090         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
44091         is not defined.
44092         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
44093         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
44095 2010-04-18  Bruno Haible  <bruno@clisp.org>
44097         * doc/posix-headers/stdbool.texi: More precise wording.
44099 2010-04-17  Jim Meyering  <meyering@redhat.com>
44101         maint.mk: use gnu-style indentation in an embedded perl script
44102         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
44103         Rename variable: s/two/last_two_bytes/
44105 2010-04-16  Eric Blake  <eblake@redhat.com>
44107         test-stdbool: skip test that fails with Solaris CC
44108         * tests/test-stdbool.c (f): Skip test that causes compilation
44109         error under buggy C++ compiler.
44110         * lib/stdbool.in.h: Document the limitation.
44111         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
44113         setenv: allow compilation with C++
44114         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
44115         register keyword.
44117         stdint: allow test to pass with C++
44118         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
44120         getopt: allow compilation with C++
44121         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
44122         struct.
44123         * lib/getopt.c (_getopt_internal_r): Use correct type.
44124         Reported by Dagobert Michelson, via Joel E. Denny.
44126 2010-04-16  Bruno Haible  <bruno@clisp.org>
44128         Override netdb.h always.
44129         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
44130         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
44131         Reported by Ludovic Courtès <ludo@gnu.org>.
44133 2010-04-15  Bruno Haible  <bruno@clisp.org>
44135         openpty: Fix mistake from 2010-03-21.
44136         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
44137         Reported by Simon Josefsson.
44139 2010-04-15  Eric Blake  <eblake@redhat.com>
44141         test-forkpty: fix expected signature
44142         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
44143         Reported by Simon Josefsson.
44145 2010-04-15  Jim Meyering  <meyering@redhat.com>
44147         maint.mk: texinfo_suffix_re_: correct the default regexp
44148         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
44150         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
44151         make it configurable via texinfo_suffix_re_.
44153 2010-04-14  Eric Blake  <eblake@redhat.com>
44155         strtok_r: relax license to LGPLv2+
44156         * modules/strtok_r (License): Relax license.
44157         Reported by Matthias Bolte.
44159 2010-04-14  Simon Josefsson  <simon@josefsson.org>
44161         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
44162         version 1.4.4 by default instead of requiring the libgcrypt
44163         version used during build.  This makes it possible to use the
44164         application with older but still binary compatible libgcrypt
44165         versions.
44167 2010-04-13  Eric Blake  <eblake@redhat.com>
44169         getopt-gnu: match recent glibc fixes and posix ruling
44170         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
44171         '+' handling, when requesting extensions.
44172         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
44173         'W;' handling.
44174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
44175         * doc/posix-functions/getopt.texi (getopt): Document this.
44176         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
44177         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
44178         Likewise.
44180         getopt: merge bug fixes from glibc
44181         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
44182         diagnostics.  Honor '+:' correctly.  Reject ';'.
44184         getopt-posix: detect MacOS bug
44185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
44186         optind when missing a required argument.
44187         * doc/posix-functions/getopt.texi (getopt): Document the bug.
44188         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
44189         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
44190         Likewise.
44192         getopt-posix: avoid spurious failure on Solaris
44193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
44194         an indicator that setting optind=1 is sufficient for reset.
44196         getopt-posix: avoid spurious failure on FreeBSD
44197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
44198         in POSIX mode, since the m4 test uses it.
44200         gnulib-tool: silence warning on BSD sh
44201         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
44203 2010-04-13  Jim Meyering  <meyering@redhat.com>
44205         doc: users.txt: GNU patch now uses gnulib
44206         * users.txt: Add patch.
44208 2010-04-12  Jim Meyering  <meyering@redhat.com>
44210         maint.mk: generate more concise timing data for syntax-check rules
44211         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
44212         " done" from each line that reports a syntax-check test duration.
44214 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
44216         git-version-gen: use "git update-index..." rather than "git status"
44217         * build-aux/git-version-gen: Use git update-index --refresh, not
44218         "git status".  With some versions of git, "git status" would fail
44219         to update the index and result in an unwarranted "-dirty" suffix.
44221 2010-04-11  Jim Meyering  <meyering@redhat.com>
44223         openat: correct formatting (no semantic change)
44224         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
44225         Suggested by Bruno Haible.
44227 2010-04-11  Bruno Haible  <bruno@clisp.org>
44229         Stricter declaration checking in testdirs.
44230         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44231         If for_tests is true, augment AM_CPPFLAGS to define
44232         GNULIB_STRICT_CHECKING.
44233         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
44234         GNULIB_STRICT_CHECKING is defined, verify that the function is
44235         declared.
44237 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
44238             Bruno Haible  <bruno@clisp.org>
44240         libunistring: Improve configure output.
44241         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
44242         Don't say "consider installing GNU libunistring" when checking again
44243         with libiconv.
44245 2010-04-11  Bruno Haible  <bruno@clisp.org>
44247         libunistring: Correct value of $LTLIBUNISTRING.
44248         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
44249         correct the value of $LTLIBUNISTRING.
44251 2010-04-11  Bruno Haible  <bruno@clisp.org>
44253         havelib: Add static libraries to LIBS in the right order.
44254         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
44255         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
44257 2010-04-11  Bruno Haible  <bruno@clisp.org>
44259         libunistring: Detect libunistring also when it depends on libiconv.
44260         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
44261         the second AC_LIB_HAVE_LINKFLAGS invocation.
44263 2010-04-11  James Youngman  <jay@gnu.org>
44265         close-stream: declare local scalars to be "const"
44266         * lib/close-stream.c (close_stream): Make boolean variables const
44267         to document the fact that we set but do not change them.
44269 2010-04-11  Bruno Haible  <bruno@clisp.org>
44271         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
44273 2010-04-11  Jim Meyering  <meyering@redhat.com>
44275         maint.mk: don't include dist-check.mk
44276         * top/maint.mk: Remove bogus include directive.
44278         maint.mk: improve empty-line-at-EOF check
44279         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
44280         solution, rather than tail+Perl-based one.  The latter would read
44281         a few kilobytes from the end of each file, and did not handle empty
44282         files properly.
44284         maint.mk: print the elapsed time for each syntax-check rule
44285         * top/maint.mk (sc_m_rules_): Save start time in a file.
44286         (sc_z_rules_): New rules: remove temp file and print elapsed time.
44287         (local-check): Interpose the .z rules
44289 2010-04-11  Jim Meyering  <meyering@redhat.com>
44291         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
44292         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
44293         empty file with one that ends in an empty line.
44295 2010-04-10  Bruno Haible  <bruno@clisp.org>
44297         mkdir: Make it work on mingw64.
44298         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
44299         * lib/mkdir.c: Update comment.
44300         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
44302 2010-04-10  Bruno Haible  <bruno@clisp.org>
44304         Don't override improved macro from newer autoconf.
44305         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
44306         autoconf >= 2.62.
44307         Reported by Joel E. Denny <jdenny@clemson.edu>.
44309 2010-04-10  Jim Meyering  <meyering@redhat.com>
44311         maint.mk: new syntax-check rule: prohibit empty lines at end of file
44312         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
44314         maint.mk: correct a diagnostic
44315         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
44316         in diagnostic; now use $prohibit.
44318 2010-04-10  Bruno Haible  <address@hidden>
44320         fchownat: Fix a C++ test error on Solaris 8.
44321         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
44322         the function does not exist.
44324 2010-04-10  Bruno Haible  <bruno@clisp.org>
44326         vasnprintf: Add more tests.
44327         * tests/test-vasnprintf-posix.c: Include <errno.h>.
44328         (test_function): Test converting an invalid wide string.
44330         vasnprintf: Correct handling of unconvertible wide string arguments.
44331         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
44332         VASNPRINTF.
44333         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
44334         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
44335         smaller than the expected maximum need for the directive. Set errno to
44336         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
44337         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
44338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
44339         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
44340         * modules/vasnprintf (Files): Add m4/printf.m4.
44341         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44343 2010-04-10  Bruno Haible  <bruno@clisp.org>
44345         vasnprintf: Fix crash in %ls directive.
44346         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
44347         string is passed as argument to %ls, with no precision and no width.
44348         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44350 2010-04-10  Bruno Haible  <bruno@clisp.org>
44352         vasnprintf: Fix multiple test failures on mingw.
44353         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
44354         _snprintf, or snwprintf, not _snwprintf.
44356 2010-04-10  Bruno Haible  <bruno@clisp.org>
44358         write: Fix a C++ test error on mingw.
44359         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
44361 2010-04-10  Bruno Haible  <bruno@clisp.org>
44363         vasnprintf test: Reduce code duplication.
44364         * tests/test-vasnprintf.c (test_function): New function, extracted from
44365         test_vasnprintf.
44366         (test_vasnprintf, test_asnprintf): Invoke it.
44368 2010-04-10  Bruno Haible  <bruno@clisp.org>
44370         strnlen: Fix warning in C++ mode on MacOS X.
44371         * lib/string.in.h (strnlen): Use the modern idiom.
44372         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
44373         defining strnlen as a macro already in <config.h>.
44374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44375         REPLACE_STRNLEN.
44376         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
44377         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44379 2010-04-08  James Youngman  <jay@gnu.org>
44381         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
44382         the example.
44384 2010-04-09  Jim Meyering  <meyering@redhat.com>
44386         maint.mk: print better diagnostic when there is no $(_hv_file)
44387         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
44388         announce that when $(_hv_file) (aka help-version) does not exist.
44390         init.sh: run tr in the "C" locale to avoid multibyte interpretation
44391         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
44392         not try to interpret its random input bytes.  Jarno Rajahalme reported
44393         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
44394         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
44395         (mktempd_): Likewise, just in case.
44397         ftruncate: add two years to projected module removal date: 2012
44398         * m4/ftruncate.m4: Adjust comments.
44400         ftruncate: mark module as obsolete; even MinGW provides it, now
44401         * modules/ftruncate (Status): Obsolete.
44402         (Notice): Say that.
44403         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
44404         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
44406 2010-04-08  Bruno Haible  <bruno@clisp.org>
44408         Fix side effects from tests-related modules.
44409         * modules/dprintf-posix (Comment): New section.
44410         * modules/fprintf-posix (Comment): Likewise.
44411         * modules/obstack-printf-posix (Comment): Likewise.
44412         * modules/printf-posix (Comment): Likewise.
44413         * modules/snprintf-posix (Comment): Likewise.
44414         * modules/sprintf-posix (Comment): Likewise.
44415         * modules/vasnprintf-posix (Comment): Likewise.
44416         * modules/vasprintf-posix (Comment): Likewise.
44417         * modules/vdprintf-posix (Comment): Likewise.
44418         * modules/vfprintf-posix (Comment): Likewise.
44419         * modules/vprintf-posix (Comment): Likewise.
44420         * modules/vsnprintf-posix (Comment): Likewise.
44421         * modules/vsprintf-posix (Comment): Likewise.
44422         * modules/xprintf-posix (Comment): Likewise.
44423         * modules/xvasprintf-posix (Comment): Likewise.
44424         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
44425         * modules/floorf-tests (Depends-on): Likewise.
44426         * modules/round-tests (Depends-on): Likewise.
44427         * modules/roundf-tests (Depends-on): Likewise.
44428         * modules/trunc-tests (Depends-on): Likewise.
44429         * modules/truncf-tests (Depends-on): Likewise.
44430         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
44431         'fprintf-posix' module is not present.
44432         * tests/test-floorf2.c (check): Likewise.
44433         * tests/test-trunc2.c (check): Likewise.
44434         * tests/test-truncf2.c (check): Likewise.
44435         * tests/test-round2.c (equal): Likewise.
44436         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44438 2010-04-07  Karl Berry  <karl@gnu.org>
44440         * config/srclist.txt,
44441         * config/srclistvars.sh,
44442         * config/srclist-update: doc fixes.
44444 2010-04-07  Jim Meyering  <meyering@redhat.com>
44446         maint.mk: add a PATH crosschecking syntax-check rule
44447         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
44448         Useful if you use a test like the one in help-version (coreutils,
44449         diffutils, grep, gzip) that ensures $(VERSION) matches what is
44450         printed by prog --version.
44452 2010-04-06  Bruno Haible  <bruno@clisp.org>
44454         Fix link error on mingw.
44455         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
44456         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
44458 2010-04-06  Bruno Haible  <bruno@clisp.org>
44460         Assume rmdir exists.
44461         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
44463 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
44465         doc: update users.txt
44466         * users.txt: Add gcal.
44468 2010-04-06  Jim Meyering  <meyering@redhat.com>
44470         init.sh: simply unset TMPDIR rather than risking env -i
44471         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
44472         although it probably works fine on all Unix-based systems, some
44473         systems (Cygwin?) cannot tolerate a totally cleared environment.
44474         Suggestion from Eric Blake.
44476 2010-04-06  Jim Meyering  <meyering@redhat.com>
44478         init.sh: portability fix: use env's POSIX-specified -i option not -u
44479         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
44480         than unportable env -u.  Solaris 5.11's env lacks support for -u.
44482 2010-04-05  Bruno Haible  <bruno@clisp.org>
44484         btowc: Work around Cygwin 1.7.2 bug.
44485         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
44486         does not map NUL to 0.
44487         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
44489 2010-04-05  Bruno Haible  <bruno@clisp.org>
44491         Make the multithread modules work on Cygwin 1.7.2.
44492         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
44493         imported symbols can be declared weak, so that it returns "no" on
44494         Cygwin 1.7.2.
44496 2010-04-05  Bruno Haible  <bruno@clisp.org>
44498         Use the module 'strncat'.
44499         * modules/unistr/u8-strncat (Depends-on): Add strncat.
44501         Tests for module 'strncat'.
44502         * modules/strncat-tests: New file.
44503         * tests/test-strncat.c: New file.
44505         New module 'strncat'.
44506         * lib/string.in.h (strncat): New declaration.
44507         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
44508         * m4/strncat.m4: New file, based on m4/memchr.m4.
44509         * modules/strncat: New file.
44510         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
44511         is declared.
44512         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
44513         REPLACE_STRNCAT.
44514         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
44515         REPLACE_STRNCAT.
44516         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
44517         module.
44518         * tests/test-string-c++.cc: Check signature of strncat.
44520 2010-04-05  Jim Meyering  <meyering@redhat.com>
44522         xstrtoumax-tests: convert to use init.sh
44523         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
44524         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44525         Use Exit, not exit.
44526         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44528         xstrtoimax-tests: convert to use init.sh
44529         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
44530         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44531         Use Exit, not exit.
44532         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44534 2010-04-05  Bruno Haible  <bruno@clisp.org>
44536         sys_socket: Avoid #define replacements in C++ mode.
44537         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
44538         warning to the function if possible, rather than #defining the symbol
44539         to a dysfunctional alias.
44541 2010-04-05  Bruno Haible  <bruno@clisp.org>
44543         fseeko: Fix C++ test error on mingw.
44544         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
44545         gl_FUNC_FSEEKO.
44546         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
44547         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
44548         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
44549         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
44551 2010-04-05  Bruno Haible  <bruno@clisp.org>
44553         duplocale: Improve test output.
44554         * tests/test-duplocale.c (main): Print reason for skipped test.
44556 2010-04-05  Bruno Haible  <bruno@clisp.org>
44558         Assume rmdir exists.
44559         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
44560         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
44562 2010-04-05  Bruno Haible  <bruno@clisp.org>
44564         Fix link error on Solaris 8 with cc.
44565         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
44567 2010-04-05  Bruno Haible  <bruno@clisp.org>
44569         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
44570         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
44572 2010-04-05  Bruno Haible  <bruno@clisp.org>
44574         vasprintf: Update documentation.
44575         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
44577 2010-04-05  Bruno Haible  <bruno@clisp.org>
44579         ptsname: Improve test.
44580         * tests/test-ptsname.c (main): Also try the various master names of BSD
44581         systems.
44583 2010-04-05  Bruno Haible  <bruno@clisp.org>
44585         memchr: Avoid a possible C++ test error.
44586         * lib/string.in.h (memchr): Provide declaration if function is missing.
44587         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
44588         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
44589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
44590         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
44592 2010-04-05  Bruno Haible  <bruno@clisp.org>
44594         strtok_r: Improve idiom.
44595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
44596         AC_LIBOBJ is used.
44598 2010-04-05  Bruno Haible  <bruno@clisp.org>
44600         strdup: Improve idiom.
44601         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
44602         AC_LIBOBJ is used.
44603         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
44604         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
44605         when AC_LIBOBJ is used.
44607 2010-04-05  Bruno Haible  <bruno@clisp.org>
44609         mbsinit, mbrtowc, wcrtomb: Improve idioms.
44610         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
44611         don't set REPLACE_MBSINIT to 1.
44612         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
44613         don't set REPLACE_MBRTOWC to 1.
44614         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
44615         exist, don't set REPLACE_MBSRTOWCS to 1.
44616         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
44617         exist, don't set REPLACE_MBSNRTOWCS to 1.
44618         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
44619         don't set REPLACE_WCRTOMB to 1.
44620         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
44621         exist, don't set REPLACE_WCSRTOMBS to 1.
44622         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
44623         exist, don't set REPLACE_WCSNRTOMBS to 1.
44625 2010-04-05  Bruno Haible  <bruno@clisp.org>
44627         ldexpl: Improve idiom.
44628         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
44629         make sure to set HAVE_DECL_LDEXPL to 0.
44631 2010-04-05  Jim Meyering  <meyering@redhat.com>
44633         xstrtol-tests: convert to use init.sh
44634         * modules/xstrtol-tests (Files): Add tests/init.sh.
44635         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44636         Use Exit, not exit.
44637         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44639         atexit-tests: convert to use init.sh
44640         * modules/atexit-tests (Files): Add tests/init.sh.
44641         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44642         Use Exit, not exit.
44643         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44645         init.sh: fix typo
44646         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
44648         init.sh: make it easier for a test script to write to the tty, ...
44649         when using automake's parallel-tests mode.
44650         * tests/init.sh (stderr_fileno_): Define overridable variable.
44651         (warn_): New function, to use it.
44652         (fail_, skip_, framework_failure_): Use warn_.
44654 2010-04-04  Bruno Haible  <bruno@clisp.org>
44656         btowc: Avoid warning.
44657         * lib/btowc.c: Include <stdlib.h>.
44658         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
44660 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
44661             Bruno Haible  <bruno@clisp.org>
44663         wchar: Port to NetBSD 1.5.
44664         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
44665         * lib/wctype.in.h (WEOF): Likewise.
44667 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
44668             Bruno Haible  <bruno@clisp.org>
44670         Port extended stdio to NetBSD 1.5.
44671         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
44672         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
44673         older.
44675 2010-04-04  Bruno Haible  <bruno@clisp.org>
44677         string: Remove unused substitution.
44678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
44679         HAVE_DECL_STRERROR.
44680         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
44682 2010-04-04  Bruno Haible  <bruno@clisp.org>
44684         strtod: Avoid a possible C++ test error.
44685         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
44686         set REPLACE_STRTOD.
44688 2010-04-04  Bruno Haible  <bruno@clisp.org>
44690         strerror: Update documentation.
44691         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
44693 2010-04-04  Bruno Haible  <bruno@clisp.org>
44695         stdio: Fix some C++ test errors on Solaris 8 with GCC.
44696         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
44697         _GL_CXXALIAS_SYS_CAST.
44699 2010-04-04  Bruno Haible  <bruno@clisp.org>
44701         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
44702         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
44703         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
44704         REPLACE_FREXPL to 1.
44705         * doc/posix-functions/frexpl.texi: Update documentation.
44707 2010-04-04  Bruno Haible  <bruno@clisp.org>
44709         math: Fix some C++ test errors on Solaris 8 and Cygwin.
44710         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
44712 2010-04-04  Bruno Haible  <bruno@clisp.org>
44714         Implement nanosleep for native Windows.
44715         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
44717 2010-04-04  Bruno Haible  <bruno@clisp.org>
44719         math: Fix some C++ test errors on Solaris 8.
44720         * lib/math.in.h (truncf, trunc): Use simpler idiom.
44722 2010-04-04  Bruno Haible  <bruno@clisp.org>
44724         math: Fix some C++ test errors on Cygwin.
44725         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
44726         truncl): Provide declaration if the system does not have it.
44727         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
44728         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
44729         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
44730         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
44731         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
44732         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
44733         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
44734         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
44735         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
44736         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
44737         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
44738         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
44739         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
44740         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
44741         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
44742         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
44743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
44744         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
44745         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
44746         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
44747         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
44748         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
44750 2010-04-04  Bruno Haible  <bruno@clisp.org>
44752         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
44753         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44754         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44755         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44756         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44757         * m4/isinf.m4 (gl_ISINF): Likewise.
44758         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44760 2010-04-04  Bruno Haible  <bruno@clisp.org>
44762         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
44763         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44765 2010-04-04  Bruno Haible  <bruno@clisp.org>
44767         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
44768         * modules/tmpfile (configure.ac): Update.
44770         tmpfile: Fix C++ test error on mingw.
44771         * lib/stdio.in.h (tmpfile): New declaration.
44772         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
44773         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
44774         * modules/tmpfile (Depends-on): Add stdio.
44775         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44776         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
44777         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
44778         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
44779         REPLACE_TMPFILE.
44780         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
44782 2010-04-04  Bruno Haible  <bruno@clisp.org>
44784         ioctl: Fix C++ test error on mingw.
44785         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
44786         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
44787         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
44789 2010-04-03  Bruno Haible  <bruno@clisp.org>
44791         wcwidth: Fix C++ test error on mingw.
44792         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
44793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
44794         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
44796 2010-04-03  Bruno Haible  <bruno@clisp.org>
44798         nanosleep: Fix C++ test error on mingw.
44799         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
44800         * lib/time.in.h (nanosleep): Use modern idiom.
44801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
44802         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
44803         REPLACE_NANOSLEEP to 1.
44804         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
44805         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
44807 2010-04-03  Bruno Haible  <bruno@clisp.org>
44809         strptime: Fix C++ test error on mingw.
44810         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
44811         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
44812         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
44813         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
44814         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
44815         not REPLACE_STRPTIME.
44816         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
44817         REPLACE_STRPTIME.
44819 2010-04-03  Bruno Haible  <bruno@clisp.org>
44821         timegm: Fix C++ test error on mingw.
44822         * lib/time.in.h (timegm): Use modern idiom.
44823         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
44824         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
44825         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
44826         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
44828 2010-04-03  Bruno Haible  <bruno@clisp.org>
44830         timegm: Assume declaration if function exists.
44831         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
44832         if it exists. Don't clobber ac_cv_func_timegm.
44834 2010-04-03  Bruno Haible  <bruno@clisp.org>
44836         time_r: Fix C++ test error on mingw.
44837         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
44838         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
44839         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
44840         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
44841         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
44843 2010-04-03  Bruno Haible  <bruno@clisp.org>
44845         time_r: Minor updates.
44846         * modules/time_r (Description): Mention the provided functions.
44847         * lib/time_r.c: Don't include <string.h>.
44848         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
44849         * doc/posix-functions/localtime_r.texi: Likewise.
44851 2010-04-03  Bruno Haible  <bruno@clisp.org>
44853         time: Fix regression introduced on 2010-03-08.
44854         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
44855         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
44857 2010-04-03  Jim Meyering  <meyering@redhat.com>
44859         maint.mk: don't silently disable project-specific syntax-check rules
44860         * top/maint.mk (_prohibit_regexp): Define, to help people realize
44861         that they need to convert their project-specific syntax-check rules
44862         to use the new _sc_search_regexp.
44864 2010-04-03  Bruno Haible  <bruno@clisp.org>
44866         fchdir: Fix regression introduced on 2010-03-08.
44867         * lib/unistd.in.h (fchdir): Fix declaration.
44868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
44869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
44870         REPLACE_FCHDIR.
44871         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
44872         REPLACE_FCHDIR.
44874 2010-04-03  Bruno Haible  <bruno@clisp.org>
44876         getpagesize: Fix C++ test error on mingw.
44877         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
44878         system does not declare the function.
44879         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
44880         declared.
44881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44882         HAVE_DECL_GETPAGESIZE.
44883         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
44885 2010-04-03  Bruno Haible  <bruno@clisp.org>
44887         stdio: Make C++ tests work on mingw.
44888         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
44889         does not declare the function.
44891 2010-04-03  Bruno Haible  <bruno@clisp.org>
44893         ftello: Fix C++ test error on mingw.
44894         * lib/stdio.in.h (ftello): Use modern idiom.
44895         * lib/ftello.c (ftello): Renamed from rpl_ftello.
44896         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
44897         is missing and that it needs to be replaced.
44898         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
44899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
44900         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
44902 2010-04-03  Bruno Haible  <bruno@clisp.org>
44904         fseeko: Fix C++ test error on mingw.
44905         * lib/stdio.in.h (fseeko): Use modern idiom.
44906         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
44907         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
44908         is missing and that it needs to be replaced.
44909         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
44910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
44911         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
44913 2010-04-03  Bruno Haible  <bruno@clisp.org>
44915         mkstemp: Fix C++ test error on mingw.
44916         * lib/stdlib.in.h (mkstemp): Use modern idiom.
44917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
44918         function is missing and that it needs to be replaced.
44919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
44920         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
44922 2010-04-03  Bruno Haible  <bruno@clisp.org>
44924         stpncpy: Fix C++ test error on mingw.
44925         * lib/string.in.h (stpncpy): Use modern idiom.
44926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
44927         function is missing and that it needs to be replaced.
44928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44929         REPLACE_STPNCPY.
44930         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
44932 2010-04-03  Bruno Haible  <bruno@clisp.org>
44934         sys_stat: Fix C++ test error on mingw.
44935         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
44936         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
44938 2010-04-03  Bruno Haible  <bruno@clisp.org>
44940         pty: Update doc.
44941         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
44943 2010-04-03  Bruno Haible  <bruno@clisp.org>
44945         unistd: Fix C++ test error on mingw.
44946         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
44948 2010-04-03  Bruno Haible  <bruno@clisp.org>
44950         Update doc regarding mingw.
44951         * doc/glibc-functions/openpty.texi: Update regarding mingw.
44952         * doc/glibc-functions/login_tty.texi: Likewise.
44953         * doc/glibc-functions/forkpty.texi: Likewise.
44955 2010-04-03  Bruno Haible  <bruno@clisp.org>
44957         stdlib: Avoid compilation failure of c-strtold on mingw.
44958         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
44960 2010-04-03  Bruno Haible  <bruno@clisp.org>
44962         locale: Make C++ tests work on Cygwin and mingw.
44963         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
44964         cannot provide the function.
44965         Reported by Simon Josefsson.
44967 2010-04-03  Bruno Haible  <bruno@clisp.org>
44969         localename: Port to MacOS X 10.6.
44970         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
44971         memory layout of the locales in MacOS X 10.6 as well.
44972         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
44974 2010-04-02  Bruno Haible  <bruno@clisp.org>
44976         gnulib-tool: Ensure that long-running tests are executed last.
44977         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
44978         running tests after the one for the other tests.
44980 2010-04-02  Bruno Haible  <bruno@clisp.org>
44982         gnulib-tool: Ensure the tests in the main directory are executed first.
44983         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
44984         start with the current directory.
44986 2010-04-02  Bruno Haible  <bruno@clisp.org>
44988         Tests for module 'havelib', moved here from GNU gettext.
44989         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
44990         modifications.
44991         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
44992         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
44993         with modifications.
44994         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
44995         modifications.
44996         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
44997         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
44998         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
44999         with modifications.
45000         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
45001         with modifications.
45002         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
45003         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
45004         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
45005         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
45006         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
45007         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
45008         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
45009         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
45010         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
45011         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
45012         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
45013         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
45014         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
45015         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
45016         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
45017         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
45018         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
45019         with modifications.
45020         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
45021         with modifications.
45022         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
45023         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
45024         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
45025         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
45026         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
45027         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
45028         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
45029         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
45030         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
45031         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
45032         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
45033         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
45034         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
45035         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
45036         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
45037         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
45038         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
45039         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
45040         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
45041         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
45042         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
45043         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
45044         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
45045         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
45046         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
45047         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
45048         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
45049         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
45050         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
45051         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
45052         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
45053         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
45054         * tests/havelib/rpathx/rpathx.c: New file, from
45055         gettext/autoconf-lib-link.
45056         * tests/havelib/rpathx/Makefile.am: New file, from
45057         gettext/autoconf-lib-link.
45058         * tests/havelib/rpathx/configure.ac: New file, from
45059         gettext/autoconf-lib-link with modifications.
45060         * tests/havelib/rpathy/rpathy.c: New file, from
45061         gettext/autoconf-lib-link.
45062         * tests/havelib/rpathy/Makefile.am: New file, from
45063         gettext/autoconf-lib-link.
45064         * tests/havelib/rpathy/configure.ac: New file, from
45065         gettext/autoconf-lib-link with modifications.
45066         * tests/havelib/rpathz/rpathz.c: New file, from
45067         gettext/autoconf-lib-link.
45068         * tests/havelib/rpathz/Makefile.am: New file, from
45069         gettext/autoconf-lib-link.
45070         * tests/havelib/rpathz/configure.ac: New file, from
45071         gettext/autoconf-lib-link with modifications.
45072         * tests/havelib/rpathlx/usex.c: New file, from
45073         gettext/autoconf-lib-link.
45074         * tests/havelib/rpathlx/Makefile.am: New file, from
45075         gettext/autoconf-lib-link.
45076         * tests/havelib/rpathlx/configure.ac: New file, from
45077         gettext/autoconf-lib-link with modifications.
45078         * tests/havelib/rpathly/usey.c: New file, from
45079         gettext/autoconf-lib-link.
45080         * tests/havelib/rpathly/Makefile.am: New file, from
45081         gettext/autoconf-lib-link.
45082         * tests/havelib/rpathly/configure.ac: New file, from
45083         gettext/autoconf-lib-link with modifications.
45084         * tests/havelib/rpathlz/usez.c: New file, from
45085         gettext/autoconf-lib-link.
45086         * tests/havelib/rpathlz/Makefile.am: New file, from
45087         gettext/autoconf-lib-link.
45088         * tests/havelib/rpathlz/configure.ac: New file, from
45089         gettext/autoconf-lib-link with modifications.
45090         * tests/havelib/rpathlyx/usey.c: New file, from
45091         gettext/autoconf-lib-link.
45092         * tests/havelib/rpathlyx/Makefile.am: New file, from
45093         gettext/autoconf-lib-link.
45094         * tests/havelib/rpathlyx/configure.ac: New file, from
45095         gettext/autoconf-lib-link with modifications.
45096         * tests/havelib/rpathlzyx/usez.c: New file, from
45097         gettext/autoconf-lib-link.
45098         * tests/havelib/rpathlzyx/Makefile.am: New file, from
45099         gettext/autoconf-lib-link.
45100         * tests/havelib/rpathlzyx/configure.ac: New file, from
45101         gettext/autoconf-lib-link with modifications.
45102         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
45103         with modifications.
45105 2010-04-02  Bruno Haible  <bruno@clisp.org>
45107         gnulib-tool: Create distributed built sources also for the tests.
45108         * gnulib-tool (func_create_testdir): Also generate distributed built
45109         sources in the tests directory.
45111 2010-04-02  Bruno Haible  <bruno@clisp.org>
45113         gnulib-tool: Obey user's environment variables.
45114         * gnulib-tool (func_create_testdir): When creating built sources,
45115         respect the environment variables for autoconf, automake, etc. given by
45116         the user.
45118 2010-04-02  Bruno Haible  <bruno@clisp.org>
45120         gnulib-tool: Provide the value of --m4-base to modules.
45121         * gnulib-tool (func_import, func_create_testdir): Emit a definition
45122         of gl_m4_base.
45124 2010-04-02  Eric Blake  <eblake@redhat.com>
45126         maint.mk: fix some fallout
45127         * NEWS: Document the incompatible change, and its effect on cfg.mk.
45128         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
45130 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
45132         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
45133         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
45134         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
45135         (sc_cast_of_x_alloc_return_value): Likewise.
45136         (sc_cast_of_alloca_return_value): Likewise.
45137         (sc_space_tab): Likewise.
45138         (sc_prohibit_atoi_atof): Likewise.
45139         (sc_prohibit_magic_number_exit): Likewise.
45140         (sc_error_exit_success): Likewise.
45141         (sc_file_system): Likewise.
45142         (sc_prohibit_have_config_h): Likewise.
45143         (sc_require_config_h): Likewise.
45144         (sc_prohibit_HAVE_MBRTOWC): Likewise.
45145         (sc_obsolete_symbols): Likewise.
45146         (sc_changelog): Likewise.
45147         (sc_program_name): Likewise.
45148         (sc_the_the): Likewise.
45149         (sc_trailing_blank): Likewise.
45150         (sc_two_space_separator_in_usage): Likewise.
45151         (sc_useless_cpp_parens): Likewise.
45152         (sc_GPL_version): Likewise.
45153         (sc_GFDL_version): Likewise.
45154         (sc_texinfo_acronym): Likewise.
45155         (sc_prohibit_cvs_keyword): Likewise.
45156         (sc_prohibit_stat_st_blocks): Likewise.
45157         (sc_prohibit_S_IS_definition): Likewise.
45158         (sc_redundant_const): Likewise.
45159         (sc_makefile_TAB_only_indentation): Likewise.
45160         (sc_m4_quote_check): Likewise.
45161         (sc_makefile_path_separator_check): Likewise.
45162         (sc_copyright_check): Likewise.
45163         (sc_Wundef_boolean): Likewise.
45164         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
45166         maint.mk: match 0 or more whitespace-before-function-call '('
45167         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
45168         that have zero or two-and-more spaces between the function name
45169         and the open parenthesis.
45170         (sc_error_message_warn_fatal): Likewise.
45171         (sc_error_message_uppercase): Likewise.
45172         (sc_error_message_period): Likewise.
45174 2010-03-31  Eric Blake  <eblake@redhat.com>
45176         maint.mk: check for [ as well as test
45177         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
45178         Based on a libvirt report by Matthias Bolte.
45180         gnumakefile: don't squelch _version output
45181         * top/GNUmakefile (_version): Create one-shot dependency rather
45182         than using $(shell) when version must be regenerated.
45183         (_autoreconf): Run verbosely, by default.
45185         sys_time: avoid compiler warnings
45186         * lib/sys_time.in.h (includes): Ensure gcc pragma is
45187         unconditional, fixing regression from 2010-03-29.
45188         Reported by Simon Josefsson.
45190 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
45192         maint.mk: s/_header_without_use/_sc_header_without_use/
45193         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
45194         (sc_prohibit_assert_without_use): Use the new name.
45195         (sc_prohibit_close_stream_without_use): Likewise.
45196         (sc_prohibit_getopt_without_use): Likewise.
45197         (sc_prohibit_quotearg_without_use): Likewise.
45198         (sc_prohibit_quote_without_use): Likewise.
45199         (sc_prohibit_long_options_without_use): Likewise.
45200         (sc_prohibit_inttostr_without_use): Likewise.
45201         (sc_prohibit_ignore_value_without_use): Likewise.
45202         (sc_prohibit_error_without_use): Likewise.
45203         (sc_prohibit_xalloc_without_use): Likewise.
45204         (sc_prohibit_hash_without_use): Likewise.
45205         (sc_prohibit_hash_pjw_without_use): Likewise.
45206         (sc_prohibit_safe_read_without_use): Likewise.
45207         (sc_prohibit_argmatch_without_use): Likewise.
45208         (sc_prohibit_canonicalize_without_use): Likewise.
45209         (sc_prohibit_root_dev_ino_without_use): Likewise.
45210         (sc_prohibit_openat_without_use): Likewise.
45211         (sc_prohibit_c_ctype_without_use): Likewise.
45212         (sc_prohibit_signal_without_use): Likewise.
45213         (sc_prohibit_intprops_without_use): Likewise.
45215 2010-03-30  Eric Blake  <eblake@redhat.com>
45217         maint: improve module indicators
45218         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
45219         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
45220         columns, and avoid extra macro expansion.
45222         fdopendir: work around FreeBSD bug
45223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45224         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
45225         * modules/dirent (Makefile.am): Substitute it.
45226         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
45227         declaration.
45228         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
45229         fix.
45230         Reported by Christian Weisgerber <naddy@mips.inka.de>.
45232 2010-03-29  Bruno Haible  <bruno@clisp.org>
45234         Emit #pragma system_header after the inclusion guard, not before.
45235         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
45236         guard that spans the entire file, not before. This enables an
45237         optimization in GCC's preprocessor.
45238         * lib/ctype.in.h: Likewise.
45239         * lib/dirent.in.h: Likewise.
45240         * lib/errno.in.h: Likewise.
45241         * lib/float.in.h: Likewise.
45242         * lib/getopt.in.h: Likewise.
45243         * lib/iconv.in.h: Likewise.
45244         * lib/langinfo.in.h: Likewise.
45245         * lib/locale.in.h: Likewise.
45246         * lib/math.in.h: Likewise.
45247         * lib/netdb.in.h: Likewise.
45248         * lib/netinet_in.in.h: Likewise.
45249         * lib/pty.in.h: Likewise.
45250         * lib/sched.in.h: Likewise.
45251         * lib/se-selinux.in.h: Likewise.
45252         * lib/search.in.h: Likewise.
45253         * lib/spawn.in.h: Likewise.
45254         * lib/stdarg.in.h: Likewise.
45255         * lib/stdint.in.h: Likewise.
45256         * lib/string.in.h: Likewise.
45257         * lib/strings.in.h: Likewise.
45258         * lib/sys_file.in.h: Likewise.
45259         * lib/sys_ioctl.in.h: Likewise.
45260         * lib/sys_time.in.h: Likewise.
45261         * lib/sys_times.in.h: Likewise.
45262         * lib/sys_utsname.in.h: Likewise.
45263         * lib/sys_wait.in.h: Likewise.
45264         * lib/sysexits.in.h: Likewise.
45265         * lib/wctype.in.h: Likewise.
45267 2010-03-28  James Youngman  <jay@gnu.org>
45269         save-cwd: don't leak a file descriptor when the caller execs.
45270         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
45271         saved file descriptor.
45272         * modules/save-cwd (Depends-on): Depend on cloexec.
45274 2010-03-29  Bruno Haible  <bruno@clisp.org>
45276         Remove vestiges of fts-lgpl module.
45277         * lib/fts_.h: Assume GNULIB_FTS is 1.
45278         * lib/fts.c: Likewise.
45279         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
45281 2010-03-28  Bruno Haible  <bruno@clisp.org>
45283         Fix definition of tests witness macro.
45284         * gnulib-tool (func_import): Fix definition of witness macro.
45286 2010-03-28  Bruno Haible  <bruno@clisp.org>
45288         Fix ioctl's protoype on glibc systems.
45289         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
45290         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
45291         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
45292         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
45293         signature. If not, arrange to replace the ioctl function.
45294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45295         REPLACE_IOCTL.
45296         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
45297         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
45298         Reported by Ludovic Courtès <ludo@gnu.org>.
45300 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
45302         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
45303         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
45304         made it so grep -r --include=GLOB* ... did not work.
45306 2010-03-26  Jim Meyering  <meyering@redhat.com>
45307             Eric Blake  <eblake@redhat.com>
45309         maint.mk: prohibit use of test's -o and -a operators
45310         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
45312 2010-03-28  Bruno Haible  <bruno@clisp.org>
45314         Remove unused GNULIB_XYZ macro definitions.
45315         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
45316         invocation.
45318 2010-03-28  Bruno Haible  <bruno@clisp.org>
45320         Mark privileged tests modules.
45321         * modules/idpriv-drop-tests (Status): New section.
45322         * modules/idpriv-droptemp-tests (Status): New section.
45324 2010-03-28  Bruno Haible  <bruno@clisp.org>
45326         Split C++ tests into separate tests modules.
45327         * modules/dirent-c++-tests: New file, extracted from
45328         modules/dirent-tests.
45329         * modules/dirent-tests: Depend on it.
45330         * modules/fcntl-h-c++-tests: New file, extracted from
45331         modules/fcntl-h-tests.
45332         * modules/fcntl-h-tests: Depend on it.
45333         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
45334         * modules/glob-tests: Depend on it.
45335         * modules/iconv-h-c++-tests: New file, extracted from
45336         modules/iconv-h-tests.
45337         * modules/iconv-h-tests: Depend on it.
45338         * modules/langinfo-c++-tests: New file, extracted from
45339         modules/langinfo-tests.
45340         * modules/langinfo-tests: Depend on it.
45341         * modules/locale-c++-tests: New file, extracted from
45342         modules/locale-tests.
45343         * modules/locale-tests: Depend on it.
45344         * modules/math-c++-tests: New file, extracted from modules/math-tests.
45345         * modules/math-tests: Depend on it.
45346         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
45347         * modules/pty-tests: Depend on it.
45348         * modules/search-c++-tests: New file, extracted from
45349         modules/search-tests.
45350         * modules/search-tests: Depend on it.
45351         * modules/signal-c++-tests: New file, extracted from
45352         modules/signal-tests.
45353         * modules/signal-tests: Depend on it.
45354         * modules/spawn-c++-tests: New file, extracted from
45355         modules/spawn-tests.
45356         * modules/spawn-tests: Depend on it.
45357         * modules/stdio-c++-tests: New file, extracted from
45358         modules/stdio-tests.
45359         * modules/stdio-tests: Depend on it.
45360         * modules/stdlib-c++-tests: New file, extracted from
45361         modules/stdlib-tests.
45362         * modules/stdlib-tests: Depend on it.
45363         * modules/string-c++-tests: New file, extracted from
45364         modules/string-tests.
45365         * modules/string-tests: Depend on it.
45366         * modules/sys_ioctl-c++-tests: New file, extracted from
45367         modules/sys_ioctl-tests.
45368         * modules/sys_ioctl-tests: Depend on it.
45369         * modules/sys_select-c++-tests: New file, extracted from
45370         modules/sys_select-tests.
45371         * modules/sys_select-tests: Depend on it.
45372         * modules/sys_socket-c++-tests: New file, extracted from
45373         modules/sys_socket-tests.
45374         * modules/sys_socket-tests: Depend on it.
45375         * modules/sys_stat-c++-tests: New file, extracted from
45376         modules/sys_stat-tests.
45377         * modules/sys_stat-tests: Depend on it.
45378         * modules/sys_time-c++-tests: New file, extracted from
45379         modules/sys_time-tests.
45380         * modules/sys_time-tests: Depend on it.
45381         * modules/time-c++-tests: New file, extracted from modules/time-tests.
45382         * modules/time-tests: Depend on it.
45383         * modules/unistd-c++-tests: New file, extracted from
45384         modules/unistd-tests.
45385         * modules/unistd-tests: Depend on it.
45386         * modules/wchar-c++-tests: New file, extracted from
45387         modules/wchar-tests.
45388         * modules/wchar-tests: Depend on it.
45389         * modules/wctype-c++-tests: New file, extracted from
45390         modules/wctype-tests.
45391         * modules/wctype-tests: Depend on it.
45392         Reported by Simon Josefsson.
45394 2010-03-28  Bruno Haible  <bruno@clisp.org>
45396         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
45397         * gnulib-tool (func_exists_module): New function, extracted from
45398         func_verify_module.
45399         (func_verify_module): Use it.
45400         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
45401         'foo' only if 'foo' exists.
45402         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
45403         module.
45405 2010-03-28  Bruno Haible  <bruno@clisp.org>
45407         gnulib-tool: Add support for special categories of tests.
45408         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
45409         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
45410         (func_usage): Document them.
45411         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
45412         inc_unportable_tests, inc_all_tests): New variables.
45413         (func_acceptable): Consider these variables.
45414         (func_modules_transitive_closure): Make it work when the 'Status' field
45415         consists of multiple words.
45416         (func_import): Store and restore the values of inc_cxx_tests,
45417         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
45418         inc_all_tests in gnulib-comp.m4.
45419         (func_create_testdir): Set inc_all_tests to true.
45420         * doc/gnulib.texi (Extra tests modules): New section.
45421         Suggested by Jim Meyering.
45423 2010-03-28  Bruno Haible  <bruno@clisp.org>
45425         ansi-c++-opt: Allow turning off the C++ build by default.
45426         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
45427         gl_CXX_CHOICE_DEFAULT_NO is defined.
45428         Requested by Eric Blake.
45430 2010-03-28  Bruno Haible  <bruno@clisp.org>
45432         unistd: Avoid #define replacements in C++ mode.
45433         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
45434         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
45435         setsockopt, shutdown, select): In C++, attach a warning to the function
45436         if possible, rather than #defining the symbol to a dysfunctional alias.
45437         Reported by John W. Eaton <jwe@gnu.org>.
45439 2010-03-28  Bruno Haible  <bruno@clisp.org>
45441         Fix link errors on mingw.
45442         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
45443         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
45444         $(LIBSOCKET).
45445         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
45446         $(LIBSOCKET).
45448 2010-03-28  Bruno Haible  <bruno@clisp.org>
45449             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45451         lib-ignore: Determine different options for different compilers.
45452         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
45453         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
45454         Add comments.
45455         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
45456         * NEWS: Mention the change.
45458 2010-03-27  Bruno Haible  <bruno@clisp.org>
45460         Remove unused GNULIB_XYZ macro definitions.
45461         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
45462         * modules/fseek (configure.ac): Likewise.
45463         * modules/ioctl (configure.ac): Likewise.
45464         * modules/open (configure.ac): Likewise.
45465         * modules/stdlib-safer (configure.ac): Likewise.
45467 2010-03-27  Bruno Haible  <bruno@clisp.org>
45469         Add a remark about certain modules.
45470         * modules/malloc (Comment): New section.
45471         * modules/realloc (Comment): Likewise.
45472         * modules/sigpipe (Comment): Likewise.
45474 2010-03-27  Bruno Haible  <bruno@clisp.org>
45476         Resolve conflict between the two kinds of module indicators.
45477         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
45478         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
45479         * modules/canonicalize (configure.ac): Invoke
45480         gl_MODULE_INDICATOR_FOR_TESTS.
45481         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
45482         GNULIB_XYZ.
45483         * tests/test-dirent-c++.cc: Likewise.
45484         * tests/test-dirent-safer.c: Likewise.
45485         * tests/test-dup2.c: Likewise.
45486         * tests/test-fchdir.c: Likewise.
45487         * tests/test-fcntl-h-c++.cc: Likewise.
45488         * tests/test-getopt.c: Likewise.
45489         * tests/test-getopt.h: Likewise.
45490         * tests/test-langinfo-c++.cc: Likewise.
45491         * tests/test-locale-c++.cc: Likewise.
45492         * tests/test-math-c++.cc: Likewise.
45493         * tests/test-pty-c++.cc: Likewise.
45494         * tests/test-search-c++.cc: Likewise.
45495         * tests/test-signal-c++.cc: Likewise.
45496         * tests/test-spawn-c++.cc: Likewise.
45497         * tests/test-stdio-c++.cc: Likewise.
45498         * tests/test-stdlib-c++.cc: Likewise.
45499         * tests/test-string-c++.cc: Likewise.
45500         * tests/test-sys_ioctl-c++.cc: Likewise.
45501         * tests/test-sys_select-c++.cc: Likewise.
45502         * tests/test-sys_socket-c++.cc: Likewise.
45503         * tests/test-sys_stat-c++.cc: Likewise.
45504         * tests/test-sys_time-c++.cc: Likewise.
45505         * tests/test-time-c++.cc: Likewise.
45506         * tests/test-unistd-c++.cc: Likewise.
45507         * tests/test-wchar-c++.cc: Likewise.
45508         * tests/uninorm/test-u8-nfc.c: Likewise.
45509         * tests/uninorm/test-u8-nfd.c: Likewise.
45510         * tests/uninorm/test-u8-nfkc.c: Likewise.
45511         * tests/uninorm/test-u8-nfkd.c: Likewise.
45512         * tests/uninorm/test-u16-nfc.c: Likewise.
45513         * tests/uninorm/test-u16-nfd.c: Likewise.
45514         * tests/uninorm/test-u16-nfkc.c: Likewise.
45515         * tests/uninorm/test-u16-nfkd.c: Likewise.
45516         * tests/uninorm/test-u32-nfc.c: Likewise.
45517         * tests/uninorm/test-u32-nfc-big.c: Likewise.
45518         * tests/uninorm/test-u32-nfd.c: Likewise.
45519         * tests/uninorm/test-u32-nfd-big.c: Likewise.
45520         * tests/uninorm/test-u32-nfkc.c: Likewise.
45521         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
45522         * tests/uninorm/test-u32-nfkd.c: Likewise.
45523         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
45524         * tests/uninorm/test-u32-normalize-big.c: Likewise.
45526 2010-03-27  Bruno Haible  <bruno@clisp.org>
45528         Distinguish two kinds of module indicators.
45529         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
45530         gl_MODULE_INDICATOR.
45531         (gl_MODULE_INDICATOR): New macro.
45532         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
45533         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
45534         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
45535         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
45536         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
45537         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
45538         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
45539         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
45540         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
45541         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
45542         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
45543         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
45544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
45545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
45546         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
45547         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
45548         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
45549         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
45550         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
45551         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
45552         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
45553         * modules/cloexec (configure.ac): Likewise.
45554         * modules/getopt-gnu (configure.ac): Likewise.
45555         * modules/uninorm/u8-normalize (configure.ac): Likewise.
45556         * modules/uninorm/u16-normalize (configure.ac): Likewise.
45557         * modules/uninorm/u32-normalize (configure.ac): Likewise.
45558         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
45560 2010-03-27  Bruno Haible  <bruno@clisp.org>
45562         New module description field 'Comment'.
45563         * gnulib-tool: New option --extract-comment.
45564         (func_usage): Document it.
45565         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
45566         (func_get_comment): New function.
45567         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
45569 2010-03-27  Bruno Haible  <bruno@clisp.org>
45571         Addendum to 2010-02-07 commit.
45572         * gnulib-tool (func_usage): Document --extract-applicability option.
45574 2010-03-27  Bruno Haible  <bruno@clisp.org>
45576         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
45577         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
45578         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
45579         rather than link errors.
45581 2010-03-27  Bruno Haible  <bruno@clisp.org>
45583         Avoid side effects from tests-related modules on the compilation of lib.
45584         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
45585         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
45586         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
45587         parameter. Emit into AM_CPPFLAGS a definition of the designated C
45588         macro.
45589         (func_import): Define a witness macro. Assign it a value that depends
45590         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
45591         tests-related modules.
45592         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
45593         Reported by Jim Meyering.
45595 2010-03-27  Bruno Haible  <bruno@clisp.org>
45597         Factorize common .m4 code.
45598         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
45599         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
45600         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
45601         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
45602         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
45603         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
45604         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
45605         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
45606         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
45607         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
45608         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
45609         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
45610         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
45611         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
45612         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
45613         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
45614         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
45615         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
45616         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
45617         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
45618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
45619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
45620         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
45621         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
45622         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
45623         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
45624         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
45625         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
45626         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
45627         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
45628         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
45629         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
45631 2010-03-27  Bruno Haible  <bruno@clisp.org>
45633         Fix a compilation error on Cygwin with g++ >= 4.3.
45634         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
45635         if it is undefined or if we alias it to chmod.
45636         (lstat): Don't warn about the use of this function if it is undefined
45637         or if we alias it to stat.
45638         Reported by Simon Josefsson.
45640 2010-03-27  Bruno Haible  <bruno@clisp.org>
45642         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
45643         * modules/getlogin (configure.ac): Update.
45645         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
45646         * modules/getlogin_r (configure.ac): Update.
45648         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
45649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
45650         * modules/inet_ntop (configure.ac): Update.
45652         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
45653         * modules/inet_pton (configure.ac): Update.
45655         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
45656         * modules/mbslen (configure.ac): Update.
45658         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
45659         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
45660         * modules/forkpty (configure.ac): Update.
45661         * modules/openpty (configure.ac): Update.
45663 2010-03-26  Simon Josefsson  <simon@josefsson.org>
45665         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
45666         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
45668 2010-03-25  Eric Blake  <eblake@redhat.com>
45670         maint: use pragma consistently across replacement headers
45671         * lib/ctype.in.h (system_header): Hoist for consistent placement.
45672         * lib/dirent.in.h (system_header): Likewise.
45673         * lib/errno.in.h (system_header): Likewise.
45674         * lib/float.in.h (system_header): Likewise.
45675         * lib/getopt.in.h (system_header): Likewise.
45676         * lib/iconv.in.h (system_header): Likewise.
45677         * lib/inttypes.in.h (system_header): Likewise.
45678         * lib/langinfo.in.h (system_header): Likewise.
45679         * lib/locale.in.h (system_header): Likewise.
45680         * lib/math.in.h (system_header): Likewise.
45681         * lib/netdb.in.h (system_header): Likewise.
45682         * lib/netinet_in.in.h (system_header): Likewise.
45683         * lib/pty.in.h (system_header): Likewise.
45684         * lib/sched.in.h (system_header): Likewise.
45685         * lib/se-selinux.in.h (system_header): Likewise.
45686         * lib/search.in.h (system_header): Likewise.
45687         * lib/spawn.in.h (system_header): Likewise.
45688         * lib/stdarg.in.h (system_header): Likewise.
45689         * lib/stdint.in.h (system_header): Likewise.
45690         * lib/string.in.h (system_header): Likewise.
45691         * lib/strings.in.h (system_header): Likewise.
45692         * lib/sys_file.in.h (system_header): Likewise.
45693         * lib/sys_ioctl.in.h (system_header): Likewise.
45694         * lib/sys_socket.in.h (system_header): Likewise.
45695         * lib/sys_times.in.h (system_header): Likewise.
45696         * lib/sys_utsname.in.h (system_header): Likewise.
45697         * lib/sys_wait.in.h (system_header): Likewise.
45698         * lib/sysexits.in.h (system_header): Likewise.
45699         * lib/unistd.in.h (system_header): Likewise.
45700         * lib/wctype.in.h (system_header): Likewise.
45702         arpa/inet: fix mingw compilation warning
45703         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
45704         Reported by Matthew Bolte.
45706 2010-03-25  Bruno Haible  <bruno@clisp.org>
45708         Avoid collision between gnulib wrapper and libintl wrapper.
45709         * lib/printf.c (printf): Don't define if a printf wrapper is already
45710         defined in intl/printf.c.
45711         Reported by Michel Boaventura <michel@michelboaventura.com>.
45713 2010-03-25  Bruno Haible  <bruno@clisp.org>
45715         Use ANSI C.
45716         * lib/readutmp.h (getutent): Provide ANSI C prototype.
45718 2010-03-25  Bruno Haible  <bruno@clisp.org>
45720         Minor formatting changes.
45721         * lib/acosl.c: Insert space before function argument list.
45722         * lib/argz.c: Likewise.
45723         * lib/asinl.c: Likewise.
45724         * lib/expl.c: Likewise.
45725         * lib/gen-uni-tables.c: Likewise.
45726         * lib/gettext.h: Likewise.
45727         * lib/glthread/lock.h: Likewise.
45728         * lib/tanl.c: Likewise.
45729         * lib/uniname/uniname.c: Likewise.
45730         * tests/test-idpriv-drop.c: Likewise.
45731         * tests/test-idpriv-droptemp.c: Likewise.
45732         * tests/test-lock.c: Likewise.
45733         * tests/test-tls.c: Likewise.
45734         * lib/argp-help.c: Insert space before function-like macro argument
45735         list.
45736         * lib/memcmp.c: Likewise.
45737         * tests/test-base64.c: Likewise.
45738         * lib/localename.c: Insert space before sizeof's argument list.
45739         * lib/safe-alloc.h: Likewise.
45740         * lib/file-set.h: Insert space before macro argument list.
45741         * tests/test-argp.c: Likewise.
45742         * lib/argp-namefrob.h: Insert space before function parameter list.
45743         * lib/getaddrinfo.c: Likewise.
45744         * lib/netdb.in.h: Likewise.
45745         * lib/parse-duration.h: Likewise.
45746         * lib/parse-duration.c: Likewise.
45747         * lib/poll.c: Likewise.
45748         * lib/select.c: Likewise.
45749         * lib/trim.h: Likewise.
45750         * tests/test-usleep.c: Likewise.
45751         * lib/ldexpl.c: Insert space before function parameter list and before
45752         function argument list.
45753         * lib/logl.c: Likewise.
45754         * lib/sqrtl.c: Likewise.
45755         * lib/trim.c: Likewise.
45756         * lib/cosl.c: Use GNU style indentation. Insert space before function
45757         argument list.
45758         * lib/sinl.c: Likewise.
45759         * lib/tsearch.c: Insert space after 'for'.
45760         Reported by Jim Meyering.
45762 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
45764         * maint.mk (sc_Wundef_boolean): Check for the presence of the
45765         config header before grepping, as it's not present before
45766         autoreconf/configure are run.  Reported by Simon Josefsson.
45768 2010-03-23  Bruno Haible  <bruno@clisp.org>
45770         pt_chown: Make it work with automake < 1.11.
45771         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
45772         Reported by Simon Josefsson.
45774 2010-03-23  Bruno Haible  <bruno@clisp.org>
45776         pt_chown: Don't depend on GPLed modules.
45777         * lib/pt_chown.c: Don't include idpriv.h.
45778         (main): Don't drop privileges.
45779         * modules/pt_chown (Depends-on): Remove idpriv-drop.
45780         Reported by Simon Josefsson.
45782 2010-03-24  Simon Josefsson  <simon@josefsson.org>
45784         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
45785         suggestions from karl@freefriends.org (Karl Berry).
45787 2010-03-22  Eric Blake  <eblake@redhat.com>
45789         gethostname: further tweaks
45790         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
45791         are overriding gethostname.
45792         Suggested by Bruno Haible.
45794 2010-03-21  Bruno Haible  <bruno@clisp.org>
45796         Fix comments.
45797         * lib/forkpty.c (rpl_forkpty): Fix comment.
45798         * lib/openpty.c (rpl_openpty): Likewise.
45799         Reported by Eric Blake.
45801 2010-03-22  Eric Blake  <eblake@redhat.com>
45803         gethostname: fix build on mingw
45804         * lib/unistd.in.h (includes): Work around fact that mingw
45805         <winsock2.h> re-includes <unistd.h>, by avoiding any
45806         redeclarations if we are being included by <winsock2.h>.
45807         Reported by Matthias Bolte.
45809 2010-03-21  Bruno Haible  <bruno@clisp.org>
45811         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
45812         * lib/forkpty.c (forkpty): New replacement function, from glibc with
45813         modifications.
45814         * lib/pty.in.h (forkpty): Update declaration. Add comments.
45815         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
45816         provide the replacement.
45817         * modules/forkpty (Depends-on): Add openpty, login_tty.
45818         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
45819         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
45820         * doc/glibc-functions/forkpty.texi: More supported platforms.
45821         * config/srclist.txt: Add forkpty.c (commented).
45823 2010-03-21  Bruno Haible  <bruno@clisp.org>
45825         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
45826         (Makefile.am): Verify that PTY_LIB is defined.
45828         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
45830 2010-03-21  Bruno Haible  <bruno@clisp.org>
45832         Tests for module 'login_tty'.
45833         * modules/login_tty-tests: New file.
45834         * tests/test-login_tty.c: New file.
45836         New module 'login_tty'.
45837         * lib/login_tty.c: New file.
45838         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
45839         * modules/login_tty: New file.
45840         * doc/glibc-functions/login_tty.texi: Mention the new module.
45842 2010-03-21  Bruno Haible  <bruno@clisp.org>
45844         login_tty: Documentation.
45845         * doc/glibc-functions/login_tty.texi: New file.
45846         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
45848 2010-03-21  Bruno Haible  <bruno@clisp.org>
45850         pty: Consistent macro naming.
45851         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
45852         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
45853         * modules/pty (configure.ac): Update.
45855 2010-03-21  Bruno Haible  <bruno@clisp.org>
45857         Tests for openpty: Make stricter.
45858         * tests/test-openpty.c (main): Add test of canonical processing and
45859         erase.
45860         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
45862         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
45863         * lib/openpty.c (openpty): New replacement function.
45864         * lib/pty.in.h: Include <termios.h>.
45865         (openpty): Update declaration. Add comments.
45866         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
45867         is not declared, arrange to provide the replacement. Check for _getpty
45868         and posix_openpt.
45869         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
45870         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
45871         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
45872         * modules/pty-tests (test_pty_c___LDADD): New variable.
45873         * doc/glibc-functions/openpty.texi: More supported platforms.
45875 2010-03-21  Bruno Haible  <bruno@clisp.org>
45877         setenv: Tweaks.
45878         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
45879         the test program.
45880         * doc/posix-functions/setenv.texi: Update platforms list.
45882 2010-03-21  Bruno Haible  <bruno@clisp.org>
45884         New module 'unlockpt'.
45885         * lib/unlockpt.c: New file, from glibc with modifications.
45886         * m4/unlockpt.m4: New file.
45887         * modules/unlockpt: New file.
45888         * lib/stdlib.in.h (unlockpt): New declaration.
45889         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
45890         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
45891         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
45892         HAVE_UNLOCKPT.
45893         * doc/posix-functions/unlockpt.texi: Mention the new module.
45894         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
45895         * config/srclist.txt: Add unlockpt.c (commented).
45897 2010-03-21  Jim Meyering  <meyering@redhat.com>
45899         maint.mk: prohibit inclusion of "intprops.h" without use
45900         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
45902 2010-03-21  Bruno Haible  <bruno@clisp.org>
45904         New module 'grantpt'.
45905         * lib/grantpt.c: New file, from glibc with modifications.
45906         * m4/grantpt.m4: New file.
45907         * modules/grantpt: New file.
45908         * lib/stdlib.in.h (grantpt): New declaration.
45909         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
45910         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
45911         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
45912         HAVE_GRANTPT.
45913         * doc/posix-functions/grantpt.texi: Mention the new module.
45914         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
45915         * config/srclist.txt: Add grantpt.c (commented).
45917 2010-03-21  Bruno Haible  <bruno@clisp.org>
45919         New module 'pt_chown'.
45920         * lib/pt_chown.c: New file, from glibc with modifications.
45921         * lib/pty-private.h: New file, from glibc with modifications.
45922         * modules/pt_chown: New file.
45923         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
45925 2010-03-21  Bruno Haible  <bruno@clisp.org>
45927         Tests for module 'ptsname'.
45928         * modules/ptsname-tests: New file.
45929         * tests/test-ptsname.c: New file.
45931         New module 'ptsname'.
45932         * lib/ptsname.c: New file, from glibc with modifications.
45933         * m4/ptsname.m4: New file.
45934         * modules/ptsname: New file.
45935         * lib/stdlib.in.h (ptsname): New declaration.
45936         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
45937         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
45938         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
45939         HAVE_PTSNAME.
45940         * doc/posix-functions/ptsname.texi: Mention the new module.
45941         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
45942         * config/srclist.txt: Add ptsname.c (commented).
45944 2010-03-21  Bruno Haible  <bruno@clisp.org>
45946         Tests for module 'ttyname_r'.
45947         * modules/ttyname_r-tests: New file.
45948         * tests/test-ttyname_r.c: New file.
45950         New module 'ttyname_r'.
45951         * lib/ttyname_r.c: New file.
45952         * m4/ttyname_r.m4: New file.
45953         * modules/ttyname_r: New file.
45954         * lib/unistd.in.h (ttyname_r): New declaration.
45955         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
45956         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
45957         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
45958         HAVE_TTYNAME_R.
45959         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
45960         * doc/posix-functions/ttyname_r.texi: Mention the new module.
45962 2010-03-20  Bruno Haible  <bruno@clisp.org>
45964         signal: Undefine macro definitions in C++ mode.
45965         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
45966         sigfillset): Undefine macro definitions from the system header in C++
45967         mode.
45968         Reported by John W. Eaton <jwe@gnu.org>.
45970 2010-03-20  Bruno Haible  <bruno@clisp.org>
45972         Ensure no #include statements inside extern "C" { ... }.
45973         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
45974         contain #include statements.
45975         * lib/time.in.h: Likewise.
45977 2010-03-20  Bruno Haible  <bruno@clisp.org>
45979         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
45980         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
45981         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
45982         Reported by John W. Eaton <jwe@gnu.org>.
45984 2010-03-20  Bruno Haible  <bruno@clisp.org>
45986         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
45987         Reported by Jim Meyering.
45989 2010-03-20  Bruno Haible  <bruno@clisp.org>
45991         pipe: Set errno upon failure.
45992         * lib/pipe.h: Specify that when -1 is returned, errno is set.
45993         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
45994         errno value in error message.
45996 2010-03-20  Bruno Haible  <bruno@clisp.org>
45997             Jim Meyering  <meyering@redhat.com>
45999         lchown: Avoid "unused variable" warning.
46000         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
46002 2010-03-20  Bruno Haible  <bruno@clisp.org>
46004         Work around unlink() bug on MacOS X 10.5.6.
46005         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
46006         attempting to unlink a parent directory.
46007         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
46008         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
46009         activate for the replacement function.
46010         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
46012 2010-03-20  Bruno Haible  <bruno@clisp.org>
46014         Fix link errors on Solaris 8.
46015         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
46016         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
46018 2010-03-19  Jim Meyering  <meyering@redhat.com>
46020         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
46021         The _LIBC implementation of build_range_exp correctly honors the
46022         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
46023         However, the non-_LIBC implementation would ignore that syntax-bit
46024         flag and return REG_ERANGE unconditionally.
46025         This change makes it honor that flag.
46026         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
46027         Make two pointer parameters "const".
46028         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
46029         (parse_bracket_exp): Update caller.
46031         regex.m4: correct the reversed range endpoint ([b-a]) test
46032         * m4/regex.m4: When requiring that [b-a] evoke failure,
46033         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
46034         test pass once again for x86-based systems.
46036 2010-03-19  Bruno Haible  <bruno@clisp.org>
46038         scandir: Fix link error on Solaris 8.
46039         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
46040         macros.
46042 2010-03-19  Bruno Haible  <bruno@clisp.org>
46044         getusershell: Fix documentation.
46045         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
46046         module.
46047         * doc/glibc-functions/setusershell.texi: Likewise.
46049         getusershell: Provide declaration, missing on Solaris 9.
46050         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
46051         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
46052         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
46053         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
46054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46055         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
46056         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
46057         HAVE_GETUSERSHELL.
46058         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
46060 2010-03-19  Bruno Haible  <bruno@clisp.org>
46062         wctype: Provide iswblank function.
46063         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
46064         exists and is fine.
46065         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
46066         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
46067         * tests/test-wctype.c (main): Re-enable the iswblank tests.
46068         * doc/posix-functions/iswblank.texi: Update.
46070 2010-03-19  Bruno Haible  <bruno@clisp.org>
46072         Tests of module 'pty' in C++ mode.
46073         * modules/pty-tests: New file.
46074         * tests/test-pty-c++.cc: New file.
46075         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
46077 2010-03-19  Eric Blake  <eblake@redhat.com>
46079         logb: fix documentation
46080         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
46081         1.5 declaration bug.
46083         forkpty, openpty: prefer glibc's const-safe prototype
46084         * lib/forkpty.c (rpl_forkpty): New file.
46085         * lib/openpty.c (rpl_openpty): Likewise.
46086         * modules/forkpty (Files): Distribute it.
46087         * modules/openpty (Files): Likewise.
46088         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
46089         check...
46090         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
46091         replacement for for non-const BSD signature.
46092         * modules/pty (Makefile.am): Substitute witnesses.
46093         * lib/pty.in.h (forkpty, openpty): Declare replacements.
46094         * tests/test-forkpty.c: Update signature check.
46095         * tests/test-openpty.c: Likewise.
46096         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
46097         * doc/glibc-functions/openpty.texi (openpty): Likewise.
46099         forkpty, openpty: split functions into new modules
46100         * modules/pty (Makefile.am): Substitute new witnesses.
46101         (Libraries): Move library detection...
46102         * modules/forkpty: ...into new module.
46103         * modules/openpty: Another new module.
46104         * modules/pty-tests: Rename and split...
46105         * modules/forkpty-tests: ...to this...
46106         * modules/openpty-tests: ...and this.
46107         * tests/test-pty.c: Rename and split...
46108         * tests/test-forkpty.c: ...to this...
46109         * tests/test-openpty.c: ...and this.
46110         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
46111         (gl_PTY): Split library searching...
46112         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
46113         (gl_FORKPTY, gl_OPENPTY): New macros.
46114         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
46115         * NEWS: Mention the split.
46116         * MODULES.html.sh (Misc): Document the modules.
46117         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
46118         * doc/glibc-functions/openpty.texi (openpty): Likewise.
46120         pty: improve replacement header
46121         * lib/pty.in.h: New file.
46122         * modules/pty (Files): Ship it.
46123         (Makefile.am): Always build replacement.
46124         * m4/pty.m4: Rename...
46125         * m4/pty_h.m4: ...to this.
46126         (gl_PTY): Modernize setting of witness macros; update check of
46127         forkpty to take proper advantage of cache.
46128         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
46130         getopt: avoid compiler warning
46131         * lib/getopt.c (attribute_hidden): Remove unused macro.
46133 2010-03-18  Bruno Haible  <bruno@clisp.org>
46135         Fix link errors on Solaris 8.
46136         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
46137         * modules/search-tests (test_search_c___LDADD): Likewise.
46138         * modules/signal-tests (test_signal_c___LDADD): Likewise.
46139         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
46140         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
46141         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
46142         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
46143         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
46144         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
46146 2010-03-18  Bruno Haible  <bruno@clisp.org>
46148         Fix bug introduced on 2010-03-14.
46149         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
46150         (gl_SPAWN_H): Require it.
46151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
46152         Reported by Simon Josefsson.
46154 2010-03-18  Bruno Haible  <bruno@clisp.org>
46156         Fix typo introduced on 2009-12-31.
46157         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
46158         posix_spawn_file_actions_adddup2.
46160 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
46161         and Eric Blake  <eblake@redhat.com>
46163         test-vc-list-files-git: make more robust
46164         * tests/test-vc-list-files-git.sh: Unset problematic environment
46165         variables.  Chain commands together.
46167 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
46169         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
46170         `AC_CHECK_DECL' invocation.
46172 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
46174         * lib/inttostr.c (inttostr): Make sure the invocation of verify
46175         appears before executable statements. Suggested by Petr Sumbera
46176         <Petr.Sumbera@Sun.COM>.
46178 2010-03-14  Bruno Haible  <bruno@clisp.org>
46180         * tests/test-flock.c (test_exclusive): Comment out a test that causes
46181         portability problems. Instead use a simpler test.
46182         (main): Check that invalid arguments are rejected only on Linux.
46184 2010-03-14  Bruno Haible  <bruno@clisp.org>
46186         Fix bug introduced on 2009-12-31.
46187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
46188         gl_PREREQ_SYS_H_WINSOCK2 always.
46189         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
46190         SYS_SOCKET_H variable.
46191         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
46192         Update comments.
46193         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
46194         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
46195         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
46196         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46197         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
46199 2010-03-14  Bruno Haible  <bruno@clisp.org>
46201         Fix values returned by sinl, cosl.
46202         * lib/trigl.h: Add specification comments.
46203         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
46204         that combines the values from the precomputed table with the values of
46205         the Chebyshev polynomials.
46207 2010-03-14  Bruno Haible  <bruno@clisp.org>
46209         Fix compilation error when modules 'posix_spawn[p]' are not used.
46210         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
46211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
46213 2010-03-14  Bruno Haible  <bruno@clisp.org>
46215         Fix compilation error on mingw when module 'time_r' is not used.
46216         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
46217         is 1.
46218         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
46219         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
46220         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
46221         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
46223 2010-03-14  Bruno Haible  <bruno@clisp.org>
46225         Fix compilation error with Sun C.
46226         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
46227         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
46228         instead of GCC specific ULONG_LONG_MAX.
46229         * lib/xstrtoll.c: Likewise.
46230         * lib/xstrtoull.c: Likewise.
46232 2010-03-13  Bruno Haible  <bruno@clisp.org>
46234         Allow the user to disable C++ code and tests.
46235         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
46236         (gl_PROG_ANSI_CXX): Require it.
46238 2010-03-13  Bruno Haible  <bruno@clisp.org>
46240         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
46241         cases.
46243 2010-03-13  Bruno Haible  <bruno@clisp.org>
46245         Test that gnulib does not break the standard C++ headers.
46246         * tests/test-locale-c++2.cc: New file.
46247         * modules/locale-tests (Files): Add it.
46248         (Makefile.am): Compile it for test-locale-c++.
46249         * tests/test-math-c++2.cc: New file.
46250         * modules/math-tests (Files): Add it.
46251         (Makefile.am): Compile it for test-math-c++.
46252         * tests/test-signal-c++2.cc: New file.
46253         * modules/signal-tests (Files): Add it.
46254         (Makefile.am): Compile it for test-signal-c++.
46255         * tests/test-stdio-c++2.cc: New file.
46256         * modules/stdio-tests (Files): Add it.
46257         (Makefile.am): Compile it for test-stdio-c++.
46258         * tests/test-stdlib-c++2.cc: New file.
46259         * modules/stdlib-tests (Files): Add it.
46260         (Makefile.am): Compile it for test-stdlib-c++.
46261         * tests/test-string-c++2.cc: New file.
46262         * modules/string-tests (Files): Add it.
46263         (Makefile.am): Compile it for test-string-c++.
46264         * tests/test-time-c++2.cc: New file.
46265         * modules/time-tests (Files): Add it.
46266         (Makefile.am): Compile it for test-time-c++.
46267         Reported by John W. Eaton <jwe@gnu.org>.
46269 2010-03-13  Bruno Haible  <bruno@clisp.org>
46271         * gnulib-tool (func_usage): Clarify which options are available for
46272         --create-testdir and --create-megatestdir.
46274 2010-03-13  Bruno Haible  <bruno@clisp.org>
46276         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
46277         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
46278         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
46279         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
46280         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
46281         when appropriate.
46282         Reported by Jim Meyering.
46284 2010-03-12  Simon Josefsson  <simon@josefsson.org>
46286         * gnulib-tool (func_import): Explain origin of code.
46288 2010-03-12  Bruno Haible  <bruno@clisp.org>
46290         Fix problem with automake's definition of CXXLINK.
46291         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
46292         Reported by Simon Josefsson and Ludovic Courtès.
46294 2010-03-12  Bruno Haible  <bruno@clisp.org>
46296         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
46297         stable releases.
46299 2010-03-11  Bruno Haible  <bruno@clisp.org>
46301         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
46302         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
46303         whether the system provides one variant or multiple variants of the
46304         function.
46305         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
46306         C++ compilers.
46307         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
46308         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
46309         Reported by Jim Meyering.
46311 2010-03-09  Simon Josefsson  <simon@josefsson.org>
46313         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
46315 2010-03-08  Bruno Haible  <bruno@clisp.org>
46317         gnulib-tool: Add support for --libtool in --create-testdir.
46318         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
46319         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
46321 2010-03-08  Eric Blake  <eblake@redhat.com>
46323         gnulib-tool.texi: mention possibility of git submodule
46324         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
46325         submodules.
46326         * doc/.gitignore: Ignore another generated file.
46328 2010-03-08  Karl Berry  <karl@gnu.org>
46330         * doc/gnulib-tool.texi (VCS Issues): Mention third option
46331         of committing gnulib files while skipping others.
46333 2010-03-07  Bruno Haible  <bruno@clisp.org>
46335         Tests of module 'wctype' in C++ mode.
46336         * tests/test-wctype-c++.cc: New file.
46337         * modules/wctype-tests (Files): Add it and tests/signature.h.
46338         (Depends-on): Add ansi-c++-opt.
46339         (Makefile.am): Arrange to compile and run test-wctype-c++.
46341         Tests of module 'wchar' in C++ mode.
46342         * tests/test-wchar-c++.cc: New file.
46343         * modules/wchar-tests (Files): Add it and tests/signature.h.
46344         (Depends-on): Add ansi-c++-opt.
46345         (Makefile.am): Arrange to compile and run test-wchar-c++.
46346         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
46347         gl_MODULE_INDICATOR.
46349         Tests of module 'unistd' in C++ mode.
46350         * tests/test-unistd-c++.cc: New file.
46351         * modules/unistd-tests (Files): Add it and tests/signature.h.
46352         (Depends-on): Add ansi-c++-opt.
46353         (Makefile.am): Arrange to compile and run test-unistd-c++.
46354         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
46355         gl_MODULE_INDICATOR.
46357         Tests of module 'time' in C++ mode.
46358         * tests/test-time-c++.cc: New file.
46359         * modules/time-tests (Files): Add it and tests/signature.h.
46360         (Depends-on): Add ansi-c++-opt.
46361         (Makefile.am): Arrange to compile and run test-time-c++.
46362         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
46364         Tests of module 'sys_time' in C++ mode.
46365         * tests/test-sys_time-c++.cc: New file.
46366         * modules/sys_time-tests (Files): Add it and tests/signature.h.
46367         (Depends-on): Add ansi-c++-opt.
46368         (Makefile.am): Arrange to compile and run test-sys_time-c++.
46369         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
46370         gl_MODULE_INDICATOR.
46372         Tests of module 'sys_stat' in C++ mode.
46373         * tests/test-sys_stat-c++.cc: New file.
46374         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
46375         (Depends-on): Add ansi-c++-opt.
46376         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
46377         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
46378         gl_MODULE_INDICATOR.
46380         Tests of module 'sys_socket' in C++ mode.
46381         * tests/test-sys_socket-c++.cc: New file.
46382         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
46383         (Depends-on): Add ansi-c++-opt.
46384         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
46385         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
46386         gl_MODULE_INDICATOR.
46388         Tests of module 'sys_select' in C++ mode.
46389         * tests/test-sys_select-c++.cc: New file.
46390         * modules/sys_select-tests (Files): Add it and tests/signature.h.
46391         (Depends-on): Add ansi-c++-opt.
46392         (Makefile.am): Arrange to compile and run test-sys_select-c++.
46393         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
46394         gl_MODULE_INDICATOR.
46396         Tests of module 'sys_ioctl' in C++ mode.
46397         * tests/test-sys_ioctl-c++.cc: New file.
46398         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
46399         (Depends-on): Add ansi-c++-opt.
46400         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
46401         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
46402         gl_MODULE_INDICATOR.
46404         Tests of module 'string' in C++ mode.
46405         * tests/test-string-c++.cc: New file.
46406         * modules/string-tests (Files): Add it and tests/signature.h.
46407         (Depends-on): Add ansi-c++-opt.
46408         (Makefile.am): Arrange to compile and run test-string-c++.
46409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
46410         gl_MODULE_INDICATOR.
46412         Tests of module 'stdlib' in C++ mode.
46413         * tests/test-stdlib-c++.cc: New file.
46414         * modules/stdlib-tests (Files): Add it and tests/signature.h.
46415         (Depends-on): Add ansi-c++-opt.
46416         (Makefile.am): Arrange to compile and run test-stdlib-c++.
46417         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
46418         gl_MODULE_INDICATOR.
46420         Tests of module 'stdio' in C++ mode.
46421         * tests/test-stdio-c++.cc: New file.
46422         * modules/stdio-tests (Files): Add it and tests/signature.h.
46423         (Depends-on): Add ansi-c++-opt.
46424         (Makefile.am): Arrange to compile and run test-stdio-c++.
46425         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
46426         gl_MODULE_INDICATOR.
46428         Tests of module 'spawn' in C++ mode.
46429         * tests/test-spawn-c++.cc: New file.
46430         * modules/spawn-tests (Files): Add it and tests/signature.h.
46431         (Depends-on): Add ansi-c++-opt.
46432         (Makefile.am): Arrange to compile and run test-spawn-c++.
46433         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
46434         gl_MODULE_INDICATOR.
46436         Tests of module 'signal' in C++ mode.
46437         * tests/test-signal-c++.cc: New file.
46438         * modules/signal-tests (Files): Add it and tests/signature.h.
46439         (Depends-on): Add ansi-c++-opt.
46440         (Makefile.am): Arrange to compile and run test-signal-c++.
46441         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
46442         gl_MODULE_INDICATOR.
46444         Tests of module 'search' in C++ mode.
46445         * tests/test-search-c++.cc: New file.
46446         * modules/search-tests (Files): Add it and tests/signature.h.
46447         (Depends-on): Add ansi-c++-opt.
46448         (Makefile.am): Arrange to compile and run test-search-c++.
46449         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
46450         gl_MODULE_INDICATOR.
46452         Tests of module 'math' in C++ mode.
46453         * tests/test-math-c++.cc: New file.
46454         * modules/math-tests (Files): Add it and tests/signature.h.
46455         (Depends-on): Add ansi-c++-opt.
46456         (Makefile.am): Arrange to compile and run test-math-c++.
46457         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
46459         Tests of module 'locale' in C++ mode.
46460         * tests/test-locale-c++.cc: New file.
46461         * modules/locale-tests (Files): Add it and tests/signature.h.
46462         (Depends-on): Add ansi-c++-opt.
46463         (Makefile.am): Arrange to compile and run test-locale-c++.
46464         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
46465         gl_MODULE_INDICATOR.
46467         Tests of module 'langinfo' in C++ mode.
46468         * tests/test-langinfo-c++.cc: New file.
46469         * modules/langinfo-tests (Files): Add it and tests/signature.h.
46470         (Depends-on): Add ansi-c++-opt.
46471         (Makefile.am): Arrange to compile and run test-langinfo-c++.
46472         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
46473         gl_MODULE_INDICATOR.
46475         Tests of module 'iconv-h' in C++ mode.
46476         * tests/test-iconv-h-c++.cc: New file.
46477         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
46478         (Depends-on): Add ansi-c++-opt.
46479         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
46481         Tests of module 'glob' in C++ mode.
46482         * tests/test-glob-c++.cc: New file.
46483         * modules/glob-tests (Files): Add it.
46484         (Depends-on): Add ansi-c++-opt.
46485         (Makefile.am): Arrange to compile and run test-glob-c++.
46487         Tests of module 'fcntl-h' in C++ mode.
46488         * tests/test-fcntl-h-c++.cc: New file.
46489         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
46490         (Depends-on): Add ansi-c++-opt.
46491         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
46492         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
46493         gl_MODULE_INDICATOR.
46495         Tests of module 'dirent' in C++ mode.
46496         * tests/test-dirent-c++.cc: New file.
46497         * modules/dirent-tests (Files): Add it and tests/signature.h.
46498         (Depends-on): Add ansi-c++-opt.
46499         (Makefile.am): Arrange to compile and run test-dirent-c++.
46500         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
46501         gl_MODULE_INDICATOR.
46503         New module 'ansi-c++-opt'.
46504         * modules/ansi-c++-opt: New file.
46505         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
46507         Document C++ namespace mode.
46508         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
46510         wctype: Avoid #define replacements in C++ mode.
46511         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
46512         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
46513         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
46514         In C++, define a namespaced alias symbol.
46515         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
46516         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
46517         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
46518         rule.
46520         wchar: Avoid #define replacements in C++ mode.
46521         * lib/wchar.in.h: Include c++defs.h.
46522         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
46523         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
46524         symbol.
46525         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
46526         * modules/wchar (Depends-on): Add c++defs.
46527         (Makefile.am): Update wchar.h rule.
46529         unistd: Avoid #define replacements in C++ mode.
46530         * lib/unistd.in.h: Include c++defs.h.
46531         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
46532         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
46533         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
46534         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
46535         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
46536         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
46537         symbol.
46538         (environ): Update.
46539         * modules/unistd (Depends-on): Add c++defs.
46540         (Makefile.am): Update unistd.h rule.
46542         time: Avoid #define replacements in C++ mode.
46543         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
46544         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
46545         define a namespaced alias symbol.
46546         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
46547         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
46548         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
46549         * modules/time (Depends-on): Add c++defs, warn-on-use.
46550         (Makefile.am): Update time.h rule.
46551         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
46552         * modules/nanosleep (configure.ac): Likewise.
46553         * modules/strptime (configure.ac): Likewise.
46554         * modules/timegm (configure.ac): Likewise.
46556         sys_time: Avoid #define replacements in C++ mode.
46557         * lib/sys_time.in.h: Include c++defs.h.
46558         (gettimeofday): In C++, define a namespaced alias symbol.
46559         * modules/sys_time (Depends-on): Add c++defs.
46560         (Makefile.am): Update sys/time.h rule.
46562         sys_stat: Avoid #define replacements in C++ mode.
46563         * lib/sys_stat.in.h: Include c++defs.h.
46564         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
46565         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
46566         namespaced alias symbol.
46567         In C++, define a namespaced alias symbol.
46568         * modules/sys_stat (Depends-on): Add c++defs.
46569         (Makefile.am): Update sys/stat.h rule.
46571         sys_socket: Avoid #define replacements in C++ mode.
46572         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
46573         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
46574         definitions also when the system has a <sys/socket.h>.
46575         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46576         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
46577         In C++, define a namespaced alias symbol.
46578         * modules/sys_socket (Depends-on): Add c++defs.
46579         (Makefile.am): Update sys/socket.h rule.
46581         sys_select: Avoid #define replacements in C++ mode.
46582         * lib/sys_select.in.h: Include c++defs.h. Enable the function
46583         definitions also when the system has a <sys/select.h>.
46584         (select): In C++, define a namespaced alias symbol.
46585         * modules/sys_select (Depends-on): Add c++defs.
46586         (Makefile.am): Update sys/select.h rule.
46588         sys_ioctl: Avoid #define replacements in C++ mode.
46589         * lib/sys_ioctl.in.h: Include c++defs.h.
46590         (ioctl): In C++, define a namespaced alias symbol.
46591         * modules/sys_ioctl (Depends-on): Add c++defs.
46592         (Makefile.am): Update sys/ioctl.h rule.
46594         string: Avoid #define replacements in C++ mode.
46595         * lib/string.in.h: Include c++defs.h.
46596         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
46597         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
46598         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
46599         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
46600         strsignal, strverscmp): In C++, define a namespaced alias symbol.
46601         * modules/string (Depends-on): Add c++defs.
46602         (Makefile.am): Update string.h rule.
46604         stdlib: Avoid #define replacements in C++ mode.
46605         * lib/stdlib.in.h: Include c++defs.h.
46606         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
46607         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
46608         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
46609         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
46610         symbol.
46611         * modules/stdlib (Depends-on): Add c++defs.
46612         (Makefile.am): Update stdlib.h rule.
46614         stdio: Avoid #define replacements in C++ mode.
46615         * lib/stdio.in.h: Include c++defs.h.
46616         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
46617         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
46618         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
46619         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
46620         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
46621         namespaced alias symbol.
46622         * modules/stdio (Depends-on): Add c++defs.
46623         (Makefile.am): Update stdio.h rule.
46625         spawn: Avoid #define replacements in C++ mode.
46626         * lib/spawn.in.h: Include c++defs.h.
46627         (posix_spawn, posix_spawnp, posix_spawnattr_init,
46628         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
46629         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
46630         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
46631         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
46632         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
46633         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
46634         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
46635         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
46636         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
46637         In C++, define a namespaced alias symbol.
46638         * modules/spawn (Depends-on): Add c++defs.
46639         (Makefile.am): Update spawn.h rule.
46641         signal: Avoid #define replacements in C++ mode.
46642         * lib/signal.in.h: Include c++defs.h.
46643         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
46644         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
46645         namespaced alias symbol.
46646         * modules/signal (Depends-on): Add c++defs.
46647         (Makefile.am): Update signal.h rule.
46649         search: Avoid #define replacements in C++ mode.
46650         * lib/search.in.h: Include c++defs.h.
46651         (_gl_search_compar_fn, _gl_search_action_fn): New types.
46652         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
46653         symbol.
46654         * modules/search (Depends-on): Add c++defs.
46655         (Makefile.am): Update search.h rule.
46657         math: Avoid #define replacements in C++ mode.
46658         * lib/math.in.h: Include c++defs.h.
46659         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
46660         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
46661         trunc, truncl): In C++, define a namespaced alias symbol.
46662         * modules/math (Depends-on): Add c++defs.
46663         (Makefile.am): Update math.h rule.
46665         locale: Avoid #define replacements in C++ mode.
46666         * lib/locale.in.h: Include c++defs.h.
46667         (duplocale): In C++, define a namespaced alias symbol.
46668         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
46669         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
46670         * modules/locale (Depends-on): Add c++defs.
46671         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
46673         langinfo: Avoid #define replacements in C++ mode.
46674         * lib/langinfo.in.h: Include c++defs.h.
46675         (nl_langinfo): In C++, define a namespaced alias symbol.
46676         * modules/langinfo (Depends-on): Add c++defs.
46677         (Makefile.am): Update langinfo.h rule.
46679         iconv-h: Avoid #define replacements in C++ mode.
46680         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
46681         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
46682         symbol.
46683         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46684         whenever iconv is present.
46685         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
46686         (Makefile.am): Update iconv.h rule.
46688         glob: Avoid #define replacements in C++ mode.
46689         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
46690         (_gl_glob_errfunc_fn): New type.
46691         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
46692         symbol.
46693         * modules/glob (Depends-on): Add c++defs, warn-on-use.
46694         (Makefile.am): Update glob.h rule.
46696         fcntl-h: Avoid #define replacements in C++ mode.
46697         * lib/fcntl.in.h: Include c++defs.h.
46698         (fcntl, open, openat): In C++, define a namespaced alias symbol.
46699         * modules/fcntl-h (Depends-on): Add c++defs.
46700         (Makefile.am): Update fcntl.h rule.
46702         dirent: Avoid #define replacements in C++ mode.
46703         * lib/dirent.in.h: Include c++defs.h.
46704         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
46705         namespaced alias symbol.
46706         (dirfd): Update declaration.
46707         * modules/dirent (Depends-on): Add c++defs.
46708         (Makefile.am): Update dirent.h rule.
46710         ctype: Make it usable in C++ code.
46711         * lib/ctype.in.h: Include c++defs.h.
46712         (isblank): Declare as extern "C".
46713         * modules/ctype (Depends-on): Add c++defs.
46714         (Makefile.am): Update ctype.h rule.
46716         New module 'c++defs'.
46717         * modules/c++defs: New file.
46718         * build-aux/c++defs.h: New file.
46719         Reported by John W. Eaton <jwe@gnu.org>.
46721 2010-03-07  Bruno Haible  <bruno@clisp.org>
46723         logb: Provide missing declaration for Cygwin.
46724         * lib/math.in.h (logb): New declaration.
46725         * m4/logb.m4: New file.
46726         * modules/logb (Files): Add m4/logb.m4.
46727         (Depends-on): Add math.
46728         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
46729         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
46730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
46731         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
46732         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
46734 2010-03-07  Bruno Haible  <bruno@clisp.org>
46736         Fix test-cond link error.
46737         * tests/test-cond.c: Include <stdio.h>.
46739 2010-03-07  Bruno Haible  <bruno@clisp.org>
46741         Fix test-dirent-safer link error.
46742         * modules/dirent-safer-tests (Makefile.am): Define
46743         test_dirent_safer_LDADD.
46745 2010-03-07  Bruno Haible  <bruno@clisp.org>
46747         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
46748         among default module list.
46750 2010-03-07  Bruno Haible  <bruno@clisp.org>
46752         Fix link error on platforms with GNU libiconv.
46753         * modules/unistr/u8-strcoll-tests (Makefile): Define
46754         test_u8_strcoll_LDADD.
46755         * modules/unistr/u16-strcoll-tests (Makefile): Define
46756         test_u16_strcoll_LDADD.
46757         * modules/unistr/u32-strcoll-tests (Makefile): Define
46758         test_u32_strcoll_LDADD.
46760 2010-03-07  Bruno Haible  <bruno@clisp.org>
46762         Use POSIX declarations for socket functions.
46763         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
46764         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
46765         rpl_sendto): Change declaration to match POSIX.
46766         * lib/connect.c (rpl_connect): Likewise.
46767         * lib/accept.c (rpl_accept): Likewise.
46768         * lib/bind.c (rpl_bind): Likewise.
46769         * lib/getpeername.c (rpl_getpeername): Likewise.
46770         * lib/getsockname.c (rpl_getsockname): Likewise.
46771         * lib/recv.c (rpl_recv): Likewise.
46772         * lib/send.c (rpl_send): Likewise.
46773         * lib/recvfrom.c (rpl_recvfrom): Likewise.
46774         * lib/sendto.c (rpl_sendto): Likewise.
46776 2010-03-06  Bruno Haible  <bruno@clisp.org>
46778         Clarify access, euidaccess, faccessat.
46779         * doc/posix-functions/faccessat.texi: Mention security problem under
46780         "Other problems", not "Portability problems".
46781         * doc/posix-functions/access.texi: Likewise. Mention a related security
46782         problem.
46783         * doc/glibc-functions/euidaccess.texi: Mention security problems.
46784         * lib/euidaccess.c: Add comments about platforms.
46785         * lib/unistd.in.h (access, euidaccess): Add warnings.
46787 2010-03-07  Bruno Haible  <bruno@clisp.org>
46789         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
46790         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
46791         (POSIX_SPAWN_SETSCHEDULER): Likewise.
46792         (POSIX_SPAWN_USEVFORK): Define in a way that works when
46793         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
46794         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
46795         declare when POSIX_SPAWN_SETSCHEDULER is zero.
46796         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
46797         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
46798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
46799         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
46800         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
46801         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
46802         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
46803         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
46804         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
46805         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
46806         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
46807         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
46808         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
46809         Likewise.
46810         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
46811         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
46812         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
46813         Likewise.
46814         * tests/test-spawn.c (main): Make it work when
46815         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
46817 2010-03-07  Bruno Haible  <bruno@clisp.org>
46819         Fix incorrect Makefile.am generation in German locale.
46820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46821         Execute sed command with character range in C locale.
46823 2010-03-06  Bruno Haible  <bruno@clisp.org>
46825         Tests for module 'iconv-h'.
46826         * modules/iconv-h-tests: New file.
46827         * tests/test-iconv-h.c: New file.
46829         New module 'iconv-h'.
46830         * modules/iconv-h: New file.
46831         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
46832         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
46833         (configure.ac): Remove gl_ICONV_H.
46834         (Makefile.am): Remove rule for iconv.h.
46836 2010-03-06  Bruno Haible  <bruno@clisp.org>
46838         More consistent naming of *.m4 files.
46839         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
46840         * modules/wctype (Files): Update.
46842         More consistent naming of *.m4 files.
46843         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
46844         * modules/wchar (Files): Update.
46846 2010-03-06  Jim Meyering  <meyering@redhat.com>
46848         euidaccess: relax license to LGPLv2+
46849         * modules/euidaccess (License): Relax to LGPLv2+.
46851 2010-03-06  Bruno Haible  <bruno@clisp.org>
46853         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
46854         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
46855         (Makefile.am): Augment lib_SOURCES instead.
46857 2010-03-04  Jim Meyering  <meyering@redhat.com>
46859         utime: remove obsolete module
46860         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
46861         unnecessary for years, and has been marked as obsolete for 10 months.
46862         * modules/utime: Remove file.
46863         * lib/utime.c: Remove file.
46864         * m4/utime.m4: Remove file.
46865         * m4/utimes-null.m4: Remove file.
46866         * doc/posix-functions/utime.texi (utime): Remove reference to
46867         the module.  Move the sole "fixed by gnulib" item into the
46868         "problems not fixed by Gnulib" list.
46869         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
46871 2010-03-05  Simon Josefsson  <simon@josefsson.org>
46873         * modules/exit (License): Relax license to LGPLv2+.
46874         (Status): Mark as obsolete.
46875         * NEWS: Mention deprecated 'exit' module.
46876         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
46877         of now obsolete 'exit'.
46879 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46881         fts-lgpl: remove unused module
46882         * modules/fts-lgpl: Remove.
46883         * MODULES.html.sh (func_all_modules): Adjust.
46884         * check-module (find_included_lib_files): Adjust.
46885         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
46887 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
46889         copy-acl: enhance Solaris ACL error handling
46890         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
46891         * lib/set-mode-acl.c (qset_acl): Likewise.
46893 2010-03-02  Bruno Haible  <bruno@clisp.org>
46895         spawn: Don't override the system defined values on FreeBSD 8.
46896         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
46897         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
46898         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
46899         if HAVE_POSIX_SPAWN is 1.
46900         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
46902 2010-03-01  Bruno Haible  <bruno@clisp.org>
46904         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
46905         regarding Automake.
46907 2010-02-25  Bruno Haible  <bruno@clisp.org>
46909         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
46910         * gnulib-tool: Define 'echo' as a function only before the ksh alias
46911         setting, not afterwards.
46912         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
46914 2010-02-24  Eric Blake  <eblake@redhat.com>
46916         bootstrap, git-version-gen: use timestamp
46917         * build-aux/git-version-gen (scriptversion): Force UTC.
46918         * build-aux/bootstrap (scriptversion): New variable.
46920         bootstrap: allow older git
46921         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
46922         older than 1.6.4.  Requested by the libvirt project.
46924 2010-02-23  Eric Blake  <eblake@redhat.com>
46926         warn-on-use: work with old autoconf
46927         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
46928         AS_VAR semantics of autoconf 2.60.
46929         Reported by Bruno Haible.
46931         bootstrap: improve some comments
46932         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
46933         clarification comments.
46935         gettimeofday: provide correct function
46936         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
46937         when replacement is declared, otherwise provide gettimeofday.
46938         Reported by Michael Goffioul.
46940 2010-02-23  Jim Meyering  <meyering@redhat.com>
46942         lib-ignore: relax license to "unlimited", not LGPLv2+
46943         * modules/lib-ignore (License): Relax to "unlimited".
46945 2010-02-23  Jim Meyering  <meyering@redhat.com>
46947         lib-ignore: relax license to LGPLv2+
46948         * modules/lib-ignore (License): Relax to LGPLv2+.
46950 2010-02-22  Eric Blake  <eblake@redhat.com>
46952         lseek: avoid bash 3.2 broken pipe bug
46953         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
46954         warning from bash 3.2.
46955         Reported by Ben Pfaff, with analysis from Bruno Haible.
46957         bootstrap: support non-FSF copyright holder
46958         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
46959         bootstrap.conf override of COPYRIGHT_HOLDER.
46960         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
46962         bootstrap: interoperate with gettext 0.14.1
46963         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
46965         bootstrap: allow for alternate submodule location
46966         * build-aux/bootstrap (gnulib_path): New variable; use instead of
46967         hardcoding submodule location.
46968         (gnulib_mk): Allow direct use of Makefile.am.
46970         bootstrap: use GNULIB_SRCDIR to reduce disk usage
46971         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
46972         rather than reconfiguring where the submodule points.
46974         gettimeofday: restore support for platforms that lack function
46975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
46976         replacement if function is missing.
46977         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
46978         * modules/sys_time (Makefile.am): Substitute it.
46979         * lib/sys_time.in.h (gettimeofday): Check it.
46980         Reported by Michael Goffioul.
46982 2010-02-21  Bruno Haible  <bruno@clisp.org>
46984         * lib/stdio.in.h (obstack_printf): Fix typo.
46986 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
46988         vc-list-files: use bzr ls's -R option
46989         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
46990         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
46992 2010-02-21  Jim Meyering  <meyering@redhat.com>
46994         init.sh: fix EXEEXT shims to work also for names like test-prog
46995         * tests/init.sh: Re-exec a better shell, when needed.
46996         If the current shell lacks support for posix $(...), an init.sh-using
46997         test will now try to find a shell that supports that.  If EXEEXT is
46998         nonempty, we also require support for hyphen-in-alias-name and shell
46999         substitutions like ${var#glob}.  Failure to find such a shell results
47000         in a skipped test.
47002 2010-02-21  Bruno Haible  <bruno@clisp.org>
47004         Really work around around "broken pipe" error message from bash 3.2.
47005         * gnulib-tool (func_reset_sigpipe): Remove function.
47006         (echo): In bash 3.2, define to a function that uses printf.
47007         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
47009 2010-02-20  Bruno Haible  <bruno@clisp.org>
47011         Restore support for automake 1.9.6 with autoconf 2.61.
47012         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
47013         Reported by James Youngman <jay@gnu.org>.
47015 2010-02-20  Bruno Haible  <bruno@clisp.org>
47017         Improve *printf warning condition.
47018         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
47019         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
47020         and the function is overridden due to SIGPIPE emulation.
47022 2010-02-20  Bruno Haible  <bruno@clisp.org>
47024         * lib/stdio.in.h: Tweak comments.
47026 2010-02-19  Bruno Haible  <bruno@clisp.org>
47028         Make it easier to find modules. New gnulib-tool option '--find'.
47029         * gnulib-tool: New option --find.
47030         (func_usage): Document it.
47031         (func_sanitize_modulelist): New function, extracted from
47032         func_all_modules.
47033         (func_all_modules): Invoke it.
47034         * doc/gnulib-tool.texi (Which modules?): New node.
47036 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
47038         * lib/sys_select.in.h: Provide select replacement even if
47039         sys/select.h exists on a system, for Interix.
47041 2010-02-18  Jim Meyering  <meyering@redhat.com>
47043         init.sh: don't use $(...) just yet
47044         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
47045         to accommodate e.g., Solaris' /bin/sh.
47047 2010-02-17  Bruno Haible  <bruno@clisp.org>
47049         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
47050         Reported by Ludovic Courtès <ludo@gnu.org>.
47052 2010-02-16  Simon Josefsson  <simon@josefsson.org>
47054         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
47055         linking with -lintl.
47057 2010-02-17  Simon Josefsson  <simon@josefsson.org>
47059         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
47060         if not provided by the system's netdb.h.  Reported by
47061         ludo@gnu.org (Ludovic Courtès).
47063 2010-02-15  Jim Meyering  <meyering@redhat.com>
47065         init.sh: improve portability and efficiency
47066         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
47067         "dummy" in a for loop.
47068         Use '!', not '^' to select the complement of a character set used
47069         in a "case" statement.
47070         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
47071         Suggestions from Eric Blake.
47073         init.sh: automatically accommodate programs with the .exe suffix
47074         Automatically arrange for an invocation of "prog" to execute the
47075         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
47076         may use the simpler "prog", yet still work when built on a system
47077         that requires specifying the added suffix.
47078         Do this by constructing a function named "prog" that invokes
47079         "prog.exe" for each .exe file in selected directories.
47080         * tests/init.sh (find_exe_basenames_): New function.
47081         (create_exe_shim_functions_): New function.
47082         (path_prepend_): Use it.
47084         maint.mk: mark syntax-check sc_*.m rules as .PHONY
47085         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
47086         "make -t syntax-check" doesn't create a ton of sc_*.m files.
47088 2010-02-14  Jim Meyering  <meyering@redhat.com>
47090         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
47091         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
47092         (sc_prohibit_hash_pjw_without_use): New rule.
47094         maint.mk: allow the default upload destination dir to be overridden
47095         * top/maint.mk (upload_dest_dir_): Define with a default that
47096         preserves the status quo.
47097         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
47098         Reported by Peter Simons.
47100         maint.mk: prohibit inclusion of "hash.h" without_use
47101         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
47103 2010-02-10  Jim Meyering  <meyering@redhat.com>
47105         maint.mk: prohibit inclusion of "ignore-value.h" without_use
47106         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
47108 2010-02-09  Eric Blake  <ebb9@byu.net>
47109         and Bruno Haible  <bruno@clisp.org>
47111         obstack-printf-posix: ensure declaration
47112         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
47113         extracted from gl_FUNC_OBSTACK_PRINTF.
47114         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
47115         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47116         Likewise.
47117         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
47118         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
47119         0.
47121 2010-02-08  Bruno Haible  <bruno@clisp.org>
47123         gnulib-tool: Fix typo in 2010-02-07 commit.
47124         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
47125         Reported by Eric Blake.
47127 2010-02-07  Bruno Haible  <bruno@clisp.org>
47129         gnulib-tool: Fix up caching patches.
47130         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
47131         option --no-cache. Use associative arrays when supported by the shell.
47132         (sed_comments): New variable.
47133         (modcache): Renamed from do_cache.
47134         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
47135         abbreviate unnecessarily.
47136         (have_associative): New variable.
47137         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
47138         way also for ksh and zsh.
47139         (func_init_sed_convert_to_cache_statements): New function, extracted
47140         from func_cache_lookup_module. Add support for associative arrays.
47141         Don't set the c_MODULE_cached variable here. Ignore all lines before
47142         the first field header. Remove only the final newline, not all trailing
47143         newlines. Support empty fields correctly. Limit the use of 'eval' to
47144         assignments.
47145         (func_get_description, func_get_status, func_get_notice,
47146         func_get_applicability, func_get_filelist, func_get_dependencies,
47147         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
47148         func_get_automake_snippet, func_get_include_directive,
47149         func_get_link_directive, func_get_license, func_get_maintainer):
47150         Update documentation. List the unoptimized code first. Add support for
47151         associative arrays. Limit the use of 'eval' to assignments.
47152         (func_get_applicability): Undo stylistic pessimisations.
47153         (func_get_automake_snippet, func_get_include_directive): Reduce code
47154         duplication.
47155         (func_modules_transitive_closure, func_modules_add_dummy,
47156         func_modules_notice, func_modules_to_filelist, func_add_file,
47157         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
47158         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
47159         func_create_testdir, func_create_megatestdir): Update documentation.
47161 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47163         * gnulib-tool (func_cache_lookup_module): Store the module name
47164         belonging to the cache variable; error out if two different
47165         module names map to the same cache variable name.
47167 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47169         gnulib-tool: Make caching optional.
47170         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
47171         Update matching short versions of --no-changelog.
47172         (func_usage): Update.
47173         (sed_extract_cache_prog): Renamed from ...
47174         (sed_extract_prog): ... this; revert to old extraction script.
47175         (func_get_description, func_get_status)
47176         (func_get_notice, func_get_applicability, func_get_filelist)
47177         (func_get_dependencies, func_get_autoconf_early_snippet)
47178         (func_get_autoconf_snippet, func_get_automake_snippet)
47179         (func_get_include_directive, func_get_link_directive)
47180         (func_get_license, func_get_maintainer): If $do_cache is false,
47181         use old, non-caching extraction scripts.
47182         Suggestion by Bruno Haible.
47184 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47186         gnulib-tool: cache module metainformation.
47187         * gnulib-tool (sed_extract_prog): Match newline before each
47188         header, and rewrite header to a shell variable suffix.
47189         (func_cache_var, func_cache_lookup_module): New functions,
47190         to turn a module name into a cache variable prefix, and to
47191         look up and cache module metainformation.
47192         (func_get_description, func_get_status)
47193         (func_get_notice, func_get_applicability, func_get_filelist)
47194         (func_get_dependencies, func_get_autoconf_early_snippet)
47195         (func_get_autoconf_snippet, func_get_automake_snippet)
47196         (func_get_include_directive, func_get_link_directive)
47197         (func_get_license, func_get_maintainer): Use
47198         func_cache_lookup_module.
47200 2010-02-07  Bruno Haible  <bruno@clisp.org>
47202         fnctl: Fix missing dependency.
47203         * modules/fcntl (Depends-on): Add getdtablesize.
47204         Reported by John W. Eaton <jwe@gnu.org>.
47206 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47208         Argp: fix recognition of short alias options.
47210         * lib/argp-parse.c (convert_options): Fix improper use of
47211         `|' between character values.
47212         * tests/test-argp.c (group1_option): New alias option
47213         --read (-r).
47214         (group1_parser): Special handling for 'r'.
47215         (test15): New test case.
47216         (test_fun): Add test15.
47217         * tests/test-argp-2.sh: Update expected --help and --usage
47218         outputs.
47220 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47222         * tests/test-argp.c: Fix indentation.
47224 2010-02-04  Eric Blake  <ebb9@byu.net>
47226         gettimeofday: expose type of second argument
47227         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
47228         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
47229         * tests/test-gettimeofday.c: Use it to silence warning.
47230         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
47231         the issue.
47233 2010-02-03  Jim Meyering  <meyering@redhat.com>
47235         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
47236         * lib/regcomp.c (TYPE_SIGNED): Define.
47237         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
47239         regcomp.c: avoid a new -Wshadow warning
47240         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
47242 2010-02-01  Jim Meyering  <meyering@redhat.com>
47244         removing useless parentheses in cpp #define directives
47245         For motivation, see commit c0221df4, "define STREQ(a,b)
47246         consistently, removing useless parentheses"
47247         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
47248         * lib/mountlist.c (MNT_IGNORE): Likewise.
47249         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
47251 2010-02-01  Eric Blake  <ebb9@byu.net>
47253         sys_time: use link-warning
47254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
47255         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
47256         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
47257         * modules/sys_time (Depends-on): Add warn-on-use.
47258         (Makefile.am): Always build replacement.
47259         (configure.ac): Update substitutions.
47260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
47261         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
47262         bother with SYS_TIME_H.
47263         * modules/gettimeofday (configure.ac): Declare indicator.
47264         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
47265         in use.
47267         closein-tests: silence compiler warning
47268         * tests/test-closein.c (main): Ignore fread result.
47269         * modules/closein-tests (Depends-on): Add ignore-value.
47271         tests: silence warning about system return
47272         * tests/test-areadlink-with-size.c (main): Ignore system result.
47273         * tests/test-areadlink.c (main): Likewise.
47274         * tests/test-areadlinkat-with-size.c (main): Likewise.
47275         * tests/test-areadlinkat.c (main): Likewise.
47276         * tests/test-canonicalize-lgpl.c (main): Likewise.
47277         * tests/test-canonicalize.c (main): Likewise.
47278         * tests/test-chown.c (main): Likewise.
47279         * tests/test-fchownat.c (main): Likewise.
47280         * tests/test-fdutimensat.c (main): Likewise.
47281         * tests/test-fstatat.c (main): Likewise.
47282         * tests/test-futimens.c (main): Likewise.
47283         * tests/test-lchown.c (main): Likewise.
47284         * tests/test-link.c (main): Likewise.
47285         * tests/test-linkat.c (main): Likewise.
47286         * tests/test-lstat.c (main): Likewise.
47287         * tests/test-mkdir.c (main): Likewise.
47288         * tests/test-mkdirat.c (main): Likewise.
47289         * tests/test-mkfifo.c (main): Likewise.
47290         * tests/test-mkfifoat.c (main): Likewise.
47291         * tests/test-mknod.c (main): Likewise.
47292         * tests/test-readlink.c (main): Likewise.
47293         * tests/test-remove.c (main): Likewise.
47294         * tests/test-rename.c (main): Likewise.
47295         * tests/test-renameat.c (main): Likewise.
47296         * tests/test-rmdir.c (main): Likewise.
47297         * tests/test-symlink.c (main): Likewise.
47298         * tests/test-symlinkat.c (main): Likewise.
47299         * tests/test-unlink.c (main): Likewise.
47300         * tests/test-unlinkat.c (main): Likewise.
47301         * tests/test-utimens.c (main): Likewise.
47302         * tests/test-utimensat.c (main): Likewise.
47303         * modules/areadlink-tests (Depends-on): Add ignore-value.
47304         * modules/areadlink-with-size-tests (Depends-on): Likewise.
47305         * modules/areadlinkat-tests (Depends-on): Likewise.
47306         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
47307         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
47308         * modules/canonicalize-tests (Depends-on): Likewise.
47309         * modules/chown-tests (Depends-on): Likewise.
47310         * modules/fdutimensat-tests (Depends-on): Likewise.
47311         * modules/futimens-tests (Depends-on): Likewise.
47312         * modules/lchown-tests (Depends-on): Likewise.
47313         * modules/link-tests (Depends-on): Likewise.
47314         * modules/linkat-tests (Depends-on): Likewise.
47315         * modules/lstat-tests (Depends-on): Likewise.
47316         * modules/mkdir-tests (Depends-on): Likewise.
47317         * modules/mkfifo-tests (Depends-on): Likewise.
47318         * modules/mkfifoat-tests (Depends-on): Likewise.
47319         * modules/mknod-tests (Depends-on): Likewise.
47320         * modules/openat-tests (Depends-on): Likewise.
47321         * modules/readlink-tests (Depends-on): Likewise.
47322         * modules/remove-tests (Depends-on): Likewise.
47323         * modules/rename-tests (Depends-on): Likewise.
47324         * modules/renameat-tests (Depends-on): Likewise.
47325         * modules/rmdir-tests (Depends-on): Likewise.
47326         * modules/symlink-tests (Depends-on): Likewise.
47327         * modules/symlinkat-tests (Depends-on): Likewise.
47328         * modules/unlink-tests (Depends-on): Likewise.
47329         * modules/utimens-tests (Depends-on): Likewise.
47330         * modules/utimensat-tests (Depends-on): Likewise.
47332 2010-01-31  Bruno Haible  <bruno@clisp.org>
47334         Perform the same test for many <math.h> functions.
47335         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
47336         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
47337         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
47338         of gl_MATHFUNC.
47339         * modules/acos (configure.ac): Likewise.
47340         * modules/asin (configure.ac): Likewise.
47341         * modules/atan (configure.ac): Likewise.
47342         * modules/atan2 (configure.ac): Likewise.
47343         * modules/cbrt (configure.ac): Likewise.
47344         * modules/copysign (configure.ac): Likewise.
47345         * modules/cos (configure.ac): Likewise.
47346         * modules/cosh (configure.ac): Likewise.
47347         * modules/erf (configure.ac): Likewise.
47348         * modules/erfc (configure.ac): Likewise.
47349         * modules/exp (configure.ac): Likewise.
47350         * modules/fmod (configure.ac): Likewise.
47351         * modules/hypot (configure.ac): Likewise.
47352         * modules/j0 (configure.ac): Likewise.
47353         * modules/j1 (configure.ac): Likewise.
47354         * modules/jn (configure.ac): Likewise.
47355         * modules/lgamma (configure.ac): Likewise.
47356         * modules/log (configure.ac): Likewise.
47357         * modules/log10 (configure.ac): Likewise.
47358         * modules/log1p (configure.ac): Likewise.
47359         * modules/pow (configure.ac): Likewise.
47360         * modules/remainder (configure.ac): Likewise.
47361         * modules/sin (configure.ac): Likewise.
47362         * modules/sinh (configure.ac): Likewise.
47363         * modules/tan (configure.ac): Likewise.
47364         * modules/tanh (configure.ac): Likewise.
47365         * modules/y0 (configure.ac): Likewise.
47366         * modules/y1 (configure.ac): Likewise.
47367         * modules/yn (configure.ac): Likewise.
47368         Suggested by Paolo Bonzini.
47370 2010-01-31  Bruno Haible  <bruno@clisp.org>
47372         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
47374 2010-01-31  Bruno Haible  <bruno@clisp.org>
47376         Work around getdelim() bug on FreeBSD 8.0.
47377         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
47378         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
47379         not work.
47380         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
47381         is 1.
47382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
47383         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
47384         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
47385         a non-zero size.
47386         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
47388 2010-01-31  Bruno Haible  <bruno@clisp.org>
47390         Work around getline() bug on FreeBSD 8.0.
47391         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
47392         and a non-zero size.
47393         * tests/test-getline.c (main): Likewise.
47394         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
47395         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
47397 2010-01-28  Eric Blake  <ebb9@byu.net>
47399         regex: fix build failure
47400         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
47401         platforms.
47403 2010-01-28  Jim Meyering  <meyering@redhat.com>
47405         regex: do not ignore memory allocation failure
47406         * lib/regex_internal.c (create_cd_newstate): Detect
47407         re_node_set_init_copy failure.   Extracted from glibc commit
47408         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
47410         regex: sync more white-space changes from libc
47411         * lib/regex_internal.c: White-space only changes.
47412         * lib/regexec.c: Likewise.
47414         regex: add many uses of __attribute_warn_unused_result__
47415         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
47416         * lib/regexec.c: Likewise.
47417         Extracted from a messy glibc commit.
47419         regcomp.c: spelling and merge-artifact from glibc
47420         * lib/regcomp.c: Merge remainder of glibc's
47421         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
47423         regcomp.c: sync white-space changes from glibc
47424         * lib/regcomp.c: Merge to accommodate white space
47425         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
47427         regcomp.c: do not ignore internal return values
47428         * lib/regcomp.c: Do not ignore internal return values.
47429         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
47430         but without its white-space changes and spelling fixes.
47432         regex_internal.h: define __attribute_warn_unused_result__
47433         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
47435         maint: add a syntax-check rule to check for vulnerable Makefile.in
47436         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
47438 2010-01-27  Jim Meyering  <meyering@redhat.com>
47440         ncftpput-ftp: clean up spaces
47441         * build-aux/ncftpput-ftp: Make Copyright line consistent.
47442         Remove trailing blanks.
47444 2010-01-27  Simon Josefsson  <simon@josefsson.org>
47446         * build-aux/git-version-gen: Fix copyright statement.
47447         * build-aux/gnupload: Likewise.
47448         * tests/test-arcfour.c: Likewise.
47449         * tests/test-arctwo.c: Likewise.
47450         * tests/test-count-one-bits.c: Likewise.
47451         * tests/test-crc.c: Likewise.
47452         * tests/test-des.c: Likewise.
47453         * tests/test-gc-arcfour.c: Likewise.
47454         * tests/test-gc-arctwo.c: Likewise.
47455         * tests/test-gc-des.c: Likewise.
47456         * tests/test-gc-hmac-md5.c: Likewise.
47457         * tests/test-gc-hmac-sha1.c: Likewise.
47458         * tests/test-gc-md2.c: Likewise.
47459         * tests/test-gc-md4.c: Likewise.
47460         * tests/test-gc-md5.c: Likewise.
47461         * tests/test-gc-pbkdf2-sha1.c: Likewise.
47462         * tests/test-gc-rijndael.c: Likewise.
47463         * tests/test-gc-sha1.c: Likewise.
47464         * tests/test-gc.c: Likewise.
47465         * tests/test-gethostname.c: Likewise.
47466         * tests/test-gettimeofday.c: Likewise.
47467         * tests/test-hash.c: Likewise.
47468         * tests/test-hmac-md5.c: Likewise.
47469         * tests/test-hmac-sha1.c: Likewise.
47470         * tests/test-md2.c: Likewise.
47471         * tests/test-md4.c: Likewise.
47472         * tests/test-md5.c: Likewise.
47473         * tests/test-memchr.c: Likewise.
47474         * tests/test-memchr2.c: Likewise.
47475         * tests/test-memcmp.c: Likewise.
47476         * tests/test-memmem.c: Likewise.
47477         * tests/test-memrchr.c: Likewise.
47478         * tests/test-rawmemchr.c: Likewise.
47479         * tests/test-read-file.c: Likewise.
47480         * tests/test-rijndael.c: Likewise.
47481         * tests/test-sockets.c: Likewise.
47482         * tests/test-strchrnul.c: Likewise.
47483         * tests/test-strstr.c: Likewise.
47484         * tests/test-strtod.c: Likewise.
47485         * build-aux/ncftpput-ftp: Likewise.
47487 2010-01-26  Eric Blake  <ebb9@byu.net>
47489         ignore-value: update recommended header name
47490         * modules/ignore-value (Include): Only use <> for headers that
47491         exist in glibc.
47493 2010-01-26  Jim Meyering  <meyering@redhat.com>
47495         test-userspec.c: avoid compiler warnings
47496         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
47497         and "initialization discards qualifiers..." warnings.
47498         Put the first "uid" in its own scope, and make char* members "const".
47500 2010-01-25  Bruno Haible  <bruno@clisp.org>
47502         gnulib-tool: Make warning diagnostics consistent.
47503         * gnulib-tool (func_warning): New function.
47504         Use it everywhere where gnulib-tool produces output to stderr and it is
47505         not a fatal error.
47507 2010-01-25  Bruno Haible  <bruno@clisp.org>
47509         Fix test dependencies.
47510         * modules/xstrtol-tests (Depends-on): Add inttypes.
47511         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
47513 2010-01-25 Pádraig Brady <P@draigBrady.com>
47515         syntax-check: detect incorrect boolean macro values in config.h
47516         * modules/maintainer-makefile (configure.ac): Parameterize the location
47517         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
47518         The logic is from Eric Blake and the location indicated by Jim Meyering.
47519         Note the more natural CONFIG_HEADER name is prohibited by automake
47520         for backwards compatibility reasons.
47521         * top/maint.mk (sc_Wundef_boolean): New rule.
47523 2010-01-25  Jim Meyering  <meyering@redhat.com>
47525         bootstrap: detect MacOS 10.6's shasum, too
47526         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
47527         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
47529 2010-01-23  Jim Meyering  <meyering@redhat.com>
47531         xstrtoll: new module
47532         * modules/xstrtoll: New file.
47533         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
47534         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
47535         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
47536         ./configure fails if you use this module and lack "long long".
47537         * modules/xstrtoll-tests: New module.
47538         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
47539         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
47540         new init.sh-based test framework.
47542 2010-01-24  Bruno Haible  <bruno@clisp.org>
47544         Tests for module 'yn'.
47545         * modules/yn-tests: New file.
47546         * tests/test-yn.c: New file.
47548         Tests for module 'y1'.
47549         * modules/y1-tests: New file.
47550         * tests/test-y1.c: New file.
47552         Tests for module 'y0'.
47553         * modules/y0-tests: New file.
47554         * tests/test-y0.c: New file.
47556         Tests for module 'tanh'.
47557         * modules/tanh-tests: New file.
47558         * tests/test-tanh.c: New file.
47560         Tests for module 'tan'.
47561         * modules/tan-tests: New file.
47562         * tests/test-tan.c: New file.
47564         Tests for module 'sqrt'.
47565         * modules/sqrt-tests: New file.
47566         * tests/test-sqrt.c: New file.
47568         Tests for module 'sinh'.
47569         * modules/sinh-tests: New file.
47570         * tests/test-sinh.c: New file.
47572         Tests for module 'sin'.
47573         * modules/sin-tests: New file.
47574         * tests/test-sin.c: New file.
47576         Tests for module 'rint'.
47577         * modules/rint-tests: New file.
47578         * tests/test-rint.c: New file.
47580         Tests for module 'remainder'.
47581         * modules/remainder-tests: New file.
47582         * tests/test-remainder.c: New file.
47584         Tests for module 'pow'.
47585         * modules/pow-tests: New file.
47586         * tests/test-pow.c: New file.
47588         Tests for module 'nextafter'.
47589         * modules/nextafter-tests: New file.
47590         * tests/test-nextafter.c: New file.
47592         Tests for module 'modf'.
47593         * modules/modf-tests: New file.
47594         * tests/test-modf.c: New file.
47596         Tests for module 'logb'.
47597         * modules/logb-tests: New file.
47598         * tests/test-logb.c: New file.
47600         Tests for module 'log1p'.
47601         * modules/log1p-tests: New file.
47602         * tests/test-log1p.c: New file.
47604         Tests for module 'log10'.
47605         * modules/log10-tests: New file.
47606         * tests/test-log10.c: New file.
47608         Tests for module 'log'.
47609         * modules/log-tests: New file.
47610         * tests/test-log.c: New file.
47612         Tests for module 'lgamma'.
47613         * modules/lgamma-tests: New file.
47614         * tests/test-lgamma.c: New file.
47616         Tests for module 'ldexp'.
47617         * modules/ldexp-tests: New file.
47618         * tests/test-ldexp.c: New file.
47620         Tests for module 'jn'.
47621         * modules/jn-tests: New file.
47622         * tests/test-jn.c: New file.
47624         Tests for module 'j1'.
47625         * modules/j1-tests: New file.
47626         * tests/test-j1.c: New file.
47628         Tests for module 'j0'.
47629         * modules/j0-tests: New file.
47630         * tests/test-j0.c: New file.
47632         Tests for module 'hypot'.
47633         * modules/hypot-tests: New file.
47634         * tests/test-hypot.c: New file.
47636         Tests for module 'fmod'.
47637         * modules/fmod-tests: New file.
47638         * tests/test-fmod.c: New file.
47640         Tests for module 'fabs'.
47641         * modules/fabs-tests: New file.
47642         * tests/test-fabs.c: New file.
47644         Tests for module 'exp'.
47645         * modules/exp-tests: New file.
47646         * tests/test-exp.c: New file.
47648         Tests for module 'erfc'.
47649         * modules/erfc-tests: New file.
47650         * tests/test-erfc.c: New file.
47652         Tests for module 'erf'.
47653         * modules/erf-tests: New file.
47654         * tests/test-erf.c: New file.
47656         Tests for module 'cosh'.
47657         * modules/cosh-tests: New file.
47658         * tests/test-cosh.c: New file.
47660         Tests for module 'cos'.
47661         * modules/cos-tests: New file.
47662         * tests/test-cos.c: New file.
47664         Tests for module 'copysign'.
47665         * modules/copysign-tests: New file.
47666         * tests/test-copysign.c: New file.
47668         Tests for module 'cbrt'.
47669         * modules/cbrt-tests: New file.
47670         * tests/test-cbrt.c: New file.
47672         Tests for module 'atan2'.
47673         * modules/atan2-tests: New file.
47674         * tests/test-atan2.c: New file.
47676         Tests for module 'atan'.
47677         * modules/atan-tests: New file.
47678         * tests/test-atan.c: New file.
47680         Tests for module 'asin'.
47681         * modules/asin-tests: New file.
47682         * tests/test-asin.c: New file.
47684         Tests for module 'acos'.
47685         * modules/acos-tests: New file.
47686         * tests/test-acos.c: New file.
47688 2010-01-24  Bruno Haible  <bruno@clisp.org>
47690         Fix tests for common <math.h> functions.
47691         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
47692         code snippet that references the function pointer, rather than merely
47693         calling the function. Substitute the FUNC_LIBM variable.
47694         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
47695         * modules/acos (configure.ac): Likewise.
47696         * modules/asin (configure.ac): Likewise.
47697         * modules/atan (configure.ac): Likewise.
47698         * modules/atan2 (configure.ac): Likewise.
47699         * modules/cbrt (configure.ac): Likewise.
47700         * modules/copysign (configure.ac): Likewise.
47701         * modules/cos (configure.ac): Likewise.
47702         * modules/cosh (configure.ac): Likewise.
47703         * modules/erf (configure.ac): Likewise.
47704         * modules/erfc (configure.ac): Likewise.
47705         * modules/exp (configure.ac): Likewise.
47706         * modules/fabs (configure.ac): Likewise.
47707         * modules/fmod (configure.ac): Likewise.
47708         * modules/hypot (configure.ac): Likewise.
47709         * modules/j0 (configure.ac): Likewise.
47710         * modules/j1 (configure.ac): Likewise.
47711         * modules/jn (configure.ac): Likewise.
47712         * modules/ldexp (configure.ac): Likewise.
47713         * modules/lgamma (configure.ac): Likewise.
47714         * modules/log (configure.ac): Likewise.
47715         * modules/log10 (configure.ac): Likewise.
47716         * modules/log1p (configure.ac): Likewise.
47717         * modules/logb (configure.ac): Likewise.
47718         * modules/modf (configure.ac): Likewise.
47719         * modules/nextafter (configure.ac): Likewise.
47720         * modules/pow (configure.ac): Likewise.
47721         * modules/remainder (configure.ac): Likewise.
47722         * modules/rint (configure.ac): Likewise.
47723         * modules/sin (configure.ac): Likewise.
47724         * modules/sinh (configure.ac): Likewise.
47725         * modules/tan (configure.ac): Likewise.
47726         * modules/tanh (configure.ac): Likewise.
47727         * modules/y0 (configure.ac): Likewise.
47728         * modules/y1 (configure.ac): Likewise.
47729         * modules/yn (configure.ac): Likewise.
47731 2010-01-24  Bruno Haible  <bruno@clisp.org>
47733         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
47734         * tests/test-acosl.c (x): New variable.
47735         (main): Store argument in x and fetch it from x.
47736         * tests/test-asinl.c (x): New variable.
47737         (main): Store argument in x and fetch it from x.
47738         * tests/test-atanl.c (x): New variable.
47739         (main): Store argument in x and fetch it from x.
47740         * tests/test-cosl.c (x): New variable.
47741         (main): Store argument in x and fetch it from x.
47742         * tests/test-expl.c (x): New variable.
47743         (main): Store argument in x and fetch it from x.
47744         * tests/test-logl.c (x): New variable.
47745         (main): Store argument in x and fetch it from x.
47746         * tests/test-sinl.c (x): New variable.
47747         (main): Store argument in x and fetch it from x.
47748         * tests/test-sqrtl.c (x): New variable.
47749         (main): Store argument in x and fetch it from x.
47750         * tests/test-tanl.c (x): New variable.
47751         (main): Store argument in x and fetch it from x.
47753 2010-01-24  Bruno Haible  <bruno@clisp.org>
47755         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
47756         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
47757         assignments to the initial TESTS_ENVIRONMENT.
47758         * doc/gnulib.texi (Unit test modules): Document it.
47759         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
47760         TESTS_ENVIRONMENT.
47761         * modules/btowc-tests (Makefile.am): Likewise.
47762         * modules/c-stack-tests (Makefile.am): Likewise.
47763         * modules/c-strcase-tests (Makefile.am): Likewise.
47764         * modules/copy-file-tests (Makefile.am): Likewise.
47765         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
47766         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
47767         * modules/mbrtowc-tests (Makefile.am): Likewise.
47768         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47769         * modules/mbscasestr-tests (Makefile.am): Likewise.
47770         * modules/mbschr-tests (Makefile.am): Likewise.
47771         * modules/mbscspn-tests (Makefile.am): Likewise.
47772         * modules/mbsinit-tests (Makefile.am): Likewise.
47773         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47774         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
47775         * modules/mbspbrk-tests (Makefile.am): Likewise.
47776         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47777         * modules/mbsrchr-tests (Makefile.am): Likewise.
47778         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
47779         * modules/mbsspn-tests (Makefile.am): Likewise.
47780         * modules/mbsstr-tests (Makefile.am): Likewise.
47781         * modules/nl_langinfo-tests (Makefile.am): Likewise.
47782         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
47783         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47784         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47785         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47786         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47787         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
47788         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47789         * modules/wcrtomb-tests (Makefile.am): Likewise.
47790         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
47791         * modules/wcsrtombs-tests (Makefile.am): Likewise.
47792         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
47793         assignments from TESTS_ENVIRONMENT.
47794         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
47795         augmentation.
47796         * modules/argp-version-etc-tests (Makefile.am): Likewise.
47797         * modules/atexit-tests (Makefile.am): Likewise.
47798         * modules/binary-io-tests (Makefile.am): Likewise.
47799         * modules/closein-tests (Makefile.am): Likewise.
47800         * modules/dprintf-posix-tests (Makefile.am): Likewise.
47801         * modules/exclude-tests (Makefile.am): Likewise.
47802         * modules/fflush-tests (Makefile.am): Likewise.
47803         * modules/fpending-tests (Makefile.am): Likewise.
47804         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47805         * modules/freadahead-tests (Makefile.am): Likewise.
47806         * modules/freadptr-tests (Makefile.am): Likewise.
47807         * modules/freadseek-tests (Makefile.am): Likewise.
47808         * modules/fseek-tests (Makefile.am): Likewise.
47809         * modules/fseeko-tests (Makefile.am): Likewise.
47810         * modules/ftell-tests (Makefile.am): Likewise.
47811         * modules/ftello-tests (Makefile.am): Likewise.
47812         * modules/idpriv-drop-tests (Makefile.am): Likewise.
47813         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
47814         * modules/lseek-tests (Makefile.am): Likewise.
47815         * modules/parse-duration-tests (Makefile.am): Likewise.
47816         * modules/perror-tests (Makefile.am): Likewise.
47817         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
47818         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
47819         * modules/pipe-tests (Makefile.am): Likewise.
47820         * modules/pread-tests (Makefile.am): Likewise.
47821         * modules/printf-posix-tests (Makefile.am): Likewise.
47822         * modules/select-tests (Makefile.am): Likewise.
47823         * modules/sigpipe-tests (Makefile.am): Likewise.
47824         * modules/tsearch-tests (Makefile.am): Likewise.
47825         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
47826         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
47827         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47828         * modules/uniwidth/width-tests (Makefile.am): Likewise.
47829         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
47830         * modules/version-etc-tests (Makefile.am): Likewise.
47831         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47832         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47833         * modules/xalloc-die-tests (Makefile.am): Likewise.
47834         * modules/xprintf-posix-tests (Makefile.am): Likewise.
47835         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47836         * modules/xstrtol-tests (Makefile.am): Likewise.
47837         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47838         * modules/yesno-tests (Makefile.am): Likewise.
47839         Suggested by Jim Meyering.
47841 2010-01-24  Bruno Haible  <bruno@clisp.org>
47843         More documentation.
47844         * doc/gnulib.texi (Writing modules): New chapter.
47845         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
47846         the new chapter.
47848 2010-01-24  Jim Meyering  <meyering@redhat.com>
47850         maint.mk: do not prepend "./" after filtering
47851         * top/maint.mk (_prepend_srcdir_prefix): New variable
47852         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
47853         "./" when $(srcdir) is ".".
47855         define STREQ(a,b) consistently, removing useless parentheses
47856         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
47857         since the only risk is that "a" or "b" contains an unparenthesized
47858         comma, but if either did that, STREQ would have 3 or more arguments.
47859         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
47860         * lib/fts.c (STREQ): Remove unnecessary parentheses.
47861         * lib/hash-triple.c (STREQ): Likewise.
47862         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
47863         * lib/getugroups.c (STREQ): Likewise.
47865 2010-01-23  Jim Meyering  <meyering@redhat.com>
47867         maint.mk: fix syntax-check in a non-srcdir build directory
47868         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
47869         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
47871 2010-01-22  Jim Meyering  <meyering@redhat.com>
47873         userspec: add unit tests
47874         * tests/test-userspec.c: New file.
47875         * modules/userspec-tests: Likewise.
47877 2010-01-21  Jim Meyering  <meyering@redhat.com>
47879         maint.mk: handle source file names containing "." robustly
47880         * top/maint.mk (_dot_escaped_srcdir): Define.
47881         (VC_LIST): Use it in LHS of sed substitution.
47883 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
47885         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
47886         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
47887         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
47888         from a non-srcdir build.
47890 2010-01-20  Eric Blake  <ebb9@byu.net>
47892         warn-on-use: use instead of link-warning
47893         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
47894         * modules/unistd (Depends-on, Makefile.am): Likewise.
47895         * modules/arpa_inet (Depends-on): Replace link-warning with
47896         warn-on-use.
47897         (Makefile.am): Update rules accordingly.
47898         * modules/ctype (Depends-on, Makefile.am): Likewise.
47899         * modules/dirent (Depends-on, Makefile.am): Likewise.
47900         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
47901         * modules/inttypes (Depends-on, Makefile.am): Likewise.
47902         * modules/langinfo (Depends-on, Makefile.am): Likewise.
47903         * modules/locale (Depends-on, Makefile.am): Likewise.
47904         * modules/math (Depends-on, Makefile.am): Likewise.
47905         * modules/search (Depends-on, Makefile.am): Likewise.
47906         * modules/signal (Depends-on, Makefile.am): Likewise.
47907         * modules/spawn (Depends-on, Makefile.am): Likewise.
47908         * modules/stdlib (Depends-on, Makefile.am): Likewise.
47909         * modules/string (Depends-on, Makefile.am): Likewise.
47910         * modules/strings (Depends-on, Makefile.am): Likewise.
47911         * modules/sys_file (Depends-on, Makefile.am): Likewise.
47912         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
47913         * modules/sys_select (Depends-on, Makefile.am): Likewise.
47914         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
47915         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
47916         * modules/sys_times (Depends-on, Makefile.am): Likewise.
47917         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
47918         * modules/wchar (Depends-on, Makefile.am): Likewise.
47919         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
47920         should be poisoned.
47921         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
47922         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
47923         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
47924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47925         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
47926         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47927         * m4/math_h.m4 (gl_MATH_H): Likewise.
47928         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47929         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47930         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47931         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47932         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47933         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47934         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
47935         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
47936         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47937         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47938         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47940         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47941         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
47942         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47943         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47944         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
47945         GL_LINK_WARNING.
47946         * lib/ctype.in.h: Likewise.
47947         * lib/dirent.in.h: Likewise.
47948         * lib/fcntl.in.h: Likewise.
47949         * lib/inttypes.in.h: Likewise.
47950         * lib/langinfo.in.h: Likewise.
47951         * lib/locale.in.h: Likewise.
47952         * lib/math.in.h: Likewise.
47953         * lib/search.in.h: Likewise.
47954         * lib/signal.in.h: Likewise.
47955         * lib/spawn.in.h: Likewise.
47956         * lib/stdio.in.h: Likewise.
47957         * lib/stdlib.in.h: Likewise.
47958         * lib/string.in.h: Likewise.
47959         * lib/strings.in.h: Likewise.
47960         * lib/sys_file.in.h: Likewise.
47961         * lib/sys_ioctl.in.h: Likewise.
47962         * lib/sys_select.in.h: Likewise.
47963         * lib/sys_socket.in.h: Likewise.
47964         * lib/sys_stat.in.h: Likewise.
47965         * lib/sys_times.in.h: Likewise.
47966         * lib/sys_utsname.in.h: Likewise.
47967         * lib/unistd.in.h: Likewise.
47968         * lib/wchar.in.h: Likewise.
47970 2010-01-20  Bruno Haible  <bruno@clisp.org>
47972         Avoid duplicate -lm.
47973         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
47974         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
47975         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
47976         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
47977         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
47978         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
47979         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
47980         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
47981         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
47982         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
47983         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
47984         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47985         Reported by Paolo Bonzini.
47987 2010-01-19  Bruno Haible  <bruno@clisp.org>
47989         langinfo, nl_langinfo: Relicense under LGPLv2+.
47990         * modules/langinfo (License): Change to LGPLv2+.
47991         * modules/nl_langinfo (License): Likewise.
47992         Patch by David Lutterkort <lutter@redhat.com>.
47994 2010-01-19  Bruno Haible  <bruno@clisp.org>
47996         Avoid compilation error with cc on OSF/1 5.1.
47997         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
47998         statement, not before.
47999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48001 2010-01-18  Bruno Haible  <bruno@clisp.org>
48003         Avoid a link error due to the __printf__ symbol.
48004         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
48005         and 2.6.x.
48006         (__format__, __printf__): Remove definitions.
48007         * lib/argp-fmtstream.h: Likewise.
48008         * lib/argp.h: Likewise.
48009         * lib/error.h: Likewise.
48010         * lib/vasnprintf.h: Likewise.
48011         * lib/xprintf.h: Likewise.
48012         * lib/xvasprintf.h: Likewise.
48013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48015 2010-01-18  Bruno Haible  <bruno@clisp.org>
48017         Tests for module 'tanl'.
48018         * modules/tanl-tests: New file.
48019         * tests/test-tanl.c: New file.
48021         Tests for module 'sqrtl'.
48022         * modules/sqrtl-tests: New file.
48023         * tests/test-sqrtl.c: New file.
48025         Tests for module 'sinl'.
48026         * modules/sinl-tests: New file.
48027         * tests/test-sinl.c: New file.
48029         Tests for module 'logl'.
48030         * modules/logl-tests: New file.
48031         * tests/test-logl.c: New file.
48033         Tests for module 'expl'.
48034         * modules/expl-tests: New file.
48035         * tests/test-expl.c: New file.
48037         Tests for module 'cosl'.
48038         * modules/cosl-tests: New file.
48039         * tests/test-cosl.c: New file.
48041         Tests for module 'atanl'.
48042         * modules/atanl-tests: New file.
48043         * tests/test-atanl.c: New file.
48045         Tests for module 'asinl'.
48046         * modules/asinl-tests: New file.
48047         * tests/test-asinl.c: New file.
48049         Tests for module 'acosl'.
48050         * modules/acosl-tests: New file.
48051         * tests/test-acosl.c: New file.
48053         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
48054         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
48055         tanl): Use the standard gnulib idiom.
48056         * lib/cosl.c: Don't include trigl.c and sincosl.c.
48057         * lib/sinl.c: Likewise.
48058         * lib/tanl.c: Don't include trigl.c.
48059         (kernel_tanl): Make static.
48060         * lib/sincosl.c: Include trigl.h first.
48061         * lib/trigl.c: Likewise.
48062         * m4/acosl.m4: New file.
48063         * m4/asinl.m4: New file.
48064         * m4/atanl.m4: New file.
48065         * m4/cosl.m4: New file.
48066         * m4/expl.m4: New file.
48067         * m4/logl.m4: New file.
48068         * m4/sinl.m4: New file.
48069         * m4/sqrtl.m4: New file.
48070         * m4/tanl.m4: New file.
48071         * m4/mathl.m4: Remove file.
48072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
48073         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
48074         Don't initialize GNULIB_MATHL.
48075         * modules/acosl: New file.
48076         * modules/asinl: New file.
48077         * modules/atanl: New file.
48078         * modules/cosl: New file.
48079         * modules/expl: New file.
48080         * modules/logl: New file.
48081         * modules/sinl: New file.
48082         * modules/sqrtl: New file.
48083         * modules/tanl: New file.
48084         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
48085         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
48086         substitute GNULIB_MATHL.
48087         * modules/mathl: Rewritten.
48088         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
48089         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
48090         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
48091         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
48092         * doc/posix-functions/expl.texi: Mention the 'expl' module.
48093         * doc/posix-functions/logl.texi: Mention the 'logl' module.
48094         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
48095         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
48096         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
48098 2010-01-18  Bruno Haible  <bruno@clisp.org>
48100         sqrt: Make gl_FUNC_SQRT requirable.
48101         * m4/sqrt.m4: New file.
48102         * modules/sqrt (Files): Add it.
48103         (configure.ac): Invoke gl_FUNC_SQRT.
48105 2010-01-18  Bruno Haible  <bruno@clisp.org>
48107         New modules for common <math.h> functions.
48108         * m4/mathfunc.m4: New file.
48109         * modules/acos: New file.
48110         * modules/asin: New file.
48111         * modules/atan: New file.
48112         * modules/atan2: New file.
48113         * modules/cbrt: New file.
48114         * modules/copysign: New file.
48115         * modules/cos: New file.
48116         * modules/cosh: New file.
48117         * modules/erf: New file.
48118         * modules/erfc: New file.
48119         * modules/exp: New file.
48120         * modules/fabs: New file.
48121         * modules/fmod: New file.
48122         * modules/hypot: New file.
48123         * modules/j0: New file.
48124         * modules/j1: New file.
48125         * modules/jn: New file.
48126         * modules/ldexp: New file.
48127         * modules/lgamma: New file.
48128         * modules/log: New file.
48129         * modules/log10: New file.
48130         * modules/log1p: New file.
48131         * modules/logb: New file.
48132         * modules/modf: New file.
48133         * modules/nextafter: New file.
48134         * modules/pow: New file.
48135         * modules/remainder: New file.
48136         * modules/rint: New file.
48137         * modules/sin: New file.
48138         * modules/sinh: New file.
48139         * modules/sqrt: New file.
48140         * modules/tan: New file.
48141         * modules/tanh: New file.
48142         * modules/y0: New file.
48143         * modules/y1: New file.
48144         * modules/yn: New file.
48145         * doc/posix-functions/acos.texi: Mention the 'acos' module.
48146         * doc/posix-functions/asin.texi: Mention the 'asin' module.
48147         * doc/posix-functions/atan.texi: Mention the 'atan' module.
48148         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
48149         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
48150         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
48151         * doc/posix-functions/cos.texi: Mention the 'cos' module.
48152         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
48153         * doc/posix-functions/erf.texi: Mention the 'erf' module.
48154         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
48155         * doc/posix-functions/exp.texi: Mention the 'exp' module.
48156         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
48157         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
48158         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
48159         * doc/posix-functions/j0.texi: Mention the 'j0' module.
48160         * doc/posix-functions/j1.texi: Mention the 'j1' module.
48161         * doc/posix-functions/jn.texi: Mention the 'jn' module.
48162         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
48163         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
48164         * doc/posix-functions/log.texi: Mention the 'log' module.
48165         * doc/posix-functions/log10.texi: Mention the 'log10' module.
48166         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
48167         * doc/posix-functions/logb.texi: Mention the 'logb' module.
48168         * doc/posix-functions/modf.texi: Mention the 'modf' module.
48169         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
48170         * doc/posix-functions/pow.texi: Mention the 'pow' module.
48171         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
48172         * doc/posix-functions/rint.texi: Mention the 'rint' module.
48173         * doc/posix-functions/sin.texi: Mention the 'sin' module.
48174         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
48175         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
48176         * doc/posix-functions/tan.texi: Mention the 'tan' module.
48177         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
48178         * doc/posix-functions/y0.texi: Mention the 'y0' module.
48179         * doc/posix-functions/y1.texi: Mention the 'y1' module.
48180         * doc/posix-functions/yn.texi: Mention the 'yn' module.
48182 2010-01-18  Jim Meyering  <meyering@redhat.com>
48184         ignore-value: relax license to LGPLv2+
48185         * modules/ignore-value (License): Relax to LGPLv2+.
48187         getdate: don't leak when TZ contains two or more '"'s
48188         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
48189         double quote in TZ after the first one.
48191         readtokens: do not leak internal token_lengths buffer
48192         * lib/readtokens.c (readtokens): Free the local, lengths,
48193         when the supplied "token_lengths" parameter is NULL.
48195 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48197         Fix a couple of missing LIBTHREAD link failures on AIX.
48198         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
48199         $(LIBTHREAD).
48200         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
48202         Link test-poll against INET_PTON_LIB.
48203         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
48204         for inet_pton on Solaris 10.
48206 2010-01-17  Bruno Haible  <bruno@clisp.org>
48208         unistdio/*-sprintf: Fix typo in module description.
48209         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
48210         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
48211         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
48212         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
48213         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
48214         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
48215         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
48216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48218 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48220         gnulib-tool: fix filelist for AIX, HP-UX ksh.
48221         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
48222         variables in shell case patterns, for AIX and HP-UX ksh.
48224         Split large sed scripts, for HP-UX sed.
48225         * modules/stdio: Split sed scripts around 50 sed commands,
48226         to avoid HP-UX limit of 99 commands, in the near future.
48227         * modules/string: Likewise.
48228         * modules/unistd: Likewise.
48230         gnulib-tool: avoid writing in the current directory.
48231         * gnulib-tool (func_emit_lib_Makefile_am)
48232         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
48233         not in the current directory, so concurrent gnulib-tool
48234         instances do not interfere.
48236 2010-01-16  Jim Meyering  <meyering@redhat.com>
48238         doc: update users.txt
48239         * users.txt: Add grep.
48240         (diffutils, gzip): Update URLs.
48242 2010-01-12  Bruno Haible  <bruno@clisp.org>
48244         posix_spawn: Avoid test failure on Cygwin.
48245         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
48246         characters.
48247         Reported by Simon Josefsson.
48249 2010-01-12  Bruno Haible  <bruno@clisp.org>
48251         * tests/test-cond.c (main): When skipping the test, show the reason.
48253 2010-01-12  Simon Josefsson  <simon@josefsson.org>
48255         * lib/striconv.c (str_cd_iconv): Avoid if before free.
48257 2010-01-12  Simon Josefsson  <simon@josefsson.org>
48259         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
48260         VC_LIST_ALWAYS_EXCLUDE_REGEX.
48262 2010-01-12  Eric Blake  <ebb9@byu.net>
48264         build: guarantee AS_VAR_IF
48265         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
48266         (gl_AS_VAR_IF): Move...
48267         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
48268         Reported by Simon Josefsson.
48270 2010-01-12  Simon Josefsson  <simon@josefsson.org>
48272         * lib/stdio.in.h: Fix typo.
48274 2010-01-12  Simon Josefsson  <simon@josefsson.org>
48276         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
48277         libgpg-error.
48279 2010-01-12  Simon Josefsson  <simon@josefsson.org>
48281         * tests/test-xalloc-die.sh: Use $EXEEXT.
48283 2010-01-12  Simon Josefsson  <simon@josefsson.org>
48284             Bruno Haible  <bruno@clisp.org>
48286         getlogin, getlogin_r: Avoid test failure.
48287         * tests/test-getlogin.c: Include <stdio.h>.
48288         (main): Skip the test when the function fails because stdin is not a
48289         tty.
48290         * tests/test-getlogin_r.c: Include <stdio.h>.
48291         (main): Skip the test when the function fails because stdin is not a
48292         tty.
48294 2010-01-11  Eric Blake  <ebb9@byu.net>
48296         tests: avoid more large file warnings
48297         * tests/test-fflush.c: Avoid warning about ftell use.
48298         * tests/test-fseek.c: Avoid warning about fseek use.
48300 2010-01-10  Bruno Haible  <bruno@clisp.org>
48302         nproc: Work better on Linux when /proc and /sys are not mounted.
48303         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
48304         as lower bound when, on glibc/Linux systems,
48305         sysconf (_SC_NPROCESSORS_CONF) returns 1.
48306         Suggested by Pádraig Brady <P@draigbrady.com>.
48307         Reported by Dmitry V. Levin <ldv@altlinux.org>.
48309         nproc: Refactor.
48310         * lib/nproc.c (num_processors_via_affinity_mask): New function,
48311         extracted from num_processors.
48312         (num_processors): Call it.
48314 2010-01-11  Jim Meyering  <meyering@redhat.com>
48316         utimecmp: avoid new warning from upcoming gcc-4.5.0
48317         * lib/utimecmp.c (BILLION): Define using #define rather than an
48318         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
48320 2010-01-11  Eric Blake  <ebb9@byu.net>
48322         math: add portability warnings for classification macros
48323         * modules/math (Depends-on): Add warn-on-use.
48324         (Makefile.am): Provide new substitutions.
48325         * m4/math_h.m4 (gl_MATH_H): Require inline.
48326         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
48327         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
48328         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
48329         implement warnings.
48331         unistd: warn on use of environ without module
48332         * modules/unistd (Depends-on): Add warn-on-use.
48333         (Makefile.am): Provide new substitutions.
48334         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
48335         * lib/unistd.in.h (environ): Wrap with a warning helper function.
48337         stdio: warn on suspicious uses
48338         * modules/stdio (Depends-on): Add warn-on-use.
48339         (Makefile.am): Provide new substitutions.
48340         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
48341         fseeko.
48342         * lib/stdio.in.h (gets): Always warn on use.
48343         (fseek, ftell): Adjust when warnings are issued, and honor
48344         _GL_NO_LARGE_FILES as a way to silence the warning.
48345         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
48346         any warning about large file offsets.
48347         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
48348         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
48349         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
48350         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
48351         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
48352         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
48353         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
48354         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
48356         warn-on-use: new module
48357         * modules/warn-on-use: New file.
48358         * build-aux/warn-on-use.h: Likewise.
48359         * m4/warn-on-use.m4: Likewise.
48360         * MODULES.html.sh (Support for building): Mention it.
48362 2010-01-10  Bruno Haible  <bruno@clisp.org>
48364         Tests for module 'unistr/u32-strdup'.
48365         * modules/unistr/u32-strdup-tests: New file.
48366         * tests/unistr/test-u32-strdup.c: New file.
48368         Tests for module 'unistr/u16-strdup'.
48369         * modules/unistr/u16-strdup-tests: New file.
48370         * tests/unistr/test-u16-strdup.c: New file.
48372         Tests for module 'unistr/u8-strdup'.
48373         * modules/unistr/u8-strdup-tests: New file.
48374         * tests/unistr/test-u8-strdup.c: New file.
48375         * tests/unistr/test-strdup.h: New file.
48377         Tests for module 'unistr/u32-strncmp'.
48378         * modules/unistr/u32-strncmp-tests: New file.
48379         * tests/unistr/test-u32-strncmp.c: New file.
48381         Tests for module 'unistr/u16-strncmp'.
48382         * modules/unistr/u16-strncmp-tests: New file.
48383         * tests/unistr/test-u16-strncmp.c: New file.
48385         Tests for module 'unistr/u8-strncmp'.
48386         * modules/unistr/u8-strncmp-tests: New file.
48387         * tests/unistr/test-u8-strncmp.c: New file.
48388         * tests/unistr/test-strncmp.h: New file.
48390         Tests for module 'unistr/u32-strcoll'.
48391         * modules/unistr/u32-strcoll-tests: New file.
48392         * tests/unistr/test-u32-strcoll.c: New file.
48394         Tests for module 'unistr/u16-strcoll'.
48395         * modules/unistr/u16-strcoll-tests: New file.
48396         * tests/unistr/test-u16-strcoll.c: New file.
48398         Tests for module 'unistr/u8-strcoll'.
48399         * modules/unistr/u8-strcoll-tests: New file.
48400         * tests/unistr/test-u8-strcoll.c: New file.
48402         Tests for module 'unistr/u32-strcmp'.
48403         * modules/unistr/u32-strcmp-tests: New file.
48404         * tests/unistr/test-u32-strcmp.c: New file.
48405         * tests/unistr/test-u32-strcmp.h: New file.
48407         Tests for module 'unistr/u16-strcmp'.
48408         * modules/unistr/u16-strcmp-tests: New file.
48409         * tests/unistr/test-u16-strcmp.c: New file.
48410         * tests/unistr/test-u16-strcmp.h: New file.
48412         Tests for module 'unistr/u8-strcmp'.
48413         * modules/unistr/u8-strcmp-tests: New file.
48414         * tests/unistr/test-u8-strcmp.c: New file.
48415         * tests/unistr/test-u8-strcmp.h: New file.
48416         * tests/unistr/test-strcmp.h: New file.
48418         Tests for module 'unistr/u32-strncat'.
48419         * modules/unistr/u32-strncat-tests: New file.
48420         * tests/unistr/test-u32-strncat.c: New file.
48422         Tests for module 'unistr/u16-strncat'.
48423         * modules/unistr/u16-strncat-tests: New file.
48424         * tests/unistr/test-u16-strncat.c: New file.
48426         Tests for module 'unistr/u8-strncat'.
48427         * modules/unistr/u8-strncat-tests: New file.
48428         * tests/unistr/test-u8-strncat.c: New file.
48429         * tests/unistr/test-strncat.h: New file.
48431         Tests for module 'unistr/u32-strcat'.
48432         * modules/unistr/u32-strcat-tests: New file.
48433         * tests/unistr/test-u32-strcat.c: New file.
48435         Tests for module 'unistr/u16-strcat'.
48436         * modules/unistr/u16-strcat-tests: New file.
48437         * tests/unistr/test-u16-strcat.c: New file.
48439         Tests for module 'unistr/u8-strcat'.
48440         * modules/unistr/u8-strcat-tests: New file.
48441         * tests/unistr/test-u8-strcat.c: New file.
48442         * tests/unistr/test-strcat.h: New file.
48444         Tests for module 'unistr/u32-stpncpy'.
48445         * modules/unistr/u32-stpncpy-tests: New file.
48446         * tests/unistr/test-u32-stpncpy.c: New file.
48448         Tests for module 'unistr/u16-stpncpy'.
48449         * modules/unistr/u16-stpncpy-tests: New file.
48450         * tests/unistr/test-u16-stpncpy.c: New file.
48452         Tests for module 'unistr/u8-stpncpy'.
48453         * modules/unistr/u8-stpncpy-tests: New file.
48454         * tests/unistr/test-u8-stpncpy.c: New file.
48455         * tests/unistr/test-stpncpy.h: New file.
48457         Tests for module 'unistr/u32-strncpy'.
48458         * modules/unistr/u32-strncpy-tests: New file.
48459         * tests/unistr/test-u32-strncpy.c: New file.
48461         Tests for module 'unistr/u16-strncpy'.
48462         * modules/unistr/u16-strncpy-tests: New file.
48463         * tests/unistr/test-u16-strncpy.c: New file.
48465         Tests for module 'unistr/u8-strncpy'.
48466         * modules/unistr/u8-strncpy-tests: New file.
48467         * tests/unistr/test-u8-strncpy.c: New file.
48468         * tests/unistr/test-strncpy.h: New file.
48470         Tests for module 'unistr/u32-stpcpy'.
48471         * modules/unistr/u32-stpcpy-tests: New file.
48472         * tests/unistr/test-u32-stpcpy.c: New file.
48474         Tests for module 'unistr/u16-stpcpy'.
48475         * modules/unistr/u16-stpcpy-tests: New file.
48476         * tests/unistr/test-u16-stpcpy.c: New file.
48478         Tests for module 'unistr/u8-stpcpy'.
48479         * modules/unistr/u8-stpcpy-tests: New file.
48480         * tests/unistr/test-u8-stpcpy.c: New file.
48481         * tests/unistr/test-stpcpy.h: New file.
48483         Tests for module 'unistr/u32-strcpy'.
48484         * modules/unistr/u32-strcpy-tests: New file.
48485         * tests/unistr/test-u32-strcpy.c: New file.
48487         Tests for module 'unistr/u16-strcpy'.
48488         * modules/unistr/u16-strcpy-tests: New file.
48489         * tests/unistr/test-u16-strcpy.c: New file.
48491         Tests for module 'unistr/u8-strcpy'.
48492         * modules/unistr/u8-strcpy-tests: New file.
48493         * tests/unistr/test-u8-strcpy.c: New file.
48494         * tests/unistr/test-strcpy.h: New file.
48496         Tests for module 'unistr/u32-strnlen'.
48497         * modules/unistr/u32-strnlen-tests: New file.
48498         * tests/unistr/test-u32-strnlen.c: New file.
48500         Tests for module 'unistr/u16-strnlen'.
48501         * modules/unistr/u16-strnlen-tests: New file.
48502         * tests/unistr/test-u16-strnlen.c: New file.
48504         Tests for module 'unistr/u8-strnlen'.
48505         * modules/unistr/u8-strnlen-tests: New file.
48506         * tests/unistr/test-u8-strnlen.c: New file.
48507         * tests/unistr/test-strnlen.h: New file.
48509         Tests for module 'unistr/u32-strlen'.
48510         * modules/unistr/u32-strlen-tests: New file.
48511         * tests/unistr/test-u32-strlen.c: New file.
48513         Tests for module 'unistr/u16-strlen'.
48514         * modules/unistr/u16-strlen-tests: New file.
48515         * tests/unistr/test-u16-strlen.c: New file.
48517         Tests for module 'unistr/u8-strlen'.
48518         * modules/unistr/u8-strlen-tests: New file.
48519         * tests/unistr/test-u8-strlen.c: New file.
48521         Tests for module 'unistr/u32-prev'.
48522         * modules/unistr/u32-prev-tests: New file.
48523         * tests/unistr/test-u32-prev.c: New file.
48525         Tests for module 'unistr/u16-prev'.
48526         * modules/unistr/u16-prev-tests: New file.
48527         * tests/unistr/test-u16-prev.c: New file.
48529         Tests for module 'unistr/u8-prev'.
48530         * modules/unistr/u8-prev-tests: New file.
48531         * tests/unistr/test-u8-prev.c: New file.
48533         Tests for module 'unistr/u32-next'.
48534         * modules/unistr/u32-next-tests: New file.
48535         * tests/unistr/test-u32-next.c: New file.
48537         Tests for module 'unistr/u16-next'.
48538         * modules/unistr/u16-next-tests: New file.
48539         * tests/unistr/test-u16-next.c: New file.
48541         Tests for module 'unistr/u8-next'.
48542         * modules/unistr/u8-next-tests: New file.
48543         * tests/unistr/test-u8-next.c: New file.
48545         Tests for module 'unistr/u32-strmbtouc'.
48546         * modules/unistr/u32-strmbtouc-tests: New file.
48547         * tests/unistr/test-u32-strmbtouc.c: New file.
48549         Tests for module 'unistr/u16-strmbtouc'.
48550         * modules/unistr/u16-strmbtouc-tests: New file.
48551         * tests/unistr/test-u16-strmbtouc.c: New file.
48553         Tests for module 'unistr/u8-strmbtouc'.
48554         * modules/unistr/u8-strmbtouc-tests: New file.
48555         * tests/unistr/test-u8-strmbtouc.c: New file.
48557         Tests for module 'unistr/u32-strmblen'.
48558         * modules/unistr/u32-strmblen-tests: New file.
48559         * tests/unistr/test-u32-strmblen.c: New file.
48561         Tests for module 'unistr/u16-strmblen'.
48562         * modules/unistr/u16-strmblen-tests: New file.
48563         * tests/unistr/test-u16-strmblen.c: New file.
48565         Tests for module 'unistr/u8-strmblen'.
48566         * modules/unistr/u8-strmblen-tests: New file.
48567         * tests/unistr/test-u8-strmblen.c: New file.
48569         Tests for module 'unistr/u32-cpy-alloc'.
48570         * modules/unistr/u32-cpy-alloc-tests: New file.
48571         * tests/unistr/test-u32-cpy-alloc.c: New file.
48573         Tests for module 'unistr/u16-cpy-alloc'.
48574         * modules/unistr/u16-cpy-alloc-tests: New file.
48575         * tests/unistr/test-u16-cpy-alloc.c: New file.
48577         Tests for module 'unistr/u8-cpy-alloc'.
48578         * modules/unistr/u8-cpy-alloc-tests: New file.
48579         * tests/unistr/test-u8-cpy-alloc.c: New file.
48580         * tests/unistr/test-cpy-alloc.h: New file.
48582         Tests for module 'unistr/u32-mbsnlen'.
48583         * modules/unistr/u32-mbsnlen-tests: New file.
48584         * tests/unistr/test-u32-mbsnlen.c: New file.
48586         Tests for module 'unistr/u16-mbsnlen'.
48587         * modules/unistr/u16-mbsnlen-tests: New file.
48588         * tests/unistr/test-u16-mbsnlen.c: New file.
48590         Tests for module 'unistr/u8-mbsnlen'.
48591         * modules/unistr/u8-mbsnlen-tests: New file.
48592         * tests/unistr/test-u8-mbsnlen.c: New file.
48594         Tests for module 'unistr/u32-chr'.
48595         * modules/unistr/u32-chr-tests: New file.
48596         * tests/unistr/test-u32-chr.c: New file.
48598         Tests for module 'unistr/u16-chr'.
48599         * modules/unistr/u16-chr-tests: New file.
48600         * tests/unistr/test-u16-chr.c: New file.
48602         Tests for module 'unistr/u8-chr'.
48603         * modules/unistr/u8-chr-tests: New file.
48604         * tests/unistr/test-u8-chr.c: New file.
48605         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
48607         Tests for module 'unistr/u32-cmp2'.
48608         * modules/unistr/u32-cmp2-tests: New file.
48609         * tests/unistr/test-u32-cmp2.c: New file.
48611         Tests for module 'unistr/u16-cmp2'.
48612         * modules/unistr/u16-cmp2-tests: New file.
48613         * tests/unistr/test-u16-cmp2.c: New file.
48615         Tests for module 'unistr/u8-cmp2'.
48616         * modules/unistr/u8-cmp2-tests: New file.
48617         * tests/unistr/test-u8-cmp2.c: New file.
48618         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
48620         Tests for module 'unistr/u32-cmp'.
48621         * modules/unistr/u32-cmp-tests: New file.
48622         * tests/unistr/test-u32-cmp.c: New file.
48624         Tests for module 'unistr/u16-cmp'.
48625         * modules/unistr/u16-cmp-tests: New file.
48626         * tests/unistr/test-u16-cmp.c: New file.
48628         Tests for module 'unistr/u8-cmp'.
48629         * modules/unistr/u8-cmp-tests: New file.
48630         * tests/unistr/test-u8-cmp.c: New file.
48631         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
48633         Tests for module 'unistr/u32-set'.
48634         * modules/unistr/u32-set-tests: New file.
48635         * tests/unistr/test-u32-set.c: New file.
48637         Tests for module 'unistr/u16-set'.
48638         * modules/unistr/u16-set-tests: New file.
48639         * tests/unistr/test-u16-set.c: New file.
48641         Tests for module 'unistr/u8-set'.
48642         * modules/unistr/u8-set-tests: New file.
48643         * tests/unistr/test-u8-set.c: New file.
48644         * tests/unistr/test-set.h: New file.
48646         Tests for module 'unistr/u32-move'.
48647         * modules/unistr/u32-move-tests: New file.
48648         * tests/unistr/test-u32-move.c: New file.
48650         Tests for module 'unistr/u16-move'.
48651         * modules/unistr/u16-move-tests: New file.
48652         * tests/unistr/test-u16-move.c: New file.
48654         Tests for module 'unistr/u8-move'.
48655         * modules/unistr/u8-move-tests: New file.
48656         * tests/unistr/test-u8-move.c: New file.
48657         * tests/unistr/test-move.h: New file.
48659         Tests for module 'unistr/u32-cpy'.
48660         * modules/unistr/u32-cpy-tests: New file.
48661         * tests/unistr/test-u32-cpy.c: New file.
48663         Tests for module 'unistr/u16-cpy'.
48664         * modules/unistr/u16-cpy-tests: New file.
48665         * tests/unistr/test-u16-cpy.c: New file.
48667         Tests for module 'unistr/u8-cpy'.
48668         * modules/unistr/u8-cpy-tests: New file.
48669         * tests/unistr/test-u8-cpy.c: New file.
48670         * tests/unistr/test-cpy.h: New file.
48672 2010-01-09  Bruno Haible  <bruno@clisp.org>
48674         Tests for module 'unistr/u32-uctomb'.
48675         * modules/unistr/u32-uctomb-tests: New file.
48676         * tests/unistr/test-u32-uctomb.c: New file.
48678         Tests for module 'unistr/u16-uctomb'.
48679         * modules/unistr/u16-uctomb-tests: New file.
48680         * tests/unistr/test-u16-uctomb.c: New file.
48682         Tests for module 'unistr/u8-uctomb'.
48683         * modules/unistr/u8-uctomb-tests: New file.
48684         * tests/unistr/test-u8-uctomb.c: New file.
48686         Tests for module 'unistr/u32-mbtoucr'.
48687         * modules/unistr/u32-mbtoucr-tests: New file.
48688         * tests/unistr/test-u32-mbtoucr.c: New file.
48690         Tests for module 'unistr/u16-mbtoucr'.
48691         * modules/unistr/u16-mbtoucr-tests: New file.
48692         * tests/unistr/test-u16-mbtoucr.c: New file.
48694         Tests for module 'unistr/u8-mbtoucr'.
48695         * modules/unistr/u8-mbtoucr-tests: New file.
48696         * tests/unistr/test-u8-mbtoucr.c: New file.
48698         Tests for module 'unistr/u32-mbtouc'.
48699         * modules/unistr/u32-mbtouc-tests: New file.
48700         * tests/unistr/test-u32-mbtouc.c: New file.
48702         Tests for module 'unistr/u16-mbtouc'.
48703         * modules/unistr/u16-mbtouc-tests: New file.
48704         * tests/unistr/test-u16-mbtouc.c: New file.
48706         Tests for module 'unistr/u8-mbtouc'.
48707         * modules/unistr/u8-mbtouc-tests: New file.
48708         * tests/unistr/test-u8-mbtouc.c: New file.
48710         Tests for module 'unistr/u32-mbtouc-unsafe'.
48711         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
48712         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
48713         * tests/unistr/test-u32-mbtouc.h: New file.
48715         Tests for module 'unistr/u16-mbtouc-unsafe'.
48716         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
48717         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
48718         * tests/unistr/test-u16-mbtouc.h: New file.
48720         Tests for module 'unistr/u8-mbtouc-unsafe'.
48721         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
48722         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
48723         * tests/unistr/test-u8-mbtouc.h: New file.
48725         Tests for module 'unistr/u32-mblen'.
48726         * modules/unistr/u32-mblen-tests: New file.
48727         * tests/unistr/test-u32-mblen.c: New file.
48729         Tests for module 'unistr/u16-mblen'.
48730         * modules/unistr/u16-mblen-tests: New file.
48731         * tests/unistr/test-u16-mblen.c: New file.
48733         Tests for module 'unistr/u8-mblen'.
48734         * modules/unistr/u8-mblen-tests: New file.
48735         * tests/unistr/test-u8-mblen.c: New file.
48737         Tests for module 'unistr/u32-to-u16'.
48738         * modules/unistr/u32-to-u16-tests: New file.
48739         * tests/unistr/test-u32-to-u16.c: New file.
48741         Tests for module 'unistr/u32-to-u8'.
48742         * modules/unistr/u32-to-u8-tests: New file.
48743         * tests/unistr/test-u32-to-u8.c: New file.
48745         Tests for module 'unistr/u16-to-u32'.
48746         * modules/unistr/u16-to-u32-tests: New file.
48747         * tests/unistr/test-u16-to-u32.c: New file.
48749         Tests for module 'unistr/u16-to-u8'.
48750         * modules/unistr/u16-to-u8-tests: New file.
48751         * tests/unistr/test-u16-to-u8.c: New file.
48753         Tests for module 'unistr/u8-to-u32'.
48754         * modules/unistr/u8-to-u32-tests: New file.
48755         * tests/unistr/test-u8-to-u32.c: New file.
48757         Tests for module 'unistr/u8-to-u16'.
48758         * modules/unistr/u8-to-u16-tests: New file.
48759         * tests/unistr/test-u8-to-u16.c: New file.
48761         Tests for module 'unistr/u32-check'.
48762         * modules/unistr/u32-check-tests: New file.
48763         * tests/unistr/test-u32-check.c: New file.
48765         Tests for module 'unistr/u16-check'.
48766         * modules/unistr/u16-check-tests: New file.
48767         * tests/unistr/test-u16-check.c: New file.
48769         Tests for module 'unistr/u8-check'.
48770         * modules/unistr/u8-check-tests: New file.
48771         * tests/unistr/test-u8-check.c: New file.
48773         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
48774         (category_equals): New function.
48775         (main): Add more tests.
48776         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
48778         * tests/unictype/test-bidi_byname.c (main): Add more tests.
48780 2010-01-10  Bruno Haible  <bruno@clisp.org>
48782         unistr/u*-strcoll: Try harder to distinguish different strings.
48783         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
48784         compare s1 and s2 to see if they are different.
48786 2010-01-10  Bruno Haible  <bruno@clisp.org>
48788         unistr/u*-stpncpy: Fix the return value.
48789         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
48790         description of the return value consistent with stpncpy in glibc.
48791         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
48792         written non-NUL unit.
48794 2010-01-10  Bruno Haible  <bruno@clisp.org>
48796         unistr/u*-next: Add missing dependencies.
48797         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
48798         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
48799         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
48801 2010-01-10  Bruno Haible  <bruno@clisp.org>
48803         unistr/u8-mbsnlen: Fix return value for incomplete character.
48804         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
48805         u8_mblen.
48806         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
48807         Remove unistr/u8-mblen.
48808         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
48809         u16_mblen.
48810         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
48811         Remove unistr/u16-mblen.
48813 2010-01-10  Bruno Haible  <bruno@clisp.org>
48815         wchar: Fix compilation error when <wchar.h> is used from coreutils.
48816         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
48817         Reported by Brian Gough <bjg@gnu.org> and
48818         Chris Clayton <chris2553@googlemail.com> via
48819         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
48821 2010-01-09  Bruno Haible  <bruno@clisp.org>
48823         unistr/u16-to-u32: Reject invalid input.
48824         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
48825         u16_mbtouc.
48826         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
48827         Remove unistr/u16-mbtouc.
48829         unistr/u16-to-u8: Reject invalid input.
48830         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
48831         u16_mbtouc.
48832         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
48833         Remove unistr/u16-mbtouc.
48835         unistr/u8-to-u32: Reject invalid input.
48836         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
48837         u8_mbtouc.
48838         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
48839         Remove unistr/u8-mbtouc.
48841         unistr/u8-to-u16: Reject invalid input.
48842         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
48843         u8_mbtouc.
48844         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
48845         Remove unistr/u8-mbtouc.
48847 2010-01-09  Bruno Haible  <bruno@clisp.org>
48849         Tests for module 'getlogin'.
48850         * modules/getlogin-tests: New file.
48851         * tests/test-getlogin.c: New file.
48853         New module 'getlogin'.
48854         * lib/unistd.in.h (getlogin): New declaration.
48855         * lib/getlogin.c: New file.
48856         * m4/getlogin.m4: New file.
48857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
48858         HAVE_GETLOGIN.
48859         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
48860         HAVE_GETLOGIN.
48861         * modules/getlogin: New file.
48862         * doc/posix-functions/getlogin.texi: Mention the new module.
48863         Reported by John W. Eaton <jwe@gnu.org>.
48865 2010-01-09  Bruno Haible  <bruno@clisp.org>
48867         getlogin_r: Support for native Windows.
48868         * lib/getlogin_r.c: Include <windows.h>
48869         (getlogin_r): Implement for native Windows.
48870         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
48871         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
48872         via John W. Eaton <jwe@gnu.org>.
48874 2010-01-09  Bruno Haible  <bruno@clisp.org>
48876         getlogin_r: Small fixes.
48877         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
48878         succeeds.
48879         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
48880         before testing whether getlogin_r is declared. No need to set
48881         HAVE_DECL_GETLOGIN_R to 1.
48882         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
48884 2010-01-09  Bruno Haible  <bruno@clisp.org>
48886         * lib/unistd.in.h (getlogin_r): Add comment.
48888 2010-01-09  Bruno Haible  <bruno@clisp.org>
48890         Tests for module 'getlogin_r'.
48891         * modules/getlogin_r-tests: New file.
48892         * tests/test-getlogin_r.c: New file.
48894 2010-01-09  Jim Meyering  <meyering@redhat.com>
48896         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
48897         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
48898         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
48900 2010-01-08  Simon Josefsson  <simon@josefsson.org>
48902         * lib/dup2.c (rpl_dup2): Improve comment.
48904 2010-01-08  Eric Blake  <ebb9@byu.net>
48906         maint.mk: allow packages to add makefile @@ exceptions
48907         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
48908         (sc_makefile_check): Rename...
48909         (sc_makefile_at_at_check): ...to this, and use hook.
48911         dup2: work around mingw bug
48912         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
48913         Reported by Simon Josefsson.
48915 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
48917         glob: Fix C++ compilation.
48918         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
48919         C++.
48921 2010-01-07  Bruno Haible  <bruno@clisp.org>
48923         Fix indentation of wctype.in.h, broken since 2007-01-06.
48924         * lib/wctype.in.h: Fix indentation of preprocessor directives.
48926 2010-01-07  Bruno Haible  <bruno@clisp.org>
48928         mbslen: Avoid collision with system function.
48929         * lib/string.in.h [MirBSD]: Include <wchar.h>.
48930         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
48931         * m4/mbslen.m4: New file.
48932         * modules/mbslen (Files): Add it.
48933         (configure.ac): Invoke gl_MBSLEN.
48934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
48935         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
48936         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
48937         via Ian Beckwith <ianb@erislabs.net>.
48939 2010-01-07  Bruno Haible  <bruno@clisp.org>
48941         dirent: Document the last fix.
48942         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
48944 2010-01-07  Bruno Haible  <bruno@clisp.org>
48946         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
48947         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
48948         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
48949         va_list are defined.
48950         * doc/posix-headers/stdio.texi: Document the bug of missing types.
48951         Reported by Eric Blake.
48953 2010-01-07  Bruno Haible  <bruno@clisp.org>
48955         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
48956         * modules/xlist (Depends-on): Add 'list',
48957         * modules/xoset (Depends-on): Add 'oset'.
48958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48960 2010-01-07  Bruno Haible  <bruno@clisp.org>
48962         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
48963         * doc/posix-functions/strncasecmp.texi: Likewise.
48965 2010-01-07  Bruno Haible  <bruno@clisp.org>
48967         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
48969 2010-01-07  John W. Eaton  <jwe@octave.org>
48971         wctype: allow C++ use
48972         * lib/wctype.in.h: Add extern "C" block for C++.
48974 2010-01-06  Eric Blake  <ebb9@byu.net>
48976         maint.mk: detect incorrect GFDL usage
48977         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
48979 2010-01-06  Jim Meyering  <meyering@redhat.com>
48980         and Eric Blake  <ebb9@byu.net>
48982         maint.mk: ignore multi-line copyright in NEWS
48983         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
48985 2010-01-06  Eric Blake  <ebb9@byu.net>
48987         select: add missing dependency
48988         * modules/select-tests (Depends-on): Move sockets dependency...
48989         * modules/select (Depends-on): ...here.
48990         Reported by Ian Beckwith.
48992         doc: regenerate INSTALL
48993         * doc/INSTALL: Reflect recent autoconf update.
48994         * doc/INSTALL.ISO: Likewise.
48995         * doc/INSTALL.UTF-8: Likewise.
48997         pread: fix compilation on glibc
48998         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
48999         Reported by Ralf Wildenhues.
49001         dirent: fix test failure
49002         * lib/dirent.in.h (includes): Guarantee ino_t.
49003         Reported by Ralf Wildenhues.
49005 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
49007         linkat, renameat: avoid bad free
49008         * lib/at-func2.c (at_func2): Fix typo.
49009         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
49011 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49013         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
49014         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
49015         to avoid failure of symlink test later.
49017 2010-01-06  Eric Blake  <ebb9@byu.net>
49019         stdio, unistd: guarantee ssize_t
49020         * lib/unistd.in.h (includes): Ensure that types required by POSIX
49021         2008 are exposed when needed.
49022         * lib/stdio.in.h (includes): Likewise.
49023         Reported by Ralf Wildenhues.
49025 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
49027         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
49028         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
49029         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
49031 2010-01-06  Jim Meyering  <meyering@redhat.com>
49033         readtokens: this module *does* require xalloc.h
49034         It uses only functions that were omitted by the old syntax-check rule.
49035         * lib/readtokens.c: Include "xalloc.h" once again.
49036         * modules/readtokens (Depends-on): Add xalloc.
49037         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
49039 2010-01-05  Eric Blake  <ebb9@byu.net>
49041         maint: support 'make announcement' from a VPATH build
49042         * top/maint.mk (announcement): Look for correct NEWS file.
49044 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
49046         utimens (fdutimens): ignore a negative FD, per contract
49047         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
49048         when we have a valid file descriptor.  Otherwise, using a brand
49049         new glibc (with just-patched futimens that now fails with EBADF)
49050         would cause this function to fail with ENOSYS.
49051         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
49052         See also http://bugzilla.redhat.com/552320.
49054 2010-01-05  Eric Blake  <ebb9@byu.net>
49056         strcase: document what it provides
49057         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
49058         gnulib module.
49059         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
49060         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
49062 2010-01-05  Jim Meyering  <meyering@redhat.com>
49064         maint: remove useless inclusions of "xalloc.h"
49065         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
49066         * lib/readtokens.c: Likewise.
49067         * lib/same.c: Likewise.
49068         * modules/getloadavg (Depends-on): Remove xalloc.
49069         * modules/readtokens: Likewise.
49070         * modules/same: Likewise.
49072         maint.mk: include 4 more function names in alloca.h-checking regexp
49073         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
49074         regexp.  Before, we would give a false-positive (saying alloca.h
49075         is included unnecessarily) when the only uses involved omitted symbols.
49077         xalloc.h: use consistent formatting
49078         * lib/xalloc.h: Move declarations to start in the first column.
49080 2010-01-05  Eric Blake  <ebb9@byu.net>
49082         mkdir: avoid xalloc
49083         * lib/mkdir.c (includes): Drop unused header.
49084         Reported by John W. Eaton.
49086 2010-01-04  Jim Meyering  <meyering@redhat.com>
49088         nl_langinfo: avoid configure-time syntax error
49089         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
49090         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
49091         the empty string.  Don't let that provoke a shell syntax error.
49093         regcomp, regexec, fnmatch: avoid array bounds read error
49094         * lib/regcomp.c (build_equiv_class): From glibc:
49095         Use only the low 24 bits of a findidx return value as an index
49096         into the weights array.  Patch by Ulrich Drepper:
49097         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
49098         * lib/regexec.c (check_node_accept_bytes): Likewise.
49099         * lib/fnmatch_loop.c (FCT): Likewise.
49101         regcomp: skip collseq lookup when there are no rules
49102         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
49103         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
49105         regcomp: recognize ill-formed { } expressions
49106         * lib/regcomp.c (parse_dup_op): From glibc:
49107         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
49109         regcomp: fix typo in comment
49110         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
49111         s/satisfy/satisfies/.
49113         regcomp: sync from glibc: remove dead store
49114         * lib/regcomp.c (duplicate_node_closure): Remove useless
49115         search_duplicated_node call and dead store.
49117         regcomp: sync from glibc; always use nl_langinfo
49118         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
49119         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
49120         * modules/regex (Depends-on): Add nl_langinfo.
49122 2010-01-04  Eric Blake  <ebb9@byu.net>
49124         fdopendir: fix configure test
49125         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
49127 2010-01-01  Bruno Haible  <bruno@clisp.org>
49129         wchar: Remove unused configure check.
49130         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
49132 2010-01-01  Eric Blake  <ebb9@byu.net>
49134         headers: make check of system header explicit
49135         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
49136         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
49137         ourselves.
49138         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49139         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49141         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
49142         internals.
49143         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
49144         missing.
49145         Suggested by Bruno Haible.
49147 2010-01-01  Jim Meyering  <meyering@redhat.com>
49149         ChangeLog: tweak to eliminate unnecessary copyright line
49150         * ChangeLog: Remove a copyright line that was mistakenly updated
49151         by today's update-copyright run.  Reported by Eric Blake.
49153         test-update-copyright: don't let envvar setting cause test failure
49154         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
49156 2010-01-01  Bruno Haible  <bruno@clisp.org>
49158         localename: Avoid gcc warning.
49159         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
49160         function if it is not used.
49162 2010-01-01  Jim Meyering  <meyering@redhat.com>
49164         update nearly all FSF copyright year lists to include 2010
49165         Use the same procedure as for 2009, outlined in
49166         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
49168         version-etc: set COPYRIGHT_YEAR to 2010
49169         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
49171 2009-12-31  Eric Blake  <ebb9@byu.net>
49173         doc: correct availability of cygwin 1.5.x getopt
49174         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
49175         variables.
49176         * doc/posix-functions/opterr.texi (opterr): Likewise.
49177         * doc/posix-functions/optind.texi (optind): Likewise.
49178         * doc/posix-functions/optopt.texi (optopt): Likewise.
49179         * doc/posix-functions/tzname.texi (tzname): Likewise.
49181         openat: update maintainer
49182         * modules/openat (Maintainer): Add myself.
49184         utimens: avoid shadowing warning
49185         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
49186         buffers into one, to avoid shadowing, as well as avoiding a
49187         redundant stat.
49188         Reported by Jim Meyering.
49190         test-dup2: avoid compiler warning
49191         * tests/test-dup2.c (is_inheritable): Only define if used.
49193 2010-01-01  Bruno Haible  <bruno@clisp.org>
49195         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
49196         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
49197         defined, use wctomb instead of wcrtomb.
49199 2010-01-01  Bruno Haible  <bruno@clisp.org>
49201         iconv: Reject native Solaris iconv.
49202         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
49203         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
49205 2009-12-31  Bruno Haible  <bruno@clisp.org>
49207         * tests/test-signal.c (main): Remove test of 'SIG'.
49209 2009-12-31  Bruno Haible  <bruno@clisp.org>
49211         spawn: Fix incomplete fix.
49212         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
49213         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
49214         warnings for GNULIB_POSIXCHECK again.
49215         Reported by Eric Blake.
49217 2009-12-31  Bruno Haible  <bruno@clisp.org>
49219         Avoid namespace pollution on glibc systems.
49220         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
49221         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
49222         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
49223         glibc systems.
49225 2009-12-31  Bruno Haible  <bruno@clisp.org>
49227         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
49228         (gl_REPLACE_WCHAR_H): Turn into a no-op.
49229         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
49230         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
49231         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
49232         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
49233         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
49235 2009-12-31  Bruno Haible  <bruno@clisp.org>
49237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
49238         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
49239         afterwards.
49241 2009-12-31  Bruno Haible  <bruno@clisp.org>
49243         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
49244         SYS_UTSNAME_H.
49246 2009-12-31  Bruno Haible  <bruno@clisp.org>
49248         spawn: Fix misapplied patch.
49249         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
49250         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
49251         warnings for GNULIB_POSIXCHECK.
49253 2009-12-31  Bruno Haible  <bruno@clisp.org>
49255         times: Update after sys_times changed.
49256         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
49257         * modules/times (Files): Add it.
49258         (configure.ac): Invoke gl_FUNC_TIMES.
49260 2009-12-31  Bruno Haible  <bruno@clisp.org>
49262         Use AC_C_INLINE where necessary.
49263         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
49264         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49266         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49267         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49268         * m4/mbiter.m4 (gl_MBITER): Likewise.
49269         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49270         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
49271         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
49272         * modules/u64 (configure.ac): Likewise.
49274 2009-12-31  Bruno Haible  <bruno@clisp.org>
49276         Use AC_C_INLINE instead of module 'inline' where possible.
49277         * modules/inline (Description): Clarify purpose.
49278         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
49279         * modules/count-one-bits (Depends-on): Remove inline.
49280         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
49281         * modules/openat (Depends-on): Remove inline.
49282         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
49283         instead of depending on module 'inline'.
49284         * modules/filevercmp (Depends-on, configure.ac): Likewise.
49285         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
49286         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
49287         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
49288         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
49289         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
49290         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
49291         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
49292         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
49293         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
49294         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
49295         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
49296         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
49297         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
49298         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
49299         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
49300         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
49301         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
49302         Likewise.
49303         * modules/unictype/property-ascii-hex-digit (Depends-on,
49304         configure.ac): Likewise.
49305         * modules/unictype/property-bidi-arabic-digit (Depends-on,
49306         configure.ac): Likewise.
49307         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
49308         configure.ac): Likewise.
49309         * modules/unictype/property-bidi-block-separator (Depends-on,
49310         configure.ac): Likewise.
49311         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
49312         configure.ac): Likewise.
49313         * modules/unictype/property-bidi-common-separator (Depends-on,
49314         configure.ac): Likewise.
49315         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
49316         Likewise.
49317         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
49318         configure.ac): Likewise.
49319         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
49320         configure.ac): Likewise.
49321         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
49322         configure.ac): Likewise.
49323         * modules/unictype/property-bidi-european-digit (Depends-on,
49324         configure.ac): Likewise.
49325         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
49326         configure.ac): Likewise.
49327         * modules/unictype/property-bidi-left-to-right (Depends-on,
49328         configure.ac): Likewise.
49329         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
49330         configure.ac): Likewise.
49331         * modules/unictype/property-bidi-other-neutral (Depends-on,
49332         configure.ac): Likewise.
49333         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
49334         Likewise.
49335         * modules/unictype/property-bidi-segment-separator (Depends-on,
49336         configure.ac): Likewise.
49337         * modules/unictype/property-bidi-whitespace (Depends-on,
49338         configure.ac): Likewise.
49339         * modules/unictype/property-combining (Depends-on, configure.ac):
49340         Likewise.
49341         * modules/unictype/property-composite (Depends-on, configure.ac):
49342         Likewise.
49343         * modules/unictype/property-currency-symbol (Depends-on,
49344         configure.ac): Likewise.
49345         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
49346         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
49347         Likewise.
49348         * modules/unictype/property-default-ignorable-code-point (Depends-on,
49349         configure.ac): Likewise.
49350         * modules/unictype/property-deprecated (Depends-on, configure.ac):
49351         Likewise.
49352         * modules/unictype/property-diacritic (Depends-on, configure.ac):
49353         Likewise.
49354         * modules/unictype/property-extender (Depends-on, configure.ac):
49355         Likewise.
49356         * modules/unictype/property-format-control (Depends-on, configure.ac):
49357         Likewise.
49358         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
49359         Likewise.
49360         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
49361         Likewise.
49362         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
49363         Likewise.
49364         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
49365         Likewise.
49366         * modules/unictype/property-hyphen (Depends-on, configure.ac):
49367         Likewise.
49368         * modules/unictype/property-id-continue (Depends-on, configure.ac):
49369         Likewise.
49370         * modules/unictype/property-id-start (Depends-on, configure.ac):
49371         Likewise.
49372         * modules/unictype/property-ideographic (Depends-on, configure.ac):
49373         Likewise.
49374         * modules/unictype/property-ids-binary-operator (Depends-on,
49375         configure.ac): Likewise.
49376         * modules/unictype/property-ids-trinary-operator (Depends-on,
49377         configure.ac): Likewise.
49378         * modules/unictype/property-ignorable-control (Depends-on,
49379         configure.ac): Likewise.
49380         * modules/unictype/property-iso-control (Depends-on, configure.ac):
49381         Likewise.
49382         * modules/unictype/property-join-control (Depends-on, configure.ac):
49383         Likewise.
49384         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
49385         Likewise.
49386         * modules/unictype/property-line-separator (Depends-on, configure.ac):
49387         Likewise.
49388         * modules/unictype/property-logical-order-exception (Depends-on,
49389         configure.ac): Likewise.
49390         * modules/unictype/property-lowercase (Depends-on, configure.ac):
49391         Likewise.
49392         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
49393         * modules/unictype/property-non-break (Depends-on, configure.ac):
49394         Likewise.
49395         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
49396         Likewise.
49397         * modules/unictype/property-numeric (Depends-on, configure.ac):
49398         Likewise.
49399         * modules/unictype/property-other-alphabetic (Depends-on,
49400         configure.ac): Likewise.
49401         * modules/unictype/property-other-default-ignorable-code-point
49402         (Depends-on, configure.ac): Likewise.
49403         * modules/unictype/property-other-grapheme-extend (Depends-on,
49404         configure.ac): Likewise.
49405         * modules/unictype/property-other-id-continue (Depends-on,
49406         configure.ac): Likewise.
49407         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
49408         Likewise.
49409         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
49410         Likewise.
49411         * modules/unictype/property-other-math (Depends-on, configure.ac):
49412         Likewise.
49413         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
49414         Likewise.
49415         * modules/unictype/property-paired-punctuation (Depends-on,
49416         configure.ac): Likewise.
49417         * modules/unictype/property-paragraph-separator (Depends-on,
49418         configure.ac): Likewise.
49419         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
49420         Likewise.
49421         * modules/unictype/property-pattern-white-space (Depends-on,
49422         configure.ac): Likewise.
49423         * modules/unictype/property-private-use (Depends-on, configure.ac):
49424         Likewise.
49425         * modules/unictype/property-punctuation (Depends-on, configure.ac):
49426         Likewise.
49427         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
49428         Likewise.
49429         * modules/unictype/property-radical (Depends-on, configure.ac):
49430         Likewise.
49431         * modules/unictype/property-sentence-terminal (Depends-on,
49432         configure.ac): Likewise.
49433         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
49434         Likewise.
49435         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
49436         * modules/unictype/property-terminal-punctuation (Depends-on,
49437         configure.ac): Likewise.
49438         * modules/unictype/property-titlecase (Depends-on, configure.ac):
49439         Likewise.
49440         * modules/unictype/property-unassigned-code-value (Depends-on,
49441         configure.ac): Likewise.
49442         * modules/unictype/property-unified-ideograph (Depends-on,
49443         configure.ac): Likewise.
49444         * modules/unictype/property-uppercase (Depends-on, configure.ac):
49445         Likewise.
49446         * modules/unictype/property-variation-selector (Depends-on,
49447         configure.ac): Likewise.
49448         * modules/unictype/property-white-space (Depends-on, configure.ac):
49449         Likewise.
49450         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
49451         Likewise.
49452         * modules/unictype/property-xid-start (Depends-on, configure.ac):
49453         Likewise.
49454         * modules/unictype/property-zero-width (Depends-on, configure.ac):
49455         Likewise.
49456         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
49457         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
49458         Likewise.
49460 2009-12-31  Bruno Haible  <bruno@clisp.org>
49462         Remove unnecessary AC_C_INLINE invocation.
49463         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
49464         since 2009-08-21.
49466 2009-12-31  Jim Meyering  <meyering@redhat.com>
49468         maint.mk: don't require explicit gpg_key_ID in cfg.mk
49469         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
49470         With this change, we can all remove the gpg_key_ID = ... definition
49471         from our respective cfg.mk files.
49473         maint.mk: create announcement template in ~/, not in /tmp
49474         * top/maint.mk (emit_upload_commands): Adjust.
49475         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
49476         Remove temporary file, .ci-msg.
49478 2009-12-31  Eric Blake  <ebb9@byu.net>
49480         link-warning: always build headers with link warnings
49481         * modules/arpa_inet (Makefile.am): Always build replacement
49482         header.
49483         * modules/ctype (Makefile.am): Likewise.
49484         * modules/dirent (Makefile.am): Likewise.
49485         * modules/inttypes (Makefile.am): Likewise.
49486         * modules/langinfo (Makefile.am): Likewise.
49487         * modules/locale (Makefile.am): Likewise.
49488         * modules/spawn (Makefile.am): Likewise.
49489         * modules/sys_file (Makefile.am): Likewise.
49490         * modules/sys_ioctl (Makefile.am): Likewise.
49491         * modules/sys_select (Makefile.am): Likewise.
49492         * modules/sys_socket (Makefile.am): Likewise.
49493         * modules/sys_times (Makefile.am): Likewise.
49494         * modules/sys_utsname (Makefile.am): Likewise.
49495         * modules/sys_wait (Makefile.am): Likewise.
49496         * modules/wchar (Makefile.am): Likewise.
49497         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
49498         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
49499         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
49500         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
49501         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
49502         Likewise.
49503         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49504         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
49505         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
49506         Likewise.
49507         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
49508         Likewise.
49509         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
49510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
49511         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
49512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49513         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49514         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
49515         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
49516         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
49517         (gl_WCHAR_H_DEFAULTS): Likewise.
49519 2009-12-31  Eric Blake  <ebb9@byu.net>
49521         signal, spawn: use link warnings
49522         * lib/signal.in.h (sigset_t): Make unconditional.
49523         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
49524         (sigpending, sigprocmask, sigaction): Add link warnings.
49525         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
49526         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
49527         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
49528         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
49529         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
49530         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
49531         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
49532         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
49533         (posix_spawn_file_actions_destroy)
49534         (posix_spawn_file_actions_addopen)
49535         (posix_spawn_file_actions_addclose)
49536         (posix_spawn_file_actions_adddup2): Likewise.
49537         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
49538         * tests/test-signal.c (main): Enhance test.
49540         spawn: improve wrapper support
49541         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
49542         (gl_SPAWN_H_DEFAULTS): New defaults.
49543         * modules/spawn (Makefile.am): Substitute them.
49544         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
49545         Only declare if missing or broken.
49547         sys_times, sys_utsname: use include_next
49548         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
49549         header.
49550         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
49551         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
49552         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
49553         * modules/sys_times (Depends-on): Add include_next.
49554         (Makefile.am): Substitute additional values.
49555         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
49556         * lib/sys_times.in.h (includes): Include native header, if
49557         available.
49558         * lib/sys_utsname.in.h (includes): Likewise.
49559         * tests/test-sys_times.c (main): Enhance test.
49561         fdutimensat: revert prior patch
49562         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
49563         utimens.h.
49564         Reported by Bruno Haible.
49566 2009-12-30  Eric Blake  <ebb9@byu.net>
49568         sys_wait: drop link-warning dependency
49569         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
49570         link-warning efforts.
49571         * lib/sys_wait.in.h: Likewise.
49573         fdutimensat: remove bogus dependency
49574         * modules/fdutimensat (Depends-on): Drop inline.
49576         unistd: fix typo
49577         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
49579 2009-12-30  Bruno Haible  <bruno@clisp.org>
49581         Fix compilation error with Solaris cc.
49582         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
49583         * lib/unicase/u16-is-invariant.c: Likewise.
49584         * lib/unicase/u32-is-invariant.c: Likewise.
49585         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49587 2009-12-30  Bruno Haible  <bruno@clisp.org>
49589         Fix test crash.
49590         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
49591         locales.
49592         Reported by Simon Josefsson <simon@josefsson.org>.
49594 2009-12-30  Bruno Haible  <bruno@clisp.org>
49596         Fix compilation error on most platforms.
49597         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
49598         Reported by Simon Josefsson <simon@josefsson.org>
49599         and Nelson H. F. Beebe <beebe@math.utah.edu>.
49601 2009-12-30  Eric Blake  <ebb9@byu.net>
49603         futimens, utimensat: work around ntfs-3g bug
49604         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
49605         a ctime bug is present, and expand workaround to cover ntfs-3g.
49606         * lib/utimens.c (fdutimens, lutimens): Likewise.
49607         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
49608         (validate_timespec): Adjust return value.
49609         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
49610         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
49611         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
49613 2009-12-29  Eric Blake  <ebb9@byu.net>
49615         link-warning: make usage consistent
49616         * modules/ctype (Depends-on): Add link-warning.
49617         (Makefile.am): Update rules accordingly.
49618         * modules/langinfo (Depends-on, Makefile.am): Likewise.
49619         * modules/locale (Depends-on, Makefile.am): Likewise.
49620         * modules/sys_file (Makefile.am): Likewise.
49621         * modules/getopt-posix (Makefile.am): Delete unused link warning
49622         efforts.
49623         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
49624         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
49625         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
49626         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
49628         stdio: remove unused variables
49629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
49630         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
49631         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49633         tests: test more substitute headers
49634         * modules/ctype-tests: New file.
49635         * modules/dirent-tests: Likewise.
49636         * modules/spawn-tests: Likewise.
49637         * modules/sys_file-tests: Likewise.
49638         * modules/sys_ioctl-tests: Likewise.
49639         * modules/sys_wait-tests: Likewise.
49640         * tests/test-ctype.c: Likewise.
49641         * tests/test-dirent.c: Likewise.
49642         * tests/test-spawn.c: Likewise.
49643         * tests/test-sys_file.c: Likewise.
49644         * tests/test-sys_ioctl.c: Likewise.
49645         * tests/test-sys_wait.c: Likewise.
49646         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
49647         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
49648         whether or not flock is in use.
49650         tests: remove License section from module
49651         * modules/arpa_inet-tests: Remove unneeded section.
49652         * modules/byteswap-tests: Likewise.
49653         * modules/ceilf-tests: Likewise.
49654         * modules/ceill-tests: Likewise.
49655         * modules/crypto/des-tests: Likewise.
49656         * modules/crypto/gc-arcfour-tests: Likewise.
49657         * modules/crypto/gc-arctwo-tests: Likewise.
49658         * modules/crypto/gc-des-tests: Likewise.
49659         * modules/crypto/gc-hmac-md5-tests: Likewise.
49660         * modules/crypto/gc-hmac-sha1-tests: Likewise.
49661         * modules/crypto/gc-md2-tests: Likewise.
49662         * modules/crypto/gc-md4-tests: Likewise.
49663         * modules/crypto/gc-md5-tests: Likewise.
49664         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
49665         * modules/crypto/gc-rijndael-tests: Likewise.
49666         * modules/crypto/gc-sha1-tests: Likewise.
49667         * modules/crypto/gc-tests: Likewise.
49668         * modules/crypto/md2-tests: Likewise.
49669         * modules/crypto/md4-tests: Likewise.
49670         * modules/fcntl-h-tests: Likewise.
49671         * modules/floorf-tests: Likewise.
49672         * modules/floorl-tests: Likewise.
49673         * modules/frexp-nolibm-tests: Likewise.
49674         * modules/frexp-tests: Likewise.
49675         * modules/frexpl-nolibm-tests: Likewise.
49676         * modules/frexpl-tests: Likewise.
49677         * modules/getaddrinfo-tests: Likewise.
49678         * modules/inttypes-tests: Likewise.
49679         * modules/isfinite-tests: Likewise.
49680         * modules/isinf-tests: Likewise.
49681         * modules/ldexpl-tests: Likewise.
49682         * modules/locale-tests: Likewise.
49683         * modules/math-tests: Likewise.
49684         * modules/netdb-tests: Likewise.
49685         * modules/netinet_in-tests: Likewise.
49686         * modules/printf-frexp-tests: Likewise.
49687         * modules/printf-frexpl-tests: Likewise.
49688         * modules/priv-set-tests: Likewise.
49689         * modules/random_r-tests: Likewise.
49690         * modules/round-tests: Likewise.
49691         * modules/roundf-tests: Likewise.
49692         * modules/roundl-tests: Likewise.
49693         * modules/search-tests: Likewise.
49694         * modules/select-tests: Likewise.
49695         * modules/signal-tests: Likewise.
49696         * modules/stdbool-tests: Likewise.
49697         * modules/stddef-tests: Likewise.
49698         * modules/stdint-tests: Likewise.
49699         * modules/stdio-tests: Likewise.
49700         * modules/stdlib-tests: Likewise.
49701         * modules/string-tests: Likewise.
49702         * modules/strings-tests: Likewise.
49703         * modules/sys_select-tests: Likewise.
49704         * modules/sys_socket-tests: Likewise.
49705         * modules/sys_stat-tests: Likewise.
49706         * modules/sys_time-tests: Likewise.
49707         * modules/sys_utsname-tests: Likewise.
49708         * modules/sysexits-tests: Likewise.
49709         * modules/time-tests: Likewise.
49710         * modules/trunc-tests: Likewise.
49711         * modules/truncf-tests: Likewise.
49712         * modules/truncl-tests: Likewise.
49713         * modules/tsearch-tests: Likewise.
49714         * modules/unistd-tests: Likewise.
49715         * modules/wchar-tests: Likewise.
49716         * modules/wctype-tests: Likewise.
49718         tests: fix license on several tests
49719         * tests/test-des.c: Update to GPLv3+.
49720         * tests/test-flock.c: Likewise.
49721         * tests/test-fsync.c: Likewise.
49722         * tests/test-futimens.h: Likewise.
49723         * tests/test-gc-arcfour.c: Likewise.
49724         * tests/test-gc-arctwo.c: Likewise.
49725         * tests/test-gc-des.c: Likewise.
49726         * tests/test-gc-hmac-md5.c: Likewise.
49727         * tests/test-gc-hmac-sha1.c: Likewise.
49728         * tests/test-gc-md2.c: Likewise.
49729         * tests/test-gc-md4.c: Likewise.
49730         * tests/test-gc-md5.c: Likewise.
49731         * tests/test-gc-pbkdf2-sha1.c: Likewise.
49732         * tests/test-gc-rijndael.c: Likewise.
49733         * tests/test-gc-sha1.c: Likewise.
49734         * tests/test-gc.c: Likewise.
49735         * tests/test-getcwd.c: Likewise.
49736         * tests/test-link.c: Likewise.
49737         * tests/test-link.h: Likewise.
49738         * tests/test-lutimens.h: Likewise.
49739         * tests/test-md2.c: Likewise.
49740         * tests/test-md4.c: Likewise.
49741         * tests/test-mkdir.h: Likewise.
49742         * tests/test-rename.c: Likewise.
49743         * tests/test-rename.h: Likewise.
49744         * tests/test-safe-alloc.c: Likewise.
49745         * tests/test-utimens-common.h: Likewise.
49746         * tests/test-utimens.h: Likewise.
49748         maint: sync license texts
49749         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
49750         * doc/gpl-3.0.texi: Revert copyright year update.
49751         * doc/lgpl-3.0.texi: Likewise.
49753 2009-12-29  Jim Meyering  <meyering@redhat.com>
49755         update nearly all FSF copyright year lists to include 2009
49756         The files named by the following are exempted:
49757             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
49758               test -f "$dst" && { echo "$dst"; continue; }
49759               test -d "$dst" || continue
49760               echo "$dst"/$(basename "$src")
49761             done > exempt
49762             git ls-files tests/unictype >> exempt
49763         In the remaining files, convert to all-interval notation if
49764         - there is already at least one year interval like 2000-2003
49765         - the file is maintained by me
49766         - the file is in lib/uni*/, where that style already prevails
49767         Otherwise, use update-copyright's default.
49769 2009-12-29  Simon Josefsson  <simon@josefsson.org>
49770         and Eric Blake  <ebb9@byu.net>
49772         tests: don't require debug system() to pass
49773         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
49774         * tests/test-rmdir.h (test_rmdir_func): Likewise.
49775         * tests/test-unlink.h (test_unlink_func): Likewise.
49776         * tests/test-fstatat.c (main): ...into callers.
49777         * tests/test-lstat.c (main): Likewise.
49778         * tests/test-rmdir.c (main): Likewise.
49779         * tests/test-unlink.c (main): Likewise.
49780         * tests/test-unlinkat.c (main): Likewise.
49781         * tests/test-areadlink-with-size.c (main): Don't require a
49782         debug-only system call to pass, aiding cross-testing to mingw.
49783         * tests/test-areadlink.c (main): Likewise.
49784         * tests/test-areadlinkat-with-size.c (main): Likewise.
49785         * tests/test-areadlinkat.c (main): Likewise.
49786         * tests/test-canonicalize-lgpl.c (main): Likewise.
49787         * tests/test-canonicalize.c (main): Likewise.
49788         * tests/test-chown.c (main): Likewise.
49789         * tests/test-fchownat.c (main): Likewise.
49790         * tests/test-lchown.c (main): Likewise.
49791         * tests/test-fdutimensat.c (main): Likewise.
49792         * tests/test-futimens.c (main): Likewise.
49793         * tests/test-link.c (main): Likewise.
49794         * tests/test-linkat.c (main): Likewise.
49795         * tests/test-mkdir.c (main): Likewise.
49796         * tests/test-mkdirat.c (main): Likewise.
49797         * tests/test-mkfifo.c (main): Likewise.
49798         * tests/test-mkfifoat.c (main): Likewise.
49799         * tests/test-mknod.c (main): Likewise.
49800         * tests/test-readlink.c (main): Likewise.
49801         * tests/test-remove.c (main): Likewise.
49802         * tests/test-rename.c (main): Likewise.
49803         * tests/test-renameat.c (main): Likewise.
49804         * tests/test-symlink.c (main): Likewise.
49805         * tests/test-symlinkat.c (main): Likewise.
49806         * tests/test-utimens.c (main): Likewise.
49807         * tests/test-utimensat.c (main): Likewise.
49809 2009-12-29  Simon Josefsson  <simon@josefsson.org>
49811         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
49812         on $(UNUSED_PARAMETER_H) to avoid build failure.
49814 2009-12-28  Jim Meyering  <meyering@redhat.com>
49816         update-copyright: you may specify a max. line length other than 72
49817         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
49819         maint: use consistent FSF copyright line syntax
49820         * lib/posixtm.c: Add missing comma in FSF copyright line.
49821         * lib/posixtm.h: Likewise.
49822         * lib/getugroups.c: Add missing ", Inc.".
49824         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
49825         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
49826         FSF copyright line.  Remove trailing blanks.
49828 2009-12-28  Eric Blake  <ebb9@byu.net>
49830         test-dup2: reduce dependencies
49831         * modules/cloexec (Configure.ac): Set witness.
49832         * modules/dup2-tests (Depends-on): Drop cloexec.
49833         * tests/test-dup2.c (main): Skip portion of test if cloexec module
49834         not present.
49835         Suggested by Bruno Haible.
49837 2009-12-26  Bruno Haible  <bruno@clisp.org>
49839         Remove an unneeded dependency.
49840         * modules/fseterr (Depends-on): Remove dup2.
49842 2009-12-26  Eric Blake  <ebb9@byu.net>
49844         tests: use macros.h in more places
49845         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
49846         (ASSERT_STREAM): Provide default of stderr.
49847         * tests/test-dirent-safer.c: Include macros.h, using alternate
49848         stream for assertions.
49849         * tests/test-dup-safer.c: Likewise.
49850         * tests/test-freopen-safer.c: Likewise.
49851         * tests/test-getopt.c: Likewise.
49852         * tests/test-openat-safer.c: Likewise.
49853         * tests/test-pipe.c: Likewise.
49854         * tests/test-popen-safer.c: Likewise.
49855         * modules/dirent-safer-tests (Files): Include macros.h.
49856         * modules/unistd-safer-tests (Files): Likewise.
49857         * modules/freopen-safer-tests (Files): Likewise.
49858         * modules/getopt-posix-tests (Files): Likewise.
49859         * modules/openat-safer-tests (Files): Likewise.
49860         * modules/pipe-tests (Files): Likewise.
49862 2009-12-26  Bruno Haible  <bruno@clisp.org>
49864         javacomp: Portability fix.
49865         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
49866         that it also works on Solaris.
49868 2009-12-26  Bruno Haible  <bruno@clisp.org>
49870         localename: Fix storage allocation of gl_locale_name_thread's result.
49871         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
49872         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
49873         all platforms that have 'uselocale'.
49874         (gl_locale_name_thread_unsafe): New function, extracted from
49875         gl_locale_name_thread.
49876         (gl_locale_name_thread): Call struniq on all platforms that have
49877         'uselocale'.
49878         * tests/test-localename.c (test_locale_name_thread): Check that the
49879         resulting strings are permanently allocated.
49880         * modules/localename-tests (Depends-on): Add strdup.
49882 2009-12-26  Bruno Haible  <bruno@clisp.org>
49884         * tests/test-localename.c (categories): Fill in the strings.
49886 2009-12-26  Jim Meyering  <meyering@redhat.com>
49888         isdir: complete the removal of m4/isdir.m4
49889         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
49891         isdir: clean up, since at least grep still uses it
49892         * lib/isdir.c: Include "isdir.h".
49893         (S_ISDIR): Remove now-unneeded definition.
49894         * modules/isdir (Files): Add lib/isdir.h.
49895         * lib/isdir.h: New file, with declaration.
49896         * m4/isdir.m4: Remove file -- unneeded.
49898 2009-12-25  Bruno Haible  <bruno@clisp.org>
49900         selinux-h: Make generated .h files standalone.
49901         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
49902         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
49903         * lib/se-selinux.in.h: Likewise.
49904         * modules/selinux-h (Depends-on): Add unused-parameter.
49905         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
49906         selinux/selinux.h and selinux/context.h.
49907         Suggested by Eric Blake.
49909 2009-12-25  Bruno Haible  <bruno@clisp.org>
49911         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
49912         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
49913         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
49914         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
49915         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
49917 2009-12-24  Bruno Haible  <bruno@clisp.org>
49919         openat: Fix warning.
49920         * lib/openat-proc.c: Include <unistd.h>.
49922 2009-12-24  Bruno Haible  <bruno@clisp.org>
49924         New module 'unused-parameter'.
49925         * build-aux/unused-parameter.h: New file, extracted from earlier
49926         gnulib-common.m4.
49927         * modules/unused-parameter: New file.
49928         * lib/unistr.h: Include unused-parameter.h.
49929         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
49930         _GL_UNUSED.
49931         * modules/unistr/base (Depends-on): Add unused-parameter.
49933 2009-12-24  Bruno Haible  <bruno@clisp.org>
49935         Add missing dependencies to 'extensions' module.
49936         * m4/extensions.m4: Add comment.
49937         * modules/accept4 (Depends-on): Add extensions.
49938         * modules/dup3 (Depends-on): Likewise.
49939         * modules/fcntl (Depends-on): Likewise.
49940         * modules/futimens (Depends-on): Likewise.
49941         * modules/mknod (Depends-on): Likewise.
49942         * modules/pipe2 (Depends-on): Likewise.
49943         * modules/stat-time (Depends-on): Likewise.
49944         * modules/strcasestr-simple (Depends-on): Likewise.
49945         * modules/strsignal (Depends-on): Likewise.
49946         * modules/utimensat (Depends-on): Likewise.
49947         * modules/localcharset (Depends-on): Likewise. Needed because of
49948         gl_FCNTL_O_FLAGS.
49949         * modules/wcrtomb (Depends-on): Likewise. Needed because of
49950         AC_TYPE_MBSTATE_T.
49951         * modules/wcsnrtombs (Depends-on): Likewise.
49952         * modules/wcsrtombs (Depends-on): Likewise.
49954 2009-12-24  Bruno Haible  <bruno@clisp.org>
49956         binary-io: Avoid gcc warning due to SET_BINARY.
49957         * lib/binary-io.h (SET_BINARY): Cast the result to void.
49958         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
49960 2009-12-24  Bruno Haible  <bruno@clisp.org>
49962         Avoid future namespace pollution on glibc systems.
49963         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
49964         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
49965         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
49966         glibc systems.
49968 2009-12-24  Bruno Haible  <bruno@clisp.org>
49970         Refactor common macros used in tests.
49971         * tests/macros.h: New file.
49972         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
49973         and/or <stdlib.h>, if appropriate.
49974         (ASSERT, SIZEOF): Remove macros.
49975         * tests/test-areadlink-with-size.c: Likewise.
49976         * tests/test-areadlinkat.c: Likewise.
49977         * tests/test-areadlinkat-with-size.c: Likewise.
49978         * tests/test-argmatch.c: Likewise.
49979         * tests/test-argv-iter.c: Likewise.
49980         * tests/test-array-mergesort.c: Likewise.
49981         * tests/test-array_list.c: Likewise.
49982         * tests/test-array_oset.c: Likewise.
49983         * tests/test-avltree_list.c: Likewise.
49984         * tests/test-avltree_oset.c: Likewise.
49985         * tests/test-avltreehash_list.c: Likewise.
49986         * tests/test-base64.c: Likewise.
49987         * tests/test-binary-io.c: Likewise.
49988         * tests/test-bitrotate.c: Likewise.
49989         * tests/test-btowc.c: Likewise.
49990         * tests/test-byteswap.c: Likewise.
49991         * tests/test-c-ctype.c: Likewise.
49992         * tests/test-c-stack.c: Likewise.
49993         * tests/test-c-strcasecmp.c: Likewise.
49994         * tests/test-c-strcasestr.c: Likewise.
49995         * tests/test-c-strncasecmp.c: Likewise.
49996         * tests/test-c-strstr.c: Likewise.
49997         * tests/test-canonicalize-lgpl.c: Likewise.
49998         * tests/test-canonicalize.c: Likewise.
49999         * tests/test-carray_list.c: Likewise.
50000         * tests/test-ceilf1.c: Likewise.
50001         * tests/test-ceilf2.c: Likewise.
50002         * tests/test-ceill.c: Likewise.
50003         * tests/test-chown.c: Likewise.
50004         * tests/test-cloexec.c: Likewise.
50005         * tests/test-copy-acl.c: Likewise.
50006         * tests/test-copy-file.c: Likewise.
50007         * tests/test-count-one-bits.c: Likewise.
50008         * tests/test-dprintf-posix.c: Likewise.
50009         * tests/test-dup2.c: Likewise.
50010         * tests/test-dup3.c: Likewise.
50011         * tests/test-duplocale.c: Likewise.
50012         * tests/test-fbufmode.c: Likewise.
50013         * tests/test-fchdir.c: Likewise.
50014         * tests/test-fchownat.c: Likewise.
50015         * tests/test-fcntl-safer.c: Likewise.
50016         * tests/test-fcntl.c: Likewise.
50017         * tests/test-fdopendir.c: Likewise.
50018         * tests/test-fdutimensat.c: Likewise.
50019         * tests/test-fflush2.c: Likewise.
50020         * tests/test-file-has-acl.c: Likewise.
50021         * tests/test-filevercmp.c: Likewise.
50022         * tests/test-flock.c: Likewise.
50023         * tests/test-floorf1.c: Likewise.
50024         * tests/test-floorf2.c: Likewise.
50025         * tests/test-floorl.c: Likewise.
50026         * tests/test-fnmatch.c: Likewise.
50027         * tests/test-fopen.h: Likewise.
50028         * tests/test-fpending.c: Likewise.
50029         * tests/test-fprintf-posix.c: Likewise.
50030         * tests/test-fpurge.c: Likewise.
50031         * tests/test-freadable.c: Likewise.
50032         * tests/test-freadahead.c: Likewise.
50033         * tests/test-freading.c: Likewise.
50034         * tests/test-freadptr.c: Likewise.
50035         * tests/test-freadptr2.c: Likewise.
50036         * tests/test-freadseek.c: Likewise.
50037         * tests/test-freopen.c: Likewise.
50038         * tests/test-frexp.c: Likewise.
50039         * tests/test-frexpl.c: Likewise.
50040         * tests/test-fseek.c: Likewise.
50041         * tests/test-fseeko.c: Likewise.
50042         * tests/test-fstatat.c: Likewise.
50043         * tests/test-fstrcmp.c: Likewise.
50044         * tests/test-fsync.c: Likewise.
50045         * tests/test-ftell.c: Likewise.
50046         * tests/test-ftello.c: Likewise.
50047         * tests/test-func.c: Likewise.
50048         * tests/test-futimens.c: Likewise.
50049         * tests/test-fwritable.c: Likewise.
50050         * tests/test-fwriting.c: Likewise.
50051         * tests/test-getcwd.c: Likewise.
50052         * tests/test-getdate.c: Likewise.
50053         * tests/test-getdelim.c: Likewise.
50054         * tests/test-getdtablesize.c: Likewise.
50055         * tests/test-getgroups.c: Likewise.
50056         * tests/test-getline.c: Likewise.
50057         * tests/test-getndelim2.c: Likewise.
50058         * tests/test-glob.c: Likewise.
50059         * tests/test-hash.c: Likewise.
50060         * tests/test-i-ring.c: Likewise.
50061         * tests/test-iconv-utf.c: Likewise.
50062         * tests/test-iconv.c: Likewise.
50063         * tests/test-idpriv-drop.c: Likewise.
50064         * tests/test-idpriv-droptemp.c: Likewise.
50065         * tests/test-inet_ntop.c: Likewise.
50066         * tests/test-inet_pton.c: Likewise.
50067         * tests/test-isblank.c: Likewise.
50068         * tests/test-isfinite.c: Likewise.
50069         * tests/test-isinf.c: Likewise.
50070         * tests/test-isnan.c: Likewise.
50071         * tests/test-isnand.h: Likewise.
50072         * tests/test-isnanf.h: Likewise.
50073         * tests/test-isnanl.h: Likewise.
50074         * tests/test-lchown.c: Likewise.
50075         * tests/test-ldexpl.c: Likewise.
50076         * tests/test-link.c: Likewise.
50077         * tests/test-linkat.c: Likewise.
50078         * tests/test-linked_list.c: Likewise.
50079         * tests/test-linkedhash_list.c: Likewise.
50080         * tests/test-localename.c: Likewise.
50081         * tests/test-lseek.c: Likewise.
50082         * tests/test-lstat.c: Likewise.
50083         * tests/test-mbmemcasecmp.c: Likewise.
50084         * tests/test-mbmemcasecoll.c: Likewise.
50085         * tests/test-mbrtowc.c: Likewise.
50086         * tests/test-mbscasecmp.c: Likewise.
50087         * tests/test-mbscasestr1.c: Likewise.
50088         * tests/test-mbscasestr2.c: Likewise.
50089         * tests/test-mbscasestr3.c: Likewise.
50090         * tests/test-mbscasestr4.c: Likewise.
50091         * tests/test-mbschr.c: Likewise.
50092         * tests/test-mbscspn.c: Likewise.
50093         * tests/test-mbsinit.c: Likewise.
50094         * tests/test-mbsncasecmp.c: Likewise.
50095         * tests/test-mbsnrtowcs.c: Likewise.
50096         * tests/test-mbspbrk.c: Likewise.
50097         * tests/test-mbspcasecmp.c: Likewise.
50098         * tests/test-mbsrchr.c: Likewise.
50099         * tests/test-mbsrtowcs.c: Likewise.
50100         * tests/test-mbsspn.c: Likewise.
50101         * tests/test-mbsstr1.c: Likewise.
50102         * tests/test-mbsstr2.c: Likewise.
50103         * tests/test-mbsstr3.c: Likewise.
50104         * tests/test-memchr.c: Likewise.
50105         * tests/test-memchr2.c: Likewise.
50106         * tests/test-memcmp.c: Likewise.
50107         * tests/test-memmem.c: Likewise.
50108         * tests/test-memrchr.c: Likewise.
50109         * tests/test-mkdir.c: Likewise.
50110         * tests/test-mkdirat.c: Likewise.
50111         * tests/test-mkfifo.c: Likewise.
50112         * tests/test-mkfifoat.c: Likewise.
50113         * tests/test-mknod.c: Likewise.
50114         * tests/test-nanosleep.c: Likewise.
50115         * tests/test-nl_langinfo.c: Likewise.
50116         * tests/test-obstack-printf.c: Likewise.
50117         * tests/test-open.c: Likewise.
50118         * tests/test-openat.c: Likewise.
50119         * tests/test-pipe-filter-gi1.c: Likewise.
50120         * tests/test-pipe-filter-gi2-main.c: Likewise.
50121         * tests/test-pipe-filter-ii1.c: Likewise.
50122         * tests/test-pipe-filter-ii2-main.c: Likewise.
50123         * tests/test-pipe2.c: Likewise.
50124         * tests/test-popen.h: Likewise.
50125         * tests/test-posixtm.c: Likewise.
50126         * tests/test-pread.c: Likewise.
50127         * tests/test-printf-frexp.c: Likewise.
50128         * tests/test-printf-frexpl.c: Likewise.
50129         * tests/test-printf-posix.c: Likewise.
50130         * tests/test-priv-set.c: Likewise.
50131         * tests/test-quotearg.c: Likewise.
50132         * tests/test-random_r.c: Likewise.
50133         * tests/test-rawmemchr.c: Likewise.
50134         * tests/test-rbtree_list.c: Likewise.
50135         * tests/test-rbtree_oset.c: Likewise.
50136         * tests/test-rbtreehash_list.c: Likewise.
50137         * tests/test-readlink.c: Likewise.
50138         * tests/test-remove.c: Likewise.
50139         * tests/test-rename.c: Likewise.
50140         * tests/test-renameat.c: Likewise.
50141         * tests/test-rmdir.c: Likewise.
50142         * tests/test-round1.c: Likewise.
50143         * tests/test-roundf1.c: Likewise.
50144         * tests/test-roundl.c: Likewise.
50145         * tests/test-safe-alloc.c: Likewise.
50146         * tests/test-sameacls.c: Likewise.
50147         * tests/test-set-mode-acl.c: Likewise.
50148         * tests/test-setenv.c: Likewise.
50149         * tests/test-sigaction.c: Likewise.
50150         * tests/test-signbit.c: Likewise.
50151         * tests/test-sleep.c: Likewise.
50152         * tests/test-snprintf-posix.c: Likewise.
50153         * tests/test-snprintf.c: Likewise.
50154         * tests/test-sprintf-posix.c: Likewise.
50155         * tests/test-stat-time.c: Likewise.
50156         * tests/test-stat.c: Likewise.
50157         * tests/test-strcasestr.c: Likewise.
50158         * tests/test-strchrnul.c: Likewise.
50159         * tests/test-strerror.c: Likewise.
50160         * tests/test-striconv.c: Likewise.
50161         * tests/test-striconveh.c: Likewise.
50162         * tests/test-striconveha.c: Likewise.
50163         * tests/test-strsignal.c: Likewise.
50164         * tests/test-strstr.c: Likewise.
50165         * tests/test-strtod.c: Likewise.
50166         * tests/test-strverscmp.c: Likewise.
50167         * tests/test-symlink.c: Likewise.
50168         * tests/test-symlinkat.c: Likewise.
50169         * tests/test-trunc1.c: Likewise.
50170         * tests/test-trunc2.c: Likewise.
50171         * tests/test-truncf1.c: Likewise.
50172         * tests/test-truncf2.c: Likewise.
50173         * tests/test-truncl.c: Likewise.
50174         * tests/test-uname.c: Likewise.
50175         * tests/test-unlink.c: Likewise.
50176         * tests/test-unlinkat.c: Likewise.
50177         * tests/test-unsetenv.c: Likewise.
50178         * tests/test-usleep.c: Likewise.
50179         * tests/test-utimens.c: Likewise.
50180         * tests/test-utimensat.c: Likewise.
50181         * tests/test-vasnprintf-posix.c: Likewise.
50182         * tests/test-vasnprintf-posix2.c: Likewise.
50183         * tests/test-vasnprintf.c: Likewise.
50184         * tests/test-vasprintf-posix.c: Likewise.
50185         * tests/test-vasprintf.c: Likewise.
50186         * tests/test-vdprintf-posix.c: Likewise.
50187         * tests/test-vfprintf-posix.c: Likewise.
50188         * tests/test-vprintf-posix.c: Likewise.
50189         * tests/test-vsnprintf-posix.c: Likewise.
50190         * tests/test-vsnprintf.c: Likewise.
50191         * tests/test-vsprintf-posix.c: Likewise.
50192         * tests/test-wcrtomb.c: Likewise.
50193         * tests/test-wcsnrtombs.c: Likewise.
50194         * tests/test-wcsrtombs.c: Likewise.
50195         * tests/test-wctype.c: Likewise.
50196         * tests/test-wcwidth.c: Likewise.
50197         * tests/test-xfprintf-posix.c: Likewise.
50198         * tests/test-xmemdup0.c: Likewise.
50199         * tests/test-xprintf-posix.c: Likewise.
50200         * tests/test-xvasprintf.c: Likewise.
50201         * tests/unicase/test-locale-language.c: Likewise.
50202         * tests/unicase/test-mapping-part1.h: Likewise.
50203         * tests/unicase/test-predicate-part1.h: Likewise.
50204         * tests/unicase/test-u8-casecmp.c: Likewise.
50205         * tests/unicase/test-u8-casecoll.c: Likewise.
50206         * tests/unicase/test-u8-casefold.c: Likewise.
50207         * tests/unicase/test-u8-is-cased.c: Likewise.
50208         * tests/unicase/test-u8-is-casefolded.c: Likewise.
50209         * tests/unicase/test-u8-is-lowercase.c: Likewise.
50210         * tests/unicase/test-u8-is-titlecase.c: Likewise.
50211         * tests/unicase/test-u8-is-uppercase.c: Likewise.
50212         * tests/unicase/test-u8-tolower.c: Likewise.
50213         * tests/unicase/test-u8-totitle.c: Likewise.
50214         * tests/unicase/test-u8-toupper.c: Likewise.
50215         * tests/unicase/test-u16-casecmp.c: Likewise.
50216         * tests/unicase/test-u16-casecoll.c: Likewise.
50217         * tests/unicase/test-u16-casefold.c: Likewise.
50218         * tests/unicase/test-u16-is-cased.c: Likewise.
50219         * tests/unicase/test-u16-is-casefolded.c: Likewise.
50220         * tests/unicase/test-u16-is-lowercase.c: Likewise.
50221         * tests/unicase/test-u16-is-titlecase.c: Likewise.
50222         * tests/unicase/test-u16-is-uppercase.c: Likewise.
50223         * tests/unicase/test-u16-tolower.c: Likewise.
50224         * tests/unicase/test-u16-totitle.c: Likewise.
50225         * tests/unicase/test-u16-toupper.c: Likewise.
50226         * tests/unicase/test-u32-casecmp.c: Likewise.
50227         * tests/unicase/test-u32-casecoll.c: Likewise.
50228         * tests/unicase/test-u32-casefold.c: Likewise.
50229         * tests/unicase/test-u32-is-cased.c: Likewise.
50230         * tests/unicase/test-u32-is-casefolded.c: Likewise.
50231         * tests/unicase/test-u32-is-lowercase.c: Likewise.
50232         * tests/unicase/test-u32-is-titlecase.c: Likewise.
50233         * tests/unicase/test-u32-is-uppercase.c: Likewise.
50234         * tests/unicase/test-u32-tolower.c: Likewise.
50235         * tests/unicase/test-u32-totitle.c: Likewise.
50236         * tests/unicase/test-u32-toupper.c: Likewise.
50237         * tests/unicase/test-ulc-casecmp.c: Likewise.
50238         * tests/unicase/test-ulc-casecoll.c: Likewise.
50239         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50240         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50241         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50242         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50243         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50244         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50245         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50246         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50247         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50248         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50249         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50250         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50251         * tests/unictype/test-bidi_byname.c: Likewise.
50252         * tests/unictype/test-bidi_name.c: Likewise.
50253         * tests/unictype/test-bidi_of.c: Likewise.
50254         * tests/unictype/test-bidi_test.c: Likewise.
50255         * tests/unictype/test-block_list.c: Likewise.
50256         * tests/unictype/test-block_of.c: Likewise.
50257         * tests/unictype/test-block_test.c: Likewise.
50258         * tests/unictype/test-categ_and.c: Likewise.
50259         * tests/unictype/test-categ_and_not.c: Likewise.
50260         * tests/unictype/test-categ_byname.c: Likewise.
50261         * tests/unictype/test-categ_name.c: Likewise.
50262         * tests/unictype/test-categ_none.c: Likewise.
50263         * tests/unictype/test-categ_of.c: Likewise.
50264         * tests/unictype/test-categ_or.c: Likewise.
50265         * tests/unictype/test-categ_test_withtable.c: Likewise.
50266         * tests/unictype/test-combining.c: Likewise.
50267         * tests/unictype/test-decdigit.c: Likewise.
50268         * tests/unictype/test-digit.c: Likewise.
50269         * tests/unictype/test-mirror.c: Likewise.
50270         * tests/unictype/test-numeric.c: Likewise.
50271         * tests/unictype/test-pr_byname.c: Likewise.
50272         * tests/unictype/test-pr_test.c: Likewise.
50273         * tests/unictype/test-predicate-part1.h: Likewise.
50274         * tests/unictype/test-scripts.c: Likewise.
50275         * tests/unictype/test-sy_c_ident.c: Likewise.
50276         * tests/unictype/test-sy_java_ident.c: Likewise.
50277         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
50278         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
50279         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
50280         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
50281         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
50282         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
50283         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
50284         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
50285         * tests/uninorm/test-canonical-decomposition.c: Likewise.
50286         * tests/uninorm/test-compat-decomposition.c: Likewise.
50287         * tests/uninorm/test-composition.c: Likewise.
50288         * tests/uninorm/test-decomposing-form.c: Likewise.
50289         * tests/uninorm/test-decomposition.c: Likewise.
50290         * tests/uninorm/test-u8-nfc.c: Likewise.
50291         * tests/uninorm/test-u8-nfd.c: Likewise.
50292         * tests/uninorm/test-u8-nfkc.c: Likewise.
50293         * tests/uninorm/test-u8-nfkd.c: Likewise.
50294         * tests/uninorm/test-u8-normcmp.c: Likewise.
50295         * tests/uninorm/test-u8-normcoll.c: Likewise.
50296         * tests/uninorm/test-u16-nfc.c: Likewise.
50297         * tests/uninorm/test-u16-nfd.c: Likewise.
50298         * tests/uninorm/test-u16-nfkc.c: Likewise.
50299         * tests/uninorm/test-u16-nfkd.c: Likewise.
50300         * tests/uninorm/test-u16-normcmp.c: Likewise.
50301         * tests/uninorm/test-u16-normcoll.c: Likewise.
50302         * tests/uninorm/test-u32-nfc.c: Likewise.
50303         * tests/uninorm/test-u32-nfd.c: Likewise.
50304         * tests/uninorm/test-u32-nfkc.c: Likewise.
50305         * tests/uninorm/test-u32-nfkd.c: Likewise.
50306         * tests/uninorm/test-u32-normalize-big.c: Likewise.
50307         * tests/uninorm/test-u32-normcmp.c: Likewise.
50308         * tests/uninorm/test-u32-normcoll.c: Likewise.
50309         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
50310         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50311         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50312         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50313         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50314         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50315         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50316         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50317         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50318         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50319         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50320         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50321         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50322         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50323         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50324         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50325         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50326         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50327         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50328         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50329         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50330         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50331         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50332         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50333         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50334         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50335         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50336         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50337         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50338         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
50339         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
50340         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
50341         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
50342         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50343         * tests/uniwidth/test-u8-width.c: Likewise.
50344         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50345         * tests/uniwidth/test-u16-width.c: Likewise.
50346         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50347         * tests/uniwidth/test-u32-width.c: Likewise.
50348         * tests/uniwidth/test-uc_width.c: Likewise.
50349         * tests/uniwidth/test-uc_width2.c: Likewise.
50350         * modules/acl-tests (Files): Add tests/macros.h.
50351         * modules/areadlink-tests (Files): Likewise.
50352         * modules/areadlink-with-size-tests (Files): Likewise.
50353         * modules/areadlinkat-tests (Files): Likewise.
50354         * modules/areadlinkat-with-size-tests (Files): Likewise.
50355         * modules/argmatch-tests (Files): Likewise.
50356         * modules/argv-iter-tests (Files): Likewise.
50357         * modules/array-list-tests (Files): Likewise.
50358         * modules/array-mergesort-tests (Files): Likewise.
50359         * modules/array-oset-tests (Files): Likewise.
50360         * modules/avltree-list-tests (Files): Likewise.
50361         * modules/avltree-oset-tests (Files): Likewise.
50362         * modules/avltreehash-list-tests (Files): Likewise.
50363         * modules/base64-tests (Files): Likewise.
50364         * modules/binary-io-tests (Files): Likewise.
50365         * modules/bitrotate-tests (Files): Likewise.
50366         * modules/btowc-tests (Files): Likewise.
50367         * modules/byteswap-tests (Files): Likewise.
50368         * modules/c-ctype-tests (Files): Likewise.
50369         * modules/c-stack-tests (Files): Likewise.
50370         * modules/c-strcase-tests (Files): Likewise.
50371         * modules/c-strcasestr-tests (Files): Likewise.
50372         * modules/c-strstr-tests (Files): Likewise.
50373         * modules/canonicalize-lgpl-tests (Files): Likewise.
50374         * modules/canonicalize-tests (Files): Likewise.
50375         * modules/carray-list-tests (Files): Likewise.
50376         * modules/ceilf-tests (Files): Likewise.
50377         * modules/ceill-tests (Files): Likewise.
50378         * modules/chown-tests (Files): Likewise.
50379         * modules/cloexec-tests (Files): Likewise.
50380         * modules/copy-file-tests (Files): Likewise.
50381         * modules/count-one-bits-tests (Files): Likewise.
50382         * modules/dprintf-posix-tests (Files): Likewise.
50383         * modules/dup2-tests (Files): Likewise.
50384         * modules/dup3-tests (Files): Likewise.
50385         * modules/duplocale-tests (Files): Likewise.
50386         * modules/fbufmode-tests (Files): Likewise.
50387         * modules/fchdir-tests (Files): Likewise.
50388         * modules/fcntl-safer-tests (Files): Likewise.
50389         * modules/fcntl-tests (Files): Likewise.
50390         * modules/fdopendir-tests (Files): Likewise.
50391         * modules/fdutimensat-tests (Files): Likewise.
50392         * modules/fflush-tests (Files): Likewise.
50393         * modules/filevercmp-tests (Files): Likewise.
50394         * modules/flock-tests (Files): Likewise.
50395         * modules/floorf-tests (Files): Likewise.
50396         * modules/floorl-tests (Files): Likewise.
50397         * modules/fnmatch-tests (Files): Likewise.
50398         * modules/fopen-safer-tests (Files): Likewise.
50399         * modules/fopen-tests (Files): Likewise.
50400         * modules/fpending-tests (Files): Likewise.
50401         * modules/fprintf-posix-tests (Files): Likewise.
50402         * modules/fpurge-tests (Files): Likewise.
50403         * modules/freadable-tests (Files): Likewise.
50404         * modules/freadahead-tests (Files): Likewise.
50405         * modules/freading-tests (Files): Likewise.
50406         * modules/freadptr-tests (Files): Likewise.
50407         * modules/freadseek-tests (Files): Likewise.
50408         * modules/freopen-tests (Files): Likewise.
50409         * modules/frexp-nolibm-tests (Files): Likewise.
50410         * modules/frexp-tests (Files): Likewise.
50411         * modules/frexpl-nolibm-tests (Files): Likewise.
50412         * modules/frexpl-tests (Files): Likewise.
50413         * modules/fseek-tests (Files): Likewise.
50414         * modules/fseeko-tests (Files): Likewise.
50415         * modules/fstrcmp-tests (Files): Likewise.
50416         * modules/fsync-tests (Files): Likewise.
50417         * modules/ftell-tests (Files): Likewise.
50418         * modules/ftello-tests (Files): Likewise.
50419         * modules/func-tests (Files): Likewise.
50420         * modules/futimens-tests (Files): Likewise.
50421         * modules/fwritable-tests (Files): Likewise.
50422         * modules/fwriting-tests (Files): Likewise.
50423         * modules/getcwd-tests (Files): Likewise.
50424         * modules/getdate-tests (Files): Likewise.
50425         * modules/getdelim-tests (Files): Likewise.
50426         * modules/getdtablesize-tests (Files): Likewise.
50427         * modules/getgroups-tests (Files): Likewise.
50428         * modules/getline-tests (Files): Likewise.
50429         * modules/getndelim2-tests (Files): Likewise.
50430         * modules/glob-tests (Files): Likewise.
50431         * modules/hash-tests (Files): Likewise.
50432         * modules/i-ring-tests (Files): Likewise.
50433         * modules/iconv-tests (Files): Likewise.
50434         * modules/iconv_open-utf-tests (Files): Likewise.
50435         * modules/idpriv-drop-tests (Files): Likewise.
50436         * modules/idpriv-droptemp-tests (Files): Likewise.
50437         * modules/inet_ntop-tests (Files): Likewise.
50438         * modules/inet_pton-tests (Files): Likewise.
50439         * modules/isblank-tests (Files): Likewise.
50440         * modules/isfinite-tests (Files): Likewise.
50441         * modules/isinf-tests (Files): Likewise.
50442         * modules/isnan-tests (Files): Likewise.
50443         * modules/isnand-nolibm-tests (Files): Likewise.
50444         * modules/isnand-tests (Files): Likewise.
50445         * modules/isnanf-nolibm-tests (Files): Likewise.
50446         * modules/isnanf-tests (Files): Likewise.
50447         * modules/isnanl-nolibm-tests (Files): Likewise.
50448         * modules/isnanl-tests (Files): Likewise.
50449         * modules/lchown-tests (Files): Likewise.
50450         * modules/ldexpl-tests (Files): Likewise.
50451         * modules/link-tests (Files): Likewise.
50452         * modules/linkat-tests (Files): Likewise.
50453         * modules/linked-list-tests (Files): Likewise.
50454         * modules/linkedhash-list-tests (Files): Likewise.
50455         * modules/localename-tests (Files): Likewise.
50456         * modules/lseek-tests (Files): Likewise.
50457         * modules/lstat-tests (Files): Likewise.
50458         * modules/mbmemcasecmp-tests (Files): Likewise.
50459         * modules/mbmemcasecoll-tests (Files): Likewise.
50460         * modules/mbrtowc-tests (Files): Likewise.
50461         * modules/mbscasecmp-tests (Files): Likewise.
50462         * modules/mbscasestr-tests (Files): Likewise.
50463         * modules/mbschr-tests (Files): Likewise.
50464         * modules/mbscspn-tests (Files): Likewise.
50465         * modules/mbsinit-tests (Files): Likewise.
50466         * modules/mbsncasecmp-tests (Files): Likewise.
50467         * modules/mbsnrtowcs-tests (Files): Likewise.
50468         * modules/mbspbrk-tests (Files): Likewise.
50469         * modules/mbspcasecmp-tests (Files): Likewise.
50470         * modules/mbsrchr-tests (Files): Likewise.
50471         * modules/mbsrtowcs-tests (Files): Likewise.
50472         * modules/mbsspn-tests (Files): Likewise.
50473         * modules/mbsstr-tests (Files): Likewise.
50474         * modules/memchr-tests (Files): Likewise.
50475         * modules/memchr2-tests (Files): Likewise.
50476         * modules/memcmp-tests (Files): Likewise.
50477         * modules/memmem-tests (Files): Likewise.
50478         * modules/memrchr-tests (Files): Likewise.
50479         * modules/mkdir-tests (Files): Likewise.
50480         * modules/mkfifo-tests (Files): Likewise.
50481         * modules/mkfifoat-tests (Files): Likewise.
50482         * modules/mknod-tests (Files): Likewise.
50483         * modules/nanosleep-tests (Files): Likewise.
50484         * modules/nl_langinfo-tests (Files): Likewise.
50485         * modules/obstack-printf-tests (Files): Likewise.
50486         * modules/open-tests (Files): Likewise.
50487         * modules/openat-tests (Files): Likewise.
50488         * modules/pipe-filter-gi-tests (Files): Likewise.
50489         * modules/pipe-filter-ii-tests (Files): Likewise.
50490         * modules/pipe2-tests (Files): Likewise.
50491         * modules/popen-safer-tests (Files): Likewise.
50492         * modules/popen-tests (Files): Likewise.
50493         * modules/posixtm-tests (Files): Likewise.
50494         * modules/pread-tests (Files): Likewise.
50495         * modules/printf-frexp-tests (Files): Likewise.
50496         * modules/printf-frexpl-tests (Files): Likewise.
50497         * modules/printf-posix-tests (Files): Likewise.
50498         * modules/priv-set-tests (Files): Likewise.
50499         * modules/quotearg-tests (Files): Likewise.
50500         * modules/random_r-tests (Files): Likewise.
50501         * modules/rawmemchr-tests (Files): Likewise.
50502         * modules/rbtree-list-tests (Files): Likewise.
50503         * modules/rbtree-oset-tests (Files): Likewise.
50504         * modules/rbtreehash-list-tests (Files): Likewise.
50505         * modules/readlink-tests (Files): Likewise.
50506         * modules/remove-tests (Files): Likewise.
50507         * modules/rename-tests (Files): Likewise.
50508         * modules/renameat-tests (Files): Likewise.
50509         * modules/rmdir-tests (Files): Likewise.
50510         * modules/round-tests (Files): Likewise.
50511         * modules/roundf-tests (Files): Likewise.
50512         * modules/roundl-tests (Files): Likewise.
50513         * modules/safe-alloc-tests (Files): Likewise.
50514         * modules/setenv-tests (Files): Likewise.
50515         * modules/sigaction-tests (Files): Likewise.
50516         * modules/signbit-tests (Files): Likewise.
50517         * modules/sleep-tests (Files): Likewise.
50518         * modules/snprintf-posix-tests (Files): Likewise.
50519         * modules/snprintf-tests (Files): Likewise.
50520         * modules/sprintf-posix-tests (Files): Likewise.
50521         * modules/stat-tests (Files): Likewise.
50522         * modules/stat-time-tests (Files): Likewise.
50523         * modules/strcasestr-tests (Files): Likewise.
50524         * modules/strchrnul-tests (Files): Likewise.
50525         * modules/strerror-tests (Files): Likewise.
50526         * modules/striconv-tests (Files): Likewise.
50527         * modules/striconveh-tests (Files): Likewise.
50528         * modules/striconveha-tests (Files): Likewise.
50529         * modules/strsignal-tests (Files): Likewise.
50530         * modules/strstr-tests (Files): Likewise.
50531         * modules/strtod-tests (Files): Likewise.
50532         * modules/strverscmp-tests (Files): Likewise.
50533         * modules/symlink-tests (Files): Likewise.
50534         * modules/symlinkat-tests (Files): Likewise.
50535         * modules/trunc-tests (Files): Likewise.
50536         * modules/truncf-tests (Files): Likewise.
50537         * modules/truncl-tests (Files): Likewise.
50538         * modules/uname-tests (Files): Likewise.
50539         * modules/unicase/cased-tests (Files): Likewise.
50540         * modules/unicase/ignorable-tests (Files): Likewise.
50541         * modules/unicase/locale-language-tests (Files): Likewise.
50542         * modules/unicase/tolower-tests (Files): Likewise.
50543         * modules/unicase/totitle-tests (Files): Likewise.
50544         * modules/unicase/toupper-tests (Files): Likewise.
50545         * modules/unicase/u8-casecmp-tests (Files): Likewise.
50546         * modules/unicase/u8-casecoll-tests (Files): Likewise.
50547         * modules/unicase/u8-casefold-tests (Files): Likewise.
50548         * modules/unicase/u8-is-cased-tests (Files): Likewise.
50549         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
50550         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
50551         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
50552         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
50553         * modules/unicase/u8-tolower-tests (Files): Likewise.
50554         * modules/unicase/u8-totitle-tests (Files): Likewise.
50555         * modules/unicase/u8-toupper-tests (Files): Likewise.
50556         * modules/unicase/u16-casecmp-tests (Files): Likewise.
50557         * modules/unicase/u16-casecoll-tests (Files): Likewise.
50558         * modules/unicase/u16-casefold-tests (Files): Likewise.
50559         * modules/unicase/u16-is-cased-tests (Files): Likewise.
50560         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
50561         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
50562         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
50563         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
50564         * modules/unicase/u16-tolower-tests (Files): Likewise.
50565         * modules/unicase/u16-totitle-tests (Files): Likewise.
50566         * modules/unicase/u16-toupper-tests (Files): Likewise.
50567         * modules/unicase/u32-casecmp-tests (Files): Likewise.
50568         * modules/unicase/u32-casecoll-tests (Files): Likewise.
50569         * modules/unicase/u32-casefold-tests (Files): Likewise.
50570         * modules/unicase/u32-is-cased-tests (Files): Likewise.
50571         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
50572         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
50573         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
50574         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
50575         * modules/unicase/u32-tolower-tests (Files): Likewise.
50576         * modules/unicase/u32-totitle-tests (Files): Likewise.
50577         * modules/unicase/u32-toupper-tests (Files): Likewise.
50578         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
50579         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
50580         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
50581         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
50582         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
50583         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
50584         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
50585         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
50586         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
50587         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
50588         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
50589         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
50590         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
50591         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
50592         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
50593         * modules/unictype/bidicategory-name-tests (Files): Likewise.
50594         * modules/unictype/bidicategory-of-tests (Files): Likewise.
50595         * modules/unictype/bidicategory-test-tests (Files): Likewise.
50596         * modules/unictype/block-list-tests (Files): Likewise.
50597         * modules/unictype/block-of-tests (Files): Likewise.
50598         * modules/unictype/block-test-tests (Files): Likewise.
50599         * modules/unictype/category-C-tests (Files): Likewise.
50600         * modules/unictype/category-Cc-tests (Files): Likewise.
50601         * modules/unictype/category-Cf-tests (Files): Likewise.
50602         * modules/unictype/category-Cn-tests (Files): Likewise.
50603         * modules/unictype/category-Co-tests (Files): Likewise.
50604         * modules/unictype/category-Cs-tests (Files): Likewise.
50605         * modules/unictype/category-L-tests (Files): Likewise.
50606         * modules/unictype/category-Ll-tests (Files): Likewise.
50607         * modules/unictype/category-Lm-tests (Files): Likewise.
50608         * modules/unictype/category-Lo-tests (Files): Likewise.
50609         * modules/unictype/category-Lt-tests (Files): Likewise.
50610         * modules/unictype/category-Lu-tests (Files): Likewise.
50611         * modules/unictype/category-M-tests (Files): Likewise.
50612         * modules/unictype/category-Mc-tests (Files): Likewise.
50613         * modules/unictype/category-Me-tests (Files): Likewise.
50614         * modules/unictype/category-Mn-tests (Files): Likewise.
50615         * modules/unictype/category-N-tests (Files): Likewise.
50616         * modules/unictype/category-Nd-tests (Files): Likewise.
50617         * modules/unictype/category-Nl-tests (Files): Likewise.
50618         * modules/unictype/category-No-tests (Files): Likewise.
50619         * modules/unictype/category-P-tests (Files): Likewise.
50620         * modules/unictype/category-Pc-tests (Files): Likewise.
50621         * modules/unictype/category-Pd-tests (Files): Likewise.
50622         * modules/unictype/category-Pe-tests (Files): Likewise.
50623         * modules/unictype/category-Pf-tests (Files): Likewise.
50624         * modules/unictype/category-Pi-tests (Files): Likewise.
50625         * modules/unictype/category-Po-tests (Files): Likewise.
50626         * modules/unictype/category-Ps-tests (Files): Likewise.
50627         * modules/unictype/category-S-tests (Files): Likewise.
50628         * modules/unictype/category-Sc-tests (Files): Likewise.
50629         * modules/unictype/category-Sk-tests (Files): Likewise.
50630         * modules/unictype/category-Sm-tests (Files): Likewise.
50631         * modules/unictype/category-So-tests (Files): Likewise.
50632         * modules/unictype/category-Z-tests (Files): Likewise.
50633         * modules/unictype/category-Zl-tests (Files): Likewise.
50634         * modules/unictype/category-Zp-tests (Files): Likewise.
50635         * modules/unictype/category-Zs-tests (Files): Likewise.
50636         * modules/unictype/category-and-not-tests (Files): Likewise.
50637         * modules/unictype/category-and-tests (Files): Likewise.
50638         * modules/unictype/category-byname-tests (Files): Likewise.
50639         * modules/unictype/category-name-tests (Files): Likewise.
50640         * modules/unictype/category-none-tests (Files): Likewise.
50641         * modules/unictype/category-of-tests (Files): Likewise.
50642         * modules/unictype/category-or-tests (Files): Likewise.
50643         * modules/unictype/category-test-withtable-tests (Files): Likewise.
50644         * modules/unictype/combining-class-tests (Files): Likewise.
50645         * modules/unictype/ctype-alnum-tests (Files): Likewise.
50646         * modules/unictype/ctype-alpha-tests (Files): Likewise.
50647         * modules/unictype/ctype-blank-tests (Files): Likewise.
50648         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
50649         * modules/unictype/ctype-digit-tests (Files): Likewise.
50650         * modules/unictype/ctype-graph-tests (Files): Likewise.
50651         * modules/unictype/ctype-lower-tests (Files): Likewise.
50652         * modules/unictype/ctype-print-tests (Files): Likewise.
50653         * modules/unictype/ctype-punct-tests (Files): Likewise.
50654         * modules/unictype/ctype-space-tests (Files): Likewise.
50655         * modules/unictype/ctype-upper-tests (Files): Likewise.
50656         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
50657         * modules/unictype/decimal-digit-tests (Files): Likewise.
50658         * modules/unictype/digit-tests (Files): Likewise.
50659         * modules/unictype/mirror-tests (Files): Likewise.
50660         * modules/unictype/numeric-tests (Files): Likewise.
50661         * modules/unictype/property-alphabetic-tests (Files): Likewise.
50662         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
50663         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
50664         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
50665         Likewise.
50666         * modules/unictype/property-bidi-block-separator-tests (Files):
50667         Likewise.
50668         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
50669         Likewise.
50670         * modules/unictype/property-bidi-common-separator-tests (Files):
50671         Likewise.
50672         * modules/unictype/property-bidi-control-tests (Files): Likewise.
50673         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
50674         Likewise.
50675         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
50676         Likewise.
50677         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
50678         Likewise.
50679         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
50680         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
50681         Likewise.
50682         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
50683         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
50684         Likewise.
50685         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
50686         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
50687         * modules/unictype/property-bidi-segment-separator-tests (Files):
50688         Likewise.
50689         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
50690         * modules/unictype/property-byname-tests (Files): Likewise.
50691         * modules/unictype/property-combining-tests (Files): Likewise.
50692         * modules/unictype/property-composite-tests (Files): Likewise.
50693         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
50694         * modules/unictype/property-dash-tests (Files): Likewise.
50695         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
50696         * modules/unictype/property-default-ignorable-code-point-tests (Files):
50697         Likewise.
50698         * modules/unictype/property-deprecated-tests (Files): Likewise.
50699         * modules/unictype/property-diacritic-tests (Files): Likewise.
50700         * modules/unictype/property-extender-tests (Files): Likewise.
50701         * modules/unictype/property-format-control-tests (Files): Likewise.
50702         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
50703         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
50704         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
50705         * modules/unictype/property-hex-digit-tests (Files): Likewise.
50706         * modules/unictype/property-hyphen-tests (Files): Likewise.
50707         * modules/unictype/property-id-continue-tests (Files): Likewise.
50708         * modules/unictype/property-id-start-tests (Files): Likewise.
50709         * modules/unictype/property-ideographic-tests (Files): Likewise.
50710         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
50711         * modules/unictype/property-ids-trinary-operator-tests (Files):
50712         Likewise.
50713         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
50714         * modules/unictype/property-iso-control-tests (Files): Likewise.
50715         * modules/unictype/property-join-control-tests (Files): Likewise.
50716         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
50717         * modules/unictype/property-line-separator-tests (Files): Likewise.
50718         * modules/unictype/property-logical-order-exception-tests (Files):
50719         Likewise.
50720         * modules/unictype/property-lowercase-tests (Files): Likewise.
50721         * modules/unictype/property-math-tests (Files): Likewise.
50722         * modules/unictype/property-non-break-tests (Files): Likewise.
50723         * modules/unictype/property-not-a-character-tests (Files): Likewise.
50724         * modules/unictype/property-numeric-tests (Files): Likewise.
50725         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
50726         * modules/unictype/property-other-default-ignorable-code-point-tests
50727         (Files): Likewise.
50728         * modules/unictype/property-other-grapheme-extend-tests (Files):
50729         Likewise.
50730         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
50731         * modules/unictype/property-other-id-start-tests (Files): Likewise.
50732         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
50733         * modules/unictype/property-other-math-tests (Files): Likewise.
50734         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
50735         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
50736         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
50737         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
50738         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
50739         * modules/unictype/property-private-use-tests (Files): Likewise.
50740         * modules/unictype/property-punctuation-tests (Files): Likewise.
50741         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
50742         * modules/unictype/property-radical-tests (Files): Likewise.
50743         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
50744         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
50745         * modules/unictype/property-space-tests (Files): Likewise.
50746         * modules/unictype/property-terminal-punctuation-tests (Files):
50747         Likewise.
50748         * modules/unictype/property-test-tests (Files): Likewise.
50749         * modules/unictype/property-titlecase-tests (Files): Likewise.
50750         * modules/unictype/property-unassigned-code-value-tests (Files):
50751         Likewise.
50752         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
50753         * modules/unictype/property-uppercase-tests (Files): Likewise.
50754         * modules/unictype/property-variation-selector-tests (Files): Likewise.
50755         * modules/unictype/property-white-space-tests (Files): Likewise.
50756         * modules/unictype/property-xid-continue-tests (Files): Likewise.
50757         * modules/unictype/property-xid-start-tests (Files): Likewise.
50758         * modules/unictype/property-zero-width-tests (Files): Likewise.
50759         * modules/unictype/scripts-tests (Files): Likewise.
50760         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
50761         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
50762         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
50763         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
50764         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
50765         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
50766         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
50767         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
50768         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
50769         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
50770         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
50771         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
50772         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
50773         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
50774         * modules/uninorm/composition-tests (Files): Likewise.
50775         * modules/uninorm/decomposing-form-tests (Files): Likewise.
50776         * modules/uninorm/decomposition-tests (Files): Likewise.
50777         * modules/uninorm/filter-tests (Files): Likewise.
50778         * modules/uninorm/nfc-tests (Files): Likewise.
50779         * modules/uninorm/nfd-tests (Files): Likewise.
50780         * modules/uninorm/nfkc-tests (Files): Likewise.
50781         * modules/uninorm/nfkd-tests (Files): Likewise.
50782         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
50783         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
50784         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
50785         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
50786         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
50787         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
50788         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
50789         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50790         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
50791         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
50792         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
50793         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
50794         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50795         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
50796         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
50797         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
50798         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
50799         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50800         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
50801         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
50802         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
50803         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
50804         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50805         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
50806         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
50807         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
50808         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
50809         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
50810         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
50811         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
50812         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
50813         * modules/uniwidth/u8-width-tests (Files): Likewise.
50814         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
50815         * modules/uniwidth/u16-width-tests (Files): Likewise.
50816         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
50817         * modules/uniwidth/u32-width-tests (Files): Likewise.
50818         * modules/uniwidth/width-tests (Files): Likewise.
50819         * modules/unlink-tests (Files): Likewise.
50820         * modules/unsetenv-tests (Files): Likewise.
50821         * modules/usleep-tests (Files): Likewise.
50822         * modules/utimens-tests (Files): Likewise.
50823         * modules/utimensat-tests (Files): Likewise.
50824         * modules/vasnprintf-posix-tests (Files): Likewise.
50825         * modules/vasnprintf-tests (Files): Likewise.
50826         * modules/vasprintf-posix-tests (Files): Likewise.
50827         * modules/vasprintf-tests (Files): Likewise.
50828         * modules/vdprintf-posix-tests (Files): Likewise.
50829         * modules/vfprintf-posix-tests (Files): Likewise.
50830         * modules/vprintf-posix-tests (Files): Likewise.
50831         * modules/vsnprintf-posix-tests (Files): Likewise.
50832         * modules/vsnprintf-tests (Files): Likewise.
50833         * modules/vsprintf-posix-tests (Files): Likewise.
50834         * modules/wcrtomb-tests (Files): Likewise.
50835         * modules/wcsnrtombs-tests (Files): Likewise.
50836         * modules/wcsrtombs-tests (Files): Likewise.
50837         * modules/wctype-tests (Files): Likewise.
50838         * modules/wcwidth-tests (Files): Likewise.
50839         * modules/xmemdup0-tests (Files): Likewise.
50840         * modules/xprintf-posix-tests (Files): Likewise.
50841         * modules/xvasprintf-tests (Files): Likewise.
50843 2009-12-24  Eric Blake  <ebb9@byu.net>
50845         test-nanosleep: fix typo
50846         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
50847         patch.
50848         Reported by Bruno Haible.
50850 2009-12-24  Bruno Haible  <bruno@clisp.org>
50852         Reduce namespace pollution on glibc systems.
50853         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
50854         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
50855         systems.
50856         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
50857         <getopt.h> on glibc systems.
50858         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
50859         systems.
50860         * lib/fcntl.c: Include <unistd.h> here instead.
50862 2009-12-24  Bruno Haible  <bruno@clisp.org>
50864         * lib/stdlib.in.h (includes): Fix typo in today's commit.
50866 2009-12-24  Eric Blake  <ebb9@byu.net>
50868         tests: add signature checks
50869         * tests/signature.h (SIGNATURE_CHECK): New file.
50870         * modules/atexit-tests (Files): Use it.
50871         * modules/btowc-tests (Files): Likewise.
50872         * modules/canonicalize-lgpl-tests (Files): Likewise.
50873         * modules/ceilf-tests (Files): Likewise.
50874         * modules/ceill-tests (Files): Likewise.
50875         * modules/chown-tests (Files): Likewise.
50876         * modules/dprintf-posix-tests (Files): Likewise.
50877         * modules/dup2-tests (Files): Likewise.
50878         * modules/dup3-tests (Files): Likewise.
50879         * modules/duplocale-tests (Files): Likewise.
50880         * modules/fchdir-tests (Files): Likewise.
50881         * modules/fcntl-tests (Files): Likewise.
50882         * modules/fdopendir-tests (Files): Likewise.
50883         * modules/fflush-tests (Files): Likewise.
50884         * modules/flock-tests (Files): Likewise.
50885         * modules/floorf-tests (Files): Likewise.
50886         * modules/floorl-tests (Files): Likewise.
50887         * modules/fnmatch-tests (Files): Likewise.
50888         * modules/fopen-tests (Files): Likewise.
50889         * modules/fprintf-posix-tests (Files): Likewise.
50890         * modules/freopen-tests (Files): Likewise.
50891         * modules/frexp-nolibm-tests (Files): Likewise.
50892         * modules/frexp-tests (Files): Likewise.
50893         * modules/frexpl-nolibm-tests (Files): Likewise.
50894         * modules/frexpl-tests (Files): Likewise.
50895         * modules/fseek-tests (Files): Likewise.
50896         * modules/fseeko-tests (Files): Likewise.
50897         * modules/fsync-tests (Files): Likewise.
50898         * modules/ftell-tests (Files): Likewise.
50899         * modules/ftello-tests (Files): Likewise.
50900         * modules/futimens-tests (Files): Likewise.
50901         * modules/getaddrinfo-tests (Files): Likewise.
50902         * modules/getcwd-tests (Files): Likewise.
50903         * modules/getdelim-tests (Files): Likewise.
50904         * modules/getdtablesize-tests (Files): Likewise.
50905         * modules/getgroups-tests (Files): Likewise.
50906         * modules/gethostname-tests (Files): Likewise.
50907         * modules/getline-tests (Files): Likewise.
50908         * modules/getopt-posix-tests (Files): Likewise.
50909         * modules/gettimeofday-tests (Files): Likewise.
50910         * modules/glob-tests (Files): Likewise.
50911         * modules/iconv-tests (Files): Likewise.
50912         * modules/inet_ntop-tests (Files): Likewise.
50913         * modules/inet_pton-tests (Files): Likewise.
50914         * modules/isblank-tests (Files): Likewise.
50915         * modules/lchown-tests (Files): Likewise.
50916         * modules/ldexpl-tests (Files): Likewise.
50917         * modules/link-tests (Files): Likewise.
50918         * modules/linkat-tests (Files): Likewise.
50919         * modules/lseek-tests (Files): Likewise.
50920         * modules/lstat-tests (Files): Likewise.
50921         * modules/mbrtowc-tests (Files): Likewise.
50922         * modules/mbsinit-tests (Files): Likewise.
50923         * modules/mbsnrtowcs-tests (Files): Likewise.
50924         * modules/mbsrtowcs-tests (Files): Likewise.
50925         * modules/memchr-tests (Files): Likewise.
50926         * modules/memcmp-tests (Files): Likewise.
50927         * modules/memmem-tests (Files): Likewise.
50928         * modules/memrchr-tests (Files): Likewise.
50929         * modules/mkdir-tests (Files): Likewise.
50930         * modules/mkfifo-tests (Files): Likewise.
50931         * modules/mkfifoat-tests (Files): Likewise.
50932         * modules/mknod-tests (Files): Likewise.
50933         * modules/nanosleep-tests (Files): Likewise.
50934         * modules/nl_langinfo-tests (Files): Likewise.
50935         * modules/obstack-printf-tests (Files): Likewise.
50936         * modules/open-tests (Files): Likewise.
50937         * modules/openat-tests (Files): Likewise.
50938         * modules/perror-tests (Files): Likewise.
50939         * modules/pipe2-tests (Files): Likewise.
50940         * modules/poll-tests (Files): Likewise.
50941         * modules/popen-tests (Files): Likewise.
50942         * modules/posix_spawn-tests (Files): Likewise.
50943         * modules/posix_spawnp-tests (Files): Likewise.
50944         * modules/pread-tests (Files): Likewise.
50945         * modules/printf-posix-tests (Files): Likewise.
50946         * modules/pty-tests (Files): Likewise.
50947         * modules/random_r-tests (Files): Likewise.
50948         * modules/rawmemchr-tests (Files): Likewise.
50949         * modules/readlink-tests (Files): Likewise.
50950         * modules/remove-tests (Files): Likewise.
50951         * modules/rename-tests (Files): Likewise.
50952         * modules/renameat-tests (Files): Likewise.
50953         * modules/rmdir-tests (Files): Likewise.
50954         * modules/round-tests (Files): Likewise.
50955         * modules/roundf-tests (Files): Likewise.
50956         * modules/roundl-tests (Files): Likewise.
50957         * modules/select-tests (Files): Likewise.
50958         * modules/setenv-tests (Files): Likewise.
50959         * modules/sigaction-tests (Files): Likewise.
50960         * modules/sleep-tests (Files): Likewise.
50961         * modules/snprintf-posix-tests (Files): Likewise.
50962         * modules/snprintf-tests (Files): Likewise.
50963         * modules/sprintf-posix-tests (Files): Likewise.
50964         * modules/stat-tests (Files): Likewise.
50965         * modules/strcasestr-tests (Files): Likewise.
50966         * modules/strchrnul-tests (Files): Likewise.
50967         * modules/strerror-tests (Files): Likewise.
50968         * modules/strsignal-tests (Files): Likewise.
50969         * modules/strstr-tests (Files): Likewise.
50970         * modules/strtod-tests (Files): Likewise.
50971         * modules/strverscmp-tests (Files): Likewise.
50972         * modules/symlink-tests (Files): Likewise.
50973         * modules/symlinkat-tests (Files): Likewise.
50974         * modules/times-tests (Files): Likewise.
50975         * modules/trunc-tests (Files): Likewise.
50976         * modules/truncf-tests (Files): Likewise.
50977         * modules/truncl-tests (Files): Likewise.
50978         * modules/tsearch-tests (Files): Likewise.
50979         * modules/uname-tests (Files): Likewise.
50980         * modules/unlink-tests (Files): Likewise.
50981         * modules/unsetenv-tests (Files): Likewise.
50982         * modules/usleep-tests (Files): Likewise.
50983         * modules/utimensat-tests (Files): Likewise.
50984         * modules/vasprintf-tests (Files): Likewise.
50985         * modules/vdprintf-posix-tests (Files): Likewise.
50986         * modules/vfprintf-posix-tests (Files): Likewise.
50987         * modules/vprintf-posix-tests (Files): Likewise.
50988         * modules/vsnprintf-posix-tests (Files): Likewise.
50989         * modules/vsnprintf-tests (Files): Likewise.
50990         * modules/vsprintf-posix-tests (Files): Likewise.
50991         * modules/wcrtomb-tests (Files): Likewise.
50992         * modules/wcsnrtombs-tests (Files): Likewise.
50993         * modules/wcsrtombs-tests (Files): Likewise.
50994         * modules/wcwidth-tests (Files): Likewise.
50995         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
50996         * tests/test-isinf.c (isinf): Likewise.
50997         * tests/test-isnan.c (isnan): Likewise.
50998         * tests/test-signbit.c (signbit): Likewise.
50999         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
51000         declaration, either as macro or with correct signature.
51001         (select): Ensure function under test is declared with correct
51002         signature in correct header.
51003         * tests/test-atexit.c (atexit): Likewise.
51004         * tests/test-btowc.c (btowc): Likewise.
51005         * tests/test-canonicalize-lgpl.c (realpath)
51006         (canonicalize_file_name): Likewise.
51007         * tests/test-ceilf1.c (ceilf): Likewise.
51008         * tests/test-ceill.c (ceill): Likewise.
51009         * tests/test-chown.c (chown): Likewise.
51010         * tests/test-dprintf-posix.c (dprintf): Likewise.
51011         * tests/test-dup2.c (dup2): Likewise.
51012         * tests/test-dup3.c (dup3): Likewise.
51013         * tests/test-duplocale.c (duplocale): Likewise.
51014         * tests/test-fchdir.c (fchdir): Likewise.
51015         * tests/test-fchownat.c (fchownat): Likewise.
51016         * tests/test-fcntl.c (fcntl): Likewise.
51017         * tests/test-fdopendir.c (fdopendir): Likewise.
51018         * tests/test-fflush.c (fflush): Likewise.
51019         * tests/test-flock.c (flock): Likewise.
51020         * tests/test-floorf1.c (floorf): Likewise.
51021         * tests/test-floorl.c (floorl): Likewise.
51022         * tests/test-fnmatch.c (fnmatch): Likewise.
51023         * tests/test-fopen.c (fopen): Likewise.
51024         * tests/test-fprintf-posix.c (fprintf): Likewise.
51025         * tests/test-freopen.c (freopen): Likewise.
51026         * tests/test-frexp.c (frexp): Likewise.
51027         * tests/test-frexpl.c (frexpl): Likewise.
51028         * tests/test-fseek.c (fseek): Likewise.
51029         * tests/test-fseeko.c (fseeko): Likewise.
51030         * tests/test-fstatat.c (fstatat): Likewise.
51031         * tests/test-fsync.c (fsync): Likewise.
51032         * tests/test-ftell.c (ftell): Likewise.
51033         * tests/test-ftello.c (ftello): Likewise.
51034         * tests/test-futimens.c (futimens): Likewise.
51035         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
51036         (gai_strerror): Likewise.
51037         * tests/test-getcwd.c (getcwd): Likewise.
51038         * tests/test-getdelim.c (getdelim): Likewise.
51039         * tests/test-getdtablesize.c (getdtablesize): Likewise.
51040         * tests/test-getgroups.c (getgroups): Likewise.
51041         * tests/test-gethostname.c (gethostname): Likewise.
51042         * tests/test-getline.c (getline): Likewise.
51043         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
51044         Likewise.
51045         * tests/test-gettimeofday.c (gettimeofday): Likewise.
51046         * tests/test-glob.c (glob, globfree): Likewise.
51047         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
51048         * tests/test-inet_ntop.c (inet_ntop): Likewise.
51049         * tests/test-inet_pton.c (inet_pton): Likewise.
51050         * tests/test-isblank.c (isblank): Likewise.
51051         * tests/test-lchown.c (lchown): Likewise.
51052         * tests/test-ldexpl.c (ldexpl): Likewise.
51053         * tests/test-link.c (link): Likewise.
51054         * tests/test-linkat.c (linkat): Likewise.
51055         * tests/test-lseek.c (lseek): Likewise.
51056         * tests/test-lstat.c (lstat): Likewise.
51057         * tests/test-mbrtowc.c (mbrtowc): Likewise.
51058         * tests/test-mbsinit.c (mbsinit): Likewise.
51059         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
51060         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
51061         * tests/test-memchr.c (memchr): Likewise.
51062         * tests/test-memcmp.c (memcmp): Likewise.
51063         * tests/test-memmem.c (memmem): Likewise.
51064         * tests/test-memrchr.c (memrchr): Likewise.
51065         * tests/test-mkdir.c (mkdir): Likewise.
51066         * tests/test-mkdirat.c (mkdirat): Likewise.
51067         * tests/test-mkfifo.c (mkfifo): Likewise.
51068         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
51069         * tests/test-mknod.c (mknod): Likewise.
51070         * tests/test-nanosleep.c (nanosleep): Likewise.
51071         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
51072         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
51073         Likewise.
51074         * tests/test-open.c (open): Likewise.
51075         * tests/test-openat.c (openat): Likewise.
51076         * tests/test-perror.c (perror): Likewise.
51077         * tests/test-pipe2.c (pipe2): Likewise.
51078         * tests/test-poll.c (poll): Likewise.
51079         * tests/test-popen.c (popen, pclose): Likewise.
51080         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
51081         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
51082         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
51083         (posix_spawn_file_actions_destroy)
51084         (posix_spawn_file_actions_addclose)
51085         (posix_spawn_file_actions_addopen)
51086         (posix_spawn_file_actions_adddup2): Likewise.
51087         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
51088         * tests/test-pread.c (pread): Likewise.
51089         * tests/test-printf-posix.c (printf): Likewise.
51090         * tests/test-pty.c (openpty, forkpty): Likewise.
51091         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
51092         (random_r): Likewise.
51093         * tests/test-rawmemchr.c (rawmemchr): Likewise.
51094         * tests/test-readlink.c (readlink): Likewise.
51095         * tests/test-remove.c (remove): Likewise.
51096         * tests/test-rename.c (rename): Likewise.
51097         * tests/test-renameat.c (renameat): Likewise.
51098         * tests/test-rmdir.c (rmdir): Likewise.
51099         * tests/test-round1.c (round): Likewise.
51100         * tests/test-roundf1.c (roundf): Likewise.
51101         * tests/test-roundl.c (roundl): Likewise.
51102         * tests/test-setenv.c (setenv): Likewise.
51103         * tests/test-sigaction.c (sigaction): Likewise.
51104         * tests/test-sleep.c (sleep): Likewise.
51105         * tests/test-snprintf.c (snprintf): Likewise.
51106         * tests/test-sprintf-posix.c (sprintf): Likewise.
51107         * tests/test-stat.c (stat): Likewise.
51108         * tests/test-stpncpy.c (stpncpy): Likewise.
51109         * tests/test-strcasestr.c (strcasestr): Likewise.
51110         * tests/test-strchrnul.c (strchrnul): Likewise.
51111         * tests/test-strerror.c (strerror): Likewise.
51112         * tests/test-strsignal.c (strsignal): Likewise.
51113         * tests/test-strstr.c (strstr): Likewise.
51114         * tests/test-strtod.c (strtod): Likewise.
51115         * tests/test-strverscmp.c (strverscmp): Likewise.
51116         * tests/test-symlink.c (symlink): Likewise.
51117         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
51118         * tests/test-times.c (times): Likewise.
51119         * tests/test-trunc1.c (trunc): Likewise.
51120         * tests/test-truncf1.c (truncf): Likewise.
51121         * tests/test-truncl.c (truncl): Likewise.
51122         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
51123         Likewise.
51124         * tests/test-uname.c (uname): Likewise.
51125         * tests/test-unlink.c (unlink): Likewise.
51126         * tests/test-unlinkat.c (unlinkat): Likewise.
51127         * tests/test-unsetenv.c (unsetenv): Likewise.
51128         * tests/test-usleep.c (usleep): Likewise.
51129         * tests/test-utimensat.c (utimensat): Likewise.
51130         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
51131         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
51132         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
51133         * tests/test-vprintf-posix.c (vprintf): Likewise.
51134         * tests/test-vsnprintf.c (vsnprintf): Likewise.
51135         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
51136         * tests/test-wcrtomb.c (wcrtomb): Likewise.
51137         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
51138         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
51139         * tests/test-wcwidth.c (wcwidth): Likewise.
51141         build: pull in conditional headers during GNULIB_POSIXCHECK
51142         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
51143         definitions from any conditionally-included headers.
51144         * lib/stdlib.in.h (includes): Likewise.
51145         * lib/unistd.in.h (includes): Likewise.
51147 2009-12-24  Bruno Haible  <bruno@clisp.org>
51149         * tests/test-argv-iter.c: Include header file being tested immediately
51150         after config.h.
51151         * tests/test-base64.c: Likewise.
51152         * tests/test-flock.c: Likewise.
51153         * tests/test-fsync.c: Likewise.
51154         * tests/test-getdate.c: Likewise.
51155         * tests/test-getndelim2.c: Likewise.
51156         * tests/test-isfinite.c: Likewise.
51157         * tests/test-isinf.c: Likewise.
51158         * tests/test-strerror.c: Likewise.
51159         * tests/test-strsignal.c: Likewise.
51161 2009-12-23  Eric Blake  <ebb9@byu.net>
51163         unistd: work around cygwin bug
51164         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
51165         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
51166         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
51168 2009-12-23  Bruno Haible  <bruno@clisp.org>
51170         localename: More tests.
51171         * tests/test-localename.c (SIZEOF): New macro.
51172         (categories): New variable.
51173         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
51174         test_locale_name_default): Add test w.r.t. thread locale.
51175         (test_locale_name_thread): New function.
51176         (main): Invoke it.
51178         localename: Make aware of thread locale.
51179         * lib/localename.h (gl_locale_name_thread): New declaration.
51180         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
51181         behaviour with respect to thread locale.
51182         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
51183         <langinfo.h>, glthread/lock.h.
51184         (SIZE_BITS): New macro.
51185         (string_hash): New function.
51186         (struct hash_node): New type.
51187         (HASH_TABLE_SIZE): New macro.
51188         (struniq_hash_table, struniq_lock): New variables.
51189         (struniq): New function.
51190         (gl_locale_name_thread): New function.
51191         (gl_locale_name): Invoke it.
51192         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
51193         * modules/localename (Depends-on): Add lock.
51194         Reported by Mike Gran <spk121@yahoo.com>.
51196 2009-12-23  Eric Blake  <ebb9@byu.net>
51198         va-args: new module
51199         * modules/va-args: New file.
51200         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
51201         * MODULES.html.sh (Core language properties): Mention it.
51203         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
51204         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
51205         named alias for __attribute__((__unused__)).
51206         * lib/chown.c: Update client.
51207         * lib/fchmodat.c: Likewise.
51208         * lib/fts.c: Likewise.
51209         * lib/getdate.y: Likewise.
51210         * lib/getgroups.c: Likewise.
51211         * lib/getopt.c: Likewise.
51212         * lib/getugroups.c: Likewise.
51213         * lib/mkdir.c: Likewise.
51214         * lib/mkfifo.c: Likewise.
51215         * lib/mkfifoat.c: Likewise.
51216         * lib/mknod.c: Likewise.
51217         * lib/mknodat.c: Likewise.
51218         * lib/readlink.c: Likewise.
51219         * lib/se-context.in.h: Likewise.
51220         * lib/se-selinux.in.h: Likewise.
51221         * lib/sockets.c: Likewise.
51222         * lib/symlink.c: Likewise.
51223         * lib/symlinkat.c: Likewise.
51224         * lib/unicodeio.c: Likewise.
51225         * lib/unistr.h: Likewise.
51226         * tests/test-areadlink.c: Likewise.
51227         * tests/test-areadlinkat.c: Likewise.
51228         * tests/test-filenamecat.c: Likewise.
51229         * tests/test-fseeko.c: Likewise.
51230         * tests/test-ftello.c: Likewise.
51231         * tests/test-getdate.c: Likewise.
51232         * tests/test-getgroups.c: Likewise.
51233         * tests/test-gethostname.c: Likewise.
51234         * tests/test-quotearg.c: Likewise.
51235         * tests/test-version-etc.c: Likewise.
51236         * tests/test-xalloc-die.c: Likewise.
51237         * tests/test-xfprintf-posix.c: Likewise.
51238         * tests/test-xprintf-posix.c: Likewise.
51239         * tests/test-xvasprintf.c: Likewise.
51241         tests: avoid compiler warnings
51242         * tests/test-fcntl.c (main): Delete unused parameters.
51243         * tests/test-freopen-safer.c (main): Likewise.
51244         * tests/test-xalloc-die.c (main): Mark unused parameters.
51245         * tests/test-fseeko.c (main): Likewise.
51246         * tests/test-ftello.c (main): Likewise.
51247         * tests/test-nanosleep.c (main): Avoid declaration warning.
51248         * tests/test-sleep.c (main): Likewise.
51249         * tests/test-unsetenv.c (main): Silence warning about string
51250         literal.
51251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
51253 2009-12-23  Bruno Haible  <bruno@clisp.org>
51255         * tests/test-localename.c (test_locale_name): New function, extracted
51256         from main. Also test mixed situations.
51257         (test_locale_name_posix, test_locale_name_environ,
51258         test_locale_name_default): New functions.
51259         (main): Invoke them all.
51260         * modules/localename-tests (configure.ac): Test for newlocale.
51262 2009-12-23  Bruno Haible  <bruno@clisp.org>
51264         unistd: Ensure getcwd gets declared before being overridden.
51265         * lib/unistd.in.h: Conditionally include <io.h>.
51267 2009-12-22  Bruno Haible  <bruno@clisp.org>
51269         wchar: Diagnose broken combination of glibc and gcc versions and flags.
51270         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
51271         (gl_WCHAR_H): Invoke it.
51272         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
51273         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
51274         Reported by Karl Berry <karl@freefriends.org>.
51276 2009-12-22  Eric Blake  <ebb9@byu.net>
51278         math, unistd: avoid redundant includes
51279         * lib/math.in.h (isnan): No need to re-include <math.h>.
51280         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
51282         getsubopt: work around cygwin bug
51283         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
51284         avoid conflicting with system getsubopt.
51285         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
51286         bug.
51288         getopt: synchronize from glibc
51289         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
51290         parameter order.  Adjust all callers.
51291         (_getopt_internal_r, main): Adjust quoting in error messages.
51292         Drop considerations for outdated POSIX 1003.2 error message.
51293         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
51294         callers.
51295         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
51297         test-getopt: test stderr behavior
51298         * modules/getopt-posix-tests (Depends-on): Add dup2.
51299         * tests/test-getopt.c (ASSERT): Avoid stderr.
51300         (main): Move stderr to a temporary file.
51301         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
51302         Instead, add parameter to inform caller if output occurred.
51303         (test_getopt): Adjust all existing tests to expect silence, and
51304         add new tests of leading ":".
51305         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
51306         glibc shortcomings with leading "-:" or "+:" in optstring.
51307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51308         Likewise.
51309         * doc/posix-functions/getopt.texi (getopt): Likewise.
51311         test-getopt: enhance test
51312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
51313         supports optind=0.
51314         * tests/test-getopt.c (OPTIND_MIN): Move...
51315         * tests/test-getopt.h (OPTIND_MIN): ...here.
51316         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
51317         Require that optind=0 works, since modern BSD supports it in
51318         addition to optreset, and since coreutils expects it.
51319         (test_getopt_long_only): New test.
51320         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
51321         glibc shortcomings with 'W;', and enforcement of optind=0.
51322         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51323         Likewise.
51325 2009-12-21  Bruno Haible  <bruno@clisp.org>
51327         localename: Improvements for MacOS X and Cygwin.
51328         * lib/localename.h (gl_locale_name_environ): New declaration.
51329         * lib/localename.c (gl_locale_name_environ): New function, extracted from
51330         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
51331         (gl_locale_name_posix): Invoke it.
51332         (gl_locale_name_default): Add comments. Use Windows native API also on
51333         Cygwin.
51335 2009-12-21  Bruno Haible  <bruno@clisp.org>
51337         Update list of Win32 locale ids.
51338         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
51339         (LANG_SAMI): Renamed from LANG_SAAMI.
51340         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
51341         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
51342         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
51343         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
51344         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
51345         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
51346         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
51347         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
51348         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
51349         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
51350         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
51351         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
51352         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
51353         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
51354         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
51355         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
51356         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
51357         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
51358         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
51359         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
51360         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
51361         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
51362         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
51363         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
51364         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
51365         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
51366         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
51367         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
51368         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
51369         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
51370         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
51371         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
51372         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
51373         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
51374         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
51375         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
51376         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
51377         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
51378         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
51379         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
51380         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
51381         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
51382         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
51383         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
51384         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
51385         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
51386         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
51387         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
51388         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
51389         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
51390         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
51391         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
51392         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
51393         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
51394         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
51395         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
51396         Add more languages and countries for Sami, Sorbian. Add more countries
51397         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
51398         for Pashto. Change country for Syriac, Tswana.
51400 2009-12-21  Eric Blake  <ebb9@byu.net>
51402         test-utimens: avoid spurious failure
51403         * tests/test-chown.h (nap): Factor...
51404         * tests/nap.h: ...into new file.
51405         * tests/test-lchown.h (nap): Avoid duplication.
51406         * tests/test-utimens-common.h (nap): Use shared implementation,
51407         necessary on file systems with 1-second resolution.
51408         * modules/chown-tests (Files): Include new file.
51409         * modules/fdutimensat-tests (Files): Likewise.
51410         * modules/futimens-tests (Files): Likewise.
51411         * modules/lchown-tests (Files): Likewise.
51412         * modules/openat-tests (Files): Likewise.
51413         * modules/utimens-tests (Files): Likewise.
51414         * modules/utimensat-tests (Files): Likewise.
51416 2009-12-19  Eric Blake  <ebb9@byu.net>
51418         futimens, utimensat: work around Linux bug
51419         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
51420         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
51421         * lib/utimensat.c (rpl_utimensat): Work around it.
51422         * lib/futimens.c (rpl_futimens): Adjust comment.
51424         utimens: work around Linux ctime bug
51425         * lib/utimens.c (detect_ctime_bug): New helper function.
51426         (update_timespec): Differentiate between workaround needed for
51427         this bug vs. what is needed for systems that lack utimensat.
51428         (fdutimens, lutimens): Work around bug.
51430         utimens: check for ctime update
51431         * tests/test-utimens-common.h (check_ctime): Define.
51432         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
51433         * tests/test-futimens.h (test_futimens): Likewise.
51434         * tests/test-lutimens.h (test_lutimens): Likewise.
51435         * doc/posix-functions/futimens.texi (futimens): Document the bug.
51436         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
51438 2009-12-19  Bruno Haible  <bruno@clisp.org>
51440         dprintf-posix: Check against memory leak fixed on 2009-12-15.
51441         * tests/test-dprintf-posix2.sh: New file.
51442         * tests/test-dprintf-posix2.c: New file.
51443         * modules/dprintf-posix-tests (Files): Add them.
51444         (configure.ac): Check for getrlimit and setrlimit.
51445         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
51447 2009-12-19  Bruno Haible  <bruno@clisp.org>
51449         fprintf-posix: Check against memory leak fixed on 2009-12-15.
51450         * tests/test-fprintf-posix3.sh: New file.
51451         * tests/test-fprintf-posix3.c: New file.
51452         * modules/fprintf-posix-tests (Files): Add them.
51453         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
51455 2009-12-19  Eric Blake  <ebb9@byu.net>
51457         dirfd: fix prototype
51458         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
51459         * lib/dirfd.c (dirfd): Likewise.
51461         canonicalize: reduce memory usage
51462         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
51463         allocation to size.
51464         Reported by Solar Designer <solar@openwall.com>.
51466 2009-12-19  Bruno Haible  <bruno@clisp.org>
51468         New module attribute 'Applicability'.
51469         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
51470         * gnulib-tool: New option --extract-applicability.
51471         (func_usage): Document it.
51472         (sed_extract_prog): Recognize it.
51473         (func_get_applicability): New function.
51474         (func_import): Generalize handling of 'link-warning' module.
51475         * modules/link-warning (Applicability): New section.
51476         * modules/arg-nonnull (Applicability): New section.
51477         Repoted by Simon Josefsson <simon@josefsson.org>.
51479 2009-12-19  Bruno Haible  <bruno@clisp.org>
51481         fflush: tweak
51482         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
51483         * lib/fseeko.c (rpl_fseeko): Likewise.
51485 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
51487         * lib/gl_list.h: Fix typo in comment.
51489 2009-12-16  Eric Blake  <ebb9@byu.net>
51491         fcntl: use to simplify other modules
51492         * modules/cloexec (Depends-on): Add fcntl.
51493         * modules/fchdir (Depends-on): Likewise.
51494         * modules/fd-safer-flag (Depends-on): Likewise.
51495         * modules/unistd-safer (Depends-on): Likewise.
51496         * modules/dup3 (configure.ac): Set module indicator.
51497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
51498         missing.
51499         * lib/fchdir.c (_gl_register_dup): Fix comment.
51500         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
51501         * lib/dup-safer.c (dup_safer): Likewise.
51502         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
51503         * lib/dup3.c (dup3): Likewise.
51504         * tests/test-fchdir.c (main): Enhance test.
51505         Fixes a dup_cloexec bug reported by Ondřej Vašík.
51507         fcntl: port portions of fcntl to mingw
51508         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
51509         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
51510         replacement for mingw.
51511         * modules/fcntl (Description): Update.
51512         (Depends-on): Add dup2.
51513         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
51514         * modules/fcntl-h (Makefile.am): Substitute it.
51515         * lib/fcntl.in.h (fcntl): Update declaration.
51516         (F_DUPFD, F_GETFD): New macros, when needed.
51517         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
51518         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
51519         * tests/test-fcntl.c (check_flags, main): Enhance test for items
51520         we now guarantee.
51522         fcntl: work around cygwin bug in F_DUPFD
51523         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
51524         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
51525         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
51526         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
51527         * doc/posix-functions/fcntl.texi (fcntl): Document it.
51529         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
51530         * modules/fcntl (Files): List new files.
51531         (configure.ac): Run a test.
51532         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
51533         * lib/fcntl.c (rpl_fcntl): Likewise.
51534         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
51535         (gl_FCNTL_H): Always replace fcntl.h.
51536         * modules/fcntl-h (Makefile.am): Substitute witnesses.
51537         * lib/fcntl.in.h (fcntl): Declare replacement.
51538         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
51539         needed, plus a witness.
51540         * doc/posix-functions/fcntl.texi (fcntl): Document this.
51541         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
51542         * tests/test-fcntl.c: New file.
51543         * modules/fcntl-tests: Likewise.
51545         binary-io: avoid potential compilation warning
51546         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
51547         directives.
51549         fflush: avoid compilation error on NetBSD
51550         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
51551         between off_t and fpos_t, since the latter is sometimes a struct.
51552         * lib/fseeko.c (rpl_fseeko): Likewise.
51553         Reported by Alexander Nasonov <alnsn@yandex.ru>.
51555 2009-12-15  Eric Blake  <ebb9@byu.net>
51557         fcntl-h, stdio, sys_ioctl: fix declarations
51558         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
51559         function must not take arguments.
51560         * lib/sys_ioctl.in.h (ioctl): Likewise.
51561         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
51562         (open): Add a link warning.
51564 2009-12-15  Jim Meyering  <meyering@redhat.com>
51566         areadlink, areadlink-with-size: relax license to LGPLv2+
51567         * modules/areadlink (License): Relax to LGPLv2+.
51568         * modules/areadlink-with-size (License): Likewise.
51570 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
51571             Bruno Haible  <bruno@clisp.org>
51573         *printf: Fix memory leak.
51574         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
51575         * lib/vfprintf.c (vfprintf): Likewise.
51576         * lib/dprintf.c (dprintf): Likewise.
51577         * lib/vdprintf.c (vdprintf): Likewise.
51579 2009-12-14  Eric Blake  <ebb9@byu.net>
51581         accept4: adjust module dependencies
51582         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
51584         utimens: one more try at avoiding compiler warning
51585         * lib/utimens.c (lutimens): Lower scope of result.
51587 2009-12-13  Bruno Haible  <bruno@clisp.org>
51589         Move the malloc checking from module 'list' to new module 'xlist'.
51590         * modules/xlist: New file.
51591         * lib/gl_xlist.h: New file.
51592         * lib/gl_xlist.c: New file.
51593         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
51594         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
51595         gl_list_add_last, gl_list_add_before, gl_list_add_after,
51596         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
51597         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
51598         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
51599         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
51600         gl_sortedlist_nx_add): New declarations.
51601         (struct gl_list_implementation): Rename and change methods accordingly.
51602         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
51603         (gl_list_nx_create): Renamed from gl_list_create.
51604         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
51605         (gl_list_nx_set_at): Renamed from gl_list_set_at.
51606         (gl_list_nx_add_first): Renamed from gl_list_add_first.
51607         (gl_list_nx_add_last): Renamed from gl_list_add_last.
51608         (gl_list_nx_add_before): Renamed from gl_list_add_before.
51609         (gl_list_nx_add_after): Renamed from gl_list_add_after.
51610         (gl_list_nx_add_at): Renamed from gl_list_add_at.
51611         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
51612         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
51613         gl_list_create_empty.
51614         (gl_list_nx_create): Renamed from gl_list_create.
51615         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
51616         (gl_list_nx_set_at): Renamed from gl_list_set_at.
51617         (gl_list_nx_add_first): Renamed from gl_list_add_first.
51618         (gl_list_nx_add_last): Renamed from gl_list_add_last.
51619         (gl_list_nx_add_before): Renamed from gl_list_add_before.
51620         (gl_list_nx_add_after): Renamed from gl_list_add_after.
51621         (gl_list_nx_add_at): Renamed from gl_list_add_at.
51622         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
51623         * lib/gl_array_list.c: Don't include xalloc.h.
51624         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
51625         NULL upon out-of-memory.
51626         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
51627         out-of-memory.
51628         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
51629         Change return type to 'int'.
51630         (gl_array_nx_set_at): Renamed from gl_array_set_at.
51631         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
51632         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
51633         upon out-of-memory.
51634         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
51635         upon out-of-memory.
51636         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
51637         upon out-of-memory.
51638         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
51639         upon out-of-memory.
51640         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
51641         out-of-memory.
51642         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
51643         Update.
51644         (gl_array_list_implementation): Update.
51645         * lib/gl_carray_list.c: Don't include xalloc.h.
51646         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
51647         Return NULL upon out-of-memory.
51648         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
51649         out-of-memory.
51650         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
51651         Change return type to 'int'.
51652         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
51653         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
51654         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
51655         upon out-of-memory.
51656         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
51657         upon out-of-memory.
51658         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
51659         out-of-memory.
51660         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
51661         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
51662         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
51663         Update.
51664         (gl_carray_list_implementation): Update.
51665         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
51666         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
51667         gl_linked_create_empty. Return NULL upon out-of-memory.
51668         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
51669         out-of-memory.
51670         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
51671         Change return type to 'int'. Return -1 upon out-of-memory.
51672         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
51673         out-of-memory.
51674         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
51675         upon out-of-memory.
51676         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
51677         upon out-of-memory.
51678         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
51679         NULL upon out-of-memory.
51680         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
51681         upon out-of-memory.
51682         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
51683         out-of-memory.
51684         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
51685         Update.
51686         * lib/gl_linked_list.c: Don't include xalloc.h.
51687         (gl_linked_list_implementation): Update.
51688         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
51689         (add_to_bucket): Change return type to 'int'.
51690         (gl_linkedhash_list_implementation): Update.
51691         * lib/gl_anytree_list1.h (free_subtree): New function.
51692         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
51693         gl_tree_create_empty. Return NULL upon out-of-memory.
51694         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
51695         Change return type to 'int'. Return -1 upon out-of-memory.
51696         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
51697         out-of-memory.
51698         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
51699         (gl_tree_remove_node): New function, moved here from
51700         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
51701         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
51702         Update.
51703         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
51704         malloc, not xmalloc. Return NULL upon out-of-memory.
51705         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
51706         out-of-memory.
51707         (gl_tree_remove_node_from_tree): New function, extracted from
51708         gl_tree_remove_node.
51709         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
51710         upon out-of-memory.
51711         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
51712         out-of-memory.
51713         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
51714         upon out-of-memory.
51715         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
51716         upon out-of-memory.
51717         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
51718         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
51719         not xmalloc. Return NULL upon out-of-memory.
51720         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
51721         out-of-memory.
51722         (gl_tree_remove_node_from_tree): New function, extracted from
51723         gl_tree_remove_node.
51724         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
51725         upon out-of-memory.
51726         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
51727         out-of-memory.
51728         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
51729         upon out-of-memory.
51730         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
51731         upon out-of-memory.
51732         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
51733         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
51734         gl_anytree_list1.h before gl_anyavltree_list2.h.
51735         (gl_avltree_list_implementation): Update.
51736         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
51737         gl_anytree_list1.h before gl_anyavltree_list2.h.
51738         (gl_rbtree_list_implementation): Update.
51739         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
51740         Change return type to 'int'. Return -1 upon out-of-memory. Use
51741         __builtin_expect.
51742         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
51743         (gl_avltreehash_list_implementation): Update.
51744         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
51745         (gl_rbtreehash_list_implementation): Update.
51746         * modules/array-list (Depends-on): Remove xalloc.
51747         * modules/carray-list (Depends-on): Likewise.
51748         * modules/linked-list (Depends-on): Likewise.
51749         * modules/linkedhash-list (Depends-on): Likewise.
51750         * modules/avltree-list (Depends-on): Likewise.
51751         * modules/rbtree-list (Depends-on): Likewise.
51752         * modules/avltreehash-list (Depends-on): Likewise.
51753         * modules/rbtreehash-list (Depends-on): Likewise.
51755         * modules/xsublist: New file.
51756         * lib/gl_xsublist.h: New file.
51757         * lib/gl_xsublist.c: New file.
51758         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
51759         (gl_sublist_nx_create): New declaration.
51760         * lib/gl_sublist.c: Don't include xalloc.h.
51761         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
51762         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
51763         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
51764         Change return type to 'int'. Return -1 upon out-of-memory.
51765         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
51766         upon out-of-memory.
51767         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
51768         NULL upon out-of-memory.
51769         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
51770         upon out-of-memory.
51771         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
51772         NULL upon out-of-memory.
51773         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
51774         NULL upon out-of-memory.
51775         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
51776         upon out-of-memory.
51777         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
51778         (gl_sublist_list_implementation): Update.
51779         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
51780         upon out-of-memory.
51781         * modules/sublist (Depends-on): Remove xalloc.
51783         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
51784         * tests/test-carray_list.c: Likewise.
51785         * tests/test-linked_list.c: Likewise.
51786         * tests/test-linkedhash_list.c: Likewise.
51787         * tests/test-avltree_list.c: Likewise.
51788         * tests/test-rbtree_list.c: Likewise.
51789         * tests/test-avltreehash_list.c: Likewise.
51790         * tests/test-rbtreehash_list.c: Likewise.
51791         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
51792         * modules/carray-list-tests (Makefile.am): Likewise.
51793         * modules/linked-list-tests (Makefile.am): Likewise.
51794         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51795         * modules/avltree-list-tests (Makefile.am): Likewise.
51796         * modules/rbtree-list-tests (Makefile.am): Likewise.
51797         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51798         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51800         * NEWS: Mention the changes.
51802         * lib/clean-temp.c: Include gl_xlist.h.
51803         * modules/clean-temp (Depends-on): Add xlist.
51805         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
51806         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
51808         * tests/test-array_oset.c: Include gl_xlist.h.
51809         * modules/array-oset-tests (Depends-on): Add xlist.
51811         Reported by José E. Marchesi <jemarch@gnu.org>.
51813 2009-12-13  Bruno Haible  <bruno@clisp.org>
51815         Move the malloc checking from module 'oset' to new module 'xoset'.
51816         * modules/xoset: New file.
51817         * lib/gl_xoset.h: New file.
51818         * lib/gl_xoset.c: New file.
51819         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
51820         declarations.
51821         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
51822         (struct gl_oset_implementation): Rename and change methods accordingly.
51823         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
51824         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
51825         'int'. Mark as __warn_unused_result__.
51826         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
51827         gl_oset_create_empty.
51828         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
51829         'int'.
51830         * lib/gl_array_oset.c: Don't include xalloc.h.
51831         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
51832         malloc, not xmalloc.
51833         (grow): Change return type to 'int'. Don't call xalloc_die.
51834         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
51835         to 'int'.
51836         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
51837         'int'.
51838         (gl_array_oset_implementation): Update.
51839         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
51840         gl_tree_create_empty.
51841         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
51842         'int'.
51843         * lib/gl_avltree_oset.c: Don't include xalloc.h.
51844         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
51845         xmalloc.
51846         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
51847         not xmalloc.
51848         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
51849         xmalloc.
51850         (gl_avltree_oset_implementation): Update.
51851         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
51852         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
51853         xmalloc.
51854         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
51855         not xmalloc.
51856         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
51857         xmalloc.
51858         (gl_rbtree_oset_implementation): Update.
51859         * modules/array-oset (Depends-on): Remove xalloc.
51860         * modules/avltree-oset (Depends-on): Likewise.
51861         * modules/rbtree-oset (Depends-on): Likewise.
51862         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
51863         * tests/test-avltree_oset.c: Likewise.
51864         * tests/test-rbtree_oset.c: Likewise.
51865         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51866         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
51867         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51868         * NEWS: Mention the change.
51870 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
51872         maint.mk: allow a project to override release-prep commands
51873         * top/maint.mk (alpha, beta, stable): Move release-preparatory
51874         commands into a new rule.
51875         (release-prep): New rule.
51876         (release-prep-hook): New overridable variable.
51878 2009-12-13  Bruno Haible  <bruno@clisp.org>
51880         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
51882 2009-12-13  Jim Meyering  <meyering@redhat.com>
51884         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
51885         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
51887 2009-12-12  Bruno Haible  <bruno@clisp.org>
51889         duplocale: Tweak.
51890         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
51892 2009-12-12  Karl Berry  <karl@gnu.org>
51894         * config/srclist.txt (strtoll.c): tab changes, no more sync.
51896 2009-12-12  Bruno Haible  <bruno@clisp.org>
51898         * m4/po.m4: Undo incorrect untabification.
51900 2009-12-12  Bruno Haible  <bruno@clisp.org>
51902         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
51903         * modules/c-strtod (Depends-on): Add locale.
51904         * modules/c-strtold (Depends-on): Likewise.
51906 2009-12-12  Bruno Haible  <bruno@clisp.org>
51908         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
51910 2009-12-11  Eric Blake  <ebb9@byu.net>
51912         setenv: relax requirement in light of POSIX ruling
51913         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
51914         not NULL.
51915         * tests/test-setenv.c (main): Relax test.
51916         * tests/test-unsetenv.c (main): Likewise.
51917         * doc/posix-functions/setenv.texi (setenv): Document this.
51918         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
51920 2009-12-11  Bruno Haible  <bruno@clisp.org>
51922         New module 'fd-safer-flag'.
51923         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
51924         * lib/dup-safer.c (dup_safer_flag): Remove function.
51925         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
51926         * lib/fd-safer.c (fd_safer_flag): Remove function.
51927         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
51928         * modules/cloexec (configure.ac): Drop indicator macro.
51929         * modules/fd-safer-flag: New file.
51930         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
51931         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
51932         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
51934 2009-12-11  Bruno Haible  <bruno@clisp.org>
51936         Tests for module 'nl_langinfo'.
51937         * modules/nl_langinfo-tests: New file.
51938         * tests/test-nl_langinfo.sh: New file.
51939         * tests/test-nl_langinfo.c: New file.
51941         New module 'nl_langinfo'.
51942         * lib/nl_langinfo.c: New file.
51943         * m4/nl_langinfo.m4: New file.
51944         * modules/nl_langinfo: New file.
51945         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
51947 2009-12-11  Bruno Haible  <bruno@clisp.org>
51949         Tests for module 'langinfo'.
51950         * modules/langinfo-tests: New file.
51951         * tests/test-langinfo.c: New file.
51953         New module 'langinfo'.
51954         * lib/langinfo.in.h: New file.
51955         * m4/langinfo_h.m4: New file.
51956         * modules/langinfo: New file.
51957         * doc/posix-headers/langinfo.texi: Mention the new module.
51959 2009-12-11  Bruno Haible  <bruno@clisp.org>
51961         * lib/config.charset: Untabify.
51963 2009-12-11  Bruno Haible  <bruno@clisp.org>
51965         * modules/unistd-safer (configure.ac): Drop indicator macro.
51967 2009-12-11  Bruno Haible  <bruno@clisp.org>
51969         Move pipe2-safer code to its own file.
51970         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
51971         * lib/pipe-safer.c (pipe2_safer): Remove function.
51972         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
51973         (Makefile.am): Add it to lib_SOURCES.
51975 2009-12-10  Bruno Haible  <bruno@clisp.org>
51977         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
51979 2009-12-10  Bruno Haible  <bruno@clisp.org>
51981         Declare which arguments expect non-NULL values, for GCC and clang.
51982         * build-aux/arg-nonnull.h: New file.
51983         * modules/arg-nonnull: New file.
51984         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
51985         (inet_ntop, inet_pton): Use it.
51986         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
51987         (closedir, dirfd, opendir, scandir, alphasort): Use it.
51988         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
51989         (open, openat): Use it.
51990         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
51991         (fnmatch): Use it.
51992         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
51993         (getopt, getopt_long, getopt_long_only): Use it.
51994         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
51995         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
51996         Use it.
51997         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
51998         (iconv_open): Use it.
51999         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
52000         (strtoimax, strtoumax): Use it.
52001         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
52002         (duplocale): Use it.
52003         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
52004         (frexp, frexpl): Use it.
52005         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
52006         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
52007         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
52008         (tsearch, tfind, tdelete, twalk): Use it.
52009         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
52010         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
52011         sigpending): Use it.
52012         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
52013         (posix_spawn, posix_spawnp, posix_spawnattr_init,
52014         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
52015         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
52016         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
52017         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
52018         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
52019         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
52020         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
52021         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
52022         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
52023         Use it.
52024         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
52025         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
52026         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
52027         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
52028         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
52029         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
52030         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
52031         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
52032         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
52033         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
52034         strtoull, unsetenv): Use it.
52035         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
52036         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
52037         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
52038         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
52039         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
52040         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
52041         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
52042         (strcasecmp, strncasecmp): Use it.
52043         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
52044         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
52045         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
52046         rpl_setsockopt): Use it.
52047         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
52048         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
52049         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
52050         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
52051         (gettimeofday): Use it.
52052         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
52053         (times): Use it.
52054         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
52055         (uname): Use it.
52056         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
52057         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
52058         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
52059         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
52060         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
52061         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
52062         unlinkat, write): Use it.
52063         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
52064         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
52065         * lib/argv-iter.h: Include arg-nonnull.h.
52066         (_ATTRIBUTE_NONNULL_): Remove macro.
52067         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
52068         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
52069         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
52070         optimization.
52071         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
52072         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
52073         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
52074         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
52075         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
52076         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
52077         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
52078         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
52079         * modules/arpa_inet (Depends-on): Add arg-nonnull.
52080         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
52081         * modules/dirent (Depends-on): Add arg-nonnull.
52082         (Makefile.am): Insert arg-nonnull.h into dirent.h.
52083         * modules/fcntl-h (Depends-on): Add arg-nonnull.
52084         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
52085         * modules/fnmatch (Depends-on): Add arg-nonnull.
52086         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
52087         * modules/getopt-posix (Depends-on): Add arg-nonnull.
52088         (Makefile.am): Insert arg-nonnull.h into getopt.h.
52089         * modules/glob (Depends-on): Add arg-nonnull.
52090         (Makefile.am): Insert arg-nonnull.h into glob.h.
52091         * modules/iconv_open (Depends-on): Add arg-nonnull.
52092         (Makefile.am): Insert arg-nonnull.h into iconv.h.
52093         * modules/inttypes (Depends-on): Add arg-nonnull.
52094         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
52095         * modules/locale (Depends-on): Add arg-nonnull.
52096         (Makefile.am): Insert arg-nonnull.h into locale.h.
52097         * modules/math (Depends-on): Add arg-nonnull.
52098         (Makefile.am): Insert arg-nonnull.h into math.h.
52099         * modules/netdb (Depends-on): Add arg-nonnull.
52100         (Makefile.am): Insert arg-nonnull.h into netdb.h.
52101         * modules/search (Depends-on): Add arg-nonnull.
52102         (Makefile.am): Insert arg-nonnull.h into search.h.
52103         * modules/signal (Depends-on): Add arg-nonnull.
52104         (Makefile.am): Insert arg-nonnull.h into signal.h.
52105         * modules/spawn (Depends-on): Add arg-nonnull.
52106         (Makefile.am): Insert arg-nonnull.h into spawn.h.
52107         * modules/stdio (Depends-on): Add arg-nonnull.
52108         (Makefile.am): Insert arg-nonnull.h into stdio.h.
52109         * modules/stdlib (Depends-on): Add arg-nonnull.
52110         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
52111         * modules/string (Depends-on): Add arg-nonnull.
52112         (Makefile.am): Insert arg-nonnull.h into string.h.
52113         * modules/strings (Depends-on): Add arg-nonnull.
52114         (Makefile.am): Insert arg-nonnull.h into strings.h.
52115         * modules/sys_socket (Depends-on): Add arg-nonnull.
52116         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
52117         * modules/sys_stat (Depends-on): Add arg-nonnull.
52118         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
52119         * modules/sys_time (Depends-on): Add arg-nonnull.
52120         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
52121         * modules/sys_times (Depends-on): Add arg-nonnull.
52122         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
52123         * modules/sys_utsname (Depends-on): Add arg-nonnull.
52124         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
52125         * modules/time (Depends-on): Add arg-nonnull.
52126         (Makefile.am): Insert arg-nonnull.h into time.h.
52127         * modules/unistd (Depends-on): Add arg-nonnull.
52128         (Makefile.am): Insert arg-nonnull.h into unistd.h.
52129         * modules/wchar (Depends-on): Add arg-nonnull.
52130         (Makefile.am): Insert arg-nonnull.h into wchar.h.
52131         * modules/argv-iter (Depends-on): Add arg-nonnull.
52132         * tests/test-canonicalize.c (null_ptr): New function.
52133         (main): Use it.
52134         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
52135         (main): Use it.
52136         * tests/test-memmem.c (null_ptr): New function.
52137         (main): Use it.
52138         Reported by Jim Meyering.
52140 2009-12-10  Bruno Haible  <bruno@clisp.org>
52142         Use spaces for indentation, not tabs.
52143         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
52144         * m4/*.m4: Untabify.
52145         * build-aux/*.h: Untabify.
52146         * tests/**/*.[hc]: Untabify.
52147         * README: New section "Indent with spaces, not TABs", based on
52148         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
52149         * NEWS: Mention the change.
52151 2009-12-10  Bruno Haible  <bruno@clisp.org>
52153         pty test: Fix link error.
52154         * modules/pty-tests (Makefile.am): Add the default LDADD value to
52155         test_pty_LDADD.
52157 2009-12-07  Simon Josefsson  <simon@josefsson.org>
52159         * modules/pty: New file.
52160         * modules/pty-tests: New file.
52161         * m4/pty.m4: New file.
52162         * tests/test-pty.c: New file.
52163         * doc/glibc-headers/pty.texi: Modified.
52164         * doc/glibc-functions/forkpty.texi: Modified.
52165         * doc/glibc-functions/openpty.texi: Modified.
52167 2009-12-10  Bruno Haible  <bruno@clisp.org>
52169         Avoid syntax error in C++ mode.
52170         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
52172 2009-12-10  Bruno Haible  <bruno@clisp.org>
52174         Use sed with option -e.
52175         * gnulib-tool (func_version, func_emit_copyright_notice,
52176         func_emit_initmacro_end, func_import, func_create_testdir): Pass
52177         option -e to sed.
52178         * modules/link-warning (Makefile.am): Likewise.
52180 2009-12-10  Jim Meyering  <meyering@redhat.com>
52182         mgetgroups: do not write bytes beyond end of malloc'd buffer
52183         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
52184         username, we call getgroups with a one-element-shorter buffer,
52185         but still told it the length was original, max_n_groups.
52187 2009-12-09  Eric Blake  <ebb9@byu.net>
52189         cloexec: relax license
52190         * modules/cloexec (Maintainer): Add myself.
52191         (License): Use LGPL, not GPL.
52193         link-warning: optimize generation
52194         * modules/link-warning (Makefile.am): Reduce process usage.
52196 2009-12-09  Bruno Haible  <bruno@clisp.org>
52198         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
52199         workaround was added on 2009-11-17.
52201 2009-12-09  Jim Meyering  <meyering@redhat.com>
52202             Bruno Haible  <bruno@clisp.org>
52204         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
52205         * modules/link-warning (Makefile.am): Make the comment-removing sed
52206         command more robust in the face of bootstrap-prepended comment lines.
52208 2009-12-09  Bruno Haible  <bruno@clisp.org>
52210         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
52211         most one group.
52213 2009-12-09  Simon Josefsson <simon@josefsson.org>
52214             Bruno Haible  <bruno@clisp.org>
52216         * build-aux/link-warning.h: Add copyright notice.
52217         * modules/link-warning (Makefile.am): Generate link-warning.h from
52218         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
52219         * NEWS: Mention change in link-warning module.
52220         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
52221         * modules/dirent (Makefile.am): Add dependency to dirent.h.
52222         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
52223         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
52224         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
52225         * modules/math (Makefile.am): Add dependency to math.h.
52226         * modules/search (Makefile.am): Add dependency to search.h.
52227         * modules/signal (Makefile.am): Add dependency to signal.h.
52228         * modules/spawn (Makefile.am): Add dependency to spawn.h.
52229         * modules/stdio (Makefile.am): Add dependency to stdio.h.
52230         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
52231         * modules/string (Makefile.am): Add dependency to string.h.
52232         * modules/strings (Makefile.am): Add dependency to strings.h.
52233         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
52234         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
52235         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
52236         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
52237         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
52238         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
52239         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
52240         * modules/unistd (Makefile.am): Add dependency to unistd.h.
52241         * modules/wchar (Makefile.am): Add dependency to wchar.h.
52243 2009-12-09  Bruno Haible  <bruno@clisp.org>
52245         fchdir: Optimize away rpl_fstat when possible.
52246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
52247         REPLACE_OPEN_DIRECTORY.
52248         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
52250 2009-12-09  Bruno Haible  <bruno@clisp.org>
52252         * lib/fchdir.c: Update comment.
52254 2009-12-09  Bruno Haible  <bruno@clisp.org>
52256         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
52258 2009-12-08  Eric Blake  <ebb9@byu.net>
52260         fchdir: avoid memory leak on re-registration.
52261         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
52263 2009-12-08  Jim Meyering  <meyering@redhat.com>
52265         init.sh: avoid Solaris 10 /bin/sh portability problem
52266         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
52267         sourced script:
52268           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
52269           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
52270           bar
52271         tests/init.sh relied on that, accepting a --set-path=DIR argument,
52272         and two tests used that idiom.
52273         * tests/init.sh: Update suggested usage comments.
52274         (path_prepend_): New function, to be used in place
52275         of the --src-path=DIR option.
52276         (setup_): Move PATH-prepending code into path_prepend_.
52277         * tests/test-pread.sh: Adapt to new usage.
52278         * tests/test-xalloc-die.sh: Likewise.
52280 2009-12-08  Simon Josefsson  <simon@josefsson.org>
52282         * doc/gnulib.texi (Glibc pty.h): Add.
52283         * doc/glibc-functions/forkpty.texi: Add.
52284         * doc/glibc-functions/openpty.texi: Add.
52285         Suggested by Bruno Haible.
52287 2009-12-08  Eric Blake  <ebb9@byu.net>
52289         fchdir: fix logic bugs
52290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
52291         * tests/test-fchdir.c (main): Enhance test.
52292         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
52293         is in use.
52295         dup2: fix logic bugs
52296         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
52297         REPLACE_DUP2 to decide when rpl_dup2 is needed.
52298         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
52299         exists.
52300         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
52302 2009-12-07  Eric Blake  <ebb9@byu.net>
52304         unlink: fix m4 detection
52305         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
52307         unistd-safer: add unit test
52308         * modules/unistd-safer-tests: New file.
52309         * tests/test-dup-safer.c: Likewise.
52310         * tests/test-cloexec.c (setmode): Avoid compiler warning.
52311         * tests/test-dup2.c (setmode): Likewise.
52312         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
52314         cloexec: preserve text vs. binary across dup_cloexec
52315         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
52316         mode.
52317         * modules/dup2-tests (Depends-on): Add binary-io.
52318         * modules/cloexec-tests (Depends-on): Likewise.
52319         * tests/test-dup2.c (setmode, is_mode): New helpers.
52320         (main): Add tests that translation mode is preserved.
52321         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
52322         Reported by Bruno Haible.
52324         mgetgroups: reduce duplicate listings
52325         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
52326         resulting array.
52327         * tests/test-chown.h (test_chown): Simplify client.
52328         * tests/test-lchown.h (test_lchown): Likewise.
52330 2009-12-06  Bruno Haible  <bruno@clisp.org>
52332         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
52333         value.
52335 2009-12-06  Bruno Haible  <bruno@clisp.org>
52337         * lib/progname.c: Include stdio.h, stdlib.h.
52338         (set_program_name): Reject a NULL argument.
52340 2009-12-05  Eric Blake  <ebb9@byu.net>
52342         pipe2-safer: new module
52343         * modules/pipe2-safer: New file.
52344         * lib/unistd-safer.h (pipe2_safer): New prototype.
52345         * lib/unistd--.h (pipe2): New wrapper.
52346         * lib/pipe-safer.c (pipe2_safer): New function.
52347         * modules/pipe (Depends-on): Add pipe2-safer.
52348         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
52350         stdlib-safer: preserve cloexec flag for mkostemp[s]
52351         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
52352         fd_safer_flag.
52354         unistd-safer: allow preservation of cloexec status via flag
52355         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
52356         prototypes.
52357         * lib/dup-safer.c (dup_safer_flag): New function.
52358         * lib/fd-safer.c (fd_safer_flag): Likewise.
52359         * modules/cloexec (configure.ac): Set witness.
52361         test-dup2: enhance test
52362         * modules/dup2-tests (Depends-on): Add cloexec.
52363         * tests/test-dup2.c (main): Enhance test.
52365         cloexec: add dup_cloexec
52366         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
52367         header and comments.
52368         * lib/cloexec.c (set_cloexec_flag): Add comments.
52369         (dup_cloexec): New function, with mingw implementation borrowed
52370         from...
52371         * lib/w32spawn.h (dup_noinherit): ...here.
52372         * modules/execute (Depends-on): Add cloexec.
52373         * modules/pipe (Depends-on): Likewise.
52374         * modules/cloexec (Depends-on): Add dup2.
52375         * modules/cloexec-tests (Files): New file.
52376         * tests/test-cloexec.c: Likewise.
52378         test-xalloc-die: fix test for mingw
52379         * modules/xalloc-die-tests (Files): Add tests/init.sh.
52380         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
52381         directory and .exe suffix off argv[0] output.
52383         test-fseeko: fix test for mingw
52384         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
52385         than undefining fseek, so test will pass on mingw.
52387 2009-12-05  Bruno Haible  <bruno@clisp.org>
52389         * lib/progname.h (set_program_name): Clarify specification.
52390         * lib/progname.c (set_program_name): Likewise.
52391         Reported by Jim Meyering.
52393 2009-12-05  Jim Meyering  <meyering@redhat.com>
52395         maint.mk: backslash-escape parens in default regexp
52396         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
52397         backslash-escape the literal parentheses.
52399         maint.mk: news-date-check: use grep -E
52400         * top/maint.mk (today): Define a Make variable, not a...
52401         (news-date-check): ...shell variable.
52402         (news-date-regexp): Use the Make variable.
52403         Use grep's -E option.  Change the failing diagnostic to mention
52404         the variable, $(news-date-regexp).
52406 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
52408         maintainer-makefile: allow customization of NEWS entry format
52409         * top/maint.mk (news-date-regexp): New overridable variable.
52410         (news-date-check): Use it.
52412 2009-12-04  Eric Blake  <ebb9@byu.net>
52414         mgetgroups: add xgetgroups, and avoid ENOSYS failures
52415         * lib/mgetgroups.h (xgetgroups): New prototype.
52416         * lib/mgetgroups.c (xgetgroups): New wrapper.
52417         (mgetgroups): Handle ENOSYS.
52418         * modules/mgetgroups (Depends-on): Add realloc.
52419         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
52421         mgetgroups: avoid argument promotion issues with -1
52422         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
52423         for invalid gid_t.
52424         * tests/test-chown.h (getegid, test_chown): Likewise.
52425         * tests/test-lchown.h (getegid, test_lchown): Likewise.
52427 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
52429         exclude: Fix header file problems.
52430         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
52432 2009-12-01  Jim Meyering  <meyering@redhat.com>
52434         fts: fts_open: do not let an empty string cause immediate failure
52435         This is required in support of GNU rm, for which the command
52436         "rm A '' B" must process and remove both A and B, in spite of
52437         the empty string argument.
52438         * lib/fts.c (fts_open): Do not let the presence of an empty string
52439         cause fts_open to fail immediately.  Most fts-using tools must be
52440         able to process all arguments, in order, and can be expected to
52441         diagnose such arguments themselves.
52443 2009-11-30  Eric Blake  <ebb9@byu.net>
52445         utimens: fix compilation error
52446         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
52447         Declare variable at right scope.
52449 2009-11-29  Jim Meyering  <meyering@redhat.com>
52451         bootstrap: handle perl-5.11's changed --version output
52452         * build-aux/bootstrap (get_version): Handle perl separately,
52453         since perl-5.11's --version output is different.
52455 2009-11-28  Jim Meyering  <meyering@redhat.com>
52457         userspec: depend on the inttostr module, too
52458         * modules/userspec (Depends-on): Add inttostr.
52460         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
52461         * lib/userspec.c (parse_with_separator): Do not accept a user ID
52462         number of MAXUID when it evaluates to (uid_t) -1.
52463         Likewise for group ID.  Reported by Matt McCutchen in
52464         <http://savannah.gnu.org/bugs/?28113>
52466         userspec: reformat to use spaces, not TABs
52467         * lib/userspec.c: Expand TABs to spaces.
52468         Add Emacs' "indent-tabs-mode: nil" hint.
52470 2009-11-27  Eric Blake  <ebb9@byu.net>
52472         getopt-gnu: flush out another BSD bug
52473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
52474         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
52475         flush out BSD bug.
52476         * tests/test-getopt.h (test_getopt): End lists with NULL.
52477         * tests/test-getopt_long.h (test_getopt_long): Likewise.
52478         (test_getopt_long_posix): Enhance test.
52479         * modules/getopt-posix-tests (Depends-on): Add stdbool.
52480         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
52481         getopt-gnu.
52482         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52483         Likewise.
52485 2009-11-27  Simon Josefsson  <simon@josefsson.org>
52487         * modules/idpriv-droptemp-tests (Notice): Fix text.
52489 2009-11-27  Jim Meyering  <meyering@redhat.com>
52491         test-xalloc-die: avoid spurious failure due to libtool argv difference
52492         In a libtool-enabled project, this test would fail due to a difference
52493         in the emitted program name, e.g.,
52494         -test-xalloc-die: memory exhausted
52495         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
52496         Use program to avoid that.
52497         * modules/xalloc-die-tests (Depends-on): Add progname.
52498         * tests/test-xalloc-die.c: Include progname.h".
52499         (program_name): Remove decl.
52500         (main): Call set_program_name.
52501         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
52503 2009-11-26  Richard Jones  <rjones@redhat.com>
52505         w32sock: leave win32 error in place.
52506         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
52508 2009-11-26  Eric Blake  <ebb9@byu.net>
52510         init.sh: suggest to use skip_ and fail_ functions in comments
52511         * tests/init.sh: Add a sentence.
52513 2009-11-25  Bruno Haible  <bruno@clisp.org>
52515         init.sh: add documentation in comments
52516         * tests/init.sh: Add some developer and user documentation.
52518 2009-11-26  Jim Meyering  <meyering@redhat.com>
52520         init.sh: accommodate even those who specify bogus srcdir manually
52521         * tests/init.sh: Normally, srcdir is guaranteed by automake and
52522         configure-time tests to be sanitized, so that there is no need to
52523         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
52524         (with no double quotes) suffices.  However, since tests may be
52525         invoked manually, and since you may explicitly set srcdir to the
52526         name of a directory containing spaces, do quote its uses here.
52527         * tests/test-pread.sh: Likewise.
52528         Suggested by Bruno Haible.
52530         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
52531         * tests/test-pread.sh: Write no data into the pipe, because
52532         test-pread actually reads none.  This avoids a diagnostic,
52533         "bash: echo: write error: Broken pipe", that arises in the unusual
52534         event something is ignoring SIGPIPE, and might be interpreted
52535         as some sort of failure.  Reported by Bruno Haible.
52537 2009-11-25  Jim Meyering  <meyering@redhat.com>
52539         test-pread: cover failure with ESPIPE and EINVAL
52540         * tests/test-pread.c (main): Test for failure, too.
52541         * tests/test-pread.sh: Invoke with stdin on a pipe.
52542         Suggested by Eric Blake.
52544         pread: improvement and fix
52545         * modules/pread (Depends-on): Depend on lseek, for portability to
52546         e.g., mingw.  Suggested by Eric Blake.
52547         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
52549         unistd.in.h: correct declaration of pread
52550         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
52551         Reported by Richard W.M. Jones.
52553         test-pread.sh: distribute the test script
52554         * modules/pread-tests (Files): Include test-pread.sh.
52556         test-pread.sh: clean up
52557         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
52558         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
52559         That is unnecessary, since it's always ".".
52560         Suggestion from Eric Blake.
52562         test-pread.sh: make executable
52563         * tests/test-pread.sh: Set executable bit.
52564         Reported by Eric Blake.
52566         correct typo in test-pread.sh
52567         * tests/test-pread.sh: Add #! line.
52569         test pread
52570         * tests/test-pread.c: New file.
52571         * tests/test-pread.sh: Likewise.
52572         * modules/pread-tests: Likewise.
52574         pread: new module
52575         * modules/pread: New file.
52576         * lib/unistd.in.h (pread): Define/declare.
52577         * lib/pread.c (pread): New file.
52578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
52579         * modules/unistd (Makefile.am): Substitute witnesses.
52580         * doc/posix-functions/pread.texi (pread): Update.
52581         * MODULES.html.sh: Add pread.
52583 2009-11-25  Jim Meyering  <meyering@redhat.com>
52585         tests/init.sh: new file to be used via most *.sh tests
52586         * tests/init.sh: New file.
52588 2009-11-25  Eric Blake  <ebb9@byu.net>
52590         utimens: work around older Linux failure with symlinks
52591         * lib/utimens.c (lutimensat_works_really): New variable.
52592         (fdutimens, lutimens): Use it to manage kernels that support
52593         nanosecond times on files, but not on symlinks.
52594         Reported by Ondřej Vašík.
52596         utimes: fix configure grammar
52597         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
52599 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
52601         regex: Fix fastmap for multibyte character ranges.
52602         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
52603         characters when a multibyte character range is included.
52605 2009-11-22  Andy Wingo  <wingo@pobox.com>
52607         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
52608         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
52610 2009-11-24  Bruno Haible  <bruno@clisp.org>
52612         doc: Most *_l functions exist in MacOS X 10.5.
52613         * doc/posix-functions/duplocale.texi: Update platforms list.
52614         * doc/posix-functions/freelocale.texi: Likewise.
52615         * doc/posix-functions/newlocale.texi: Likewise.
52616         * doc/posix-functions/uselocale.texi: Likewise.
52617         * doc/posix-functions/isalnum_l.texi: Likewise.
52618         * doc/posix-functions/isalpha_l.texi: Likewise.
52619         * doc/posix-functions/isblank_l.texi: Likewise.
52620         * doc/posix-functions/iscntrl_l.texi: Likewise.
52621         * doc/posix-functions/isdigit_l.texi: Likewise.
52622         * doc/posix-functions/isgraph_l.texi: Likewise.
52623         * doc/posix-functions/islower_l.texi: Likewise.
52624         * doc/posix-functions/isprint_l.texi: Likewise.
52625         * doc/posix-functions/ispunct_l.texi: Likewise.
52626         * doc/posix-functions/isspace_l.texi: Likewise.
52627         * doc/posix-functions/isupper_l.texi: Likewise.
52628         * doc/posix-functions/iswalnum_l.texi: Likewise.
52629         * doc/posix-functions/iswalpha_l.texi: Likewise.
52630         * doc/posix-functions/iswblank_l.texi: Likewise.
52631         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52632         * doc/posix-functions/iswctype_l.texi: Likewise.
52633         * doc/posix-functions/iswdigit_l.texi: Likewise.
52634         * doc/posix-functions/iswgraph_l.texi: Likewise.
52635         * doc/posix-functions/iswlower_l.texi: Likewise.
52636         * doc/posix-functions/iswprint_l.texi: Likewise.
52637         * doc/posix-functions/iswpunct_l.texi: Likewise.
52638         * doc/posix-functions/iswspace_l.texi: Likewise.
52639         * doc/posix-functions/iswupper_l.texi: Likewise.
52640         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52641         * doc/posix-functions/isxdigit_l.texi: Likewise.
52642         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
52643         * doc/posix-functions/strcasecmp_l.texi: Likewise.
52644         * doc/posix-functions/strcoll_l.texi: Likewise.
52645         * doc/posix-functions/strfmon_l.texi: Likewise.
52646         * doc/posix-functions/strftime_l.texi: Likewise.
52647         * doc/posix-functions/strncasecmp_l.texi: Likewise.
52648         * doc/posix-functions/strxfrm_l.texi: Likewise.
52649         * doc/posix-functions/tolower_l.texi: Likewise.
52650         * doc/posix-functions/toupper_l.texi: Likewise.
52651         * doc/posix-functions/towctrans_l.texi: Likewise.
52652         * doc/posix-functions/towlower_l.texi: Likewise.
52653         * doc/posix-functions/towupper_l.texi: Likewise.
52654         * doc/posix-functions/wcscoll_l.texi: Likewise.
52655         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52656         * doc/posix-functions/wctrans_l.texi: Likewise.
52657         * doc/posix-functions/wctype_l.texi: Likewise.
52658         * doc/glibc-functions/strptime_l.texi: Likewise.
52659         * doc/glibc-functions/strtod_l.texi: Likewise.
52660         * doc/glibc-functions/strtof_l.texi: Likewise.
52661         * doc/glibc-functions/strtol_l.texi: Likewise.
52662         * doc/glibc-functions/strtold_l.texi: Likewise.
52663         * doc/glibc-functions/strtoll_l.texi: Likewise.
52664         * doc/glibc-functions/strtoul_l.texi: Likewise.
52665         * doc/glibc-functions/strtoull_l.texi: Likewise.
52666         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52667         * doc/glibc-functions/wcstod_l.texi: Likewise.
52668         * doc/glibc-functions/wcstof_l.texi: Likewise.
52669         * doc/glibc-functions/wcstol_l.texi: Likewise.
52670         * doc/glibc-functions/wcstold_l.texi: Likewise.
52671         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52672         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52673         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52675 2009-11-24  Bruno Haible  <bruno@clisp.org>
52677         duplocale: Fix logic bug.
52678         * lib/duplocale.c: Don't include <langinfo.h>.
52679         (_NL_LOCALE_NAME): Remove macro.
52680         (rpl_duplocale): Use setlocale instead of nl_langinfo.
52681         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
52683 2009-11-23  Jim Meyering  <meyering@redhat.com>
52685         test-update-copyright: don't hard-code /usr/bin/perl
52686         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
52687         perl to print the current year.  Gilles Espinasse reported that
52688         the replaced use of perl was hard-coded as /usr/bin/perl.
52690 2009-11-23  Bruno Haible  <bruno@clisp.org>
52692         duplocale: Add support for glibc 2.3.x.
52693         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
52695 2009-11-22  Bruno Haible  <bruno@clisp.org>
52697         vasnprintf: Tiny optimization.
52698         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
52699         MacOS X.
52701 2009-11-22  Bruno Haible  <bruno@clisp.org>
52703         Tests for module 'duplocale'.
52704         * modules/duplocale-tests: New file.
52705         * tests/test-duplocale.c: New file.
52707         New module 'duplocale'.
52708         * m4/duplocale.m4: New file.
52709         * lib/locale.in.h (duplocale): New declaration.
52710         * lib/duplocale.c: New file.
52711         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
52712         gl_LOCALE_H_DEFAULTS): New macros.
52713         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
52714         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
52715         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
52716         REPLACE_DUPLOCALE.
52717         * modules/duplocale: New file.
52718         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
52720 2009-11-22  Bruno Haible  <bruno@clisp.org>
52722         * modules/locale-tests (configure.ac): Test for newlocale function.
52723         * tests/test-locale.c: When the system has extended locale functions,
52724         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
52726         locale: Make locale_t available when possible.
52727         * lib/locale.in.h: Include <xlocale.h> when it exists.
52728         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
52729         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
52730         * modules/locale (Depends-on): Add extensions.
52731         (Makefile.am): Also substitute HAVE_XLOCALE_H.
52732         * doc/posix-headers/locale.texi: Document the problem with locale_t.
52734 2009-11-22  Bruno Haible  <bruno@clisp.org>
52736         Add comments.
52737         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
52738         invocation.
52739         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52740         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52741         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52743 2009-11-22  Bruno Haible  <bruno@clisp.org>
52745         error: account for the possibility of freopen (stdout).
52746         * lib/error.c: Include <unistd.h>.
52747         (flush_stdout): New function, extracted from error and error_at_line.
52748         Determine stdout's fd dynamically.
52749         (error, error_at_line): Invoke flush_stdout.
52750         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
52751         * modules/error (Depends-on): Add unistd.
52753 2009-11-22  Bruno Haible  <bruno@clisp.org>
52755         diffseq: Add comment.
52756         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
52758 2009-11-22  Jim Meyering  <meyering@redhat.com>
52760         c-stack: avoid defining an unused static function
52761         * lib/c-stack.c (find_stack_direction): Do not define this function
52762         when it will not be used.
52764         diffseq: avoid spurious gcc warnings
52765         * lib/diffseq.h (IF_LINT2): Define.
52766         (compareseq): Use it to initialize two members of "part".
52767         This avoids two used-uninitialized warnings.
52769 2009-11-21  Jim Meyering  <meyering@redhat.com>
52771         c-stack: avoid "ignoring return value of `write'" warning
52772         * lib/c-stack.c: Include "ignore-value.h".
52773         (die): Explicitly ignore each write return value.
52774         * modules/c-stack (Depends-on): Add ignore-value.
52776 2009-11-21  Bruno Haible  <bruno@clisp.org>
52778         diffseq: reduce scope of variable 'best'.
52779         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
52780         variable, earlier used for two different purposes.
52782 2009-11-21  Jim Meyering  <meyering@redhat.com>
52784         diffseq: remove useless assignment to "best"
52785         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
52786         assignment.  At that point "best" is already guaranteed to be zero.
52788 2009-11-20  Eric Blake  <ebb9@byu.net>
52790         build: mention ftp redirector in release announcements
52791         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
52792         values that used to come from cfg.mk; mention FTP redirect URL.
52793         * build-aux/announce-gen: Mention the mirror list.
52794         Suggested by Karl Berry.
52796         nanosleep: improve port to mingw
52797         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
52798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
52799         LIB_NANOSLEEP, but only when needed.
52800         * modules/select (Link): Document LIBSOCKET.
52801         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
52802         enough.
52804         nanosleep: work around cygwin bug
52805         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
52806         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
52807         bug.
52808         (getnow): Delete, not needed.
52809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
52810         LIB_CLOCK_GETTIME.
52811         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
52812         clock-time, gettime.
52813         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
52814         bug.
52815         * modules/nanosleep-tests: New test.
52816         * tests/test-nanosleep.c: New file.
52818         sleep: work around cygwin bug
52819         * lib/sleep.c (rpl_sleep): Work around the bug.
52820         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
52821         (gl_PREREQ_SLEEP): Delete unused macro.
52822         * modules/sleep (Depends-on): Add verify.
52823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
52824         * modules/unistd (Makefile.am): Substitute witness.
52825         * lib/unistd.in.h (sleep): Update prototype.
52826         * doc/posix-functions/sleep.texi (sleep): Document the bug.
52827         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
52828         * modules/sleep-tests (Depends-on): Check for alarm.
52830 2009-11-20  Jim Meyering  <meyering@redhat.com>
52832         maint.mk: improve sc_prohibit_magic_number_exit
52833         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
52834         so it does not match uses like System.exit(1).
52835         Add comments showing how to correct all offenders.
52837 2009-11-19  Eric Blake  <ebb9@byu.net>
52839         xalloc-die-tests: add missing library
52840         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
52842         test-xvasprintf: silence compiler warnings
52843         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
52844         empty string from gcc.
52846 2009-11-19  Jim Meyering  <meyering@redhat.com>
52848         xfreopen: new module, from coreutils
52849         * modules/xfreopen: New module.
52850         * lib/xfreopen.c: New file.
52851         * lib/xfreopen.h: New file.
52852         * MODULES.html.sh (File stream based Input/Output"): Add it.
52854 2009-11-19  Eric Blake  <ebb9@byu.net>
52856         manywarnings: depend on warnings
52857         * modules/manywarnings (Depends-on): Add warnings.
52859         build: avoid compiler warnings
52860         * lib/select.c (rpl_select): Delete unused variable.
52861         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
52863 2009-11-18  Eric Blake  <ebb9@byu.net>
52865         tests: avoid false negative with --with-packager
52866         * tests/test-version-etc.sh: Discard packager information.
52867         * tests/test-argp-version-etc-1.sh: Likewise.
52868         Reported by Mike Frysinger.
52870         utimens: fix regression on Solaris
52871         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
52872         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
52873         can only change fd timestamps via futimesat.  Instead, use an
52874         additional witness macro to avoid BSD bug.
52875         Reported by Jim Meyering.
52877 2009-11-17  Eric Blake  <ebb9@byu.net>
52879         usleep: use it to simplify tests
52880         * modules/stat-time-tests (Depends-on): Add usleep.
52881         (configure.ac): Drop usleep check.
52882         * modules/chown-tests (Depends-on, configure.ac): Likewise.
52883         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
52884         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
52885         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
52886         * modules/openat-tests (Depends-on, configure.ac): Likewise.
52887         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
52888         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
52889         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
52890         Likewise.
52891         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
52892         * tests/test-lchown.h (nap): Likewise.
52893         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
52894         * tests/test-stat-time.c (nap): Likewise.
52895         * tests/test-utimens-common.h (nap): Update comments.
52897         usleep: new module
52898         * modules/usleep: New file.
52899         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
52900         * lib/usleep.c (usleep): Likewise.
52901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
52902         * modules/unistd (Makefile.am): Substitute witnesses.
52903         * lib/unistd.in.h (usleep): Add declaration.
52904         * doc/pastposix-functions/usleep.texi (usleep): Document this.
52905         * MODULES.html.sh (Date and time): Likewise.
52906         * modules/usleep-tests (Depends-on): New test.
52907         * tests/test-usleep.c: New file.
52909         chown: work around OpenBSD bug
52910         * lib/chown.c (rpl_chown): Work around the bug.
52911         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
52912         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
52913         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
52914         * modules/chown (Depends-on): Add stdbool.
52915         * modules/lchown (Depends-on): Likewise.
52916         * doc/posix-functions/chown.texi (chown): Document the bug.
52917         * doc/posix-functions/lchown.texi (lchown): Likewise.
52918         * tests/test-lchown.h (test_chown): Relax test.
52920         mkstemp: avoid conflict with C++ keyword template
52921         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
52922         * lib/mkostemp.c (mkostemp): Likewise.
52923         * lib/mkostemps.c (mkostemps): Likewise.
52924         * lib/mkstemp.c (mkstemp): Likewise.
52925         * lib/mkstemps.c (mkstemps): Likewise.
52927         xalloc-die-tests: optimize
52928         * tests/test-xalloc-die.sh: Reduce number of processes.
52930 2009-11-17  Simon Josefsson  <simon@josefsson.org>
52932         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
52933         patch from ludo@gnu.org (Ludovic Courtès).
52935 2009-11-17  Jim Meyering  <meyering@redhat.com>
52937         version-etc: use proper license string
52938         * modules/version-etc (License): Use LGPL, not LGPLv3+.
52939         * modules/version-etc-fsf: Likewise.
52941 2009-11-17  Simon Josefsson  <simon@josefsson.org>
52943         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
52944         printed to stdout.  Deal with EOL differences.
52946 2009-11-17  Eric Blake  <ebb9@byu.net>
52948         unsetenv: work around Solaris bug
52949         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
52950         * lib/unsetenv.c (rpl_unsetenv): Work around it.
52951         Reported by Jim Meyering.
52953         vasnprintf: avoid compiler warnings
52954         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
52955         variables.
52956         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
52958 2009-11-17  Simon Josefsson  <simon@josefsson.org>
52960         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
52961         settings since xalloc-die is no longer the self test,
52962         xalloc-die.sh is.
52964 2009-11-17  Jim Meyering  <meyering@redhat.com>
52966         test-xalloc-die.sh: make the code agree with the commit log
52967         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
52968         at the end, just in case you happen to have a test-xalloc-die
52969         program in some other PATH directory.
52971         test-xalloc-die.sh: fix a portability bug
52972         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
52973         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
52974         Otherwise, argv[0] (as often seen in diagnostics) would be too
52975         system-dependent, sometimes with, and sometimes without the leading "./".
52977         version-etc-fsf: relax license to LGPLv3+
52978         * modules/version-etc-fsf (License): Relax license.
52980 2009-11-16  Eric Blake  <ebb9@byu.net>
52982         xalloc-die-tests: avoid printing null pointer
52983         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
52984         shell script.
52985         * tests/test-xalloc-die.c (program_name): Declare.
52986         * tests/test-xalloc-die.sh (tmpfiles): New file.
52988         setenv, unsetenv: work around various bugs
52989         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
52990         (setenv) [HAVE_SETENV]: Work around bugs.
52991         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
52992         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
52993         for bugs.
52994         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
52995         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
52996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
52997         * modules/stdlib (Makefile.am): Update substitutions.
52998         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
52999         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
53000         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
53001         * modules/setenv-tests: New test.
53002         * modules/unsetenv-tests: Likewise.
53003         * tests/test-setenv.c: New file.
53004         * tests/test-unsetenv.c: Likewise.
53006 2009-11-16  Jim Meyering  <meyering@redhat.com>
53008         version-etc: relax license to LGPLv3+
53009         * modules/version-etc (License): Relax license.
53011         better AC_REQUIRE expanded-before-required-warning avoidance
53012         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
53013         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
53014         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
53015         which is no longer needed.
53017 2009-11-16  Eric Blake  <ebb9@byu.net>
53019         test-freading: clean up temporary file
53020         * tests/test-freading.c (main): Remove file on success, and use
53021         ASSERT more liberally.
53022         Reported by Jim Meyering.
53024 2009-11-16  Jim Meyering  <meyering@redhat.com>
53026         avoid new AC_REQUIRE expanded-before-required warnings
53027         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
53028         merely using it.
53029         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
53030         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
53032 2009-11-15  Simon Josefsson  <simon@josefsson.org>
53034         * tests/test-xalloc-die.c: New file.
53035         * modules/xalloc-die-tests: New file.
53036         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
53037         XFAIL_TESTS so it can be appended by modules.
53039 2009-11-15  Simon Josefsson  <simon@josefsson.org>
53041         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
53042         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
53044 2009-11-14  Eric Blake  <ebb9@byu.net>
53046         fnmatch: avoid compiler warning
53047         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
53048         to silence compiler warning about mismatch signedness in ?:.
53049         Reported by Robert Millan.
53051         intprops: add double-inclusion guard
53052         * lib/intprops.h: Allow idempotent includes.
53053         Suggested by Bruce Korb.
53055         openat: detect Solaris fchownat bug
53056         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
53057         penalizing glibc chownat when only lchownat is broken.
53058         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
53059         trailing slash bugs.
53060         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
53061         * modules/openat-tests (Files): Include more files.
53062         (Depends-on): Add mgetgroups, sleep, stat-time.
53063         (configure.ac): Add additional checks.
53064         (Makefile.am): Build new test.
53065         * tests/test-fchownat.c: New file.
53067         lchown: detect Solaris and FreeBSD bug
53068         * lib/lchown.c (rpl_lchown): Work around bug.
53069         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
53070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
53071         * modules/unistd (Makefile.am): Populate it.
53072         * lib/unistd.in.h (lchown): Update declaration.
53073         * doc/posix-functions/lchown.texi (lchown): Document the bug.
53074         * modules/lchown-tests: New file.
53075         * tests/test-lchown.h (test_lchown): Likewise.
53076         * tests/test-lchown.c (main): Likewise.
53078         chown: detect Solaris and FreeBSD bug
53079         * lib/chown.c (rpl_chown): Work around bug.
53080         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
53081         (gl_PREREQ_CHOWN): Delete.
53082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
53083         * modules/unistd (Makefile.am): Populate it.
53084         * lib/unistd.in.h (chown): Update declaration.
53085         * lib/lchown.c (chown): Update client.
53086         * modules/lchown (Depends-on): Add lstat.
53087         * doc/posix-functions/chown.texi (chown): Document the bug.
53088         * doc/posix-functions/getgroups.texi (getgroups): Document
53089         getgroups pitfall.
53090         * modules/chown-tests: New file.
53091         * tests/test-chown.h (test_chown): Likewise.
53092         * tests/test-chown.c (main): Likewise.
53094 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
53096         gnulib-tool: correctly detect absence of m4 directories
53097         * gnulib-tool: Avoid extra newline on data passed to wc -l.
53099 2009-11-14  Jim Meyering  <meyering@redhat.com>
53101         maint.mk: Prohibit inclusion of "xalloc.h" without use.
53102         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
53104 2009-11-14  John W. Eaton  <jwe@gnu.org>
53106         strftime.h: wrap function declaration in extern "C" block
53107         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
53109 2009-11-13  Eric Blake  <ebb9@byu.net>
53111         getgroups: avoid compiler warning
53112         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
53114         getgroups: work around FreeBSD bug
53115         * lib/getgroups.c (rpl_getgroups): Work around the bug.
53116         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
53117         * doc/posix-functions/getgroups.texi (getgroups): Document it.
53118         * tests/test-getgroups.c (main): Fix buffer overrun.
53120         getgroups: avoid compilation failure
53121         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
53122         * modules/getgroups (Depends-on): Add stdint.
53124 2009-11-13  Jim Meyering  <meyering@redhat.com>
53126         test-getgroups: avoid compilation failure
53127         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
53129 2009-11-13  Eric Blake  <ebb9@byu.net>
53131         mgetgroups: new module, taken from coreutils
53132         * modules/mgetgroups: New file.
53133         * lib/mgetgroups.h: Likewise.
53134         * lib/mgetgroups.c (mgetgroups): Likewise.
53135         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
53136         * MODULES.html.sh (Users and groups): Mention it.
53138         getgroups: don't expose GETGROUPS_T to user
53139         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
53140         an element at a time if GETGROUPS_T is wrong size.
53141         * lib/getugroups.h (getugroups): Change signature.
53142         * lib/unistd.in.h (getgroups): Likewise.
53143         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
53144         signature needs fixing.
53145         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
53146         AC_TYPE_GETGROUPS.
53147         * modules/group-member (Depends-on): Add getgroups.
53148         * lib/group-member.c (group_info, get_group_info): Use gid_t.
53149         (group_member): Rely on getgroups replacement.
53150         * lib/getugroups.c (getugroups): Use gid_t.
53151         * tests/test-getgroups.c (main): Likewise.
53152         * NEWS: Mention the signature change.
53153         * doc/posix-functions/getgroups.texi (getgroups): Mention the
53154         problem with signature.
53155         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
53156         GETGROUPS_T is still useful for setgroups.
53158         getgroups, getugroups: provide stubs for mingw
53159         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
53160         * lib/getugroups.c (getugroups): Likewise.
53161         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
53162         function.  Modernize replacement scheme.
53163         (gl_PREREQ_GETGROUPS): Delete.
53164         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
53165         * modules/getgroups (configure.ac): Declare witness.
53166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
53167         * modules/unistd (Depends-on): Substitute witness.
53168         * lib/unistd.in.h (getgroups): Declare replacement.
53170         getgroups: avoid calling exit
53171         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
53172         drop xalloc.
53173         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
53174         dependencies.
53175         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
53176         exiting, in the rare case of malloc failure.
53178         getgroups: fix logic error
53179         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
53180         has more than 20 groups.
53181         * modules/getgroups-tests: New test.
53182         * tests/test-getgroups.c: New file.
53184 2009-11-13  Simon Josefsson  <simon@josefsson.org>
53186         * tests/test-base64.c: Improve.
53188 2009-11-13  Simon Josefsson  <simon@josefsson.org>
53190         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
53191         Blake <ebb9@byu.net>.
53193 2009-11-13  Simon Josefsson  <simon@josefsson.org>
53195         * tests/test-xvasprintf.c: Add %s%s related checks.
53197 2009-11-12  Eric Blake  <ebb9@byu.net>
53199         version-etc: match standards.texi style
53200         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
53201         and use <> only for URLs.
53203 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
53205         fts: do not fail on a submount during traversal
53206         * lib/fts.c (fts_build): Read the stat info again after opening
53207         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
53208         Original report at http://bugzilla.redhat.com/501848.
53210 2009-11-12  Jim Meyering  <meyering@redhat.com>
53212         bootstrap: sync from coreutils
53213         * build-aux/bootstrap (bootstrap_epilogue): New function.
53214         Use git_modules_config in one more place.  This make bootstrap's
53215         --gnulib-srcdir option more useful for testing.
53217         bootstrap: generalize autoheader check
53218         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
53219         AC_CONFIG_HEADERS.
53221 2009-11-11  Eric Blake  <ebb9@byu.net>
53223         mkfifoat: use new modules for Solaris and BSD bugs
53224         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
53225         * lib/mkfifoat.c (mknodat): Split...
53226         * lib/mknodat.c (mknodat): ...into new file.
53227         * modules/mkfifoat (Files): Ship new file.
53228         (Depends-on): Add mkfifo, mknod.
53229         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
53230         (Depends-on): Add symlink.
53231         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
53232         redundant with test_mkfifo.h.
53233         (do_mkfifoat, do_mknodat): New helpers.
53235         mknod: new module
53236         * modules/mknod: New file.
53237         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
53238         * lib/mknod.c (mknod): Likewise.
53239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
53240         defaults.
53241         * modules/sys_stat (Makefile.am): Substitute them.
53242         * lib/sys_stat.in.h (mknod): Declare replacement.
53243         * MODULES.html.sh (Support for systems lacking POSIX:2008):
53244         Document it.
53245         * doc/posix-functions/mknod.texi (mknod): Likewise.
53246         * modules/mknod-tests: New test.
53247         * tests/test-mknod.c: Likewise.
53249         mkfifo: new module
53250         * modules/mkfifo: New file.
53251         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
53252         * lib/mkfifo.c (mkfifo): Likewise.
53253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
53254         defaults.
53255         * modules/sys_stat (Makefile.am): Substitute them.
53256         * lib/sys_stat.in.h (mkfifo): Declare replacement.
53257         * MODULES.html.sh (Support for systems lacking POSIX:2008):
53258         Document it.
53259         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
53260         * modules/mkfifo-tests: New test.
53261         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
53262         from test-mkfifoat.c.
53263         * tests/test-mkfifo.c: New file.
53265         readlink: detect FreeBSD bug
53266         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
53267         slash on symlink.
53268         * doc/posix-functions/readlink.texi (readlink): Document the bug.
53269         * tests/test-readlink.h (test_readlink): Enhance test.
53271         symlink: detect FreeBSD bug
53272         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
53273         slash on symlink.
53274         * doc/posix-functions/symlink.texi (symlink): Document the bug.
53275         * tests/test-symlink.h (test_symlink): Enhance test.
53277 2009-11-10  Eric Blake  <ebb9@byu.net>
53279         link: detect FreeBSD bug
53280         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
53281         symlink.
53282         * doc/posix-functions/link.texi (link): Document the bug.
53283         * tests/test-link.h (test_link): Enhance test.
53284         * tests/test-linkat.c (main): Update caller.
53286         unlink, remove: detect FreeBSD bug
53287         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
53288         slash on symlink.
53289         * doc/posix-functions/unlink.texi (unlink): Document the bug.
53290         * doc/posix-functions/remove.texi (remove): Likewise.
53291         * tests/test-unlink.h (test_unlink): Enhance test.
53292         * tests/test-remove.c (main): Likewise.
53294 2009-11-09  Eric Blake  <ebb9@byu.net>
53296         rename: detect FreeBSD bug
53297         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
53298         slash on symlink.
53299         * modules/renameat-tests (Depends-on): Add filenamecat.
53300         * tests/test-rename.h (test_rename): Allow one more errno.
53301         * tests/test-renameat.c (main): Likewise.
53302         * doc/posix-functions/rename.texi (rename): Document the bug.
53304         open: detect FreeBSD bug
53305         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
53306         symlink.
53307         * doc/posix-functions/open.texi (open): Document the bug.
53308         * doc/posix-functions/utimes.texi (utimes): Likewise.
53309         * tests/test-open.h (test_open): Add parameters, and test symlink
53310         handling.
53311         * tests/test-open.c (main): Adjust caller.
53312         * tests/test-fcntl-safer.c (main): Likewise.
53313         * modules/open-tests (Depends-on): Add stdbool, symlink.
53314         * modules/fcntl-safer-tests (Depends-on): Likewise.
53315         * tests/test-openat.c (main): Add test-open tests.
53317         stat: detect FreeBSD bug
53318         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
53319         symlink.
53320         * doc/posix-functions/stat.texi (stat): Document the bug.
53321         * tests/test-stat.h (test_stat_func): Add argument.
53322         * tests/test-stat.c (main): Adjust caller.
53323         * tests/test-fstatat.c (main): Likewise.
53324         * modules/stat-tests (Depends-on): Add stdbool, symlink.
53325         Reported by Jim Meyering.
53327 2009-11-09  James Youngman  <jay@gnu.org>
53329         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
53330         * lib/strftime.c: Correct placement of #include "ignore-value.h".
53332 2009-11-08  Jim Meyering  <meyering@redhat.com>
53334         utimens: remove invalid futimesat call
53335         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
53336         It used the file descriptor of the target file as the DIR_FD
53337         parameter and NULL as the file name.  That caused failure with
53338         errno == EFAULT on FreeBSD-8.0-rc2
53340 2009-11-07  Eric Blake  <ebb9@byu.net>
53342         fflush, freadseek: use fseeko, not fseek
53343         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
53344         (clear_ungetc_buffer): Avoid potential problems on large files.
53345         * lib/freadseek.c (freadseek): Likewise.
53346         * modules/freadseek (Depends-on): Add fseeko.
53347         * modules/fseek (configure.ac): Set a witness.
53348         * tests/test-fflush.c (main): Use fseeko.
53349         * tests/test-fpurge.c (fseek): Disable link warning.
53350         * tests/test-freadable.c (fseek): Likewise.
53351         * tests/test-freading.c (fseek): Likewise.
53352         * tests/test-fseeko.c (fseek): Likewise.
53353         * tests/test-ftell.c (fseek): Likewise.
53354         * tests/test-ftello.c (fseek): Likewise.
53355         * tests/test-fwritable.c (fseek): Likewise.
53356         * tests/test-fwriting.c (fseek): Likewise.
53358 2009-11-06  Simon Josefsson  <simon@josefsson.org>
53360         * modules/memchr (Depends-on): Drop getpagesize dependency.
53362 2009-11-06  Simon Josefsson  <simon@josefsson.org>
53364         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
53365         Reported by Ludovic Courtès.
53366         * build-aux/pmccabe2html: Improve example usage.
53367         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
53369 2009-11-06  Jim Meyering  <meyering@redhat.com>
53371         do-release-commit-and-tag: New module.
53372         Automate the release-commit and tag process.
53373         * build-aux/do-release-commit-and-tag: New script, from coreutils.
53374         * modules/do-release-commit-and-tag: New file.
53375         * MODULES.html.sh (Support for maintaining and releasing): Add it.
53377 2009-11-06  Simon Josefsson  <simon@josefsson.org>
53379         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
53380         because test-select.c uses inet_pton.
53382 2009-11-06  Simon Josefsson  <simon@josefsson.org>
53384         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
53385         GETADDRINFO_LIB.  Bump serial number.
53386         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
53387         Suggested by Eric Blake <ebb9@byu.net>.
53389 2009-11-05  Eric Blake  <ebb9@byu.net>
53391         strtod: detect darwin bug
53392         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
53393         Reported by Leo Davis.
53395         freopen-safer: new module
53396         * modules/freopen-safer: New module.
53397         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
53398         * lib/freopen-safer.c (freopen_safer): New file.
53399         * lib/stdio-safer.h (freopen_safer): New declaration.
53400         * lib/stdio--.h (freopen): New override.
53401         * MODULES.html.sh (File stream based Input/Output): Mention it.
53402         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
53403         freopen-safer module.
53404         * doc/posix-functions/stderr.texi (stderr): Likewise.
53405         * doc/posix-functions/stdin.texi (stdin): Likewise.
53406         * doc/posix-functions/stdout.texi (stdout): Likewise.
53407         * modules/freopen-safer-tests: New test.
53408         * tests/test-reopen-safer.c: New file.
53410 2009-11-05  Jim Meyering  <meyering@redhat.com>
53412         maint.mk: Prohibit inclusion of "close-stream.h" without use.
53413         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
53415 2009-11-05  Simon Josefsson  <simon@josefsson.org>
53417         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
53419 2009-11-05  Simon Josefsson  <simon@josefsson.org>
53421         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
53423 2009-11-05  Simon Josefsson  <simon@josefsson.org>
53425         Fix link error.
53426         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
53427         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53429 2009-11-05  Simon Josefsson  <simon@josefsson.org>
53431         * tests/test-func.c: Also test value of __func__.
53433 2009-11-05  Simon Josefsson  <simon@josefsson.org>
53435         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
53436         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
53438 2009-11-05  Bruno Haible  <bruno@clisp.org>
53440         Fix link error.
53441         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
53442         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53443         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
53445 2009-11-05  Bruno Haible  <bruno@clisp.org>
53447         Tests for module 'inet_pton'.
53448         * modules/inet_pton-tests: New file.
53449         * tests/test-inet_pton.c: New file.
53451 2009-11-05  Bruno Haible  <bruno@clisp.org>
53453         Tests for module 'inet_ntop'.
53454         * modules/inet_ntop-tests: New file.
53455         * tests/test-inet_ntop.c: New file.
53457 2009-11-04  Eric Blake  <ebb9@byu.net>
53459         stdlib-safer: wrap all mkstemp variants
53460         * modules/mkostemp (configure.ac): Set witness.
53461         * modules/mkostemps (configure.ac): Likewise.
53462         * modules/mkstemps (configure.ac): Likewise.
53463         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
53464         (mkstemps_safer): Wrap more functions.
53465         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
53466         wrapping.
53467         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
53468         (mkstemps_safer): Implement the wrappers.
53470         mkstemps, mkostemps: new modules
53471         * modules/mkostemps: New module.
53472         * modules/mkstemps: Likewise.
53473         * lib/mkostemps.c (mkostemps): New file.
53474         * lib/mkstemps.c (mkstemps): Likewise.
53475         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
53476         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
53477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
53478         * modules/stdlib (Makefile.am): Substitute them.
53479         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
53480         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
53481         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
53482         * doc/gnulib.texi (Glibc stdlib.h): Include them.
53483         * MODULES.html.sh (File system functions): Mention them.
53485         tempname: resync from glibc
53486         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
53487         same values for __GT_FILE as glibc.  Abort even when assertions
53488         are disabled.
53489         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
53490         match its value otherwise.  Allow idempotent inclusion.
53491         * lib/mkdtemp.c (mkdtemp): Adjust caller.
53492         * lib/mkostemp.c (mkostemp): Likewise.
53493         * lib/mkstemp.c (mkstemp): Likewise.
53494         * lib/tmpfile.c (tmpfile): Likewise.
53495         * NEWS: Document this.
53497         utimens: fix use of futimens on older Linux
53498         * lib/utimens.c (fdutimens): Use updated, rather than original,
53499         timespec to avoid bug in older Linux kernel.
53500         Reported by Simon Josefsson.
53502 2009-11-04  Bruno Haible  <bruno@clisp.org>
53504         Make num_processors more flexible and consistent.
53505         * lib/nproc.h (enum nproc_query): New type.
53506         (num_processors): Add a 'query' argument.
53507         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
53508         (num_processors): Add a 'query' argument. Test the value of the
53509         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
53510         mingw, count the number of CPUs available for the current process.
53511         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
53512         Check for sched_getaffinity and sched_getaffinity_np.
53513         * modules/nproc (Depends-on): Add c-ctype, extensions.
53514         * NEWS: Mention the change.
53516 2009-11-03  Bruno Haible  <bruno@clisp.org>
53518         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
53520 2009-11-03  Jim Meyering  <meyering@redhat.com>
53522         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
53523         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
53524         if it is defined.
53526 2009-11-02  Eric Blake  <ebb9@byu.net>
53528         mktime, timegm: share common declaration
53529         * lib/mktime-internal.h: New file.
53530         * lib/mktime.c: Use it rather than open-coding a declaration.
53531         * lib/timegm.c: Likewise.
53532         * modules/mktime (Files): Ship it.
53533         * modules/timegm (Files): Likewise.
53534         Suggested by Bruno Haible.
53536         test-update-copyright: update test to match script changes
53537         * tests/test-update-copyright.sh: Avoid hard-coding perl
53538         location.  Don't update *.bak created by earlier runs.
53540 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53541             Simon Josefsson  <simon@josefsson.org>
53542             Bruno Haible  <bruno@clisp.org>
53544         Fix link error on Solaris 8.
53545         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
53546         also in libnsl. Define also INET_PTON_LIB.
53547         * modules/inet_pton (Link): New section.
53549 2009-11-02  Simon Josefsson  <simon@josefsson.org>
53550             Bruno Haible  <bruno@clisp.org>
53552         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
53553         * modules/inet_ntop (Link): New section.
53554         Reported by Boyan Kasarov <bkasarov@gmail.com>.
53556 2009-11-02  Eric Blake  <ebb9@byu.net>
53558         maint: avoid compiler warnings in m4 macros
53559         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
53560         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
53562 2009-11-02  Simon Josefsson  <simon@josefsson.org>
53564         * m4/pmccabe2html.m4: Remove file.
53565         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
53566         function.  Change maintainer.
53567         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
53568         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
53569         Courtès).
53571 2009-10-31  Eric Blake  <ebb9@byu.net>
53573         fseeko: fix m4 regression
53574         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
53575         regression from 2009-10-27.
53576         Reported by Ralf Wildenhues.
53578 2009-10-31  Jim Meyering  <meyering@redhat.com>
53580         inttostr: aesthetics and improved (compile-time) safety
53581         Define inttype_is_signed rather than inttype_is_unsigned,
53582         since the sole use is via "#if inttype_is_signed".
53583         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
53584         inttype_is_unsigned.
53585         * lib/offtostr.c (inttype_is_signed): Likewise.
53586         * lib/uinttostr.c (inttype_is_signed): Likewise.
53587         * lib/umaxtostr.c (inttype_is_signed): Likewise.
53588         * lib/inttostr.c (inttostr): Use verify to cross-check the
53589         inttype_is_signed value and the signedness of the actual type.
53590         * modules/inttostr (Depends-on): Add verify.
53592 2009-10-30  Eric Blake  <ebb9@byu.net>
53594         build: avoid compiler warnings
53595         * lib/fchmodat.c (lchmod): Mark unused variables.
53596         * lib/getopt.c (_getopt_initialize): Likewise.
53597         * lib/mktime.c (__mktime_internal): Provide prototype.
53598         * lib/inttostr.c (inttostr): Avoid compiler warning even with
53599         older gcc that do not understand #pragma GCC diagnostic.
53600         * lib/uinttostr.c (inttype_is_unsigned): Define.
53601         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
53603 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
53605         stat: fix compilation on AIX
53606         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
53607         only see struct stat64.
53609 2009-10-30  Eric Blake  <ebb9@byu.net>
53611         exclude: make more robust
53612         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
53613         rather than masking a coding bug.
53614         Suggested by Bruno Haible.
53616 2009-10-30  Jim Meyering  <meyering@redhat.com>
53618         perl scripts: remove #!/usr/bin/perl in favor of more portable...
53619         Rather than putting #!/usr/bin/perl on the first line,
53620         start with a variant of what's recommended by "man perlrun" that
53621         invokes the first "perl" program from your shell's search path.
53622         * build-aux/gitlog-to-changelog: Replace #!... as above.
53623         Add a "Local Variables" perl mode setting.
53624         Prompted by a patch from Ludovic Courtès.
53625         Improved by Eric Blake.
53626         * build-aux/useless-if-before-free: Likewise.
53627         * build-aux/announce-gen: Likewise.
53628         * build-aux/update-copyright: Likewise.
53630 2009-10-29  Eric Blake  <ebb9@byu.net>
53632         filenamecat-lgpl: adjust clients
53633         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
53634         filenamecat.
53635         * modules/renameat (Depends-on): Likewise.
53637         filenamecat: split into filenamecat-lgpl
53638         * modules/filenamecat-lgpl: New module.
53639         * modules/filenamecat (Files): Move library-safe files into
53640         filenamecat-lgpl.
53641         (Depends-on): Add filenamecat-lgpl.
53642         (configure.ac): Declare witness.
53643         * lib/filenamecat.h (file_name_concat): Only declare when using
53644         GPL module.
53645         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
53646         Move...
53647         * lib/filenamecat-lgpl.c: ...into new file.
53648         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
53649         (gl_FILE_NAME_CONCAT): Use it.
53650         * MODULES.html.sh (File system functions): Mention new module.
53652         argp: avoid memory leak
53653         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
53654         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
53655         base_name, since the latter malloc()s and can call exit().
53656         Leak introduced 2006-07-03.
53658         dirname-lgpl: adjust clients that don't need full dirname
53659         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
53660         * modules/filenamecat (Depends-on): Likewise.
53661         * modules/linkat (Depends-on): Likewise.
53662         * modules/mkancesdirs (Depends-on): Likewise.
53663         * modules/mkdir (Depends-on): Likewise.
53664         * modules/openat (Depends-on): Likewise.
53665         * modules/savewd (Depends-on): Likewise.
53666         * modules/rename (Depends-on): Likewise.
53667         (License): Relax license.
53668         * modules/mkdir-tests (Depends-on): Drop progname.
53669         (Makefile.am): Delete unneeded LDADD.
53670         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
53672         dirname: split into dirname-lgpl
53673         * modules/dirname-lgpl: New module.
53674         * modules/dirname (Files): Move library-safe files into
53675         dirname-lgpl.
53676         (Depends-on): Add dirname-lgpl.
53677         (configure.ac): Declare witness.
53678         * modules/double-slash-root (License): Relax license.
53679         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
53680         module.
53681         * lib/dirname.c (dir_len, mdir_name): Move...
53682         * lib/dirname-lgpl.c: ...into new file.
53683         * lib/basename.c (last_component, base_len): Move...
53684         * lib/basename-lgpl.c: ...into new file.
53685         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
53686         (gl_DIRNAME): Use it.
53687         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
53688         Mention new module.
53689         * modules/dirname-tests (Depends-on): Add progname.
53690         * tests/test-dirname.c (program_name): Delete.
53692         mkdir: make safe for libraries
53693         * modules/mkdir (Depends-on): Drop xalloc.
53694         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
53695         exit.
53697         tests: avoid some compiler warnings
53698         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
53699         literals.
53700         * tests/test-memchr.c (main): Avoid type mismatch.
53701         * tests/test-arpa_inet.c (main): Avoid unused parameters.
53702         * tests/test-base64.c (main): Likewise.
53703         * tests/test-getdelim.c (main): Likewise.
53704         * tests/test-gethostname.c (main): Likewise.
53705         * tests/test-getline.c (main): Likewise.
53706         * tests/test-netinet_in.c (main): Likewise.
53707         * tests/test-select.c (open_server_socket, main): Likewise.
53708         * tests/test-select-stdin.c (main): Likewise.
53709         * tests/test-sockets.c (main): Likewise.
53710         * tests/test-strsignal.c (main): Likewise.
53711         * tests/test-sys_select.c (main): Likewise.
53712         * tests/test-sys_socket.c (main): Likewise.
53713         * tests/test-u64.c (main): Likewise.
53714         * tests/test-xfprintf-posix.c (main): Likewise.
53715         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
53717         sockets: avoid compiler warning
53718         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
53720         maint: detect usage(1) and other suspicious exits
53721         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
53723 2009-10-29  Jim Meyering  <meyering@redhat.com>
53725         timespec: long-to-int truncation could make timespec_cmp malfunction
53726         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
53727         a multiple of 2^32 nanoseconds as no difference.
53729 2009-10-28  Jim Meyering  <meyering@redhat.com>
53731         fprintftime: wrap macro code argument in "do {...} while(0)"
53732         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
53733         cpy macro must be a statement that can be followed by a semicolon.
53734         Now that the else clause contains a comment and is hence longer
53735         than one line, I require curly braces.  That in turn requires
53736         that we wrap this code block in the standard do...while(0).
53738         fprintftime: remove stray semicolon from previous change
53739         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
53741         fprintftime: avoid a warning about ignored fwrite return value
53742         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
53743         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
53744         that is unsafe.
53745         * modules/fprintftime (Depends-on): Add ignore-value.
53747         exclude: avoid an unwarranted warning
53748         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
53750 2009-10-27  Eric Blake  <ebb9@byu.net>
53752         fseek: avoid compilation failure when fflush is replaced
53753         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
53754         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
53755         module is in use.
53756         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
53757         module is not in use; since REPLACE_FSEEK worked otherwise.
53758         (GNULIB_FTELLO): Likewise for ftell.
53759         Reported by Ian Beckwith and others.
53761 2009-10-27  Bruno Haible  <bruno@clisp.org>
53763         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
53764         Reported by Jim Meyering.
53766 2009-10-27  Jim Meyering  <jim@meyering.net>
53767             Bruno Haible  <bruno@clisp.org>
53769         Avoid warning despite dropping the return value of fwrite.
53770         * lib/unicodeio.c: Include ignore-value.h.
53771         (fwrite_success_callback): Explicitly ignore fwrite's return value.
53772         * modules/unicodeio (Depends-on): Add ignore-value.
53774 2009-10-26  Eric Blake  <ebb9@byu.net>
53776         areadlinkat: fix fallback path
53777         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
53778         pointer and zero.
53780 2009-10-22  Pádraig Brady  <P@draigBrady.com>
53782         Use a better IO block size for modern systems
53783         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
53784         * lib/md2.c: Likewise.
53785         * lib/md4.c: Likewise.
53786         * lib/md5.c: Likewise.
53787         * lib/sha1.c: Likewise.
53788         * lib/sha256.c: Likewise.
53789         * lib/sha512.c: Likewise.
53791 2009-10-22  Eric Blake  <ebb9@byu.net>
53793         tests: avoid several compiler warnings
53794         * tests/test-getcwd.c (main): Avoid buffer underflow.
53795         * tests/test-getdate.c (main): String literals are not safe with
53796         putenv, so use setenv.  Declare unused argument.
53797         * modules/getdate-tests (Depends-on): Add setenv.
53798         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
53799         problems with string literals in char *.
53800         * tests/test-hash.c (main): Avoid shadowing declaration.
53801         (insert_new): Treat string literals as char const *.
53802         * tests/test-getopt.h (test_getopt): Likewise.
53803         (getopt_loop): Alter types to minimize casting elsewhere.
53804         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
53805         (test_getopt_long_posix): Likewise.
53806         (do_getopt_long): Add wrapper to minimize casting.
53807         * tests/test-atexit.c (clear_temp_file): Use void.
53808         * tests/test-areadlink-with-size.c (main): Declare unused
53809         arguments.
53810         * tests/test-areadlink.c (main): Likewise.
53811         * tests/test-areadlinkat-with-size.c (main): Likewise.
53812         * tests/test-areadlinkat.c (main): Likewise.
53813         * tests/test-canonicalize-lgpl.c (main): Likewise.
53814         * tests/test-canonicalize.c (main): Likewise.
53815         * tests/test-dirent-safer.c (main): Likewise.
53816         * tests/test-dirname.c (main): Likewise.
53817         * tests/test-dup2.c (main): Likewise.
53818         * tests/test-fchdir.c (main): Likewise.
53819         * tests/test-fcntl-h.c (main): Likewise.
53820         * tests/test-fcntl-safer.c (main): Likewise.
53821         * tests/test-fdopendir.c (main): Likewise.
53822         * tests/test-fdutimensat.c (main): Likewise.
53823         * tests/test-fflush.c (main): Likewise.
53824         * tests/test-filenamecat.c (main): Likewise.
53825         * tests/test-filevercmp.c (main): Likewise.
53826         * tests/test-fopen-safer.c (main): Likewise.
53827         * tests/test-fopen.c (main): Likewise.
53828         * tests/test-fpending.c (main): Likewise.
53829         * tests/test-fpurge.c (main): Likewise.
53830         * tests/test-freading.c (main): Likewise.
53831         * tests/test-fstatat.c (main): Likewise.
53832         * tests/test-fsync.c (main): Likewise.
53833         * tests/test-futimens.c (main): Likewise.
53834         * tests/test-getndelim2.c (main): Likewise.
53835         * tests/test-gettimeofday.c (main): Likewise.
53836         * tests/test-getopt.c (main): Likewise.
53837         * tests/test-i-ring.c (main): Likewise.
53838         * tests/test-inttypes.c (main): Likewise.
53839         * tests/test-link.c (main): Likewise.
53840         * tests/test-lstat.c (main): Likewise.
53841         * tests/test-math.c (main): Likewise.
53842         * tests/test-md5.c (main): Likewise.
53843         * tests/test-memchr2.c (main): Likewise.
53844         * tests/test-memrchr.c (main): Likewise.
53845         * tests/test-mkdir.c (main): Likewise.
53846         * tests/test-mkdirat.c (main): Likewise.
53847         * tests/test-mkfifoat.c (main): Likewise.
53848         * tests/test-open.c (main): Likewise.
53849         * tests/test-openat-safer.c (main): Likewise.
53850         * tests/test-openat.c (main): Likewise.
53851         * tests/test-quotearg.c (main): Likewise.
53852         * tests/test-rawmemchr.c (main): Likewise.
53853         * tests/test-readlink.c (main): Likewise.
53854         * tests/test-remove.c (main): Likewise.
53855         * tests/test-rename.c (main): Likewise.
53856         * tests/test-renameat.c (main): Likewise.
53857         * tests/test-rmdir.c (main): Likewise.
53858         * tests/test-sha1.c (main): Likewise.
53859         * tests/test-signal.c (main): Likewise.
53860         * tests/test-sigaction.c (main): Likewise.
53861         * tests/test-stat.c (main): Likewise.
53862         * tests/test-stat-time.c (main): Likewise.
53863         * tests/test-stddef.c (main): Likewise.
53864         * tests/test-stdint.c (main): Likewise.
53865         * tests/test-stdio.c (main): Likewise.
53866         * tests/test-stdlib.c (main): Likewise.
53867         * tests/test-strchrnul.c (main): Likewise.
53868         * tests/test-strerror.c (main): Likewise.
53869         * tests/test-string.c (main): Likewise.
53870         * tests/test-strtod.c (main): Likewise.
53871         * tests/test-strverscmp.c (main): Likewise.
53872         * tests/test-symlink.c (main): Likewise.
53873         * tests/test-symlinkat.c (main): Likewise.
53874         * tests/test-sys_stat.c (main): Likewise.
53875         * tests/test-sys_time.c (main): Likewise.
53876         * tests/test-time.c (main): Likewise.
53877         * tests/test-unistd.c (main): Likewise.
53878         * tests/test-unlink.c (main): Likewise.
53879         * tests/test-unlinkat.c (main): Likewise.
53880         * tests/test-utimens.c (main): Likewise.
53881         * tests/test-utimensat.c (main): Likewise.
53882         * tests/test-version-etc.c (main): Likewise.
53883         * tests/test-wchar.c (main): Likewise.
53884         * tests/test-wctype.c (main): Likewise.
53885         * tests/test-xprintf-posix.c (main): Likewise.
53886         * tests/test-posixtm.c (main): Likewise.
53887         (STREQ): Delete unused macro.
53888         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
53889         shadowed variables.
53890         * tests/test-memchr.c (main): Likewise.
53892 2009-10-21  Eric Blake  <ebb9@byu.net>
53894         areadlinkat: avoid failure on older glibc
53895         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
53896         rather than mis-comparing 0 against FUNC_RESULT of char*.
53898 2009-10-21  Bruno Haible  <bruno@clisp.org>
53900         * modules/stpncpy (License): Relicense under LGPLv2+.
53901         Reported by David Lutterkort <lutter@redhat.com>.
53903 2009-10-20  Eric Blake  <ebb9@byu.net>
53905         utimensat: work around Solaris 9 bug
53906         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
53907         has trailing slash bugs.
53908         * tests/test-lutimens.h (test_lutimens): Enhance test.
53909         * tests/test-utimens.h (test_utimens): Likewise.
53910         * doc/posix-functions/utime.texi (utime): Enhance documentation.
53911         * doc/posix-functions/utimes.texi (utimes): Likewise.
53912         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
53913         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
53914         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
53915         * doc/posix-functions/futimens.texi (futimens): Likewise.
53917         fdutimensat: new module
53918         * modules/fdutimensat: New file.
53919         * lib/fdutimensat.c (fdutimensat): Likewise.
53920         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
53921         * MODULES.html.sh (File system functions): Mention module.
53922         * modules/fdutimensat-tests: New test.
53923         * tests/test-fdutimensat.c: Likewise.
53925         doc: regenerate INSTALL
53926         * doc/INSTALL: Reflect recent autoconf update.
53927         * doc/INSTALL.ISO: Likewise.
53928         * doc/INSTALL.UTF-8: Likewise.
53930 2009-10-20  Pádraig Brady  <P@draigBrady.com>
53932         acl: warn if ACL support is not detected
53933         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
53935 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
53937         * lib/nproc.h: Add extern "C" block for C++.
53939 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
53940             Bruno Haible  <bruno@clisp.org>
53942         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
53943         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
53944         * doc/posix-functions/isalpha.texi: Likewise.
53945         * doc/posix-functions/isblank.texi: Likewise.
53946         * doc/posix-functions/iscntrl.texi: Likewise.
53947         * doc/posix-functions/isdigit.texi: Likewise.
53948         * doc/posix-functions/isgraph.texi: Likewise.
53949         * doc/posix-functions/islower.texi: Likewise.
53950         * doc/posix-functions/isprint.texi: Likewise.
53951         * doc/posix-functions/ispunct.texi: Likewise.
53952         * doc/posix-functions/isspace.texi: Likewise.
53953         * doc/posix-functions/isupper.texi: Likewise.
53954         * doc/posix-functions/isxdigit.texi: Likewise.
53956 2009-10-18  Bruno Haible  <bruno@clisp.org>
53958         Tests for module 'isblank'.
53959         * modules/isblank-tests: New file.
53960         * tests/test-isblank.c: New file.
53962         New module 'isblank'.
53963         * lib/isblank.c: New file.
53964         * m4/isblank.m4: New file.
53965         * modules/isblank: New file.
53966         * doc/posix-functions/isblank.texi: Mention the new module.
53968 2009-10-18  Bruno Haible  <bruno@clisp.org>
53970         New module 'ctype'.
53971         * lib/ctype.in.h: New file.
53972         * m4/ctype.m4: New file.
53973         * modules/ctype: New file.
53974         * doc/posix-headers/ctype.texi: Mention the new module.
53976 2009-10-18  Jim Meyering  <meyering@redhat.com>
53978         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
53979         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
53980         right after its initialization, rather than farther down.
53981         Keeping these in close proximity makes it easier to ensure
53982         that each such variable is initialized.  E.g.,
53984             LIB_CLOCK_GETTIME=
53985             AC_SUBST([LIB_CLOCK_GETTIME])
53987         This change also increments these serial numbers.
53988         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
53989         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53992 2009-10-18  Bruno Haible  <bruno@clisp.org>
53994         Don't let environment variables perturb build.
53995         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
53996         (gl_PREREQ_GETHRXTIME): ... not here.
53998 2009-10-18  Bruno Haible  <bruno@clisp.org>
54000         Avoid symlink attack in localcharset module.
54001         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
54002         (O_NOFOLLOW): Define fallback.
54003         (get_charset_aliases): Don't open the file if it is a symbolic link.
54004         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
54005         gl_FCNTL_H.
54006         (gl_FCNTL_H): Require it.
54007         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
54008         * modules/localcharset (Files): Add m4/fcntl_h.m4.
54009         Reported by Fergal Glynn <fglynn@veracode.com>.
54011 2009-10-18  Bruno Haible  <bruno@clisp.org>
54013         Implement nproc for mingw.
54014         * lib/nproc.c: Include <windows.h>
54015         (num_processors): On native Windows platforms, try GetSystemInfo.
54017 2009-10-18  Bruno Haible  <bruno@clisp.org>
54019         Implement nproc for IRIX.
54020         * lib/nproc.c: Include <sys/sysmp.h>.
54021         (num_processors): On IRIX systems, try sysmp.
54022         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
54024 2009-10-18  Bruno Haible  <bruno@clisp.org>
54026         Implement nproc for HP-UX.
54027         * lib/nproc.c: Include <sys/pstat.h>
54028         (num_processors): On HP-UX systems, try pstat_getdynamic.
54029         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
54030         pstat_getdynamic.
54032 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
54033             Bruno Haible  <bruno@clisp.org>
54035         Implement nproc for NetBSD, OpenBSD.
54036         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
54037         (ARRAY_SIZE): New macro.
54038         (num_processors): On BSD systems, try sysctl of HW_NCPU.
54039         * m4/nproc.m4: New file.
54040         * modules/nproc (Files): Add m4/nproc.m4.
54041         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
54042         (Makefile.am): Instead, augment lib_SOURCES.
54044 2009-10-18  Bruno Haible  <bruno@clisp.org>
54046         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
54047         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
54048         sys/param.h.
54050 2009-10-16  Eric Blake  <ebb9@byu.net>
54052         utimensat: new module
54053         * modules/utimensat: New file.
54054         * lib/utimensat.c (utimensat): Likewise.
54055         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54056         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
54057         so we can work around Linux bugs.
54058         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
54059         * modules/sys_stat (Makefile.am): Substitute them.
54060         * lib/sys_stat.in.h (utimensat): Declare it.
54061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54062         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
54063         * modules/utimensat-tests: New test.
54064         * tests/test-utimensat.c: Likewise.
54066         utimens: let lutimens work on non-symlinks
54067         * lib/utimens.c (lutimens): Fall back to utimens rather than
54068         failing with ENOSYS, when file is not a symlink.
54069         (utimens): Reduce redirection.
54070         * tests/test-lutimens.h (test_lutimens): Update test to cover
54071         non-symlinks.
54072         * tests/test-utimens.h (test_utimens): Update test to cover
54073         symlinks.
54074         * tests/test-utimens.c (main): Update caller.
54076         utimens: cache whether utimensat syscall works
54077         * lib/utimens.c (utimensat_works_really): New cache variable.
54078         (fdutimens, lutimens): Use it to avoid failing syscall.
54080         test-stat-time, test-utimens: improve portability
54081         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
54082         ext4 on alpha, and for cygwin.
54083         * tests/test-utimens-common.h: New file.
54084         (nap): Factor delays into single function.
54085         * tests/test-lutimens.h (test_lutimens): Use new header.
54086         * tests/test-futimens.h (test_futimens): Likewise.
54087         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
54088         timestamps to occur from same machine, as was done previously for
54089         test_utimens.
54090         * modules/utimens-tests (Files): Ship new file.
54091         * modules/futimens-tests (Files): Likewise.
54092         Reported in part by Jim Meyering.
54094         sys_stat: sort replacement declarations
54095         * lib/sys_stat.in.h: Sort declarations.
54096         * lib/futimens.c (futimens): Fix typo.
54098 2009-10-15  Jim Meyering  <meyering@redhat.com>
54100         don't let environment settings perturb build
54101         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
54102         could cause a configure-time and/or build-time malfunction.
54103         Typically, a configure-time function-in-library test is performed
54104         via code like this:
54106           LIB_VAR=
54107           AC_SUBST([LIB_VAR])
54108           prefix_saved_LIBS=$LIBS
54109             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
54110                        [test "$ac_cv_search_FUNC" = "none required" ||
54111                         LIB_VAR=$ac_cv_search_FUNC])
54112           LIBS=$prefix_saved_LIBS
54114         However, in each of the files affected by this change, the LIB_VAR=
54115         initialization was omitted.  Thus, when set in the environment, its
54116         value would propagate into generated Makefiles when FUNC is not found
54117         in LIB_NAME.
54118         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
54119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54122 2009-10-14  Eric Blake  <ebb9@byu.net>
54124         fchdir: avoid infinite recursion in mingw
54125         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
54126         recursing.
54128         test-stat-time: port to mingw
54129         * tests/test-stat-time.c (force_unlink): Return a value.
54130         (test_ctime) [W32]: Fix compilation error.
54131         (nap): Don't call usleep with too large an argument.  Use
54132         force_unlink.
54133         * doc/pastposix-functions/usleep.texi (usleep): Document the
54134         portability issue.
54136 2009-10-13  Jim Meyering  <meyering@redhat.com>
54138         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
54139         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
54140         * modules/pipe-filter-ii: Likewise.
54141         * modules/sys_socket-tests: Likewise.
54142         * modules/tsearch-tests: Likewise.
54143         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
54144         (check): Depend on it.
54146 2009-10-12  Eric Blake  <ebb9@byu.net>
54148         utimens-tests: port to NFS file systems
54149         * tests/test-utimens.h (test_utimens): Refactor utimecmp
54150         comparisons to avoid spurious failures from timestamp drift
54151         between NFS machines.
54153 2009-10-12  Eric Blake  <ebb9@byu.net>
54155         stat-time-tests: minor cleanups
54156         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
54157         * tests/test-stat-time.c (nap): Separate assignment from call.
54158         Suggested by Paolo Bonzini and Bruno Haible.
54160         sys_stat: guarantee struct timespec
54161         * lib/sys_stat.in.h (includes): Always include <time.h>
54162         * modules/sys_stat (Depends-on): Add time.
54163         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
54164         mode_t permission values.
54165         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
54166         get at subsecond timestamps.
54168 2009-10-10  Eric Blake  <ebb9@byu.net>
54170         futimens: new module
54171         * modules/futimens: New file.
54172         * lib/futimens.c (futimens): Likewise.
54173         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
54174         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
54175         we can work around Linux bugs.
54176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
54177         * modules/sys_stat (Makefile.am): Substitute them.
54178         * lib/sys_stat.in.h (futimens): Declare it.
54179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54180         * doc/posix-functions/futimens.texi (futimens): Likewise.
54181         * modules/futimens-tests: New test.
54182         * tests/test-futimens.c: Likewise.
54184         utimens: introduce fdutimens
54185         * lib/utimens.h (fdutimens): New prototype.
54186         * lib/utimens.c (gl_futimens): Move guts...
54187         (fdutimens): ...to new interface.
54188         * tests/test-utimens.c (do_fdutimens): Use it.
54190         utimens: add UTIME_NOW and UTIME_OMIT support
54191         * lib/utimens.c (validate_timespec, update_timespec): New helper
54192         functions.
54193         (gl_futimens, lutimens): Use them.
54194         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
54195         stdbool, sys_stat.
54196         (Link): Mention resulting library dependency.
54197         * modules/utimecmp (Link): Likewise.
54198         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
54199         (Makefile.am): Pick up library dependency.
54200         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
54201         definition.
54202         * tests/test-sys_stat.c: Test the definitions.
54203         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
54204         * NEWS: Document library dependency.
54206         utimecmp: support symlink timestamps
54207         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
54208         hashing when possible.  Use pathconf when available.
54209         (SYSCALL_RESOLUTION): Recognize tighter resolution.
54210         * modules/utimecmp (Depends-on): Add lstat.
54212         utimens: add lutimens interface
54213         * lib/utimens.c (lutimens): New function.
54214         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
54215         * lib/utimens.h (lutimens): Declare new interface.
54216         * tests/test-utimens.c (main): Enhance test.
54217         * tests/test-lutimens.h (test_lutimens): New file.
54218         * modules/utimens-tests (Files): Distribute it.
54219         (Depends-on): Add symlink.
54220         (configure.ac): Check for usleep.
54222         utimens: validate futimens usage
54223         * lib/utimens.c (gl_futimens): Require valid fd up front, using
54224         fewer syscalls on failure later on.  Avoid compiler warning on
54225         mingw.
54226         * modules/utimens (Depends-on): Add dup2.
54228         utimens: add test
54229         * modules/utimens-tests: New test.
54230         * tests/test-utimens.h: New file.
54231         * tests/test-futimens.h: Likewise.
54232         * tests/test-utimens.c: Likewise.
54234         doc: mention timestamp portability issues
54235         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
54236         instead.
54237         * doc/posix-functions/utime.texi (utime): Likewise.
54238         * doc/posix-functions/utimes.texi (utimes): Likewise.
54239         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
54240         instead.
54241         * doc/posix-functions/futimens.texi (futimens): Mention utimens
54242         module.
54243         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
54244         Mention weakness with symlink timestamps.
54245         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
54246         to utimensat/futimens instead.
54247         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
54249         test-dup2: enhance test
54250         * tests/test-dup2.c (main): Also check AT_FDCWD.
54252         test-stat-time: avoid more spurious failures
54253         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
54254         xfs; and avoid race if the two timestamps cross quantization edge.
54256         relocatable: prefer 'file system' over 'filesystem'
54257         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
54258         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
54259         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
54260         * doc/relocatable.texi (Enabling Relocatability): Likewise.
54261         * lib/relocatable.c (compute_curr_prefix): Likewise.
54263 2009-10-10  Jim Meyering  <meyering@redhat.com>
54265         stat-time-tests: check for the usleep function
54266         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
54268 2009-10-10  Bruno Haible  <bruno@clisp.org>
54270         * modules/xnanosleep: Put the Link section after the Include section.
54272 2009-10-09  Eric Blake  <ebb9@byu.net>
54274         dup2: work around FreeBSD 6.1 bug
54275         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
54276         * doc/posix-functions/dup2.texi (dup2): Document it.
54277         Reported by Nelson H. F. Beebe and Jim Meyering.
54279         test-stat-time: port to buggy NFS clients
54280         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
54281         (test_ctime): Also skip test if mtime and ctime are skewed.
54283         maint: prefer 'file system' over 'filesystem'
54284         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
54285         * doc/posix-functions/lstat.texi (lstat): Likewise.
54286         * lib/file-has-acl.c (file_has_acl): Likewise.
54287         * lib/fwriteerror.c [TEST]: Likewise.
54288         * tests/test-areadlink.h (test_areadlink): Likewise.
54289         * tests/test-areadlinkat-with-size.c (main): Likewise.
54290         * tests/test-areadlinkat.c (main): Likewise.
54291         * tests/test-canonicalize-lgpl.c (main): Likewise.
54292         * tests/test-canonicalize.c (main): Likewise.
54293         * tests/test-fstatat.c (main): Likewise.
54294         * tests/test-linkat.c (main): Likewise.
54295         * tests/test-lstat.h (test_lstat_func): Likewise.
54296         * tests/test-mkdir.h (test_mkdir): Likewise.
54297         * tests/test-readlink.h (test_readlink): Likewise.
54298         * tests/test-remove.c (main): Likewise.
54299         * tests/test-rename.h (test_rename): Likewise.
54300         * tests/test-renameat.c (main): Likewise.
54301         * tests/test-rmdir.h (test_rmdir_func): Likewise.
54302         * tests/test-symlink.h (test_symlink): Likewise.
54303         * tests/test-symlinkat.c (main): Likewise.
54304         * tests/test-unlink.h (test_unlink_func): Likewise.
54305         * tests/test-unlinkat.c (main): Likewise.
54307         maint: make realtime library usage explicit
54308         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
54309         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
54310         * modules/settime (Link): Likewise.
54311         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
54313         test-stat-time: speed up execution
54314         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
54315         warning on mingw.
54316         (nap): New helper function.
54317         (prepare_test): Use it to reduce sleep time.
54318         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
54319         execution.
54320         * modules/stat-time-tests (configure.ac): Check for usleep.
54322 2009-10-09  Jim Meyering  <meyering@redhat.com>
54324         selinux-h: always use getfilecon wrappers
54325         * lib/getfilecon.c: New file.
54326         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
54327         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
54328         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
54329         (fgetfilecon): Provide a stub.
54330         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
54331         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
54332         file unconditionally.
54333         When <selinux/selinux.h> is found, arrange to use wrappers.
54334         * modules/selinux-h (Files): Add getfilecon.c.
54335         (Makefile.am): Substitute include-next-related bits
54336         into the now-always-generated selinux/selinux.h file.
54337         * doc/glibc-functions/lgetfilecon.texi: New file.
54338         * doc/glibc-functions/fgetfilecon.texi: New file.
54339         * doc/glibc-functions/getfilecon.texi: New file.
54340         * doc/glibc-functions/getfilecon-desc.texi: New file.
54341         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
54342         which to pull in the new files.
54343         * MODULES.html.sh (Misc): Add selinux-h.
54345 2009-10-08  Jim Meyering  <meyering@redhat.com>
54347         unistd: fix comment typo
54348         * lib/unistd.in.h (euidaccess): Fix a comment typo.
54350 2009-10-08  Eric Blake  <ebb9@byu.net>
54352         areadlink: use SIZE_MAX consistently
54353         * modules/areadlink (Depends-on): Add stdint.
54354         * modules/areadlink-with-size (Depends-on): Likewise.
54355         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
54356         gives NULL; drop sys/types, since unistd gives size_t; and add
54357         stdint for SIZE_MAX.
54358         (SIZE_MAX): Rely on headers.
54359         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
54360         and add stdint.
54361         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
54362         (SIZE_MAX): Likewise.
54363         (INITIAL_BUF_SIZE): Turn into enum.
54364         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
54366 2009-10-08  Jim Meyering  <meyering@redhat.com>
54368         areadlinkat: avoid compilation failure
54369         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
54370         Fix typo in comment.
54372 2009-10-07  Eric Blake  <ebb9@byu.net>
54374         areadlinkat-with-size: new module
54375         * modules/areadlinkat-with-size: New module.
54376         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
54377         * lib/areadlink.h (areadlinkat): Declare it.
54378         * MODULES.html.sh (File system functions): Mention it.
54379         * modules/areadlinkat-with-size-tests: New test.
54380         * tests/test-areadlinkat-with-size.c: New file.
54382         xreadlinkat: new module
54383         * modules/xreadlinkat: New module.
54384         * lib/xreadlinkat.c (xreadlinkat): New file.
54385         * lib/xreadlink.h (xreadlinkat): Declare it.
54386         * MODULES.html.sh (File system functions): Mention it.
54388         areadlinkat: new module
54389         * lib/at-func.c (FUNC_FAIL): New define.
54390         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
54391         * modules/areadlinkat: New module.
54392         * lib/linkat.c (areadlinkat): Move...
54393         * lib/areadlinkat.c (areadlinkat): ...to new file.
54394         * lib/areadlink.h (areadlinkat): Declare it.
54395         * modules/linkat (Depends-on): Add areadlinkat.
54396         * MODULES.html.sh (File system functions): Mention it.
54397         * modules/areadlinkat-tests: New test.
54398         * tests/test-areadlinkat.c: New file.
54400         areadlink, areadlink-with-size: add tests
54401         * modules/areadlink-tests: New test.
54402         * modules/areadlink-with-size-tests: Likewise.
54403         * tests/test-areadlink.h: New file.
54404         * tests/test-areadlink.c: Likewise.
54405         * tests/test-areadlink-with-size.c: Likewise.
54407         maint: minor cleanups
54408         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
54409         _UNUSED_PARAMETER_ instead.
54410         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
54411         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
54412         * modules/linkat-tests (Files): Distribute test-link.h.
54414         openat, utimens: whitespace cleanup
54415         * lib/openat.c: Prefer space throughout, rather than mix of 8
54416         spaces vs. tabs.
54417         * lib/at-func.c: Likewise.
54418         * lib/utimens.c: Likewise.
54420         openat: avoid using wrong fd
54421         * lib/openat.c (openat_permissive): Reject user's fd if saving the
54422         working directory chooses same fd.
54423         * lib/at-func.c (AT_FUNC_NAME): Likewise.
54425         mkdir, mkdirat: fix cygwin 1.5.x bug
54426         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
54427         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
54428         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
54429         bug.
54430         (gl_PREREQ_MKDIR): Delete unused macro.
54431         * modules/mkdir (Files): Track file rename.
54432         (configure.ac): Update macro name.
54433         * modules/openat (Depends-on): Add mkdir.
54434         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
54436         mkdir, mkdirat: add tests
54437         * modules/mkdir-tests: New test.
54438         * tests/test-mkdir.h: New file.
54439         * tests/test-mkdir.c: Likewise.
54440         * tests/test-mkdirat.c: Likewise.
54441         * modules/openat-tests (Files): Add new files.
54442         (Makefile.am): Run new test.
54444 2009-10-06  Eric Blake  <ebb9@byu.net>
54446         doc: tweak *at function documentation
54447         * doc/posix-functions/faccessat.texi (faccessat): Mention
54448         known issue with replacement.
54449         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
54450         * doc/posix-functions/linkat.texi (linkat): Likewise.
54451         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
54452         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
54453         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
54454         * doc/posix-functions/renameat.texi (renameat): Likewise.
54455         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
54457         openat: fix GNU/Hurd bug in unlinkat
54458         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
54459         broken.
54460         * doc/posix-functions/unlink.texi (unlink): Document this.
54461         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
54463         fdopendir: fix GNU/Hurd bug
54464         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
54465         allowing non-directory fds.
54466         * lib/fdopendir.c (rpl_fdopendir): Work around it.
54467         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54468         * modules/dirent (Makefile.am): Substitute it.
54469         * lib/dirent.in.h (fdopendir): Declare replacement.
54470         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
54471         * tests/test-fdopendir.c (main): Test something other than
54472         /dev/null, since on Hurd that behaves like a directory.
54474         test-symlink: port to GNU/Hurd
54475         * tests/test-symlink.h (test_symlink): Relax expected errno.
54477         doc: tweak more cygwin information
54478         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
54479         now compatible with glibc.
54480         * doc/posix-functions/getopt.texi (getopt): Likewise.
54482         getopt-gnu: add another test
54483         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
54484         guarantee behavior relied on by m4.
54485         * tests/test-getopt.c (main): Use it.
54486         * modules/getopt-posix-tests (Depends-on): Add setenv.
54487         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
54489         getopt: fix compilation on darwin
54490         * lib/getopt.in.h (includes): Leave breadcrumbs during system
54491         include.
54492         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
54493         Reported by Ludovic Courtès.
54495 2009-10-06  Bruno Haible  <bruno@clisp.org>
54497         * modules/size_max (Description): Discourage its use.
54498         Reported by Simon Josefsson.
54500 2009-10-06  Jim Meyering  <meyering@redhat.com>
54502         linkat: avoid compilation failure
54503         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
54505 2009-10-05  Eric Blake  <ebb9@byu.net>
54507         linkat: support Linux 2.6.17
54508         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
54509         linkat on Linux, but allow cache variable override.
54510         * lib/linkat.c (rpl_linkat): Define override.
54511         * modules/linkat (Depends-on): Add symlinkat.
54512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
54513         * modules/unistd (Makefile.am): Substitute it.
54514         * lib/unistd.in.h (linkat): Declare replacement.
54515         Reported by Pádraig Brady.
54517         quotearg: port test to systems with C.UTF-8 locale
54518         * tests/test-quotearg.c (struct result_strings): Add another
54519         member, differentiating between C.ASCII and C.UTF-8 handling.
54520         (compare_strings): Add parameter.
54521         (main): Adjust all callers.
54523         getopt: avoid clash with FreeBSD _getopt_internal
54524         * lib/getopt.in.h (_getopt_internal): Override the name.
54525         * lib/getopt_int.h (includes): Pick up any overrides.
54526         Reported by Reuben Thomas.
54528         hash: allow C89 compilation
54529         * lib/hash.c (check_tuning): Move declaration before statement.
54530         Reported by Reuben Thomas.
54532 2009-10-05  Karl Berry  <karl@gnu.org>
54534         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
54536 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
54537             Bruno Haible  <bruno@clisp.org>
54539         * lib/uname.c (uname): Use a table-driven algorithm to compute
54540         Windows NT versions.
54542 2009-10-04  Bruno Haible  <bruno@clisp.org>
54544         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
54545         program_invocation_short_name.
54546         * modules/progname (configure.ac): Test for presence of
54547         program_invocation_short_name.
54548         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
54550 2009-10-04  Bruno Haible  <bruno@clisp.org>
54552         * lib/progname.c (set_program_name): Fix comment.
54553         Reported by Jim Meyering.
54555 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
54556             Bruno Haible  <bruno@clisp.org>
54558         * lib/uname.c: Include <string.h>.
54559         (uname): Do only one call to GetVersionEx in the common case.
54561 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
54562             Bruno Haible  <bruno@clisp.org>
54564         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
54565         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
54566         (uname): Add support for Windows CE and various non-x86 CPU types.
54568 2009-10-03  Bruno Haible  <bruno@clisp.org>
54570         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
54571         invocation to tests/configure.ac.
54572         Reported by Ian Beckwith <ianb@erislabs.net>.
54574 2009-10-02  Eric Blake  <ebb9@byu.net>
54576         fchdir: avoid compiler warning
54577         * lib/fchdir.c (canonicalize_file_name)
54578         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
54580         test-open: support mingw errno values
54581         * tests/test-open.h (test_open): Relax test.
54582         * tests/test-fopen.h (test_fopen): Likewise.
54583         * tests/test-openat-safer.c (main): Likewise.
54585         open: fix opening directory on mingw
54586         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
54588         test-open: on GNU/Hurd, /dev/null is a directory
54589         * tests/test-fopen.h (main): Rename...
54590         (test_fopen): ...to this.  Use a guaranteed non-directory when
54591         confirming open behavior on trailing slash.
54592         * tests/test-openat-safer.c (main): Likewise.
54593         * tests/test-open.h (main): Likewise....
54594         (test_open): ...to this.
54595         * tests/test-fopen.c (main): Adjust caller.
54596         * tests/test-fopen-safer.c (main): Likewise.
54597         * tests/test-open.c (main): Likewise.
54598         * tests/test-fcntl-safer.c (main): Likewise.
54599         Reported by Samuel Thibault.
54601         rename, fchdir: don't ignore chdir failure
54602         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
54603         * lib/rename.c (rpl_rename) [W32]: Likewise.
54604         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
54605         an empty destination directory if source cannot be renamed,
54606         although there is still possibility for failure.
54607         * doc/posix-functions/rename.texi (rename): Document the race.
54608         Reported by Jim Meyering.
54610         maint: cleanup whitespace in recent commits
54611         * lib/rename.c (rpl_rename): Remove tabs.
54612         * tests/test-link.h (test_link): Likewise.
54613         * lib/fchdir.c (get_name): Likewise.
54614         Reported by Jim Meyering.
54616 2009-10-02  Ben Pfaff  <blp@gnu.org>
54618         relocatable-prog-wrapper: Add missing dependency on
54619         double-slash-root.
54620         * modules/relocatable-prog-wrapper: Add dependency.
54621         Reported by Ian Beckwith <ianb@erislabs.net>.
54623 2009-10-02  Eric Blake  <ebb9@byu.net>
54625         renameat: fix Solaris bugs
54626         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
54627         needed fixing.
54628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
54629         * modules/stdio (Makefile.am): Substitute it.
54630         * lib/stdio.in.h (renameat): Declare replacement.
54631         * lib/renameat.c (rpl_renameat): Implement fix.
54633         renameat: new module
54634         * modules/renameat: New file.
54635         * lib/renameat.c (renameat): Likewise.
54636         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
54637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
54638         * modules/stdio (Makefile.am): Substitute them.
54639         * lib/stdio.in.h (renameat): Declare it.
54640         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54641         * doc/posix-functions/renameat.texi (renameat): Likewise.
54642         * modules/renameat-tests: New test.
54643         * tests/test-renameat.c: Likewise.
54645         rename: fix mingw bugs
54646         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
54647         directory overwrite bugs.
54649         rename: fix another cygwin 1.5 bug
54650         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
54651         checks.
54652         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
54653         unnecessary cygwin workarounds.  Also work around bug with moving
54654         full directory onto an empty one.
54655         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
54657         rename-dest-slash: merge into rename module
54658         * modules/rename-dest-slash (Status): Mark obsolete.
54659         (Depends-on): Add rename.
54660         (Files): Let rename do it all.
54661         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
54662         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
54663         * m4/rename-dest-slash.m4: ...so this file can be deleted.
54664         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
54665         * lib/rename.c (rpl_rename): Update comments.
54667         rename: fix cygwin 1.5.x bugs
54668         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
54669         * lib/rename.c (rpl_rename): Work around them.
54670         * modules/rename (Depends-on): Add same-inode.
54672         rename: fix Solaris 10 bug
54673         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
54674         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
54675         was the only bug.
54677         rename: fix Solaris 9 bug
54678         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
54679         on non-directory.  Avoid calling exit.
54680         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
54681         strdup.
54682         * modules/rename-tests (Depends-on): Drop lstat.
54683         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
54684         (gl_PREREQ_RENAME): Delete unused macro.
54686         rename-dest-slash: fix NetBSD bug
54687         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
54688         links.
54689         * modules/rename-dest-slash (Depends-on): Add same-inode.
54691         rename-tests: new test, exposes several platform bugs
54692         * modules/rename-tests: New file.
54693         * tests/test-rename.h: Likewise.
54694         * tests/test-rename.c: Likewise.
54695         * doc/posix-functions/rename.texi (rename): Improve documentation,
54696         including bugs that will eventually be fixed in gnulib.
54698 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
54700         * lib/uname.c: Include <stdlib.h>
54701         (uname): Assume version info is available.
54703 2009-10-02  Jim Meyering  <meyering@redhat.com>
54705         gnu-web-doc-update: correct --help output
54706         * build-aux/gnu-web-doc-update: Make --help output relevant.
54708         gnu-web-doc-update: add standard options
54709         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
54711         gnu-web-doc-update: New module.
54712         Use this script to automatically update the on-line web documentation
54713         for your GNU project at http://www.gnu.org/software/$pkg/manual/
54714         * modules/gnu-web-doc-update: New file, from coreutils.
54715         * build-aux/gnu-web-doc-update: New script.
54717 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
54719         link: LoadLibrary is not needed.
54720         * lib/link.c: Use GetModuleHandle.
54722 2009-10-01  Eric Blake  <ebb9@byu.net>
54724         getopt: bump serial number
54725         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
54726         change.
54728         tests: tighten link, rmdir, and remove tests
54729         * tests/test-link.h (includes): No need to use <config.h> here.
54730         Clean up if directory hard link was created, otherwise test for
54731         trailing '.'.
54732         * tests/test-linkat.c (main): Simplify.
54733         * tests/test-remove.c (main): Enhance test for trailing '.'.
54734         * tests/test-rmdir.h (test_rmdir_func): Likewise.
54736 2009-10-01  Jim Meyering  <meyering@redhat.com>
54738         maint.mk: requiring "make major" was annoying, for a "minor" release.
54739         What is intended is "stable", to contrast with alpha and beta,
54740         so require "make stable", not "make major".
54741         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
54742         (get_tool_versions): Likewise.
54743         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
54745 2009-09-30  Ben Pfaff  <blp@gnu.org>
54747         Fix broken build of replacement for Windows tmpfile().
54748         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
54749         flags argument added along with the 'mkostemp' module.
54751 2009-09-28  Bruno Haible  <bruno@clisp.org>
54753         Avoid identifier clash with POSIX function 'remove' defined as a macro.
54754         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
54755         to 'remove_elt'.
54756         (gl_list_remove): Update.
54757         * lib/gl_list.c (gl_list_remove): Update.
54758         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
54759         to 'remove_elt'.
54760         (gl_oset_remove): Update.
54761         * lib/gl_list.c (gl_oset_remove): Update.
54762         Reported by Eric Blake.
54764 2009-09-28  Eric Blake  <ebb9@byu.net>
54766         doc: mention yet more cygwin 1.7 status
54767         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
54768         cygwin.
54769         * doc/glibc-functions/execvpe.texi (execvpe): New file.
54770         * doc/gnulib.texi (Glibc unistd.h): Mention it.
54772         argp: fix test failure
54773         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
54774         that are not upper-case.  Pass correct range to tolower.
54776 2009-09-27  Jim Meyering  <meyering@redhat.com>
54778         test-yesno: work around sparc-dash here-document infelicity
54779         Without this change, the literal \177 byte in a here document
54780         would make dash 0.5.5.1-3 access uninitialized memory.
54781         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
54782         Instead, use a marker, "@", and filter through tr to create the desired
54783         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
54785 2009-09-27  Bruno Haible  <bruno@clisp.org>
54787         Disable untested support for new flavours of ACLs on AIX.
54788         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
54789         progress.
54790         * lib/set-mode-acl.c (qset_acl): Likewise.
54792 2008-12-07  Bruno Haible  <bruno@clisp.org>
54794         Add support for new flavours of ACLs on AIX. (Untested.)
54795         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
54796         (file_has_acl): Add support for newer AIX.
54797         * lib/set-mode-acl.c (qset_acl): Likewise.
54798         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
54799         Rainer Tammer <tammer@tammer.net>.
54801 2009-09-26  Eric Blake  <ebb9@byu.net>
54803         argp: fix compilation of getopt
54804         * lib/getopt.in.h (includes): Use different guard than glibc.
54805         Reported by Sergey Poznyakoff.
54807         doc: mention more cygwin 1.7 status
54808         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
54809         bug.
54810         * doc/posix-functions/execl.texi (execl): Likewise.
54811         * doc/posix-functions/execle.texi (execle): Likewise.
54812         * doc/posix-functions/execlp.texi (execlp): Likewise.
54813         * doc/posix-functions/execv.texi (execv): Likewise.
54814         * doc/posix-functions/execve.texi (execve): Likewise.
54815         * doc/posix-functions/execvp.texi (execvp): Likewise.
54816         * doc/glibc-functions/canonicalize_file_name.texi
54817         (canonicalize_file_name): Cygwin 1.7 now provides this.
54818         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
54819         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
54820         on AT_SYMLINK_NOFOLLOW.
54822 2009-09-24  Eric Blake  <ebb9@byu.net>
54824         test-linkat: make test more robust
54825         * tests/test-linkat.c (main): Avoid collision with EEXIST.
54827         getopt: fix inclusion guards for cygwin
54828         * modules/getopt-posix (Depends-on): Add include-next.
54829         (Makefile.am): Substitute more items in replacement header.
54830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
54831         <getopt.h>.
54832         * lib/getopt.in.h (includes): Use split inclusion guard, and
54833         prefer <getopt.h> over include <unistd.h> when one is present.
54834         (option): Also override name of 'struct option'.
54836         same-inode: revert prior change; it is not yet ready
54837         * NEWS: Undo mention of this change.
54838         * lib/same-inode.h (same-inode.h): Undo tri-state change.
54839         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
54840         * lib/cycle-check.c (cycle_check): Likewise.
54841         * lib/same.c (same_name): Likewise.
54842         * lib/at-func2.c (at_func2): Likewise.
54844 2009-09-23  Eric Blake  <ebb9@byu.net>
54846         linkat: new module
54847         * modules/linkat: New file.
54848         * lib/at-func2.c (at_func2): Likewise.
54849         * lib/linkat.c (linkat): Likewise.
54850         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
54851         * lib/openat-priv.h (at_func2): Add declaration.
54852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
54853         * modules/unistd (Makefile.am): Substitute them.
54854         * lib/unistd.in.h (linkat): Declare it.
54855         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54856         * doc/posix-functions/linkat.texi (linkat): Likewise.
54857         * doc/posix-functions/link.texi (link): Tweak wording.
54858         * tests/test-link.c (main): Move guts...
54859         * tests/test-link.h (test_link): ...into new file.
54860         * modules/linkat-tests: New test.
54861         * tests/test-linkat.c: Likewise.
54862         * modules/link-tests (Files): Ship new file.
54863         (Depends-on): Add stdbool.
54865         dirname: add library-safe mdir_name
54866         * lib/dirname.h (mdir_name): New prototype.
54867         * lib/dirname.c (dir_name): Move guts...
54868         (mdir_name): ...to new function that avoids xalloc_die.
54870         fchdir: another mingw fix
54871         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
54872         * lib/fchdir.c (get_name): New helper method; skips canonicalize
54873         on mingw (where it has not yet been ported), and make it optional
54874         elsewhere.
54875         (_gl_register_fd): Use it.
54877         same-inode: make SAME_INODE tri-state, to port to mingw
54878         * NEWS: Mention this change.
54879         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
54880         st_ino always being 0.
54881         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
54882         * lib/cycle-check.c (cycle_check): Likewise.
54883         * lib/same.c (same_name): Likewise.
54885         lstat: avoid mingw compilation error
54886         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
54887         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
54888         lstat ourselves.
54889         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
54890         was adequate.
54891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
54892         the checks for lstat.
54893         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
54895         link: fix test failure on Solaris 9
54896         * lib/link.c (rpl_link): Don't assume link will catch bogus
54897         trailing slash on source.
54899         test-symlinkat: enhance test
54900         * tests/test-readlink.c (main): Move guts...
54901         * tests/test-readlink.h (test_readlink): ...into new file.
54902         * tests/test-symlink.c (main): Move guts...
54903         * tests/test-symlink.h (test_symlink): ...into new file.
54904         * tests/test-symlinkat.c (main): Use new files for further
54905         coverage.
54906         (do_symlink, do_readlink): New helper functions.
54907         * modules/symlink-tests (Files): Ship new file.
54908         (Depends-on): Add stdbool.
54909         * modules/readlink-tests (Files): Ship new file.
54910         (Depends-on): Add stdbool.
54911         * modules/symlinkat-tests (Files): Use new files.
54913 2009-09-23  Eric Blake  <ebb9@byu.net>
54915         readlink: document portability issue with symlink length
54916         * doc/posix-functions/lstat.texi (lstat): Mention that some file
54917         systems have bogus st_size on symlinks, and mention the
54918         areadlink-with-size module.
54919         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
54920         * doc/posix-functions/readlink.texi (readlink): Mention the
54921         areadlink module, and ERANGE failure.
54922         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
54923         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
54925         readlink: fix Solaris 9 bug with trailing slash
54926         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
54927         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
54928         * doc/posix-functions/readlink.texi (readlink): Document this.
54929         * modules/readlink-tests: New test.
54930         * tests/test-readlink.c: Likewise.
54932         readlink: fix cygwin 1.5.x bug with return type
54933         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
54934         * lib/unistd.in.h (readlink): Use ssize_t.
54935         * lib/readlink.c (readlink): Likewise.
54936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
54937         * modules/unistd (Makefile.am): Substitute it.
54938         * lib/unistd.in.h (readlink): Declare replacement.
54939         * doc/posix-functions/readlink.texi (readlink): Document this.
54941         symlink: use throughout gnulib
54942         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
54943         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
54944         symlink is not used.
54945         * modules/symlinkat (Depends-on): Add symlink.
54946         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
54947         * modules/canonicalize-tests (Depends-on): Likewise.
54948         * modules/lstat-tests (Depends-on): Likewise.
54949         * modules/openat-tests (Depends-on): Likewise.
54950         * modules/remove-tests (Depends-on): Likewise.
54951         * modules/rmdir-tests (Depends-on): Likewise.
54952         * modules/unlink-tests (Depends-on): Likewise.
54953         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
54954         * tests/test-canonicalize.c (symlink): Likewise.
54955         * tests/test-fstatat.c (symlink): Likewise.
54956         * tests/test-lstat.c (symlink): Likewise.
54957         * tests/test-remove.c (symlink): Likewise.
54958         * tests/test-rmdir.c (symlink): Likewise.
54959         * tests/test-unlink.c (symlink): Likewise.
54960         * tests/test-unlinkat.c (symlink): Likewise.
54962         symlink: new module, for Solaris 9 bug
54963         * modules/symlink: New file.
54964         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
54965         * lib/symlink.c: Likewise.
54966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
54967         * modules/unistd (Makefile.am): Substitute them.
54968         * lib/unistd.in.h (symlink): Declare replacement.
54969         * MODULES.html.sh (File system functions): Mention it.
54970         * doc/posix-functions/symlink.texi (symlink): Likewise.
54971         * modules/symlink-tests: New test.
54972         * tests/test-symlink.c: Likewise.
54974 2009-09-23  Bruno Haible  <bruno@clisp.org>
54976         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
54977         when needed.
54978         Test case: gnulib-tool --import --with-tests atexit inttypes.
54979         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
54981 2009-09-23  Bruno Haible  <bruno@clisp.org>
54983         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
54984         subcommand, not in a subshell.
54986 2009-09-22  Eric Blake  <ebb9@byu.net>
54988         unistd: sort replacement declarations
54989         * lib/unistd.in.h: Sort declarations.
54991         open, openat: minor optimization
54992         * lib/open.c (open): If open succeeded, len is non-zero.
54993         * lib/openat.c (rpl_openat): Likewise.
54995         link-follow: ensure correct result
54996         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
54997         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
54998         distinguish between possible failures.
55000 2009-09-21  Eric Blake  <ebb9@byu.net>
55002         fts: avoid compiler warning
55003         * lib/fts.c (dirent_inode_sort_may_be_useful)
55004         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
55006 2009-09-19  Bruno Haible  <bruno@clisp.org>
55008         * lib/progreloc.c (canonicalize_file_name): New declaration.
55010 2009-09-19  Eric Blake  <ebb9@byu.net>
55012         link: fix quoting
55013         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
55015         openat: fix openat bugs on Solaris 9
55016         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
55017         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
55018         * modules/openat (Depends-on): Add open.
55019         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
55020         * modules/fcntl-h (Makefile.am): Substitute it.
55021         * lib/fcntl.in.h (openat): Declare replacement.
55022         * doc/posix-functions/openat.texi (openat): Document this.
55024         openat: move fstatat and unlinkat into correct files
55025         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
55026         compiled.
55027         * lib/openat.c (fstatat, unlinkat): Move...
55028         * lib/fstatat.c (fstatat): ...into correct files.
55029         * lib/unlinkat.c (unlinkat): Likewise.
55031         openat: fix unlinkat bugs on Solaris 9
55032         * lib/unlinkat.c (unlinkat): New file.
55033         * modules/openat (Depends-on): Add unlink.
55034         (Files): Distribute it.
55035         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
55036         trailing slash behavior is broken.
55037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55038         * modules/unistd (Makefile.am): Substitute it.
55039         * lib/unistd.in.h (unlinkat): Declare replacement.
55040         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
55042         openat: fix fstatat bugs on Solaris 9
55043         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
55044         stat.
55045         * doc/posix-functions/fstatat.texi (fstatat): Document this.
55047         test-unlinkat: enhance test, to expose Solaris 9 bug
55048         * tests/test-unlink.c (main): Factor guts...
55049         * tests/test-unlink.h (test_rmdir_func): ...into new file.
55050         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
55051         * tests/test-rmdir.c (main): Adjust caller.
55052         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
55053         (unlinker): New helper function.
55054         (rmdirat): Enhance check.
55055         * modules/rmdir-tests (Depends-on): Add stdbool.
55056         * modules/unlink-tests (Depends-on): Likewise.
55057         (Files): Add test-unlink.h.
55058         * modules/openat-tests (Files): Likewise.
55059         (Depends-on): Add unlinkdir.
55061         test-fstatat: new test, to expose Solaris 9 bugs
55062         * tests/test-stat.c (main): Factor guts...
55063         * tests/test-stat.h (test_stat_func): ...into new file.
55064         * tests/test-lstat.c (main): Factor guts...
55065         * tests/test-lstat.h (test_lstat_func): ...into new file.
55066         * tests/test-fstatat.c: New file.
55067         * modules/stat-tests (Files): Add test-stat.h.
55068         * modules/lstat-tests (Files): Add test-lstat.h.
55069         (Depends-on): Add stdbool.
55070         * modules/openat-tests (Depends-on): Add pathmax.
55071         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
55072         (Makefile.am): Run new test.
55074         remove: new module, for mingw and Solaris 9 bugs
55075         * modules/remove: New file.
55076         * lib/remove.c: Likewise.
55077         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
55078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
55079         * modules/stdio (Makefile.am): Use them.
55080         * lib/stdio.in.h (remove): Declare replacement.
55081         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55082         * doc/posix-functions/remove.texi (remove): Likewise.
55083         * modules/remove-tests: New test.
55084         * tests/test-remove.c: Likewise.
55086         unlink: new module, for Solaris 9 bug
55087         * modules/unlink: New file.
55088         * lib/unlink.c: Likewise.
55089         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
55090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
55091         * modules/unistd (Makefile.am): Use them.
55092         * lib/unistd.in.h (stat): Declare replacement.
55093         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55094         * doc/posix-functions/unlink.texi (unlink): Likewise.
55095         * modules/unlink-tests: New test.
55096         * tests/test-unlink.c: Likewise.
55098         lstat: fix Solaris 9 bug
55099         * lib/lstat.c (lstat): Also check for trailing slash on
55100         non-symlink, non-directories.  Use stat module to simplify logic.
55101         * doc/posix-functions/lstat.texi (lstat): Document it.
55102         * modules/lstat-tests (Depends-on): Add errno, same-inode.
55103         (configure.ac): Check for symlink.
55104         * tests/test-lstat.c (main): Add more tests.
55106         stat: add as dependency to other modules
55107         * modules/chown (Depends-on): Add stat.
55108         * modules/euidaccess (Depends-on): Likewise.
55109         * modules/fchdir (Depends-on): Likewise.
55110         * modules/isdir (Depends-on): Likewise.
55111         * modules/link (Depends-on): Likewise.
55112         * modules/lstat (Depends-on): Likewise.
55113         * modules/mkdir-p (Depends-on): Likewise.
55114         * modules/modechange (Depends-on): Likewise.
55115         * modules/open (Depends-on): Likewise.
55116         * modules/readlink (Depends-on): Likewise.
55117         * modules/same (Depends-on): Likewise.
55119         stat: fix Solaris 9 bug
55120         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
55121         slash.
55122         * lib/stat.c (rpl_stat): Work around it.
55123         * doc/posix-functions/stat.texi (stat): Update documentation.
55125         stat: new module, for mingw bug
55126         * modules/stat: New file.
55127         * lib/stat.c: Likewise.
55128         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55129         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
55130         * modules/sys_stat (Makefile.am): Use them.
55131         * lib/sys_stat.in.h (stat): Declare replacement.
55132         * lib/openat.c (fstatat): Deal with lstat and stat being function
55133         macros.
55134         * modules/openat (Depends-on): Add inline.
55135         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55136         * doc/posix-functions/stat.texi (stat): Likewise.
55137         * modules/stat-tests: New test.
55138         * tests/test-stat.c: Likewise.
55140 2009-09-19  Jim Meyering  <meyering@redhat.com>
55142         syntax-check: detect unnecessary inclusion of canonicalize.h
55143         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
55145 2009-09-19  Eric Blake  <ebb9@byu.net>
55147         canonicalize-lgpl: adjust clients to use correct header
55148         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
55149         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
55150         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
55151         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
55152         * lib/progreloc.c (includes): Likewise.
55154 2009-09-19  Jim Meyering  <meyering@redhat.com>
55156         test-posixtm.c: correct a comment
55157         * tests/test-posixtm.c: Correct first-line comment.
55158         Spotted by Eric Blake.
55160 2009-09-16  Jim Meyering  <meyering@redhat.com>
55162         posixtm-tests: make T const-correct; add a test case
55163         * tests/test-posixtm.c (T): Declare const.
55164         Add a test for -(2^31+1).
55165         Remove useless can-succeed-only-in-2002 test.
55167         posixtm-tests: adjust the sole failing test
55168         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
55169         expected output matches what mktime now produces.  Cross-checked via
55170         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
55172         posixtm: move #ifdef'd tests into a new module
55173         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
55174         * tests/test-posixtm.c: ... this new file.
55175         * modules/posixtm-tests: New module.
55177 2009-09-19  Eric Blake  <ebb9@byu.net>
55179         openat: simplify use of at-func.c
55180         * lib/at-func.c (includes): Include prerequisites here, to
55181         simplify requirements on client files.
55182         * lib/openat-priv.h: Add double-inclusion guard.
55183         * lib/faccessat.c (includes): Simplify.
55184         * lib/fchmodat.c (includes): Likewise.
55185         * lib/fchownat.c (includes): Likewise.
55186         * lib/mkdirat.c (includes): Likewise.
55187         * lib/mkfifoat.c (includes): Likewise.
55188         * lib/symlinkat.c (includes): Likewise.
55190         openat: allow return of fd 0
55191         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
55192         * modules/save-cwd (Depends-on): Replace fcntl-safer with
55193         unistd-safer.
55194         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
55195         <fcntl.h>; this module does not leak fds.
55196         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
55197         must be allowed to return 0, leaving openat_safer to add the
55198         safety.
55199         (openat_permissive): Avoid writing to just-opened fd 2 if
55200         restoring the current directory fails.
55201         * lib/openat-die.c (openat_restore_fail): Add comment.
55202         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
55203         (save_cwd): Guarantee safe fd, but without use of open_safer.
55204         * tests/test-openat.c: New test.
55205         * modules/openat-tests (Files, Makefile.am): Distribute and build
55206         new file.
55208         relocatable-prog-wrapper: fix build
55209         * modules/relocatable-prog-wrapper (Files): Update name of
55210         canonicalize m4 file, broken on 2009-09-17.
55211         Reported by emad hajjar <aleppos@hotmail.com>.
55213 2009-09-19  Bruno Haible  <bruno@clisp.org>
55215         * lib/safe-alloc.h: Use the standard header with GPL copyright.
55216         * lib/safe-alloc.c: Likewise.
55217         Reported by Ian Beckwith <ianb@erislabs.net>.
55219 2009-09-18  Bruno Haible  <bruno@clisp.org>
55221         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
55222         Reported by <erobles@sensacd.com.mx>.
55224 2009-09-17  Eric Blake  <ebb9@byu.net>
55226         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
55227         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
55228         slashes when checking if last component is missing.
55229         * tests/test-canonicalize.c (main): Test this.
55231         canonicalize, canonicalize-lgpl: honor // if distinct from /
55232         * modules/canonicalize (Files): Add double-slash-root.m4.
55233         * modules/canonicalize-lgpl (Files): Likewise.
55234         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
55235         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
55236         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
55237         fallback definition.
55238         (canonicalize_filename_mode): Use it to protect //.
55239         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
55240         (__realpath): Likewise.
55241         * tests/test-canonicalize.c (main): Test this.
55242         * tests/test-canonicalize-lgpl.c (main): Likewise.
55243         * modules/canonicalize-tests (Depends-on): Add same-inode.
55244         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
55246         canonicalize-lgpl: fix glibc bug with trailing slash
55247         * m4/canonicalize-lgpl.m4: Move contents...
55248         * m4/canonicalize.m4: ...here.
55249         (gl_CANONICALIZE_LGPL): Factor realpath check...
55250         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
55251         glibc 2.3.5 bug, fixed 2005-04-27.
55252         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
55253         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
55254         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
55255         * modules/canonicalize-lgpl (Files): Manage file rename.
55256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
55257         * modules/stdlib (Makefile.am): Substitute witness.
55258         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
55259         is needed.
55260         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
55261         replacement is required.
55262         * lib/canonicalize.c (canonicalize_file_name): Likewise.
55263         * doc/glibc-functions/canonicalize_file_name.texi
55264         (canonicalize_file_name): Document this.
55265         * doc/posix-functions/realpath.texi (realpath): Likewise.
55267         canonicalize-lgpl: reject non-directory with trailing slash
55268         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
55269         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
55270         catches failures in glibc 2.3.5.
55271         * tests/test-canonicalize.c (main): Likewise.
55273         canonicalize-lgpl: use native realpath if it works
55274         * lib/canonicalize-lgpl.c (realpath): Guard with
55275         FUNC_REALPATH_WORKS.
55276         * lib/stdlib.in.h (realpath): Make declaration optional based on
55277         HAVE_REALPATH.
55278         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
55279         native realpath works.
55280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
55281         * modules/stdlib (Makefile.am): Substitute witness.
55283         canonicalize, canonicalize-lgpl: use <stdlib.h>
55284         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
55285         (Include): Mention <stdlib.h>.
55286         (configure.ac): Mention functions we provide.
55287         * modules/canonicalize (configure.ac): Likewise.
55288         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
55289         realpath if canonicalize_file_name is missing.
55290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
55291         * modules/stdlib (Makefile.am): Substitute witnesses.
55292         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
55293         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
55294         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
55295         * NEWS: Document this.
55296         * doc/glibc-functions/canonicalize_file_name.texi
55297         (canonicalize_file_name): Likewise.
55298         * doc/posix-functions/realpath.texi (realpath): Likewise.
55299         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
55301         test-canonicalize: consolidate into single C program
55302         * tests/test-canonicalize.sh: Delete; move setup into...
55303         * tests/test-canonicalize.c (main): ...the program, making it
55304         easier to run in debugger.  Add some tests.
55305         * modules/canonicalize-tests (Files): Remove unused file.
55306         (Depends-on): Add progname.
55307         (configure.ac, Makefile.am): Simplify.
55309         test-canonicalize-lgpl: consolidate into single C program
55310         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
55311         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
55312         easier to run in debugger.  Add some tests.
55313         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
55314         (configure.ac, Makefile.am): Simplify.
55316         canonicalize: avoid resolvepath
55317         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
55318         unnecessary checks.
55319         * lib/canonicalize.c (includes): Simplify.
55320         (canonicalize_file_name): Drop resolvepath implementation.
55321         * modules/canonicalize (Depends-on): Drop filenamecat.
55323         canonicalize: don't lose errno
55324         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
55325         over calls to free.
55327         canonicalize: simplify errno handling
55328         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
55329         assignment.
55331         canonicalize, canonicalize-lgpl: update module dependencies
55332         * modules/canonicalize (Depends-on): Add extensions, lstat,
55333         pathmax, stdlib.
55334         (Files): Drop pathmax.h.
55335         (configure.ac): Adjust macro name.
55336         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
55337         lstat, stdlib, sys_stat.
55338         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
55339         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
55340         extensions.
55341         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
55342         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
55343         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
55344         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
55345         declaration, if available.
55346         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
55347         we can rely on the readlink module.
55348         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
55349         (includes): Use <unistd.h> unconditionally.
55351 2009-09-17  Eric Blake  <ebb9@byu.net>
55353         maint: make Include sections of modules consistent
55354         * modules/alloca: Use only header name; no need to list #include.
55355         * modules/alloca-opt: Likewise.
55356         * modules/arpa_inet: Likewise.
55357         * modules/canon-host: Likewise.
55358         * modules/configmake: Likewise.
55359         * modules/dirent: Likewise.
55360         * modules/eealloc: Likewise.
55361         * modules/environ: Likewise.
55362         * modules/fchdir: Likewise.
55363         * modules/fcntl: Likewise.
55364         * modules/fcntl-h: Likewise.
55365         * modules/gethrxtime: Likewise.
55366         * modules/gettime: Likewise.
55367         * modules/ignore-value: Likewise.
55368         * modules/inet_ntop: Likewise.
55369         * modules/inet_pton: Likewise.
55370         * modules/inttypes: Likewise.
55371         * modules/isnand-nolibm: Likewise.
55372         * modules/isnanf-nolibm: Likewise.
55373         * modules/mbchar: Likewise.
55374         * modules/mbfile: Likewise.
55375         * modules/mbiter: Likewise.
55376         * modules/mbuiter: Likewise.
55377         * modules/netdb: Likewise.
55378         * modules/netinet_in: Likewise.
55379         * modules/nproc: Likewise.
55380         * modules/pagealign_alloc: Likewise.
55381         * modules/poll: Likewise.
55382         * modules/printf-frexp: Likewise.
55383         * modules/pthread: Likewise.
55384         * modules/putenv: Likewise.
55385         * modules/random_r: Likewise.
55386         * modules/relocatable-prog: Likewise.
55387         * modules/search: Likewise.
55388         * modules/select: Likewise.
55389         * modules/selinux-h: Likewise.
55390         * modules/settime: Likewise.
55391         * modules/signal: Likewise.
55392         * modules/size_max: Likewise.
55393         * modules/socklen: Likewise.
55394         * modules/ssize_t: Likewise.
55395         * modules/stdarg: Likewise.
55396         * modules/stdbool: Likewise.
55397         * modules/stddef: Likewise.
55398         * modules/stdint: Likewise.
55399         * modules/stdio: Likewise.
55400         * modules/stdlib: Likewise.
55401         * modules/string: Likewise.
55402         * modules/strings: Likewise.
55403         * modules/sys_file: Likewise.
55404         * modules/sys_ioctl: Likewise.
55405         * modules/sys_select: Likewise.
55406         * modules/sys_socket: Likewise.
55407         * modules/sys_stat: Likewise.
55408         * modules/sys_time: Likewise.
55409         * modules/sys_times: Likewise.
55410         * modules/sys_utsname: Likewise.
55411         * modules/sys_wait: Likewise.
55412         * modules/sysexits: Likewise.
55413         * modules/time: Likewise.
55414         * modules/times: Likewise.
55415         * modules/tmpfile: Likewise.
55416         * modules/trim: Likewise.
55417         * modules/unistd: Likewise.
55418         * modules/wchar: Likewise.
55419         * modules/wctype: Likewise.
55421 2009-09-17  Bruno Haible  <bruno@clisp.org>
55423         Make getdate.y compile on QNX and NetBSD 5 / i386.
55424         * m4/getdate.m4 (gl_GETDATE): Conditionally define
55425         TIME_T_FITS_IN_LONG_INT.
55426         * lib/getdate.y (long_time_t): New type.
55427         (relative_time): Change type of 'seconds' field to long_time_t.
55428         (get_date): Update types of local variables. Check against overflow
55429         during conversion from long_time_t to time_t.
55430         Reported by Matt Kraai <kraai@ftbfs.org>
55431         and Hasso Tepper <hasso@netbsd.org>.
55433 2009-09-17  Bruno Haible  <bruno@clisp.org>
55435         * modules/COPYING: Update copyright years.
55436         * modules/README: Likeiwse.
55437         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
55438         Reported by Ian Beckwith <ianb@erislabs.net>.
55440 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
55442         * users.txt: Update references for gnuit package.
55444 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
55446         * m4/getdelim.m4: Fix typo in copyright line.
55448 2009-09-17  Bruno Haible  <bruno@clisp.org>
55450         * lib/atoll.c: Use the standard header with GPL copyright.
55451         * lib/argz.in.h: Likewise.
55452         * lib/glob.c: Likewise.
55453         * lib/glob-libc.h: Likewise.
55454         * lib/random_r.c: Likewise.
55455         * lib/siglist.h: Likewise.
55456         * lib/strsignal.c: Likewise.
55457         Reported by Ian Beckwith <ianb@erislabs.net>.
55459 2009-09-17  Eric Blake  <ebb9@byu.net>
55461         rmdir: ensure correct dependency order
55462         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
55464 2009-09-17  Bruno Haible  <bruno@clisp.org>
55466         Disable assertion that fails on NetBSD 5 / i386.
55467         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
55468         Reported by Sam Steingold <sds@gnu.org>
55469         and Hasso Tepper <hasso@netbsd.org>.
55471 2009-09-16  Eric Blake  <ebb9@byu.net>
55473         unlinkdir: port to mingw
55474         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
55475         on which no one can unlink a directory.
55477         stdlib: sort witness names
55478         * modules/stdlib (Makefile.am): Sort replacements.
55479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55480         * lib/stdlib.in.h: Likewise.
55482         parse-duration-tests: avoid link failure
55483         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
55484         LIBINTL.
55485         Reported by Tom G. Christensen.
55487         openat-tests: ensure unlinkat behaves like rmdir
55488         * tests/test-rmdir.c (main): Factor guts...
55489         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
55490         * modules/rmdir-tests (Files): Ship new file.
55491         * modules/openat-tests: New test.
55492         * tests/test-unlinkat.c: Likewise.
55494         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
55495         * modules/rmdir-errno (Status, Notice): Now obsolete.
55497         rmdir: work around cygwin 1.5.x and mingw bugs
55498         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
55499         * lib/rmdir.c (rmdir): Work around it.
55500         * modules/rmdir (Status, Notice): No longer obsolete.
55501         (Files): Add dos.m4.
55502         (Depends-on): Add unistd.
55503         (configure.ac): Set witnesses.
55504         (License): Relax to LGPLv2+.
55505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
55506         * modules/unistd (Makefile.am): Substitute witnesses.
55507         * lib/unistd.in.h (rmdir): Declare replacement.
55508         * doc/posix-functions/rmdir.texi (rmdir): Document this.
55509         * modules/rmdir-tests: New tests.
55510         * tests/test-rmdir.c: Likewise.
55512 2009-09-15  Eric Blake  <ebb9@byu.net>
55514         fchdir: improve use of replacement functions
55515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
55516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
55517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
55518         REPLACE_CLOSEDIR.
55519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
55520         * modules/sys_stat (Makefile.am): Substitute correct witness.
55521         * modules/dirent (Makefile.am): Likewise.
55522         * modules/unistd (Makefile.am): Likewise.
55523         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
55524         * lib/unistd.in.h (dup): Likewise.
55525         * lib/sys_stat.in.h (fstat): Likewise.
55527         maint: ignore gnulib-tool temp files
55528         * .gitignore: Ignore files created during gnulib-tool --test.
55530 2009-09-13  Jim Meyering  <meyering@redhat.com>
55532         posixtm: don't reject a time that specify "60" as the number of seconds
55533         * lib/posixtm.c (posixtime): The code to reject invalid dates
55534         would also reject a time specified with the .60 suffix.
55535         But POSIX allows that, in order to accommodate leap seconds.
55536         So don't reject it.
55537         (main): Adjust tests accordingly.
55538         * modules/posixtm (Depends-on): Add stpcpy.
55540 2009-09-11  Jim Meyering  <meyering@redhat.com>
55542         announce-gen: include [$release_type] in emitted Subject:
55543         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
55544         e.g., [stable] in the emitted Subject: line.
55546 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55548         Remove obsolete macros from several modules.
55549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
55550         obsolete Autoconf macros with their modern counterparts.
55551         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
55552         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
55553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
55554         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55555         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
55556         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55557         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55558         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
55559         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
55560         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
55561         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
55562         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
55563         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
55564         * m4/sockets.m4 (gl_SOCKETS): Likewise.
55565         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
55566         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
55567         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55568         * m4/time_r.m4 (gl_TIME_R): Likewise.
55569         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
55570         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
55571         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55573         Fix copyright header in build-aux scripts.
55574         * build-aux/git-version-gen: Fix copyright header to match GPLv3
55575         recommendation.
55576         * build-aux/ncftpput-ftp: Likewise.
55577         * build-aux/update-copyright: Likewise.
55579 2009-09-09  Eric Blake  <ebb9@byu.net>
55581         test-link: allow Linux choice of errno
55582         * tests/test-link.c (main): Relax test for alternate error.
55584         strndup: fix improper m4 caching
55585         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
55586         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
55587         (gl_PREREQ_STRNDUP): Delete.
55588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
55589         * modules/string (Makefile.am): Substitute it.
55590         * lib/string.in.h (strndup): Modernize prototype.
55592         getcwd: port to mingw
55593         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
55594         different from the POSIX assumptions made throughout the getcwd
55595         module; fortunately, the mingw getcwd does not need replacement.
55596         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
55597         * modules/getcwd-tests: New test.
55598         * tests/test-getcwd.c: Likewise.
55600         link: fix platform bugs
55601         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
55602         * lib/link.c (link): Work around them.  Fix related mingw bug.
55603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
55604         * modules/unistd (Makefile.am): Substitute it.
55605         * lib/unistd.in.h (link): Declare replacement.
55606         * doc/posix-functions/link.texi (link): Document this.
55607         * modules/link (Depends-on): Add strdup-posix, sys_stat.
55609         test-link: consolidate into single C program, test more cases
55610         * tests/test-link.sh: Delete.
55611         * tests/test-link.c: Test more error conditions.  Exposes bugs on
55612         at least Cygwin and Solaris.
55613         * modules/link-tests (Files): Remove unused file.
55614         (Depends-on): Add errno, sys_stat.
55615         (Makefile.am): Simplify.
55617 2009-09-08  Bruno Haible  <bruno@clisp.org>
55619         Work around towlower, towupper bug on mingw.
55620         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
55621         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
55622         * doc/posix-functions/towlower.texi: Mention the mingw bug.
55623         * doc/posix-functions/towupper.texi: Likewise.
55624         Reported by Eric Blake.
55626 2009-09-08  Jim Meyering  <meyering@redhat.com>
55628         build: don't try to run autoheader if we don't use it
55629         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
55630         is not used in configure.ac.
55632 2009-09-08  Eric Blake  <ebb9@byu.net>
55634         euidaccess: fix compilation error
55635         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
55637         rawmemchr: relax license
55638         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
55639         okay.
55640         Reported by Jim Meyering.
55642         mkfifoat: new module
55643         * modules/mkfifoat: New file.
55644         * lib/mkfifoat.c: Likewise.
55645         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
55646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
55647         * modules/sys_stat (Makefile.am): Use them.
55648         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
55649         * MODULES.html.sh (File system functions): Mention module.
55650         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
55651         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
55652         * modules/mkfifoat-tests: New test.
55653         * tests/test-mkfifoat.c: Likewise.
55655         strchrnul: relax license
55656         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
55657         okay.
55658         Reported by Jim Meyering.
55660 2009-09-08  Eric Blake  <ebb9@byu.net>
55662         fstatat: fix compilation on Solaris
55663         * lib/fstatat.c (includes): Add fcntl.h.
55664         Reported by Pádraig Brady.
55666 2009-09-07  Eric Blake  <ebb9@byu.net>
55668         rename: modernize replacement
55669         * modules/rename (Depends-on): Add stdio.
55670         (configure.ac): Declare witness.
55671         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
55672         stdio take care of replacement.
55673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55674         * modules/stdio (Makefile.am): Substitute them.
55675         * lib/stdio.in.h (rename): Declare replacement.
55676         * lib/rename.c (includes): Allow cross-compilation to non-windows
55677         machines.
55678         * doc/posix-functions/rename.texi (rename): Improve
55679         documentation.
55681         stdio: sort witness names
55682         * modules/stdio (Makefile.am): Sort replacements.
55683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55684         * lib/stdio.in.h: Likewise.
55686         getcwd: minor cleanups
55687         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
55688         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
55690         openat: provide more convenience names
55691         * modules/faccessat (configure.ac): Add C witness.
55692         * lib/unistd.in.h (readlinkat): Fix typo.
55693         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
55694         convenience wrappers.
55695         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
55696         wrappers in syntax checks.
55698 2009-09-06  Eric Blake  <ebb9@byu.net>
55700         doc: fix comments in recent patches
55701         * lib/faccessat.c: Mention correct function.
55702         * lib/fchmodat.c: Likewise.
55703         * lib/fchownat.c: Likewise.
55704         * lib/symlinkat.c: Likewise.
55705         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
55706         constants.
55708         faccessat, symlinkat: continue cleanup of previous patch
55709         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
55710         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
55711         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
55712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
55713         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
55714         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
55715         set.
55717 2009-09-06  Bruno Haible  <bruno@clisp.org>
55719         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
55720         (fstatat): Declare if GNULIB_FSTATAT is set.
55721         (mkdirat): Declare if GNULIB_MKDIRAT is set.
55722         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
55723         (unlinkat): Declare if GNULIB_UNLINKAT is set.
55724         * modules/fcntl-h (Files): Remove m4/openat.m4.
55725         * modules/sys_stat (Files): Remove m4/openat.m4.
55726         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
55727         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
55728         * modules/unistd (Files): Remove m4/openat.m4.
55729         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
55730         GNULIB_OPENAT.
55731         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
55732         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
55733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
55734         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
55735         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
55736         gl_OPENAT_DEFAULTS.
55737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
55738         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
55739         Don't require gl_OPENAT_DEFAULTS.
55740         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
55741         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
55742         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
55743         (gl_OPENAT_DEFAULTS): Remove macro.
55745 2009-09-06  Bruno Haible  <bruno@clisp.org>
55747         * modules/openat (configure.ac): Remove unneeded witness.
55749 2009-09-06  Bruno Haible  <bruno@clisp.org>
55751         Set errno to ENOSYS when a function is entirely unsupported.
55752         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
55753         EOPNOTSUPP.
55754         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
55755         * modules/chown (Depends-on): Remove errno.
55757 2009-09-06  Bruno Haible  <bruno@clisp.org>
55759         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
55761 2009-09-06  Bruno Haible  <bruno@clisp.org>
55763         * lib/sys_stat.in.h: Fix preprocessor command indentation.
55765 2009-09-06  Ben Pfaff  <blp@gnu.org>
55766             Bruno Haible  <bruno@clisp.org>
55768         Work around a glibc bug in strtok_r.
55769         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
55770         Undefine if UNDEFINE_STRTOK_R is set.
55771         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
55772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55773         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
55774         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
55775         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
55776         UNDEFINE_STRTOK_R.
55777         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
55779 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
55781         exclude: minor fix
55782         * lib/exclude.c: Include wctype.h
55784 2009-09-06  Akim Demaille  <demaille@gostai.com>
55786         bootstrap: improve error message
55787         * build-aux/bootstrap (find_tool): Upon failure, report the list
55788         of candidates.
55789         Honor the initial value of the envvar.
55791 2009-09-05  Eric Blake  <ebb9@byu.net>
55793         symlinkat: new module
55794         * modules/symlinkat: New file.
55795         * lib/symlinkat.c: Likewise.
55796         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
55797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
55798         * modules/unistd (Makefile.am): Use them.
55799         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
55800         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
55801         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
55802         * MODULES.html.sh (File system functions): Mention module.
55803         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
55804         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55805         * modules/symlinkat-tests: New test.
55806         * tests/test-symlinkat.c: Likewise.
55808         test-openat-safer: add more checks
55809         * tests/test-openat-safer.c (main): Check more code paths.
55811 2009-09-05  Jim Meyering  <meyering@redhat.com>
55813         syntax-check: detect unnecessary inclusion of openat.h
55814         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
55816 2009-09-05  Bruno Haible  <bruno@clisp.org>
55818         Support towlower, towupper.
55819         * doc/posix-functions/towlower.texi: Mention module wctype.
55820         * doc/posix-functions/towupper.texi: Likewise.
55821         * lib/wctype.in.h (towlower, towupper): New functions.
55822         * tests/test-wctype.c: Include stdio.h, stdlib.h.
55823         (ASSERT): New macro.
55824         (e): New variable.
55825         (main): Test also towlower, towupper. Test WEOF argument.
55826         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
55828 2009-09-05  Bruno Haible  <bruno@clisp.org>
55830         Fix conversion behaviour when the input is invalid.
55831         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
55832         mark occurring in first pass of indirect conversion.
55833         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
55834         input.
55835         Found by clang's static analyzer.
55837 2009-09-05  Bruno Haible  <bruno@clisp.org>
55839         * tests/test-striconveh.c (main): Test indirect conversion on platforms
55840         where direct conversion is possible.
55842 2009-09-04  Eric Blake  <ebb9@byu.net>
55844         openat: fail with ENOENT on empty name
55845         * lib/openat-proc.c (openat_proc_name): Special-case the empty
55846         buffer.
55848         link-follow: fix logic bug in prior patch
55849         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
55850         reversed sense of yes and no in prior patch.  Avoid confusing
55851         compilation failure with desired semantics.
55853         link-follow: accommodate mingw and cross-compilation
55854         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
55855         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
55856         cross-compilation results to -1, to make linkat easier to
55857         implement when cross-compiling.  Trivially support mingw.
55858         * modules/link-follow (configure.ac): Call new name.
55859         * NEWS: Mention this.
55861 2009-09-03  Eric Blake  <ebb9@byu.net>
55863         faccessat: compile replacement
55864         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
55865         needed.
55867         fts: fix compilation error
55868         * lib/fts.c (includes): Re-add "openat.h", for
55869         openat_needs_fchdir.
55871         faccessat: new module
55872         * modules/faccessat: New file.
55873         * lib/faccessat.c: Likewise.
55874         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
55875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55876         * modules/unistd (Makefile.am): Use it.
55877         * lib/unistd.in.h (faccessat): Declare it.
55878         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
55879         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
55880         * MODULES.html.sh (File system functions): Mention it.
55881         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
55882         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
55884         euidaccess: prefer POSIX over non-standard implementation
55885         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
55886         * lib/euidaccess.c (euidaccess): Use it if available.
55888         openat: make template easier to use
55889         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
55890         AT_FUNC_F2 to be undefined.
55891         (VALIDATE_FLAG): New macro; use it to reject bad flags.
55892         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
55893         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
55894         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
55895         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
55896         Likewise.
55897         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
55898         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
55899         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
55900         Likewise.
55902         openat: declare in POSIX headers
55903         * NEWS: Mention this.
55904         * modules/openat (configure.ac): Declare witnesses.
55905         (Depends-on): Add fcntl-h, sys_stat, unistd.
55906         (Include): Mention correct headers.
55907         * modules/fcntl-h (Depends-on): Add link-warning.
55908         (Files): Add openat.m4.
55909         (Makefile.am): Substitute witnesses.
55910         * modules/sys_stat (Files, Makefile.am): Likewise.
55911         * modules/unistd (Files, Makefile.am): Likewise.
55912         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
55913         (gl_OPENAT_DEFAULTS): New macro.
55914         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
55915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
55916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
55917         (SYS_STAT_H): Remove unused variable.
55918         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
55919         * lib/fcntl--.h (includes): Remove unneeded header.
55920         * lib/openat-safer.c (includes): Likewise.
55921         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
55922         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
55923         appropriate headers.
55924         (__OPENAT_PREFIX): Delete.
55925         * lib/fcntl.in.h (openat): Provide declaration.
55926         (AT_FDCWD): Fix Solaris bug.
55927         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
55928         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
55929         * lib/fchmodat.c (includes):  Adjust to find declaration.
55930         * lib/fchownat.c (includes): Likewise.
55931         * lib/mkdirat.c (includes): Likewise.
55932         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
55933         still visible.
55935 2009-09-02  Eric Blake  <ebb9@byu.net>
55937         errno: use consistently
55938         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
55939         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
55940         * lib/canonicalize.c (ELOOP): Likewise.
55941         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
55942         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
55943         * lib/lchown.c (EOPNOTSUPP): Likewise.
55944         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
55945         * lib/savewd.c (ESTALE): Likewise.
55946         * lib/settime.c (ENOSYS): Likewise.
55947         * lib/utimens.c (ENOSYS): Likewise.
55948         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
55949         * lib/chdir-safer.c (ELOOP): Likewise.
55950         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
55951         * modules/c-stack (Depends-on): Add errno.
55952         * modules/canonicalize (Depends-on): Likewise.
55953         * modules/chdir-safer (Depends-on): Likewise.
55954         * modules/fdopendir (Depends-on): Likewise.
55955         * modules/inet_ntop (Depends-on): Likewise.
55956         * modules/inet_pton (Depends-on): Likewise.
55957         * modules/lchown (Depends-on): Likewise.
55958         * modules/openat (Depends-on): Likewise.
55959         * modules/savewd (Depends-on): Likewise.
55960         * modules/settime (Depends-on): Likewise.
55961         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
55963         fts: avoid leaking fds
55964         * modules/fts (Depends-on): Add cloexec.
55965         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
55966         flag.
55968         fts: make directory fds more robust
55969         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
55970         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
55972         backupfile, chdir-long, fts, savedir: make safer
55973         * lib/backupfile.c (includes): Use "dirent--.h", since
55974         numbered_backup can write to stderr during readdir.
55975         * lib/savedir.c (includes): Likewise.
55976         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
55977         emulation can write to stderr on failure.
55978         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
55979         * lib/getcwd.c: Document why opendir_safer is unused.
55980         * lib/glob.c: Likewise.
55981         * lib/scandir.c: Likewise.
55982         * lib/openat-proc.c: Likewise, for open_safer.
55983         * modules/backupfile (Depends-on): Add dirent-safer.
55984         * modules/savedir (Depends-on): Likewise.
55985         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
55986         * modules/chdir-long (Depends-on): Add openat-safer.
55988         openat-safer: new module
55989         * modules/openat-safer: New file.
55990         * lib/openat-safer.c: Likewise.
55991         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
55992         * lib/fcntl-safer.h (openat_safer): Declare.
55993         * lib/fcntl--.h (openat): Override.
55994         * MODULES.html.sh (File descriptor based I/O): Mention it.
55995         * lib/openat.h: Add double-inclusion guards.
55996         * lib/openat.c (includes): Only include "fcntl-safer.h", not
55997         "fcntl--.h", so we can implement openat.
55998         * modules/openat-safer-tests: New test.
55999         * tests/test-openat-safer.c: New file.
56001         dirent-safer: new module
56002         * modules/dirent-safer: New file.
56003         * lib/dirent--.h: Likewise.
56004         * lib/dirent-safer.h: Likewise.
56005         * lib/opendir-safer.c: Likewise.
56006         * m4/dirent-safer.m4: Likewise.
56007         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
56008         * modules/dirent-safer-tests: New test.
56009         * tests/test-dirent-safer.c: New file.
56010         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
56012         fdopendir: optimize on mingw
56013         * lib/unistd.in.h (_gl_directory_name): New prototype.
56014         * lib/fchdir.c (_gl_directory_name): Implement it.
56015         (fchdir): Use it to simplify implementation.
56016         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
56017         fchdir, when available, to avoid calling [f]chdir().
56019         fdopendir: split into its own module
56020         * lib/openat.c (fdopendir): Move...
56021         * lib/fdopendir.c: ...into new file.
56022         * modules/fdopendir: New module.
56023         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
56024         * modules/openat (Depends-on): Add fdopendir.
56025         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
56026         fdopendir here.
56027         * modules/savedir (Depends-on): Only need fdopendir, not full
56028         openat.
56029         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
56030         * lib/openat.h (fdopendir): Drop prototype.
56031         * lib/dirent.in.h (fdopendir): Provide prototype.
56032         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
56033         * modules/dirent (Makefile.am): Substitute them.
56034         * MODULES.html.sh (File system functions): Mention it.
56035         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
56036         * modules/fdopendir-tests: New file.
56037         * tests/test-fdopendir.c: Likewise.
56039         fchdir: use more consistent macro convention
56040         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
56041         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
56042         REPLACE_FCHDIR, rather than relying on config.h macros.
56043         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
56044         inside a single make-time REPLACE_FCHDIR block, rather than using
56045         the config.h FCHDIR_REPLACEMENT.
56046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
56047         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
56048         Manage fstat replacement.
56049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
56050         REPLACE_FCHDIR.
56051         * modules/sys_stat (Files): Add m4/unistd_h.m4.
56052         (Makefile.am): Substitute REPLACE_FCHDIR.
56053         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
56054         FCHDIR_REPLACEMENT.
56055         * lib/dup-safer.c (dup_safer): Likewise.
56056         * lib/dup2.c (rpl_dup2): Likewise.
56057         * lib/dup3.c (rpl_dup3): Likewise.
56058         * lib/open.c (rpl_open): Likewise.
56060         fchdir: simplify error handling, and support dup3
56061         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
56062         stdbool, malloc-posix, realloc-posix.
56063         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
56064         (ensure_dirs_slot): Return false on allocation failure.
56065         (rpl_dup2): Delete.
56066         (_gl_register_dup): New function.
56067         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
56068         (_gl_register_fd): Close fd on allocation failure.
56069         * lib/fcntl.in.h (_gl_register_fd): Update signature.
56070         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
56071         prototype.
56072         (rpl_dup2_fchdir): Delete prototype.
56073         * lib/open.c (open): Update caller.
56074         * lib/dup2.c (dup2): Track fchdir metadata.
56075         * lib/dup3.c (dup3): Likewise.
56076         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
56077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
56079 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56081         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
56082         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
56083         don't pass arguments to AC_OUTPUT.
56085 2009-09-02  Bruno Haible  <bruno@clisp.org>
56087         * modules/mkdtemp (License): Relicense under LGPLv2+.
56088         Reported by Paolo Bonzini.
56090 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56092         Replace uses of obsolete autoconf macros in Jim's modules.
56093         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
56094         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
56095         can evoke a warning from autoconf when run with -Wobsolete
56096         enabled.  They were declared obsolete for good reasons (see
56097         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
56098         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
56099         should not continue using the deprecated macros.
56100         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
56101         obsolete Autoconf macros with modern counterparts.
56102         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56103         * m4/dos.m4 (gl_AC_DOS): Likewise.
56104         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
56105         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
56106         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
56107         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
56108         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
56109         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
56110         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
56111         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
56112         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56113         Likewise.
56114         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
56115         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56116         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
56117         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
56118         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56119         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56121 2009-09-01  Eric Blake  <ebb9@byu.net>
56123         fchdir: fix off-by-one bug in previous patch
56124         * lib/fchdir.c (rpl_fstat): Use correct bounds.
56125         (_gl_unregister_fd): Delete useless if.
56127 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
56129         maint.mk: sort the list of syntax-check rules
56130         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
56131         easier to get a sense of progress when the rules are run sequentially
56132         and take a long time.
56134 2009-09-01  Simon Josefsson  <simon@josefsson.org>
56136         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
56137         * modules/netinet_in: Likewise.
56138         * modules/sys_file: Likewise.
56139         * modules/sys_ioctl: Likewise.
56140         * modules/sys_select: Likewise.
56141         * modules/sys_socket: Likewise.
56142         * modules/sys_stat: Likewise.
56143         * modules/sys_time: Likewise.
56144         * modules/sys_times: Likewise.
56145         * modules/sys_utsname: Likewise.
56146         * modules/sys_wait: Likewise.
56148 2009-09-01  Jim Meyering  <meyering@redhat.com>
56150         fts: help ensure that return values are not ignored
56151         * lib/fts_.h (__GNUC_PREREQ): Define.
56152         (__attribute_warn_unused_result__): Define.
56153         (fts_children, fts_close, fts_open, fts_read): Declare with
56154         __attribute_warn_unused_result__.
56156         fts: fts_close now fails also when closing a dir file descriptor fails
56157         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
56158         and propagate to caller, along with errno.
56160         announce-gen: correct formatting in --help output
56161         * build-aux/announce-gen (usage): Move the one-line description in
56162         --help output "up", to where it belongs, just after Usage:.
56164 2009-08-31  Eric Blake  <ebb9@byu.net>
56166         fchdir: port to mingw
56167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
56168         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
56169         opened, then use a substitute.
56170         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
56171         replacement.
56172         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
56173         (_gl_register_fd): No need to check stat if open already filters
56174         all directories.
56175         (fchdir): Fix error condition to match POSIX.
56176         * modules/fchdir (Depends-on): Add sys_stat.
56177         * doc/posix-functions/open.texi (open): Document the limitation.
56178         * modules/fchdir-tests: New file.
56179         * tests/test-fchdir.c: Likewise.
56181         canonicalize: allow cross-testing from cygwin to mingw
56182         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
56183         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
56184         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
56185         Likewise.
56186         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
56187         target does not support symlinks.
56188         * tests/test-canonicalize-lgpl.sh: Likewise.
56190         chown: avoid compilation warning on mingw
56191         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
56192         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
56193         mingw.
56194         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
56195         * modules/chown (Depends-on): Add errno.
56197 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
56199         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
56200         command.
56202 2009-08-31  Jim Meyering  <meyering@redhat.com>
56204         canonicalize: remove useless initialization
56205         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
56206         initialization of local, "end".
56208 2009-08-30  Bruno Haible  <bruno@clisp.org>
56210         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
56211         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
56212         ENOSYS.
56214 2009-08-30  Bruno Haible  <bruno@clisp.org>
56216         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
56217         /usr/xpg4/bin/tr when it exists.
56218         * tests/test-pipe-filter-gi1.sh: Likewise.
56220 2009-08-30  Bruno Haible  <bruno@clisp.org>
56222         Work around deficient /usr/bin/id program on Solaris.
56223         * tests/test-file-has-acl.sh (ID): New variable.
56224         * tests/test-set-mode-acl.sh (ID): Likewise.
56225         * tests/test-copy-acl.sh (ID): Likewise.
56226         * tests/test-copy-file.sh (ID): Likewise.
56228 2009-08-30  Bruno Haible  <bruno@clisp.org>
56230         New module 'xstriconveh'.
56231         * lib/xstriconveh.h: New file.
56232         * lib/xstriconveh.c: New file.
56233         * modules/xstriconveh: New file.
56235 2009-08-30  Bruno Haible  <bruno@clisp.org>
56237         Make it easier to use mem_cd_iconveh.
56238         * lib/striconveh.h (iconveh_t): New type.
56239         (iconveh_open, iconveh_close): New declarations.
56240         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
56241         with a single 'const iconveh_t *' argument.
56242         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
56243         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
56244         with a single 'const iconveh_t *' argument.
56245         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
56246         * tests/test-striconveh.c (main): Update.
56247         * NEWS: Mention the change.
56249 2009-08-30  Bruno Haible  <bruno@clisp.org>
56251         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
56252         problem.
56254 2009-08-30  Bruno Haible  <bruno@clisp.org>
56256         Work around iconv_open problem on Solaris.
56257         * lib/iconv_open-solaris.gperf: New file.
56258         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
56259         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
56260         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
56261         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
56262         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
56263         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
56265 2009-08-29  Jim Meyering  <meyering@redhat.com>
56267         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
56268         * top/maint.mk (cvs-check): Remove target; it was just an alias
56269         to the better-named vc-diff-check.
56270         (maintainer-distcheck): Remove rule.  It was used only from
56271         the (alpha/beta/major) target, and all of its commands but one
56272         were coreutils-specific.
56273         (vc-dist): Remove rule.
56274         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
56275         Run vc-diff-check, not vc-dist.
56276         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
56278 2009-08-27  Bruno Haible  <bruno@clisp.org>
56280         * tests/test-bitrotate.c (main): Remove test that uses a shift count
56281         of 0.
56283 2009-08-27  Bruno Haible  <bruno@clisp.org>
56285         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
56286         compilers.
56287         * doc/func.texi: Document the SunPRO C bug.
56289 2009-08-27  Bruno Haible  <bruno@clisp.org>
56291         Fix link error on Solaris.
56292         * tests/test-parse-duration.c (xstrdup): Remove function.
56294 2009-08-26  Pádraig Brady  <P@draigbrady.com>
56296         ignore-value: handle pointer types, too
56297         * lib/ignore-value.h (__attribute__): Remove definition.
56298         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
56299         of a more concise and more-often effective "(void) i" statement.
56300         (ignore_ptr): New function to suppress warnings from functions that
56301         return pointers, and to make it explicit that one function doesn't
56302         handle all cases.
56304 2009-08-25  Bruno Haible  <bruno@clisp.org>
56306         dup2: work around a Linux bug.
56307         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
56308         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
56309         * doc/posix-functions/dup2.texi: Mention the Linux bug.
56310         Reported by Simon Josefsson.
56312 2009-08-25  Jim Meyering  <meyering@redhat.com>
56314         libguestfs uses gnulib
56315         * users.txt: Add libguestfs.
56317 2009-08-24  Eric Blake  <ebb9@byu.net>
56319         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
56320         * lib/pipe2.c (includes): Add binary-io.h.
56321         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
56323 2009-08-24  Bruno Haible  <bruno@clisp.org>
56325         Tolerate declared but missing accept4 syscall.
56326         * lib/accept4.c (accept4): Invoke original accept4 function first, if
56327         available.
56328         * lib/sys_socket.in.h (accept4): If the function is already present,
56329         override it.
56330         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
56331         * modules/accept4 (Makefile.am): Compile accept4.c always.
56332         Reported by Paolo Bonzini and Eric Blake.
56334 2009-08-23  Bruno Haible  <bruno@clisp.org>
56336         New module 'accept4'.
56337         * lib/sys_socket.in.h (accept4): New declaration.
56338         * lib/accept4.c: New file.
56339         * m4/accept4.m4: New file.
56340         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56341         GNULIB_ACCEPT4, HAVE_ACCEPT4.
56342         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
56343         HAVE_ACCEPT4.
56344         * modules/accept4: New file.
56345         * doc/glibc-functions/accept4.texi: Mention the new module.
56347 2009-08-24  Jim Meyering  <meyering@redhat.com>
56349         progname: also set global program_invocation_name, when possible
56350         Before this change, a libtool-enabled program that calls glibc's
56351         error function would report the program name as
56352         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
56353         * modules/progname (configure.ac): Check for a declaration of
56354         program_invocation_name.
56355         * lib/progname.c:  Include <errno.h>.
56356         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
56357         Set program_invocation_name.
56359 2009-08-23  Bruno Haible  <bruno@clisp.org>
56361         * lib/dup3.c: Include <string.h>.
56363 2009-08-23  Bruno Haible  <bruno@clisp.org>
56365         * lib/dup3.c (dup3): Test only once whether the system actually exists.
56366         * lib/pipe2.c (pipe2): Likewise.
56367         Suggested by Eric Blake.
56369 2009-08-23  Bruno Haible  <bruno@clisp.org>
56371         Tolerate declared but missing dup3 syscall.
56372         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
56373         * lib/unistd.in.h (dup3): If the function is already present,
56374         override it.
56375         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
56376         * modules/dup3 (Makefile.am): Compile dup3.c always.
56377         Reported by Paolo Bonzini.
56379 2009-08-23  Bruno Haible  <bruno@clisp.org>
56381         Tolerate declared but missing pipe2 syscall.
56382         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
56383         available.
56384         * lib/unistd.in.h (pipe2): If the function is already present,
56385         override it.
56386         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
56387         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
56388         Reported by Paolo Bonzini.
56390 2009-08-23  Bruno Haible  <bruno@clisp.org>
56392         * lib/pipe2.c (pipe2): Move #ifs inside function.
56394 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
56396         quotearg: document limitations of quote_these_too
56397         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
56398         those limitations are created.
56399         * lib/quotearg.h (set_char_quoting): Document that digits and
56400         letters that are special after backslash are not permitted.
56401         (quotearg_char): Cross-reference set_char_quoting documentation.
56403 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
56405         quotearg: implement custom_quoting_style
56406         * lib/quotearg.c: (struct quoting_options): Add left_quote and
56407         right_quote fields.
56408         (set_custom_quoting): New public function.
56409         (quotearg_buffer_restyled): Add left_quote and right_quote
56410         arguments, handle them very much like locale quoting, and update
56411         all uses.
56412         (quotearg_n_custom): New public function.
56413         (quotearg_n_custom_mem): New public function.
56414         (quotearg_custom): New public function.
56415         (quotearg_custom_mem): New public function.
56416         * lib/quotearg.h: Prototype and document new public functions.
56417         (enum quoting_style): For escape_quoting_style and
56418         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
56419         ignored even though they're otherwise like c_quoting_style.
56420         Add custom_quoting_style member and document with comparison to
56421         clocale_quoting_style.
56422         * tests/test-quotearg.c (custom_quotes): New array.
56423         (custom_results): New array.
56424         (main): Extend to test custom quoting.
56426 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
56428         quotearg: fix right quote escaping when it's in quote_these_too
56429         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
56430         quote, be sure to prepend only one backslash.
56431         * tests/test-quotearg.c (use_quote_double_quotes): New function.
56432         (main): Test it.
56434 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
56436         quotearg-tests: test escaping of embedded locale quotes
56437         * tests/test-quotearg.c (struct result_strings): Add member for
56438         new input.
56439         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
56440         (inputs): Add new input.
56441         (results_g): Add expected results.
56442         (flag_results): Likewise.
56443         (locale_results): Likewise.
56444         (compare_strings): Check those.
56446 2009-08-23  Bruno Haible  <bruno@clisp.org>
56448         Tests for module 'dup3'.
56449         * modules/dup3-tests: New file.
56450         * tests/test-dup3.c: New file.
56452         New module 'dup3'.
56453         * lib/unistd.in.h (dup3): New declaration.
56454         * lib/dup3.c: New file.
56455         * m4/dup3.m4: New file.
56456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
56457         HAVE_DUP3.
56458         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
56459         * modules/dup3: New file.
56460         * doc/glibc-functions/dup3.texi: Mention the new module.
56462 2009-08-23  Bruno Haible  <bruno@clisp.org>
56464         Tweak the dup2 test.
56465         * tests/test-dup2.c (main): Create the test file empty. Verify that an
56466         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
56467         the test file is still empty. Fix argument order of lseek.
56469 2009-08-23  Bruno Haible  <bruno@clisp.org>
56471         Avoid test link errors when the modules getopt-gnu, gettext are used.
56472         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
56473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56475 2009-08-23  Bruno Haible  <bruno@clisp.org>
56477         Fix getdtablesize() on mingw.
56478         * lib/getdtablesize.c (getdtablesize): Implement differently.
56479         * lib/unistd.in.h (getdtablesize): Improve comment.
56481 2009-08-23  Bruno Haible  <bruno@clisp.org>
56483         New module 'mkostemp'.
56484         Based on Ulrich Drepper's 2007-08-10 change in glibc.
56485         * lib/stdlib.in.h (mksotemp): New declaration.
56486         * lib/mkostemp.c: New file, from glibc with modifications.
56487         * lib/tempname.h (GT_FILE): Remove outdated comment.
56488         (gen_tempname): Add flags argument.
56489         * lib/tempname.c (__GT_BIGFILE): Remove macro.
56490         (__GT_FILE): Map to 1.
56491         (small_open, large_open): Remove macros.
56492         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
56493         * lib/mkstemp.c (mkstemp): Update.
56494         * lib/mkdtemp.c (mkdtemp): Likewise.
56495         * m4/mkostemp.m4: New file.
56496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
56497         HAVE_MKOSTEMP.
56498         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
56499         HAVE_MKOSTEMP.
56500         * modules/mkostemp: New file, based on modules/mkstemp.
56501         * doc/glibc-functions/mkostemp.texi: Mention the new module.
56502         * NEWS: Mention the change.
56504 2009-08-23  Bruno Haible  <bruno@clisp.org>
56506         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
56507         Reported by Eric Blake.
56509 2009-08-23  Bruno Haible  <bruno@clisp.org>
56511         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
56512         Reported by Eric Blake.
56514 2009-08-23  Bruno Haible  <bruno@clisp.org>
56516         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
56517         * modules/pipe2 (Depends-on): Likewise.
56519 2009-08-23  Eric Blake  <ebb9@byu.net>
56521         fcntl-h: add O_TTY_INIT support
56522         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
56523         * tests/test-fcntl-h.c (o): Test it.
56524         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
56526         fcntl-h: rename from fcntl, in preparation for fcntl(2)
56527         * modules/fcntl: Move <fcntl.h> header replacement...
56528         * modules/fcntl-h: ...to new name, so as not to collide with
56529         like-named function.
56530         * tests/test-fcntl.c: Rename...
56531         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
56532         * modules/fcntl-tests: Rename...
56533         * modules/fcntl-h-tests: ...to this.  Update test file name.
56534         * modules/chdir-long (Depends-on): Update clients.
56535         * modules/chdir-safer (Depends-on): Likewise.
56536         * modules/fcntl-safer (Depends-on): Likewise.
56537         * modules/fts (Depends-on): Likewise.
56538         * modules/mkancesdirs (Depends-on): Likewise.
56539         * modules/mkdir-p (Depends-on): Likewise.
56540         * modules/open (Depends-on): Likewise.
56541         * modules/savewd (Depends-on): Likewise.
56542         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
56543         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
56545 2009-08-22  Bruno Haible  <bruno@clisp.org>
56547         * modules/binary-io (License): Relicense under LGPL.
56548         * modules/pipe2 (License): Likewise.
56550 2009-08-22  Bruno Haible  <bruno@clisp.org>
56552         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
56553         return value.
56554         * lib/pipe-filter-gi.c (filter_init): Likewise.
56555         Reported by Eric Blake.
56557 2009-08-22  Bruno Haible  <bruno@clisp.org>
56559         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
56560         * modules/pipe (Depends-on): Add pipe2.
56562 2009-08-22  Bruno Haible  <bruno@clisp.org>
56564         Tests for module 'pipe2'.
56565         * modules/pipe2-tests: New file.
56566         * tests/test-pipe2.c: New file.
56568         New module 'pipe2'.
56569         * lib/unistd.in.h (pipe2): New declaration.
56570         * lib/pipe2.c: New file.
56571         * m4/pipe2.m4: New file.
56572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
56573         HAVE_PIPE2.
56574         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
56575         * modules/pipe2: New file.
56576         * doc/glibc-functions/pipe2.texi: Mention the new module.
56578 2009-08-22  Bruno Haible  <bruno@clisp.org>
56580         Reference some new glibc functions.
56581         * doc/glibc-functions/accept4.texi: New file.
56582         * doc/glibc-functions/dup3.texi: New file.
56583         * doc/glibc-functions/mkostemp.texi: New file.
56584         * doc/glibc-functions/pipe2.texi: New file.
56585         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
56586         (Glibc sys/socket.h): Refer to accept4.
56587         (Glibc unistd.h): Refer to dup3, pipe2.
56588         Reported by Eric Blake.
56590 2009-08-22  Jim Meyering  <meyering@redhat.com>
56591             Bruno Haible  <bruno@clisp.org>
56593         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
56594         This makes it so packages using automake-1.11's silent-rules option
56595         can print e.g., a single "GEN    configmake.h" line, rather than
56596         the 30+ statements that perform the job.  If you want to see the
56597         actual commands, you can still run "make V=1".
56598         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
56599         so that make output is abbreviated when those variables are defined
56600         appropriately.
56601         * modules/argz: Likewise.
56602         * modules/arpa_inet: Likewise.
56603         * modules/byteswap: Likewise.
56604         * modules/configmake: Likewise.
56605         * modules/dirent: Likewise.
56606         * modules/errno: Likewise.
56607         * modules/fcntl: Likewise.
56608         * modules/float: Likewise.
56609         * modules/fnmatch: Likewise.
56610         * modules/getopt-posix: Likewise.
56611         * modules/glob: Likewise.
56612         * modules/iconv_open: Likewise.
56613         * modules/inttypes: Likewise.
56614         * modules/localcharset: Likewise.
56615         * modules/locale: Likewise.
56616         * modules/math: Likewise.
56617         * modules/netdb: Likewise.
56618         * modules/netinet_in: Likewise.
56619         * modules/poll: Likewise.
56620         * modules/posix_spawnp-tests: Likewise.
56621         * modules/sched: Likewise.
56622         * modules/search: Likewise.
56623         * modules/selinux-h: Likewise.
56624         * modules/signal: Likewise.
56625         * modules/spawn: Likewise.
56626         * modules/stdarg: Likewise.
56627         * modules/stdbool: Likewise.
56628         * modules/stddef: Likewise.
56629         * modules/stdint: Likewise.
56630         * modules/stdio: Likewise.
56631         * modules/stdlib: Likewise.
56632         * modules/string: Likewise.
56633         * modules/strings: Likewise.
56634         * modules/sys_file: Likewise.
56635         * modules/sys_ioctl: Likewise.
56636         * modules/sys_select: Likewise.
56637         * modules/sys_socket: Likewise.
56638         * modules/sys_stat: Likewise.
56639         * modules/sys_time: Likewise.
56640         * modules/sys_times: Likewise.
56641         * modules/sys_utsname: Likewise.
56642         * modules/sys_wait: Likewise.
56643         * modules/sysexits: Likewise.
56644         * modules/time: Likewise.
56645         * modules/unistd: Likewise.
56646         * modules/wchar: Likewise.
56647         * modules/wctype: Likewise.
56649 2009-08-22  Jim Meyering  <meyering@redhat.com>
56651         announce-gen: detect write failure
56652         * build-aux/announce-gen: Add Coda at end.
56653         Remove equivalent-but-more-verbose block at top.
56655 2009-08-19  Akim Demaille  <demaille@gostai.com>
56657         bootstrap: --help to stdout.
56658         * bootstrap (usage): Don't send --help to stderr.
56659         Use a here doc instead of a long string.
56661 2009-08-21  Eric Blake  <ebb9@byu.net>
56663         test-popen-safer: split from test-popen
56664         * tests/test-popen.c (main): Move...
56665         * tests/test-popen.h: ...into new file.
56666         * tests/test-popen-safer2.c: New file.
56667         * modules/popen-tests (Files): Add test-popen.h.
56668         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
56669         Suggested by Bruno Haible.
56671         test-fcntl-safer: split from test-open
56672         * tests/test-open.c (main): Move...
56673         * tests/test-open.h: ...into new file.
56674         * tests/test-fcntl-safer.c: New file.
56675         * modules/open-tests (Files): Add test-open.h.
56676         * modules/fcntl-safer-tests: New file.
56677         Suggested by Bruno Haible.
56679         test-fopen-safer: split from test-fopen
56680         * tests/test-fopen.c (main): Move...
56681         * tests/test-fopen.h: ...into new file.
56682         * tests/test-fopen-safer.c: New file.
56683         * modules/fopen-tests (Files): Add test-fopen.h.
56684         * modules/fopen-safer-tests: New file.
56685         Suggested by Bruno Haible.
56687 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
56689         popen-safer: test O_CLOEXEC at run-time.
56690         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
56692 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
56694         fcntl: move more flags to the header
56695         * lib/cloexec.c: Do not define FD_CLOEXEC here.
56696         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
56697         * lib/fcntl.in.h: Do both things here.
56699 2009-08-21  Jim Meyering  <meyering@redhat.com>
56701         consistently remove $@-t before redirecting to it
56702         * modules/argz: Remove $@-t and $@ before redirecting to the former.
56703         * modules/alloca-opt: Likewise.
56704         * modules/byteswap: Likewise.
56705         * modules/fnmatch: Likewise.
56706         * modules/getopt-posix: Likewise.
56707         * modules/glob: Likewise.
56708         * modules/poll: Likewise.
56709         * modules/posix_spawnp-tests: Likewise.
56710         * modules/sys_socket: Likewise.
56711         * modules/sysexits: Likewise.
56713 2009-08-21  Eric Blake  <ebb9@byu.net>
56715         popen: simplify access to original popen
56716         * lib/popen.c (rpl_popen): No need to worry about popen being a
56717         macro.
56718         Reported by Bruno Haible.
56720 2009-08-20  Eric Blake  <ebb9@byu.net>
56722         build: avoid some compiler warnings
56723         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
56724         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
56725         type.
56726         (new_exclude_segment, excluded_file_pattern_p)
56727         (excluded_file_name_p): Reduce scope.
56728         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
56729         old-style declaration.
56731 2009-08-20  Simon Josefsson  <simon@josefsson.org>
56733         * tests/test-exclude1.sh: Handle Windows EOL.
56734         * tests/test-exclude2.sh: Likewise.
56735         * tests/test-exclude3.sh: Likewise.
56736         * tests/test-exclude4.sh: Likewise.
56737         * tests/test-exclude5.sh: Likewise.
56738         * tests/test-exclude6.sh: Likewise.
56739         * tests/test-exclude7.sh: Likewise.
56741 2009-08-19  Akim Demaille  <demaille@gostai.com>
56743         bootstrap: find sha1sum when named gsha1sum.
56744         * bootstrap (find_tool): New.
56745         ($SHA1SUM): New.
56746         Use it.
56748 2009-08-20  Jim Meyering  <meyering@redhat.com>
56750         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
56751         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
56752         expression that converts "." in a file name to "\." in the resulting
56753         regexp.  Start with a dummy statement, so that prior shell variable
56754         definitions are expanded portably.  Reported by Simon Josefsson.
56756 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
56758         Fix polling for writeability of a screen buffer.
56759         * lib/poll.c: Distinguish input and screen buffers for the
56760         Win32 implementation.
56761         * lib/select.c: Likewise.
56763 2009-08-19  Eric Blake  <ebb9@byu.net>
56765         popen-safer: prevent popen from clobbering std descriptors
56766         * modules/popen-safer: New file.
56767         * lib/popen-safer.c: Likewise.
56768         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
56769         * lib/stdio--.h (popen): Provide override.
56770         * lib/stdio-safer.h (popen_safer): Provide declaration.
56771         * tests/test-popen.c (includes): Partially test this.
56772         * modules/popen-safer-tests: New file, for more tests.
56773         * tests/test-popen-safer.c: Likewise.
56774         * MODULES.html.sh (file stream based Input/Output): Mention it.
56776         tests: test some of the *-safer modules
56777         * modules/fopen-safer (Depends-on): Add fopen.
56778         * modules/fcntl-safer (Depends-on): Add fcntl.
56779         * modules/stdlib-safer (Depends-on): Add stdlib.
56780         (configure.ac): Set indicator.
56781         * modules/unistd-safer (configure.ac): Likewise.
56782         * modules/tmpfile-safer (configure.ac): Likewise.
56783         (Depends-on): Add tmpfile.
56784         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
56785         active.
56786         * tests/test-fopen.c (includes): Test safer versions when they are
56787         in use.
56788         * tests/test-open.c (includes): Likewise.
56790         popen: fix cygwin 1.5 bug when stdin closed
56791         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
56792         * modules/popen: New file.
56793         * modules/popen-tests: Likewise.
56794         * tests/test-popen.c: Likewise.
56795         * m4/popen.m4: Likewise.
56796         * lib/popen.c: Likewise.
56797         * lib/stdio.in.h (popen): New declaration.
56798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
56799         * modules/stdio (Makefile.am): Likewise.
56800         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
56802 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
56804         maint.mk: give full control over update-copyright exclusions
56805         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
56806         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
56807         (update-copyright): Don't force inclusion of top-level
56808         ChangeLog.  Don't force exclusion of all COPYING files, but make
56809         them the default exclusion instead.
56811 2009-08-16  Bruno Haible  <bruno@clisp.org>
56813         Fix test failures on Solaris 10.
56814         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
56815         tests when Solaris iconv() is used.
56816         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56817         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56818         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56819         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56820         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56822 2009-08-16  Bruno Haible  <bruno@clisp.org>
56824         Fix test failures on Solaris 10.
56825         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
56826         'tr' program and pass it as first argument.
56827         * tests/test-pipe-filter-gi1.sh: Likewise.
56828         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
56829         program as first argument.
56830         * tests/test-pipe-filter-gi1.c (main): Likewise.
56832 2009-08-16  Eric Blake  <ebb9@byu.net>
56834         fpurge: fix previous commits
56835         * modules/fpurge (Makefile.am): Make replacement conditional,
56836         partially reverting 2007-04-29 change; missed in previous
56837         attempt.
56838         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
56839         is missing.
56841 2009-08-16  Bruno Haible  <bruno@clisp.org>
56843         Clarify fpurge's effect on the file position.
56844         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
56845         * tests/test-fpurge.c (main): Make a second pass for checking the file
56846         position.
56848 2009-08-16  Bruno Haible  <bruno@clisp.org>
56850         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
56851         declaration of fpurge is missing.
56852         * tests/test-fpurge.c (main): Check that the file has not more contents
56853         than expected. Close the file before removing it.
56855 2009-08-15  Eric Blake  <ebb9@byu.net>
56857         fpurge: don't wrap working cygwin implementation
56858         * lib/fpurge.c (fpurge): Fix comment typo.
56859         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
56860         1.7 to avoid replacement.
56861         * tests/test-fpurge.c (main): Enhance test.
56863 2009-08-15  Eric Blake  <ebb9@byu.net>
56864         and Jim Meyering  <meyering@redhat.com>
56866         test-update-copyright: skip if perl is insufficient
56867         * tests/test-update-copyright.sh: Failure to run maintainer tool
56868         should not cause testsuite failure on cygwin 1.5.
56870 2009-08-14  Eric Blake  <ebb9@byu.net>
56872         doc: mention more functions added in cygwin 1.7.0
56873         * doc/posix-headers/limits.texi (limits.h): Update for recent
56874         cygwin additions.
56875         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
56876         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
56877         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
56878         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
56879         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
56881 2009-08-14  Eric Blake  <ebb9@byu.net>
56883         maint.mk: simplify update-copyright rule
56884         * top/maint.mk (update-copyright-local): Delete, and document how
56885         to do it in cfg.mk instead.
56886         (update-copyright-exclude-regexp): Delete, and document how to do
56887         it in .x-update-copyright instead.
56888         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
56889         exclude ChangeLog.
56891 2009-08-14  Bruno Haible  <bruno@clisp.org>
56893         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
56895 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
56897         maint.mk: support update-copyright-env
56898         * top/maint.mk (update-copyright-env): Define place-holder.
56899         (update-copyright): Expand $(update-copyright-env) before
56900         invoking update-copyright.
56902 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
56904         update-copyright: implement forced reformatting
56905         * build-aux/update-copyright: Implement and document
56906         UPDATE_COPYRIGHT_FORCE.
56907         * tests/test-update-copyright.sh: Test it.
56909 2009-08-14  Eric Blake  <ebb9@byu.net>
56910         and Bruno Haible  <bruno@clisp.org>
56912         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
56913         * tests/test-locale.c: Revert previous patch related to NULL.
56914         * tests/test-stdio.c: Likewise.
56915         * tests/test-stdlib.c: Likewise.
56916         * tests/test-string.c: Likewise.
56917         * tests/test-unistd.c: Likewise.
56918         * modules/time-tests (Depends-on): Add verify.
56919         * modules/wchar-tests (Depends-on): Likewise.
56920         * tests/test-time.c: Test for NULL compliance.
56921         * tests/test-wchar.c: Likewise.
56922         * modules/locale (Depends-on): Add stddef.
56923         * modules/stdio (Depends-on): Likewise.
56924         * modules/stdlib (Depends-on): Likewise.
56925         * modules/string (Depends-on): Likewise.
56926         * modules/time (Depends-on): Likewise.
56927         * modules/unistd (Depends-on): Likewise.
56928         * modules/wchar (Depends-on): Likewise.
56929         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
56930         * lib/stdlib.in.h (includes): Likewise.
56931         * lib/string.in.h (includes): Likewise.
56932         * lib/time.in.h (includes): Likewise.
56933         * lib/unistd.in.h (includes): Likewise.
56934         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
56935         replaced.
56936         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56937         * m4/stddef_h.m4: New file.
56938         * modules/stddef: Likewise.
56939         * lib/stddef.in.h: Likewise.
56940         * modules/stddef-tests: Likewise.
56941         * tests/test-stddef.c: Likewise.
56942         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
56943         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
56944         * doc/posix-headers/locale.texi (locale.h): Likewise.
56945         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
56946         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56947         * doc/posix-headers/string.texi (string.h): Likewise.
56948         * doc/posix-headers/time.texi (time.h): Likewise.
56949         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
56950         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
56952 2009-08-14  Eric Blake  <ebb9@byu.net>
56954         doc: improve git diff of texinfo files
56955         * .gitattributes: Add rule for *.texi files, with hint on how to
56956         use it.
56957         Copied from m4, and based on a report by Bruno Haible.
56959 2009-08-14  Bruno Haible  <bruno@clisp.org>
56961         Disable multithread support by default on Cygwin 1.5.x for real.
56962         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
56964 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
56966         update-copyright: much ado about intervals
56967         * build-aux/update-copyright: Implement and document
56968         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
56969         of copyright year intervals.
56970         Also, document UPDATE_COPYRIGHT_YEAR.
56971         * tests/test-update-copyright.sh: Test it.
56973         update-copyright: convert 2-digit to 4-digit years
56974         * build-aux/update-copyright: Implement and document.
56975         * tests/test-update-copyright.sh: Update.
56977 2009-08-14  Jim Meyering  <meyering@redhat.com>
56979         test-exclude: avoid coreutils "make check" failure
56980         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
56981         just as in test-argmatch.c.
56983 2009-08-13  Eric Blake  <ebb9@byu.net>
56985         test-dup2: fix bad assumption
56986         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
56987         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
56989         test-version-etc: fix CRLF portability issue
56990         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
56991         recognize \r.
56992         * tests/test-argp-version-etc-1.sh: Likewise.
56994         getopt: update client modules
56995         * modules/argp (Depends-on): Use getopt-gnu.
56996         * modules/git-merge-changelog (Depends-on): Likewise.
56997         * modules/long-options (Depends-on): Likewise.
56998         * modules/xstrtol (Depends-on): Likewise.
57000 2009-08-13  Simon Josefsson  <simon@josefsson.org>
57002         * tests/test-version-etc.sh: Don't fail on different
57003         project/version.  Don't fail on CRLF differences.  Rewrite to use
57004         multiple -e instead of multiple sed forks, suggested by Eric Blake
57005         <ebb9@byu.net>.
57006         * tests/test-argp-version-etc-1.sh: Likewise.
57008 2009-08-13  Simon Josefsson  <simon@josefsson.org>
57010         * tests/test-version-etc.sh: Don't fail on different
57011         project/version.
57013 2009-08-12  Bruno Haible  <bruno@clisp.org>
57015         Tests for modules 'getopt-posix', 'getopt-gnu'.
57016         * modules/getopt-posix-tests: New file.
57017         * tests/test-getopt.c: New file.
57018         * tests/test-getopt.h: New file.
57019         * tests/test-getopt_long.h: New file.
57021         New modules 'getopt-posix', 'getopt-gnu'.
57022         * modules/getopt-gnu: New file, renamed from modules/getopt.
57023         * modules/getopt-posix: New file.
57024         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
57025         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
57026         (gl_GETOPT): Remove macro.
57027         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
57028         Disable the test against BSD systems that declare optreset. Test
57029         against mingw bug. Test against lack of support of optional arguments
57030         on many platforms.
57031         * doc/glibc-headers/getopt.texi: Update module name and list of
57032         relevant platforms.
57033         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
57034         'getopt-gnu' and more portability problems.
57035         * NEWS: Mention the changes.
57037 2009-08-12  Bruno Haible  <bruno@clisp.org>
57039         Ensure that optarg etc. get declared by <unistd.h>.
57040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
57041         AC_USE_SYSTEM_EXTENSIONS.
57042         * modules/getopt (Depends-on): Add 'extensions'.
57044 2009-08-12  Bruno Haible  <bruno@clisp.org>
57046         Avoid test link errors.
57047         * modules/pipe-filter-ii-tests (Makefile.am): Define
57048         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
57049         * modules/pipe-filter-gi-tests (Makefile.am): Define
57050         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
57051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57053 2009-08-12  Bruno Haible  <bruno@clisp.org>
57055         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
57056         gl_GETOPT_SUBSTITUTE before.
57057         (gl_GETOPT): Use it.
57058         * m4/argp.m4 (gl_ARGP): Update.
57059         Reported by Sergey Poznyakoff.
57061         * m4/getopt.m4: Reorder macros.
57062         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
57063         (gl_GETOPT_SUBSTITUTE): Remove macro.
57065 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57067         Minor improvement in gitlog-to-changelog
57069         * build-aux/gitlog-to-changelog: New option `--format' makes
57070         output format string configurable.
57072 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57074         Optimize exclude: use hash tables for non-wildcard patterns.
57076         * lib/exclude.c: Include hash.h and mbuiter.h
57077         (struct exclude_pattern, exclude_segment): New data types.
57078         (struct exclude): Rewrite.
57079         (fnmatch_pattern_has_wildcards): New function.
57080         (new_exclude_segment, free_exclude_segment): New functions.
57081         (excluded_file_pattern_p, excluded_file_name_p): New functions.
57082         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
57083         * lib/exclude.h (is_fnmatch_pattern): New prototype.
57084         * modules/exclude: Depend on hash and mbuiter.
57086         * modules/exclude-tests: New file.
57087         * tests/test-exclude.c: New file.
57088         * tests/test-exclude1.sh: New file.
57089         * tests/test-exclude2.sh: New file.
57090         * tests/test-exclude3.sh: New file.
57091         * tests/test-exclude4.sh: New file.
57092         * tests/test-exclude5.sh: New file.
57093         * tests/test-exclude6.sh: New file.
57094         * tests/test-exclude7.sh: New file.
57096 2009-08-12  Bruno Haible  <bruno@clisp.org>
57098         Ensure that getopt() gets declared by <unistd.h>.
57099         * lib/unistd.in.h: Conditionally include getopt.h.
57100         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
57101         Set GNULIB_UNISTD_H_GETOPT.
57102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57103         GNULIB_UNISTD_H_GETOPT.
57104         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
57106 2009-08-12  Bruno Haible  <bruno@clisp.org>
57108         Clarify logic.
57109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
57110         gl_replace_getopt instead of GETOPT_H.
57112 2009-08-12  Bruno Haible  <bruno@clisp.org>
57114         * m4/getopt.m4: Add comments.
57116 2009-08-12  Bruno Haible  <bruno@clisp.org>
57118         Disable multithread support by default on Cygwin 1.5.x.
57119         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
57120         set gl_use_threads=no if not specified otherwise.
57122 2009-08-11  Bruno Haible  <bruno@clisp.org>
57124         Avoid compilation error on NetBSD 5.0.
57125         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
57126         * tests/test-stdio.c: Likewise.
57127         * tests/test-stdlib.c: Likewise.
57128         * tests/test-string.c: Likewise.
57129         * tests/test-unistd.c: Likewise.
57130         Reported by Greg Troxel <gdt@ir.bbn.com>
57131         at <https://savannah.gnu.org/support/?106973>.
57133 2009-08-11  Bruno Haible  <bruno@clisp.org>
57135         * modules/dup2-tests (Depends-on): Remove close.
57137         Undo 2009-07-19 commit.
57138         * modules/acl-tests (Depends-on): Remove close.
57139         * modules/binary-io-tests (Depends-on): Likewise.
57140         * modules/closein-tests (Depends-on): Likewise.
57141         * modules/flock-tests (Depends-on): Likewise.
57142         * modules/fsync-tests (Depends-on): Likewise.
57143         * modules/lseek-tests (Depends-on): Likewise.
57144         * modules/pipe-tests (Depends-on): Likewise.
57145         * modules/posix_spawn-tests (Depends-on): Likewise.
57146         * modules/posix_spawnp-tests (Depends-on): Likewise.
57147         * modules/stat-time-tests (Depends-on): Likewise.
57148         * modules/yesno-tests (Depends-on): Likewise.
57150 2009-08-10  Bruno Haible  <bruno@clisp.org>
57152         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
57154 2009-08-10  Bruno Haible  <bruno@clisp.org>
57156         Fix a gcc warning.
57157         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
57159 2009-08-10  Bruno Haible  <bruno@clisp.org>
57161         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
57162         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
57163         not only the first time.
57164         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
57165         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
57166         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
57167         is 1, not only the the first time.
57169 2009-08-10  Bruno Haible  <bruno@clisp.org>
57171         Make it possible to use module 'gethostname' without module 'close'.
57172         * lib/unistd.in.h (close): Evoke a link error only if
57173         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
57174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57175         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57176         * modules/unistd (Makefile.am): Substitute
57177         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57178         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
57179         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
57180         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
57181         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57182         * modules/sys_ioctl (Makefile.am): Substitute
57183         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57184         * modules/socket (configure.ac): On native Windows, set
57185         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
57186         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57187         Reported by Sam Steingold <sds@gnu.org>.
57189 2009-08-10  Bruno Haible  <bruno@clisp.org>
57191         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
57192         * modules/ioctl (configure.ac): Likewise.
57194 2009-08-10  Bruno Haible  <bruno@clisp.org>
57196         Avoid collision between gnulib wrapper and libintl wrapper.
57197         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
57198         already defined in intl/printf.c.
57199         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
57200         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
57202 2009-08-09  Bruno Haible  <bruno@clisp.org>
57204         Make <sys/select.h> really self-contained, also on Solaris 10.
57205         * lib/sys_select.in.h: Include <string.h>.
57206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
57207         Solaris 10 problem.
57208         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
57209         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
57210         Reported by Jim Meyering.
57212 2009-08-09  Bruno Haible  <bruno@clisp.org>
57214         Avoid warnings from 'aclocal' that are due to a use of macro name
57215         AM_XGETTEXT_OPTION that is not defined in automake.
57216         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
57217         automake.
57218         * modules/error (configure.ac): Likewise.
57219         * modules/propername (configure.ac): Likewise.
57220         * modules/vasprintf (configure.ac): Likewise.
57221         * modules/verror (configure.ac): Likewise.
57222         * modules/xprintf (configure.ac): Likewise.
57223         * modules/xvasprintf (configure.ac): Likewise.
57225 2009-08-08  Bruno Haible  <bruno@clisp.org>
57227         Avoid compilation error in C++ mode.
57228         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
57229         Reported by Sam Steingold <sds@gnu.org>.
57231 2009-08-08  Bruno Haible  <bruno@clisp.org>
57233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
57234         for the various Unix platforms.
57235         * doc/posix-headers/limits.texi: Update platforms list regarding
57236         HOST_NAME_MAX.
57237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57239 2009-08-07  Jim Meyering  <meyering@redhat.com>
57241         selinux-at: fix typo in a comment
57242         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
57243         Spotted by Paolo Bonzini.
57245         selinux-at: remove redundant m4 code, add documentation
57246         * modules/selinux-at (configure.ac): Remove redundant code.
57247         LIB_SELINUX is already set via the dependent module, selinux-h.
57248         (Include): Add quotes around selinux-at.h.
57249         * lib/selinux-at.h: Add documentation.
57250         Reported by Bruno Haible in
57251         http://marc.info/?l=gnulib-bug&m=124958988300749
57253 2009-08-07  Bruno Haible  <bruno@clisp.org>
57255         Avoid link error on MacOS X 10.3 and 10.4.
57256         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
57257         on non-ELF systems.
57258         * lib/argp-pv.c (argp_program_version): Likewise.
57259         Reported by Simon Josefsson.
57261 2009-08-07  Simon Josefsson  <simon@josefsson.org>
57263         * tests/test-version-etc.sh: Use $EXEEXT.
57265 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
57267         update-copyright: update documentation to point to maint.mk
57268         * build-aux/update-copyright: Here.
57270 2009-08-06  Jim Meyering  <meyering@redhat.com>
57272         maint.mk: support update-copyright-local
57273         * top/maint.mk (update-copyright-local): Define place-holder.
57274         (update-copyright): Depend on $(update-copyright-local).
57276 2009-08-06  Jim Meyering  <meyering@redhat.com>
57278         selinux-at: new module
57279         Initially written for coreutils, this module will soon be
57280         used by findutils, too.
57281         * MODULES.html.sh [Misc]: Add selinux-at.
57282         * lib/selinux-at.h: New file, from coreutils.
57283         * lib/selinux-at.c: Likewise.
57284         * modules/selinux-at: Likewise.
57285         (License): Change from LGPL to GPL, since it depends
57286         on the GPL'd openat module.
57288         doc: update README
57289         * README: Remove references to cogito.
57290         Remove cvs-repo-updating instructions from 2007.
57291         Don't imply that CVS is better if you have limited disk space.
57293 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
57295         update-copyright: support C-style comments
57296         * build-aux/update-copyright: Implement and document.
57297         * tests/test-update-copyright.sh: Test.
57299 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
57301         update-copyright: support omitted "(C)"
57302         * build-aux/update-copyright: Implement and document.  Also,
57303         allow variable whitespace before "(C)".
57304         * tests/test-update-copyright.sh: Test.
57306 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
57308         update-copyright: don't trip on non-FSF copyright statements
57309         * build-aux/update-copyright: Fix so that the first correctly
57310         formatted FSF copyright statement is recognized no matter what
57311         appears before it.  Update documentation.
57312         * tests/test-update-copyright.sh: Test that.
57314 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
57316         update-copyright: clean up code a little
57317         * build-aux/update-copyright: Append "_re" to the name of any
57318         variable holding a regular expression.
57319         Replace "old" and "new" with "stmt" in variable names.
57320         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
57321         handled correctly.
57322         Format code more consistently.
57324 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
57326         update-copyright-tests: improve portability
57327         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
57328         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
57330 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
57332         update-copyright: support @copyright{} and &copy;
57333         * build-aux/update-copyright: Implement and document.
57334         * tests/test-update-copyright.sh: Test.
57336 2009-08-04  Jim Meyering  <meyering@redhat.com>
57338         update-copyright-tests: correctly test EOL=\r\n handling
57339         * tests/test-update-copyright.sh: Put \r at the end of some lines
57340         for the dos-eol tests.  Based on a patch by Joel E. Denny.
57342         maint.mk: make update-copyright exclusion list more configurable
57343         * top/maint.mk (update-copyright): Default to excluding COPYING,
57344         but allow an override, in case someone does want to update that file.
57346         maint.mk: don't update copyright date in COPYING
57347         * top/maint.mk (update-copyright): Exclude COPYING.
57349         maint.mk: add a copyright-updating rule
57350         * top/maint.mk (update-copyright): New rule.
57351         Derived from coreutils/Makefile.am.
57353         update-copyright: rename some variables
57354         * build-aux/update-copyright: Rename a few variables for clarity.
57355         Tweak syntax.  List Joel E. Denny as coauthor.
57357 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
57359         update-copyright: fix bug for 2-digit last year and add tests
57360         * build-aux/update-copyright: Fix bug.
57361         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
57362         specified.
57363         * modules/update-copyright-tests: New
57364         * tests/test-update-copyright.sh: New.
57366 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
57368         update-copyright: handle leading tabs in line prefix
57369         * build-aux/update-copyright: Count leading tabs as 8 spaces
57370         when computing margin.  This helps with the formatting of
57371         ChangeLogs, for example.
57372         Fix documentation a little.
57374 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
57376         update-copyright: support EOL=\r\n
57377         * build-aux/update-copyright: Implement that.
57379 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
57381         update-copyright: automatically format copyright statements
57382         * build-aux/update-copyright: Implement that.
57383         Also, be a little more predictable and safer by always failing
57384         when the full copyright format is not perfectly recognized as an
57385         unbroken whole.  Discussed at
57386         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
57387         Rewrite documentation.
57389 2009-08-03  Bruno Haible  <bruno@clisp.org>
57391         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
57393 2009-08-02  Bruno Haible  <bruno@clisp.org>
57395         Tests for module 'uname'.
57396         * modules/uname-tests: New file.
57397         * tests/test-uname.c: New file.
57399         New module 'uname'.
57400         * lib/uname.c: New file.
57401         * m4/uname.m4: New file.
57402         * modules/uname: New file.
57403         * doc/posix-functions/uname.texi: Mention the new module.
57405 2009-08-02  Bruno Haible  <bruno@clisp.org>
57407         Tests for module 'sys_utsname'.
57408         * modules/sys_utsname-tests: New file.
57409         * tests/test-sys_utsname.c: New file.
57411         New module 'sys_utsname'.
57412         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
57413         * m4/sys_utsname_h.m4: New file.
57414         * modules/sys_utsname: New file.
57415         * doc/posix-headers/sys_utsname.texi: Mention the new module.
57417 2009-08-02  Bruno Haible  <bruno@clisp.org>
57419         Implicitly initialize the sockets library.
57420         * lib/gethostname.c: Include sockets.h.
57421         (rpl_gethostname): Invoke gl_sockets_startup.
57422         * lib/socket.c: Include sockets.h.
57423         (rpl_socket): Invoke gl_sockets_startup.
57424         * modules/gethostname (Depends-on): Add sockets.
57425         * modules/socket (Depends-on): Likewise.
57426         * tests/test-poll.c: Don't include sockets.h.
57427         (main): Don't invoke gl_sockets_startup.
57428         * tests/test-select.c: Don't include sockets.h.
57429         (main): Don't invoke gl_sockets_startup.
57431 2009-08-02  Bruno Haible  <bruno@clisp.org>
57433         Allow multiple calls to gl_sockets_startup.
57434         * lib/sockets.c (initialized_sockets_version): New variable.
57435         (gl_sockets_startup): Do nothing if already called for this or a higher
57436         version.
57437         (gl_sockets_cleanup): Reset initialized_sockets_version.
57439 2009-08-03  Simon Josefsson  <simon@josefsson.org>
57441         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
57442         different project/version.
57444 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
57445             Bruno Haible  <bruno@clisp.org>
57447         Tests for module 'pipe-filter-gi'.
57448         * modules/pipe-filter-gi-tests: New file.
57449         * tests/test-pipe-filter-gi1.sh: New file.
57450         * tests/test-pipe-filter-gi1.c: New file.
57451         * tests/test-pipe-filter-gi2.sh: New file.
57452         * tests/test-pipe-filter-gi2-main.c: New file.
57453         * tests/test-pipe-filter-gi2-child.c: New file.
57455         New module 'pipe-filter-gi'.
57456         * lib/pipe-filter-gi.c: New file.
57457         * modules/pipe-filter-gi: New file.
57459 2009-08-02  Bruno Haible  <bruno@clisp.org>
57460             Paolo Bonzini  <bonzini@gnu.org>
57462         Tests for module 'pipe-filter-ii'.
57463         * modules/pipe-filter-ii-tests: New file.
57464         * tests/test-pipe-filter-ii1.sh: New file.
57465         * tests/test-pipe-filter-ii1.c: New file.
57466         * tests/test-pipe-filter-ii2.sh: New file.
57467         * tests/test-pipe-filter-ii2-main.c: New file.
57468         * tests/test-pipe-filter-ii2-child.c: New file.
57470         New module 'pipe-filter-ii'.
57471         * lib/pipe-filter.h: New file.
57472         * lib/pipe-filter-ii.c: New file.
57473         * lib/pipe-filter-aux.h: New file.
57474         * modules/pipe-filter-ii: New file.
57476 2009-08-02  Simon Josefsson  <simon@josefsson.org>
57478         * lib/gc-libgcrypt.c: Change copyright to FSF.
57479         * lib/gc-gnulib.c: Likewise.
57481 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
57483         * lib/gethostname.c: Include limits.h.
57485 2009-08-02  Simon Josefsson  <simon@josefsson.org>
57486             Bruno Haible  <bruno@clisp.org>
57488         Ensure HOST_NAME_MAX as part of the gethostname module.
57489         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
57490         define also HOST_NAME_MAX.
57491         * tests/test-gethostname.c: Include <limits.h>.
57492         (main): Check also HOST_NAME_MAX.
57493         * doc/posix-headers/limits.texi: Document the mingw problem.
57495 2009-08-02  Bruno Haible  <bruno@clisp.org>
57497         * lib/gethostname.c (gethostname): Fix handling of large len argument.
57498         Add comments.
57500 2009-03-31  Simon Josefsson  <simon@josefsson.org>
57502         * lib/gethostname.c: Add Windows wrapper.
57503         * m4/gethostname.m4: Look for gethostname in -lws2_32.
57504         * modules/gethostname: Depend on sys_socket & errno, for also
57505         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
57506         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
57508 2009-07-31  Jim Meyering  <meyering@redhat.com>
57510         getloadavg: fix symbol name in comment
57511         * lib/getloadavg.c: Correct a typo I introduced when adding
57512         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
57513         Matt Kraai spotted the problem.
57515 2009-07-29  Matt Kraai  <mkraai@beckman.com>
57517         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
57518         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
57519         code also if ! defined N_NAME_POINTER.
57520         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
57521         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
57522         but the n_name member is a 12-byte array.
57524 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
57526         update-copyright: generalize comment handling
57527         * build-aux/update-copyright: Handle copyright statements
57528         within more comment styles.
57529         Document usage.
57530         Report any file with an external copyright holder or parse failure.
57532 2009-07-29  Jim Meyering  <meyering@redhat.com>
57534         mktime: correct setting of REPLACE_MKTIME
57535         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
57537         update-copyright: new module
57538         * modules/update-copyright: New file.
57539         * build-aux/update-copyright: New file.
57540         * MODULES.html.sh (maint+release support): Add update-copyright.
57542 2009-07-27  Bruno Haible  <bruno@clisp.org>
57544         Fix compilation error when <ctime> is used and mktime is replaced.
57545         * lib/time.in.h (mktime): New declaration.
57546         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
57547         REPLACE_MKTIME instead of defining mktime in config.h.
57548         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
57549         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
57550         Reported by Ross McFarland <rwmcfa1@neces.com>.
57552 2009-07-27  Bruno Haible  <bruno@clisp.org>
57554         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
57555         Reported by Matt Kraai <mkraai@beckman.com>.
57557 2009-07-25  Jim Meyering  <meyering@redhat.com>
57559         maint.mk: avoid warnings about missing files
57560         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
57561         diagnostic when .prev-version does not exist.
57562         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
57563         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
57564         nonexistent cfg.mk.
57565         Suggestions from Simon Josefsson.
57567 2009-07-25  Bruno Haible  <bruno@clisp.org>
57569         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
57570         defined as macros. Needed on QNX 6.4.1.
57571         Reported by Matt Kraai <mkraai@beckman.com>.
57573 2009-07-23  Jim Meyering  <meyering@redhat.com>
57575         maint.mk: invoke "make dist" with a working value of XZ_OPT
57576         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
57578 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
57580         Make fseeko.c compile on QNX.
57581         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
57583 2009-07-22  Peter Simons  <simons@cryp.to>
57585         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
57586         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
57587         * lib/md4.h: Likewise.
57588         * lib/md5.h: Likewise.
57589         * lib/sha1.h: Likewise.
57590         * lib/sha256.h: Likewise.
57591         * lib/sha512.h: Likewise.
57593         tests-sha1: don't assign literal string to 'char *' variable
57594         * tests/test-sha1.c (main): Declare locals with "const" to match
57595         attributes of the right hand side.
57597 2009-07-21  Eric Blake  <ebb9@byu.net>
57599         dup2: fix more mingw problems
57600         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
57601         fd to itself.
57602         * doc/posix-functions/dup2.texi (dup2): Document the bug.
57603         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
57604         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
57605         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
57606         care of mingw bugs.
57608 2009-07-21  Jim Meyering  <meyering@redhat.com>
57610         vc-list-files: avoid failure when /bin/sh is dash
57611         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
57612         On some Debian based systems, /bin/sh is a symlink to dash, and running
57613         this command would omit the "/" following each 'tests' prefix:
57614           dash -x build-aux/vc-list-files -C . tests
57615         That is because bash and dash work differently:
57616           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
57617           bash ok
57618           dash odd
57620 2009-07-21  Eric Blake  <ebb9@byu.net>
57622         dup2-tests: test previous patch
57623         * modules/dup2-tests: New file.
57624         * tests/test-dup2.c: Likewise.
57625         * tests/test-open.c (main): Avoid unspecified behavior.
57626         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
57627         test.
57629         dup2: work around mingw and cygwin 1.5 bug
57630         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
57631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57632         * modules/unistd (Makefile.am): Substitute it.
57633         * lib/unistd.in.h (dup2): Declare the replacement.
57634         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
57635         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
57636         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
57637         * modules/execute (Depends-on): Add dup2.
57638         * modules/fseterr (Depends-on): Likewise.
57639         * modules/pipe (Depends-on): Likewise.
57640         * modules/posix_spawn-internal (Depends-on): Likewise.
57642 2009-07-21  Bruno Haible  <bruno@clisp.org>
57644         * modules/.gitattributes: New file.
57646 2009-07-20  Bruno Haible  <bruno@clisp.org>
57648         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
57649         (main): Use it.
57651 2009-07-20  Eric Blake  <ebb9@byu.net>
57653         test-pipe: make a bit more robust.
57654         * tests/test-pipe.c (myerr): Allow error messages regardless of
57655         what we do to stderr.
57656         (test_pipe): Rearrange to avoid deadlock.
57657         (child_main): Try a larger read, to ensure we avoided deadlock.
57658         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
57659         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
57660         if misused.
57662 2009-07-19  Jim Meyering  <meyering@redhat.com>
57664         fts: avoid false-positive cycle-detection
57665         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
57666         for each new command line argument.
57668 2009-07-19  Bruno Haible  <bruno@clisp.org>
57670         Fix build error on mingw with the modules sys_select and unistd.
57671         * modules/acl-tests (Depends-on): Add close.
57672         * modules/binary-io-tests (Depends-on): Likewise.
57673         * modules/closein-tests (Depends-on): Likewise.
57674         * modules/flock-tests (Depends-on): Likewise.
57675         * modules/fsync-tests (Depends-on): Likewise.
57676         * modules/lseek-tests (Depends-on): Likewise.
57677         * modules/pipe-tests (Depends-on): Likewise.
57678         * modules/posix_spawn-tests (Depends-on): Likewise.
57679         * modules/posix_spawnp-tests (Depends-on): Likewise.
57680         * modules/stat-time-tests (Depends-on): Likewise.
57681         * modules/yesno-tests (Depends-on): Likewise.
57683 2009-07-19  Bruno Haible  <bruno@clisp.org>
57685         Unify conditionals.
57686         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
57687         macros, not at the compiler macros.
57688         * lib/pipe.c: Likewise.
57689         * lib/execute.c: Likewise.
57690         * lib/spawni.c: Likewise.
57692 2009-07-19  Bruno Haible  <bruno@clisp.org>
57694         Fix handling of closed stdin/stdout/stderr on mingw.
57695         * lib/w32spawn.h: Include unistd.h.
57696         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
57697         file descriptor with O_NOINHERIT flag.
57698         (fd_safer_noinherit): New function, based on fd-safer.c.
57699         (dup_safer_noinherit): New function, based on dup-safer.c.
57700         (undup_safer_noinherit): New function.
57701         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
57702         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
57703         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
57704         instead of fd_safer.
57705         * tests/test-pipe.c: Include <windows.h>.
57706         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
57707         result.
57709         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
57710         from main.
57711         (test_pipe): Pass an extra argument for disambiguation.
57712         (main): Invoke parent_main or child_main.
57714         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
57715         consistently.
57717 2009-07-18  Eric Blake  <ebb9@byu.net>
57719         test-pipe: fix mingw build
57720         * tests/test-pipe.c (main): Avoid fcntl on mingw.
57722 2009-07-18  Bruno Haible  <bruno@clisp.org>
57724         * modules/pipe-tests (Makefile.am): Fix typo.
57726 2009-07-18  Eric Blake  <ebb9@byu.net>
57728         error: fix mingw build
57729         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
57730         Reported by Bruno Haible.
57732         error: avoid undefined use of stdout
57733         * lib/error.c (error, error_at_line): Check that fd 1 is open
57734         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
57735         is handling faults and the close_stdout module wants to report the
57736         detection of closed stdout as an error.
57738 2009-07-17  Eric Blake  <ebb9@byu.net>
57740         pipe: be robust in face of closed fds
57741         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
57742         should cause child to misbehave.
57743         * modules/pipe-tests: New module.
57744         * tests/test-pipe.c: New file.
57745         * tests/test-pipe.sh: New file.
57746         Reported by Akim Demaille.
57748 2009-07-14  Bruno Haible  <bruno@clisp.org>
57750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
57751         Reported by anonymous kc.
57753 2009-07-07  Jim Meyering  <meyering@redhat.com>
57755         maint.mk: don't look for translatable strings in *.m4 or *.mk
57756         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
57757         when searching for translatable strings.
57759 2009-07-05  Jim Meyering  <meyering@redhat.com>
57761         remove superfluous parentheses in STREQ definition
57762         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
57763         * lib/getugroups.c (STREQ): Likewise.
57764         * lib/fnmatch.c (STREQ): Likewise.
57765         Spotted by Bruno Haible.
57767 2009-07-04  Jim Meyering  <meyering@redhat.com>
57769         argv-iter: new module
57770         * MODULES.html.sh: Add argv-iter.
57771         * lib/argv-iter.c, lib/argv-iter.h: New files.
57772         * modules/argv-iter: New file.
57773         * modules/argv-iter-tests: New file.
57774         * tests/test-argv-iter.c: Test it.
57776 2009-07-04  Bruno Haible  <bruno@clisp.org>
57778         Fix assertion.
57779         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
57780         contains more exact copies of a given entry than file2, leave the extra
57781         copies unpaired rather than aborting.
57782         Reported by Eric Blake.
57784 2009-07-02  Bruno Haible  <bruno@clisp.org>
57786         Speedup git-merge-changelog for git cherry-pick.
57787         * lib/git-merge-changelog.c (struct entries_mapping): New type.
57788         (entries_mapping_get): New function, extracted from compute_mapping.
57789         (entries_mapping_reverse_get): New function.
57790         (compute_mapping): Add a 'full' argument. Return the result in a
57791         'struct entries_mapping'.
57792         (main): Update. Access the mappings through entries_mapping_get.
57793         Reported by Eric Blake.
57795 2009-07-02  Bruno Haible  <bruno@clisp.org>
57797         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
57798         best_i.
57800 2009-07-02  Bruno Haible  <bruno@clisp.org>
57802         Speed up approximate search for matching ChangeLog entries.
57803         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
57804         argument. Call fstrcmp_bounded instead of fstrcmp.
57805         (compute_mapping, try_split_merged_entry, main): Update callers.
57807 2009-07-02  Bruno Haible  <bruno@clisp.org>
57809         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
57811 2009-06-30  Bruno Haible  <bruno@clisp.org>
57813         Reduce the number of uc_is_cased calls.
57814         * lib/unicase.h (casing_suffix_context_t): Add
57815         'first_char_except_ignorable' field.
57816         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
57817         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
57818         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
57819         Update initializer.
57820         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
57821         case-ignorable characters.
57822         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
57823         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
57824         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
57825         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
57826         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
57828 2009-06-30  Bruno Haible  <bruno@clisp.org>
57830         Tests for module 'unicase/ignorable'.
57831         * modules/unicase/ignorable-tests: New file.
57832         * tests/unicase/test-ignorable.c: New file, generated by
57833         gen-uni-tables.
57835         Tests for module 'unicase/cased'.
57836         * modules/unicase/cased-tests: New file.
57837         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
57838         * tests/unicase/test-predicate-part1.h: New file, derived from
57839         tests/unictype/test-predicate-part1.h.
57840         * tests/unicase/test-predicate-part2.h: New file, same as
57841         tests/unictype/test-predicate-part2.h.
57843         Fix evaluation of "Before C" condition of FINAL_SIGMA.
57844         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
57845         (output_casing_properties): New function.
57846         (main): Call it.
57847         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
57848         * lib/unicase/cased.c: Include unictype/bitmap.h.
57849         (uc_is_cased): Define through a bitmap lookup.
57850         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
57851         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
57852         (uc_is_case_ignorable): Define through a bitmap lookup.
57853         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
57854         lib/unictype/bitmap.h.
57855         (Depends-on): Add inline. Clean up.
57856         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
57857         lib/unictype/bitmap.h.
57858         (Depends-on): Add inline. Clean up.
57859         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
57860         recognition.
57861         * tests/unicase/test-u16-tolower.c (main): Likewise.
57862         * tests/unicase/test-u32-tolower.c (main): Likewise.
57864 2009-06-30  Bruno Haible  <bruno@clisp.org>
57866         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
57867         * lib/unicase/u16-casemap.c: Likewise.
57868         * lib/unicase/u32-casemap.c: Likewise.
57870 2009-06-29  Bruno Haible  <bruno@clisp.org>
57872         Define u32_casefold as a wrapper around u32_ct_casefold.
57873         * lib/unicase/u32-casefold.c: Update.
57874         * modules/unicase/u32-casefold (Depends-on): Add
57875         unicase/u32-ct-casefold, unicase/empty-prefix-context,
57876         unicase/empty-suffix-context. Clean up.
57878         Define u16_casefold as a wrapper around u16_ct_casefold.
57879         * lib/unicase/u16-casefold.c: Update.
57880         * modules/unicase/u16-casefold (Depends-on): Add
57881         unicase/u16-ct-casefold, unicase/empty-prefix-context,
57882         unicase/empty-suffix-context. Clean up.
57884         Define u8_casefold as a wrapper around u8_ct_casefold.
57885         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
57886         * lib/unicase/u8-casefold.c: Update.
57887         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
57888         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57890         Define u32_totitle as a wrapper around u32_ct_totitle.
57891         * lib/unicase/u32-totitle.c: Update.
57892         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
57893         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57895         Define u16_totitle as a wrapper around u16_ct_totitle.
57896         * lib/unicase/u16-totitle.c: Update.
57897         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
57898         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57900         Define u8_totitle as a wrapper around u8_ct_totitle.
57901         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
57902         functions.
57903         (FUNC): Delegate to U_CT_TOTITLE.
57904         * lib/unicase/u8-totitle.c: Update.
57905         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
57906         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57908         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
57909         invocation.
57910         * modules/unicase/u32-tolower (Depends-on): Add
57911         unicase/empty-prefix-context, unicase/empty-suffix-context.
57913         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
57914         invocation.
57915         * modules/unicase/u16-tolower (Depends-on): Add
57916         unicase/empty-prefix-context, unicase/empty-suffix-context.
57918         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
57919         * modules/unicase/u8-tolower (Depends-on): Add
57920         unicase/empty-prefix-context, unicase/empty-suffix-context.
57922         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
57923         invocation.
57924         * modules/unicase/u32-toupper (Depends-on): Add
57925         unicase/empty-prefix-context, unicase/empty-suffix-context.
57927         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
57928         invocation.
57929         * modules/unicase/u16-toupper (Depends-on): Add
57930         unicase/empty-prefix-context, unicase/empty-suffix-context.
57932         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
57933         * modules/unicase/u8-toupper (Depends-on): Add
57934         unicase/empty-prefix-context, unicase/empty-suffix-context.
57936         New module 'unicase/u32-ct-casefold'.
57937         * lib/unicase/u32-ct-casefold.c: New file.
57938         * modules/unicase/u32-ct-casefold: New file.
57940         New module 'unicase/u16-ct-casefold'.
57941         * lib/unicase/u16-ct-casefold.c: New file.
57942         * modules/unicase/u16-ct-casefold: New file.
57944         New module 'unicase/u8-ct-casefold'.
57945         * lib/unicase/u8-ct-casefold.c: New file.
57946         * lib/unicase/u-ct-casefold.h: New file, derived from
57947         lib/unicase/u-casefold.h.
57948         * modules/unicase/u8-ct-casefold: New file.
57950         New module 'unicase/u32-ct-totitle'.
57951         * lib/unicase/u32-ct-totitle.c: New file.
57952         * modules/unicase/u32-ct-totitle: New file.
57954         New module 'unicase/u16-ct-totitle'.
57955         * lib/unicase/u16-ct-totitle.c: New file.
57956         * modules/unicase/u16-ct-totitle: New file.
57958         New module 'unicase/u8-ct-totitle'.
57959         * lib/unicase/u8-ct-totitle.c: New file.
57960         * lib/unicase/u-ct-totitle.h: New file, derived from
57961         lib/unicase/u-totitle.h.
57962         * modules/unicase/u8-ct-totitle: New file.
57964         New module 'unicase/u32-ct-tolower'.
57965         * lib/unicase/u32-ct-tolower.c: New file.
57966         * modules/unicase/u32-ct-tolower: New file.
57968         New module 'unicase/u16-ct-tolower'.
57969         * lib/unicase/u16-ct-tolower.c: New file.
57970         * modules/unicase/u16-ct-tolower: New file.
57972         New module 'unicase/u8-ct-tolower'.
57973         * lib/unicase/u8-ct-tolower.c: New file.
57974         * modules/unicase/u8-ct-tolower: New file.
57976         New module 'unicase/u32-ct-toupper'.
57977         * lib/unicase/u32-ct-toupper.c: New file.
57978         * modules/unicase/u32-ct-toupper: New file.
57980         New module 'unicase/u16-ct-toupper'.
57981         * lib/unicase/u16-ct-toupper.c: New file.
57982         * modules/unicase/u16-ct-toupper: New file.
57984         New module 'unicase/u8-ct-toupper'.
57985         * lib/unicase/u8-ct-toupper.c: New file.
57986         * modules/unicase/u8-ct-toupper: New file.
57988         Add context arguments to u*_casemap functions.
57989         * lib/unicase/unicasemap.h: Include unicase.h.
57990         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
57991         suffix_context arguments.
57992         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
57993         functions.
57994         (FUNC): Add prefix_context and suffix_context arguments. Use
57995         uc_is_cased and uc_is_case_ignorable.
57996         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
57997         * lib/unicase/u16-casemap.c: Likewise.
57998         * lib/unicase/u32-casemap.c: Likewise.
57999         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
58000         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
58001         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
58002         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
58003         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
58004         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
58006         New module 'unicase/u32-suffix-context'.
58007         * lib/unicase/u32-suffix-context.c: New file.
58008         * modules/unicase/u32-suffix-context: New file.
58010         New module 'unicase/u16-suffix-context'.
58011         * lib/unicase/u16-suffix-context.c: New file.
58012         * modules/unicase/u16-suffix-context: New file.
58014         New module 'unicase/u8-suffix-context'.
58015         * lib/unicase/u8-suffix-context.c: New file.
58016         * lib/unicase/u-suffix-context.h: New file.
58017         * modules/unicase/u8-suffix-context: New file.
58019         New module 'unicase/empty-suffix-context'.
58020         * lib/unicase/empty-suffix-context.c: New file.
58021         * modules/unicase/empty-suffix-context: New file.
58023         New module 'unicase/u32-prefix-context'.
58024         * lib/unicase/u32-prefix-context.c: New file.
58025         * modules/unicase/u32-prefix-context: New file.
58027         New module 'unicase/u16-prefix-context'.
58028         * lib/unicase/u16-prefix-context.c: New file.
58029         * modules/unicase/u16-prefix-context: New file.
58031         New module 'unicase/u8-prefix-context'.
58032         * lib/unicase/u8-prefix-context.c: New file.
58033         * lib/unicase/u-prefix-context.h: New file.
58034         * lib/unicase/context.h: New file.
58035         * modules/unicase/u8-prefix-context: New file.
58037         New module 'unicase/empty-prefix-context'.
58038         * lib/unicase/empty-prefix-context.c: New file.
58039         * modules/unicase/empty-prefix-context: New file.
58041         New module 'unicase/ignorable'.
58042         * lib/unicase/ignorable.c: New file.
58043         * modules/unicase/ignorable: New file.
58045         New module 'unicase/cased'.
58046         * lib/unicase/caseprop.h: New file.
58047         * lib/unicase/cased.c: New file.
58048         * modules/unicase/cased: New file.
58050         New functions for case mapping of substrings.
58051         * lib/unicase.h (casing_prefix_context_t): New type.
58052         (unicase_empty_prefix_context): New variable.
58053         (u8_casing_prefix_context, u16_casing_prefix_context,
58054         u32_casing_prefix_context, u8_casing_prefixes_context,
58055         u16_casing_prefixes_context, u32_casing_prefixes_context): New
58056         declarations.
58057         (casing_suffix_context_t): New type.
58058         (unicase_empty_suffix_context): New variable.
58059         (u8_casing_suffix_context, u16_casing_suffix_context,
58060         u32_casing_suffix_context, u8_casing_suffixes_context,
58061         u16_casing_suffixes_context, u32_casing_suffixes_context,
58062         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
58063         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
58064         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
58065         declarations.
58067 2009-06-28  Jim Meyering  <meyering@redhat.com>
58069         boostrap: indent only with spaces
58070         * build-aux/bootstrap: Indent only with spaces, never TABs.
58072         bootstrap: split long lines
58073         * build-aux/bootstrap: Keep line length < 80.
58075         bootstrap: sync from coreutils
58076         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
58077         just as autoreconf does.  Verify a list of prerequisite
58078         package-name,version-number pairs if defined in bootstrap.conf.
58079         Refer to README-prereq, if prerequisites are not satisfied.
58081 2009-06-27  Eric Blake  <ebb9@byu.net>
58083         tests: add test for bogus NULL definition
58084         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
58085         * tests/test-stdlib.c: Likewise.
58086         * tests/test-string.c: Likewise.
58087         * tests/test-locale.c: Likewise.
58088         * tests/test-unistd.c: Likewise.
58089         * modules/stdio-tests (Depends-on): Add verify.
58090         * modules/stdlib-tests (Depends-on): Likewise.
58091         * modules/string-tests (Depends-on): Likewise.
58092         * modules/locale-tests (Depends-on): Likewise.
58093         * modules/unistd-tests (Depends-on): Likewise.
58095 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
58097         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
58098         self-explaining comment.
58099         * m4/selinux-selinux-h: Update serial.
58100         (gl_LIBSELINUX): New macro, adding a warning for missing development
58101         packages to code extracted from...
58102         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
58103         Add warning for missing development packages here, too.
58105 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
58107         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
58109 2009-06-25  Eric Blake  <ebb9@byu.net>
58111         version-etc: fix regression
58112         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
58113         gcc.
58114         (version_etc): Use it, to catch bugs with trailing NULL.
58115         * lib/version-etc.c (version_etc_arn): Delete unused argument.
58116         (version_etc_va): Fix logic bug.
58117         * modules/version-etc-tests: Add test.
58118         * tests/test-version-etc.c: New file.
58119         * tests/test-version-etc.sh: Likewise.
58121 2009-06-25  Sam Steingold  <sds@gnu.org>
58123         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
58124         mbtowc declaration.
58126 2009-06-25  Eric Blake  <ebb9@byu.net>
58128         fpurge: migrate into <stdio.h>
58129         * lib/fpurge.h: Delete...
58130         * lib/stdio.in.h (fpurge): ...and declare here, instead.
58131         * lib/fpurge.c (fpurge): Change declaring header.
58132         * modules/fpurge (Files): Drop deleted file.
58133         (Depends-on): Add stdio.
58134         (configure.ac): Set witness.
58135         * modules/stdio (Makefile.am): Support fpurge macros.
58136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58137         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
58138         * lib/fflush.c: Update client.
58139         * tests/test-fpurge.c: Likewise.
58140         * NEWS: Mention the change.
58142 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58144         * lib/argp-version-etc.c (program_authors): Add const
58145         qualifier.
58146         * lib/version-etc.c: Fix typos in the comments.
58147         * modules/argp-version-etc: Depends on version-etc.
58149 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58151         argp-version-etc: new module.
58153         * lib/argp-version-etc.c: New file.
58154         * lib/argp-version-etc.h: New file.
58155         * modules/argp-version-etc: New file.
58156         * modules/argp-version-etc-tests: New file.
58157         * tests/test-argp-version-etc.c: New test.
58158         * tests/test-argp-version-etc-1.sh: New test.
58160 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58162         Provide additional interfaces and documentation for version-etc
58163         module.
58165         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
58166         interfaces.
58167         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
58168         prototypes.
58170 2009-06-24  Bruno Haible  <bruno@clisp.org>
58172         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
58173         HAVE_LIB${NAME} macro.
58174         Reported by Sam Steingold <sds@gnu.org>.
58176 2009-06-23  Simon Josefsson  <simon@josefsson.org>
58178         * modules/hash-tests (test_hash_LDADD): Link to libintl when
58179         needed.
58181 2009-06-21  Bruno Haible  <bruno@clisp.org>
58183         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
58184         work.
58185         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
58186         together with LIB${NAME}, LTLIB${NAME}.
58187         Reported by Sam Steingold <sds@gnu.org>.
58189 2009-06-20  Jim Meyering  <meyering@redhat.com>
58191         tests: make sc_require_test_exit_idiom more generic
58192         * top/maint.mk (Exit_witness_file): New overridable variable.
58193         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
58194         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
58196 2009-06-19  Jim Meyering  <meyering@redhat.com>
58198         hash: reverse order of src/dst parameters in an internal interface
58199         * lib/hash.c (transfer_entries): Reverse order of parameters to
58200         put DST before SRC.  Adjust callers.
58202         tests: test-hash: avoid wholesale duplication
58203         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
58204         Instead, use a loop and add a single conditional.
58206         tests: test-hash: allow seed selection via a command line argument
58207         * tests/test-hash.c (get_seed): New function.
58208         (main): Use it.
58210 2009-06-19  Eric Blake  <ebb9@byu.net>
58212         hash: avoid memory leak on allocation failure
58213         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
58214         failure.  Factor repeated algorithm...
58215         (transfer_entries): ...into new helper routine.
58216         (hash_delete): React to hash_rehash return value.
58218         hash: reduce memory pressure in hash_rehash no-op case
58219         * lib/hash.c (next_prime): Avoid overflow.
58220         (hash_initialize): Factor bucket size computation...
58221         (compute_bucket_size): ...into new helper function.
58222         (hash_rehash): Use new function and open coding to reduce memory
58223         pressure, and avoid a memory leak in USE_OBSTACK code.
58224         Reported by Jim Meyering.
58226 2009-06-18  Eric Blake  <ebb9@byu.net>
58228         hash: make rotation more obvious
58229         * modules/hash (Depends-on): Add bitrotate and stdint.
58230         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
58231         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
58232         (SIZE_MAX): Rely on headers for definition.
58233         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
58234         (raw_hasher): Use rotr_sz.
58235         Suggested by Jim Meyering.
58237         hash: fix memory leak in last patch
58238         * lib/hash.c (hash_rehash): Avoid memory leak.
58240         hash: avoid no-op rehashing
58241         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
58243         hash: provide default callback functions
58244         * lib/hash.c (raw_hasher, raw_comparator): New functions.
58245         (hash_initialize): Use them as defaults.
58246         * tests/test-hash.c (main): Test this.
58248         hash: minor optimization
58249         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
58250         when possible.
58251         (hash_initialize): Document this promise.
58252         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
58253         * tests/test-hash.c (hash_compare_strings): Test this.
58255 2009-06-18  Bruno Haible  <bruno@clisp.org>
58257         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
58258         going to be replaced anyway.
58260 2009-06-18  Bruno Haible  <bruno@clisp.org>
58262         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
58263         in one place.
58264         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
58265         be replaced anyway.
58267 2009-06-18  Eric Blake  <ebb9@byu.net>
58269         hash: check for resize before insertion
58270         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
58271         threshold before insertion, so that a pathological hash_rehash
58272         that fills every bucket can still trigger another rehash.
58274 2009-06-18  Jim Meyering  <meyering@redhat.com>
58276         hash-tests: add a loop around the small tests
58277         * tests/test-hash.c (main): Repeat small tests with selected
58278         small initial table sizes.
58280 2009-06-17  Eric Blake  <ebb9@byu.net>
58282         hash: minor cleanups
58283         * lib/hash.h (hash_entry): Make opaque, by moving...
58284         * lib/hash.c (hash_entry): ...here.
58285         (hash_insert): Clarify restrictions on what can be inserted.
58286         (hash_get_next): Clarify when it is safe to remove an element
58287         during traversal.
58288         (check_tuning): Skip verification when tuning is known safe.
58289         (hash_initialize): Clarify restrictions on tuning.
58291 2009-06-17  Jim Meyering  <jim@meyering.net>
58292         and Eric Blake  <ebb9@byu.net>
58294         hash-tests: new module
58295         * modules/hash-tests: New file.
58296         * tests/test-hash.c: New file.
58298 2009-06-17  Eric Blake  <ebb9@byu.net>
58300         strstr-simple: document new module
58301         * MODULES.html.sh: Document new module.
58303         strstr, strcasestr: replace on platforms with broken memchr
58304         * modules/strstr: Split into...
58305         * modules/strstr-simple: ...new module that does not care about
58306         performance, but does care about glibc bug.
58307         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
58308         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
58309         if platform memchr is broken, per Debian bug 521737.
58310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
58311         memchr.
58312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
58313         * doc/posix-functions/strstr.texi (strstr): Document the fix.
58314         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58315         * modules/mountlist (Depends-on): Add strstr-simple.
58316         * modules/gen-uni-tables (Depends-on): Likewise.
58317         * modules/argz (Depends-on): Add strstr.
58319 2009-06-17  Bruno Haible  <bruno@clisp.org>
58321         * modules/posix_spawn-internal (Depends-on): Add errno.
58323 2009-06-17  Bruno Haible  <bruno@clisp.org>
58325         Define missing ESTALE on Interix 3.5.
58326         * lib/errno.in.h (ESTALE): Assign a value if missing.
58327         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
58328         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
58329         missing.
58330         * doc/posix-headers/errno.texi: Mention the Interix bug.
58331         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
58333 2009-06-15  Eric Blake  <ebb9@byu.net>
58335         memchr, memchr2: add valgrind exception
58336         * lib/memchr.valgrind: New file.
58337         * lib/memchr2.valgrind: New file.
58338         * modules/memchr (Files): Distribute valgrind file.
58339         * modules/memchr2 (Files): Likewise.
58341         docs: memchr is no longer obsolete
58342         * MODULES.html.sh: Move memchr from obsolete to string.h section.
58343         * lib/string.in.h (memchr): Simplify logic.
58345 2009-06-14  Jim Meyering  <meyering@redhat.com>
58347         link-follow: fix the "checking..." message to not mention trailing slash
58348         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
58349         never considered trailing slashes.
58351 2009-06-14  Bruno Haible  <bruno@clisp.org>
58353         * m4/memchr.m4: Mention also the bug on IA-64.
58354         * doc/posix-functions/memchr.texi: Likewise.
58356 2009-06-12  Eric Blake  <ebb9@byu.net>
58358         memchr: detect broken x86_64 and alpha implementations
58359         * modules/memchr-tests (Depends-on): Move mmap detection...
58360         * modules/memchr (Depends-on): ...here.
58361         (configure.ac): Set indicator.
58362         * lib/string.in.h (memchr): Declare replacement.
58363         * modules/string (Makefile.am): Trigger replacement.
58364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58365         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
58366         bugs.
58367         * doc/posix-functions/memchr.texi (memchr): Document the bug.
58368         * modules/getpagesize (License): Relax license.
58370 2009-06-11  Bruno Haible  <bruno@clisp.org>
58372         * lib/idpriv.h: Add more references.
58374 2009-06-08  Bruno Haible  <bruno@clisp.org>
58376         Tests for module 'idpriv-droptemp'.
58377         * modules/idpriv-droptemp-tests: New file.
58378         * tests/test-idpriv-droptemp.sh: New file.
58379         * tests/test-idpriv-droptemp.su.sh: New file.
58380         * tests/test-idpriv-droptemp.c: New file.
58382         New module 'idpriv-droptemp'.
58383         * lib/idpriv-droptemp.c: New file.
58384         * modules/idpriv-droptemp: New file.
58386 2009-06-08  Bruno Haible  <bruno@clisp.org>
58388         Tests for module 'idpriv-drop'.
58389         * modules/idpriv-drop-tests: New file.
58390         * tests/test-idpriv-drop.sh: New file.
58391         * tests/test-idpriv-drop.su.sh: New file.
58392         * tests/test-idpriv-drop.c: New file.
58394         New module 'idpriv-drop'.
58395         * lib/idpriv.h: New file.
58396         * lib-idpriv-drop.c: New file.
58397         * m4/idpriv.m4: New file.
58398         * modules/idpriv-drop: New file.
58400 2009-06-08  Bruno Haible  <bruno@clisp.org>
58402         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
58403         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58404         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58405         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58406         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58407         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58408         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58410 2009-06-08  Eric Blake  <ebb9@byu.net>
58412         test-strstr: use memory fence, when possible
58413         * tests/test-strstr.c (main): Use memory fence, in order to be
58414         more likely to trigger Debian bug 521737.
58415         * modules/strstr-tests (Files): Pull in additional files.
58417         memchr: no longer obsolete, for wider field testing
58418         * modules/memchr (Status, Notice): Delete, this module is no
58419         longer obsolete.
58420         * modules/vasnprintf (Depends-on): Add memchr.
58422 2009-06-07  Jim Meyering  <meyering@redhat.com>
58424         hash: declare some functions with the warn_unused_result attribute
58425         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
58427 2009-06-07  Bruno Haible  <bruno@clisp.org>
58429         * tests/test-alignof.c: Don't test int64_t if it does not exist.
58430         Reported by Eric Blake.
58432 2009-06-06  Eric Blake  <ebb9@byu.net>
58434         test-alignof: fix typo with long double
58435         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
58436         compiler error.
58438 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
58440         Escape non-texinfo { and }s.
58441         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
58442         markup error.
58444 2009-06-04  Jim Meyering  <meyering@redhat.com>
58446         gitlog-to-changelog: don't infloop on an empty commit log
58447         * build-aux/gitlog-to-changelog: Warn about an empty log message.
58448         Reported by Boris Petersen <transacid@centerim.org>.
58450 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
58452         version-etc: extend for packagers
58453         Add three new configure options, intended for packagers:
58454           --with-packager="packager name"
58455           --with-packager-version="packager-specific version"
58456           --with-packager-bug-reports="packager bug reporting"
58457         An example with coreutils:
58458           $ ./configure \
58459             --with-packager=Gentoo \
58460             --with-packager-bug-report=http://bugs.gentoo.org/ \
58461             --with-packager-version="patchset 1.6"
58462           $ ./src/ls --version | head -n2
58463           ls (GNU coreutils) 7.1-dirty
58464           Packaged by Gentoo (patchset 1.6)
58465         Note that the bug reporting info via --help doesn't show up because
58466         coreutils uses its own custom emit_bug_reporting_address() implementation
58467         in src/system.h.  If it didn't, it'd look like:
58468           $ ./src/ls --help | tail -n4
58469           Report bugs to <bug-coreutils@gnu.org>.
58470           Report Gentoo bugs to <http://bugs.gentoo.org/>.
58471           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
58472           General help using GNU software: <http://www.gnu.org/gethelp/>.
58473         * lib/version-etc.c: Print new information, if provided.
58474         * m4/version-etc.m4: New file.
58475         * modules/version-etc (Files): Add m4/version-etc.m4.
58476         (configure.ac): Add gl_VERSION_ETC.
58478 2009-05-31  Bruno Haible  <bruno@clisp.org>
58480         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
58481         and 'int64_t'.
58482         * modules/alignof-tests (Dependencies): Add stdint.
58483         Reported by Eric Blake.
58485 2009-05-31  Bruno Haible  <bruno@clisp.org>
58487         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
58488         restriction due to compiler bugs.
58489         Reported by Eric Blake.
58491 2009-05-31  Simon Josefsson  <simon@josefsson.org>
58492             Bruno Haible  <bruno@clisp.org>
58494         Fix test-alignof failure.
58495         * lib/alignof.h (alignof_slot): New macro.
58496         (alignof_type): New macro, with the same semantics as the previous
58497         'alignof'.
58498         (alignof): Alias to alignof_slot.
58499         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
58500         check that the results are usable as constant expressions.
58502 2009-05-31  Bruno Haible  <bruno@clisp.org>
58504         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
58505         * tests/test-memchr.c (main): Check that memchr does not read past the
58506         first occurrence of the byte.
58507         * tests/test-strstr.c (main): Update comment.
58508         Suggested by Eric Blake.
58510 2009-05-30  Bruno Haible  <bruno@clisp.org>
58512         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
58513         detail how to use dumpbin.
58514         Reported by David Byron <dbyron@dbyron.com>.
58516 2009-06-02  Simon Josefsson  <simon@josefsson.org>
58518         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
58520 2009-06-02  Simon Josefsson  <simon@josefsson.org>
58522         * m4/manywarnings.m4: Add GCC 4.4 warnings.
58524 2009-05-28  Bruno Haible  <bruno@clisp.org>
58526         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
58527         build-aux/ files.
58529 2009-05-28  Simon Josefsson  <simon@josefsson.org>
58531         * gnulib-tool (func_import): Transform license on build-aux/ files too.
58533 2009-05-27  Simon Josefsson  <simon@josefsson.org>
58535         * gnulib-tool (sed_transform_main_lib_file)
58536         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
58537         regexps.
58539 2009-05-26  Simon Josefsson  <simon@josefsson.org>
58541         * tests/test-strstr.c: Add another self-test.
58542         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
58543         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
58545 2009-05-23  Bruno Haible  <bruno@clisp.org>
58547         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
58548         change.
58550 2009-05-21  Bruno Haible  <bruno@clisp.org>
58552         Simplify use of mode_t varargs.
58553         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
58554         uses 'mode_t' or 'int'.
58555         * lib/openat.c (openat): Likewise.
58556         * lib/open-safer.c (open_safer): Likewise.
58557         * m4/mode_t.m4: New file.
58558         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
58559         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
58560         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
58561         * modules/open (Files): Add m4/mode_t.m4.
58562         * modules/openat (Files): Likewise.
58563         * modules/fcntl-safer (Files): Likewise.
58564         Suggested by Eric Blake.
58566 2009-05-21  Pádraig Brady  <P@draigbrady.com>
58568         * doc/glibc-functions/fallocate.texi: New file.
58569         * doc/gnulib.texi: Include it.
58571 2009-05-21  Eric Blake  <ebb9@byu.net>
58572             Bruno Haible  <bruno@clisp.org>
58574         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
58575         invocations.
58576         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58578 2009-05-21  Eric Blake  <ebb9@byu.net>
58579             Bruno Haible  <bruno@clisp.org>
58581         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
58582         include_next. Fix of 2008-11-20 commit.
58583         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
58584         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
58585         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
58586         NEXT_MATH_H.
58587         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
58588         instead of NEXT_MATH_H.
58590 2009-05-21  Bruno Haible  <bruno@clisp.org>
58592         Avoid redefinition warnings for SIZE_MAX.
58593         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
58594         Reported by Simon Josefsson.
58596 2009-05-21  Bruno Haible  <bruno@clisp.org>
58598         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
58599         AC_CACHE_VAL.
58601 2009-05-20  Bruno Haible  <bruno@clisp.org>
58603         Make zeroptr.h work on mingw.
58604         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
58605         mprotect.
58606         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
58607         * modules/memchr2-tests (configure.ac): Likewise.
58608         * modules/memcmp-tests (configure.ac): Likewise.
58609         * modules/memmem-tests (configure.ac): Likewise.
58610         * modules/memrchr-tests (configure.ac): Likewise.
58611         Reported by Simon Josefsson.
58613 2009-05-20  Simon Josefsson  <simon@josefsson.org>
58615         * tests/test-glob.c: Include string.h for strcmp prototype.
58617 2009-05-20  Simon Josefsson  <simon@josefsson.org>
58619         * modules/getdelim (Depends-on): Add explicit stdint, although it
58620         was implicitly already pulled in via realloc-posix.
58621         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
58623 2009-05-20  Simon Josefsson  <simon@josefsson.org>
58625         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
58626         G. Christensen" <tgc@jupiterrise.com>.
58627         * m4/sys_socket_h.m4: Check for sa_family_t.
58628         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
58629         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
58630         * tests/test-sys_socket.c: Check that sa_family_t works.
58632 2009-05-18  Eric Blake  <ebb9@byu.net>
58634         maint.mk: allow gnulib_dir in VPATH build
58635         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
58637 2009-05-15  Jim Meyering  <meyering@redhat.com>
58639         maint.mk: Give gnulib_dir a default definition.
58640         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
58641         Thus, most packages no longer need to specify this variable in cfg.mk
58643 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
58645         rename.m4: fix typos that would make non-mingw cross-configure fail
58646         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
58648 2009-05-13  Eric Blake  <ebb9@byu.net>
58650         mmap-anon: avoid out-of-order autoconf expansion
58651         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
58652         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
58653         * modules/memchr-tests (Depends-on): Add extensions.
58654         * modules/memchr2-tests (Depends-on): Add extensions.
58655         * modules/memcmp-tests (Depends-on): Add extensions.
58656         * modules/memmem-tests (Depends-on): Add extensions.
58657         * modules/memrchr-tests (Depends-on): Add extensions.
58659 2009-05-13  Bruno Haible  <bruno@clisp.org>
58661         Make some tests ISO C 99 compliant.
58662         * tests/zerosize-ptr.h: New file.
58663         * tests/test-memchr.c: Include zerosize-ptr.h.
58664         (main): Use a zero-size object pointer instead of NULL.
58665         * tests/test-memchr2.c: Include zerosize-ptr.h.
58666         (main): Use a zero-size object pointer instead of NULL.
58667         * tests/test-memcmp.c: Include zerosize-ptr.h.
58668         (main): Use a zero-size object pointer instead of NULL.
58669         * tests/test-memmem.c: Include zerosize-ptr.h.
58670         (main): Use a zero-size object pointer instead of NULL.
58671         * tests/test-memrchr.c: Include zerosize-ptr.h.
58672         (main): Use a zero-size object pointer instead of NULL.
58673         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
58674         m4/mmap-anon.m4.
58675         (Depends-on): Add getpagesize.
58676         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58677         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
58678         m4/mmap-anon.m4.
58679         (Depends-on): Add getpagesize.
58680         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58681         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
58682         m4/mmap-anon.m4.
58683         (Depends-on): Add getpagesize.
58684         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58685         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
58686         m4/mmap-anon.m4.
58687         (Depends-on): Add getpagesize.
58688         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58689         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
58690         m4/mmap-anon.m4.
58691         (Depends-on): Add getpagesize.
58692         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58694 2009-05-12  Bruno Haible  <bruno@clisp.org>
58696         Tests for module 'alignof'.
58697         * modules/alignof-tests: New file.
58698         * tests/test-alignof.c: New file.
58700 2009-05-12  Bruno Haible  <bruno@clisp.org>
58702         Fix alignof macro.
58703         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
58704         vendor compilers that are always correct.
58706 2009-05-12  Bruno Haible  <bruno@clisp.org>
58708         Make the MAP_ANONYMOUS detection work on HP-UX 11.
58709         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
58710         not whether its fully works.
58712 2009-05-12  Bruno Haible  <bruno@clisp.org>
58714         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
58716 2009-05-12  Jim Meyering  <meyering@redhat.com>
58718         * top/maint.mk: Adjust backslash alignment.
58720 2009-05-11  Simon Josefsson  <simon@josefsson.org>
58722         * top/maint.mk: Make $(srcdir)/build-aux configurable.
58724 2009-05-11  Eric Blake  <ebb9@byu.net>
58726         argp: avoid undefined behavior
58727         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
58728         macros.
58730 2009-05-08  Simon Josefsson  <simon@josefsson.org>
58732         * tests/test-vc-list-files-git.sh: Do git config of user.email and
58733         user.name to prevent git commit from complaining.
58735 2009-05-10  Bruno Haible  <bruno@clisp.org>
58737         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
58738         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
58739         it rewrites every file name only once.
58740         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
58742 2009-05-08  Bruno Haible  <bruno@clisp.org>
58744         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
58745         instead of 'max'.
58747 2009-05-08  Simon Josefsson  <simon@josefsson.org>
58749         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
58750         sockaddr_storage test.
58752 2009-05-07  Simon Josefsson  <simon@josefsson.org>
58754         * modules/sys_socket (Makefile.am): Substitute
58755         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
58756         * m4/sys_socket_h.m4: Check for sockaddr_storage.
58757         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
58758         * tests/test-sys_socket.c: Check sockaddr_storage.
58760 2009-05-08  Bruno Haible  <bruno@clisp.org>
58762         New module 'alignof'.
58763         * lib/alignof.h: New file.
58764         * modules/alignof: New file.
58766 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58767             Bruno Haible  <bruno@clisp.org>
58769         Fix test-file-has-acl on FreeBSD.
58770         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
58771         mask is implicitly added.
58772         * tests/test-file-has-acl.c: Include <signal.h>.
58773         (main): Terminate the test after 5 seconds.
58774         * modules/acl-tests (configure.ac): Check for alarm function.
58776 2009-05-04  Bruno Haible  <bruno@clisp.org>
58778         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
58779         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
58780         * modules/errno (configure.ac): Drop AC_REQUIRE.
58781         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
58782         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
58784 2009-05-04  Simon Josefsson  <simon@josefsson.org>
58786         * modules/glob-tests: New module.
58787         * tests/test-glob.c: Add.
58789 2009-05-04  Simon Josefsson  <simon@josefsson.org>
58791         * modules/fnmatch-tests: New module.
58792         * tests/test-fnmatch.c: Add.
58794 2009-05-04  Eric Blake  <ebb9@byu.net>
58796         maint: make the new no-submodule-changes rule VPATH-safe
58797         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
58799 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58800             Bruno Haible  <bruno@clisp.org>
58802         acl: Fix infinite loop on FreeBSD.
58803         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
58804         of return value from acl_get_entry.
58805         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
58806         Likewise.
58808 2009-05-03  Bruno Haible  <bruno@clisp.org>
58810         * lib/acl-internal.h (acl_entries): Clarify return value.
58811         * lib/acl_entries.c (acl_entries): Likewise.
58813 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58815         Bug fix in acl module.
58816         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
58818 2009-05-03  Bruno Haible  <bruno@clisp.org>
58820         Create gperf-generated file in the source dir, not in the build dir.
58821         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
58822         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
58823         * modules/unicase/locale-language (unicase/locale-languages.h):
58824         Likewise.
58825         * modules/unicase/special-casing (unicase/special-casing-table.h):
58826         Likewise.
58827         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
58828         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
58829         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
58830         Reported by Ralf Wildenhues.
58832 2009-05-03  Bruno Haible  <bruno@clisp.org>
58834         * modules/fnmatch (Description, configure.ac): Taken from
58835         fnmatch-posix.
58836         * modules/fnmatch-posix: Turn into a symbolic reference to the
58837         'fnmatch' module, and deprecate.
58838         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
58840 2009-05-03  Bruno Haible  <bruno@clisp.org>
58842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
58843         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
58844         Reported by Ralf Wildenhues.
58846 2009-05-04  Simon Josefsson  <simon@josefsson.org>
58848         * m4/fnmatch.m4: Fix fnmatch re-define.
58850 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58852         priv-set: new module and tests; adapt write-any-file
58853         * lib/priv-set.c: New file.
58854         * lib/priv-set.h: New file.
58855         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
58856         * lib/write-any-file.c: Simplify by using priv-set module.
58857         * m4/priv-set.m4: New file.
58858         * modules/priv-set: New file.
58859         * modules/unlinkdir: Add dependency on priv-set module.
58860         * modules/write-any-file: Likewise.
58862         Tests for module 'priv-set'.
58863         * modules/priv-set-tests: New file.
58864         * tests/test-priv-set.c: New file.
58866 2009-05-03  Jim Meyering  <meyering@redhat.com>
58867             Bruno Haible  <bruno@clisp.org>
58869         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
58870         use the converted UTF-8 variant of the name instead.
58872 2009-05-03  Jim Meyering  <meyering@redhat.com>
58874         tests: tighten some getdate tests
58875         * tests/test-getdate.c (main): Tighten tests: require equality,
58876         not just greater than.  Set TZ envvar to UTC0.
58878 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
58880         getdate: correctly interpret "next monday" when run on a Monday
58881         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
58882         that e.g., "next tues" (when run on a tuesday) results in a date
58883         that is one week in the future, and not today's date.
58884         I.e., add a week when the wday is the same as the current one.
58885         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
58886         and earlier by Martin Bernreuther and Jan Minář.
58887         * tests/test-getdate.c (main): Check that "next DAY" is always in
58888         the future and that "last DAY" is always in the past.
58890 2009-05-02  Jim Meyering  <meyering@redhat.com>
58892         build: ensure that a release build fails when a submodule is unclean
58893         * top/maint.mk (no-submodule-changes): New rule.
58894         (alpha beta major): Depend on it.
58896 2009-05-02  Bruno Haible  <bruno@clisp.org>
58898         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
58899         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
58900         shell variable gl_fnmatch_required to detect which variant is
58901         requested.
58902         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
58903         gl_FUNC_FNMATCH_POSIX.
58904         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
58905         exclude fnmatch-posix.
58907 2009-05-02  Bruno Haible  <bruno@clisp.org>
58909         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
58910         * modules/mbsrtowcs (License): Change to LGPLv2+.
58911         * modules/strnlen1 (License): Likewise.
58912         Reported by Simon Josefsson.
58914 2009-05-02  Bruno Haible  <bruno@clisp.org>
58916         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
58917         "cross".
58918         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
58919         gnulib-tool was called with option --source-base=lib.
58921 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58923         Use automake *-local hooks without commands, for extensibility.
58924         * modules/localcharset (Makefile.am): Rename install-exec-local
58925         rule to install-exec-localcharset, and make it a prerequisite of
58926         install-exec-local.  Likewise, rename the uninstall-local rule to
58927         uninstall-localcharset, and make it a prerequisite of the former.
58929 2009-05-01  Bruno Haible  <bruno@clisp.org>
58931         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
58932         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
58933         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
58934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
58935         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
58936         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
58937         m4/locale-zh.m4, m4/codeset.m4.
58939         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
58940         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
58941         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
58942         m4/locale-zh.m4.
58944         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
58945         REPLACE_WCRTOMB if mbstate_t must be replaced.
58946         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
58947         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
58949 2009-05-01  Bruno Haible  <bruno@clisp.org>
58951         Avoid compiler warnings when redefining macros defined by <libintl.h>.
58952         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
58953         dngettext, dcngettext, textdomain, bindtextdomain,
58954         bind_textdomain_codeset): Undefine before redefining.
58956 2009-04-30  Bruno Haible  <bruno@clisp.org>
58958         Fix bug introduced on 2009-04-25.
58959         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
58960         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
58961         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
58962         is defined.
58963         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
58964         is defined.
58965         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
58966         is defined.
58967         Reported by Elbert_Pol <elbert.pol@gmail.com>.
58969 2009-04-28  Bruno Haible  <bruno@clisp.org>
58971         Comment tweaks.
58972         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
58973         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
58974         * lib/unicase.h (u*_casexfrm): Likewise.
58975         Reported by Paolo Bonzini.
58977 2009-04-28  Bruno Haible  <bruno@clisp.org>
58979         Fix a compilation error.
58980         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
58981         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
58982         Reported by Jim Meyering.
58984 2009-04-27  Bruno Haible  <bruno@clisp.org>
58986         New module 'libunistring'.
58987         * modules/libunistring: New file.
58988         * m4/libunistring.m4: New file.
58989         * MODULES.html.sh (Unicode string functions): Add it.
58991 2009-04-27  Eric Blake  <ebb9@byu.net>
58993         maint.mk: allow package-specific header to provide <config.h>
58994         * top/maint.mk (sc_require_config_h): New variable.
58995         (sc_require_config_h, sc_require_config_h_first): Use it.
58997 2009-04-27  Simon Josefsson  <simon@josefsson.org>
58999         * top/maint.mk (sc_avoid_if_before_free): Except
59000         useless-if-before-free script.
59002 2009-04-27  Eric Blake  <ebb9@byu.net>
59004         maintainer-makefile: depend on all required helper scripts
59005         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
59006         useless-if-before-free.
59007         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
59008         version, rather than assuming gnulib checkout is available.
59009         Reported by Simen Josefsson.
59011 2009-04-26  Bruno Haible  <bruno@clisp.org>
59013         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
59014         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
59015         "../" or "..".
59017 2009-04-26  Bruno Haible  <bruno@clisp.org>
59019         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
59020         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
59021         AC_LIB_HAVE_LINKFLAGS.
59023 2009-04-26  Bruno Haible  <bruno@clisp.org>
59025         Simplify calling convention of u*_conv_from_encoding.
59026         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
59027         u32_conv_from_encoding): Expect a resultbuf argument and return the
59028         result directly as a pointer.
59029         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
59030         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
59031         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
59032         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
59033         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
59034         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
59035         Update.
59036         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
59037         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
59038         * lib/vasnprintf.c (VASNPRINTF): Update.
59039         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
59040         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
59041         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
59042         * NEWS: Mention the change.
59044 2009-04-26  Bruno Haible  <bruno@clisp.org>
59046         Simplify calling convention of u*_conv_to_encoding.
59047         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59048         u32_conv_to_encoding): Expect a resultbuf argument and return the
59049         result directly as a pointer.
59050         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
59051         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
59052         freeing scaled_offsets if mem_iconveha failed.
59053         * lib/unicase/u-casexfrm.h (FUNC): Update.
59054         * lib/uninorm/u-normxfrm.h (FUNC): Update.
59055         * lib/vasnprintf.c (VASNPRINTF): Update.
59056         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
59057         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
59058         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
59059         * NEWS: Mention the change.
59061 2009-04-26  Bruno Haible  <bruno@clisp.org>
59063         Avoid test failures on AIX and OSF/1.
59064         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
59065         malloc(0).
59066         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
59067         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
59068         Likewise.
59069         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
59070         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
59071         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
59072         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
59073         * doc/posix-functions/malloc.texi: Document the portability problem
59074         related to malloc(0).
59076 2009-04-26  Bruno Haible  <bruno@clisp.org>
59078         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
59079         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
59080         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
59082 2009-04-25  Bruno Haible  <bruno@clisp.org>
59084         Avoid link error when creating a namespace clean library.
59085         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
59086         as macro with arguments if already defined as an alias.
59087         * lib/signbitf.c (gl_signbitf): Don't undefine.
59088         * lib/signbitd.c (gl_signbitd): Don't undefine.
59089         * lib/signbitl.c (gl_signbitl): Don't undefine.
59091 2009-04-25  Jim Meyering  <meyering@redhat.com>
59093         vc-list-files: fix another quoting bug
59094         * build-aux/vc-list-files: Avoid sed backslash expansion
59095         of pathological directory names.
59097 2009-04-25  Eric Blake  <ebb9@byu.net>
59099         vc-list-files: fix shell quoting error
59100         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
59101         timestamp.
59103 2009-04-25  Jim Meyering  <meyering@redhat.com>
59105         vc-list-files: restore lost functionality with subdir argument
59106         * build-aux/vc-list-files: When given a non-"." sub-directory
59107         argument, substitute the $dir/ prefix back onto each resulting name.
59108         Otherwise, coreutils' root_tests check would fail.
59110 2009-04-24  Eric Blake  <ebb9@byu.net>
59112         vc-list-files: ignore git symlinks
59113         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
59114         than ls-files, to ignore git symlinks.
59116         maint.mk: import improvements from m4
59117         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
59118         (move_if_change): Delete unused macro.
59119         (news-date-check, vc-diff-check): Support VPATH builds.
59120         (announcement): Likewise.  Split --bootstrap-tools list...
59121         (boostrap-tools): ...into separate list, which can be overridden
59122         in cfg.mk.
59123         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
59124         requiring dependency on useless-if-before-free module.
59125         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
59126         Support VPATH builds.
59128 2009-04-24  Jim Meyering  <meyering@redhat.com>
59130         maint.mk: remove coreutils-specific rules and variables
59131         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
59132         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
59133         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
59135         maint.mk: remove obsolete rule
59136         * top/maint.mk (rel-check): Remove rule.
59137         (WGET, WGETFLAGS): Remove now-unused variables.
59139 2009-04-24  Simon Josefsson  <simon@josefsson.org>
59141         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
59142         consistency.
59144         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
59145         '$(PATH_SEPARATOR)' instead of ':'.
59147 2009-04-24  Simon Josefsson  <simon@josefsson.org>
59149         * lib/getopt1.c (main): Use 'const' for static array.
59151 2009-04-24  Simon Josefsson  <simon@josefsson.org>
59153         * top/maint.mk: Sync with coreutils.
59154         * NEWS: Explain incompatibilities.
59156 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59157             Bruno Haible  <bruno@clisp.org>
59159         Fix cross-compilation results.
59160         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
59161         statement, as third argument of AC_TRY_RUN.
59162         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
59163         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
59164         Likewise.
59165         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59166         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
59167         Likewise.
59168         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
59169         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
59170         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
59172 2009-04-20  Bruno Haible  <bruno@clisp.org>
59174         Avoid test failure on mingw.
59175         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
59177 2009-04-20  Bruno Haible  <bruno@clisp.org>
59179         Avoid compilation error on mingw.
59180         * modules/localename-tests (Depends-on): Add locale.
59182 2009-04-19  Bruno Haible  <bruno@clisp.org>
59184         Support for building a shared library on Windows platforms.
59185         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
59186         (main): Test the presence of UNINORM_NFC here.
59187         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
59188         (main): Test the presence of UNINORM_NFD here.
59189         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
59190         (main): Test the presence of UNINORM_NFKC here.
59191         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
59192         (main): Test the presence of UNINORM_NFKD here.
59194 2009-04-19  Bruno Haible  <bruno@clisp.org>
59196         Avoid a compiler warning.
59197         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
59198         Change type of variable 'sequence'.
59200 2009-04-19  Bruno Haible  <bruno@clisp.org>
59202         * modules/configmake (Makefile.am): When the contents of configmake.h
59203         does not change, arrange to preserve its modification time.
59205 2009-04-17  Simon Josefsson  <simon@josefsson.org>
59207         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
59208         gettext domain.
59210 2009-04-16  Jim Meyering  <meyering@redhat.com>
59212         useless-if-before-free: improve conversion code
59213         * build-aux/useless-if-before-free: Adjust code-in-comment to match
59214         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
59216 2009-04-14  Bruno Haible  <bruno@clisp.org>
59218         * modules/fcntl (Depends-on): Add extensions.
59219         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
59221 2009-04-12  Ben Pfaff  <blp@gnu.org>
59223         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
59224         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
59226 2009-03-20  Ben Pfaff  <blp@gnu.org>
59228         Make rename replace existing destinations on Windows.
59229         * m4/rename.m4: Add test for Mingw.
59230         * lib/rename.c: Add rename replacement that uses MoveFileEx with
59231         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
59232         * doc/posix-functions/rename.texi: Document.
59234 2009-04-10  Bruno Haible  <bruno@clisp.org>
59236         New include file "iconveh.h".
59237         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
59238         * lib/striconveh.h: Include it.
59239         (enum iconv_ilseq_handler): Remove definition.
59240         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
59241         striconveh.h.
59242         * lib/striconveha.c: Include striconveh.h.
59243         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
59244         * modules/striconveh (Files): Add lib/iconveh.h.
59245         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
59246         lib/striconveh.h.
59248 2009-04-10  Bruno Haible  <bruno@clisp.org>
59250         * lib/uniconv.h: Update comment.
59252 2009-04-10  Bruno Haible  <bruno@clisp.org>
59254         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
59255         always.
59256         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59257         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59258         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59259         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
59260         "unistring-notinline.h", so that the function gets defined always.
59261         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59262         * lib/unistr/u8-uctomb.c: Likewise.
59263         * lib/unistr/u16-mbtouc.c: Likewise.
59264         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59265         * lib/unistr/u16-uctomb.c: Likewise.
59266         * lib/unistr/u32-mbtouc.c: Likewise.
59267         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59268         * lib/unistr/u32-uctomb.c: Likewise.
59270 2009-04-10  Bruno Haible  <bruno@clisp.org>
59272         Mark 'utime' obsolete.
59273         * modules/utime (Status, Notice): New sections.
59274         Suggested by Jim Meyering.
59276         Fix cross-compile guess for utime test.
59277         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
59278         autoconf.
59279         * doc/posix-functions/utime.texi: Give more precisions.
59280         Reported by Jan <ipif@ymail.com>.
59282 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
59284         filevercmp: correct today's change
59285         * lib/filevercmp.c: Also handle coreutils' test inputs.
59286         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
59288         Fix regression in 'filevercmp' module. Thanks Sven Joachim
59289         for reporting it.
59290         * lib/filevercmp.c: Special handle for "", "." and "..".
59291         * tests/test-filevercmp.c: Enlarge the set suite.
59293 2009-04-07  Jim Meyering  <meyering@redhat.com>
59295         useless-if-before-free: show how to remove braced useless free, too
59296         * build-aux/useless-if-before-free: still only in a comment, though.
59298 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
59300         maint.mk: import changes to syntax-check macros from coreutils
59301         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
59302         Use them in the relevant macros.
59304 2009-04-06  Bruno Haible  <bruno@clisp.org>
59306         Fix unportable use of bit-fields.
59307         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
59308         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
59309         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
59311 2009-04-06  Bruno Haible  <bruno@clisp.org>
59313         Avoid test failures on AIX and OSF/1.
59314         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
59315         that malloc(0) = NULL.
59316         * tests/unicase/test-u8-tolower.c (check): Likewise.
59317         * tests/unicase/test-u8-totitle.c (check): Likewise.
59318         * tests/unicase/test-u8-toupper.c (check): Likewise.
59319         * tests/unicase/test-u16-casefold.c (check): Likewise.
59320         * tests/unicase/test-u16-tolower.c (check): Likewise.
59321         * tests/unicase/test-u16-totitle.c (check): Likewise.
59322         * tests/unicase/test-u16-toupper.c (check): Likewise.
59323         * tests/unicase/test-u32-casefold.c (check): Likewise.
59324         * tests/unicase/test-u32-tolower.c (check): Likewise.
59325         * tests/unicase/test-u32-totitle.c (check): Likewise.
59326         * tests/unicase/test-u32-toupper.c (check): Likewise.
59327         * tests/uninorm/test-u8-nfc.c (check): Likewise.
59328         * tests/uninorm/test-u8-nfd.c (check): Likewise.
59329         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
59330         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
59331         * tests/uninorm/test-u16-nfc.c (check): Likewise.
59332         * tests/uninorm/test-u16-nfd.c (check): Likewise.
59333         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
59334         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
59335         * tests/uninorm/test-u32-nfc.c (check): Likewise.
59336         * tests/uninorm/test-u32-nfd.c (check): Likewise.
59337         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
59338         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
59340 2009-04-05  Bruno Haible  <bruno@clisp.org>
59342         Work around an autoconf limitation.
59343         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
59344         comment line if it would be longer than 3 KB.
59346 2009-04-05  Bruno Haible  <bruno@clisp.org>
59348         Avoid test failure with libiconv-1.13.
59349         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
59350         of the expected test results.
59352 2009-04-05  Bruno Haible  <bruno@clisp.org>
59354         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
59355         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
59356         that it should be installed.
59358 2009-04-05  Bruno Haible  <bruno@clisp.org>
59360         * gnulib-tool: New option --copy-file.
59361         (func_usage): Document it.
59362         (func_dest_tmpfilename): Moved out of func_import.
59363         (func_add_file, func_update_file): New functions, extracted from
59364         func_import.
59365         (func_import): Update.
59367 2009-04-05  Karl Berry  <karl@gnu.org>
59369         * README: prominently mention gnulib-tool.
59370         Rearrange sections so getting the code is near the top.
59372 2009-04-05  Bruno Haible  <bruno@clisp.org>
59374         * lib/unicase.h: Mention u*_cmp2.
59375         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
59376         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
59377         * lib/unicase/ulc-casecmp.c: Likewise.
59378         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
59379         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
59380         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
59381         unistr/u8-cmp.
59382         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
59383         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
59384         unistr/u16-cmp.
59385         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
59386         unistr/u32-cmp.
59388         * lib/uninorm.h: Mention u*_cmp2.
59389         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
59390         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
59391         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
59392         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
59393         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
59394         unistr/u8-cmp.
59395         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
59396         unistr/u16-cmp.
59397         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
59398         unistr/u32-cmp.
59400         New module 'unistr/u32-cmp2'.
59401         * lib/unistr/u32-cmp2.c: New file.
59402         * modules/unistr/u32-cmp2: New file.
59404         New module 'unistr/u16-cmp2'.
59405         * lib/unistr/u16-cmp2.c: New file.
59406         * modules/unistr/u16-cmp2: New file.
59408         New module 'unistr/u8-cmp2'.
59409         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
59410         * lib/unistr/u8-cmp2.c: New file.
59411         * lib/unistr/u-cmp2.h: New file.
59412         * modules/unistr/u8-cmp2: New file.
59414 2009-04-05  Bruno Haible  <bruno@clisp.org>
59416         * lib/unictype.h (uc_property_is_valid): New macro.
59417         * tests/unictype/test-pr_byname.c (main): Use it.
59419         * lib/unistr.h: Doc fixes.
59420         * lib/uniconv.h: Doc fixes.
59421         * lib/unictype.h: Doc fixes.
59423 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
59425         Port coreutils 7.2 to Solaris 8.
59427         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
59428         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
59429         for Solaris 8.  This is a bit of a hack, as it means it's the
59430         caller's responsibility to add -lnsl if needed, but most likely it
59431         won't be needed since only getaddrinfo uses this and getaddrinfo
59432         isn't needed on Solaris 8.
59434         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
59435         problem to Solaris 8 encountered with coreutils 7.2, which
59436         resulted in a message "fnmatch.c:292: warning: passing argument 4
59437         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
59438         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
59440 2009-04-03  Simon Josefsson  <simon@josefsson.org>
59442         * m4/ld-version-script.m4: Add FIXME comment.
59444 2009-04-02  Simon Josefsson  <simon@josefsson.org>
59446         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
59447         SOVERSION variable.
59449 2009-04-02  Bruno Haible  <bruno@clisp.org>
59451         * Makefile (info, html, dvi, pdf): Combine the rules.
59452         Suggested by Jim Meyering.
59454 2009-04-01  Bruno Haible  <bruno@clisp.org>
59456         * Makefile (info, html, dvi, pdf): New targets.
59457         Reported by Reuben Thomas <rrt@sc3d.org>.
59459 2009-04-01  Bruno Haible  <bruno@clisp.org>
59461         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
59462         can be put into PATH.
59463         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
59465 2009-04-01  Bruno Haible  <bruno@clisp.org>
59467         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
59469 2009-04-01  Bruno Haible  <bruno@clisp.org>
59471         Rename module 'visibility'.
59472         * modules/lib-symbol-visibility: Renamed from modules/visibility.
59473         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
59474         * doc/gnulib.texi: Update.
59475         * MODULES.html.sh (Misc): Update.
59476         * NEWS: Mention the change.
59478 2009-04-01  Simon Josefsson  <simon@josefsson.org>
59480         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
59481         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
59482         Eric Blake <ebb9@byu.net> for review.
59483         * MODULES.html.sh: Add lib-msvc-compat.
59484         * doc/gnulib.texi: Link to new section.
59485         * m4/ld-output-def.m4: New file.
59486         * doc/ld-output-def.texi: New file.
59488 2009-04-01  Simon Josefsson  <simon@josefsson.org>
59490         Rename ld-version-script to lib-symbol-versions.  Suggested by
59491         Bruno Haible <bruno@clisp.org>.
59492         * modules/ld-version-script: Renamed to lib-symbol-versions.
59493         * doc/ld-version-script.texi: Fix module name.
59494         * MODULES.html.sh: Add lib-symbol-versions.
59496 2009-03-31  Simon Josefsson  <simon@josefsson.org>
59498         * modules/u64-tests: New file.
59499         * tests/test-u64.c: New file.
59501 2009-03-04  Simon Josefsson  <simon@josefsson.org>
59503         * MODULES.html.sh: Mention u64.
59504         * modules/u64: New module.
59505         * modules/crypto/sha512: Depend on u64 module instead of providing
59506         u64.h.
59508 2009-03-27  Eric Blake  <ebb9@byu.net>
59510         test-strerror: make debugging EAI_SYSTEM easier
59511         * modules/getaddrinfo-tests (Depends-on): Add strerror.
59512         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
59513         failure was EAI_SYSTEM.
59515 2009-03-25  Bruno Haible  <bruno@clisp.org>
59517         Fix a problem with --enable-relocatable on Solaris 7.
59518         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
59519         since 2008-02-24.
59521 2009-03-25  Eric Blake  <ebb9@byu.net>
59523         test-sockets: avoid gcc warning
59524         * tests/test-sockets.c (main): Silence compiler warning.
59526 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59528         New modules nproc, pthread, contributed by Glen Lenker.
59530         * MODULES.html.sh: Add pthread, nproc.
59531         * lib/nproc.c: New file.
59532         * lib/nproc.h: New file.
59533         * lib/pthread.in.h: New file.
59534         * m4/pthread.m4: New file.
59535         * modules/nproc: New file.
59536         * modules/pthread: New file.
59538 2009-03-24  Simon Josefsson  <simon@josefsson.org>
59540         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
59541         New variable.
59543 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
59545         filevercmp: handle simple~ and numbered.~3~ backup suffixes
59546         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
59547         * tests/test-filevercmp.c: Add tests for backup suffixes.
59549 2009-03-24  Simon Josefsson  <simon@josefsson.org>
59551         * modules/stdlib (Depends-on): Add stdint, needed when defining
59552         struct random_data on, for example, HP-UX 10.20.  Reported by
59553         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59555 2009-03-24  Simon Josefsson  <simon@josefsson.org>
59557         * lib/readline.c (readline): Call fflush on stdout after printing
59558         prompt.
59560 2009-03-20  Bruno Haible  <bruno@clisp.org>
59562         Remove dependency from 'close' module to -lws2_32 on native Windows.
59563         * lib/close-hook.h: New file.
59564         * lib/close-hook.c: New file.
59565         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
59566         w32sock.h.
59567         (_gl_close_fd_maybe_socket): Remove function.
59568         (rpl_close): Invoke execute_all_close_hooks instead of
59569         _gl_close_fd_maybe_socket.
59570         * lib/sockets.c: Include close-hook.h, w32sock.h.
59571         (close_fd_maybe_socket): New function, essentially from lib/close.c.
59572         (close_sockets_hook): New variable.
59573         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
59574         (gl_sockets_cleanup): Unregister it.
59575         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
59576         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
59577         * modules/close-hook: New file.
59578         * modules/close (Files): Remove lib/w32sock.h.
59579         (Depends-on): Add close-hook.
59580         (Link): Remove section.
59581         * modules/sockets (Files): Add lib/w32sock.h.
59582         (Depends-on): Add close-hook.
59583         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
59584         invocation.
59585         * NEWS: Mention that LIB_CLOSE is gone.
59587 2009-03-23  Eric Blake  <ebb9@byu.net>
59589         signal-tests: test previous patch
59590         * tests/test-signal.c: New file.
59591         * modules/signal-tests: Likewise.
59593         signal.h: always support 'volatile sig_atomic_t'
59594         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
59595         (gl_SIGNAL_H_DEFAULTS): Add a default.
59596         * modules/signal (Makefile.am): Substitute if needed.
59597         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
59598         users can blindly add volatile.
59599         * doc/posix-headers/signal.texi (signal.h): Document it.
59600         Reported by Matthew Woehlke.
59602 2009-03-23  Jim Meyering  <meyering@redhat.com>
59604         pathmax: PATH_MAX: use pathconf only when available
59605         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
59606         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
59607         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
59608         This avoids a link failure in a PSP cross-compilation environment
59609         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
59611         * lib/vasnprintf.c (divide): Fix typo in comment.
59613 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59615         * gnulib-tool (func_filter_filelist): Fix comment.
59617 2009-03-20  Bruno Haible  <bruno@clisp.org>
59619         Make sockets.h self-contained.
59620         * lib/sockets.c: Include sockets.h first.
59621         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
59623 2009-03-19  Eric Blake  <ebb9@byu.net>
59625         doc: mention more functions added in cygwin 1.7.0
59626         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
59627         addition.
59628         * doc/posix-functions/log2f.texi: Likewise.
59630 2009-03-19  Jim Meyering  <meyering@redhat.com>
59632         fsusage: avoid syntax error due to statement-before-declaration
59633         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
59634         after all declarations.  Reported by Matthew Woehlke in
59635         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
59637 2009-03-18  Eric Blake  <ebb9@byu.net>
59639         build-aux/compile: sync from automake
59640         * build-aux/compile: New file, from automake.
59641         * config/srclist.txt: Mention build-aux/compile.
59643 2009-03-17  Bruno Haible  <bruno@clisp.org>
59645         * lib/git-merge-changelog.c: Fix typo in comment.
59646         Reported by Reuben Thomas <rrt@sc3d.org>.
59648 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
59650         * m4/regex.m4: update and improve help for
59651         --without-included-regex.
59653 2009-03-17  Simon Josefsson  <simon@josefsson.org>
59655         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
59656         failure on missing include files.
59658 2009-03-17  Eric Blake  <ebb9@byu.net>
59660         doc: mention more functions added in cygwin 1.7.0
59661         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
59662         addition.
59663         * doc/posix-functions/fwscanf.texi: Likewise.
59664         * doc/posix-functions/swprintf.texi: Likewise.
59665         * doc/posix-functions/swscanf.texi: Likewise.
59666         * doc/posix-functions/vfwprintf.texi: Likewise.
59667         * doc/posix-functions/vfwscanf.texi: Likewise.
59668         * doc/posix-functions/vswprintf.texi: Likewise.
59669         * doc/posix-functions/vswscanf.texi: Likewise.
59670         * doc/posix-functions/vwprintf.texi: Likewise.
59671         * doc/posix-functions/vwscanf.texi: Likewise.
59672         * doc/posix-functions/wcscasecmp.texi: Likewise.
59673         * doc/posix-functions/wcsdup.texi: Likewise.
59674         * doc/posix-functions/wcsftime.texi: Likewise.
59675         * doc/posix-functions/wcsncasecmp.texi: Likewise.
59676         * doc/posix-functions/wprintf.texi: Likewise.
59677         * doc/posix-functions/wscanf.texi: Likewise.
59678         * doc/glibc-functions/gethostbyname2.texi: Likewise.
59680 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59682         maint.mk: really add $(AM_MAKEFLAGS)
59683         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
59684         was inadvertently omitted in the last commit.
59685         Spotted by Bruno Haible.
59687         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
59688         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
59689         $(AM_MAKEFLAGS)' rather than plain `make'.
59691         gnulib-tool: execute $MAKE not make
59692         * gnulib-tool: Default $MAKE to 'make'.
59693         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
59694         than make.  Initialize $MAKE in the do-autobuild script.
59696         gnulib-tool: use $MAKE not make in generated files
59697         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
59698         make, in generated files.  Initialize $MAKE in the do-autobuild
59699         script.
59701         * top/GNUmakefile (_have-git-version-gen): Fix typo.
59703         GNUmakefile: disable parallelism only for multiple, recursive targets
59704         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
59705         additions in the Makefile.
59706         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
59707         by Automake.
59708         (.NOTPARALLEL): Only disable parallel builds if multiple targets
59709         are listed on the command line and at least one of them is
59710         listed in $(ALL_RECURSIVE_TARGETS).
59712 2009-03-14  Bruno Haible  <bruno@clisp.org>
59714         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
59715         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
59716         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
59717         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
59718         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
59719         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
59720         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
59721         unistr/u8-uctomb.
59722         * modules/unistr/u8-strchr (Depends-on): Likewise.
59723         * modules/unistr/u8-strrchr (Depends-on): Likewise.
59724         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
59725         unistr/u16-uctomb.
59726         * modules/unistr/u16-strchr (Depends-on): Likewise.
59727         * modules/unistr/u16-strrchr (Depends-on): Likewise.
59729 2009-03-12  Bruno Haible  <bruno@clisp.org>
59731         Work around select() bug on Interix 3.5.
59732         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
59733         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
59734         * m4/select.m4: New file.
59735         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
59736         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
59737         * modules/select (Files): Add m4/select.m4.
59738         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
59739         * modules/nanosleep (Depends-on): Add select.
59740         * modules/poll (Depends-on): Likewise.
59741         * doc/posix-functions/select.texi: Mention the Interix bug.
59742         Reported by Markus Duft <mduft@gentoo.org>.
59744         * lib/select.c: Renamed from lib/winsock-select.c.
59745         * modules/select (Files): Add lib/select.c, remove
59746         lib/winsock-select.c.
59747         (configure.ac): Update.
59749 2009-03-12  Jim Meyering  <meyering@redhat.com>
59751         avoid gcc warnings about unused macro definitions
59752         * lib/readtokens.c (STREQ): Remove unused definition.
59753         * lib/xmalloc.c (SIZE_MAX): Likewise.
59754         * lib/openat-die.c (N_): Likewise.
59755         * lib/mountlist.c (SIZE_MAX): Remove definition.
59756         Instead, include <stdint.h>.
59757         * lib/readutmp.c: Likewise.
59758         * modules/readutmp (Depends-on): Add stdint.
59759         * modules/mountlist (Depends-on): Add stdint.
59760         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
59762 2009-03-10  Bruno Haible  <bruno@clisp.org>
59764         Tests for module 'mbmemcasecoll'.
59765         * modules/mbmemcasecoll-tests: New file.
59766         * tests/test-mbmemcasecoll1.sh: New file.
59767         * tests/test-mbmemcasecoll2.sh: New file.
59768         * tests/test-mbmemcasecoll3.sh: New file.
59769         * tests/test-mbmemcasecoll.c: New file.
59771         New module 'mbmemcasecoll'.
59772         * lib/mbmemcasecoll.h: New file.
59773         * lib/mbmemcasecoll.c: New file.
59774         * modules/mbmemcasecoll: New file.
59776         * tests/test-mbmemcasecmp.h: New file, extracted from
59777         tests/test-mbmemcasecmp.c.
59778         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
59779         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
59780         (main): Update.
59781         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
59783 2009-03-09  Bruno Haible  <bruno@clisp.org>
59785         Tests for module 'mbmemcasecmp'.
59786         * modules/mbmemcasecmp-tests: New file.
59787         * tests/test-mbmemcasecmp1.sh: New file.
59788         * tests/test-mbmemcasecmp2.sh: New file.
59789         * tests/test-mbmemcasecmp3.sh: New file.
59790         * tests/test-mbmemcasecmp.c: New file.
59792         New module 'mbmemcasecmp'.
59793         * lib/mbmemcasecmp.h: New file.
59794         * lib/mbmemcasecmp.c: New file.
59795         * modules/mbmemcasecmp: New file.
59797 2009-03-09  Bruno Haible  <bruno@clisp.org>
59799         Tests for module 'unicase/ulc-casecoll'.
59800         * modules/unicase/ulc-casecoll-tests: New file.
59801         * tests/unicase/test-ulc-casecoll1.sh: New file.
59802         * tests/unicase/test-ulc-casecoll2.sh: New file.
59803         * tests/unicase/test-ulc-casecoll.c: New file.
59805         New module 'unicase/ulc-casecoll'.
59806         * lib/unicase.h (ulc_casecoll): New declaration.
59807         * lib/unicase/ulc-casecoll.c: New file.
59808         * modules/unicase/ulc-casecoll: New file.
59810         New module 'unicase/ulc-casexfrm'.
59811         * lib/unicase.h (ulc_casexfrm): New declaration.
59812         * lib/unicase/ulc-casexfrm.c: New file.
59813         * modules/unicase/ulc-casexfrm: New file.
59815 2009-03-09  Bruno Haible  <bruno@clisp.org>
59817         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
59818         invocations.
59820         * m4/mbscasecmp.m4: Remove file.
59821         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
59822         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
59824         * m4/mbscasestr.m4: Remove file.
59825         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
59826         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
59828         * m4/mbschr.m4: Remove file.
59829         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
59830         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
59832         * m4/mbscspn.m4: Remove file.
59833         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
59834         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
59836         * m4/mbslen.m4: Remove file.
59837         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
59838         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
59840         * m4/mbsncasecmp.m4: Remove file.
59841         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
59842         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
59844         * m4/mbsnlen.m4: Remove file.
59845         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
59846         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
59848         * m4/mbspbrk.m4: Remove file.
59849         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
59850         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
59852         * m4/mbspcasecmp.m4: Remove file.
59853         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
59854         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
59856         * m4/mbsrchr.m4: Remove file.
59857         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
59858         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
59860         * m4/mbssep.m4: Remove file.
59861         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
59862         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
59864         * m4/mbsspn.m4: Remove file.
59865         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
59866         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
59868         * m4/mbsstr.m4: Remove file.
59869         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
59870         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
59872         * m4/mbstok_r.m4: Remove file.
59873         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
59874         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
59876         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
59878         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
59879         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
59881         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
59883 2009-03-08  Bruno Haible  <bruno@clisp.org>
59885         Tests for module 'unicase/ulc-casecmp'.
59886         * modules/unicase/ulc-casecmp-tests: New file.
59887         * tests/unicase/test-ulc-casecmp1.sh: New file.
59888         * tests/unicase/test-ulc-casecmp2.sh: New file.
59889         * tests/unicase/test-ulc-casecmp.c: New file.
59891         New module 'unicase/ulc-casecmp'.
59892         * lib/unicase.h (ulc_casecmp): New declaration.
59893         * lib/unicase/ulc-casecmp.c: New file.
59894         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
59895         'const SRC_UNIT *'.
59896         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
59897         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
59898         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
59899         * modules/unicase/ulc-casecmp: New file.
59901         Tests for module 'unicase/u32-is-cased'.
59902         * modules/unicase/u32-is-cased-tests: New file.
59903         * tests/unicase/test-u32-is-cased.c: New file.
59905         Tests for module 'unicase/u16-is-cased'.
59906         * modules/unicase/u16-is-cased-tests: New file.
59907         * tests/unicase/test-u16-is-cased.c: New file.
59909         Tests for module 'unicase/u8-is-cased'.
59910         * modules/unicase/u8-is-cased-tests: New file.
59911         * tests/unicase/test-u8-is-cased.c: New file.
59912         * tests/unicase/test-is-cased.h: New file.
59914         New module 'unicase/u32-is-cased'.
59915         * lib/unicase/u32-is-cased.c: New file.
59916         * modules/unicase/u32-is-cased: New file.
59918         New module 'unicase/u16-is-cased'.
59919         * lib/unicase/u16-is-cased.c: New file.
59920         * modules/unicase/u16-is-cased: New file.
59922         New module 'unicase/u8-is-cased'.
59923         * lib/unicase/u8-is-cased.c: New file.
59924         * lib/unicase/u-is-cased.h: New file.
59925         * modules/unicase/u8-is-cased: New file.
59927         Tests for module 'unicase/u32-is-casefolded'.
59928         * modules/unicase/u32-is-casefolded-tests: New file.
59929         * tests/unicase/test-u32-is-casefolded.c: New file.
59931         Tests for module 'unicase/u16-is-casefolded'.
59932         * modules/unicase/u16-is-casefolded-tests: New file.
59933         * tests/unicase/test-u16-is-casefolded.c: New file.
59935         Tests for module 'unicase/u8-is-casefolded'.
59936         * modules/unicase/u8-is-casefolded-tests: New file.
59937         * tests/unicase/test-u8-is-casefolded.c: New file.
59938         * tests/unicase/test-is-casefolded.h: New file.
59940         New module 'unicase/u32-is-casefolded'.
59941         * lib/unicase/u32-is-casefolded.c: New file.
59942         * modules/unicase/u32-is-casefolded: New file.
59944         New module 'unicase/u16-is-casefolded'.
59945         * lib/unicase/u16-is-casefolded.c: New file.
59946         * modules/unicase/u16-is-casefolded: New file.
59948         New module 'unicase/u8-is-casefolded'.
59949         * lib/unicase/u8-is-casefolded.c: New file.
59950         * modules/unicase/u8-is-casefolded: New file.
59952         Tests for module 'unicase/u32-is-titlecase'.
59953         * modules/unicase/u32-is-titlecase-tests: New file.
59954         * tests/unicase/test-u32-is-titlecase.c: New file.
59956         Tests for module 'unicase/u16-is-titlecase'.
59957         * modules/unicase/u16-is-titlecase-tests: New file.
59958         * tests/unicase/test-u16-is-titlecase.c: New file.
59960         Tests for module 'unicase/u8-is-titlecase'.
59961         * modules/unicase/u8-is-titlecase-tests: New file.
59962         * tests/unicase/test-u8-is-titlecase.c: New file.
59963         * tests/unicase/test-is-titlecase.h: New file.
59965         New module 'unicase/u32-is-titlecase'.
59966         * lib/unicase/u32-is-titlecase.c: New file.
59967         * modules/unicase/u32-is-titlecase: New file.
59969         New module 'unicase/u16-is-titlecase'.
59970         * lib/unicase/u16-is-titlecase.c: New file.
59971         * modules/unicase/u16-is-titlecase: New file.
59973         New module 'unicase/u8-is-titlecase'.
59974         * lib/unicase/u8-is-titlecase.c: New file.
59975         * modules/unicase/u8-is-titlecase: New file.
59977         Tests for module 'unicase/u32-is-lowercase'.
59978         * modules/unicase/u32-is-lowercase-tests: New file.
59979         * tests/unicase/test-u32-is-lowercase.c: New file.
59981         Tests for module 'unicase/u16-is-lowercase'.
59982         * modules/unicase/u16-is-lowercase-tests: New file.
59983         * tests/unicase/test-u16-is-lowercase.c: New file.
59985         Tests for module 'unicase/u8-is-lowercase'.
59986         * modules/unicase/u8-is-lowercase-tests: New file.
59987         * tests/unicase/test-u8-is-lowercase.c: New file.
59988         * tests/unicase/test-is-lowercase.h: New file.
59990         New module 'unicase/u32-is-lowercase'.
59991         * lib/unicase/u32-is-lowercase.c: New file.
59992         * modules/unicase/u32-is-lowercase: New file.
59994         New module 'unicase/u16-is-lowercase'.
59995         * lib/unicase/u16-is-lowercase.c: New file.
59996         * modules/unicase/u16-is-lowercase: New file.
59998         New module 'unicase/u8-is-lowercase'.
59999         * lib/unicase/u8-is-lowercase.c: New file.
60000         * modules/unicase/u8-is-lowercase: New file.
60002         Tests for module 'unicase/u32-is-uppercase'.
60003         * modules/unicase/u32-is-uppercase-tests: New file.
60004         * tests/unicase/test-u32-is-uppercase.c: New file.
60006         Tests for module 'unicase/u16-is-uppercase'.
60007         * modules/unicase/u16-is-uppercase-tests: New file.
60008         * tests/unicase/test-u16-is-uppercase.c: New file.
60010         Tests for module 'unicase/u8-is-uppercase'.
60011         * modules/unicase/u8-is-uppercase-tests: New file.
60012         * tests/unicase/test-u8-is-uppercase.c: New file.
60013         * tests/unicase/test-is-uppercase.h: New file.
60015         New module 'unicase/u32-is-uppercase'.
60016         * lib/unicase/u32-is-uppercase.c: New file.
60017         * modules/unicase/u32-is-uppercase: New file.
60019         New module 'unicase/u16-is-uppercase'.
60020         * lib/unicase/u16-is-uppercase.c: New file.
60021         * modules/unicase/u16-is-uppercase: New file.
60023         New module 'unicase/u8-is-uppercase'.
60024         * lib/unicase/u8-is-uppercase.c: New file.
60025         * modules/unicase/u8-is-uppercase: New file.
60027         New module 'unicase/u32-is-invariant'.
60028         * lib/unicase/u32-is-invariant.c: New file.
60029         * modules/unicase/u32-is-invariant: New file.
60031         New module 'unicase/u16-is-invariant'.
60032         * lib/unicase/u16-is-invariant.c: New file.
60033         * modules/unicase/u16-is-invariant: New file.
60035         New module 'unicase/u8-is-invariant'.
60036         * lib/unicase/u8-is-invariant.c: New file.
60037         * lib/unicase/invariant.h: New file.
60038         * lib/unicase/u-is-invariant.h: New file.
60039         * modules/unicase/u8-is-invariant: New file.
60041         Tests for module 'unicase/u32-casecoll'.
60042         * modules/unicase/u32-casecoll-tests: New file.
60043         * tests/unicase/test-u32-casecoll.c: New file.
60045         Tests for module 'unicase/u16-casecoll'.
60046         * modules/unicase/u16-casecoll-tests: New file.
60047         * tests/unicase/test-u16-casecoll.c: New file.
60049         Tests for module 'unicase/u8-casecoll'.
60050         * modules/unicase/u8-casecoll-tests: New file.
60051         * tests/unicase/test-u8-casecoll.c: New file.
60053         New module 'unicase/u32-casecoll'.
60054         * lib/unicase/u32-casecoll.c: New file.
60055         * modules/unicase/u32-casecoll: New file.
60057         New module 'unicase/u16-casecoll'.
60058         * lib/unicase/u16-casecoll.c: New file.
60059         * modules/unicase/u16-casecoll: New file.
60061         New module 'unicase/u8-casecoll'.
60062         * lib/unicase/u8-casecoll.c: New file.
60063         * lib/unicase/u-casecoll.h: New file.
60064         * modules/unicase/u8-casecoll: New file.
60066         New module 'unicase/u32-casexfrm'.
60067         * lib/unicase/u32-casexfrm.c: New file.
60068         * modules/unicase/u32-casexfrm: New file.
60070         New module 'unicase/u16-casexfrm'.
60071         * lib/unicase/u16-casexfrm.c: New file.
60072         * modules/unicase/u16-casexfrm: New file.
60074         New module 'unicase/u8-casexfrm'.
60075         * lib/unicase/u8-casexfrm.c: New file.
60076         * lib/unicase/u-casexfrm.h: New file.
60077         * modules/unicase/u8-casexfrm: New file.
60079         Tests for module 'unicase/u32-casecmp'.
60080         * modules/unicase/u32-casecmp-tests: New file.
60081         * tests/unicase/test-u32-casecmp.c: New file.
60083         Tests for module 'unicase/u16-casecmp'.
60084         * modules/unicase/u16-casecmp-tests: New file.
60085         * tests/unicase/test-u16-casecmp.c: New file.
60087         Tests for module 'unicase/u8-casecmp'.
60088         * modules/unicase/u8-casecmp-tests: New file.
60089         * tests/unicase/test-u8-casecmp.c: New file.
60090         * tests/unicase/test-casecmp.h: New file.
60092         New module 'unicase/u32-casecmp'.
60093         * lib/unicase/u32-casecmp.c: New file.
60094         * modules/unicase/u32-casecmp: New file.
60096         New module 'unicase/u16-casecmp'.
60097         * lib/unicase/u16-casecmp.c: New file.
60098         * modules/unicase/u16-casecmp: New file.
60100         New module 'unicase/u8-casecmp'.
60101         * lib/unicase/u8-casecmp.c: New file.
60102         * lib/unicase/u-casecmp.h: New file.
60103         * modules/unicase/u8-casecmp: New file.
60105         Tests for module 'unicase/u32-casefold'.
60106         * modules/unicase/u32-casefold-tests: New file.
60107         * tests/unicase/test-u32-casefold.c: New file.
60109         Tests for module 'unicase/u16-casefold'.
60110         * modules/unicase/u16-casefold-tests: New file.
60111         * tests/unicase/test-u16-casefold.c: New file.
60113         Tests for module 'unicase/u8-casefold'.
60114         * modules/unicase/u8-casefold-tests: New file.
60115         * tests/unicase/test-u8-casefold.c: New file.
60117         New module 'unicase/u32-casefold'.
60118         * lib/unicase/u32-casefold.c: New file.
60119         * modules/unicase/u32-casefold: New file.
60121         New module 'unicase/u16-casefold'.
60122         * lib/unicase/u16-casefold.c: New file.
60123         * modules/unicase/u16-casefold: New file.
60125         New module 'unicase/u8-casefold'.
60126         * lib/unicase/u8-casefold.c: New file.
60127         * lib/unicase/u-casefold.h: New file.
60128         * modules/unicase/u8-casefold: New file.
60130         New module 'unicase/tocasefold'.
60131         * lib/unicase/casefold.h: New file.
60132         * lib/unicase/tocasefold.c: New file.
60133         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
60134         * modules/unicase/tocasefold: New file.
60136         Tests for module 'unicase/u32-totitle'.
60137         * modules/unicase/u32-totitle-tests: New file.
60138         * tests/unicase/test-u32-totitle.c: New file.
60140         Tests for module 'unicase/u16-totitle'.
60141         * modules/unicase/u16-totitle-tests: New file.
60142         * tests/unicase/test-u16-totitle.c: New file.
60144         Tests for module 'unicase/u8-totitle'.
60145         * modules/unicase/u8-totitle-tests: New file.
60146         * tests/unicase/test-u8-totitle.c: New file.
60148         New module 'unicase/u32-totitle'.
60149         * lib/unicase/u32-totitle.c: New file.
60150         * modules/unicase/u32-totitle: New file.
60152         New module 'unicase/u16-totitle'.
60153         * lib/unicase/u16-totitle.c: New file.
60154         * modules/unicase/u16-totitle: New file.
60156         New module 'unicase/u8-totitle'.
60157         * lib/unicase/u8-totitle.c: New file.
60158         * lib/unicase/u-totitle.h: New file.
60159         * modules/unicase/u8-totitle: New file.
60161         Tests for module 'unicase/u32-tolower'.
60162         * modules/unicase/u32-tolower-tests: New file.
60163         * tests/unicase/test-u32-tolower.c: New file.
60165         Tests for module 'unicase/u16-tolower'.
60166         * modules/unicase/u16-tolower-tests: New file.
60167         * tests/unicase/test-u16-tolower.c: New file.
60169         Tests for module 'unicase/u8-tolower'.
60170         * modules/unicase/u8-tolower-tests: New file.
60171         * tests/unicase/test-u8-tolower.c: New file.
60173         New module 'unicase/u32-tolower'.
60174         * lib/unicase/u32-tolower.c: New file.
60175         * modules/unicase/u32-tolower: New file.
60177         New module 'unicase/u16-tolower'.
60178         * lib/unicase/u16-tolower.c: New file.
60179         * modules/unicase/u16-tolower: New file.
60181         New module 'unicase/u8-tolower'.
60182         * lib/unicase/u8-tolower.c: New file.
60183         * modules/unicase/u8-tolower: New file.
60185         Tests for module 'unicase/u32-toupper'.
60186         * modules/unicase/u32-toupper-tests: New file.
60187         * tests/unicase/test-u32-toupper.c: New file.
60189         Tests for module 'unicase/u16-toupper'.
60190         * modules/unicase/u16-toupper-tests: New file.
60191         * tests/unicase/test-u16-toupper.c: New file.
60193         Tests for module 'unicase/u8-toupper'.
60194         * modules/unicase/u8-toupper-tests: New file.
60195         * tests/unicase/test-u8-toupper.c: New file.
60197         New module 'unicase/u32-toupper'.
60198         * lib/unicase/u32-toupper.c: New file.
60199         * modules/unicase/u32-toupper: New file.
60201         New module 'unicase/u16-toupper'.
60202         * lib/unicase/u16-toupper.c: New file.
60203         * modules/unicase/u16-toupper: New file.
60205         New module 'unicase/u8-toupper'.
60206         * lib/unicase/u8-toupper.c: New file.
60207         * modules/unicase/u8-toupper: New file.
60209         New module 'unicase/u32-casemap'.
60210         * lib/unicase/u32-casemap.c: New file.
60211         * modules/unicase/u32-casemap: New file.
60213         New module 'unicase/u16-casemap'.
60214         * lib/unicase/u16-casemap.c: New file.
60215         * modules/unicase/u16-casemap: New file.
60217         New module 'unicase/u8-casemap'.
60218         * lib/unicase/unicasemap.h: New file.
60219         * lib/unicase/u8-casemap.c: New file.
60220         * lib/unicase/u-casemap.h: New file.
60221         * modules/unicase/u8-casemap: New file.
60223         New module 'unicase/special-casing'.
60224         * lib/unicase/special-casing.h: New file.
60225         * lib/unicase/special-casing.c: New file.
60226         * lib/unicase/special-casing-table.gperf: New file, generated by
60227         gen-uni-tables.c.
60228         * modules/unicase/special-casing: New file.
60230         Tests for module 'unicase/locale-language'.
60231         * modules/unicase/locale-language-tests: New file.
60232         * tests/unicase/test-locale-language.sh: New file.
60233         * tests/unicase/test-locale-language.c: New file.
60235         New module 'unicase/locale-language'.
60236         * lib/unicase/locale-language.c: New file.
60237         * lib/unicase/locale-languages.gperf: New file.
60238         * modules/unicase/locale-language: New file.
60240         Generate more tables for case conversion and case folding.
60241         * lib/gen-uni-tables.c (SCC_*): New enum items.
60242         (struct special_casing_rule): New type.
60243         (casing_rules, num_casing_rules, allocated_casing_rules): New
60244         variables.
60245         (add_casing_rule, fill_casing_rules): New functions.
60246         (struct casefold_rule): New type.
60247         (casefolding_rules, num_casefolding_rules,
60248         allocated_casefolding_rules): New variables.
60249         (fill_casefolding_rules): New function.
60250         (unicode_casefold): New variable.
60251         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
60252         sort_casing_rules, output_casing_rules): New functions.
60253         (main): Accept to more arguments: SpecialCasing.txt and
60254         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
60255         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
60256         Output mapping for casefolding.
60258         * lib/unicase.h: Include stdbool.h, uninorm.h.
60259         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
60260         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
60261         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
60262         arguments.
60263         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
60264         resultp arguments.
60265         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
60266         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
60267         resultp arguments.
60268         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
60269         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
60270         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
60271         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
60272         declarations.
60273         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
60275 2009-03-08  Bruno Haible  <bruno@clisp.org>
60277         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
60278         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
60279         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
60280         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
60282 2009-03-07  Bruno Haible  <bruno@clisp.org>
60284         Adjust u*_normcmp, u*_normcoll API.
60285         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
60286         u16_normcoll, u32_normcoll): Change failure conventions.
60287         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
60288         errno and return -1.
60289         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
60291 2009-03-07  Bruno Haible  <bruno@clisp.org>
60293         Tests for module 'uninorm/u32-normcoll'.
60294         * modules/uninorm/u32-normcoll-tests: New file.
60295         * tests/uninorm/test-u32-normcoll.c: New file.
60297         Tests for module 'uninorm/u16-normcoll'.
60298         * modules/uninorm/u16-normcoll-tests: New file.
60299         * tests/uninorm/test-u16-normcoll.c: New file.
60301         Tests for module 'uninorm/u8-normcoll'.
60302         * modules/uninorm/u8-normcoll-tests: New file.
60303         * tests/uninorm/test-u8-normcoll.c: New file.
60305 2009-03-07  Bruno Haible  <bruno@clisp.org>
60307         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
60308         tests/uninorm/test-u32-normcmp.c.
60309         * tests/uninorm/test-u32-normcmp.c: Include it.
60310         (test_nonascii): New function, extracted from main. Add some more
60311         tests.
60312         (main): Invoke test_ascii and test_nonascii.
60313         * modules/uninorm/u32-normcmp-tests (Files): Add
60314         tests/uninorm/test-u32-normcmp.h.
60315         (Depends-on): Remove uninorm/u32-normcmp.
60317         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
60318         tests/uninorm/test-u16-normcmp.c.
60319         * tests/uninorm/test-u16-normcmp.c: Include it.
60320         (test_nonascii): New function, extracted from main. Add some more
60321         tests.
60322         (main): Invoke test_ascii and test_nonascii.
60323         * modules/uninorm/u16-normcmp-tests (Files): Add
60324         tests/uninorm/test-u16-normcmp.h.
60325         (Depends-on): Remove uninorm/u16-normcmp.
60327         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
60328         tests/uninorm/test-u8-normcmp.c.
60329         * tests/uninorm/test-u8-normcmp.c: Include it.
60330         (test_nonascii): New function, extracted from main. Add some more
60331         tests.
60332         (main): Invoke test_ascii and test_nonascii.
60333         * modules/uninorm/u8-normcmp-tests (Files): Add
60334         tests/uninorm/test-u8-normcmp.h.
60335         (Depends-on): Remove uninorm/u8-normcmp.
60337 2009-03-07  Bruno Haible  <bruno@clisp.org>
60339         New module 'uninorm/u32-normcoll'.
60340         * lib/uninorm/u32-normcoll.c: New file.
60341         * modules/uninorm/u32-normcoll: New file.
60343         New module 'uninorm/u16-normcoll'.
60344         * lib/uninorm/u16-normcoll.c: New file.
60345         * modules/uninorm/u16-normcoll: New file.
60347         New module 'uninorm/u8-normcoll'.
60348         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
60349         declarations.
60350         * lib/uninorm/u8-normcoll.c: New file.
60351         * lib/uninorm/u-normcoll.h: New file.
60352         * modules/uninorm/u8-normcoll: New file.
60354         New module 'uninorm/u32-normxfrm'.
60355         * lib/uninorm/u32-normxfrm.c: New file.
60356         * modules/uninorm/u32-normxfrm: New file.
60358         New module 'uninorm/u16-normxfrm'.
60359         * lib/uninorm/u16-normxfrm.c: New file.
60360         * modules/uninorm/u16-normxfrm: New file.
60362         New module 'uninorm/u8-normxfrm'.
60363         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
60364         declarations.
60365         * lib/uninorm/u8-normxfrm.c: New file.
60366         * lib/uninorm/u-normxfrm.h: New file.
60367         * modules/uninorm/u8-normxfrm: New file.
60369 2009-03-07  Bruno Haible  <bruno@clisp.org>
60371         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
60372         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
60373         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
60375 2009-03-07  Bruno Haible  <bruno@clisp.org>
60377         New module 'memxfrm'.
60378         * lib/memxfrm.h: New file.
60379         * lib/memxfrm.c: New file.
60380         * modules/memxfrm: New file.
60382 2009-03-07  Bruno Haible  <bruno@clisp.org>
60384         New module 'memcmp2'.
60385         * lib/memcmp2.h: New file.
60386         * lib/memcmp2.c: New file.
60387         * modules/memcmp2: New file.
60389 2009-03-07  Bruno Haible  <bruno@clisp.org>
60391         Tests for module 'uninorm/decomposing-form'.
60392         * modules/uninorm/decomposing-form-tests: New file.
60393         * tests/uninorm/test-decomposing-form.c: New file.
60395         New module 'uninorm/decomposing-form'.
60396         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
60397         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
60398         Add 'decomposing_variant' field.
60399         * lib/uninorm/decomposing-form.c: New file.
60400         * lib/uninorm/nfc.c (uninorm_nfc): Update.
60401         * lib/uninorm/nfd.c (uninorm_nfd): Update.
60402         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
60403         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
60404         * modules/uninorm/decomposing-form: New file.
60405         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
60406         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
60408 2009-03-07  Bruno Haible  <bruno@clisp.org>
60410         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
60411         strings.
60413 2009-03-06  Bruno Haible  <bruno@clisp.org>
60415         Tests for module 'uninorm/u32-normcmp'.
60416         * tests/uninorm/test-u32-normcmp.c: New file.
60417         * modules/uninorm/u32-normcmp-tests: New file.
60419         Tests for module 'uninorm/u16-normcmp'.
60420         * tests/uninorm/test-u16-normcmp.c: New file.
60421         * modules/uninorm/u16-normcmp-tests: New file.
60423         Tests for module 'uninorm/u8-normcmp'.
60424         * tests/uninorm/test-u8-normcmp.c: New file.
60425         * modules/uninorm/u8-normcmp-tests: New file.
60427         New module 'uninorm/u32-normcmp'.
60428         * lib/uninorm/u32-normcmp.c: New file.
60429         * modules/uninorm/u32-normcmp: New file.
60431         New module 'uninorm/u16-normcmp'.
60432         * lib/uninorm/u16-normcmp.c: New file.
60433         * modules/uninorm/u16-normcmp: New file.
60435         New module 'uninorm/u8-normcmp'.
60436         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
60437         declarations.
60438         * lib/uninorm/u8-normcmp.c: New file.
60439         * lib/uninorm/u-normcmp.h: New file.
60440         * modules/uninorm/u8-normcmp: New file.
60442 2009-03-06  Bruno Haible  <bruno@clisp.org>
60444         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
60445         Reported by Eric Blake.
60447 2009-03-06  Eric Blake  <ebb9@byu.net>
60448             Bruno Haible  <bruno@clisp.org>
60450         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
60451         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
60452         condition.
60453         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
60454         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
60455         condition.
60456         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
60458 2009-03-06  Eric Blake  <ebb9@byu.net>
60460         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
60461         to avoid compiler warnings.
60462         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
60464 2009-03-05  Bruno Haible  <bruno@clisp.org>
60466         * tests/test-ftell.c (main): Disable test beyond end of file on
60467         FreeMiNT.
60468         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
60470 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
60472         * lib/filevercmp.c: Move hidden files up in ordering.
60473         * tests/test-filevercmp.c: Add tests for hidden files.
60475 2009-03-04  Bruno Haible  <bruno@clisp.org>
60477         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
60478         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
60479         AM_CFLAGS.
60480         Reported by Simon Josefsson.
60482 2009-03-03  Bruno Haible  <bruno@clisp.org>
60484         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
60485         Reported by Simon Josefsson.
60487         * doc/ld-version-script.texi: Update node reference.
60489 2009-03-03  Bruno Haible  <bruno@clisp.org>
60491         * modules/visibility (License): Change to 'unlimited'.
60492         Suggested by Simon Josefsson.
60494 2009-03-03  Jim Meyering  <meyering@redhat.com>
60496         unlinkdir: cannot_unlink_dir may modify process state
60497         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
60498         it's neither thread-safe nor appropriate for use in a library.
60500 2009-03-03  Eric Blake  <ebb9@byu.net>
60502         test-closein: silence test under Darwin
60503         * tests/test-closein.sh: Ignore stderr from cat, since we don't
60504         care if it dies from EPIPE or EBADF.
60506 2009-03-03  Bruno Haible  <bruno@clisp.org>
60508         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
60509         earlier.
60510         * doc/visibility.texi: Fix @node and @section.
60512 2009-03-03  Simon Josefsson  <simon@josefsson.org>
60514         * doc/gnulib.texi: Link to sections for ld version script and
60515         visibility.
60516         * doc/visibility.texi: Add @node and @section.
60517         * modules/ld-version-script: New module.
60518         * m4/ld-version-script.m4: New file.
60519         * doc/ld-version-script.texi: New file.
60521 2009-03-02  David Lutterkort  <lutter@redhat.com>
60523         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
60524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60526 2009-03-02  Bruno Haible  <bruno@clisp.org>
60528         * doc/visibility.texi: Mention libtool's -export-symbols option.
60530 2009-03-02  Jim Meyering  <meyering@redhat.com>
60532         announce-gen: new option: --no-print-checksums
60533         * build-aux/announce-gen (usage): Describe it.
60534         (print_checksums): Print a newline here, not in the [*] footnote.
60535         (main): Honor it.
60537 2009-03-01  Bruno Haible  <bruno@clisp.org>
60539         Use socklen_t in the native Windows replacements prototypes.
60540         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
60541         instead of 'int'.
60542         * lib/getsockopt.c (rpl_getsockopt): Likewise.
60543         * lib/setsockopt.c (rpl_setsockopt): Likewise.
60544         * modules/getsockopt (Depends-on): Add socklen.
60545         * modules/setsockopt (Depends-on): Add socklen.
60547 2009-03-01  Bruno Haible  <bruno@clisp.org>
60549         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
60550         least 4.2.
60552 2009-03-01  Eric Blake  <ebb9@byu.net>
60553             Bruno Haible  <bruno@clisp.org>
60555         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
60556         error messages.
60557         * lib/wait-process.c (wait_subprocess): Omit error message about
60558         deadly signal sent to the child of termsigp != NULL.
60560 2009-03-01  Eric Blake  <ebb9@byu.net>
60562         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
60564 2009-03-01  Bruno Haible  <bruno@clisp.org>
60566         Avoid a gcc warning.
60567         * tests/test-sched.c (b): Make global.
60568         Reported by Eric Blake.
60570 2009-01-19  Martin Lambers  <marlam@marlam.de>
60572         Provide POSIX semantics for socket timeout options on W32.
60573         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
60574         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
60575         * modules/setsockopt: Depend on sys_time module for struct timeval.
60576         * modules/getsockopt: Depend on sys_time module for struct timeval.
60578 2009-03-01  Simon Josefsson  <simon@josefsson.org>
60580         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
60581         __USE_GNU, for consistency with netdb.in.h.
60582         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60584 2009-03-01  Bruno Haible  <bruno@clisp.org>
60586         More support for FreeMiNT.
60587         * lib/fseeko.c (rpl_fseeko): Complete last commit.
60588         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60590 2009-03-01  Bruno Haible  <bruno@clisp.org>
60592         More support for FreeMiNT.
60593         * lib/fpurge.c (fpurge): Correct last commit.
60594         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60596 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60598         Fix unportable awk script in vc-list-files.
60599         * build-aux/vc-list-files: In the replacement awk script, use
60600         substr with a second argument of 1, not zero.
60601         Report by Simon Josefsson.
60603 2009-02-28  Bruno Haible  <bruno@clisp.org>
60605         More support for FreeMiNT.
60606         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
60607         to FreeMiNT today.
60608         * lib/fwriting.c (fwriting): Likewise.
60609         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
60611 2009-02-28  Bruno Haible  <bruno@clisp.org>
60613         * tests/test-freadseek.c (main): Disable test beyond end of file on
60614         FreeMiNT.
60615         * tests/test-ftello.c (main): Likewise.
60616         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
60618 2009-02-28  Bruno Haible  <bruno@clisp.org>
60620         Add tentative support for FreeMiNT.
60621         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
60622         * lib/fpurge.c (fpurge): Likewise.
60623         * lib/freadable.c (freadable): Likewise.
60624         * lib/freading.c (freading): Likewise.
60625         * lib/freadptr.c (freadptr): Likewise.
60626         * lib/freadseek.c (freadptrinc): Likewise.
60627         * lib/fseeko.c (rpl_fseeko): Likewise.
60628         * lib/fseterr.c (fseterr): Likewise.
60629         * lib/fwritable.c (fwritable): Likewise.
60630         * lib/fwriting.c (fwriting): Likewise.
60631         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
60632         Hourihane.
60633         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60635 2009-02-28  Bruno Haible  <bruno@clisp.org>
60637         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
60638         SIGCHLD.
60639         Reported by Jim Meyering.
60641 2009-02-28  Bruno Haible  <bruno@clisp.org>
60643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
60644         Mention the results of these tests on various platforms.
60645         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
60646         order.
60647         * doc/posix-functions/printf.texi: Likewise.
60648         * doc/posix-functions/snprintf.texi: Likewise.
60649         * doc/posix-functions/sprintf.texi: Likewise.
60650         * doc/posix-functions/vfprintf.texi: Likewise.
60651         * doc/posix-functions/vprintf.texi: Likewise.
60652         * doc/posix-functions/vsnprintf.texi: Likewise.
60653         * doc/posix-functions/vsprintf.texi: Likewise.
60654         * doc/glibc-functions/obstack_printf.texi: Likewise.
60655         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
60657 2009-02-28  Bruno Haible  <bruno@clisp.org>
60659         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
60660         Reported by Loïc Minier <lool@dooz.org>.
60662 2009-02-27  Bruno Haible  <bruno@clisp.org>
60664         * gnulib-tool (func_import): Make the sed expression used to create the
60665         sed script for updating the .gitignore file POSIX compliant.
60666         Reported by Eric Blake.
60668 2009-02-27  Bruno Haible  <bruno@clisp.org>
60670         * gnulib-tool (sed): Don't alias as "sed --posix".
60671         Reported by Eric Blake.
60673 2009-02-27  Bruno Haible  <bruno@clisp.org>
60675         Avoid test link errors.
60676         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
60677         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
60678         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
60679         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
60680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60682 2009-02-27  Bruno Haible  <bruno@clisp.org>
60684         Avoid spurious "(cached)" in configure output.
60685         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
60686         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
60687         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60688         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60689         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60690         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
60691         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60692         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
60693         Reported by Eric Blake.
60695 2009-02-27  Eric Blake  <ebb9@byu.net>
60697         printf: fix regression in previous patch
60698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
60700 2009-02-27  Bruno Haible  <bruno@clisp.org>
60702         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
60703         value.
60704         * lib/stdint.in.h: Likewise.
60705         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
60707 2009-02-27  Eric Blake  <ebb9@byu.net>
60709         doc: mention more functions added in cygwin 1.7.0
60710         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
60711         addition.
60712         * doc/posix-functions/open_wmemstream.texi: Likewise.
60713         * doc/posix-functions/wcsnlen.texi: Likewise.
60714         * doc/posix-functions/wcsnrtombs.texi: Likewise.
60715         * doc/posix-functions/wcstod.texi: Likewise.
60716         * doc/posix-functions/wcstof.texi: Likewise.
60717         * doc/posix-functions/wcstoimax.texi: Likewise.
60718         * doc/posix-functions/wcstok.texi: Likewise.
60719         * doc/posix-functions/wcstoumax.texi: Likewise.
60721         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
60722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
60723         * doc/posix-functions/fprintf.texi: Update.
60724         * doc/posix-functions/printf.texi: Update.
60725         * doc/posix-functions/snprintf.texi: Update.
60726         * doc/posix-functions/sprintf.texi: Update.
60727         * doc/posix-functions/vfprintf.texi: Update.
60728         * doc/posix-functions/vprintf.texi: Update.
60729         * doc/posix-functions/vsnprintf.texi: Update.
60730         * doc/posix-functions/vsprintf.texi: Update.
60731         * doc/glibc-functions/obstack_printf.texi: Update.
60732         * doc/glibc-functions/obstack_vprintf.texi: Update.
60734 2009-02-26  Eric Blake  <ebb9@byu.net>
60736         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
60737         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
60738         compilation bug by using runtime conversion.
60739         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
60740         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
60741         * modules/ceill-tests (Files): Use nan.h.
60742         * modules/floorl-tests (Files): Likewise.
60743         * modules/frexpl-tests (Files): Likewise.
60744         * modules/isnanl-tests (Files): Likewise.
60745         * modules/ldexpl-tests (Files): Likewise.
60746         * modules/roundl-tests (Files): Likewise.
60747         * modules/truncl-tests (Files): Likewise.
60748         * tests/test-ceill.c (main): Use a working NaN.
60749         * tests/test-floorl.c (main): Likewise.
60750         * tests/test-frexpl.c (main): Likewise.
60751         * tests/test-isnan.c (test_long_double): Likewise.
60752         * tests/test-isnanl.h (main): Likewise.
60753         * tests/test-ldexpl.h (main): Likewise.
60754         * tests/test-roundl.h (main): Likewise.
60755         * tests/test-truncl.h (main): Likewise.
60756         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
60758 2009-02-26  Eric Blake  <ebb9@byu.net>
60759             Bruno Haible  <bruno@clisp.org>
60761         Work around a *printf bug with %ls on Solaris.
60762         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
60763         precision is specified, sprintf stops converting the wide string
60764         argument when the number of bytes that have been produced by this
60765         conversion equals or exceeds the precision.
60766         * doc/posix-functions/fprintf.texi: Update.
60767         * doc/posix-functions/printf.texi: Update.
60768         * doc/posix-functions/snprintf.texi: Update.
60769         * doc/posix-functions/sprintf.texi: Update.
60770         * doc/posix-functions/vfprintf.texi: Update.
60771         * doc/posix-functions/vprintf.texi: Update.
60772         * doc/posix-functions/vsnprintf.texi: Update.
60773         * doc/posix-functions/vsprintf.texi: Update.
60774         * doc/glibc-functions/obstack_printf.texi: Update.
60775         * doc/glibc-functions/obstack_vprintf.texi: Update.
60777 2009-02-26  Eric Blake  <ebb9@byu.net>
60779         stdlib: favor compiler check of random.h
60780         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
60781         to avoid an ObjC random.h installed by Swarm.
60783 2009-02-26  Bruno Haible  <bruno@clisp.org>
60785         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
60786         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
60787         Reported by Gary V. Vaughan <gary@gnu.org>.
60789 2009-02-26  Bruno Haible  <bruno@clisp.org>
60791         Fix *printf behaviour regarding the %ls directive.
60792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
60793         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
60794         NEED_PRINTF_DIRECTIVE_LS.
60795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
60796         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60798         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
60799         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
60800         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
60801         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
60802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60806         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
60807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60810         * doc/posix-functions/fprintf.texi: Update.
60811         * doc/posix-functions/printf.texi: Update.
60812         * doc/posix-functions/snprintf.texi: Update.
60813         * doc/posix-functions/sprintf.texi: Update.
60814         * doc/posix-functions/vfprintf.texi: Update.
60815         * doc/posix-functions/vprintf.texi: Update.
60816         * doc/posix-functions/vsnprintf.texi: Update.
60817         * doc/posix-functions/vsprintf.texi: Update.
60818         * doc/glibc-functions/obstack_printf.texi: Update.
60819         * doc/glibc-functions/obstack_vprintf.texi: Update.
60820         Reported by Eric Blake.
60822 2009-02-25  Bruno Haible  <bruno@clisp.org>
60824         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
60825         with known value.
60826         Reported by Gary V. Vaughan <gary@gnu.org>.
60828 2009-02-25  Bruno Haible  <bruno@clisp.org>
60830         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
60831         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
60832         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
60833         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
60834         Reported by Gary V. Vaughan <gary@gnu.org>.
60836 2009-02-25  Bruno Haible  <bruno@clisp.org>
60838         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
60839         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
60840         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
60841         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
60842         Reported by Gary V. Vaughan <gary@gnu.org>.
60844 2009-02-25  Eric Blake  <ebb9@byu.net>
60846         tests: skip fseek/ftell tests if ungetc is broken
60847         * m4/ungetc.m4: New file.
60848         * modules/fseek-tests: Split test, so ungetc dependency is
60849         separate from rest of test.
60850         * modules/fseeko-tests: Likewise.
60851         * modules/ftell-tests: Likewise.
60852         * modules/ftello-tests: Likewise.
60853         * tests/test-fseek.c (main): Isolate ungetc dependency.
60854         * tests/test-fseeko.c (main): Likewise.
60855         * tests/test-ftell.c (main): Likewise.
60856         * tests/test-ftello.c (main): Likewise.
60857         * tests/test-fseek2.sh: New file.
60858         * tests/test-fseeko2.sh: Likewise.
60859         * tests/test-ftell2.sh: Likewise.
60860         * tests/test-ftello2.sh: Likewise.
60862 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
60864         test-getaddrinfo: fix usage of skip return code 77
60865         * tests/test-gettaddrinfo.c: Return skip code 77 only
60866         for first occurrence of skip (4x77 is not 77)
60868 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
60870         strtod: avoid C99 decl-after-statement
60871         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
60873 2009-02-24  Eric Blake  <ebb9@byu.net>
60875         strtod: detect HP-UX 11.31 bug
60876         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
60877         Reported by Gary V. Vaughan.
60879 2009-02-23  Bruno Haible  <bruno@clisp.org>
60881         Fix invalid read past end of memory block.
60882         * lib/vasnprintf.c (DCHAR_SET): Define.
60883         (local_wcslen): Define only when needed.
60884         (local_strnlen, local_wcsnlen): New functions.
60885         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
60886         directives that involve a conversion ourselves.
60887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
60888         wcsnlen, mbrtowc, wcrtomb.
60889         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
60890         * tests/test-vasprintf-posix.c (test_function): Likewise.
60891         * tests/test-snprintf-posix.h (test_function): Likewise.
60892         * tests/test-sprintf-posix.h (test_function): Likewise.
60893         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60895 2009-02-22  Bruno Haible  <bruno@clisp.org>
60897         Implement new clarified decomposition of Hangul syllables.
60898         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
60899         of type LTV, return only a pairwise decomposition.
60900         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
60901         Likewise.
60902         * tests/uninorm/test-decomposition.c (main): Updated expected result.
60903         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
60904         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
60906 2009-02-22  Bruno Haible  <bruno@clisp.org>
60908         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
60909         zero-length results and shrink excess allocated memory.
60910         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
60911         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
60912         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
60913         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
60914         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
60915         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
60916         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
60917         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
60918         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
60919         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
60920         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
60921         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
60923 2009-02-21  Bruno Haible  <bruno@clisp.org>
60925         * doc/gnulib.texi: Include safe-alloc.texi earlier.
60926         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
60927         spaces after a period. Put a space between a macro name and its
60928         argument list. Trivial rewordings.
60929         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
60930         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
60931         (main): Return 0 explicitly.
60933 2009-02-21  Bruno Haible  <bruno@clisp.org>
60935         Tests for module 'uninorm/filter'.
60936         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
60937         * modules/uninorm/filter-tests: New file.
60939         New module 'uninorm/filter'.
60940         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
60941         uninorm_filter_flush, uninorm_filter_free): New declarations.
60942         * lib/uninorm/uninorm-filter.c: New file.
60943         * modules/uninorm/filter: New file.
60945 2009-02-21  Bruno Haible  <bruno@clisp.org>
60947         Tests for module 'uninorm/nfkc'.
60948         * tests/uninorm/test-nfkc.c: New file.
60949         * tests/uninorm/test-u8-nfkc.c: New file.
60950         * tests/uninorm/test-u16-nfkc.c: New file.
60951         * tests/uninorm/test-u32-nfkc.c: New file.
60952         * tests/uninorm/test-u32-nfkc-big.sh: New file.
60953         * tests/uninorm/test-u32-nfkc-big.c: New file.
60954         * modules/uninorm/nfkc-tests: New file.
60956         New module 'uninorm/nfkc'.
60957         * lib/uninorm/nfkc.c: New file.
60958         * modules/uninorm/nfkc: New file.
60960         Tests for module 'uninorm/nfkd'.
60961         * tests/uninorm/test-nfkd.c: New file.
60962         * tests/uninorm/test-u8-nfkd.c: New file.
60963         * tests/uninorm/test-u16-nfkd.c: New file.
60964         * tests/uninorm/test-u32-nfkd.c: New file.
60965         * tests/uninorm/test-u32-nfkd-big.sh: New file.
60966         * tests/uninorm/test-u32-nfkd-big.c: New file.
60967         * modules/uninorm/nfkd-tests: New file.
60969         New module 'uninorm/nfkd'.
60970         * lib/uninorm/nfkd.c: New file.
60971         * modules/uninorm/nfkd: New file.
60973         Tests for module 'uninorm/nfc'.
60974         * tests/uninorm/test-nfc.c: New file.
60975         * tests/uninorm/test-u8-nfc.c: New file.
60976         * tests/uninorm/test-u16-nfc.c: New file.
60977         * tests/uninorm/test-u32-nfc.c: New file.
60978         * tests/uninorm/test-u32-nfc-big.sh: New file.
60979         * tests/uninorm/test-u32-nfc-big.c: New file.
60980         * modules/uninorm/nfc-tests: New file.
60982         New module 'uninorm/nfc'.
60983         * lib/uninorm/nfc.c: New file.
60984         * modules/uninorm/nfc: New file.
60986         Tests for module 'uninorm/nfd'.
60987         * tests/uninorm/test-nfd.c: New file.
60988         * tests/uninorm/test-u8-nfd.c: New file.
60989         * tests/uninorm/test-u16-nfd.c: New file.
60990         * tests/uninorm/test-u32-nfd.c: New file.
60991         * tests/uninorm/test-u32-nfd-big.sh: New file.
60992         * tests/uninorm/test-u32-nfd-big.c: New file.
60993         * tests/uninorm/test-u32-normalize-big.h: New file.
60994         * tests/uninorm/test-u32-normalize-big.c: New file.
60995         * tests/uninorm/NormalizationTest.txt: New file, created from
60996         Unicode 5.1.0 NormalizationTest.txt.
60997         * modules/uninorm/nfd-tests: New file.
60999         New module 'uninorm/nfd'.
61000         * lib/uninorm/nfd.c: New file.
61001         * modules/uninorm/nfd: New file.
61003         New module 'uninorm/u32-normalize'.
61004         * lib/uninorm/u32-normalize.c: New file.
61005         * modules/uninorm/u32-normalize: New file.
61007         New module 'uninorm/u16-normalize'.
61008         * lib/uninorm/u16-normalize.c: New file.
61009         * modules/uninorm/u16-normalize: New file.
61011         New module 'uninorm/u8-normalize'.
61012         * lib/uninorm/u8-normalize.c: New file.
61013         * lib/uninorm/normalize-internal.h: New file.
61014         * lib/uninorm/u-normalize-internal.h: New file.
61015         * modules/uninorm/u8-normalize: New file.
61017         New module 'uninorm/decompose-internal'.
61018         * lib/uninorm/decompose-internal.c: New file.
61019         * modules/uninorm/decompose-internal: New file.
61021         Tests for module 'uninorm/composition'.
61022         * tests/uninorm/test-composition.c: New file.
61023         * modules/uninorm/composition-tests: New file.
61025         New module 'uninorm/composition'.
61026         * lib/uninorm/composition.c: New file.
61027         * lib/uninorm/composition-table.gperf: New file, generated by
61028         gen-uni-tables.
61029         * modules/uninorm/composition: New file.
61031         Tests for module 'uninorm/compat-decomposition'.
61032         * tests/uninorm/test-compat-decomposition.c: New file.
61033         * modules/uninorm/compat-decomposition-tests: New file.
61035         New module 'uninorm/compat-decomposition'.
61036         * lib/uninorm/decompose-internal.h: New file.
61037         * lib/uninorm/compat-decomposition.c: New file.
61038         * modules/uninorm/compat-decomposition: New file.
61040         Tests for module 'uninorm/canonical-decomposition'.
61041         * tests/uninorm/test-canonical-decomposition.c: New file.
61042         * modules/uninorm/canonical-decomposition-tests: New file.
61044         New module 'uninorm/canonical-decomposition'.
61045         * lib/uninorm/canonical-decomposition.c: New file.
61046         * modules/uninorm/canonical-decomposition: New file.
61048         Tests for module 'uninorm/decomposition'.
61049         * tests/uninorm/test-decomposition.c: New file.
61050         * modules/uninorm/decomposition-tests: New file.
61052         New module 'uninorm/decomposition'.
61053         * lib/uninorm/decomposition.c: New file.
61054         * modules/uninorm/decomposition: New file.
61056         New module 'uninorm/decomposition-table'.
61057         * lib/uninorm/decomposition-table.h: New file.
61058         * lib/uninorm/decomposition-table.c: New file.
61059         * lib/uninorm/decomposition-table1.h: New file, generated by
61060         gen-uni-tables.
61061         * lib/uninorm/decomposition-table2.h: New file, generated by
61062         gen-uni-tables.
61063         * modules/uninorm/decomposition-table: New file.
61065         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
61066         (UC_DECOMP_*): New enumeration items.
61067         (get_decomposition): New function.
61068         (struct decomp_table): New type.
61069         (output_decomposition, output_decomposition_tables): New functions.
61070         (unicode_composition_exclusions): New variable.
61071         (fill_composition_exclusions, debug_output_composition_tables): New
61072         functions.
61073         (main): Accept one more argument. Invoke fill_composition_exclusions.
61074         Output decomposition and composition tables.
61076         New module 'uninorm/base'.
61077         * lib/uninorm.h: New file.
61078         * lib/unictype.h: Update comment.
61079         * modules/uninorm/base: New file.
61081 2009-02-21  David Lutterkort  <lutter@redhat.com>
61083         Tests for module 'safe-alloc'.
61084         * tests/test-safe-alloc.c: New file.
61085         * modules/safe-alloc-tests: New file.
61087         New module 'safe-alloc'.
61088         * lib/safe-alloc.h: New file.
61089         * lib/safe-alloc.c: New file.
61090         * m4/safe-alloc.m4: New file.
61091         * modules/safe-alloc: New file.
61092         * doc/safe-alloc.texi: New file.
61093         * doc/gnulib.texi: Include it.
61094         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61095         safe-alloc.
61097 2009-02-18  Bruno Haible  <bruno@clisp.org>
61099         Fix link error on non-glibc systems.
61100         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
61101         variable.
61102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61104 2009-02-18  Jim Meyering  <meyering@redhat.com>
61106         fts: avoid used-uninitialized error due to recent change
61107         * lib/fts.c (fts_read): Guard uses of the new member,
61108         parent->fts_n_dirs_remaining, since it's not relevant for
61109         the parent of a directory specified on the command-line.
61111 2009-02-17  James Youngman  <jay@gnu.org>
61112             Bruno Haible  <bruno@clisp.org>
61114         * m4/include_next.m4: Reformulate comment.
61116 2009-02-16  Jim Meyering  <meyering@redhat.com>
61118         fts: add #if guards so that the fts_lgpl module still builds
61119         * lib/fts.c: Guard just-added hash-table-using parts with
61120         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
61121         Reported by Simon Josefsson.
61123 2009-02-15  Bruno Haible  <bruno@clisp.org>
61125         * modules/array-mergesort-tests: New file.
61126         * tests/test-array-mergesort.c: New file.
61128         New module 'array-mergesort'.
61129         * modules/array-mergesort: New file.
61130         * lib/array-mergesort.h: New file.
61132 2009-02-15  Bruno Haible  <bruno@clisp.org>
61134         Fix 2009-02-07 commit.
61135         * lib/gen-uni-tables.c (output_predicate, output_category,
61136         output_combclass, output_bidi_category, output_decimal_digit,
61137         output_digit, output_numeric, output_mirror, output_scripts,
61138         output_ident_category, output_simple_mapping): Fix format directives.
61139         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
61141 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
61143         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
61144         fixes are available from IBM.
61146 2009-02-13  Jim Meyering  <meyering@redhat.com>
61148         fts: arrange not to stat non-directories in more cases
61149         This makes GNU find (when it doesn't need to stat each file)
61150         *much* more efficient at traversing reiserfs file systems.
61151         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
61152         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
61153         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
61154         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
61155         (leaf_optimization_applies): New function.
61156         (LCO_hash, LCO_compare): New helper functions.
61157         (link_count_optimize_ok): New function.
61158         (fts_stat): Initialize new member (if dir).
61159         (fts_read): Decrement parent's fts_n_dirs_remaining count if
61160         we've just stat'ed a directory.  Skip the stat call when possible.
61161         ---
61162         Note this AFS-related exchange:
61163         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
61164         and note find's pioctl call in find/fstype.c.
61165         But that is necessary only if you want to enable the
61166         optimization for AFS, and for now, I don't.
61168         fts: move a function definition "up" (no semantic change)
61169         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
61170         "up" to precede upcoming use of a related function.
61172 2009-02-11  Jim Meyering  <meyering@redhat.com>
61174         fts: correct internal computation of nlinks (optimization-related)
61175         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
61176         whether the current entry is a directory, so don't test it.
61178 2009-02-10  Bruno Haible  <bruno@clisp.org>
61180         Tests for module 'uniwbrk/ulc-wordbreaks'.
61181         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
61182         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
61183         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
61185         Tests for module 'uniwbrk/u32-wordbreaks'.
61186         * modules/uniwbrk/u32-wordbreaks-tests: New file.
61187         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
61189         Tests for module 'uniwbrk/u16-wordbreaks'.
61190         * modules/uniwbrk/u16-wordbreaks-tests: New file.
61191         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
61193         Tests for module 'uniwbrk/u8-wordbreaks'.
61194         * modules/uniwbrk/u8-wordbreaks-tests: New file.
61195         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
61197 2009-02-10  Bruno Haible  <bruno@clisp.org>
61199         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
61200         property.
61201         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
61202         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
61203         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
61205 2009-02-10  Simon Josefsson  <simon@josefsson.org>
61207         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
61208         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
61210 2009-02-10  Bruno Haible  <bruno@clisp.org>
61212         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
61213         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
61214         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
61215         * lib/unilbrk/u8-possible-linebreaks.c: Update.
61216         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
61217         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
61219 2009-02-09  Simon Josefsson  <simon@josefsson.org>
61221         * lib/sockets.h (gl_fd_to_handle): New function.
61223         * tests/test-sockets.c: Call gl_fd_to_handle.
61225 2009-02-09  Bruno Haible  <bruno@clisp.org>
61227         * doc/havelib.texi: Document the conventions on bi-arch systems.
61229 2009-02-08  Bruno Haible  <bruno@clisp.org>
61231         Document the AC_LIB_LINKFLAGS macro.
61232         * doc/havelib.texi: New file, mostly written on 2005-05-24.
61233         * doc/gnulib.texi: Include it.
61235 2009-02-08  Bruno Haible  <bruno@clisp.org>
61237         Fix wrong order of sections, compared to TOC.
61238         * doc/gnulib.texi: Include relocatable-maint.texi after the
61239         "Regular expressions" node, not before.
61241 2009-02-08  Bruno Haible  <bruno@clisp.org>
61243         Tests for module 'unicase/totitle'.
61244         * modules/unicase/totitle-tests: New file.
61246         Tests for module 'unicase/tolower'.
61247         * modules/unicase/tolower-tests: New file.
61249         Tests for module 'unicase/toupper'.
61250         * modules/unicase/toupper-tests: New file.
61251         * tests/unicase/test-mapping-part1.h: New file.
61252         * tests/unicase/test-mapping-part2.h: New file.
61254         New module 'unicase/totitle'.
61255         * modules/unicase/totitle: New file.
61256         * lib/unicase/totitle.c: New file.
61258         New module 'unicase/tolower'.
61259         * modules/unicase/tolower: New file.
61260         * lib/unicase/tolower.c: New file.
61262         New module 'unicase/toupper'.
61263         * modules/unicase/toupper: New file.
61264         * lib/unicase/toupper.c: New file.
61265         * lib/unicase/simple-mapping.h: New file.
61267         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
61268         (mapping_table): New structure.
61269         (output_simple_mapping): New function.
61270         (main): Invoke output_simple_mapping_test and output_simple_mapping.
61271         * modules/gen-uni-tables (Description): Update.
61272         * lib/unicase/toupper.h: New file, automatically generated by
61273         gen-uni-tables.
61274         * lib/unicase/tolower.h: New file, automatically generated by
61275         gen-uni-tables.
61276         * lib/unicase/totitle.h: New file, automatically generated by
61277         gen-uni-tables.
61278         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
61279         gen-uni-tables.
61280         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
61281         gen-uni-tables.
61282         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
61283         gen-uni-tables.
61285         New module 'unicase/base'.
61286         * modules/unicase/base: New file.
61287         * lib/unicase.h: New file.
61289 2009-02-08  Bruno Haible  <bruno@clisp.org>
61291         New module 'uniwbrk/ulc-wordbreaks'.
61292         * modules/uniwbrk/ulc-wordbreaks: New file.
61293         * lib/uniwbrk/ulc-wordbreaks.c: New file.
61295         New module 'uniwbrk/u32-wordbreaks'.
61296         * modules/uniwbrk/u32-wordbreaks: New file.
61297         * lib/uniwbrk/u32-wordbreaks.c: New file.
61299         New module 'uniwbrk/u16-wordbreaks'.
61300         * modules/uniwbrk/u16-wordbreaks: New file.
61301         * lib/uniwbrk/u16-wordbreaks.c: New file.
61303         New module 'uniwbrk/u8-wordbreaks'.
61304         * modules/uniwbrk/u8-wordbreaks: New file.
61305         * lib/uniwbrk/u8-wordbreaks.c: New file.
61306         * lib/uniwbrk/u-wordbreaks.h: New file.
61308         New module 'uniwbrk/table'.
61309         * modules/uniwbrk/table: New file.
61310         * lib/uniwbrk/wbrktable.h: New file.
61311         * lib/uniwbrk/wbrktable.c: New file.
61313         New module 'uniwbrk/wordbreak-property'.
61314         * modules/uniwbrk/wordbreak-property: New file.
61315         * lib/uniwbrk/wordbreak-property.c: New file.
61317         * lib/gen-uni-tables.c (WBP_*): New enum items.
61318         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
61319         (unicode_org_wbp): New variable.
61320         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
61321         New functions.
61322         (wbp_table): New structure.
61323         (output_wbp, output_wbrk_tables): New functions.
61324         (main): Accept additional argument. Invoke fill_org_wbp,
61325         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
61326         output_wbrk_tables.
61327         * modules/gen-uni-tables (Description): Update.
61328         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
61329         gen-uni-tables.
61331         New module 'uniwbrk/base'.
61332         * modules/uniwbrk/base: New file.
61333         * lib/uniwbrk.h: New file.
61335 2009-02-08  Bruno Haible  <bruno@clisp.org>
61337         Update to Unicode 5.1.0.
61338         * lib/gen-uni-tables.c (is_property_alphabetic): Include
61339         U+2185..U+2188.
61340         (is_property_default_ignorable_code_point): Don't include characters
61341         of category Cc or Cs and not-a-characters.
61342         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
61343         U+0D79, U+109E, U+109F, U+A60C.
61344         * lib/unictype/bidi_of.h: Regenerated.
61345         * lib/unictype/blocks.h: Regenerated.
61346         * lib/unictype/categ_C.h: Regenerated.
61347         * lib/unictype/categ_Cf.h: Regenerated.
61348         * lib/unictype/categ_Cn.h: Regenerated.
61349         * lib/unictype/categ_L.h: Regenerated.
61350         * lib/unictype/categ_Ll.h: Regenerated.
61351         * lib/unictype/categ_Lm.h: Regenerated.
61352         * lib/unictype/categ_Lo.h: Regenerated.
61353         * lib/unictype/categ_Lu.h: Regenerated.
61354         * lib/unictype/categ_M.h: Regenerated.
61355         * lib/unictype/categ_Mc.h: Regenerated.
61356         * lib/unictype/categ_Me.h: Regenerated.
61357         * lib/unictype/categ_Mn.h: Regenerated.
61358         * lib/unictype/categ_N.h: Regenerated.
61359         * lib/unictype/categ_Nd.h: Regenerated.
61360         * lib/unictype/categ_Nl.h: Regenerated.
61361         * lib/unictype/categ_No.h: Regenerated.
61362         * lib/unictype/categ_P.h: Regenerated.
61363         * lib/unictype/categ_Pd.h: Regenerated.
61364         * lib/unictype/categ_Pe.h: Regenerated.
61365         * lib/unictype/categ_Pf.h: Regenerated.
61366         * lib/unictype/categ_Pi.h: Regenerated.
61367         * lib/unictype/categ_Po.h: Regenerated.
61368         * lib/unictype/categ_Ps.h: Regenerated.
61369         * lib/unictype/categ_S.h: Regenerated.
61370         * lib/unictype/categ_Sk.h: Regenerated.
61371         * lib/unictype/categ_Sm.h: Regenerated.
61372         * lib/unictype/categ_So.h: Regenerated.
61373         * lib/unictype/categ_of.h: Regenerated.
61374         * lib/unictype/combining.h: Regenerated.
61375         * lib/unictype/ctype_alnum.h: Regenerated.
61376         * lib/unictype/ctype_alpha.h: Regenerated.
61377         * lib/unictype/ctype_graph.h: Regenerated.
61378         * lib/unictype/ctype_lower.h: Regenerated.
61379         * lib/unictype/ctype_print.h: Regenerated.
61380         * lib/unictype/ctype_punct.h: Regenerated.
61381         * lib/unictype/ctype_upper.h: Regenerated.
61382         * lib/unictype/decdigit.h: Regenerated.
61383         * lib/unictype/digit.h: Regenerated.
61384         * lib/unictype/mirror.h: Regenerated.
61385         * lib/unictype/numeric.h: Regenerated.
61386         * lib/unictype/pr_alphabetic.h: Regenerated.
61387         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
61388         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
61389         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
61390         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
61391         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
61392         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
61393         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
61394         * lib/unictype/pr_combining.h: Regenerated.
61395         * lib/unictype/pr_dash.h: Regenerated.
61396         * lib/unictype/pr_decimal_digit.h: Regenerated.
61397         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
61398         * lib/unictype/pr_deprecated.h: Regenerated.
61399         * lib/unictype/pr_diacritic.h: Regenerated.
61400         * lib/unictype/pr_extender.h: Regenerated.
61401         * lib/unictype/pr_format_control.h: Regenerated.
61402         * lib/unictype/pr_grapheme_base.h: Regenerated.
61403         * lib/unictype/pr_grapheme_extend.h: Regenerated.
61404         * lib/unictype/pr_grapheme_link.h: Regenerated.
61405         * lib/unictype/pr_id_continue.h: Regenerated.
61406         * lib/unictype/pr_id_start.h: Regenerated.
61407         * lib/unictype/pr_ideographic.h: Regenerated.
61408         * lib/unictype/pr_ignorable_control.h: Regenerated.
61409         * lib/unictype/pr_lowercase.h: Regenerated.
61410         * lib/unictype/pr_math.h: Regenerated.
61411         * lib/unictype/pr_numeric.h: Regenerated.
61412         * lib/unictype/pr_other_alphabetic.h: Regenerated.
61413         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
61414         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
61415         * lib/unictype/pr_other_id_continue.h: Regenerated.
61416         * lib/unictype/pr_other_lowercase.h: Regenerated.
61417         * lib/unictype/pr_other_math.h: Regenerated.
61418         * lib/unictype/pr_punctuation.h: Regenerated.
61419         * lib/unictype/pr_sentence_terminal.h: Regenerated.
61420         * lib/unictype/pr_soft_dotted.h: Regenerated.
61421         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
61422         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
61423         * lib/unictype/pr_unified_ideograph.h: Regenerated.
61424         * lib/unictype/pr_uppercase.h: Regenerated.
61425         * lib/unictype/pr_xid_continue.h: Regenerated.
61426         * lib/unictype/pr_xid_start.h: Regenerated.
61427         * lib/unictype/pr_zero_width.h: Regenerated.
61428         * lib/unictype/scripts.h: Regenerated.
61429         * lib/unictype/scripts_byname.gperf: Regenerated.
61430         * lib/unictype/sy_java_ident.h: Regenerated.
61431         * lib/unilbrk/lbrkprop1.h: Regenerated.
61432         * lib/unilbrk/lbrkprop2.h: Regenerated.
61433         * tests/unictype/test-categ_C.c: Regenerated.
61434         * tests/unictype/test-categ_Cf.c: Regenerated.
61435         * tests/unictype/test-categ_Cn.c: Regenerated.
61436         * tests/unictype/test-categ_L.c: Regenerated.
61437         * tests/unictype/test-categ_Ll.c: Regenerated.
61438         * tests/unictype/test-categ_Lm.c: Regenerated.
61439         * tests/unictype/test-categ_Lo.c: Regenerated.
61440         * tests/unictype/test-categ_Lu.c: Regenerated.
61441         * tests/unictype/test-categ_M.c: Regenerated.
61442         * tests/unictype/test-categ_Mc.c: Regenerated.
61443         * tests/unictype/test-categ_Me.c: Regenerated.
61444         * tests/unictype/test-categ_Mn.c: Regenerated.
61445         * tests/unictype/test-categ_N.c: Regenerated.
61446         * tests/unictype/test-categ_Nd.c: Regenerated.
61447         * tests/unictype/test-categ_Nl.c: Regenerated.
61448         * tests/unictype/test-categ_No.c: Regenerated.
61449         * tests/unictype/test-categ_P.c: Regenerated.
61450         * tests/unictype/test-categ_Pd.c: Regenerated.
61451         * tests/unictype/test-categ_Pe.c: Regenerated.
61452         * tests/unictype/test-categ_Pf.c: Regenerated.
61453         * tests/unictype/test-categ_Pi.c: Regenerated.
61454         * tests/unictype/test-categ_Po.c: Regenerated.
61455         * tests/unictype/test-categ_Ps.c: Regenerated.
61456         * tests/unictype/test-categ_S.c: Regenerated.
61457         * tests/unictype/test-categ_Sk.c: Regenerated.
61458         * tests/unictype/test-categ_Sm.c: Regenerated.
61459         * tests/unictype/test-categ_So.c: Regenerated.
61460         * tests/unictype/test-ctype_alnum.c: Regenerated.
61461         * tests/unictype/test-ctype_alpha.c: Regenerated.
61462         * tests/unictype/test-ctype_graph.c: Regenerated.
61463         * tests/unictype/test-ctype_lower.c: Regenerated.
61464         * tests/unictype/test-ctype_print.c: Regenerated.
61465         * tests/unictype/test-ctype_punct.c: Regenerated.
61466         * tests/unictype/test-ctype_upper.c: Regenerated.
61467         * tests/unictype/test-decdigit.h: Regenerated.
61468         * tests/unictype/test-digit.h: Regenerated.
61469         * tests/unictype/test-numeric.h: Regenerated.
61470         * tests/unictype/test-pr_alphabetic.c: Regenerated.
61471         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
61472         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
61473         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
61474         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
61475         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
61476         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
61477         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
61478         * tests/unictype/test-pr_combining.c: Regenerated.
61479         * tests/unictype/test-pr_dash.c: Regenerated.
61480         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
61481         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
61482         * tests/unictype/test-pr_deprecated.c: Regenerated.
61483         * tests/unictype/test-pr_diacritic.c: Regenerated.
61484         * tests/unictype/test-pr_extender.c: Regenerated.
61485         * tests/unictype/test-pr_format_control.c: Regenerated.
61486         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
61487         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
61488         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
61489         * tests/unictype/test-pr_id_continue.c: Regenerated.
61490         * tests/unictype/test-pr_id_start.c: Regenerated.
61491         * tests/unictype/test-pr_ideographic.c: Regenerated.
61492         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
61493         * tests/unictype/test-pr_lowercase.c: Regenerated.
61494         * tests/unictype/test-pr_math.c: Regenerated.
61495         * tests/unictype/test-pr_numeric.c: Regenerated.
61496         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
61497         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
61498         Regenerated.
61499         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
61500         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
61501         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
61502         * tests/unictype/test-pr_other_math.c: Regenerated.
61503         * tests/unictype/test-pr_punctuation.c: Regenerated.
61504         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
61505         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
61506         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
61507         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
61508         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
61509         * tests/unictype/test-pr_uppercase.c: Regenerated.
61510         * tests/unictype/test-pr_xid_continue.c: Regenerated.
61511         * tests/unictype/test-pr_xid_start.c: Regenerated.
61512         * tests/unictype/test-pr_zero_width.c: Regenerated.
61514         Update to Unicode 5.1.0.
61515         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
61516         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
61517         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
61518         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
61519         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
61520         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
61521         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
61522         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
61523         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
61524         (nonspacing_table_ind): Update.
61525         * tests/uniwidth/test-uc_width2.sh: Update expected result.
61527         Update to Unicode 5.1.0.
61528         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
61529         code transform.
61530         * lib/uniname/uniname.c (unicode_character_name,
61531         unicode_name_character): Add the range 0x1Fxxx to the code transform.
61532         * lib/uniname/uninames.h: Regenerated.
61533         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
61535 2009-02-07  Bruno Haible  <bruno@clisp.org>
61537         Merge gen-ctype and gen-lbrk into a single program.
61538         * lib/gen-uni-tables.c: New file, incorporating
61539         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
61540         Add directory prefixes to the names of the generated files.
61541         * lib/unictype/gen-ctype.c: Remove file.
61542         * lib/unilbrk/gen-lbrk.c: Remove file.
61543         * modules/gen-uni-tables: New file.
61544         * modules/unictype/gen-ctype: Remove file.
61545         * modules/unilbrk/gen-lbrk: Remove file.
61547 2009-02-07  Bruno Haible  <bruno@clisp.org>
61549         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
61551         New module 'unistr/u32-strcoll'.
61552         * modules/unistr/u32-strcoll: New file.
61553         * lib/unistr/u32-strcoll.c: New file.
61555         New module 'unistr/u16-strcoll'.
61556         * modules/unistr/u16-strcoll: New file.
61557         * lib/unistr/u16-strcoll.c: New file.
61559         New module 'unistr/u8-strcoll'.
61560         * modules/unistr/u8-strcoll: New file.
61561         * lib/unistr/u8-strcoll.c: New file.
61562         * lib/unistr/u-strcoll.h: New file.
61564 2009-02-07  Bruno Haible  <bruno@clisp.org>
61566         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
61567         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
61568         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
61569         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
61570         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
61571         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
61573 2009-02-07  Bruno Haible  <bruno@clisp.org>
61575         Make 64-bit clean.
61576         * lib/unictype/gen-ctype.c (output_predicate, output_category,
61577         output_combclass, output_bidi_category, output_decimal_digit,
61578         output_digit, output_numeric, output_mirror, output_scripts,
61579         output_ident_category): Use proper width specifier in format strings.
61581 2009-02-07  Bruno Haible  <bruno@clisp.org>
61583         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
61584         failure behaviour.
61586 2009-02-07  Jim Meyering  <meyering@redhat.com>
61588         regex: avoid compilation failure with upcoming gcc-4.4
61589         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
61590         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
61591         "... error: integer overflow in preprocessor expression".
61593 2009-02-05  Ben Pfaff  <blp@gnu.org>
61595         Fix link errors on Windows when close module is used.
61596         * modules/close: Add $(LIB_CLOSE) to Link section.
61597         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
61598         $(LIB_CLOSE) on Windows.
61600 2009-02-05  Jim Meyering  <meyering@redhat.com>
61602         still avoid unused-parameter warnings, but do it cleanly
61603         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
61604         (get_fs_usage): Cast to void instead.
61605         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
61606         (dev_from_mount_options, read_file_system_list): Cast to void.
61607         Prompted by Bruno Haible.
61609 2009-02-04  Jim Meyering  <meyering@redhat.com>
61611         fsusage.c: correct copyright year
61612         * lib/fsusage.c: Reflect year in which the change is pushed into
61614         avoid misc. warnings
61615         * lib/fsusage.c (UNUSED_PARAM): Define.
61616         (get_fs_usage): Mark parameter "disk" as unused.
61617         * lib/getugroups.c (getgrent): Use "void" in prototype.
61618         * lib/mountlist.c: Mark unused parameters.
61619         (read_file_system_list): Declare a local with "const".
61620         * lib/nanosleep.c (getnow): Declare static.
61621         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
61623         dirfd: set errno upon failure
61624         * lib/dirfd.c: Include <errno.h>.
61625         Set errno to ENOTSUP when returning -1.
61626         * modules/dirfd (Depends-on): Add errno.
61627         Suggested by John Kodis <kodis@comcast.net>.
61629 2009-02-01  Bruno Haible  <bruno@clisp.org>
61631         Don't assume sizeof (long) >= sizeof (void *).
61632         * lib/memcmp.c: Include stdint.h.
61633         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
61634         srcp2 to 'const byte *'.
61635         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
61636         types to uintptr_t.
61637         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
61638         * modules/memcmp (Depends-on): Add stdint.
61639         Reported by Ozkan Sezer <sezeroz@gmail.com>.
61641 2009-01-30  Eric Blake  <ebb9@byu.net>
61643         fix more require-before-expand issues
61644         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
61645         expand, AC_PROG_AWK.
61646         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
61648 2009-01-28  Eric Blake  <ebb9@byu.net>
61650         version-etc: use consistent URL formatting
61651         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
61652         Improve formatting.  Use fputs for string without %.
61654 2009-01-28  Jim Meyering  <meyering@redhat.com>
61656         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
61657         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
61658         "underquoted definition of NAME" from autoconf-2.59.
61660 2009-01-28  Bruno Haible  <bruno@clisp.org>
61662         * doc/gnulib.texi: Add "Obsolete modules" to index.
61664 2009-01-28  Jim Meyering  <meyering@redhat.com>
61666         useless-if-before-free: recognize more variants
61667         * build-aux/useless-if-before-free: Also recognize e.g.,
61668         if (NULL != p) free (p);
61670 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
61672         test-getaddrinfo: skip (don't fail) this test when there's no network
61673         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
61674         on the presumption that it means you lack network access.
61676 2009-01-26  Jim Meyering  <meyering@redhat.com>
61678         fflush: avoid warnings on modern systems
61679         * lib/fflush.c (rpl_fflush): Move declarations of locals,
61680         pos and result, into scopes where they're used.
61682 2009-01-26  Eric Blake  <ebb9@byu.net>
61684         Silence warning reintroduced by recent extensions patch.
61685         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
61686         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
61687         autoconf.
61689         Backport improved autoconf semantics of AC_DEFUN_ONCE.
61690         * m4/00gnulib.m4: New file.
61691         * gnulib-tool (func_get_filelist): Always use it.
61692         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
61693         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
61695 2009-01-25  Bruno Haible  <bruno@clisp.org>
61697         Make test-quotearg work on MacOS X and AIX.
61698         * tests/test-quotearg.sh: New file.
61699         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
61700         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
61701         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
61702         include <libintl.h>.
61703         (fake_locale): Remove variable.
61704         (gettext, dgettext, dcgettext): Remove functions.
61705         (main): Instead of setting a fake locale, set a real locale. Call
61706         textdomain and bindtextdomain.
61707         * modules/quotearg-tests (Files): Add the new files.
61708         (Depends-on): Add gettext, setenv, unsetenv.
61709         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61710         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
61711         Augment TESTS_ENVIRONMENT.
61713 2009-01-25  Bruno Haible  <bruno@clisp.org>
61715         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
61716         fr_FR.ISO8859-1 locale on MacOS X.
61717         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
61718         ja_JP.eucJP locale on MacOS X.
61719         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
61720         zh_CN.GB18030 locale on MacOS X.
61722 2009-01-25  Bruno Haible  <bruno@clisp.org>
61724         Avoid link errors on MacOS X 10.3.
61725         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
61726         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
61728 2009-01-25  Bruno Haible  <bruno@clisp.org>
61730         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
61731         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
61732         * modules/pipe (Files): Remove m4/posix_spawn.m4.
61733         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
61734         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
61735         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
61736         posix_spawnattr_init, posix_spawnattr_setsigmask,
61737         posix_spawnattr_setflags, posix_spawnattr_destroy.
61739         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
61740         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
61741         * modules/execute (Files): Remove m4/posix_spawn.m4.
61742         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
61743         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
61744         posix_spawnattr_init, posix_spawnattr_setsigmask,
61745         posix_spawnattr_setflags, posix_spawnattr_destroy.
61747 2009-01-25  Bruno Haible  <bruno@clisp.org>
61749         * lib/glthread/threadlib.c: Include <stdlib.h>.
61751 2009-01-25  Bruno Haible  <bruno@clisp.org>
61753         * lib/glthread/threadlib.c (dummy): New declaration.
61755 2009-01-25  Bruno Haible  <bruno@clisp.org>
61757         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
61758         multibyte characters also for the GB18030 encoding. Don't crash when
61759         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
61761 2009-01-25  Bruno Haible  <bruno@clisp.org>
61763         Avoid redefining 'struct random_data' on OSF/1 5.1.
61764         * lib/stdlib.in.h: Include <random.h> if it exists.
61765         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
61766         HAVE_RANDOM_H. Include <random.h> when testing whether
61767         'struct random_data' exists.
61768         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
61770 2009-01-25  Bruno Haible  <bruno@clisp.org>
61772         Don't install charset.alias on MacOS X >= 10.3.
61773         * lib/localcharset.c (DARWIN7): New macro.
61774         (get_charset_aliases): Hardcode the result for Darwin7.
61775         * modules/localcharset (install-exec-local): Don't install
61776         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
61778 2009-01-25  Bruno Haible  <bruno@clisp.org>
61780         Don't install charset.alias on mingw and Cygwin.
61781         * modules/localcharset (install-exec-local): Don't install
61782         charset.alias on mingw and Cygwin, if the file does not yet exist.
61783         The result for these platforms is hardcoded in localcharset.c.
61785 2009-01-25  Bruno Haible  <bruno@clisp.org>
61787         Make it possible again to use AC_GNU_SOURCE together with gnulib.
61788         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
61789         before requiring AC_USE_SYSTEM_EXTENSIONS.
61791 2009-01-25  Jim Meyering  <meyering@redhat.com>
61793         c-strtod: avoid warnings
61794         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
61795         "assignment discards qualifiers from pointer target type" warnings.
61797 2009-01-24  Bruno Haible  <bruno@clisp.org>
61799         Add support for non-UTF-8 locales on MacOS X.
61800         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
61801         canonical encodings. For Darwin 7 and newer, don't map traditional
61802         encodings to UTF-8.
61803         Reported by Vincent Lefevre <vincent@vinc17.org>
61804         at <http://savannah.gnu.org/bugs/?25235>.
61806 2009-01-24  Bruno Haible  <bruno@clisp.org>
61808         * doc/gnulib.texi (Obsolete modules): New section.
61809         Reported by Mike Frysinger <vapier@gentoo.org>.
61811 2009-01-24  Bruno Haible  <bruno@clisp.org>
61813         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
61814         (%.dvi): New rule.
61816 2009-01-24  Bruno Haible  <bruno@clisp.org>
61818         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
61819         Reported by Eric Blake.
61821 2009-01-24  Bruno Haible  <bruno@clisp.org>
61823         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
61824         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
61825         Reported by Gary V. Vaughan <gary@gnu.org>.
61827 2009-01-24  Bruno Haible  <bruno@clisp.org>
61829         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
61831 2009-01-23  Bruno Haible  <bruno@clisp.org>
61833         Make c-strtod, c-strtold usable in libraries.
61834         * lib/c-strtod.c: Include string.h instead of xalloc.h.
61835         (C_STRTOD): Call strdup instead of xstrdup.
61836         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
61837         * modules/c-strtold (Depends-on): Likewise.
61838         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
61839         * NEWS: Mention the change.
61840         Reported by Michael Gold <mgold@ncf.ca>.
61842 2009-01-23  Jim Meyering  <meyering@redhat.com>
61844         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
61845         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
61846         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
61848 2009-01-23  Simon Josefsson  <simon@josefsson.org>
61850         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
61851         GNU CoreUtils.
61852         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
61853         * modules/version-etc (Description): Update.
61855 2009-01-22  Bruno Haible  <bruno@clisp.org>
61857         Cache the C locale object.
61858         * lib/c-strtod.c (c_locale_cache): New variable.
61859         (c_locale): New function.
61860         (C_STRTOD): Use it, and don't call freelocale.
61861         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
61862         Suggested by Paolo Bonzini.
61864 2009-01-21  Bruno Haible  <bruno@clisp.org>
61866         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
61867         conditions other than overflow.
61869 2009-01-21  Bruno Haible  <bruno@clisp.org>
61871         * lib/c-strtod.c: Include errno.h.
61872         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
61873         value from STRTOD_L and STRTOD.
61875 2009-01-21  Bruno Haible  <bruno@clisp.org>
61876         and Jim Meyering  <meyering@redhat.com>
61878         nanosleep: skip configure test (fail it) for apple universal builds
61879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
61880         universal builds, assume that nanosleep does not work.
61881         * modules/nanosleep (Depends-on): Add multiarch.
61883         mktime: skip configure test (fail it) for apple universal builds
61884         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
61885         universal builds, assume that mktime does not work.
61886         * modules/mktime (Depends-on): Add multiarch.
61888 2009-01-21  Eric Blake  <ebb9@byu.net>
61890         multiarch: avoid expand-before-require warning
61891         * modules/multiarch (configure.ac): Require, rather than expand,
61892         gl_MULTIARCH.
61893         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
61894         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
61895         enforce that all clients require it.  Partial reversion of
61896         2008-12-29 patch.
61898         error: avoid expand-before-require warning
61899         * modules/errno (configure.ac): Require, rather than expand,
61900         gl_HEADER_ERRNO_H.
61901         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
61902         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
61903         enforce that all clients require it.
61905         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
61906         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
61907         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
61908         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
61910 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
61912         Revert:
61913         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
61915         regex: do not depend on obsolete modules.
61916         * modules/regex: Remove memcmp and memmove.
61918 2009-01-20  Bruno Haible  <bruno@clisp.org>
61920         Make the 'link' module link on Windows NT 4.
61921         * lib/link.c (_WIN32_WINNT): Don't define.
61922         (CreateHardLinkFuncType): New type.
61923         (CreateHardLinkFunc, initialized): New variables.
61924         (initialize): New function.
61925         (link): Invoke CreateHardLink indirectly through the function pointer.
61927 2009-01-20  Bruno Haible  <bruno@clisp.org>
61929         Fix compilation failure on mingw.
61930         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
61932 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
61934         * doc/c-strtod.texi: Mention a couple of restrictions.
61936 2009-01-20  Jim Meyering  <meyering@redhat.com>
61938         gettimeofday: move more declarations out of functions
61939         * lib/gettimeofday.c: Move extern declarations of tzset and
61940         gmtime out of containing functions.  Prompted by Bruno Haible.
61942 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
61944         regex: do not depend on obsolete modules.
61945         * modules/regex: Remove memcmp and memmove.
61947 2009-01-19  Bruno Haible  <bruno@clisp.org>
61949         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
61950         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
61951         gl_BIGENDIAN, not AC_C_BIGENDIAN.
61952         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
61953         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
61955 2009-01-19  Bruno Haible  <bruno@clisp.org>
61957         * tests/test-link.c: Include <errno.h>.
61958         (main): Exit with code 77 when a hard link cannot be created due to
61959         the file system.
61960         * tests/test-link.sh: Skip test when a hard link cannot be created due
61961         to the file system.
61962         Suggested by Eric Blake.
61964 2009-01-19  Martin Lambers  <marlam@marlam.de>
61966         * modules/link-tests: New file.
61967         * tests/test-link.sh: New file.
61968         * tests/test-link.c: New file.
61970 2009-01-19  Eric Blake  <ebb9@byu.net>
61972         doc: mention another function added in cygwin 1.7.0
61973         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
61974         Another new function in cygwin 1.7.
61976 2009-01-19  Bruno Haible  <bruno@clisp.org>
61978         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
61979         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
61980         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
61981         gl_BIGENDIAN, not AC_C_BIGENDIAN.
61982         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61983         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
61984         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61985         * m4/md4.m4 (gl_MD4): Likewise.
61986         * m4/md5.m4 (gl_MD5): Likewise.
61987         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
61988         * m4/sha1.m4 (gl_SHA1): Likewise.
61989         * m4/sha256.m4 (gl_SHA256): Likewise.
61990         * m4/sha512.m4 (gl_SHA512): Likewise.
61992 2009-01-19  Bruno Haible  <bruno@clisp.org>
61994         * modules/uniname/uniname-tests (Depends-on): Add progname.
61995         * tests/uniname/test-uninames.c: Include progname.h.
61996         (main): Call set_program_name.
61998         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
61999         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
62000         (main): Call set_program_name.
62002         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
62003         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
62004         (main): Call set_program_name.
62006         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
62007         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
62008         (main): Call set_program_name.
62010         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
62011         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
62012         (main): Call set_program_name.
62014         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
62015         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
62016         (main): Call set_program_name.
62018         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
62019         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
62020         (main): Call set_program_name.
62022         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
62023         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
62024         (main): Call set_program_name.
62026         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
62027         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
62028         (main): Call set_program_name.
62030 2009-01-19  Eric Blake  <ebb9@byu.net>
62032         test-unistd: test previous patch
62033         * tests/test-unistd.c: Test *_FILENO macros.
62035         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
62036         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
62037         Guarantee a definition.
62038         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
62039         * modules/unistd-safer (Depends-on): Add dependency on unistd.
62040         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
62041         * lib/dup-safer.c (STDERR_FILENO): Likewise.
62042         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
62043         Likewise.
62044         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
62045         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
62046         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
62047         Likewise.
62048         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
62049         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
62050         (STDERR_FILENO): Likewise.
62051         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
62052         (STDERR_FILENO): Likewise.
62053         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
62054         (STDERR_FILENO): Likewise.
62055         Reported by Elbert Pol.
62057 2009-01-19  Eric Blake  <ebb9@byu.net>
62059         doc: mention more functions added in cygwin 1.7.0
62060         * doc/posix-functions/abort.texi (abort): Update wording related
62061         to cygwin.
62062         * doc/posix-functions/daylight.texi (daylight): Likewise.
62063         * doc/posix-functions/optarg.texi (optarg): Likewise.
62064         * doc/posix-functions/optarg.texi (opterr): Likewise.
62065         * doc/posix-functions/optarg.texi (optind): Likewise.
62066         * doc/posix-functions/optarg.texi (optopt): Likewise.
62067         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
62068         worked in 1.5.x, and was withdrawn in 1.7.
62069         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
62070         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
62071         cygwin versions.
62072         * doc/posix-functions/perror.texi (perror): Likewise.
62073         * doc/posix-functions/printf.texi (printf): Likewise.
62074         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
62075         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
62076         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
62077         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
62078         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62079         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
62080         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
62081         Likewise.
62082         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
62083         Likewise.
62084         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
62085         this function.
62086         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
62087         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
62088         Likewise.
62089         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
62090         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
62091         * doc/posix-functions/confstr.texi (confstr): Likewise.
62092         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
62093         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
62094         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
62095         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
62096         * doc/posix-functions/fputws.texi (fputws): Likewise.
62097         * doc/posix-functions/fwide.texi (fwide): Likewise.
62098         * doc/posix-functions/getwc.texi (getwc): Likewise.
62099         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
62100         * doc/posix-functions/putwc.texi (putwc): Likewise.
62101         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
62102         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
62103         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
62104         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
62105         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
62106         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
62107         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
62108         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
62109         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
62110         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
62111         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
62113 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
62115         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
62116         * lib/ioctl.c: Include <sys/ioctl.h>.
62118 2009-01-19  Simon Josefsson  <simon@josefsson.org>
62120         * modules/getdate-tests (Depends-on): Add progname.
62121         * tests/test-getdate.c: Use progname module, to avoid link errors
62122         on non-glibc systems.
62124 2009-01-18  Simon Josefsson  <simon@josefsson.org>
62126         * modules/filenamecat-tests (Depends-on): Add progname.
62127         * modules/fstrcmp-tests (Depends-on): Likewise.
62129         * tests/test-filenamecat.c: Use progname module, to avoid link
62130         errors on non-glibc systems.
62131         * tests/test-fstrcmp.c: Likewise.
62133 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
62135         gettimeofday: avoid warning: nested extern declaration of 'localtime'
62136         * lib/gettimeofday.c: Move extern declaration out of function.
62138 2009-01-18  Bruno Haible  <bruno@clisp.org>
62140         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
62141         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
62142         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
62144 2009-01-18  Bruno Haible  <bruno@clisp.org>
62146         * lib/strftime.c (MEMPCPY): Remove unused macro.
62147         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
62149 2009-01-18  Martin Lambers  <marlam@marlam.de>
62151         New module 'link'.
62152         * lib/unistd.in.h (link): New declaration.
62153         * lib/link.c: New file.
62154         * m4/link.m4: New file.
62155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
62156         HAVE_LINK.
62157         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
62158         * modules/link: New file.
62159         * doc/posix-functions/link.texi: Mention the new module.
62161 2009-01-18  Bruno Haible  <bruno@clisp.org>
62163         * tests/test-avltree_list.c (main): Call set_program_name.
62164         * tests/test-avltree_oset.c (main): Likewise.
62165         * tests/test-obstack-printf.c: Include progname.h.
62166         (main): Call set_program_name.
62167         * tests/test-quotearg.c: Include progname.h.
62168         (main): Call set_program_name.
62169         * tests/test-xmemdup0.c: Include progname.h.
62170         (main): Call set_program_name.
62172 2009-01-18  Bruno Haible  <bruno@clisp.org>
62174         New module 'alphasort'.
62175         * lib/dirent.in.h (alphasort): New declaration.
62176         * lib/alphasort.c: New file, from glibc with modifications.
62177         * m4/alphasort.m4: New file.
62178         * modules/alphasort: New file.
62179         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
62180         HAVE_ALPHASORT.
62181         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
62182         HAVE_ALPHASORT.
62183         * doc/posix-functions/alphasort.texi: Mention the new module and the
62184         portability problems.
62186 2009-01-18  Bruno Haible  <bruno@clisp.org>
62188         New module 'scandir'.
62189         * lib/dirent.in.h (scandir): New declaration.
62190         * lib/scandir.c: New file, from glibc with modifications.
62191         * m4/scandir.m4: New file.
62192         * modules/scandir: New file.
62193         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
62194         HAVE_SCANDIR.
62195         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
62196         HAVE_SCANDIR.
62197         * doc/posix-functions/scandir.texi: Mention the new module and the
62198         portability problems.
62200 2009-01-17  Bruno Haible  <bruno@clisp.org>
62202         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
62203         Update documentation.
62204         (func_remove_suffix): Escape all dots in the suffix. Update
62205         documentation.
62206         (func_filter_filelist): Update documentation.
62207         Reported by Ralf Wildenhues.
62209 2009-01-17  Bruno Haible  <bruno@clisp.org>
62211         * modules/dprintf-posix-tests: New file.
62212         * tests/test-dprintf-posix.sh: New file.
62213         * tests/test-dprintf-posix.c: New file.
62215         New modules 'dprintf', 'dprintf-posix'.
62216         * lib/stdio.in.h (dprintf): New declaration.
62217         * lib/dprintf.c: New file.
62218         * m4/dprintf.m4: New file.
62219         * m4/dprintf-posix.m4: New file.
62220         * modules/dprintf: New file.
62221         * modules/dprintf-posix: New file.
62222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
62223         HAVE_DPRINTF, REPLACE_DPRINTF.
62224         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
62225         HAVE_DPRINTF, REPLACE_DPRINTF.
62226         * doc/posix-functions/dprintf.texi: Mention the new modules.
62228 2009-01-17  Bruno Haible  <bruno@clisp.org>
62230         * modules/vdprintf-posix-tests: New file.
62231         * tests/test-vdprintf-posix.sh: New file.
62232         * tests/test-vdprintf-posix.c: New file.
62234         New modules 'vdprintf', 'vdprintf-posix'.
62235         * lib/stdio.in.h (vdprintf): New declaration.
62236         * lib/vdprintf.c: New file.
62237         * m4/vdprintf.m4: New file.
62238         * m4/vdprintf-posix.m4: New file.
62239         * modules/vdprintf: New file.
62240         * modules/vdprintf-posix: New file.
62241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
62242         HAVE_VDPRINTF, REPLACE_VDPRINTF.
62243         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
62244         HAVE_VDPRINTF, REPLACE_VDPRINTF.
62245         * doc/posix-functions/vdprintf.texi: Mention the new modules.
62247 2009-01-17  Bruno Haible  <bruno@clisp.org>
62249         Fix replacement of fopen on mingw.
62250         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
62251         mingw.
62253 2009-01-17  Bruno Haible  <bruno@clisp.org>
62255         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
62256         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
62258 2009-01-17  Bruno Haible  <bruno@clisp.org>
62260         Avoid test-fflush2.sh failure on mingw.
62261         * tests/test-fflush2.c: Include binary-io.h.
62262         (main): Put standard input into binary mode.
62263         * modules/fflush-tests (Depends-on): Add binary-io.
62265 2009-01-17  Bruno Haible  <bruno@clisp.org>
62267         * lib/wchar.in.h: In another particular situation, include only the
62268         system's <wchar.h> file.
62269         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
62270         Reported by Albert Chin-A-Young <china@thewrittenword.com>
62271         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
62273 2009-01-17  Bruno Haible  <bruno@clisp.org>
62275         Support for stripping executables in --enable-relocatable.
62276         * build-aux/install-reloc: Expect one more argument, or an environment
62277         variable RELOC_STRIP_PROG. If set, strip the destination program and
62278         its wrapper.
62279         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
62280         RELOC_STRIP_PROG.
62281         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
62282         to set RELOCATABLE_STRIP.
62283         * NEWS: Mention the new Makefile requirement.
62285 2009-01-17  Bruno Haible  <bruno@clisp.org>
62287         * build-aux/install-reloc: Remove debugging information left over by
62288         C compiler on MacOS X.
62290 2009-01-17  Bruno Haible  <bruno@clisp.org>
62292         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
62293         * lib/progreloc.c (find_executable): Fix type of pointer passed to
62294         _NSGetExecutablePath.
62296 2009-01-16  Jim Meyering  <meyering@redhat.com>
62298         strerror: avoid warnings about discarding "const"
62299         * lib/strerror.c (rpl_strerror): Instead of returning a const
62300         string from each and every "case", use a variable, and add a single
62301         cast after the switch.
62303 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
62305         * lib/arpa_inet.in.h: Add extern "C" block for C++.
62307 2009-01-16  Bruno Haible  <bruno@clisp.org>
62309         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
62310         array initializer syntax that also works in C++ mode.
62311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62313 2009-01-16  Jim Meyering  <meyering@redhat.com>
62315         poll: suppress a warning
62316         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
62317         to ignore "...unsigned expression < 0 is always false" warnings.
62319 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
62321         poll: remove declarations of unused variables
62322         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
62323         sockbuf and optlen.
62325 2009-01-15  Bruno Haible  <bruno@clisp.org>
62327         Make fflush-after-ungetc POSIX compliant on BSD systems.
62328         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
62329         (clear_ungetc_buffer): Implement also for other systems.
62330         (rpl_fflush): On glibc systems, invoke
62331         clear_ungetc_buffer_preserving_position. Otherwise, invoke
62332         clear_ungetc_buffer after fetching the stream's position, not before.
62334 2009-01-15  Bruno Haible  <bruno@clisp.org>
62336         Make fflush-after-ungetc POSIX compliant on glibc systems.
62337         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
62338         after ungetc.
62339         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
62340         (rpl_fflush): On glibc systems, simply call the system's fflush
62341         function after clearing the ungetc buffer.
62342         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
62343         Instead, lseek only to the end of file, then use the system's fseeko
62344         for the rest. On glibc systems, reset the EOF indicator bit.
62346 2009-01-15  Jim Meyering  <meyering@redhat.com>
62348         openmp.m4: revert quote-adding change, for portability to older autoconf
62349         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
62350         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
62351         Simon Josefsson noticed the problem when using autoconf-2.61.
62353 2009-01-15  Bruno Haible  <bruno@clisp.org>
62355         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
62356         * tests/test-fflush2.c (ASSERT): Always fail.
62357         (main): Add two tests for fflush() after ungetc(), taking into account
62358         the Austin Group's clarification.
62359         Suggested by Eric Blake.
62361 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
62363         mktime.m4: remove K&R-style function prototypes
62364         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
62365         for the Sun C++ compiler.
62367 2009-01-14  Bruno Haible  <bruno@clisp.org>
62369         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
62370         while including <wchar.h>.
62371         * lib/wchar.in.h: In two particular situations on HP-UX, include only
62372         the system's <wchar.h> file.
62373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62375 2009-01-14  Bruno Haible  <bruno@clisp.org>
62377         * m4/csharp.m4: Don't mention gettext on the serial number line.
62378         * m4/csharpexec.m4: Likewise.
62379         * m4/eaccess.m4: Likewise.
62380         * m4/javaexec.m4: Likewise.
62381         * m4/sig_atomic_t.m4: Likewise.
62382         * m4/tmpdir.m4: Likewise.
62383         * m4/intldir.m4: Bump gettext version.
62384         * m4/lib-ld.m4: Likewise.
62386 2009-01-14  Bruno Haible  <bruno@clisp.org>
62388         * lib/progname.c (set_program_name): Add more comments.
62389         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
62391 2009-01-14  Simon Josefsson  <simon@josefsson.org>
62393         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
62394         were sys/stat.h does not define it.
62396 2009-01-14  Jim Meyering  <meyering@redhat.com>
62398         many *.m4 files: improve m4 quoting
62399         99% of this change was performed by running the following commands:
62400         git ls-files | grep '\.m4$' | xargs perl -pi \
62401           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
62402           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
62403           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
62404           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
62405         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
62406         The remainder were to add Copyright dates, increment serial numbers,
62407         undo some changes in comments, exclude m4/intl.m4, and add quotes
62408         around the "1" in ",1" where the unusual spacing prohibited the
62409         above regexps from doing the job.  For more details, see
62410         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
62411         * m4/acl.m4: Modified.
62412         * m4/afs.m4: Likewise.
62413         * m4/alloca.m4: Likewise.
62414         * m4/argp.m4: Likewise.
62415         * m4/argz.m4: Likewise.
62416         * m4/atexit.m4: Likewise.
62417         * m4/bison-i18n.m4: Likewise.
62418         * m4/bison.m4: Likewise.
62419         * m4/byteswap.m4: Likewise.
62420         * m4/c-stack.m4: Likewise.
62421         * m4/c-strtod.m4: Likewise.
62422         * m4/calloc.m4: Likewise.
62423         * m4/canonicalize-lgpl.m4: Likewise.
62424         * m4/chown.m4: Likewise.
62425         * m4/clock_time.m4: Likewise.
62426         * m4/codeset.m4: Likewise.
62427         * m4/copy-file.m4: Likewise.
62428         * m4/csharp.m4: Likewise.
62429         * m4/csharpcomp.m4: Likewise.
62430         * m4/csharpexec.m4: Likewise.
62431         * m4/d-ino.m4: Likewise.
62432         * m4/d-type.m4: Likewise.
62433         * m4/dirfd.m4: Likewise.
62434         * m4/double-slash-root.m4: Likewise.
62435         * m4/eaccess.m4: Likewise.
62436         * m4/eealloc.m4: Likewise.
62437         * m4/environ.m4: Likewise.
62438         * m4/errno_h.m4: Likewise.
62439         * m4/euidaccess.m4: Likewise.
62440         * m4/execute.m4: Likewise.
62441         * m4/fatal-signal.m4: Likewise.
62442         * m4/fchdir.m4: Likewise.
62443         * m4/fcntl_h.m4: Likewise.
62444         * m4/fileblocks.m4: Likewise.
62445         * m4/filenamecat.m4: Likewise.
62446         * m4/findprog.m4: Likewise.
62447         * m4/flexmember.m4: Likewise.
62448         * m4/fnmatch.m4: Likewise.
62449         * m4/fopen.m4: Likewise.
62450         * m4/fpending.m4: Likewise.
62451         * m4/fprintf-posix.m4: Likewise.
62452         * m4/free.m4: Likewise.
62453         * m4/frexp.m4: Likewise.
62454         * m4/frexpl.m4: Likewise.
62455         * m4/fsusage.m4: Likewise.
62456         * m4/ftruncate.m4: Likewise.
62457         * m4/gc-camellia.m4: Likewise.
62458         * m4/gc-random.m4: Likewise.
62459         * m4/gc.m4: Likewise.
62460         * m4/getaddrinfo.m4: Likewise.
62461         * m4/getcwd-abort-bug.m4: Likewise.
62462         * m4/getcwd-path-max.m4: Likewise.
62463         * m4/getdate.m4: Likewise.
62464         * m4/getdomainname.m4: Likewise.
62465         * m4/getgroups.m4: Likewise.
62466         * m4/gethostname.m4: Likewise.
62467         * m4/gethrxtime.m4: Likewise.
62468         * m4/getline.m4: Likewise.
62469         * m4/getloadavg.m4: Likewise.
62470         * m4/getndelim2.m4: Likewise.
62471         * m4/getpass.m4: Likewise.
62472         * m4/gettext.m4: Likewise.
62473         * m4/gettime.m4: Likewise.
62474         * m4/gettimeofday.m4: Likewise.
62475         * m4/gnulib-common.m4: Likewise.
62476         * m4/group-member.m4: Likewise.
62477         * m4/host-os.m4: Likewise.
62478         * m4/iconv.m4: Likewise.
62479         * m4/iconv_open.m4: Likewise.
62480         * m4/inet_ntop.m4: Likewise.
62481         * m4/inet_pton.m4: Likewise.
62482         * m4/inline.m4: Likewise.
62483         * m4/intldir.m4: Likewise.
62484         * m4/intlmacosx.m4: Likewise.
62485         * m4/intmax.m4: Likewise.
62486         * m4/intmax_t.m4: Likewise.
62487         * m4/inttypes.m4: Likewise.
62488         * m4/inttypes_h.m4: Likewise.
62489         * m4/inttypes-pri.m4: Likewise.
62490         * m4/isapipe.m4: Likewise.
62491         * m4/isnand.m4: Likewise.
62492         * m4/isnanf.m4: Likewise.
62493         * m4/isnanl.m4: Likewise.
62494         * m4/javacomp.m4: Likewise.
62495         * m4/javaexec.m4: Likewise.
62496         * m4/jm-winsz1.m4: Likewise.
62497         * m4/jm-winsz2.m4: Likewise.
62498         * m4/lchown.m4: Likewise.
62499         * m4/lcmessage.m4: Likewise.
62500         * m4/ldexpl.m4: Likewise.
62501         * m4/lib-ld.m4: Likewise.
62502         * m4/lib-link.m4: Likewise.
62503         * m4/libsigsegv.m4: Likewise.
62504         * m4/link-follow.m4: Likewise.
62505         * m4/localcharset.m4: Likewise.
62506         * m4/locale-fr.m4: Likewise.
62507         * m4/locale-ja.m4: Likewise.
62508         * m4/locale-tr.m4: Likewise.
62509         * m4/locale-zh.m4: Likewise.
62510         * m4/lock.m4: Likewise.
62511         * m4/longlong.m4: Likewise.
62512         * m4/ls-mntd-fs.m4: Likewise.
62513         * m4/lstat.m4: Likewise.
62514         * m4/malloc.m4: Likewise.
62515         * m4/mathl.m4: Likewise.
62516         * m4/mbrtowc.m4: Likewise.
62517         * m4/mbstate_t.m4: Likewise.
62518         * m4/mbswidth.m4: Likewise.
62519         * m4/memchr.m4: Likewise.
62520         * m4/memcmp.m4: Likewise.
62521         * m4/memcpy.m4: Likewise.
62522         * m4/memmem.m4: Likewise.
62523         * m4/memmove.m4: Likewise.
62524         * m4/mempcpy.m4: Likewise.
62525         * m4/memrchr.m4: Likewise.
62526         * m4/memset.m4: Likewise.
62527         * m4/minmax.m4: Likewise.
62528         * m4/mkdir-slash.m4: Likewise.
62529         * m4/mkdtemp.m4: Likewise.
62530         * m4/mktime.m4: Likewise.
62531         * m4/mmap-anon.m4: Likewise.
62532         * m4/mountlist.m4: Likewise.
62533         * m4/nanosleep.m4: Likewise.
62534         * m4/nls.m4: Likewise.
62535         * m4/nocrash.m4: Likewise.
62536         * m4/open.m4: Likewise.
62537         * m4/openat.m4: Likewise.
62538         * m4/openmp.m4: Likewise.
62539         * m4/pathmax.m4: Likewise.
62540         * m4/perl.m4: Likewise.
62541         * m4/physmem.m4: Likewise.
62542         * m4/pipe.m4: Likewise.
62543         * m4/po.m4: Likewise.
62544         * m4/poll.m4: Likewise.
62545         * m4/posixtm.m4: Likewise.
62546         * m4/posixver.m4: Likewise.
62547         * m4/printf-frexp.m4: Likewise.
62548         * m4/printf-frexpl.m4: Likewise.
62549         * m4/printf-posix.m4: Likewise.
62550         * m4/printf-posix-rpl.m4: Likewise.
62551         * m4/printf.m4: Likewise.
62552         * m4/progtest.m4: Likewise.
62553         * m4/putenv.m4: Likewise.
62554         * m4/readline.m4: Likewise.
62555         * m4/readlink.m4: Likewise.
62556         * m4/readutmp.m4: Likewise.
62557         * m4/realloc.m4: Likewise.
62558         * m4/regex.m4: Likewise.
62559         * m4/relocatable.m4: Likewise.
62560         * m4/relocatable-lib.m4: Likewise.
62561         * m4/rename-dest-slash.m4: Likewise.
62562         * m4/rename.m4: Likewise.
62563         * m4/rmdir-errno.m4: Likewise.
62564         * m4/rmdir.m4: Likewise.
62565         * m4/roundf.m4: Likewise.
62566         * m4/roundl.m4: Likewise.
62567         * m4/rpmatch.m4: Likewise.
62568         * m4/save-cwd.m4: Likewise.
62569         * m4/selinux-selinux-h.m4: Likewise.
62570         * m4/setenv.m4: Likewise.
62571         * m4/settime.m4: Likewise.
62572         * m4/sig2str.m4: Likewise.
62573         * m4/sig_atomic_t.m4: Likewise.
62574         * m4/signalblocking.m4: Likewise.
62575         * m4/signbit.m4: Likewise.
62576         * m4/sigpipe.m4: Likewise.
62577         * m4/sockets.m4: Likewise.
62578         * m4/sockpfaf.m4: Likewise.
62579         * m4/st_dm_mode.m4: Likewise.
62580         * m4/stat-time.m4: Likewise.
62581         * m4/stdbool.m4: Likewise.
62582         * m4/stdint.m4: Likewise.
62583         * m4/stdint_h.m4: Likewise.
62584         * m4/stpcpy.m4: Likewise.
62585         * m4/stpncpy.m4: Likewise.
62586         * m4/strcase.m4: Likewise.
62587         * m4/strchrnul.m4: Likewise.
62588         * m4/strcspn.m4: Likewise.
62589         * m4/strdup.m4: Likewise.
62590         * m4/strftime.m4: Likewise.
62591         * m4/strndup.m4: Likewise.
62592         * m4/strnlen.m4: Likewise.
62593         * m4/strpbrk.m4: Likewise.
62594         * m4/strptime.m4: Likewise.
62595         * m4/strsep.m4: Likewise.
62596         * m4/strtod.m4: Likewise.
62597         * m4/strtoimax.m4: Likewise.
62598         * m4/strtok_r.m4: Likewise.
62599         * m4/strtol.m4: Likewise.
62600         * m4/strtoll.m4: Likewise.
62601         * m4/strtoul.m4: Likewise.
62602         * m4/strtoull.m4: Likewise.
62603         * m4/strtoumax.m4: Likewise.
62604         * m4/strverscmp.m4: Likewise.
62605         * m4/threadlib.m4: Likewise.
62606         * m4/timegm.m4: Likewise.
62607         * m4/tm_gmtoff.m4: Likewise.
62608         * m4/tmpdir.m4: Likewise.
62609         * m4/tmpfile.m4: Likewise.
62610         * m4/tzset.m4: Likewise.
62611         * m4/uintmax_t.m4: Likewise.
62612         * m4/unlinkdir.m4: Likewise.
62613         * m4/unlocked-io.m4: Likewise.
62614         * m4/uptime.m4: Likewise.
62615         * m4/userspec.m4: Likewise.
62616         * m4/utimbuf.m4: Likewise.
62617         * m4/utime.m4: Likewise.
62618         * m4/utimes-null.m4: Likewise.
62619         * m4/utimes.m4: Likewise.
62620         * m4/vararrays.m4: Likewise.
62621         * m4/vasnprintf.m4: Likewise.
62622         * m4/vfprintf-posix.m4: Likewise.
62623         * m4/vprintf-posix.m4: Likewise.
62624         * m4/wait-process.m4: Likewise.
62625         * m4/wchar_t.m4: Likewise.
62626         * m4/wint_t.m4: Likewise.
62627         * m4/write-any-file.m4: Likewise.
62628         * m4/yield.m4: Likewise.
62630 2009-01-13  Bruno Haible  <bruno@clisp.org>
62632         Avoid test-copy-file.sh failures when ACL support insufficient.
62633         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
62634         TESTS_ENVIRONMENT.
62635         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
62636         Reported by Jim Meyering.
62638 2009-01-13  Bruno Haible  <bruno@clisp.org>
62640         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
62641         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
62642         * modules/unistdio/u8-printf-parse (Files): Likewise.
62643         * modules/unistdio/u32-printf-parse (Files): Likewise.
62644         * modules/unistdio/ulc-printf-parse (Files): Likewise.
62646 2009-01-13  Simon Josefsson  <simon@josefsson.org>
62648         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
62649         and m4/inttypes_h.m4 too.
62651 2009-01-12  Eric Blake  <ebb9@byu.net>
62653         tests: IRIX 6.2 cc can't compile -0.0 into .data
62654         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
62655         rather than at compile-time.
62656         * tests/test-floorl.c (minus_zero): Likewise.
62657         * tests/test-frexpl.c (minus_zero): Likewise.
62658         * tests/test-isnan.c (minus_zerol): Likewise.
62659         * tests/test-isnanl.h (minus_zero): Likewise.
62660         * tests/test-ldexpl.c (minus_zero): Likewise.
62661         * tests/test-roundl.c (minus_zero): Likewise.
62662         * tests/test-signbit.c (minus_zerol): Likewise.
62663         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
62664         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
62665         * tests/test-truncl.c (minus_zero): Likewise.
62666         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
62667         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
62668         Reported by Tom G. Christensen and Nelson H. F. Beebe.
62670 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
62672         regex: fix glibc bug 9697
62673         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
62674         handling.
62676 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
62678         regex: fix glibc bug 697
62679         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
62680         being NULL also if there are no backreferences.
62682 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
62684         regex: merge glibc changes
62685         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
62686         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
62687         re_string_skip_chars, re_string_reconstruct): Likewise.
62688         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
62690 2009-01-07  Jim Meyering  <meyering@redhat.com>
62692         poll: filter through cppi
62693         * lib/poll.c: Indent cpp directives to reflect nesting.
62695 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
62697         poll: don't return uninitialized
62698         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
62700 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
62702         avoid compile failure on AIX 6.1
62703         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
62704         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
62706 2009-01-04  Jim Meyering  <meyering@redhat.com>
62708         remove duplicate inclusion of <stdio.h>
62709         * tests/test-fprintf-posix.c: Likewise.
62710         * tests/test-printf-posix.c: Likewise.
62711         * tests/test-snprintf-posix.c: Likewise.
62712         * tests/test-sprintf-posix.c: Likewise.
62713         * tests/test-vasprintf-posix.c: Likewise.
62714         * tests/test-vfprintf-posix.c: Likewise.
62715         * tests/test-vprintf-posix.c: Likewise.
62716         * tests/test-vsnprintf-posix.c: Likewise.
62717         * tests/test-vsprintf-posix.c: Likewise.
62719 2009-01-03  Jim Meyering  <meyering@redhat.com>
62721         gnulib-tool: fix sed-based filtering
62722         * gnulib-tool (func_filter_filelist): Remove extra backslash
62723         in sed_fff_filter definition.
62725 2009-01-02  Jim Meyering  <meyering@redhat.com>
62727         strftime: avoid compilation failure on Solaris 2.6
62728         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
62729         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
62730         Don't #define mbrlen or mbsinit, since now they're guaranteed to
62731         be available.  Reported by Tom G. Christensen.  Details in
62732         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
62734 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62735             Bruno Haible  <bruno@clisp.org>
62737         Speed up gnulib-tool by doing more string processing through shell
62738         built-ins.
62739         * gnulib-tool (fast_func_append): New variable.
62740         (func_remove_prefix, func_remove_suffix): New functions.
62741         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
62742         (func_filter_filelist): New function.
62743         (func_get_dependencies): Use func_remove_suffix instead of sed.
62744         (func_get_automake_snippet): Use func_filter_filelist instead of a
62745         subshell and sed invocation.
62747 2009-01-01  Bruno Haible  <bruno@clisp.org>
62749         Fix a security bug.
62750         * gnulib-tool (func_import, import, update): Don't allow the characters
62751         '"', '$', '`', '\' in macro arguments that become part of commands that
62752         are evaluated.
62754 2009-01-01  Bruno Haible  <bruno@clisp.org>
62756         * gnulib-tool (func_reset_sigpipe): Add more comments.
62758 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62760         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
62761         func_emit_tests_Makefile_am, func_import): Abort loops early if we
62762         already know the answer.
62764 2009-01-01  Jim Meyering  <meyering@redhat.com>
62766         * lib/version-etc.c (version_etc_va): Update copyright year.
62768 2008-12-30  Bruno Haible  <bruno@clisp.org>
62770         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
62771         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
62772         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
62774 2008-12-29  Eric Blake  <ebb9@byu.net>
62776         multiarch: avoid autoconf AC_REQUIRE bug
62777         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
62778         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
62779         2.63 and older.
62780         Reported by Bruno Haible, and analyzed in
62781         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
62783 2008-12-29  Bruno Haible  <bruno@clisp.org>
62785         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
62786         files in subdirectories correctly.
62787         Reported by Ralf Wildenhues.
62789 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62791         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
62792         rather than 'join FILE -', for Solaris join.
62794 2008-12-29  Bruno Haible  <bruno@clisp.org>
62796         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
62797         quoting.
62798         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62799         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62800         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62801         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
62802         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62803         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62804         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62805         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62806         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62807         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62808         * m4/nls.m4 (AM_NLS): Likewise.
62809         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
62810         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62811         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62812         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62813         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62814         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62815         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
62816         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62817         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62818         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62819         * m4/xsize.m4 (gl_XSIZE): Likewise.
62820         Suggested by Jim Meyering.
62822 2008-11-17  Bruce Korb  <bkorb@gnu.org>
62824         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
62825         * lib/parse-duration.c: use a switch instead of cascading if's.
62827 2008-12-29  Eric Blake  <ebb9@byu.net>
62829         wchar.h: supply WEOF on Irix 5.3
62830         * lib/wchar.in.h (wint_t): Also supply WEOF.
62831         * lib/wctype.in.h (wint_t): Likewise.
62832         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
62833         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
62834         Reported by Tom G. Christensen.
62836 2008-12-26  Bruno Haible  <bruno@clisp.org>
62838         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
62839         i486, i586, i686.
62841 2008-12-26  Bruno Haible  <bruno@clisp.org>
62843         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
62845 2008-12-26  Bruno Haible  <bruno@clisp.org>
62847         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
62848         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
62849         not __STDC_CONSTANT_MACROS.
62850         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
62852 2008-12-25  Bruno Haible  <bruno@clisp.org>
62854         Add support for universal builds to vasnprintf.
62855         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
62856         universal builds, guess no.
62857         * modules/vasnprintf-posix (Depends-on): Add multiarch.
62858         * modules/vasprintf-posix (Depends-on): Likewise.
62859         * modules/fprintf-posix (Depends-on): Likewise.
62860         * modules/vfprintf-posix (Depends-on): Likewise.
62861         * modules/snprintf-posix (Depends-on): Likewise.
62862         * modules/vsnprintf-posix (Depends-on): Likewise.
62863         * modules/sprintf-posix (Depends-on): Likewise.
62864         * modules/vsprintf-posix (Depends-on): Likewise.
62865         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62866         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62867         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62868         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62869         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62870         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62871         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62873         Add support for universal builds to <inttypes.h>.
62874         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
62875         _SCNu64_PREFIX): In Apple
62876         universal builds, define directly, using _LP64.
62877         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
62878         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
62879         * modules/inttypes (Depends-on): Add multiarch.
62880         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
62882         Add support for universal builds to <stdint.h>.
62883         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
62884         universal builds, define directly, using _LP64.
62885         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
62886         Apple universal builds, don't test for the size and suffix of ptrdiff_t
62887         and size_t.
62888         * modules/stdint (Depends-on): Add multiarch.
62889         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
62891         New module 'multiarch'.
62892         * modules/multiarch: New file.
62893         * m4/multiarch.m4: New file.
62895 2008-12-25  Bruno Haible  <bruno@clisp.org>
62897         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
62899 2008-12-25  Bruno Haible  <bruno@clisp.org>
62901         * modules/btowc (License): Relicense under LGPLv2+.
62902         * modules/mbsinit (License): Likewise.
62903         * modules/mbrtowc (License): Likewise.
62904         * modules/wcrtomb (License): Likewise.
62905         * modules/streq (License): Likewise.
62906         Reported by David Lutterkort <lutter@redhat.com>.
62908 2008-12-23  Bruno Haible  <bruno@clisp.org>
62910         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
62912 2008-12-23  Bruno Haible  <bruno@clisp.org>
62914         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
62915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
62916         GETADDRINFO_LIB, not in LIBS.
62917         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
62918         * modules/canon-host (Link): Likewise.
62919         * NEWS: Mention the change.
62920         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
62921         GETADDRINFO_LIB.
62923 2008-12-22  Bruno Haible  <bruno@clisp.org>
62925         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
62926         * doc/posix-functions/iswalpha_l.texi: Likewise.
62927         * doc/posix-functions/iswblank_l.texi: Likewise.
62928         * doc/posix-functions/iswcntrl_l.texi: Likewise.
62929         * doc/posix-functions/iswctype_l.texi: Likewise.
62930         * doc/posix-functions/iswdigit_l.texi: Likewise.
62931         * doc/posix-functions/iswgraph_l.texi: Likewise.
62932         * doc/posix-functions/iswlower_l.texi: Likewise.
62933         * doc/posix-functions/iswprint_l.texi: Likewise.
62934         * doc/posix-functions/iswpunct_l.texi: Likewise.
62935         * doc/posix-functions/iswspace_l.texi: Likewise.
62936         * doc/posix-functions/iswupper_l.texi: Likewise.
62937         * doc/posix-functions/iswxdigit_l.texi: Likewise.
62938         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
62939         * doc/posix-functions/open_wmemstream.texi: Likewise.
62940         * doc/posix-functions/swscanf.texi: Likewise.
62941         * doc/posix-functions/towctrans_l.texi: Likewise.
62942         * doc/posix-functions/towlower.texi: Likewise.
62943         * doc/posix-functions/towlower_l.texi: Likewise.
62944         * doc/posix-functions/towupper.texi: Likewise.
62945         * doc/posix-functions/towupper_l.texi: Likewise.
62946         * doc/posix-functions/vfwprintf.texi: Likewise.
62947         * doc/posix-functions/vfwscanf.texi: Likewise.
62948         * doc/posix-functions/vswscanf.texi: Likewise.
62949         * doc/posix-functions/vwprintf.texi: Likewise.
62950         * doc/posix-functions/vwscanf.texi: Likewise.
62951         * doc/posix-functions/wcpcpy.texi: Likewise.
62952         * doc/posix-functions/wcpncpy.texi: Likewise.
62953         * doc/posix-functions/wcscasecmp.texi: Likewise.
62954         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
62955         * doc/posix-functions/wcscoll_l.texi: Likewise.
62956         * doc/posix-functions/wcsdup.texi: Likewise.
62957         * doc/posix-functions/wcsncasecmp.texi: Likewise.
62958         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
62959         * doc/posix-functions/wcsnlen.texi: Likewise.
62960         * doc/posix-functions/wcsnrtombs.texi: Likewise.
62961         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
62962         * doc/posix-functions/wctrans_l.texi: Likewise.
62963         * doc/posix-functions/wctype_l.texi: Likewise.
62964         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
62965         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
62966         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
62967         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
62968         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
62969         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
62970         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
62971         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
62972         * doc/glibc-functions/wcschrnul.texi: Likewise.
62973         * doc/glibc-functions/wcsftime_l.texi: Likewise.
62974         * doc/glibc-functions/wcstod_l.texi: Likewise.
62975         * doc/glibc-functions/wcstof_l.texi: Likewise.
62976         * doc/glibc-functions/wcstol_l.texi: Likewise.
62977         * doc/glibc-functions/wcstold_l.texi: Likewise.
62978         * doc/glibc-functions/wcstoll_l.texi: Likewise.
62979         * doc/glibc-functions/wcstoq.texi: Likewise.
62980         * doc/glibc-functions/wcstoul_l.texi: Likewise.
62981         * doc/glibc-functions/wcstoull_l.texi: Likewise.
62982         * doc/glibc-functions/wcstouq.texi: Likewise.
62983         * doc/glibc-functions/wmempcpy.texi: Likewise.
62985 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
62986             Eric Blake  <ebb9@byu.net>
62987             Paolo Bonzini  <bonzini@gnu.org>
62988             Bruno Haible  <bruno@clisp.org>
62990         Make c-stack work on Haiku.
62991         * lib/c-stack.c (SA_ONSTACK): Define fallback.
62992         (c_stack_action): Use SA_ONSTACK flag.
62994 2008-12-22  Bruno Haible  <bruno@clisp.org>
62996         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
62998 2008-12-22  Bruno Haible  <bruno@clisp.org>
63000         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
63001         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
63002         being overridden.
63003         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
63004         New macros.
63005         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
63006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
63007         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
63008         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
63010 2008-12-22  Bruno Haible  <bruno@clisp.org>
63012         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
63013         from test code.
63015 2008-12-22  Eric Blake  <ebb9@byu.net>
63017         Avoid gcc warnings on cygwin.
63018         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
63019         Avoid unused variable.
63020         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
63021         Likewise.
63023 2008-12-22  Bruno Haible  <bruno@clisp.org>
63025         Remove HAVE_MBRTOWC conditionals.
63026         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
63027         (mbscasecmp): Assume mbrtowc function.
63028         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
63029         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
63030         * lib/mbschr.c: Include mbuiter.h unconditionally.
63031         (mbschr): Assume mbrtowc function.
63032         * lib/mbscspn.c: Include mbuiter.h unconditionally.
63033         (mbscspn): Assume mbrtowc function.
63034         * lib/mbslen.c: Include mbuiter.h unconditionally.
63035         (mbslen): Assume mbrtowc function.
63036         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
63037         (mbsncasecmp): Assume mbrtowc function.
63038         * lib/mbsnlen.c: Include mbiter.h unconditionally.
63039         (mbsnlen): Assume mbrtowc function.
63040         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
63041         (mbspbrk): Assume mbrtowc function.
63042         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
63043         (mbspcasecmp): Assume mbrtowc function.
63044         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
63045         (mbsrchr): Assume mbrtowc function.
63046         * lib/mbssep.c: Include mbuiter.h unconditionally.
63047         (mbssep): Assume mbrtowc function.
63048         * lib/mbsspn.c: Include mbuiter.h unconditionally.
63049         (mbsspn): Assume mbrtowc function.
63050         * lib/mbsstr.c: Include mbuiter.h unconditionally.
63051         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
63052         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
63053         (mbstok_r): Assume mbrtowc function.
63054         * lib/propername.c: Include mbuiter.h unconditionally.
63055         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
63056         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
63057         (trim2): Assume mbrtowc function.
63058         * lib/mbswidth.c (mbsinit): Remove fallback definition.
63059         (mbsnwidth): Assume mbrtowc function.
63060         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
63061         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
63062         fallback definitions.
63063         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
63065 2008-12-22  Bruno Haible  <bruno@clisp.org>
63067         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
63069 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
63071         * modules/regex: Request emulations for the mb*/wc* functions we need.
63072         * m4/regex.m4: Don't look for those functions here.
63073         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
63075 2008-12-22  Bruno Haible  <bruno@clisp.org>
63077         * modules/fnmatch (Depends-on): Remove duplicated dependency.
63079 2008-12-21  Bruno Haible  <bruno@clisp.org>
63081         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
63082         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
63083         (Include): Remove conditionalization.
63084         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
63085         (Include): Remove conditionalization.
63086         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
63087         (Include): Remove conditionalization.
63088         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
63089         * m4/mbfile.m4 (gl_MBFILE): Likewise.
63090         * NEWS: Mention the change.
63091         Reported by Alan Hourihane <alanh@fairlite.co.uk>
63092         via Sergey Poznyakoff <gray@gnu.org.ua>.
63094 2008-12-21  Bruno Haible  <bruno@clisp.org>
63096         * MODULES.html.sh (Extended multibyte and wide character utilities
63097         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
63098         wcrtomb, wcsrtombs.
63099         (Support for systems lacking POSIX:2008): Add accept, bind, close,
63100         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
63101         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
63102         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
63104 2008-12-21  Bruno Haible  <bruno@clisp.org>
63106         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
63108 2008-12-21  Bruno Haible  <bruno@clisp.org>
63110         * modules/wcsnrtombs-tests: New file.
63111         * tests/test-wcsnrtombs1.sh: New file.
63112         * tests/test-wcsnrtombs2.sh: New file.
63113         * tests/test-wcsnrtombs3.sh: New file.
63114         * tests/test-wcsnrtombs4.sh: New file.
63115         * tests/test-wcsnrtombs.c: New file.
63117         New module 'wcsnrtombs'.
63118         * lib/wchar.in.h (wcsnrtombs): New declaration.
63119         * lib/wcsnrtombs.c: New file.
63120         * lib/wcsrtombs-state.c: New file.
63121         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
63122         (internal_state): Remove variable.
63123         * m4/wcsnrtombs.m4: New file.
63124         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
63125         compilation units.
63126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
63127         HAVE_WCSNRTOMBS.
63128         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
63129         HAVE_WCSNRTOMBS.
63130         * modules/wcsnrtombs: New file.
63131         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
63132         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
63134 2008-12-21  Bruno Haible  <bruno@clisp.org>
63136         * modules/wcsrtombs-tests: New file.
63137         * tests/test-wcsrtombs1.sh: New file.
63138         * tests/test-wcsrtombs2.sh: New file.
63139         * tests/test-wcsrtombs3.sh: New file.
63140         * tests/test-wcsrtombs4.sh: New file.
63141         * tests/test-wcsrtombs.c: New file.
63143         New module 'wcsrtombs'.
63144         * lib/wchar.in.h (wcsrtombs): New declaration.
63145         * lib/wcsrtombs.c: New file.
63146         * m4/wcsrtombs.m4: New file.
63147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
63148         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
63149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
63150         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
63151         * modules/wcsrtombs: New file.
63152         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
63153         bugs.
63155 2008-12-21  Bruno Haible  <bruno@clisp.org>
63157         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
63158         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
63159         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
63160         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
63161         if not correct.
63162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
63163         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
63164         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
63165         m4/locale-zh.m4, m4/codeset.m4.
63166         * doc/posix-functions/wcrtomb.texi: Document the bug.
63168 2008-12-21  Bruno Haible  <bruno@clisp.org>
63170         Work around a btowc() bug on IRIX 6.5.
63171         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
63172         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
63173         REPLACE_WTOBC if not.
63174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
63175         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
63176         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
63178 2008-12-21  Bruno Haible  <bruno@clisp.org>
63180         * modules/wcrtomb-tests: New file.
63181         * tests/test-wcrtomb.sh: New file.
63182         * tests/test-wcrtomb.c: New file.
63184         New module 'wcrtomb'.
63185         * lib/wchar.in.h (wcrtomb): New declaration.
63186         * lib/wcrtomb.c: New file.
63187         * m4/wcrtomb.m4: New file.
63188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
63189         HAVE_WCRTOMB.
63190         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
63191         HAVE_WCRTOMB.
63192         * modules/wcrtomb: New file.
63193         * doc/posix-functions/wcrtomb.texi: Mention the new module.
63195 2008-12-21  Bruno Haible  <bruno@clisp.org>
63197         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
63198         * modules/mbsrtowcs (Files): Likewise.
63199         * modules/wctob (Files): Likewise.
63200         * modules/c-strcase-tests (Files): Likewise.
63201         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
63202         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
63203         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
63204         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
63205         * modules/vasnprintf-posix-tests (Files): Likewise.
63207 2008-12-21  William Pursell  <bill.pursell@gmail.com>
63209         gitlog-to-changelog: pass all command-line arguments to git-log
63210         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
63211         it is sometimes convenient to filter the commits in various ways.
63212         gitlog-to-changelog only allows --since to specify a start date,
63213         but git-log itself supports many other filtering mechanisms.
63214         At the moment, I want to filter by branch name.  Rather than
63215         adding a --branch option to gitlog-to-changelog, it seems more
63216         flexible to simply pass all options directly to git-log and let
63217         git do the work.  Notice that this effectively makes --since a
63218         redundant option for gitlog-to-changelog, but removing it would
63219         require current usage to change since calls would then require
63220         an additional '--'.
63222 2008-12-21  Bruno Haible  <bruno@clisp.org>
63224         * modules/mbsnrtowcs-tests: New file.
63225         * tests/test-mbsnrtowcs1.sh: New file.
63226         * tests/test-mbsnrtowcs2.sh: New file.
63227         * tests/test-mbsnrtowcs3.sh: New file.
63228         * tests/test-mbsnrtowcs4.sh: New file.
63229         * tests/test-mbsnrtowcs.c: New file.
63231         New module 'mbsnrtowcs'.
63232         * lib/wchar.in.h (mbsnrtowcs): New declaration.
63233         * lib/mbsnrtowcs.c: New file.
63234         * lib/mbsrtowcs-state.c: New file.
63235         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
63236         (internal_state): Remove variable.
63237         * m4/mbsnrtowcs.m4: New file.
63238         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
63239         compilation units.
63240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
63241         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
63242         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
63243         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
63244         * modules/mbsnrtowcs: New file.
63245         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
63246         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
63247         portability problem.
63249 2008-12-21  Bruno Haible  <bruno@clisp.org>
63251         Work around mbsrtowcs bug.
63252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
63253         (gl_FUNC_MBSRTOWCS): Invoke it.
63254         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
63255         m4/locale-zh.m4.
63256         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
63258 2008-12-21  Bruno Haible  <bruno@clisp.org>
63260         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
63262 2008-12-21  Bruno Haible  <bruno@clisp.org>
63264         Update doc for AIX.
63265         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
63266         16-bit wchar_t type.
63267         * doc/posix-functions/btowc.texi: Likewise.
63268         * doc/posix-functions/fgetwc.texi: Likewise.
63269         * doc/posix-functions/fgetws.texi: Likewise.
63270         * doc/posix-functions/fputwc.texi: Likewise.
63271         * doc/posix-functions/fputws.texi: Likewise.
63272         * doc/posix-functions/fwide.texi: Likewise.
63273         * doc/posix-functions/fwprintf.texi: Likewise.
63274         * doc/posix-functions/fwscanf.texi: Likewise.
63275         * doc/posix-functions/getwchar.texi: Likewise.
63276         * doc/posix-functions/getwc.texi: Likewise.
63277         * doc/posix-functions/iswalnum.texi: Likewise.
63278         * doc/posix-functions/iswalpha.texi: Likewise.
63279         * doc/posix-functions/iswblank.texi: Likewise.
63280         * doc/posix-functions/iswcntrl.texi: Likewise.
63281         * doc/posix-functions/iswctype.texi: Likewise.
63282         * doc/posix-functions/iswdigit.texi: Likewise.
63283         * doc/posix-functions/iswgraph.texi: Likewise.
63284         * doc/posix-functions/iswlower.texi: Likewise.
63285         * doc/posix-functions/iswprint.texi: Likewise.
63286         * doc/posix-functions/iswpunct.texi: Likewise.
63287         * doc/posix-functions/iswspace.texi: Likewise.
63288         * doc/posix-functions/iswupper.texi: Likewise.
63289         * doc/posix-functions/iswxdigit.texi: Likewise.
63290         * doc/posix-functions/mbrtowc.texi: Likewise.
63291         * doc/posix-functions/mbsrtowcs.texi: Likewise.
63292         * doc/posix-functions/mbstowcs.texi: Likewise.
63293         * doc/posix-functions/mbtowc.texi: Likewise.
63294         * doc/posix-functions/putwchar.texi: Likewise.
63295         * doc/posix-functions/putwc.texi: Likewise.
63296         * doc/posix-functions/swprintf.texi: Likewise.
63297         * doc/posix-functions/tolower.texi: Likewise.
63298         * doc/posix-functions/toupper.texi: Likewise.
63299         * doc/posix-functions/towctrans.texi: Likewise.
63300         * doc/posix-functions/ungetwc.texi: Likewise.
63301         * doc/posix-functions/vswprintf.texi: Likewise.
63302         * doc/posix-functions/wcrtomb.texi: Likewise.
63303         * doc/posix-functions/wcscat.texi: Likewise.
63304         * doc/posix-functions/wcschr.texi: Likewise.
63305         * doc/posix-functions/wcscmp.texi: Likewise.
63306         * doc/posix-functions/wcscoll.texi: Likewise.
63307         * doc/posix-functions/wcscpy.texi: Likewise.
63308         * doc/posix-functions/wcscspn.texi: Likewise.
63309         * doc/posix-functions/wcsftime.texi: Likewise.
63310         * doc/posix-functions/wcslen.texi: Likewise.
63311         * doc/posix-functions/wcsncat.texi: Likewise.
63312         * doc/posix-functions/wcsncmp.texi: Likewise.
63313         * doc/posix-functions/wcsncpy.texi: Likewise.
63314         * doc/posix-functions/wcspbrk.texi: Likewise.
63315         * doc/posix-functions/wcsrchr.texi: Likewise.
63316         * doc/posix-functions/wcsrtombs.texi: Likewise.
63317         * doc/posix-functions/wcsspn.texi: Likewise.
63318         * doc/posix-functions/wcsstr.texi: Likewise.
63319         * doc/posix-functions/wcstod.texi: Likewise.
63320         * doc/posix-functions/wcstof.texi: Likewise.
63321         * doc/posix-functions/wcstoimax.texi: Likewise.
63322         * doc/posix-functions/wcstok.texi: Likewise.
63323         * doc/posix-functions/wcstold.texi: Likewise.
63324         * doc/posix-functions/wcstoll.texi: Likewise.
63325         * doc/posix-functions/wcstol.texi: Likewise.
63326         * doc/posix-functions/wcstombs.texi: Likewise.
63327         * doc/posix-functions/wcstoull.texi: Likewise.
63328         * doc/posix-functions/wcstoul.texi: Likewise.
63329         * doc/posix-functions/wcstoumax.texi: Likewise.
63330         * doc/posix-functions/wcswidth.texi: Likewise.
63331         * doc/posix-functions/wcsxfrm.texi: Likewise.
63332         * doc/posix-functions/wctob.texi: Likewise.
63333         * doc/posix-functions/wctomb.texi: Likewise.
63334         * doc/posix-functions/wctrans.texi: Likewise.
63335         * doc/posix-functions/wctype.texi: Likewise.
63336         * doc/posix-functions/wcwidth.texi: Likewise.
63337         * doc/posix-functions/wmemchr.texi: Likewise.
63338         * doc/posix-functions/wmemcmp.texi: Likewise.
63339         * doc/posix-functions/wmemcpy.texi: Likewise.
63340         * doc/posix-functions/wmemmove.texi: Likewise.
63341         * doc/posix-functions/wmemset.texi: Likewise.
63342         * doc/posix-functions/wprintf.texi: Likewise.
63343         * doc/posix-functions/wscanf.texi: Likewise.
63345 2008-12-21  Bruno Haible  <bruno@clisp.org>
63347         Update doc for HP-UX 11.11.
63348         * doc/posix-functions/btowc.texi: Clarify that the function is missing
63349         in HP-UX version 11.00, not in all versions of HP-UX 11.
63350         * doc/posix-functions/fwide.texi: Likewise.
63351         * doc/posix-functions/fwprintf.texi: Likewise.
63352         * doc/posix-functions/fwscanf.texi: Likewise.
63353         * doc/posix-functions/inet_ntop.texi: Likewise.
63354         * doc/posix-functions/inet_pton.texi: Likewise.
63355         * doc/posix-functions/mbrlen.texi: Likewise.
63356         * doc/posix-functions/mbrtowc.texi: Likewise.
63357         * doc/posix-functions/mbsinit.texi: Likewise.
63358         * doc/posix-functions/mbsrtowcs.texi: Likewise.
63359         * doc/posix-functions/swprintf.texi: Likewise.
63360         * doc/posix-functions/swscanf.texi: Likewise.
63361         * doc/posix-functions/towctrans.texi: Likewise.
63362         * doc/posix-functions/vfwprintf.texi: Likewise.
63363         * doc/posix-functions/vswprintf.texi: Likewise.
63364         * doc/posix-functions/vwprintf.texi: Likewise.
63365         * doc/posix-functions/wcrtomb.texi: Likewise.
63366         * doc/posix-functions/wcsrtombs.texi: Likewise.
63367         * doc/posix-functions/wcsstr.texi: Likewise.
63368         * doc/posix-functions/wctob.texi: Likewise.
63369         * doc/posix-functions/wctrans.texi: Likewise.
63370         * doc/posix-functions/wmemchr.texi: Likewise.
63371         * doc/posix-functions/wmemcmp.texi: Likewise.
63372         * doc/posix-functions/wmemcpy.texi: Likewise.
63373         * doc/posix-functions/wmemmove.texi: Likewise.
63374         * doc/posix-functions/wmemset.texi: Likewise.
63375         * doc/posix-functions/wprintf.texi: Likewise.
63376         * doc/posix-functions/wscanf.texi: Likewise.
63378 2008-12-21  Bruno Haible  <bruno@clisp.org>
63380         Work around a portability problem.
63381         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
63382         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
63384 2008-12-20  Bruno Haible  <bruno@clisp.org>
63386         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
63387         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
63388         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
63389         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
63390         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
63392         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
63393         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
63394         set.
63395         (GNULIB_defined_mbstate_t): New macro.
63396         (mbsinit): Redefine if REPLACE_MBSINIT is set.
63397         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
63398         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
63399         reuses the system's mbrtowc function but works around the bugs.
63400         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
63401         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
63402         macros.
63403         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
63404         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
63405         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
63406         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
63407         REPLACE_MBSINIT if mbsinit needs to be overridden.
63408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
63409         REPLACE_MBSINIT, REPLACE_MBRTOWC.
63410         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
63411         REPLACE_MBSINIT, REPLACE_MBRTOWC.
63412         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
63413         m4/locale-zh.m4.
63414         (Depends): Add mbsinit.
63415         * modules/mbsinit (Depends): Add mbrtowc.
63416         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
63418 2008-12-20  Bruno Haible  <bruno@clisp.org>
63420         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
63421         so that there are no conversion errors on AIX.
63422         * tests/test-mbsrtowcs.c (main): LIkewise.
63424 2008-12-20  Bruno Haible  <bruno@clisp.org>
63426         Work around wctob bug on Solaris <= 9.
63427         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
63428         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
63429         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
63430         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
63431         * modules/wctob (Files): Add m4/locale-fr.m4.
63432         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
63434 2008-12-20  Bruno Haible  <bruno@clisp.org>
63436         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
63437         /dev/null.
63438         * tests/test-select-in.sh: Likewise.
63439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63441 2008-12-20  Bruno Haible  <bruno@clisp.org>
63443         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
63444         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
63445         Cygwin 1.5.x.
63447 2008-12-20  Bruno Haible  <bruno@clisp.org>
63449         Ensure mbstate_t is defined on HP-UX 11.11.
63450         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
63451         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
63452         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
63453         AC_USE_SYSTEM_EXTENSIONS.
63454         * modules/fnmatch (Depends-on): Add extensions.
63455         * modules/mbrlen (Depends-on): Likewise.
63456         * modules/mbrtowc (Depends-on): Likewise.
63457         * modules/mbsinit (Depends-on): Likewise.
63458         * modules/mbsrtowcs (Depends-on): Likewise.
63459         * modules/mbswidth (Depends-on): Likewise.
63460         * modules/quotearg (Depends-on): Likewise.
63461         * modules/strftime (Depends-on): Likewise.
63463 2008-12-20  Bruno Haible  <bruno@clisp.org>
63465         Ensure wctob is declared on IRIX 6.5.
63466         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
63467         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
63468         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
63469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
63470         of HAVE_WCTOB.
63471         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
63472         HAVE_WCTOB.
63473         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
63475 2008-12-19  Bruno Haible  <bruno@clisp.org>
63477         * modules/mbsrtowcs-tests: New file.
63478         * tests/test-mbsrtowcs1.sh: New file.
63479         * tests/test-mbsrtowcs2.sh: New file.
63480         * tests/test-mbsrtowcs3.sh: New file.
63481         * tests/test-mbsrtowcs4.sh: New file.
63482         * tests/test-mbsrtowcs.c: New file.
63484         New module 'mbsrtowcs'.
63485         * lib/wchar.in.h (mbsrtowcs): New declaration.
63486         * lib/mbsrtowcs.c: New file.
63487         * m4/mbsrtowcs.m4: New file.
63488         * modules/mbsrtowcs: New file.
63489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
63490         HAVE_MBSRTOWCS.
63491         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
63492         HAVE_MBSRTOWCS.
63493         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
63495 2008-12-19  Bruno Haible  <bruno@clisp.org>
63497         New module 'mbrlen'.
63498         * lib/wchar.in.h (mbrlen): New declaration.
63499         * lib/mbrlen.c: New file.
63500         * m4/mbrlen.m4: New file.
63501         * modules/mbrlen: New file.
63502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
63503         HAVE_MBRLEN.
63504         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
63505         HAVE_MBRLEN.
63506         * doc/posix-functions/mbrlen.texi: Document the new module.
63508 2008-12-19  Bruno Haible  <bruno@clisp.org>
63510         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
63511         * modules/mbrtowc (Depends-on): Add verify.
63512         Suggested by Paul Eggert.
63514 2008-12-18  Bruno Haible  <bruno@clisp.org>
63516         * modules/mbsinit-tests: New file.
63517         * tests/test-mbsinit.sh: New file.
63518         * tests/test-mbsinit.c: New file.
63520 2008-12-18  Bruno Haible  <bruno@clisp.org>
63522         * modules/mbrtowc-tests: New file.
63523         * tests/test-mbrtowc1.sh: New file.
63524         * tests/test-mbrtowc2.sh: New file.
63525         * tests/test-mbrtowc3.sh: New file.
63526         * tests/test-mbrtowc4.sh: New file.
63527         * tests/test-mbrtowc.c: New file.
63529         New module 'mbrtowc'.
63530         * lib/wchar.in.h (mbstate_t): Override when the system does not have
63531         mbsinit and mbrtowc.
63532         (mbrtowc): New declaration.
63533         * lib/mbrtowc.c: New file.
63534         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
63535         * modules/mbrtowc: New file.
63536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
63537         HAVE_MBRTOWC.
63538         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
63539         HAVE_MBRTOWC.
63540         * doc/posix-functions/mbrtowc.texi: Document the new module.
63542 2008-12-18  Bruno Haible  <bruno@clisp.org>
63544         New module 'wctob'.
63545         * lib/wchar.in.h (wctob): New declaration.
63546         * lib/wctob.c: New file.
63547         * m4/wctob.m4: New file.
63548         * modules/wctob: New file.
63549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
63550         HAVE_WCTOB.
63551         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
63552         * doc/posix-functions/wctob.texi: Document the new module.
63554 2008-12-18  Bruno Haible  <bruno@clisp.org>
63556         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
63557         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
63559 2008-12-18  Simon Josefsson  <simon@josefsson.org>
63561         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
63562         G. Christensen" <tgc@jupiterrise.com>.
63564         * lib/flock.c: Need to include errno.h.  Reported by "Tom
63565         G. Christensen" <tgc@jupiterrise.com>.
63567         * lib/flock.c: Need to include string.h.  Reported by "Tom
63568         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
63569         <ebb9@byu.net>.
63571 2008-12-18  Bruno Haible  <bruno@clisp.org>
63573         * m4/locale-ja.m4: New file, from GNU gettext.
63575 2008-12-17  Bruno Haible  <bruno@clisp.org>
63577         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
63578         Suggested by Eric Blake.
63580 2008-12-17  Bruno Haible  <bruno@clisp.org>
63582         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
63584 2008-12-17  Bruno Haible  <bruno@clisp.org>
63586         * lib/mbsinit.c: Include verify.h. Verify an assumption.
63587         * modules/mbsinit (Depends-on): Add verify.
63588         Suggested by Paul Eggert.
63590 2008-12-17  Bruno Haible  <bruno@clisp.org>
63592         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
63593         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
63594         gl_FUNC_MBRTOWC.
63595         * m4/mbiter.m4 (gl_MBITER): LIkewise.
63596         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
63597         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
63598         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
63599         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
63600         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
63601         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
63602         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
63603         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
63604         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
63605         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
63606         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
63607         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
63608         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
63609         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
63610         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63611         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
63612         * modules/trim (configure.ac): Likewise.
63614 2008-12-17  Bruno Haible  <bruno@clisp.org>
63616         * modules/btowc-tests: New file.
63617         * tests/test-btowc1.sh: New file.
63618         * tests/test-btowc2.sh: New file.
63619         * tests/test-btowc.c: New file.
63621         New module 'btowc'.
63622         * lib/wchar.in.h (btowc): New declaration.
63623         * lib/btowc.c: New file.
63624         * m4/btowc.m4: New file.
63625         * modules/btowc: New file.
63626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
63627         HAVE_BTOWC.
63628         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
63629         * doc/posix-functions/btowc.texi: Document the new module.
63631 2008-12-17  Bruno Haible  <bruno@clisp.org>
63633         New module 'mbsinit'.
63634         * lib/wchar.in.h (mbsinit): New declaration.
63635         * lib/mbsinit.c: New file.
63636         * m4/mbsinit.m4: New file.
63637         * modules/mbsinit: New file.
63638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
63639         HAVE_MBSINIT.
63640         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
63641         HAVE_MBSINIT.
63642         * doc/posix-functions/mbsinit.texi: Document the new module.
63644 2008-12-16  Bruno Haible  <bruno@clisp.org>
63646         * lib/unistd.in.h: Add comment.
63647         * tests/test-environ.c: Don't include <stdlib.h>.
63649 2008-12-16  Bruno Haible  <bruno@clisp.org>
63651         * lib/parse-duration.h (parse_duration): Document return value
63652         convention.
63653         * lib/parse-duration.c: Include specification header first. Add
63654         comments.
63655         (_): Remove macro.
63656         (parse_year_month_day, parse_hour_minute_second): Move side effects
63657         outside of strchr call.
63658         (parse_non_iso8601): Move side effects outside of isspace call.
63659         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
63660         call.
63662 2008-12-16  Bruno Haible  <bruno@clisp.org>
63664         * tests/test-parse-duration.sh: Produce no output when the test
63665         succeeds.
63667 2008-12-16  Bruno Haible  <bruno@clisp.org>
63669         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
63670         expressions.
63672 2008-12-15  Bruno Haible  <bruno@clisp.org>
63674         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
63675         * doc/glibc-functions/flistxattr.texi: Likewise.
63676         * doc/glibc-functions/fopencookie.texi: Likewise.
63677         * doc/glibc-functions/fremovexattr.texi: Likewise.
63678         * doc/glibc-functions/fsetxattr.texi: Likewise.
63679         * doc/glibc-functions/getxattr.texi: Likewise.
63680         * doc/glibc-functions/lgetxattr.texi: Likewise.
63681         * doc/glibc-functions/listxattr.texi: Likewise.
63682         * doc/glibc-functions/llistxattr.texi: Likewise.
63683         * doc/glibc-functions/lremovexattr.texi: Likewise.
63684         * doc/glibc-functions/lsetxattr.texi: Likewise.
63685         * doc/glibc-functions/removexattr.texi: Likewise.
63686         * doc/glibc-functions/setxattr.texi: Likewise.
63687         * doc/posix-functions/open_memstream.texi: Likewise.
63689 2008-12-15  Eric Blake  <ebb9@byu.net>
63691         Update doc for cygwin 1.7.
63692         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
63693         functions.
63694         * doc/posix-functions/fchmodat.texi: Likewise.
63695         * doc/posix-functions/fchownat.texi: Likewise.
63696         * doc/posix-functions/fdopendir.texi: Likewise.
63697         * doc/posix-functions/fmemopen.texi: Likewise.
63698         * doc/posix-functions/freeaddrinfo.texi: Likewise.
63699         * doc/posix-functions/fstatat.texi: Likewise.
63700         * doc/posix-functions/futimens.texi: Likewise.
63701         * doc/posix-functions/gai_strerror.texi: Likewise.
63702         * doc/posix-functions/getaddrinfo.texi: Likewise.
63703         * doc/posix-functions/getnameinfo.texi: Likewise.
63704         * doc/posix-functions/if_freenameindex.texi: Likewise.
63705         * doc/posix-functions/if_indextoname.texi: Likewise.
63706         * doc/posix-functions/if_nameindex.texi: Likewise.
63707         * doc/posix-functions/if_nametoindex.texi: Likewise.
63708         * doc/posix-functions/insque.texi: Likewise.
63709         * doc/posix-functions/linkat.texi: Likewise.
63710         * doc/posix-functions/llrint.texi: Likewise.
63711         * doc/posix-functions/llrintf.texi: Likewise.
63712         * doc/posix-functions/llrintl.texi: Likewise.
63713         * doc/posix-functions/lockf.texi: Likewise.
63714         * doc/posix-functions/lrintl.texi: Likewise.
63715         * doc/posix-functions/mkdirat.texi: Likewise.
63716         * doc/posix-functions/mkfifoat.texi: Likewise.
63717         * doc/posix-functions/mknodat.texi: Likewise.
63718         * doc/posix-functions/mq_close.texi: Likewise.
63719         * doc/posix-functions/mq_getattr.texi: Likewise.
63720         * doc/posix-functions/mq_notify.texi: Likewise.
63721         * doc/posix-functions/mq_open.texi: Likewise.
63722         * doc/posix-functions/mq_receive.texi: Likewise.
63723         * doc/posix-functions/mq_send.texi: Likewise.
63724         * doc/posix-functions/mq_setattr.texi: Likewise.
63725         * doc/posix-functions/mq_timedreceive.texi: Likewise.
63726         * doc/posix-functions/mq_timedsend.texi: Likewise.
63727         * doc/posix-functions/mq_unlink.texi: Likewise.
63728         * doc/posix-functions/open_memstream.texi: Likewise.
63729         * doc/posix-functions/openat.texi: Likewise.
63730         * doc/posix-functions/posix_fadvise.texi: Likewise.
63731         * doc/posix-functions/posix_fallocate.texi: Likewise.
63732         * doc/posix-functions/posix_madvise.texi: Likewise.
63733         * doc/posix-functions/posix_memalign.texi: Likewise.
63734         * doc/posix-functions/posix_openpt.texi: Likewise.
63735         * doc/posix-functions/readlinkat.texi: Likewise.
63736         * doc/posix-functions/remque.texi: Likewise.
63737         * doc/posix-functions/renameat.texi: Likewise.
63738         * doc/posix-functions/rintl.texi: Likewise.
63739         * doc/posix-functions/sem_unlink.texi: Likewise.
63740         * doc/posix-functions/shm_open.texi: Likewise.
63741         * doc/posix-functions/shm_unlink.texi: Likewise.
63742         * doc/posix-functions/signgam.texi: Likewise.
63743         * doc/posix-functions/sigset.texi: Likewise.
63744         * doc/posix-functions/stpcpy.texi: Likewise.
63745         * doc/posix-functions/stpncpy.texi: Likewise.
63746         * doc/posix-functions/strerror.texi: Likewise.
63747         * doc/posix-functions/strtod.texi: Likewise.
63748         * doc/posix-functions/symlinkat.texi: Likewise.
63749         * doc/posix-functions/unlinkat.texi: Likewise.
63750         * doc/posix-functions/utimensat.texi: Likewise.
63751         * doc/glibc-functions/bindresvport.texi: Likewise.
63752         * doc/glibc-functions/dn_expand.texi: Likewise.
63753         * doc/glibc-functions/exp10.texi: Likewise.
63754         * doc/glibc-functions/exp10f.texi: Likewise.
63755         * doc/glibc-functions/fgetxattr.texi: Likewise.
63756         * doc/glibc-functions/flistxattr.texi: Likewise.
63757         * doc/glibc-functions/fopencookie.texi: Likewise.
63758         * doc/glibc-functions/freeifaddrs.texi: Likewise.
63759         * doc/glibc-functions/fremovexattr.texi: Likewise.
63760         * doc/glibc-functions/fsetxattr.texi: Likewise.
63761         * doc/glibc-functions/getifaddrs.texi: Likewise.
63762         * doc/glibc-functions/getxattr.texi: Likewise.
63763         * doc/glibc-functions/lgetxattr.texi: Likewise.
63764         * doc/glibc-functions/listxattr.texi: Likewise.
63765         * doc/glibc-functions/llistxattr.texi: Likewise.
63766         * doc/glibc-functions/lremovexattr.texi: Likewise.
63767         * doc/glibc-functions/lsetxattr.texi: Likewise.
63768         * doc/glibc-functions/pow10.texi: Likewise.
63769         * doc/glibc-functions/pow10f.texi: Likewise.
63770         * doc/glibc-functions/rcmd_af.texi: Likewise.
63771         * doc/glibc-functions/removexattr.texi: Likewise.
63772         * doc/glibc-functions/res_init.texi: Likewise.
63773         * doc/glibc-functions/res_mkquery.texi: Likewise.
63774         * doc/glibc-functions/res_query.texi: Likewise.
63775         * doc/glibc-functions/res_querydomain.texi: Likewise.
63776         * doc/glibc-functions/res_send.texi: Likewise.
63777         * doc/glibc-functions/rresvport_af.texi: Likewise.
63778         * doc/glibc-functions/setxattr.texi: Likewise.
63779         * doc/glibc-functions/strcasestr.texi: Likewise.
63781 2008-12-15  Bruno Haible  <bruno@clisp.org>
63783         Fix compilation error on OSF/1 4.0.
63784         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
63785         <sys/time.h>, simply delegate to the system header.
63786         Reported by Daniel Richard G. <oss@teragram.com>.
63788 2008-12-15  Bruno Haible  <bruno@clisp.org>
63790         * doc/posix-functions/openat.texi: Mention the 'openat' module.
63791         * doc/posix-functions/fchmodat.texi: Likewise.
63792         * doc/posix-functions/fchownat.texi: Likewise.
63793         * doc/posix-functions/fdopendir.texi: Likewise.
63794         * doc/posix-functions/fstatat.texi: Likewise.
63795         * doc/posix-functions/mkdirat.texi: Likewise.
63796         * doc/posix-functions/unlinkat.texi: Likewise.
63798 2008-12-14  Bruno Haible  <bruno@clisp.org>
63800         Update doc for POSIX:2008.
63801         * doc/posix-functions/faccessat.texi: New file.
63802         * doc/posix-functions/fchmodat.texi: New file.
63803         * doc/posix-functions/fchownat.texi: New file.
63804         * doc/posix-functions/fdopendir.texi: New file.
63805         * doc/posix-functions/fstatat.texi: New file.
63806         * doc/posix-functions/futimens.texi: New file.
63807         * doc/posix-functions/linkat.texi: New file.
63808         * doc/posix-functions/mkdirat.texi: New file.
63809         * doc/posix-functions/mkfifoat.texi: New file.
63810         * doc/posix-functions/mknodat.texi: New file.
63811         * doc/posix-functions/open_wmemstream.texi: New file.
63812         * doc/posix-functions/openat.texi: New file.
63813         * doc/posix-functions/psiginfo.texi: New file.
63814         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
63815         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
63816         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
63817         * doc/posix-functions/readlinkat.texi: New file.
63818         * doc/posix-functions/renameat.texi: New file.
63819         * doc/posix-functions/strerror_l.texi: New file.
63820         * doc/posix-functions/symlinkat.texi: New file.
63821         * doc/posix-functions/unlinkat.texi: New file.
63822         * doc/posix-functions/utimensat.texi: New file.
63823         * doc/gnulib.texi (Function Substitutes): Add these subsections.
63825 2008-12-14  Bruno Haible  <bruno@clisp.org>
63827         Update doc for POSIX:2008.
63828         * doc/posix-functions/alphasort.texi: Renamed from
63829         doc/glibc-functions/alphasort.texi.
63830         * doc/posix-functions/dirfd.texi: Renamed from
63831         doc/glibc-functions/dirfd.texi.
63832         * doc/posix-functions/dprintf.texi: Renamed from
63833         doc/glibc-functions/dprintf.texi.
63834         * doc/posix-functions/duplocale.texi: Renamed from
63835         doc/glibc-functions/duplocale.texi.
63836         * doc/posix-functions/fexecve.texi: Renamed from
63837         doc/glibc-functions/fexecve.texi.
63838         * doc/posix-functions/fmemopen.texi: Renamed from
63839         doc/glibc-functions/fmemopen.texi.
63840         * doc/posix-functions/freelocale.texi: Renamed from
63841         doc/glibc-functions/freelocale.texi.
63842         * doc/posix-functions/getdate_err.texi: Renamed from
63843         doc/glibc-functions/getdate_err.texi.
63844         * doc/posix-functions/isalnum_l.texi: Renamed from
63845         doc/glibc-functions/isalnum_l.texi.
63846         * doc/posix-functions/isalpha_l.texi: Renamed from
63847         doc/glibc-functions/isalpha_l.texi.
63848         * doc/posix-functions/isblank_l.texi: Renamed from
63849         doc/glibc-functions/isblank_l.texi.
63850         * doc/posix-functions/iscntrl_l.texi: Renamed from
63851         doc/glibc-functions/iscntrl_l.texi.
63852         * doc/posix-functions/isdigit_l.texi: Renamed from
63853         doc/glibc-functions/isdigit_l.texi.
63854         * doc/posix-functions/isgraph_l.texi: Renamed from
63855         doc/glibc-functions/isgraph_l.texi.
63856         * doc/posix-functions/islower_l.texi: Renamed from
63857         doc/glibc-functions/islower_l.texi.
63858         * doc/posix-functions/isprint_l.texi: Renamed from
63859         doc/glibc-functions/isprint_l.texi.
63860         * doc/posix-functions/ispunct_l.texi: Renamed from
63861         doc/glibc-functions/ispunct_l.texi.
63862         * doc/posix-functions/isspace_l.texi: Renamed from
63863         doc/glibc-functions/isspace_l.texi.
63864         * doc/posix-functions/isupper_l.texi: Renamed from
63865         doc/glibc-functions/isupper_l.texi.
63866         * doc/posix-functions/iswalnum_l.texi: Renamed from
63867         doc/glibc-functions/iswalnum_l.texi.
63868         * doc/posix-functions/iswalpha_l.texi: Renamed from
63869         doc/glibc-functions/iswalpha_l.texi.
63870         * doc/posix-functions/iswblank_l.texi: Renamed from
63871         doc/glibc-functions/iswblank_l.texi.
63872         * doc/posix-functions/iswcntrl_l.texi: Renamed from
63873         doc/glibc-functions/iswcntrl_l.texi.
63874         * doc/posix-functions/iswctype_l.texi: Renamed from
63875         doc/glibc-functions/iswctype_l.texi.
63876         * doc/posix-functions/iswdigit_l.texi: Renamed from
63877         doc/glibc-functions/iswdigit_l.texi.
63878         * doc/posix-functions/iswgraph_l.texi: Renamed from
63879         doc/glibc-functions/iswgraph_l.texi.
63880         * doc/posix-functions/iswlower_l.texi: Renamed from
63881         doc/glibc-functions/iswlower_l.texi.
63882         * doc/posix-functions/iswprint_l.texi: Renamed from
63883         doc/glibc-functions/iswprint_l.texi.
63884         * doc/posix-functions/iswpunct_l.texi: Renamed from
63885         doc/glibc-functions/iswpunct_l.texi.
63886         * doc/posix-functions/iswspace_l.texi: Renamed from
63887         doc/glibc-functions/iswspace_l.texi.
63888         * doc/posix-functions/iswupper_l.texi: Renamed from
63889         doc/glibc-functions/iswupper_l.texi.
63890         * doc/posix-functions/iswxdigit_l.texi: Renamed from
63891         doc/glibc-functions/iswxdigit_l.texi.
63892         * doc/posix-functions/isxdigit_l.texi: Renamed from
63893         doc/glibc-functions/isxdigit_l.texi.
63894         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
63895         doc/glibc-functions/mbsnrtowcs.texi.
63896         * doc/posix-functions/mkdtemp.texi: Renamed from
63897         doc/glibc-functions/mkdtemp.texi.
63898         * doc/posix-functions/newlocale.texi: Renamed from
63899         doc/glibc-functions/newlocale.texi.
63900         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
63901         doc/glibc-functions/nl_langinfo_l.texi.
63902         * doc/posix-functions/open_memstream.texi: Renamed from
63903         doc/glibc-functions/open_memstream.texi.
63904         * doc/posix-functions/opterr.texi: Renamed from
63905         doc/glibc-functions/opterr.texi.
63906         * doc/posix-functions/optind.texi: Renamed from
63907         doc/glibc-functions/optind.texi.
63908         * doc/posix-functions/optopt.texi: Renamed from
63909         doc/glibc-functions/optopt.texi.
63910         * doc/posix-functions/psignal.texi: Renamed from
63911         doc/glibc-functions/psignal.texi.
63912         * doc/posix-functions/scandir.texi: Renamed from
63913         doc/glibc-functions/scandir.texi.
63914         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
63915         doc/glibc-functions/sched_get_priority_min.texi.
63916         * doc/posix-functions/signgam.texi: Renamed from
63917         doc/glibc-functions/signgam.texi.
63918         * doc/posix-functions/stpcpy.texi: Renamed from
63919         doc/glibc-functions/stpcpy.texi.
63920         * doc/posix-functions/stpncpy.texi: Renamed from
63921         doc/glibc-functions/stpncpy.texi.
63922         * doc/posix-functions/strcasecmp_l.texi: Renamed from
63923         doc/glibc-functions/strcasecmp_l.texi.
63924         * doc/posix-functions/strcoll_l.texi: Renamed from
63925         doc/glibc-functions/strcoll_l.texi.
63926         * doc/posix-functions/strfmon_l.texi: Renamed from
63927         doc/glibc-functions/strfmon_l.texi.
63928         * doc/posix-functions/strftime_l.texi: Renamed from
63929         doc/glibc-functions/strftime_l.texi.
63930         * doc/posix-functions/strncasecmp_l.texi: Renamed from
63931         doc/glibc-functions/strncasecmp_l.texi.
63932         * doc/posix-functions/strndup.texi: Renamed from
63933         doc/glibc-functions/strndup.texi.
63934         * doc/posix-functions/strnlen.texi: Renamed from
63935         doc/glibc-functions/strnlen.texi.
63936         * doc/posix-functions/strsignal.texi: Renamed from
63937         doc/glibc-functions/strsignal.texi.
63938         * doc/posix-functions/strxfrm_l.texi: Renamed from
63939         doc/glibc-functions/strxfrm_l.texi.
63940         * doc/posix-functions/timer_gettime.texi: Renamed from
63941         doc/glibc-functions/timer_gettime.texi.
63942         * doc/posix-functions/tolower_l.texi: Renamed from
63943         doc/glibc-functions/tolower_l.texi.
63944         * doc/posix-functions/toupper_l.texi: Renamed from
63945         doc/glibc-functions/toupper_l.texi.
63946         * doc/posix-functions/towctrans_l.texi: Renamed from
63947         doc/glibc-functions/towctrans_l.texi.
63948         * doc/posix-functions/towlower_l.texi: Renamed from
63949         doc/glibc-functions/towlower_l.texi.
63950         * doc/posix-functions/towupper_l.texi: Renamed from
63951         doc/glibc-functions/towupper_l.texi.
63952         * doc/posix-functions/uselocale.texi: Renamed from
63953         doc/glibc-functions/uselocale.texi.
63954         * doc/posix-functions/vdprintf.texi: Renamed from
63955         doc/glibc-functions/vdprintf.texi.
63956         * doc/posix-functions/wcpcpy.texi:
63957         Renamed from doc/glibc-functions/wcpcpy.texi.
63958         * doc/posix-functions/wcpncpy.texi: Renamed from
63959         doc/glibc-functions/wcpncpy.texi.
63960         * doc/posix-functions/wcscasecmp.texi: Renamed from
63961         doc/glibc-functions/wcscasecmp.texi.
63962         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
63963         doc/glibc-functions/wcscasecmp_l.texi.
63964         * doc/posix-functions/wcscoll_l.texi: Renamed from
63965         doc/glibc-functions/wcscoll_l.texi.
63966         * doc/posix-functions/wcsdup.texi: Renamed from
63967         doc/glibc-functions/wcsdup.texi.
63968         * doc/posix-functions/wcsncasecmp.texi: Renamed from
63969         doc/glibc-functions/wcsncasecmp.texi.
63970         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
63971         doc/glibc-functions/wcsncasecmp_l.texi.
63972         * doc/posix-functions/wcsnlen.texi: Renamed from
63973         doc/glibc-functions/wcsnlen.texi.
63974         * doc/posix-functions/wcsnrtombs.texi: Renamed from
63975         doc/glibc-functions/wcsnrtombs.texi.
63976         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
63977         doc/glibc-functions/wcsxfrm_l.texi.
63978         * doc/posix-functions/wctrans_l.texi: Renamed from
63979         doc/glibc-functions/wctrans_l.texi.
63980         * doc/posix-functions/wctype_l.texi: Renamed from
63981         doc/glibc-functions/wctype_l.texi.
63982         * doc/gnulib.texi (Function Substitutes): Add these subsections.
63983         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
63984         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
63985         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
63986         these subsections.
63987         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
63988         Remove sections.
63990 2008-12-14  Bruno Haible  <bruno@clisp.org>
63992         Update doc for POSIX:2008.
63993         * doc/posix-functions/*.texi: Update URL of POSIX specification.
63995 2008-12-14  Bruno Haible  <bruno@clisp.org>
63997         Update doc for POSIX:2008.
63998         * doc/pastposix-functions/bcmp.texi: Renamed from
63999         doc/posix-functions/bcmp.texi.
64000         * doc/pastposix-functions/bcopy.texi: Renamed from
64001         doc/posix-functions/bcopy.texi.
64002         * doc/pastposix-functions/bsd_signal.texi: Renamed from
64003         doc/posix-functions/bsd_signal.texi.
64004         * doc/pastposix-functions/bzero.texi: Renamed from
64005         doc/posix-functions/bzero.texi.
64006         * doc/pastposix-functions/ecvt.texi: Renamed from
64007         doc/posix-functions/ecvt.texi.
64008         * doc/pastposix-functions/fcvt.texi: Renamed from
64009         doc/posix-functions/fcvt.texi.
64010         * doc/pastposix-functions/ftime.texi: Renamed from
64011         doc/posix-functions/ftime.texi.
64012         * doc/pastposix-functions/gcvt.texi: Renamed from
64013         doc/posix-functions/gcvt.texi.
64014         * doc/pastposix-functions/getcontext.texi: Renamed from
64015         doc/posix-functions/getcontext.texi.
64016         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
64017         doc/posix-functions/gethostbyaddr.texi.
64018         * doc/pastposix-functions/gethostbyname.texi: Renamed from
64019         doc/posix-functions/gethostbyname.texi.
64020         * doc/pastposix-functions/getwd.texi: Renamed from
64021         doc/posix-functions/getwd.texi.
64022         * doc/pastposix-functions/h_errno.texi: Renamed from
64023         doc/posix-functions/h_errno.texi.
64024         * doc/pastposix-functions/index.texi: Renamed from
64025         doc/posix-functions/index.texi.
64026         * doc/pastposix-functions/makecontext.texi: Renamed from
64027         doc/posix-functions/makecontext.texi.
64028         * doc/pastposix-functions/mktemp.texi: Renamed from
64029         doc/posix-functions/mktemp.texi.
64030         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
64031         doc/posix-functions/pthread_attr_getstackaddr.texi.
64032         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
64033         doc/posix-functions/pthread_attr_setstackaddr.texi.
64034         * doc/pastposix-functions/rindex.texi: Renamed from
64035         doc/posix-functions/rindex.texi.
64036         * doc/pastposix-functions/scalb.texi: Renamed from
64037         doc/posix-functions/scalb.texi.
64038         * doc/pastposix-functions/setcontext.texi: Renamed from
64039         doc/posix-functions/setcontext.texi.
64040         * doc/pastposix-functions/swapcontext.texi: Renamed from
64041         doc/posix-functions/swapcontext.texi.
64042         * doc/pastposix-functions/ualarm.texi: Renamed from
64043         doc/posix-functions/ualarm.texi.
64044         * doc/pastposix-functions/usleep.texi: Renamed from
64045         doc/posix-functions/usleep.texi.
64046         * doc/pastposix-functions/vfork.texi: Renamed from
64047         doc/posix-functions/vfork.texi.
64048         * doc/pastposix-functions/wcswcs.texi: Renamed from
64049         doc/posix-functions/wcswcs.texi.
64050         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
64051         (Function Substitutes): Update.
64053 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64055         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
64056         m4/strerror.m4.
64058 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64059             Bruno Haible  <bruno@clisp.org>
64061         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
64063 2008-12-13  Bruno Haible  <bruno@clisp.org>
64065         * modules/strtoull (Depends-on): Remove unistd.
64067 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64069         * modules/strtoull (Depends-on): Add stdlib.
64071 2008-12-11  Simon Josefsson  <simon@josefsson.org>
64073         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
64075 2008-12-10  Jim Meyering  <meyering@redhat.com>
64077         gl_ASSERT: don't say assertions are disabled when they're not
64078         * m4/assert.m4 (gl_ASSERT): Do not make configure report
64079         "checking whether to enable assertions... no", when they are in
64080         fact enabled.  This is solely a bug in the output of configure.
64081         In spite of saying "no", NDEBUG was not defined in that case.
64082         Also, as noted by Eric Blake, leave assertions enabled upon
64083         --enable-assert=INVALID.
64085 2008-12-10  Bruno Haible  <bruno@clisp.org>
64087         Change MODULES.html to refer to POSIX:2008 where possible.
64088         * MODULES.html.sh (POSIX2008_URL): New variable.
64089         (posix_headers): Remove sys/timeb, ucontext.
64090         (posix2001_headers): New variable.
64091         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
64092         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
64093         index, makecontext, mktemp, pthread_attr_getstackaddr,
64094         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
64095         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
64096         (posix2001_functions): New variable.
64097         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
64098         otherwise.
64100 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64102         add missing include to parse-duration.c
64103         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
64104         * modules/parse-duration (Depends-on): Add xalloc.
64106         fix sed script reading maint.mk
64107         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
64108         (syntax-check-rules): Use it.
64110 2008-12-09  Bruno Haible  <bruno@clisp.org>
64112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
64113         MacOS X 10.4/PowerPC.
64114         Reported by Simon Josefsson.
64116 2008-12-08  Jim Meyering  <meyering@redhat.com>
64118         work around mingw's lack of some S_IF definitions
64119         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
64120         Reported by Simon Josefsson.
64122 2008-12-08  Bruno Haible  <bruno@clisp.org>
64124         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
64125         applied to variables. Needed on MacOS X 10.4/PowerPC.
64126         Reported by Simon Josefsson.
64128 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
64129         and Eric Blake  <ebb9@byu.net>
64131         assert: honor --enable-assert
64132         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
64133         order to honor --enable-assert, rather than treating it as a
64134         synonym for --disable-assert.
64136 2008-12-08  Jim Meyering  <meyering@redhat.com>
64138         * lib/posixtm.c: Remove now-useless declaration of mktime.
64140         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
64142 2008-12-07  Bruno Haible  <bruno@clisp.org>
64144         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
64145         test_once): Mark functions as static.
64146         * tests/test-tls.c (test_tls): Likewise.
64148 2008-12-07  Bruno Haible  <bruno@clisp.org>
64150         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
64151         iconv_register_autodetect.
64153 2008-12-07  Jim Meyering  <meyering@redhat.com>
64155         posixtm.c: avoid a warning
64156         * lib/posixtm.c (posixtime): Don't initialize tm0.
64157         It's no longer needed to placate gcc4's -Wuninitialized,
64158         and the attempt to placate would elicit a new warning.
64160         unicodeio.c: mark unused parameters
64161         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
64162         (fallback_failure_callback): Likewise.
64164 2008-12-07  Bruno Haible  <bruno@clisp.org>
64166         * gnulib-tool (func_create_testdir): When building the tests
64167         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
64168         Reported by Simon Josefsson.
64170 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64172         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
64174 2008-12-06  Bruno Haible  <bruno@clisp.org>
64176         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
64177         Suggested by Eric Blake.
64179 2008-12-06  Bruno Haible  <bruno@clisp.org>
64181         Fix a c-stack test failure on MacOS X.
64182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
64183         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
64184         handler for SIGBUS as well.
64185         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
64186         install a signal handler for SIGBUS as well.
64187         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
64189 2008-12-06  Bruno Haible  <bruno@clisp.org>
64191         Advocacy documentation.
64192         * doc/gnulib-intro.texi (Benefits): New section.
64193         * doc/gnulib.texi: Update.
64195 2008-12-06  Bruno Haible  <bruno@clisp.org>
64197         Document the 'manywarnings' module.
64198         * doc/manywarnings.texi: New file.
64199         * doc/gnulib.texi: Include it.
64201 2008-12-05  Eric Blake  <ebb9@byu.net>
64203         tests: silence some gcc warnings
64204         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
64205         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
64206         type mismatches.
64208 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64209             Bruno Haible  <bruno@clisp.org>
64211         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
64213 2008-11-29  Jim Meyering  <meyering@redhat.com>
64215         unicodeio.c: mark unused parameters
64216         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
64217         (fallback_failure_callback): Likewise.
64219         fts: fix a thinko
64220         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
64221         (set_stat_type): Return S_IF*-valued "type" directly.
64222         Prompted by James Youngman's spotting a related bug.
64223         Confirmed by further testing through find.
64225         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
64226         * lib/fts.c (D_TYPE): Define.
64227         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
64228         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
64229         (s_ifmt_shift_bits): New function.
64230         (set_stat_type): New function.
64231         (fts_build): When not calling fts_stat, call set_stat_type
64232         to propagate dirent.d_type info to fts_read caller.
64233         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
64234         fts_statp->st_mode type information may be valid.
64236 2008-11-28  Simon Josefsson  <simon@josefsson.org>
64238         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
64239         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
64240         <sds@gnu.org>.
64242 2008-11-20  Bruno Haible  <bruno@clisp.org>
64244         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
64245         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
64246         INCLUDE_NEXT.
64247         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
64248         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
64249         * modules/math (Makefile.am): Substitute
64250         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
64251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64253 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
64254             Bruno Haible  <bruno@clisp.org>
64256         * lib/stdint.in.h: Define all type macros so that their expansion is
64257         a single typedef'ed token. Fixes a compilation failure in Boost which
64258         does "using ::int8_t;".
64260 2008-11-18  Simon Josefsson  <simon@josefsson.org>
64262         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
64263         gl_MANYWARN_ALL_GCC.
64264         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
64265         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
64266         * modules/manywarnings: New file.
64267         * MODULES.html.sh: Mention manywarnings module.
64269 2008-11-18  Bruno Haible  <bruno@clisp.org>
64271         * doc/gnulib-tool.texi (Unit tests): New section.
64273 2008-11-18  Simon Josefsson  <simon@josefsson.org>
64275         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
64276         paths like 'lib/po/foo.po'.
64278 2008-11-17  Simon Josefsson  <simon@josefsson.org>
64280         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
64281         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
64283 2008-11-17  Simon Josefsson  <simon@josefsson.org>
64285         * m4/warnings.m4: Use CPPFLAGS to really check whether the
64286         parameter works.
64288 2008-11-17  Simon Josefsson  <simon@josefsson.org>
64290         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
64292 2008-11-17  Bruce Korb  <bkorb@gnu.org>
64294         * modules/parse-duration-tests: New file.
64295         * tests/test-parse-duration.sh: New file.
64296         * tests/test-parse-duration.c: New file.
64298         New module 'parse-duration'.
64299         * lib/parse-duration.h: New file.
64300         * lib/parse-duration.c: New file.
64301         * modules/parse-duration: New file.
64303 2008-11-17  Bruno Haible  <bruno@clisp.org>
64305         * tests/test-select-out.sh: Comment out the first pipe test.
64306         Reported by Simon Josefsson.
64308 2008-11-17  Bruno Haible  <bruno@clisp.org>
64310         * modules/getaddrinfo (Depends-on): Add servent, hostent.
64311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
64312         gl_HOSTENT.
64314 2008-11-17  Bruno Haible  <bruno@clisp.org>
64316         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
64317         -lnetwork and -lnet. Needed for Haiku and BeOS.
64319 2008-11-16  Bruno Haible  <bruno@clisp.org>
64321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
64323 2008-11-16  Bruno Haible  <bruno@clisp.org>
64325         Avoid test failure on Haiku.
64326         * tests/test-fsync.c: Include <errno.h>.
64327         (main): Don't require that fsync (0) fails.
64329 2008-11-15  Bruno Haible  <bruno@clisp.org>
64331         New module 'hostent'.
64332         * modules/hostent: New file.
64333         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
64335 2008-11-15  Bruno Haible  <bruno@clisp.org>
64337         New module 'servent'.
64338         * modules/servent: New file.
64339         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
64341 2008-11-15  Bruno Haible  <bruno@clisp.org>
64343         Avoid generating same test program with two different rules.
64344         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
64345         test-frexp to test-frexp-nolibm.
64346         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
64347         test-frexpl to test-frexpl-nolibm.
64349 2008-11-15  Bruno Haible  <bruno@clisp.org>
64351         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
64352         $(FREXPL_LIBM).
64354 2008-11-15  Bruno Haible  <bruno@clisp.org>
64356         * lib/netdb.in.h: Activate the definitions also when the system's
64357         <netdb.h> has 'struct addrinfo'.
64358         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
64359         EAI_OVERFLOW or AI_NUMERICSERV.
64360         * doc/posix-headers/netdb.texi: Document the problem.
64362 2008-11-15  Bruno Haible  <bruno@clisp.org>
64364         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
64366         Make the 'sched' module work on platforms where <sched.h> exists but
64367         is incomplete (such as Haiku).
64368         * lib/sched.in.h; Include the system's <sched.h> if it exists.
64369         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
64370         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
64371         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
64372         HAVE_STRUCT_SCHED_PARAM.
64373         * modules/sched (Depends-on): Add include_next.
64374         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
64375         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
64376         * doc/posix-headers/sched.texi: Document the issue.
64378 2008-11-13  Jim Meyering  <meyering@redhat.com>
64380         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
64381         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
64382         test would fail due to the difference in the Report bugs to ...
64383         line.  The expected address is empty, "<>", while the actual
64384         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
64386 2008-11-12  Bruno Haible  <bruno@clisp.org>
64388         lstat: don't compile lstat.c on systems lacking lstat
64389         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
64390         which don't have lstat; this is handled by lib/sys_stat.in.h already.
64391         Reported by Daniel P. Berrange via Jim Meyering.
64393 2008-11-12  Jim Meyering  <meyering@redhat.com>
64395         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
64397 2008-11-12  Simon Josefsson  <simon@josefsson.org>
64399         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
64400         instead.
64402 2008-11-12  Bruno Haible  <bruno@clisp.org>
64404         * lib/unicodeio.c: Include unistr.h.
64405         (utf8_wctomb): Remove function.
64406         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
64408 2008-11-12  Simon Josefsson  <simon@josefsson.org>
64410         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
64411         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
64412         <bruno@clisp.org>.
64413         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
64415 2008-11-12  Simon Josefsson  <simon@josefsson.org>
64417         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
64418         * doc/gnulib.texi: Add section for warnings.
64420 2008-11-11  Bruno Haible  <bruno@clisp.org>
64422         * lib/sockets.h: Add a comment.
64424 2008-11-11  Karl Berry  <karl@gnu.org>
64426         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
64428 2008-11-11  Eric Blake  <ebb9@byu.net>
64430         fdl.texi: avoid git symlinks
64431         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
64433 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
64435         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
64437 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
64439         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
64440         (gl_WARN_ADD): Substitute $2 if literal.
64442 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
64444         * m4/warning.m4: Remove.
64446 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
64448         * m4/warnings.m4: Almost complete rewrite. :-)
64450 2008-11-10  Simon Josefsson  <simon@josefsson.org>
64452         * modules/warnings: New module.
64453         * m4/warnings.m4: New file.
64454         * MODULES.html.sh: Mention warnings module.
64455         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
64456         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64458 2008-11-10  Eric Blake  <ebb9@byu.net>
64460         fdl.texi: make a symlink to the latest version
64461         * doc/standards.texi: Revert today's earlier change.
64462         * doc/fdl-1.2.texi: Rename from old fdl.texi...
64463         * doc/fdl.texi: ...and replace this with a symlink to the newer
64464         fdl-1.3.texi.
64466 2008-11-10  Bruno Haible  <bruno@clisp.org>
64468         * tests/test-select-fd.c (main): Accept the result file name as fourth
64469         argument.
64470         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
64471         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
64473 2008-11-10  Bruno Haible  <bruno@clisp.org>
64475         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
64476         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
64477         as autoconf-substituted macros.
64478         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
64479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
64480         gl_NETDB_H_DEFAULTS. Set these variables.
64481         * modules/netdb (Makefile.am): Substitute these variables.
64483 2008-11-10  Eric Blake  <ebb9@byu.net>
64485         standards.texi: include correct file for FDL 1.3
64486         * doc/standards.texi (GNU Free Documentation License): Change
64487         include file to pull in FDL 1.3, not 1.2.
64489         fdl.texi: revert accidental change to license
64490         * doc/fdl.texi: This is FDL 1.2, not 1.3.
64492 2008-11-10  Bruno Haible  <bruno@clisp.org>
64494         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
64495         cross-compiling guesses also when the native compile gives no result.
64497 2008-11-10  Bruno Haible  <bruno@clisp.org>
64499         * lib/spawni.c (__spawni): Force variable into the stack.
64501 2008-11-10  Bruno Haible  <bruno@clisp.org>
64503         Add support for Haiku.
64504         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
64505         glibc and BeOS, but also on Haiku.
64506         * lib/fpurge.c (fpurge): Likewise.
64507         * lib/freadable.c (freadable): Likewise.
64508         * lib/freadahead.c (freadahead): Likewise.
64509         * lib/freading.c (freading): Likewise.
64510         * lib/freadptr.c (freadptr): Likewise.
64511         * lib/freadseek.c (freadptrinc): Likewise.
64512         * lib/fseeko.c (rpl_fseeko): Likewise.
64513         * lib/fseterr.c (fseterr): Likewise.
64514         * lib/fwritable.c (fwritable): Likewise.
64515         * lib/fwriting.c (fwriting): Likewise.
64516         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
64518 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
64520         * lib/config.charset: Treat Haiku like BeOS.
64522 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
64524         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
64525         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
64527 2008-11-08  Bruno Haible  <bruno@clisp.org>
64529         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
64530         AC_CACHE_CHECK.
64532 2008-11-08  Bruno Haible  <bruno@clisp.org>
64534         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
64536 2008-11-08  Bruno Haible  <bruno@clisp.org>
64538         * tests/test-select-fd.c: New file.
64539         * tests/test-select-in.sh: New file.
64540         * tests/test-select-out.sh: New file.
64541         * tests/test-select-stdin.c: New file.
64542         * modules/select-tests (Files): Add the new files.
64543         (Depends-on): Add gettimeofday.
64544         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
64545         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
64546         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
64548 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
64549             Bruno Haible  <bruno@clisp.org>
64551         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
64553 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
64555         * build-aux/pmccabe2html: Added support for C++ source files.
64557 2008-11-05  Ben Pfaff  <blp@gnu.org>
64559         Fix lib/close.c build on Windows.
64560         * modules/close (Files): Add lib/w32sock.h.
64562 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
64564         Accept Bison's NEWS format.
64565         * build-aux/announce-gen (print_news_deltas): Tweak
64566         $re_prefix.
64568 2008-11-04  Bruno Haible  <bruno@clisp.org>
64570         * modules/random_r (Maintainer): Add glibc.
64572 2008-11-04  Simon Josefsson  <simon@josefsson.org>
64574         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
64575         by karl@freefriends.org (Karl Berry).
64576         * doc/alloca.texi: Likewise.
64577         * doc/c-ctype.texi: Likewise.
64578         * doc/c-strcase.texi: Likewise.
64579         * doc/c-strcaseeq.texi: Likewise.
64580         * doc/c-strcasestr.texi: Likewise.
64581         * doc/c-strstr.texi: Likewise.
64582         * doc/c-strtod.texi: Likewise.
64583         * doc/c-strtold.texi: Likewise.
64584         * doc/ctime.texi: Likewise.
64585         * doc/error.texi: Likewise.
64586         * doc/fdl.texi: Likewise.
64587         * doc/gcd.texi: Likewise.
64588         * doc/getdate.texi: Likewise.
64589         * doc/gnulib-intro.texi: Likewise.
64590         * doc/gnulib-tool.texi: Likewise.
64591         * doc/gnulib.texi: Likewise.
64592         * doc/inet_ntoa.texi: Likewise.
64593         * doc/maintain.texi: Likewise.
64594         * doc/make-stds.texi: Likewise.
64595         * doc/quote.texi: Likewise.
64596         * doc/regexprops-generic.texi: Likewise.
64597         * doc/standards.texi: Likewise.
64598         * doc/verify.texi: Likewise.
64599         * doc/visibility.texi: Likewise.
64600         * doc/gnulib.texi (GNU Free Documentation License): Include
64601         fdl-1.3.texi instead of fdl.texi.
64603 2008-11-04  Simon Josefsson  <simon@josefsson.org>
64605         * doc/fdl-1.3.texi: New file, from
64606         <http://www.gnu.org/licenses/fdl-1.3.texi>.
64607         * modules/fdl-1.3: Add.
64608         * MODULES.html.sh: Add fdl-1.3.
64610 2008-11-03  Bruno Haible  <bruno@clisp.org>
64612         Make determination of absolute name of header file work with AIX xlc.
64613         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
64614         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
64615         preprocessing.
64616         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
64617         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64619 2008-11-03  Simon Josefsson  <simon@josefsson.org>
64621         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
64622         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
64623         <ludo@gnu.org>.
64625 2008-11-02  Bruno Haible  <bruno@clisp.org>
64627         Mark 'strpbrk' obsolete.
64628         * modules/strpbrk (Status, Notice): New sections.
64629         * modules/strtok_r (Depends-on): Add strpbrk.
64631 2008-11-02  Bruno Haible  <bruno@clisp.org>
64633         Mark 'strdup' obsolete.
64634         * modules/strdup (Status, Notice): New sections.
64635         * modules/findprog (Depends-on): Add strdup.
64636         * modules/getaddrinfo (Depends-on): Likewise.
64637         * modules/localename (Depends-on): Likewise.
64638         * modules/relocatable-lib (Depends-on): Likewise.
64639         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
64640         * modules/relocatable-prog (Depends-on): Likewise.
64641         * modules/trim (Depends-on): Likewise.
64642         * modules/unictype/gen-ctype (Depends-on): Likewise.
64643         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
64645 2008-11-02  Bruno Haible  <bruno@clisp.org>
64647         Mark 'strcspn' obsolete.
64648         * modules/strcspn (Status, Notice): New sections.
64650 2008-11-02  Bruno Haible  <bruno@clisp.org>
64652         Mark 'rmdir' obsolete.
64653         * modules/rmdir (Status, Notice): New sections.
64654         * modules/clean-temp (Depends-on): Add rmdir.
64655         * modules/openat (Depends-on): Likewise.
64657 2008-11-02  Bruno Haible  <bruno@clisp.org>
64659         Mark 'raise' obsolete.
64660         * modules/raise (Status, Notice): New sections.
64661         (Include): Specify <signal.h>.
64662         * modules/stdio (Depends-on): Add raise.
64663         * modules/write (Depends-on): Likewise.
64665 2008-11-02  Bruno Haible  <bruno@clisp.org>
64667         Mark 'memset' obsolete.
64668         * modules/memset (Status, Notice): New sections.
64670 2008-11-02  Bruno Haible  <bruno@clisp.org>
64672         Mark 'memmove' obsolete.
64673         * modules/memmove (Status, Notice): New sections.
64674         * modules/argp (Depends-on): Add memmove.
64675         * modules/argz (Depends-on): Likewise.
64676         * modules/canonicalize (Depends-on): Likewise.
64677         * modules/canonicalize-lgpl (Depends-on): Likewise.
64678         * modules/fts (Depends-on): Likewise.
64679         * modules/getcwd (Depends-on): Likewise.
64680         * modules/human (Depends-on): Likewise.
64681         * modules/regex (Depends-on): Likewise.
64682         * modules/striconveh (Depends-on): Likewise.
64683         * modules/trim (Depends-on): Likewise.
64684         * modules/unistr/u8-move (Depends-on): Likewise.
64685         * modules/unistr/u16-move (Depends-on): Likewise.
64686         * modules/unistr/u32-move (Depends-on): Likewise.
64688 2008-11-02  Bruno Haible  <bruno@clisp.org>
64690         Mark 'memcpy' obsolete.
64691         * modules/memcpy (Status, Notice): New sections.
64693 2008-11-02  Bruno Haible  <bruno@clisp.org>
64695         Mark 'memcmp' obsolete.
64696         * modules/memcmp (Status, Notice): New sections.
64697         * modules/argmatch (Depends-on): Add memchr.
64698         * modules/backupfile (Depends-on): Likewise.
64699         * modules/c-strcasestr (Depends-on): Likewise.
64700         * modules/crypto/des (Depends-on): Likewise.
64701         * modules/csharpcomp (Depends-on): Likewise.
64702         * modules/fnmatch (Depends-on): Likewise.
64703         * modules/git-merge-changelog (Depends-on): Likewise.
64704         * modules/isnand (Depends-on): Likewise.
64705         * modules/isnand-nolibm (Depends-on): Likewise.
64706         * modules/isnanf (Depends-on): Likewise.
64707         * modules/isnanf-nolibm (Depends-on): Likewise.
64708         * modules/isnanl (Depends-on): Likewise.
64709         * modules/isnanl-nolibm (Depends-on): Likewise.
64710         * modules/mbchar (Depends-on): Likewise.
64711         * modules/memcoll (Depends-on): Likewise.
64712         * modules/quotearg (Depends-on): Likewise.
64713         * modules/regex (Depends-on): Likewise.
64714         * modules/relocatable-prog (Depends-on): Likewise.
64715         * modules/same (Depends-on): Likewise.
64716         * modules/signbit (Depends-on): Likewise.
64717         * modules/strcasestr-simple (Depends-on): Likewise.
64718         * modules/unictype/gen-ctype (Depends-on): Likewise.
64719         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
64720         * modules/uniname/uniname (Depends-on): Likewise.
64721         * modules/unistr/u8-cmp (Depends-on): Likewise.
64723 2008-11-02  Bruno Haible  <bruno@clisp.org>
64725         Mark 'memchr' obsolete.
64726         * modules/memchr (Status, Notice): New sections.
64727         * modules/argp (Depends-on): Add memchr.
64728         * modules/base64 (Depends-on): Likewise.
64729         * modules/c-strcasestr (Depends-on): Likewise.
64730         * modules/chdir-long (Depends-on): Likewise.
64731         * modules/fnmatch (Depends-on): Likewise.
64732         * modules/getsubopt (Depends-on): Likewise.
64733         * modules/git-merge-changelog (Depends-on): Likewise.
64734         * modules/glob (Depends-on): Likewise.
64735         * modules/strcasestr-simple (Depends-on): Likewise.
64736         * modules/strnlen (Depends-on): Likewise.
64738 2008-11-02  Bruno Haible  <bruno@clisp.org>
64740         Mark 'atexit' obsolete.
64741         * modules/atexit (Status, Notice): New sections.
64742         * modules/chdir-long (Depends-on): Add atexit.
64743         * modules/wait-process (Depends-on): Likewise.
64745 2008-11-02  Bruno Haible  <bruno@clisp.org>
64747         * gnulib-tool: New option --with-obsolete.
64748         (func_usage): Document it.
64749         (func_modules_transitive_closure): Drop obsolete dependencies if
64750         incobsolete is not true.
64751         (func_import): Read and save the incobsolete variable to the cache.
64753 2008-11-02  Bruno Haible  <bruno@clisp.org>
64755         * modules/TEMPLATE-EXTENDED: New field 'Status'.
64756         * gnulib-tool: New option --extract-status.
64757         (func_usage): Document it.
64758         (sed_extract_prog): Recognize it.
64759         (func_get_status): New function.
64761 2008-10-30  Simon Josefsson  <simon@josefsson.org>
64763         * modules/sockets (License): Change from LGPL to LGPLv2+.
64765 2008-10-28  Simon Josefsson  <simon@josefsson.org>
64767         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
64769 2008-10-28  Simon Josefsson  <simon@josefsson.org>
64771         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64772         Mention times and sys_times.
64773         * modules/sys_times, modules/sys_times-tests: New modules.
64774         * modules/times, modules/times-tests: Likewise
64775         * m4/sys_times_h.m4: New file.
64776         * lib/sys_times.in.h: Likewise
64777         * lib/times.c: Likewise.
64778         * tests/test-sys_times.c: Likewise.
64779         * tests/test-times.c: Likewise.
64780         * doc/posix-headers/sys_times.texi: Update.
64781         * doc/posix-functions/times.texi: Update.
64783 2008-10-28  Jim Meyering  <meyering@redhat.com>
64785         * modules/tempname (Depends-on): Add lstat.
64787         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
64789 2008-10-28  Simon Josefsson  <simon@josefsson.org>
64791         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
64792         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
64793         using idiom used elsewhere in gnulib.
64795 2008-10-27  Jim Meyering  <meyering@redhat.com>
64797         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
64799 2008-10-27  Simon Josefsson  <simon@josefsson.org>
64801         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
64802         TESTS_ENVIRONMENT, for shell scripts that needs to call built
64803         programs.
64804         * tests/test-argp-2.sh: Use $EXEEXT when needed.
64806 2008-10-27  Simon Josefsson  <simon@josefsson.org>
64808         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
64810 2008-10-27  Bruno Haible  <bruno@clisp.org>
64812         * tests/test-lstat.c: Include <stdio.h>.
64814 2008-10-27  Simon Josefsson  <simon@josefsson.org>
64816         * modules/lstat-tests: New module.
64817         * tests/test-lstat.c: New file.
64819 2008-10-26  Jim Meyering  <meyering@redhat.com>
64821         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
64823 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64824             Bruno Haible  <bruno@clisp.org>
64826         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
64827         * modules/configmake (Include): Add a note that the include must come
64828         after all system headers.
64829         * lib/javaversion.c: Include configmake.h after all other includes.
64831 2008-10-26  Bruno Haible  <bruno@clisp.org>
64833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
64834         HAVE_STRUCT_RANDOM_DATA to 1.
64835         (gl_STDLIB_H): Simplify.
64837 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64839         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
64840         substitute HAVE_STRUCT_RANDOM_DATA.
64841         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
64842         random_data.
64843         * modules/stdlib (Makefile.am): Substitute
64844         HAVE_STRUCT_RANDOM_DATA.
64846 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64848         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
64849         * doc/gnulib-intro.texi (Copyright): Likewise.
64851 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64853         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
64854         findings.
64856 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
64857             Bruno Haible  <bruno@clisp.org>
64859         * lib/unistd.in.h: Include <winsock2.h>.
64860         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
64861         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
64862         Provide dummy declarations.
64863         (gethostname): Override.
64864         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
64865         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
64866         gl_PREREQ_SYS_H_WINSOCK2.
64867         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
64868         * doc/posix-functions/gethostname.texi: More details.
64870 2008-10-25  Bruno Haible  <bruno@clisp.org>
64872         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
64873         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
64874         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
64876         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
64877         here ...
64878         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
64879         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
64880         gl_UNISTD_H_DEFAULTS.
64882 2008-10-25  Eric Blake  <ebb9@byu.net>
64884         signbit: avoid spurious compiler failure
64885         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
64886         declarations inside function.
64888 2008-10-24  Simon Josefsson  <simon@josefsson.org>
64889             Bruno Haible  <bruno@clisp.org>
64891         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
64892         * modules/random_r (Depends-on): Add stdint.
64894 2008-10-24  Bruno Haible  <bruno@clisp.org>
64896         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
64897         Eggert.
64898         * modules/strerror (License): Likewise.
64900 2008-10-24  Jim Meyering  <meyering@redhat.com>
64902         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
64903         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
64905 2008-10-24  Eric Blake  <ebb9@byu.net>
64907         getgroups: fix compilation when getgroups is available
64908         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
64909         but with <config.h> override of getgroups disabled.
64911 2008-10-24  Simon Josefsson  <simon@josefsson.org>
64913         * doc/gnulib.texi (Header files): Add note about C++ problems.
64914         Explained by Bruno Haible <bruno@clisp.org>.
64916 2008-10-23  Bruno Haible  <bruno@clisp.org>
64918         Define a dummy SA_NODEFER macro on Interix.
64919         * lib/signal.in.h (SA_NODEFER): Define fallback.
64920         Reported by Aleksey Cheusov <cheusov@tut.by> via
64921         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
64923 2008-10-23  Bruno Haible  <bruno@clisp.org>
64925         * modules/freadahead (License): Change to LGPLv2+.
64926         Suggested by Simon Josefsson.
64928 2008-10-23  Jim Meyering  <meyering@redhat.com>
64930         random_r: new module
64931         * modules/random_r: New file.
64932         * m4/random_r.m4: New file.
64933         * lib/random_r.c: New file, from glibc.
64934         * modules/random_r-tests: New file.
64935         * tests/test-random_r.c: New file.
64936         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
64937          Declare.
64938         (RAND_MAX): Define.
64939         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
64940         * modules/stdlib: Substitute them, too.
64941         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
64942         * doc/glibc-functions/initstate_r.texi: Mention the new module.
64943         * doc/glibc-functions/random_r.texi: Likewise.
64944         * doc/glibc-functions/setstate_r.texi: Likewise.
64945         * doc/glibc-functions/srandom_r.texi: Likewise.
64946         * config/srclist.txt: Mention it.
64948 2008-10-23  David Lutterkort  <lutter@redhat.com>
64950         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
64951         link requirement
64953 2008-10-23  Jim Meyering  <meyering@redhat.com>
64955         selinux-h: mark parameters of stub functions as intentionally unused
64956         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
64957         * lib/se-context.in.h: Likewise.
64959 2008-10-22  Simon Josefsson  <simon@josefsson.org>
64961         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
64963 2008-10-22  Simon Josefsson  <simon@josefsson.org>
64965         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
64967 2008-10-22  Eric Blake  <ebb9@byu.net>
64969         glthread/thread: avoid compiler warning
64970         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
64971         Add unreachable abort to silence compiler.
64973 2008-10-22  Eric Blake  <ebb9@byu.net>
64975         netdb: also supply struct addrinfo for cygwin 1.5.x
64976         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
64977         older cygwin.
64978         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
64979         cygwin.
64980         * doc/posix-headers/netdb.texi (netdb.h): Document this.
64982 2008-10-22  Bruno Haible  <bruno@clisp.org>
64984         * users.txt: Update entry about pspp.
64986 2008-10-21  Bruno Haible  <bruno@clisp.org>
64988         Simplification.
64989         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
64990         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
64992         Simplification.
64993         * lib/ioctl.c (ioctl): Don't undefine.
64994         * lib/socket.c (socket): Don't undefine.
64996         Remove unused module indicator macros.
64997         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
64998         GNULIB_$1 as a C macro.
65000         * doc/posix-functions/close.texi: Undo last change.
65001         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
65002         Windows platforms.
65004 2008-10-21  Bruno Haible  <bruno@clisp.org>
65006         Add gethostname() declaration to <unistd.h>.
65007         * lib/unistd.in.h (gethostname): New declaration.
65008         * lib/gethostname.c: Include <unistd.h>.
65009         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
65010         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
65011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
65012         and HAVE_GETHOSTNAME.
65013         * modules/gethostname (Depends-on): Add unistd.
65014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65015         (Include): Specify <unistd.h>.
65016         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
65017         HAVE_GETHOSTNAME.
65018         * tests/test-gethostname.c: Include <unistd.h> first.
65020 2008-10-21  Bruno Haible  <bruno@clisp.org>
65022         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
65023         * modules/select-tests (Depends-on): Likewise.
65024         Reported by Simon Josefsson.
65026 2008-10-21  Simon Josefsson  <simon@josefsson.org>
65028         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
65029         * lib/accept.c: New file, based on winsock.c.
65030         * lib/bind.c: New file, based on winsock.c.
65031         * lib/connect.c: New file, based on winsock.c.
65032         * lib/getpeername.c: New file, based on winsock.c.
65033         * lib/getsockname.c: New file, based on winsock.c.
65034         * lib/getsockopt.c: New file, based on winsock.c.
65035         * lib/ioctl.c: New file, based on winsock.c.
65036         * lib/listen.c: New file, based on winsock.c.
65037         * lib/recv.c: New file, based on winsock.c.
65038         * lib/recvfrom.c: New file, based on winsock.c.
65039         * lib/send.c: New file, based on winsock.c.
65040         * lib/sendto.c: New file, based on winsock.c.
65041         * lib/setsockopt.c: New file, based on winsock.c.
65042         * lib/shutdown.c: New file, based on winsock.c.
65043         * lib/socket.c: New file, based on winsock.c.
65044         * lib/w32sock.h: New file, based on winsock.c.
65045         * lib/winsock.c: Remove file.
65046         * modules/accept: Likewise.
65047         * modules/bind: Likewise.
65048         * modules/connect: Likewise.
65049         * modules/getpeername: Likewise.
65050         * modules/getsockname: Likewise.
65051         * modules/getsockopt: Likewise.
65052         * modules/ioctl: Likewise.
65053         * modules/listen: Likewise.
65054         * modules/recv: Likewise.
65055         * modules/recvfrom: Likewise.
65056         * modules/send: Likewise.
65057         * modules/sendto: Likewise.
65058         * modules/setsockopt: Likewise.
65059         * modules/shutdown: Likewise.
65060         * modules/socket: Use socket.c instead of winsock.c.
65061         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
65062         * doc/posix-functions/accept.texi: Doc fix.
65063         * doc/posix-functions/bind.texi: Doc fix.
65064         * doc/posix-functions/close.texi: Doc fix.
65065         * doc/posix-functions/connect.texi: Doc fix.
65066         * doc/posix-functions/getpeername.texi: Doc fix.
65067         * doc/posix-functions/getsockname.texi: Doc fix.
65068         * doc/posix-functions/getsockopt.texi: Doc fix.
65069         * doc/posix-functions/ioctl.texi: Doc fix.
65070         * doc/posix-functions/listen.texi: Doc fix.
65071         * doc/posix-functions/recv.texi: Doc fix.
65072         * doc/posix-functions/recvfrom.texi: Doc fix.
65073         * doc/posix-functions/send.texi: Doc fix.
65074         * doc/posix-functions/sendto.texi: Doc fix.
65075         * doc/posix-functions/setsockopt.texi: Doc fix.
65076         * doc/posix-functions/shutdown.texi: Doc fix.
65077         * doc/posix-functions/socket.texi: Doc fix.
65079 2008-10-20  Bruno Haible  <bruno@clisp.org>
65081         Take into account the role of SIGABRT_COMPAT on Windows 2008.
65082         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
65083         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
65084         as an alias for SIGABRT.
65085         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
65086         (sigaction): Map it to SIGABRT.
65087         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
65089 2008-10-20  Bruno Haible  <bruno@clisp.org>
65091         * lib/fts.c: Don't include lstat.h.
65092         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
65094         Move the lstat() declaration to <sys/stat.h>.
65095         * lib/lstat.h: Remove file.
65096         * lib/sys_stat.in.h: Add special invocation convention.
65097         (lstat): New declaration.
65098         * lib/lstat.c (orig_lstat): New function.
65099         (rpl_lstat): Use orig_lstat instead of lstat.
65100         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
65101         AC_C_INLINE. Set REPLACE_LSTAT.
65102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
65103         and REPLACE_LSTAT.
65104         * modules/lstat (Files): Remove lib/lstat.h.
65105         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
65106         (Include): Specify <sys/stat.h> instead of lstat.h.
65107         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
65108         REPLACE_LSTAT.
65109         * NEWS: Mention the change.
65111 2008-10-20  Bruno Haible  <bruno@clisp.org>
65113         * modules/posix_spawn-tests: New file.
65114         * tests/test-posix_spawn3.c: New file.
65116 2008-10-20  Bruno Haible  <bruno@clisp.org>
65118         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
65119         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
65120         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
65121         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
65122         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
65124 2008-10-20  Bruno Haible  <bruno@clisp.org>
65126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
65127         of posix_spawn on AIX 5.3.
65129 2008-10-20  Bruno Haible  <bruno@clisp.org>
65131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
65133 2008-10-20  Bruno Haible  <bruno@clisp.org>
65135         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
65136         of AC_LANG_PROGRAM.
65138 2008-10-20  Simon Josefsson  <simon@josefsson.org>
65140         * lib/netdb.in.h: Don't define GNU specific constants until they
65141         are supported or needed.  Reported by Bruno Haible
65142         <bruno@clisp.org>.
65144 2008-10-20  Simon Josefsson  <simon@josefsson.org>
65146         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
65148 2008-10-20  Simon Josefsson  <simon@josefsson.org>
65150         * lib/getaddrinfo.h: Remove file.
65151         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
65152         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
65153         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
65154         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
65155         * modules/netdb: Substitute GNULIB_GETADDRINFO.
65156         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
65157         * tests/test-getaddrinfo.c: Likewise.
65158         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
65159         * NEWS: Mention change.
65161 2008-10-19  Bruno Haible  <bruno@clisp.org>
65163         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
65165 2008-10-19  Bruno Haible  <bruno@clisp.org>
65167         * lib/wait-process.c: Include simply <sys/wait.h>.
65168         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
65169         WIFSTOPPED): Remove fallback definitions.
65170         * modules/wait-process (Depends-on): Add sys_wait.
65172         New module 'sys_wait'.
65173         * modules/sys_wait: New file.
65174         * lib/sys_wait.in.h: New file, partially copied from
65175         lib/wait-process.c.
65176         * m4/sys_wait_h.m4: New file.
65177         * doc/posix-headers/sys_wait.texi: Mention the new module.
65179 2008-10-19  Bruno Haible  <bruno@clisp.org>
65181         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
65183 2008-10-19  Bruno Haible  <bruno@clisp.org>
65185         Assume that waitpid() fills an 'int' status, not a 'union wait'.
65186         * lib/wait-process.c (WAIT_T): Remove type.
65187         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
65188         (wait_subprocess): Update.
65190 2008-10-19  Bruno Haible  <bruno@clisp.org>
65192         New module 'atoll'.
65193         * modules/atoll: New file.
65194         * lib/stdlib.in.h (atoll): New declaration.
65195         * lib/atoll.c: New file, from glibc with modifications.
65196         * m4/atoll.m4: New file.
65197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
65198         HAVE_ATOLL.
65199         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
65200         * doc/posix-functions/atoll.texi: Mention the new module.
65202 2008-10-19  Bruno Haible  <bruno@clisp.org>
65204         Add strtoull() declaration to <stdlib.h>.
65205         * lib/stdlib.in.h (strtoull): New declaration.
65206         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
65207         Set HAVE_STRTOULL.
65208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
65209         HAVE_STRTOULL.
65210         * modules/strtoull (Depends-on): Add stdlib.
65211         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65212         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
65213         HAVE_STRTOULL.
65215 2008-10-19  Bruno Haible  <bruno@clisp.org>
65217         Add strtoll() declaration to <stdlib.h>.
65218         * lib/stdlib.in.h (strtoll): New declaration.
65219         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
65220         Set HAVE_STRTOLL.
65221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
65222         HAVE_STRTOLL.
65223         * modules/strtoll (Depends-on): Add stdlib.
65224         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65225         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
65227 2008-10-19  Bruno Haible  <bruno@clisp.org>
65229         * modules/bcopy (Depends-on): Add strings.
65230         (Include): Specify <strings.h>.
65232 2008-10-19  Bruno Haible  <bruno@clisp.org>
65234         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
65236 2008-10-19  Bruno Haible  <bruno@clisp.org>
65238         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
65239         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
65240         mingw.
65242 2008-10-19  Bruno Haible  <bruno@clisp.org>
65244         * lib/atanl.c: Don't include isnanl.h.
65245         * lib/cosl.c: Likewise.
65246         * lib/ldexpl.c: Likewise.
65247         * lib/logl.c: Likewise.
65248         * lib/sinl.c: Likewise.
65249         * lib/sqrtl.c: Likewise.
65250         * lib/tanl.c: Likewise.
65252         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
65253         * lib/isnanf.h: Remove file.
65254         * lib/isnand.h: Remove file.
65255         * lib/isnanl.h: Remove file.
65256         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
65257         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
65258         macros.
65259         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
65260         HAVE_ISNANF, don't define it as a C macro.
65261         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
65262         HAVE_ISNAND, don't define it as a C macro.
65263         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
65264         HAVE_ISNANL, don't define it as a C macro.
65265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
65266         HAVE_ISNAN[FDL].
65267         * modules/isnanf (Files): Remove lib/isnanf.h.
65268         (Depends-on): Add math.
65269         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
65270         (Include): Specify <math.h> instead of isnanf.h.
65271         * modules/isnand (Files): Remove lib/isnand.h.
65272         (Depends-on): Add math.
65273         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
65274         (Include): Specify <math.h> instead of isnand.h.
65275         * modules/isnanl (Files): Remove lib/isnanl.h.
65276         (Depends-on): Add math.
65277         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
65278         (Include): Specify <math.h> instead of isnanl.h.
65279         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
65280         HAVE_ISNAN[FDL].
65281         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
65282         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
65283         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
65284         * NEWS: Mention the change.
65286 2008-10-18  Bruno Haible  <bruno@clisp.org>
65288         Add getusershell(), setusershell(), endusershell() declarations to
65289         <unistd.h>.
65290         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
65291         declarations.
65292         * lib/getusershell.c: Include unistd.h.
65293         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
65294         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
65295         HAVE_GETUSERSHELL.
65296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
65297         and HAVE_GETUSERSHELL.
65298         * modules/getusershell (Depends-on): Add unistd, extensions.
65299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65300         (Include): Specify <unistd.h>.
65301         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
65302         HAVE_GETUSERSHELL.
65304 2008-10-18  Bruno Haible  <bruno@clisp.org>
65306         Add a getloadavg() declaration to <stdlib.h>.
65307         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
65308         getloadavg declaration.
65309         (getloadavg): New declaration.
65310         * lib/getloadavg.c: Include <stdlib.h> first.
65311         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
65312         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
65313         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
65314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
65315         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
65316         * modules/getloadavg (Depends-on): Add stdlib, extensions.
65317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65318         (Include): Specify <stdlib.h>.
65319         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
65320         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
65322 2008-10-18  Bruno Haible  <bruno@clisp.org>
65324         * lib/dirchownmod.c: Don't include lchmod.h.
65326         Move the lchmod() declaration to <sys/stat.h>.
65327         * lib/lchmod.h: Remove file.
65328         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
65329         (lchmod): New declaration, moved here from lib/lchown.h.
65330         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
65331         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
65332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
65333         and HAVE_LCHMOD.
65334         * modules/lchmod (Files): Remove lib/lchmod.h.
65335         (Depends-on): Add sys_stat, extensions.
65336         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
65337         (Include): Specify <sys/stat.h> instead of lchmod.h.
65338         * modules/sys_stat (Depends-on): Add link-warning.
65339         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
65340         definition of GL_LINK_WARNING.
65341         * NEWS: Mention the change.
65343 2008-10-18  Bruno Haible  <bruno@clisp.org>
65345         * lib/fchdir.c: Don't include dirfd.h.
65346         * lib/fts.c: Likewise.
65347         * lib/getcwd.c: Likewise.
65348         * lib/glob.c: Likewise.
65350         Move the dirfd() declaration to <dirent.h>.
65351         * lib/dirfd.h: Remove file.
65352         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
65353         (dirfd): New declaration.
65354         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
65355         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
65356         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
65357         HAVE_DECL_DIRFD.
65358         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
65359         HAVE_DECL_DIRFD.
65360         * modules/dirfd (Files): Remove lib/dirfd.h.
65361         (Depends-on): Add dirent, extensions.
65362         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
65363         (Include): Specify <dirent.h> instead of dirfd.h.
65364         * modules/dirent (Depends-on): Add link-warning.
65365         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
65366         definition of GL_LINK_WARNING.
65367         * NEWS: Mention the change.
65369 2008-10-18  Bruno Haible  <bruno@clisp.org>
65371         Move the euidaccess() declaration to <unistd.h>.
65372         * lib/euidaccess.h: Remove file.
65373         * lib/unistd.in.h (euidaccess): New declaration.
65374         * lib/euidaccess.c: Don't include euidaccess.h.
65375         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
65376         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
65377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
65378         and HAVE_EUIDACCESS.
65379         * modules/euidaccess (Files): Remove lib/euidaccess.h.
65380         (Depends-on): Add unistd.
65381         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65382         (Include): Specify <unistd.h> instead of euidaccess.h.
65383         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
65384         HAVE_EUIDACCESS.
65385         * NEWS: Mention the change.
65387 2008-10-18  Bruno Haible  <bruno@clisp.org>
65389         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
65391         Move the getdomainname() declaration to <unistd.h>.
65392         * lib/getdomainname.h: Remove file.
65393         * lib/unistd.in.h (getdomainname): New declaration.
65394         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
65395         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
65396         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
65397         HAVE_GETDOMAINNAME.
65398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65399         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
65400         * modules/getdomainname (Files): Remove lib/getdomainname.h.
65401         (Depends-on): Add unistd, extensions.
65402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65403         (Includes): Specify <unistd.h> instead of getdomainname.h.
65404         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
65405         HAVE_GETDOMAINNAME.
65406         * NEWS: Mention the change.
65408 2008-10-18  Bruno Haible  <bruno@clisp.org>
65410         * modules/dirent: New file.
65411         * m4/dirent_h.m4: New file.
65412         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
65413         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
65414         * modules/fchdir (Files): Remove lib/dirent.in.h.
65415         (Depends-on): Add dirent.
65416         (Makefile.am): Move rules to modules/dirent.
65417         * doc/posix-headers/dirent.texi: Mention the new module.
65419 2008-10-18  Bruno Haible  <bruno@clisp.org>
65421         Avoid -Wunused-parameter warnings in public gnulib header files.
65422         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
65423         macro.
65424         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
65426 2008-10-18  Bruno Haible  <bruno@clisp.org>
65428         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
65429         * doc/glibc-functions/error.texi: Mention the module 'error'.
65430         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
65431         * doc/glibc-functions/getdomainname.texi: Mention the module
65432         'getdomainname'.
65433         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
65434         * doc/glibc-functions/getpagesize.texi: Mention the module
65435         'getpagesize'.
65436         * doc/glibc-functions/getusershell.texi: Mention the module
65437         'getusershell'.
65438         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
65439         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
65440         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
65441         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
65442         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
65443         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
65444         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
65445         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
65446         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
65447         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
65448         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
65449         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
65450         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
65451         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
65453 2008-10-17  Bruno Haible  <bruno@clisp.org>
65455         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
65456         HP-UX and IRIX, use -0.0L.
65457         * tests/test-ceill.c (minus_zero): Likewise.
65458         * tests/test-floorl.c (minus_zero): Likewise.
65459         * tests/test-frexpl.c (minus_zero): Likewise.
65460         * tests/test-isnan.c (minus_zerol): Likewise.
65461         * tests/test-isnanl.h (minus_zero): Likewise.
65462         * tests/test-ldexpl.c (minus_zero): Likewise.
65463         * tests/test-roundl.c (minus_zero): Likewise.
65464         * tests/test-signbit.c (minus_zerol): Likewise.
65465         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
65466         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
65467         * tests/test-truncl.c (minus_zero): Likewise.
65468         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
65469         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
65470         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
65471         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
65473 2008-10-17  Bruno Haible  <bruno@clisp.org>
65475         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
65476         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
65477         that it gets activated only for gcc >= 3.0.
65478         * lib/dirent.in.h: Likewise.
65479         * lib/errno.in.h: Likewise.
65480         * lib/fcntl.in.h: Likewise.
65481         * lib/float.in.h: Likewise.
65482         * lib/iconv.in.h: Likewise.
65483         * lib/inttypes.in.h: Likewise.
65484         * lib/locale.in.h: Likewise.
65485         * lib/math.in.h: Likewise.
65486         * lib/netdb.in.h: Likewise.
65487         * lib/netinet_in.in.h: Likewise.
65488         * lib/search.in.h: Likewise.
65489         * lib/signal.in.h: Likewise.
65490         * lib/spawn.in.h: Likewise.
65491         * lib/stdarg.in.h: Likewise.
65492         * lib/stdint.in.h: Likewise.
65493         * lib/stdio.in.h: Likewise.
65494         * lib/stdlib.in.h: Likewise.
65495         * lib/string.in.h: Likewise.
65496         * lib/strings.in.h: Likewise.
65497         * lib/sys_file.in.h: Likewise.
65498         * lib/sys_ioctl.in.h: Likewise.
65499         * lib/sys_select.in.h: Likewise.
65500         * lib/sys_socket.in.h: Likewise.
65501         * lib/sys_stat.in.h: Likewise.
65502         * lib/sys_time.in.h: Likewise.
65503         * lib/sysexits.in.h: Likewise.
65504         * lib/time.in.h: Likewise.
65505         * lib/unistd.in.h: Likewise.
65506         * lib/wchar.in.h: Likewise.
65507         * lib/wctype.in.h: Likewise.
65508         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65510 2008-10-17  Jim Meyering  <meyering@redhat.com>
65512         ignore-value: don't depend on inline module
65513         * modules/ignore-value (Depends-on): Remove 'inline'.
65514         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
65515         Suggestion from Bruno Haible.
65517 2008-10-17  Bruno Haible  <bruno@clisp.org>
65519         New implementation of condition variables for Win32.
65520         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
65521         (gl_linked_waitqueue_t): New type.
65522         (gl_cond_t): Use it.
65523         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
65524         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
65525         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
65526         (glthread_cond_init_func, glthread_cond_wait_func,
65527         glthread_cond_timedwait_func, glthread_cond_signal_func,
65528         glthread_cond_broadcast_func, glthread_cond_destroy_func):
65529         Reimplemented on the basis of gl_linked_waitqueue_t.
65530         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
65531         gl_waitqueue_t.
65532         (gl_rwlock_t): Update.
65533         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
65535 2008-10-17  Simon Josefsson  <simon@josefsson.org>
65537         * modules/recvfrom (Depends-on): Add dependency on getpeername.
65538         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65540 2008-10-17  Jim Meyering  <meyering@redhat.com>
65542         ignore-value: new module
65543         * modules/ignore-value: New file.
65544         * lib/ignore-value.h: New file.
65545         * MODULES.html.sh (Compiler warning management): New section,
65546         just for this module.  More to come.
65548 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65550         open-safer.c: avoid 'signed and unsigned in conditional...' warning
65551         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
65552         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
65554 2008-10-16  Jim Meyering  <meyering@redhat.com>
65556         openat-die.c: avoid 'no previous prototype' warning
65557         * lib/openat-die.c: Include "openat.h".
65558         Reported by Reuben Thomas <rrt@sc3d.org>.
65560 2008-10-16  Simon Josefsson  <simon@josefsson.org>
65562         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
65563         * lib/netdb.in.h: Fix typo.
65564         Reported by Bruno Haible  <bruno@clisp.org>
65566         * lib/netdb.in.h: Include sys/socket.h for platforms without
65567         netdb.h, to get structures like hostent on MinGW.
65568         * modules/netdb (Depends-on): Add sys_socket.
65570 2008-10-15  Simon Josefsson  <simon@josefsson.org>
65572         * modules/netdb, modules/netdb-tests: New file.
65573         * m4/netdb_h.m4: New file.
65574         * lib/netdb.in.h: Add, currently just an empty file pending
65575         definitions.
65576         * tests/test-netdb.c: New file.
65577         * doc/posix-headers/netdb.texi: Mention that we replace it if
65578         needed.
65579         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65580         netdb.
65582 2008-10-15  Simon Josefsson  <simon@josefsson.org>
65584         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
65585         with code.
65587 2008-10-13  Bruno Haible  <bruno@clisp.org>
65589         * lib/glthread/cond.c (glthread_cond_wait_func,
65590         glthread_cond_timedwait_func): Add a comment.
65592 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65594         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
65595         * tests/test-select.c: Likewise,
65597 2008-10-13  Bruno Haible  <bruno@clisp.org>
65599         * lib/glthread/cond.c (glthread_cond_wait_func,
65600         glthread_cond_timedwait_func): Fix variable name.
65601         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65603 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
65605         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
65606         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
65607         struct sockaddr.sa_len.
65608         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
65610 2008-10-13  Simon Josefsson  <simon@josefsson.org>
65612         * build-aux/pmccabe2html: Add css and css_url parameters.
65614 2008-10-12  Bruno Haible  <bruno@clisp.org>
65616         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
65617         calling aclx_get.
65618         Reported by Rainer Tammer <tammer@tammer.net>.
65620 2008-10-12  Bruno Haible  <bruno@clisp.org>
65622         Use msvcrt aware primitives for creation/termination of Win32 threads.
65623         * lib/glthread/thread.c: Include <process.h>.
65624         (glthread_create_func): Use _beginthreadex instead of CreateThread.
65625         (wrapper_func): Update signature.
65626         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
65628 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65629             Bruno Haible  <bruno@clisp.org>
65631         Provide a Win32 implementation of the 'cond' module.
65632         * lib/glthread/cond.h [USE_WIN32]: New implementation.
65633         * lib/glthread/cond.c (glthread_cond_init_func,
65634         glthread_cond_wait_func, glthread_cond_timedwait_func,
65635         glthread_cond_signal_func, glthread_cond_broadcast_func,
65636         glthread_cond_destroy_func) [USE_WIN32]: New functions.
65637         * modules/cond (Dependencies): Add gettimeofday.
65639 2008-10-11  Bruno Haible  <bruno@clisp.org>
65641         Make sleep work on older versions of mingw.
65642         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
65643         only whether it exists.
65644         * doc/posix-functions/sleep.texi: Mention the problem with older
65645         versions of mingw.
65647 2008-10-11  Bruno Haible  <bruno@clisp.org>
65649         New module 'shutdown'.
65650         * modules/shutdown: New file.
65651         * lib/sys_socket.in.h (shutdown): New declaration.
65652         * lib/winsock.c (shutdown): New function.
65653         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65654         GNULIB_SHUTDOWN.
65655         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
65656         * doc/posix-functions/shutdown.texi: Document the new module.
65658 2008-10-11  Jim Meyering  <meyering@redhat.com>
65660         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
65662 2008-10-11  Bruno Haible  <bruno@clisp.org>
65664         New module 'fclose'.
65665         * modules/fclose: New file.
65666         * lib/stdio.in.h (fclose): New declaration.
65667         * lib/fclose.c: New file.
65668         * m4/fclose.m4: New file.
65669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
65670         REPLACE_FCLOSE.
65671         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
65672         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
65673         REPLACE_FCLOSE.
65674         * modules/close (Depends-on): fclose.
65675         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
65677 2008-10-11  Bruno Haible  <bruno@clisp.org>
65679         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
65680         set errno and don't call _close.
65682 2008-10-10  Bruno Haible  <bruno@clisp.org>
65684         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
65685         ACL, not afterwards. Fixes test failure on Cygwin.
65687 2008-10-09  Ben Pfaff  <blp@gnu.org>
65689         * build-aux/announce-gen: Fix gnulib version related part of usage
65690         message.  Die with a useful error message if no tarballs are
65691         found.
65693 2008-10-10  Jim Meyering  <meyering@redhat.com>
65695         bootstrap: use git's --depth=N option only if it's supported
65696         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
65697         recognize the --depth option.  Reported by Pádraig Brady.
65699 2008-10-09  Bruno Haible  <bruno@clisp.org>
65701         New module 'ioctl'.
65702         * modules/ioctl: New file.
65703         * lib/sys_socket.in.h (ioctl): Remove declaration.
65704         * lib/winsock.c: Include <sys/ioctl.h>.
65705         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
65706         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
65707         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
65708         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
65709         * doc/posix-functions/ioctl.texi: Mention the new module.
65711 2008-10-09  Bruno Haible  <bruno@clisp.org>
65713         New module 'sys_ioctl'.
65714         * lib/sys_ioctl.in.h: New file.
65715         * m4/sys_ioctl_h.m4: New file.
65716         * modules/sys_ioctl: New file.
65717         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
65719 2008-10-09  Bruno Haible  <bruno@clisp.org>
65721         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
65722         * lib/winsock.c: Include <stdarg.h>.
65723         (rpl_ioctl): Change to second argument 'int' and then varargs.
65725 2008-10-09  Bruno Haible  <bruno@clisp.org>
65727         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
65728         when the sys_socket module is present and the system has <winsock2.h>.
65730 2008-10-09  Bruno Haible  <bruno@clisp.org>
65732         * doc/posix-functions/close.texi: Mention module 'close' instead of
65733         module 'sys_socket'.
65735 2008-10-09  Bruno Haible  <bruno@clisp.org>
65737         * doc/glibc-headers/sys_ioctl.texi: New file.
65738         * doc/gnulib.texi: Include it.
65740 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65741             Bruno Haible  <bruno@clisp.org>
65743         Combine the two replacements of 'close'.
65744         * lib/sys_socket.in.h (close): Define to a reminder to include
65745         <unistd.h>.
65746         (_gl_close_fd_maybe_socket): New declaration.
65747         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
65748         * lib/winsock.c (close): Remove undefinition.
65749         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
65750         needed for the gnulib module 'close'.
65751         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
65752         define to an error symbol or to a warning, if suitable.
65753         * lib/close.c: Include <sys/socket.h>.
65754         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
65755         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
65756         UNISTD_H_HAVE_WINSOCK2_H.
65757         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
65758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65759         UNISTD_H_HAVE_WINSOCK2_H.
65760         * modules/sys_socket (Files): Add m4/unistd_h.m4.
65761         (configure.ac): Set a module indicator.
65762         (Makefile.am): Substitute GNULIB_CLOSE.
65763         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
65764         * modules/poll-tests (Depends-on): Add close.
65765         * modules/select-tests (Depends-on): Likewise.
65767 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65768             Bruno Haible  <bruno@clisp.org>
65770         New module 'close'.
65771         * modules/close: New file.
65772         * lib/unistd.in.h (close): Move declaration out of the
65773         FCHDIR_REPLACEMENT scope.
65774         (_gl_unregister_fd): New declaration.
65775         * lib/close.c: New file.
65776         * lib/fchdir.c (rpl_close): Remove function.
65777         * m4/close.m4: New file.
65778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
65779         close.
65780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
65781         REPLACE_CLOSE.
65782         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
65783         REPLACE_CLOSE.
65784         * modules/fchdir (Depends-on): Add close.
65786 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65787             Bruno Haible  <bruno@clisp.org>
65789         * lib/fcntl.in.h (open): Simplify conditionals.
65790         (_gl_register_fd): New declaration.
65791         * lib/fchdir.c (rpl_open): Remove function.
65792         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
65793         also.
65794         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
65795         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
65796         open.
65798 2008-10-09  Jim Meyering  <meyering@redhat.com>
65800         GNUmakefile: use the more name-space-friendly "_version"
65801         * top/GNUmakefile (_dummy): Update.
65802         (_version): Rename from "version".
65804 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65805             Bruno Haible  <bruno@clisp.org>
65807         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
65808         rpl_close.
65809         (_gl_register_fd): New function, extracted from rpl_open.
65810         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
65811         (rpl_open, rpl_opendir): Use _gl_register_fd.
65813 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65815         Fix organization of 'open' replacement.
65816         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
65817         (gl_FUNC_OPEN): Use it.
65818         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
65820 2008-10-08  Bruno Haible  <bruno@clisp.org>
65822         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
65824 2008-10-08  Simon Josefsson  <simon@josefsson.org>
65826         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
65827         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
65828         listen).
65830 2008-10-08  Eric Blake  <ebb9@byu.net>
65832         GNUmakefile: add 'make version' target
65833         * top/GNUmakefile (_curr-ver): Split version update rules...
65834         (version): ...into a target.
65836 2008-10-07  Bruno Haible  <bruno@clisp.org>
65838         Use a more portable replacement expression for -0.0L.
65839         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
65840         instead of -0.0L. Fix m4 quotation.
65842         * tests/test-signbit.c: Include <float.h>.
65843         (minus_zero): New variable.
65844         (test_signbitl): Use minus_zero instead of -zero.
65845         * modules/signbit-tests (Depends-on): Add float.
65847         * tests/test-ceill.c: Include <float.h>.
65848         (zero): Remove variable.
65849         (minus_zero): New variable.
65850         (main): Use minus_zero instead of -zero.
65851         * modules/ceill-tests (Depends-on): Add float.
65853         * tests/test-floorl.c: Include <float.h>.
65854         (zero): Remove variable.
65855         (minus_zero): New variable.
65856         (main): Use minus_zero instead of -zero.
65857         * modules/floorl-tests (Depends-on): Add float.
65859         * tests/test-roundl.c: Include <float.h>.
65860         (zero): Remove variable.
65861         (minus_zero): New variable.
65862         (main): Use minus_zero instead of -zero.
65863         * modules/roundl-tests (Depends-on): Add float.
65865         * tests/test-truncl.c: Include <float.h>.
65866         (zero): Remove variable.
65867         (minus_zero): New variable.
65868         (main): Use minus_zero instead of -zero.
65869         * modules/truncl-tests (Depends-on): Add float.
65871         * tests/test-frexpl.c (zero): Remove variable.
65872         (minus_zero): New variable.
65873         (main): Use minus_zero instead of -zero.
65874         * modules/frexpl-tests (Depends-on): Add float.
65876         * tests/test-isnan.c (zerol): Remove variable.
65877         (minus_zerol): New variable.
65878         (test_long_double): Use minus_zerol instead of -zerol.
65879         * modules/isnan-tests (Depends-on): Add float.
65881         * tests/test-isnanl.h (zero): Remove variable.
65882         (minus_zero): New variable.
65883         (main): Use minus_zero instead of -zero.
65884         * modules/isnanl-nolibm-tests (Depends-on): Add float.
65885         * modules/isnanl-tests (Depends-on): Add float.
65887         * tests/test-ldexpl.c (zero): Remove variable.
65888         (minus_zero): New variable.
65889         (main): Use minus_zero instead of -zero.
65890         * modules/ldexpl-tests (Depends-on): Add float.
65892         * tests/test-snprintf-posix.h (zerol): Remove variable.
65893         (minus_zerol): New variable.
65894         (test_function): Use minus_zerol instead of -zerol.
65895         * modules/snprintf-posix-tests (Depends-on): Add float.
65896         * modules/vsnprintf-posix-tests (Depends-on): Add float.
65898         * tests/test-sprintf-posix.h (zerol): Remove variable.
65899         (minus_zerol): New variable.
65900         (test_function): Use minus_zerol instead of -zerol.
65901         * modules/sprintf-posix-tests (Depends-on): Add float.
65902         * modules/vsprintf-posix-tests (Depends-on): Add float.
65904         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
65905         (minus_zerol): New variable.
65906         (test_function): Use minus_zerol instead of -zerol.
65907         * modules/vasnprintf-posix-tests (Depends-on): Add float.
65909         * tests/test-vasprintf-posix.c (zerol): Remove variable.
65910         (minus_zerol): New variable.
65911         (test_function): Use minus_zerol instead of -zerol.
65912         * modules/vasprintf-posix-tests (Depends-on): Add float.
65914 2008-10-07  Simon Josefsson  <simon@josefsson.org>
65916         * MODULES.html.sh (Support for building documentation): Mention
65917         pmccabe2html.  Sort entries.
65919         Add pmccabe2html module, from gnupdf.
65920         * build-aux/pmccabe.css: New file.
65921         * build-aux/pmccabe2html: New file.
65922         * m4/pmccabe2html.m4: New file.
65923         * modules/pmccabe2html: New file.
65925 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
65927         flock: new module
65928         * MODULES.html.sh: Add to list of modules.
65929         * lib/flock.c: flock implementation for Windows and Unix systems
65930         which have fcntl.
65931         * doc/glibc-functions/flock.texi: Update documentation.
65932         * lib/sys_file.in.h: <sys/file.h> header file.
65933         * m4/flock.m4: M4 macros.
65934         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
65935         * modules/flock: flock module.
65936         * modules/flock-tests: flock tests module.
65937         * modules/sys_file: sys/file.h module.
65938         * tests/test-flock.c: test suite for flock.
65940 2008-10-06  Jim Meyering  <meyering@redhat.com>
65942         bootstrap: check for LT_INIT more portably still ;-)
65943         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
65944         Spotted by Bruno Haible.
65946 2008-10-06  Eric Blake  <ebb9@byu.net>
65948         test-signbit: avoid tripping Irix cc bug on -0.0L
65949         * tests/test-signbit.c (minus_zerol): Delete, and replace with
65950         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
65951         entire testsuite consistent and avoids an Irix 6.2 bug.
65953 2008-10-05  Bruno Haible  <bruno@clisp.org>
65954             Jim Meyering  <jim@meyering.net>
65956         Add an option for ignoring EPIPE during close_stdout.
65957         * lib/closeout.h: Include <stdbool.h>.
65958         (close_stdout_set_ignore_EPIPE): New declaration.
65959         * lib/closeout.c: Include <stdbool.h>.
65960         (ignore_EPIPE): New variable.
65961         (close_stdout_set_ignore_EPIPE): New function.
65962         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
65963         * lib/close-stream.c (close_stream): Mention the possible EPIPE
65964         failure.
65965         * modules/closeout (Depends-on): Add stdbool.
65967 2008-10-05  Bruno Haible  <bruno@clisp.org>
65969         * modules/accept: New file.
65970         * modules/bind: New file.
65971         * modules/connect: New file.
65972         * modules/getpeername: New file.
65973         * modules/getsockname: New file.
65974         * modules/getsockopt: New file.
65975         * modules/listen: New file.
65976         * modules/recv: New file.
65977         * modules/recvfrom: New file.
65978         * modules/send: New file.
65979         * modules/sendto: New file.
65980         * modules/setsockopt: New file.
65981         * modules/socket: New file.
65982         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
65983         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
65984         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
65985         the particular module is requested. Add a link warning when the
65986         particular module is not requested.
65987         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
65988         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
65989         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
65990         the particular module is requested.
65991         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
65992         gl_SYS_SOCKET_H_DEFAULTS): New macros.
65993         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
65994         * modules/sys_socket (Depends-on): Add link-warning.
65995         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
65996         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
65997         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
65998         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
65999         GL_LINK_WARNING.
66000         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
66001         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
66002         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
66003         * doc/posix-functions/getpeername.texi: Mention the new module
66004         'getpeername'.
66005         * doc/posix-functions/getsockname.texi: Mention the new module
66006         'getsockname'.
66007         * doc/posix-functions/getsockopt.texi: Mention the new module
66008         'getsockopt'.
66009         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
66010         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
66011         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
66012         * doc/posix-functions/send.texi: Mention the new module 'send'.
66013         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
66014         * doc/posix-functions/setsockopt.texi: Mention the new module
66015         'setsockopt'.
66016         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
66017         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
66018         listen, connect, accept.
66019         * modules/select-tests (Depends-on): Likewise.
66021 2008-10-05  Bruno Haible  <bruno@clisp.org>
66023         * lib/winsock.c (strerror): Remove unused #undef.
66024         (rpl_close): Remove unused local variable.
66026         * modules/sys_socket (Depends-on); Add errno.
66028 2008-10-05  Bruno Haible  <bruno@clisp.org>
66030         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
66031         (select): Add a link warning when the 'select' module is not used.
66032         * modules/sys_select (Depends-on): Add link-warning.
66033         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
66034         Suggested by Paolo Bonzini.
66036 2008-10-05  Jim Meyering  <meyering@redhat.com>
66038         bootstrap: check for LT_INIT more portably
66039         * build-aux/bootstrap: Avoid using grep -E, since it's not
66040         portable enough.  Suggestion from Bruno Haible.
66042 2008-10-05  Bruno Haible  <bruno@clisp.org>
66044         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
66045         as being fixed by gnulib.
66047 2008-10-05  Bruno Haible  <bruno@clisp.org>
66049         * modules/select-tests: New file, mostly copied from
66050         modules/sys_select-tests.
66051         * tests/test-select.c: New file, mostly copied from
66052         tests/test-sys_select.c.
66053         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
66054         * modules/sys_select-tests (Depends-on): Remove all dependencies.
66055         (Makefile.am): Remove test_sys_select_LDADD.
66057         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
66058         to an undefined symbol, for an error message.
66059         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
66060         (gl_SYS_SELECT_H_DEFAULTS): New macro.
66061         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
66062         winsock-select.c here.
66063         * modules/sys_select (Files): Remove lib/winsock-select.c.
66064         (Depends-on): Remove alloca.
66065         (Makefile.am): Substitute GNULIB_SELECT.
66066         * modules/select: New file.
66067         * doc/posix-functions/select.texi: Update.
66069 2008-10-05  Bruno Haible  <bruno@clisp.org>
66071         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
66072         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
66073         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
66074         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
66075         getdtablesize.
66076         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
66077         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
66079 2008-10-05  Bruno Haible  <bruno@clisp.org>
66081         * modules/getdtablesize-tests: New file.
66082         * tests/test-getdtablesize.c: New file.
66084         New module 'getdtablesize'.
66085         * lib/unistd.in.h (getdtablesize): New declaration.
66086         * lib/getdtablesize.c: New file.
66087         * m4/getdtablesize.m4: New file.
66088         * modules/getdtablesize: New file.
66089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66090         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
66091         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
66092         HAVE_GETDTABLESIZE.
66093         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
66095 2008-10-05  Bruno Haible  <bruno@clisp.org>
66097         * modules/sched (Makefile.am): Fix typo.
66098         Reported by Simon Josefsson.
66100 2008-10-05  Jim Meyering  <meyering@redhat.com>
66102         bootstrap: check for LT_INIT, too
66103         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
66104         are deprecated.  Suggestion from Ralf Wildenhues.
66106 2008-10-05  Bruno Haible  <bruno@clisp.org>
66108         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
66109         overriding them by ours.
66110         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
66112 2008-10-05  Jim Meyering  <meyering@redhat.com>
66114         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
66115         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
66116         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
66118 2008-10-04  Bruno Haible  <bruno@clisp.org>
66120         * modules/dup2 (License): Change to LGPLv2+.
66121         * modules/sleep (License): Likewise.
66122         * modules/perror (License): Likewise.
66123         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
66124         Blake.
66125         * modules/signal (License): Likewise.
66126         * modules/sigprocmask (License): Likewise.
66127         * modules/raise (License): Change to LGPLv2+, with approval by Jim
66128         Meyering.
66130 2008-10-04  Bruno Haible  <bruno@clisp.org>
66132         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
66133         Reported by Rainer Tammer <tammer@tammer.net>.
66135 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
66136             Bruno Haible  <bruno@clisp.org>
66138         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
66139         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
66140         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
66142 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
66144         filevercmp: new module
66145         * lib/filevercmp.h: New function filevercmp comparing version strings.
66146         * lib/filevercmp.c: Implementation of filevercmp function.
66147         * modules/filevercmp: Module metadata.
66148         * tests/test-filevercmp.c: Unit test for new module.
66149         * modules/filevercmp-tests: Unit test metadata.
66150         * MODULES.html.sh: Add filevercmp module.
66152 2008-10-03  Bruno Haible  <bruno@clisp.org>
66154         * lib/c-ctype.h: Add comment.
66155         Reported by Jim Meyering.
66157 2008-10-02  Bruno Haible  <bruno@clisp.org>
66159         * modules/posix_spawn-internal (Depends-on): Add 'open'.
66161 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
66163         * build-aux/bootstrap: Allow renaming bootstrap, and change the
66164         name of bootstrap.conf accordingly.
66166 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
66168         * build-aux/bootstrap: Install git-merge-changelog configuration
66169         items into .gitconfig if needed.
66171 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
66173         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
66174         git repository, and initialize/update it accordingly.
66176 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
66178         * modules/fsync-tests: New file.
66179         * tests/test-fsync.c: New file.
66181         New module 'fsync'.
66182         * lib/fsync.c: New file.
66183         * m4/fsync.m4: New file.
66184         * modules/fsync: New file.
66185         * lib/unistd.in.h (fsync): New declaration.
66186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
66187         GNULIB_FSYNC and HAVE_FSYNC.
66188         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
66189         * MODULES.html.sh (posix_functions): Add fsync.
66190         * doc/posix-functions/fsync.texi: Mention the new module.
66192 2008-10-02  Jim Meyering  <meyering@redhat.com>
66194         fts.c: sync with similar code from coreutils' remove.c
66195         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
66196         Guard also with "#if defined __linux__", since for now at least,
66197         this code is Linux-kernel-specific.
66199 2008-10-02  Jim Meyering  <meyering@redhat.com>
66201         fts: bug fixes
66202         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
66203         Include <sys/vfs.h>, not <sys/statfs.h>.
66205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
66206         Include <sys/vfs.h>, not <sys/statfs.h>.
66208 2008-10-01  Bruno Haible  <bruno@clisp.org>
66210         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
66211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
66212         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
66213         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
66214         * doc/posix-functions/posix_spawnp.texi: Likewise.
66215         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
66216         whether posix_spawn actually works.
66217         * m4/pipe.m4 (gl_PIPE): Likewise.
66218         * modules/execute (Files): Add m4/posix_spawn.m4.
66219         * modules/pipe (Files): Add m4/posix_spawn.m4.
66220         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
66222 2008-10-01  Jim Meyering  <meyering@redhat.com>
66224         remove trailing spaces
66225         * NEWS: Likewise.
66226         * lib/poll.c (poll): Likewise.
66227         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
66228         * lib/winsock.c (rpl_close): Likewise.
66229         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
66230         * modules/yield: Likewise.
66231         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
66232         * tests/test-sys_select.c (connect_to_socket): Likewise.
66234         fts.c: adjust a new interface to be more generally useful
66235         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
66236         (fts_build): Adjust caller.
66238 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66240         * modules/cond-tests: New file.
66241         * tests/test-cond.c: New file.
66243 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66244             Bruno Haible  <bruno@clisp.org>
66246         * modules/cond (Dependencies): Add errno, time.
66247         * lib/glthread/cond.h: Include <time.h>.
66248         (gl_cond_define, gl_cond_define_initialized): Use the same definition
66249         across platforms.
66251 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66252             Bruno Haible  <bruno@clisp.org>
66254         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
66256 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66257             Bruno Haible  <bruno@clisp.org>
66259         * modules/tls-tests (Depends-on): Add thread, yield.
66260         (configure.ac): Remove all checks.
66261         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
66262         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
66263         gl_thread_self): Remove definitions. Include glthread/thread.h and
66264         glthread/yield.h instead.
66265         (test_tls): Pass an additional NULL argument to gl_thread_join.
66267 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66268             Bruno Haible  <bruno@clisp.org>
66270         * modules/lock-tests (Depends-on): Add thread, yield.
66271         (configure.ac): Remove all checks.
66272         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
66273         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
66274         gl_thread_self): Remove definitions. Include glthread/thread.h and
66275         glthread/yield.h instead.
66276         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
66277         additional NULL argument to gl_thread_join.
66279 2008-09-30  Bruno Haible  <bruno@clisp.org>
66281         Fix the Win32 implementation of the 'thread' module.
66282         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
66283         pointer type.
66284         (gl_thread_self): Invoke gl_thread_self_func.
66285         (gl_thread_self_func): New declaration.
66286         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
66287         (do_init_self_key, init_self_key): New functions.
66288         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
66289         Remove some fields.
66290         (running_threads, running_lock): Remove variables.
66291         (get_current_thread_handle): New function.
66292         (gl_thread_self_func, wrapper_func, glthread_create_func,
66293         glthread_join_func, gl_thread_exit_func): Largely rewritten and
66294         simplified.
66296 2008-09-30  Bruno Haible  <bruno@clisp.org>
66298         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
66299         files.
66301 2008-09-30  Jim Meyering  <meyering@redhat.com>
66303         fts.m4: correct the test for statfs.f_type
66304         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
66305         when checking for statfs.f_type.
66307 2008-09-15  Simon Josefsson  <simon@josefsson.org>
66309         tests: avoid some compiler warnings
66310         * tests/test-memchr.c (main): Pass NULL indirectly.
66311         * tests/test-getdate.c (main): Remove unused variable 'ret'.
66313 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
66315         getdate.y: disallow countable dayshifts like "4 yesterday ago"
66316         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
66317         exactly specified dayshifts.
66318         (dayshift): New rule.
66319         (rel): Add dayshift.
66320         (relative_time_table) [tomorrow, yesterday, today, now]:
66321         Use tDAY_SHIFT in place of tDAY_UNIT.
66322         * tests/test-getdate.c: Add tests for now-disallowed countable
66323         dayshifts, e.g., "4 yesterday ago".
66325 2008-09-29  Bruno Haible  <bruno@clisp.org>
66327         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
66328         * tests/test-posix_spawn1.in.sh: Renamed from
66329         tests/test-posix_spawn.in.sh.
66330         * tests/test-posix_spawn2.c: New file.
66331         * tests/test-posix_spawn2.in.sh: New file.
66332         * modules/posix_spawnp-tests (Files): Update.
66333         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
66335 2008-09-29  Bruno Haible  <bruno@clisp.org>
66337         Propagate effects of putenv/setenv/unsetenv to child processes.
66338         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
66339         * lib/pipe.c (create_pipe): Likewise.
66341 2008-09-29  Bruno Haible  <bruno@clisp.org>
66343         Enable use of shell scripts as executables in mingw.
66344         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
66345         run the program as a shell script.
66346         * lib/pipe.c (create_pipe): Likewise.
66347         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
66348         resulting array.
66350 2008-09-29  Eric Blake  <ebb9@byu.net>
66352         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
66354 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
66356         * doc/posix-functions/accept.texi: Update mingw problems.
66357         * doc/posix-functions/bind.texi: Update mingw problems.
66358         * doc/posix-functions/close.texi: Update mingw problems.
66359         * doc/posix-functions/connect.texi: Update mingw problems.
66360         * doc/posix-functions/getpeername.texi: Update mingw problems.
66361         * doc/posix-functions/getsockname.texi: Update mingw problems.
66362         * doc/posix-functions/getsockopt.texi: Update mingw problems.
66363         * doc/posix-functions/ioctl.texi: Update mingw problems.
66364         * doc/posix-functions/listen.texi: Update mingw problems.
66365         * doc/posix-functions/recv.texi: Update mingw problems.
66366         * doc/posix-functions/recvfrom.texi: Update mingw problems.
66367         * doc/posix-functions/select.texi: Update mingw problems.
66368         * doc/posix-functions/send.texi: Update mingw problems.
66369         * doc/posix-functions/sendto.texi: Update mingw problems.
66370         * doc/posix-functions/setsockopt.texi: Update mingw problems.
66371         * doc/posix-functions/socket.texi: Update mingw problems.
66373 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
66374             Bruno Haible  <bruno@clisp.org>
66376         * lib/sys_select.in.h: Include sys/time.h.
66377         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
66378         * modules/sys_select: Depend on sys_time.
66379         * tests/test-sys_select.c: Test that sys/select.h defines struct
66380         timeval fully.
66382 2008-09-29  Bruno Haible  <bruno@clisp.org>
66384         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
66385         * lib/sys_select.in.h: Likewise.
66387 2008-09-29  Bruno Haible  <bruno@clisp.org>
66389         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
66391 2008-09-29  Bruno Haible  <bruno@clisp.org>
66393         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
66394         Set LIBSOCKET instead of augmenting LIBS.
66395         * modules/sockets (Link): New section.
66396         * modules/sockets-tests (test_sockets_LDADD): New variable.
66397         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
66398         * modules/poll-tests (test_poll_LDADD): New variable.
66399         * NEWS: Document the change.
66401 2008-09-29  Bruno Haible  <bruno@clisp.org>
66403         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
66404         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
66405         ARPA_INET_H directly.
66406         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
66408 2008-09-28  Bruno Haible  <bruno@clisp.org>
66410         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
66411         from gl_HEADER_SYS_SOCKET.
66412         (gl_HEADER_SYS_SOCKET): Invoke it.
66413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66415 2008-09-28  Bruno Haible  <bruno@clisp.org>
66417         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
66418         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
66419         Needed on OSF/1 4.0.
66421 2008-09-28  Bruno Haible  <bruno@clisp.org>
66423         Override open more carefully.
66424         * lib/open.c (orig_open): New function.
66425         (rpl_open): Use orig_open instead of open.
66426         * lib/fcntl.in.h: Add special invocation convention.
66427         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
66428         (gl_FUNC_OPEN): Invoke it.
66430         Override freopen more carefully.
66431         * lib/freopen.c (orig_freopen): New function.
66432         (rpl_freopen): Use orig_freopen instead of freopen.
66433         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
66434         (gl_FUNC_FREOPEN): Invoke it.
66436         Override fopen more carefully.
66437         * lib/fopen.c (orig_fopen): New function.
66438         (rpl_fopen): Use orig_fopen instead of fopen.
66439         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
66440         (gl_FUNC_FOPEN): Invoke it.
66441         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
66443 2008-09-28  Bruno Haible  <bruno@clisp.org>
66445         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
66446         SIGPIPE.
66448 2008-09-28  Bruno Haible  <bruno@clisp.org>
66450         * tests/test-sigaction.c (handler, main): Disable the check whether
66451         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
66452         glibc systems with LinuxThreads.
66454 2008-09-28  Bruno Haible  <bruno@clisp.org>
66456         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
66458         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
66459         with AIX xlc.
66460         * lib/fcntl.in.h (open): Likewise.
66461         Reported by Rainer Tammer <tammer@tammer.net>.
66463 2008-09-28  Bruno Haible  <bruno@clisp.org>
66465         * modules/posix_spawnp-tests: New file.
66466         * tests/test-posix_spawn.c: New file.
66467         * tests/test-posix_spawn.in.sh: New file.
66469         New module 'posix_spawnp'.
66470         * modules/posix_spawnp: New file.
66471         * lib/spawnp.c: New file, from GNU libc with modifications.
66472         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
66474         New module 'posix_spawn'.
66475         * modules/posix_spawn: New file.
66476         * lib/spawn.c: New file, from GNU libc with modifications.
66477         * doc/posix-functions/posix_spawn.texi: Mention the new module.
66479         New module 'posix_spawnattr_destroy'.
66480         * modules/posix_spawnattr_destroy: New file.
66481         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
66482         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
66483         module.
66485         New module 'posix_spawnattr_setsigmask'.
66486         * modules/posix_spawnattr_setsigmask: New file.
66487         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
66488         modifications.
66489         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
66490         new module.
66492         New module 'posix_spawnattr_getsigmask'.
66493         * modules/posix_spawnattr_getsigmask: New file.
66494         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
66495         modifications.
66496         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
66497         new module.
66499         New module 'posix_spawnattr_setsigdefault'.
66500         * modules/posix_spawnattr_setsigdefault: New file.
66501         * lib/spawnattr_setdefault.c: New file, from GNU libc with
66502         modifications.
66503         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
66504         new module.
66506         New module 'posix_spawnattr_getsigdefault'.
66507         * modules/posix_spawnattr_getsigdefault: New file.
66508         * lib/spawnattr_getdefault.c: New file, from GNU libc with
66509         modifications.
66510         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
66511         new module.
66513         New module 'posix_spawnattr_setschedpolicy'.
66514         * modules/posix_spawnattr_setschedpolicy: New file.
66515         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
66516         modifications.
66517         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
66518         new module.
66520         New module 'posix_spawnattr_getschedpolicy'.
66521         * modules/posix_spawnattr_getschedpolicy: New file.
66522         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
66523         modifications.
66524         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
66525         new module.
66527         New module 'posix_spawnattr_setschedparam'.
66528         * modules/posix_spawnattr_setschedparam: New file.
66529         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
66530         modifications.
66531         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
66532         new module.
66534         New module 'posix_spawnattr_getschedparam'.
66535         * modules/posix_spawnattr_getschedparam: New file.
66536         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
66537         modifications.
66538         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
66539         new module.
66541         New module 'posix_spawnattr_setpgroup'.
66542         * modules/posix_spawnattr_setpgroup: New file.
66543         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
66544         modifications.
66545         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
66546         module.
66548         New module 'posix_spawnattr_getpgroup'.
66549         * modules/posix_spawnattr_getpgroup: New file.
66550         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
66551         modifications.
66552         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
66553         module.
66555         New module 'posix_spawnattr_setflags'.
66556         * modules/posix_spawnattr_setflags: New file.
66557         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
66558         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
66559         module.
66561         New module 'posix_spawnattr_getflags'.
66562         * modules/posix_spawnattr_getflags: New file.
66563         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
66564         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
66565         module.
66567         New module 'posix_spawnattr_init'.
66568         * modules/posix_spawnattr_init: New file.
66569         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
66570         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
66571         module.
66573         New module 'posix_spawn_file_actions_destroy'.
66574         * modules/posix_spawn_file_actions_destroy: New file.
66575         * lib/spawn_faction_destroy.c: New file, from GNU libc with
66576         modifications.
66577         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
66578         the new module.
66580         New module 'posix_spawn_file_actions_addopen'.
66581         * modules/posix_spawn_file_actions_addopen: New file.
66582         * lib/spawn_faction_addopen.c: New file, from GNU libc with
66583         modifications.
66584         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
66585         the new module.
66587         New module 'posix_spawn_file_actions_adddup2'.
66588         * modules/posix_spawn_file_actions_adddup2: New file.
66589         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
66590         modifications.
66591         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
66592         the new module.
66594         New module 'posix_spawn_file_actions_addclose'.
66595         * modules/posix_spawn_file_actions_addclose: New file.
66596         * lib/spawn_faction_addclose.c: New file, from GNU libc with
66597         modifications.
66598         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
66599         the new module.
66601         New module 'posix_spawn_file_actions_init'.
66602         * modules/posix_spawn_file_actions_init: New file.
66603         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
66604         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
66605         new module.
66607         New module 'posix_spawn-internal'.
66608         * modules/posix_spawn-internal: New file.
66609         * lib/spawn_int.h: New file, from GNU libc with modifications.
66610         * lib/spawni.c: New file, from GNU libc with modifications.
66611         * m4/posix_spawn.m4: New file.
66613         New module 'spawn'.
66614         * modules/spawn: New file.
66615         * lib/spawn.in.h: New file, from GNU libc with modifications.
66616         * m4/spawn_h.m4: New file.
66617         * doc/posix-headers/spawn.texi: Mention the new module.
66619 2008-09-28  Bruno Haible  <bruno@clisp.org>
66621         * modules/sched-tests: New file.
66622         * tests/test-sched.c: New file.
66624         New module 'sched'.
66625         * modules/sched: New file.
66626         * lib/sched.in.h: New file.
66627         * m4/sched_h.m4: New file.
66628         * doc/posix-headers/sched.texi: Mention the new module.
66630 2008-09-27  Eric Blake  <ebb9@byu.net>
66632         Fix previous patch, and tweak references to $0.
66633         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
66634         (func_version, func_gnulib_dir): Don't call this program
66635         gnulib-tool.
66636         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
66637         with using $0 in function.
66638         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
66639         (func_fatal_error): Reuse the name the user invoked us with.
66641 2008-09-27  Bruno Haible  <bruno@clisp.org>
66643         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
66644         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
66645         (gl_ICONV_H): Not here.
66646         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
66647         instead of assigning ICONV_H directly.
66649         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
66650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
66651         WCHAR_H directly.
66653 2008-09-27  Bruno Haible  <bruno@clisp.org>
66655         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
66656         * modules/arpa_inet (Depends-on): Add link-warning.
66657         (Makefile.am): Insert the definition of GL_LINK-WARNING.
66658         * modules/unistd (Makefile.am): Likewise.
66660 2008-09-26  Bruno Haible  <bruno@clisp.org>
66662         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
66663         variables.
66664         (func_version): Essentially copied from gnulib-tool.
66665         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
66666         func_readlink): Copied from gnulib-tool.
66668 2008-09-26  Bruno Haible  <bruno@clisp.org>
66670         * gnulib-tool (func_version): Change directory to $gnulib_dir before
66671         invoking git-version-gen.
66673 2008-09-26  Bruno Haible  <bruno@clisp.org>
66675         * posix-modules: Update to directory names changed on 2008-01-19.
66676         Remove commas in output before splitting into words. No more need to
66677         avoid 'ftruncate' since 2007-02-19.
66679 2008-09-26  Bruno Haible  <bruno@clisp.org>
66681         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
66683 2008-09-26  Bruno Haible  <bruno@clisp.org>
66685         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
66686         * modules/fwriteerror (Depends-on): Add errno.
66688 2008-09-26  Bruno Haible  <bruno@clisp.org>
66690         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
66691         * tests/test-vc-list-files-cvs.sh: Likewise.
66693 2008-09-26  Bruno Haible  <bruno@clisp.org>
66695         * doc/posix-headers/sys_resource.texi: Reorder items.
66697 2008-09-26  Jim Meyering  <meyering@redhat.com>
66699         fts: tweak inode comparison function
66700         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
66701         inode numbers, as documented.
66703         fts: sort dirent entries on inode number before traversing
66704         This avoids a quadratic, seek-related performance penalty when
66705         operating on a directory containing many entries (measurable at 10k;
66706         3.5 hours at 2 million entries with a cold cache) on certain types
66707         of file systems, including ext3 and ext4, but not tmpfs.
66708         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
66709         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
66710         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
66711         (fs_handles_readdir_ordered_dirents_efficiently): New function.
66712         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
66713         (fts_build): Set the stat.st_ino member from D_INO.
66714         If it is likely to be useful, sort dirent entries on inode number.
66716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
66717         and the struct statfs.f_type member.
66718         * modules/fts (Depends-on): Add d-ino.
66720 2008-09-26  Bruno Haible  <bruno@clisp.org>
66722         * modules/sigpipe-die (Depends-on): Add sigpipe.
66724         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
66725         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
66726         and GNULIB_STDIO_H_SIGPIPE are set.
66727         * lib/stdio-write.c: New file.
66728         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
66729         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
66730         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
66731         REPLACE_STDIO_WRITE_FUNCS.
66732         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
66733         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
66734         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
66735         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
66736         * modules/stdio (Files): Add lib/stdio-write.c.
66737         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
66738         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
66739         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
66740         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
66741         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
66742         REPLACE_FPRINTF_POSIX.
66743         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
66744         REPLACE_PRINTF_POSIX.
66745         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
66746         REPLACE_VFPRINTF_POSIX.
66747         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
66748         REPLACE_VPRINTF_POSIX.
66749         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
66750         SIGPIPE issue.
66751         * doc/posix-functions/fputc.texi: Likewise.
66752         * doc/posix-functions/fputs.texi: Likewise.
66753         * doc/posix-functions/fwrite.texi: Likewise.
66754         * doc/posix-functions/printf.texi: Likewise.
66755         * doc/posix-functions/putc.texi: Likewise.
66756         * doc/posix-functions/putchar.texi: Likewise.
66757         * doc/posix-functions/puts.texi: Likewise.
66758         * doc/posix-functions/vfprintf.texi: Likewise.
66759         * doc/posix-functions/vprintf.texi: Likewise.
66761         * modules/safe-write (Depends-on): Add write.
66763         * modules/sigpipe-tests: New file.
66764         * tests/test-sigpipe.c: New file.
66765         * tests/test-sigpipe.sh: New file.
66767         * modules/write: New file.
66768         * lib/unistd.in.h: Include <sys/types.h>.
66769         (write): New declaration.
66770         * lib/write.c: New file.
66771         * m4/write.m4: New file.
66772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66773         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
66774         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
66775         GNULIB_WRITE, REPLACE_WRITE.
66776         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
66777         and the SIGPIPE issue.
66779         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
66780         (raise): New declaration.
66781         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
66782         (ext_signal): New function.
66783         (rpl_raise): New function.
66784         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
66785         GNULIB_SIGNAL_H_SIGPIPE.
66786         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
66787         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
66789         * modules/sigpipe: New file.
66790         * m4/sigpipe.m4: New file.
66792 2008-09-25  Derek Price  <derek@ximbiot.com>
66793             Bruno Haible  <bruno@clisp.org>
66795         * gnulib-tool (func_import): Report all license incompatibilities, not
66796         just the first one.
66798 2008-09-25  Bruno Haible  <bruno@clisp.org>
66800         * gnulib-tool (func_import): When computing the edits, consider not
66801         only the Makefile.ams that exist but also those that will be generated.
66803 2008-09-25  Simon Josefsson  <simon@josefsson.org>
66805         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
66806         fixes gnulib-tool --test warning about duplicate dependency.
66808 2008-09-25  Bruno Haible  <bruno@clisp.org>
66810         * gnulib-tool: Don't ask the user to perform edits in the generated
66811         Makefile.ams.
66812         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
66813         apply to the Makefile.am being generated.
66814         (func_emit_tests_Makefile_am): Execute edits that apply to the
66815         Makefile.am being generated.
66816         (func_import): Setup list of Makefile.am edits before emitting the
66817         Makefile.ams, not at the end.
66818         (func_create_testdir): Update.
66819         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66821 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66823         * gnulib-tool (func_import): Store the --tests-base option in the
66824         comment in gnulib-cache.m4.
66826 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
66828         * NEWS: Document increased portability that sys_select now provides.
66830         * lib/sys_select.in.h: Install select wrapper.
66831         * lib/sys_socket.in.h: Use more descriptive name when there is no
66832         select wrapper.
66833         * lib/winsock-select.c: New.
66834         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
66835         Require gl_HEADER_SYS_SOCKET.
66836         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
66837         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
66838         * tests/test-sys_select.c: Add functional tests.
66840 2008-09-24  Eric Blake  <ebb9@byu.net>
66842         open, fopen: close fd leak in last patch
66843         * lib/open.c (rpl_open): Close fd before returning error.
66844         * lib/fopen.c (rpl_fopen): Close fd before returning error.
66845         * doc/posix-functions/open.texi (open): Document that Irix also
66846         has the bug.
66847         * doc/posix-functions/fopen.texi (fopen): Likewise.
66848         Reported by Paolo Bonzini.
66850 2008-09-24  Bruno Haible  <bruno@clisp.org>
66852         Ensure that a filename ending in a slash cannot be used to access a
66853         non-directory.
66854         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
66855         to check whether it's really a directory.
66856         * lib/fopen.c: Include fcntl.h, unistd.h.
66857         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
66858         and fdopen().
66859         * modules/fopen (Depends-on): Add unistd.
66860         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
66861         * tests/test-fopen.c (main): Likewise.
66862         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
66863         * doc/posix-functions/fopen.texi: Likewise.
66864         Reported by Eric Blake.
66866 2008-09-23  Eric Blake  <ebb9@byu.net>
66868         c-stack: avoid compiler optimizations when provoking overflow
66869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
66870         recursion harder to optimize, to ensure a stack overflow occurs.
66871         * tests/test-c-stack.c (recurse): Likewise.
66872         Borrowed from libsigsegv.
66874         c-stack: work around Irix sigaltstack bug
66875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
66876         whether sigaltstack uses wrong end of stack_t (copied in part from
66877         libsigsegv).
66878         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
66879         Irix bug, without requiring an over-allocation.
66880         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
66881         bug.
66883         fopen: document mingw bug on directories
66884         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
66885         not allowing a stream visiting a directory, even though reading
66886         from such a stream is not portable.
66888 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
66890         * lib/poll.c: Rewrite.
66891         * modules/poll: Depend on alloca.
66893 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
66895         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
66896         instead define prototypes for a full set of wrappers.  Ensure
66897         that Cygwin does not use the compatibility code, which is only
66898         for MinGW.
66899         * lib/winsock.c: New.
66900         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
66901         * modules/sys_socket: Add lib/winsock.c.
66903         * modules/poll-tests: Add errno and perror.
66904         * tests/test-poll.c: Use ioctl, not ioctlsocket.
66906 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
66908         * tests/test-poll.c: Downgrade minimum needed Winsock version.
66910 2008-09-23  Bruno Haible  <bruno@clisp.org>
66912         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
66913         * doc/glibc-functions/*: Likewise.
66915 2008-09-23  Simon Josefsson  <simon@josefsson.org>
66917         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
66918         success.
66920 2008-09-22  Eric Blake  <ebb9@byu.net>
66921             Bruno Haible  <bruno@clisp.org>
66923         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
66924         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
66925         supply %A but mishandle pseudo-NaN.
66926         Reported by Simon Josefsson.
66928 2008-09-21  Bruno Haible  <bruno@clisp.org>
66930         * tests/test-lock.c (main): Tweak skip message.
66931         * tests/test-tls.c (main): Likewise.
66933 2008-09-21  Bruno Haible  <bruno@clisp.org>
66935         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
66936         whether 'struct sigaction' has sa_sigaction here...
66937         (gl_PREREQ_SIG_HANDLER_H): ... not here.
66938         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
66940 2008-09-21  Bruno Haible  <bruno@clisp.org>
66942         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
66943         section.
66944         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
66945         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
66946         the new section.
66947         (Support for obsolete systems lacking POSIX:2001): New section.
66948         (String handling <string.h>): Move strdup to the new section.
66949         Suggested by Simon Josefsson and Paolo Bonzini.
66951 2008-09-21  Bruno Haible  <bruno@clisp.org>
66953         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
66954         exponents in %e and %g results on 'long double'. Needed for mingw's
66955         improved *printf functions.
66956         * tests/test-vasprintf-posix.c (test_function): Likewise.
66957         * tests/test-snprintf-posix.h (test_function): Likewise.
66958         * tests/test-sprintf-posix.h (test_function): Likewise.
66959         Reported by Eric Blake.
66961 2008-09-21  Bruno Haible  <bruno@clisp.org>
66963         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
66964         * tests/test-sprintf-posix.h (test_function): Likewise.
66966 2008-09-21  Bruno Haible  <bruno@clisp.org>
66968         * modules/getpass (Depends-on): Add strdup-posix.
66970         New module 'strdup-posix'.
66971         * modules/strdup-posix: New file.
66972         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
66973         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
66974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66975         REPLACE_STRDUP.
66976         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
66977         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
66978         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66979         strdup-posix.
66981         * modules/strdup (Depends-on): Remove malloc-posix.
66983 2008-09-20  Bruno Haible  <bruno@clisp.org>
66985         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
66986         Wildenhues.
66988 2008-09-20  Bruno Haible  <bruno@clisp.org>
66990         Ensure that wint_t gets defined on IRIX 5.3.
66991         * lib/wchar.in.h (wint_t): Define if not defined by the system.
66992         * lib/wctype.in.h (wint_t): Likewise.
66993         (__wctype_wint_t): Remove type.
66994         (isw*): Use wint_t instead of __wctype_wint_t.
66995         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
66996         * modules/wchar (Files): Add m4/wint_t.m4.
66997         (Makefile.am): Substitute HAVE_WINT_T.
66998         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
66999         * tests/test-wctype.c: Check that wint_t is defined.
67000         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
67001         * doc/posix-headers/wctype.texi: Likewise.
67002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67004 2008-09-18  Bruno Haible  <bruno@clisp.org>
67006         * gnulib-tool (func_exit): Update comment.
67008 2008-09-18  Simon Josefsson  <simon@josefsson.org>
67010         * modules/getaddrinfo (Depends-on): Remove strdup, this module
67011         assumes strdup exists and does not depend on strdup to return
67012         ENOMEM on out of memory conditions.
67014 2008-09-18  Bruno Haible  <bruno@clisp.org>
67016         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
67017         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
67018         digits for the exponent.
67020 2008-09-18  Jim Meyering  <meyering@redhat.com>
67021             Bruno Haible  <bruno@clisp.org>
67023         * lib/vasnprintf.c (decimal_point_char): Define also if
67024         NEED_PRINTF_INFINITE_LONG_DOUBLE.
67026 2008-09-16  Bruno Haible  <bruno@clisp.org>
67027         and Eric Blake  <ebb9@byu.net>
67029         vasnprintf: support Irix 5.3
67030         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
67031         that mishandle long double infinity.
67032         Reported by Tom G. Christensen.
67034 2008-09-16  Bruno Haible  <bruno@clisp.org>
67036         * doc/glibc-functions/scandir.texi: Mention the function is missing on
67037         Solaris 9.
67038         * doc/glibc-functions/alphasort.texi: Likewise.
67039         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
67041 2008-09-16  Jim Meyering  <meyering@redhat.com>
67043         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
67044         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
67045         a umask modification leak out of a subshell.  Otherwise, the
67046         opensolaris /bin/sh would be accepted and thus cause unwarranted
67047         failures in the coreutils test suite.
67049 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
67051         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
67052         to succeed.
67054 2008-09-16  Jim Meyering  <meyering@redhat.com>
67056         avoid spurious test failure when library is built without ACL support
67057         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
67058         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
67059         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
67060         * tests/test-copy-acl.sh: Likewise.
67062 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67064         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
67065         based on character occurrence counts.
67067 2008-09-15  Eric Blake  <ebb9@byu.net>
67069         tests: avoid some compiler warnings
67070         * tests/test-memchr.c (main): Pass NULL indirectly.
67071         * tests/test-closein.c (main): Avoid unused variable.
67073 2008-09-15  Bruno Haible  <bruno@clisp.org>
67075         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
67076         are missing on OpenBSD 4.0 individually.
67077         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67079 2008-09-15  Bruno Haible  <bruno@clisp.org>
67081         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
67082         * doc/posix-functions/strerror.texi: Mention also Cygwin.
67083         * doc/posix-functions/perror.texi: Likewise.
67084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
67085         is missing.
67086         Reported by Eric Blake.
67088         * lib/errno.in.h: Use replacement values >= 2000.
67089         Reported by Eric Blake.
67091 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67093         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
67094         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
67095         limit.
67096         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
67097         compareseq was aborted.
67099 2008-09-14  Bruno Haible  <bruno@clisp.org>
67101         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
67102         yvec_edit_count.
67103         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
67104         (fstrcmp_bounded): Simplify result computation accordingly.
67106 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67108         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
67109         (fstrcmp): Define in terms of fstrcmp_bounded.
67110         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
67111         lower_bound argument.
67112         Return quickly if the result is certainly < lower_bound.
67113         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
67115 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67117         * lib/diffseq.h (EARLY_ABORT): New macro.
67118         (compareseq): Change return type to bool. Return true when EARLY_ABORT
67119         evaluates to true.
67121 2008-09-14  Bruno Haible  <bruno@clisp.org>
67123         * modules/perror-tests: New file.
67124         * tests/test-perror.sh: New file.
67125         * tests/test-perror.c: New file.
67127         New module 'perror'.
67128         * lib/stdio.in.h (perror): New declaration.
67129         * lib/perror.c: New file.
67130         * m4/perror.m4: New file.
67131         * modules/perror: New file.
67132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
67133         * doc/posix-functions/perror.texi: Mention the perror module.
67134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
67135         REPLACE_PERROR.
67136         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
67137         REPLACE_PERROR.
67139 2008-09-14  Bruno Haible  <bruno@clisp.org>
67141         * modules/stdio (Makefile.am): Reorder to match the order in
67142         lib/stdio.in.h.
67143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67145 2008-09-13  Bruno Haible  <bruno@clisp.org>
67147         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
67149 2008-09-13  Bruno Haible  <bruno@clisp.org>
67151         Extend strerror to cover the added errno values.
67152         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
67153         (rpl_strerror): Provide error messages for the added errno values and
67154         for the WSA* values.
67155         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
67156         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
67157         strerror.
67158         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
67159         * modules/strerror (Depends-on): Add errno.
67160         * doc/posix-functions/strerror.texi: Document the change.
67161         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
67162         and EOVERFLOW.
67164 2008-09-13  Bruno Haible  <bruno@clisp.org>
67166         * modules/EOVERFLOW: Remove file.
67167         * m4/eoverflow.m4: Remove file.
67168         * modules/EOVERFLOW-tests: Remove file.
67169         * tests/test-EOVERFLOW.c: Remove file.
67170         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
67171         * modules/ftell (Depends-on): Likewise.
67172         * modules/getdelim (Depends-on): Likewise.
67173         * modules/getugroups (Depends-on): Likewise.
67174         * modules/poll (Depends-on): Likewise.
67175         * modules/snprintf (Depends-on): Likewise.
67176         * modules/sprintf-posix (Depends-on): Likewise.
67177         * modules/vasnprintf (Depends-on): Likewise.
67178         * modules/vasprintf (Depends-on): Likewise.
67179         * modules/vfprintf-posix (Depends-on): Likewise.
67180         * modules/vsnprintf (Depends-on): Likewise.
67181         * modules/vsprintf-posix (Depends-on): Likewise.
67182         * modules/xvasprintf (Depends-on): Likewise.
67183         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
67184         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
67185         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
67186         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
67187         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67188         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
67189         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
67190         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
67191         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67192         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
67193         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
67194         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
67195         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67196         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
67197         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
67198         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
67199         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67200         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
67201         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
67202         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
67203         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67204         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
67205         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
67206         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
67207         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
67208         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67209         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
67210         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
67211         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
67212         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
67213         * MODULES.html.sh: Remove EOVERFLOW.
67214         * NEWS: Mention the change.
67216 2008-09-13  Bruno Haible  <bruno@clisp.org>
67218         * modules/errno-tests: New file.
67219         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
67221         * lib/errno.in.h: New file.
67222         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
67223         * modules/errno: New file.
67224         * doc/posix-headers/errno.texi: Update documentation.
67225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
67227 2008-09-13  Bruno Haible  <bruno@clisp.org>
67229         * tests/test-poll.c: Use #if for native Windows, rather than testing
67230         __MSVCRT__.
67232 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67233             Bruno Haible  <bruno@clisp.org>
67235         * lib/glob.c: Don't include <pwd.h> on native Windows.
67236         (WINDOWS32): New macro.
67237         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
67239 2008-09-13  Bruno Haible  <bruno@clisp.org>
67241         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
67242         (ETIMEDOUT): Remove macro.
67243         (glthread_cond_timedwait_multithreaded): New declaration.
67244         (glthread_cond_timedwait): Use it.
67245         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
67246         (glthread_cond_timedwait_multithreaded): New function.
67248 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
67250         * modules/poll-tests: Do not check for io.h.
67251         * tests/test-poll.c: Check for __MSVCRT__ instead.
67253 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
67255         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
67256         * modules/poll-tests: Add inet_pton, stdbool, sockets.
67257         * tests/test-poll.c: Use them.  Use _pipe on Windows.
67259 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
67261         * modules/poll-tests: New.
67262         * tests/test-poll.c: New.
67264 2008-09-12  Eric Blake  <ebb9@byu.net>
67266         frexp: test for NetBSD failure on -0.0
67267         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
67268         not all, bugs from NetBSD 3.0 have been fixed.
67269         * doc/posix-functions/frexp.texi (frexp): Document bug.
67270         Reported by Thomas Klausner.
67272         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
67273         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
67274         literal -0.0.
67275         Reported by Jonathan C. Patschke <jp@centtech.com>.
67277 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67279         * lib/glthread/cond.h: Use dummy implementation also if
67280         USE_WIN32_THREADS.
67282 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67284         * modules/fnmatch-posix (License): Change to LGPLv2+.
67285         * modules/fnmatch-gnu (License): Likewise.
67287 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67289         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
67291 2008-09-11  Jim Meyering  <meyering@redhat.com>
67293         * users.txt: Add gtk-vnc.
67295 2008-09-08  Simon Josefsson  <simon@josefsson.org>
67297         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
67298         rotate amounts.
67300         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
67301         required for 16-bit and 8-bit rotates.
67302         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
67303         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
67304         UINT8_MAX instead of hard-coded constants.
67305         Suggested by Paul Eggert.
67307 2008-09-07  Bruno Haible  <bruno@clisp.org>
67309         * tests/test-striconveh.c (main): Check behaviour when converting from
67310         UTF-7.
67312         Make striconveh work better with stateful encodings.
67313         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
67314         that iconv does not increment the inptr when returning -1/EINVAL.
67316 2008-09-07  Bruno Haible  <bruno@clisp.org>
67318         * build-aux/config.rpath: Update according to libtool-2.2.6.
67319         * build-aux/config.libpath: Likewise.
67321 2008-09-06  Bruno Haible  <bruno@clisp.org>
67323         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
67324         * lib/freadptr.c (freadptr): Likewise.
67325         * lib/freadseek.c (freadptrinc): Likewise.
67326         Reported by Simon Josefsson.
67328 2008-09-06  Bruno Haible  <bruno@clisp.org>
67330         * modules/freadptr (License): Change to LGPLv2+.
67331         * modules/freadseek (License): Likewise.
67332         Suggested by Eric Blake.
67334         * modules/memchr2 (License): Change to LGPLv2+.
67335         Approved by Eric Blake.
67337 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67338             Bruno Haible  <bruno@clisp.org>
67340         Make gnulib-tool work with native 'sed' on AIX.
67341         * gnulib-tool (sed_noop): New variable.
67342         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
67343         func_add_or_update, func_create_testdir): Use it to initialize sed
67344         script variables.
67345         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67347 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
67348             Bruno Haible  <bruno@clisp.org>
67350         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
67351         also works after #include directives.
67353 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
67355         getdate.y: reject an out-of-range timezone value
67356         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
67357         the range [-24...+24].  When specified with only one or two digits,
67358         * tests/test-getdate.c: Tests for the fix.
67359         * doc/getdate.texi: Document this change.
67361 2008-09-03  Bruno Haible  <bruno@clisp.org>
67363         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
67365 2008-09-02  Simon Josefsson  <simon@josefsson.org>
67367         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
67368         <bruce.korb@gmail.com> with ideas from Ben Pfaff
67369         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
67370         Blake <ebb9@byu.net>.
67372         * tests/test-bitrotate.c: Add more test vectors.
67374 2008-09-02  Eric Blake  <ebb9@byu.net>
67376         vasnprintf-posix: handle large precision via %.*d
67377         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
67378         when handling it ourselves.
67379         * tests/test-vasnprintf-posix.c (test_function): Add test.
67380         * tests/test-snprintf-posix.h (test_function): Likewise.
67381         * tests/test-sprintf-posix.h (test_function): Likewise.
67382         * tests/test-vasprintf-posix.c (test_function): Likewise.
67383         Reported by Alain Guibert.
67385 2008-09-01  Eric Blake  <ebb9@byu.net>
67387         c-stack: make configure-time check more robust
67388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
67389         successful sigaction call.
67390         Reported by Tom G. Christensen.
67392 2008-09-01  Bruno Haible  <bruno@clisp.org>
67394         New module 'findprog-lgpl'.
67395         * modules/findprog-lgpl: New file.
67396         * lib/findprog-lgpl.c: New file.
67397         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
67398         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
67399         to decide whether to use strdup or xstrdup, concatenated_filename or
67400         xconcatenated_filename.
67402 2008-09-01  Bruno Haible  <bruno@clisp.org>
67404         Split module 'concat-filename' into 'concat-filename' (LGPL) and
67405         'xconcat-filename' (GPL).
67406         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
67407         (License): Change to LGPLv2+.
67408         * modules/xconcat-filename: New file.
67409         * lib/concat-filename.h (concatenated_filename): Change specification.
67410         (xconcatenated_filename): New declaration.
67411         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
67412         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
67413         memory situations.
67414         * lib/xconcat-filename.c: New file.
67415         * NEWS: Mention the change.
67416         * lib/findprog.c: Include concat-filename.h, not filename.h.
67417         (find_in_path): Use xconcatenated_filename instead of
67418         concatenated_filename.
67419         * lib/javacomp.c: Include concat-filename.h, not filename.h.
67420         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67421         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67422         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67423         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
67424         instead of concatenated_filename.
67425         * lib/javaexec.c: Include concat-filename.h, not filename.h.
67426         (execute_java_class): Use xconcatenated_filename instead of
67427         concatenated_filename.
67428         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
67429         * modules/javacomp (Depends-on): Likewise.
67430         * modules/javaexec (Depends-on): Likewise.
67432 2008-09-01  Bruno Haible  <bruno@clisp.org>
67434         Split module 'filename' into 'filename' and 'concat-filename'.
67435         * modules/filename: Keep only lib/filename.h.
67436         (License): Change to LGPLv2+.
67437         * modules/concat-filename: New file, extracted from modules/filename.
67438         * lib/filename.h (concatenated_filename): Remove declaration.
67439         * lib/concat-filename.h: New file, extracted from lib/filename.h.
67440         * lib/concat-filename.c: Include concat-filename.h.
67441         * NEWS: Mention the change.
67443 2008-09-01  Simon Josefsson  <simon@josefsson.org>
67445         * lib/bitrotate.h (rotl8, rotr8): Add.
67447         * modules/bitrotate (configure.ac): Need
67448         AC_REQUIRE([AC_C_INLINE]).
67449         (Description): Mention stdint.h.  Reported by Bruno Haible
67450         <bruno@clisp.org>.
67452         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
67453         Paolo Bonzini <bonzini@gnu.org>.
67455 2008-08-31  Bruno Haible  <bruno@clisp.org>
67457         Assume Solaris specific bi-arch conventions on Solaris systems.
67458         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
67459         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
67460         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
67461         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
67462         like acl_libdirstem.
67463         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
67464         acl_libdirstem.
67465         * NEWS: Mention the change.
67466         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
67468 2008-08-31  Jim Meyering  <meyering@redhat.com>
67470         * lib/strftime.h: Add comments describing the two added arguments.
67472         remove duplicate #include directives
67473         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
67474         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
67476 2008-08-31  Bruno Haible  <bruno@clisp.org>
67478         New module 'sigpipe-die'.
67479         * modules/sigpipe-die: New file.
67480         * lib/sigpipe-die.h: New file.
67481         * lib/sigpipe-die.c: New file.
67482         * MODULES.html.sh (Signal handling): Add sigpipe-die.
67484 2008-08-31  Bruno Haible  <bruno@clisp.org>
67486         Don't override previously installed signal handlers.
67487         * lib/fatal-signal.c (saved_sigactions): New variable.
67488         (uninstall_handlers): Reset the signal to the saved handler, not
67489         to SIG_DFL (except when ignored).
67490         (install_handlers): Save the previous handlers.
67492 2008-08-30  Bruno Haible  <bruno@clisp.org>
67494         * gnulib-tool (func_reset_sigpipe): New function.
67495         (func_get_automake_snippet, func_modules_transitive_closure,
67496         func_import): Invoke it before a join command that reads from stdin,
67497         to avoid "echo: write error: Broken pipe" error messages on stderr.
67498         Reported by Sam Steingold <sds@gnu.org>.
67500 2008-08-30  Bruno Haible  <bruno@clisp.org>
67502         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
67503         Code copied from m4/open.m4.
67504         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
67505         access and the filename ends in a slash. Code copied from lib/open.c.
67506         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
67507         * tests/test-fopen.c (main): Check against bug with trailing slash.
67509 2008-08-29  Bruno Haible  <bruno@clisp.org>
67511         Avoid some "gcc -pedantic" warnings.
67512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
67513         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
67514         * lib/dirent.in.h: Likewise.
67515         * lib/fcntl.in.h: Likewise.
67516         * lib/float.in.h: Likewise.
67517         * lib/iconv.in.h: Likewise.
67518         * lib/inttypes.in.h: Likewise.
67519         * lib/locale.in.h: Likewise.
67520         * lib/math.in.h: Likewise.
67521         * lib/netinet_in.in.h: Likewise.
67522         * lib/search.in.h: Likewise.
67523         * lib/signal.in.h: Likewise.
67524         * lib/stdarg.in.h: Likewise.
67525         * lib/stdint.in.h: Likewise.
67526         * lib/stdio.in.h: Likewise.
67527         * lib/stdlib.in.h: Likewise.
67528         * lib/string.in.h: Likewise.
67529         * lib/strings.in.h: Likewise.
67530         * lib/sys_select.in.h: Likewise.
67531         * lib/sys_socket.in.h: Likewise.
67532         * lib/sys_stat.in.h: Likewise.
67533         * lib/sys_time.in.h: Likewise.
67534         * lib/sysexits.in.h: Likewise.
67535         * lib/time.in.h: Likewise.
67536         * lib/unistd.in.h: Likewise.
67537         * lib/wchar.in.h: Likewise.
67538         * lib/wctype.in.h: Likewise.
67539         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
67540         * modules/fchdir (Makefile.am): Likewise.
67541         * modules/fcntl (Makefile.am): Likewise.
67542         * modules/float (Makefile.am): Likewise.
67543         * modules/iconv_open (Makefile.am): Likewise.
67544         * modules/inttypes (Makefile.am): Likewise.
67545         * modules/locale (Makefile.am): Likewise.
67546         * modules/math (Makefile.am): Likewise.
67547         * modules/netinet_in (Makefile.am): Likewise.
67548         * modules/search (Makefile.am): Likewise.
67549         * modules/signal (Makefile.am): Likewise.
67550         * modules/stdarg (Makefile.am): Likewise.
67551         * modules/stdint (Makefile.am): Likewise.
67552         * modules/stdio (Makefile.am): Likewise.
67553         * modules/stdlib (Makefile.am): Likewise.
67554         * modules/string (Makefile.am): Likewise.
67555         * modules/strings (Makefile.am): Likewise.
67556         * modules/sys_select (Makefile.am): Likewise.
67557         * modules/sys_socket (Makefile.am): Likewise.
67558         * modules/sys_stat (Makefile.am): Likewise.
67559         * modules/sys_time (Makefile.am): Likewise.
67560         * modules/sysexits (Makefile.am): Likewise.
67561         * modules/time (Makefile.am): Likewise.
67562         * modules/unistd (Makefile.am): Likewise.
67563         * modules/wchar (Makefile.am): Likewise.
67564         * modules/wctype (Makefile.am): Likewise.
67565         Reported by Reuben Thomas <rrt@sc3d.org>.
67567 2008-08-29  Bruno Haible  <bruno@clisp.org>
67569         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
67570         any more.
67572 2008-08-29  Simon Josefsson  <simon@josefsson.org>
67574         * MODULES.html.sh (Misc): Add bitrotate.
67576         * modules/bitrotate: New file.
67578         * lib/bitrotate.h: New file.
67580         * modules/bitrotate-tests: New file.
67582         * tests/test-bitrotate.c: New file.
67584         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
67585         on the bitrotate module.
67587         * lib/arctwo.c: Use new bitrotate module.
67589 2008-08-29  Jim Meyering  <meyering@redhat.com>
67591         bootstrap: merge changes from coreutils
67592         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
67593         of copied files.  Remove a kludge, now that this is fixed.
67594         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
67595         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
67596         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
67598 2008-08-29  Bruno Haible  <bruno@clisp.org>
67600         * MODULES.html.sh: Remove --cvs-urls option.
67602 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
67604         maint.mk: adjust to file name change
67605         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
67607 2008-08-28  Jim Meyering  <meyering@redhat.com>
67609         * modules/getndelim2 (License): Relicense to LGPLv2+.
67610         Approved by Richard Stallman for the version of 1995, and by
67611         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
67613 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
67615         * lib/getdelim.c (flockfile, funlockfile): Make all of them
67616         dummy if one is not available.  Do not touch them if
67617         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
67618         (getc_maybe_unlocked): New.
67619         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
67621 2008-08-26  Eric Blake  <ebb9@byu.net>
67623         doc/INSTALL: resync from autoconf
67624         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
67625         (INSTALL_PRELUDE): Delete; this is done more efficiently by
67626         moving...
67627         * install.texi [!autoconf]: ...here.  Resync from autoconf.
67628         * INSTALL: Regenerate.
67629         * INSTALL.ISO: New file.
67630         * INSTALL.UTF-8: Likewise.
67632 2008-08-26  Jim Meyering  <meyering@redhat.com>
67634         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
67635         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
67636         these definitions conditional, so that they may be overridden, too.
67638 2008-08-26  Bruno Haible  <bruno@clisp.org>
67640         Generate INSTALL file variants with prettier quotes.
67641         * doc/Makefile (INSTALL_PRELUDE): New macro.
67642         (INSTALL): Use it.
67643         (INSTALL.ISO, INSTALL.UTF-8): New rules.
67645 2008-08-26  Bruno Haible  <bruno@clisp.org>
67647         Run makeinfo in an English locale.
67648         * doc/Makefile (MAKEINFO): New variable.
67650 2008-08-26  Bruno Haible  <bruno@clisp.org>
67652         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
67653         Suggested by Eric Blake.
67655 2008-08-25  Bruno Haible  <bruno@clisp.org>
67657         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
67659 2008-08-25  Eric Blake  <ebb9@byu.net>
67661         c-stack: test that stack overflow can be caught
67662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
67663         that platform allows handling stack overflow; at least OS/2 EMX
67664         has sigaltstack, but crashes before transferring control to
67665         handler on stack overflow.
67666         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
67667         check for HAVE_STACK_OVERFLOW_HANDLING.
67668         Reported by Elbert Pol.
67670 2008-08-25  Bruno Haible  <bruno@clisp.org>
67672         * doc/posix-functions/strftime.texi: Fix description of strftime
67673         module.
67675 2008-08-24  Bruno Haible  <bruno@clisp.org>
67677         * tests/uniwidth/test-uc_width2.c: New file.
67678         * tests/uniwidth/test-uc_width2.sh: New file.
67679         * modules/uniwidth/width-tests (Files): Add the new files.
67680         (TESTS): Add uniwidth/test-uc_width2.sh.
67681         (TESTS_ENVIRONMENT): New variable.
67682         (check_PROGRAMS): Add test-uc_width2.
67683         (test_uc_width2_SOURCES): New variable.
67685         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
67686         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
67687         not 0x00AB.
67688         Reported by Alexander V. Lukyanov <lav@netis.ru>.
67690 2008-08-22  Eric Blake  <ebb9@byu.net>
67692         test-lock, test-tls: mention why a test is skipped
67693         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
67694         skipped.
67695         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
67697         count-one-bits: relax license
67698         * modules/count-one-bits (License): Relicense to LGPLv2+.
67699         Suggested by Ludovic Courtès, approved by Ben Pfaff.
67701 2008-08-22  Andreas Schwab  <schwab@suse.de>
67703         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
67704         Remove spurious space in assignment.
67706 2008-08-21  Simon Josefsson  <simon@josefsson.org>
67708         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
67709         Paul Eggert <eggert@CS.UCLA.EDU>.
67711 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
67713         * modules/gettext: Add m4/threadlib.m4.
67715 2008-08-19  Eric Blake  <ebb9@byu.net>
67717         test-c-stack: fix compilation failure on FreeBSD 5.0
67718         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
67719         headers before <sys/resource.h>.
67720         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
67721         the bug.
67722         Reported by Nelson H. F. Beebe.
67724         strverscmp: migrate from "strverscmp.h" to <string.h>
67725         * modules/string (Makefile.am): Add new hooks.
67726         * modules/strverscmp (Files): Remove strverscmp.h.
67727         (Depends-on): Add string.
67728         (configure.ac): Add indicator.
67729         (Include): Mention new header.
67730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
67731         defaults.
67732         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
67733         results.
67734         * lib/strverscmp.h: Delete.
67735         * lib/string.in.h (strverscmp): Provide declaration, when needed.
67736         * tests/test-strverscmp.c (includes): Adjust client.
67737         * lib/check-version.c (includes): Likewise.
67738         * NEWS: Document the change.
67740         strverscmp: add unit test
67741         * modules/strverscmp-tests: New file.
67742         * tests/test-strverscmp.c: Likewise.
67744 2008-08-19  Simon Josefsson  <simon@josefsson.org>
67746         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
67747         regarding Windows crypto stuff, from Mono.
67749 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
67751         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
67752         if present, for intel RND.  Return error on failures.
67754 2008-08-18  Ben Pfaff  <blp@gnu.org>
67756         gitlog-to-changelog: give better diagnostic for failed pipe-open
67757         * build-aux/gitlog-to-changelog: Improve error message: suggest
67758         that the version of Git may be too old.
67760 2008-08-18  Simon Josefsson  <simon@josefsson.org>
67762         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
67763         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
67765 2008-08-18  Bruno Haible  <bruno@clisp.org>
67767         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
67768         pthread_in_use().
67770 2008-08-18  Bruno Haible  <bruno@clisp.org>
67772         * lib/glthread/threadlib.c: Include <pthread.h>.
67774 2008-08-18  Bruno Haible  <bruno@clisp.org>
67776         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
67777         glthread_recursive_lock_* macros.
67778         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
67779         Fix syntax error.
67781 2008-08-18  Bruno Haible  <bruno@clisp.org>
67783         * lib/glthread/thread.c: Avoid forcing a context switch right after
67784         thread creation.
67786 2008-08-17  Bruno Haible  <bruno@clisp.org>
67788         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
67789         * lib/glthread/thread.h: Provide Win32 specific implementation.
67790         * modules/thread (Files): Add lib/glthread/thread.c.
67791         (Depends-on): Add lock.
67792         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
67794 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67796         New module 'yield'.
67797         * modules/yield: New file.
67798         * lib/glthread/yield.h: New file.
67799         * m4/yield.m4: New file.
67800         * MODULES.html.sh (Multithreading): Add yield.
67802 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67804         New module 'thread'.
67805         * modules/thread: New file.
67806         * lib/glthread/thread.h: New file.
67807         * m4/thread.m4: New file.
67808         * MODULES.html.sh (Multithreading): Add thread.
67810 2008-08-17  Bruno Haible  <bruno@clisp.org>
67812         * lib/glthread/lock.h: Include <stdlib.h> always.
67813         * lib/glthread/tls.h: Likewise.
67814         * lib/glthread/cond.h: Likewise.
67816 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67818         New module 'cond'.
67819         * modules/cond: New file.
67820         * lib/glthread/cond.h: New file.
67821         * lib/glthread/cond.c: New file.
67822         * m4/cond.m4: New file.
67823         * MODULES.html.sh (Multithreading): Add cond.
67825 2008-08-16  Eric Blake  <ebb9@byu.net>
67827         c-stack: fix regression on Irix 5.3 from 2008-06-21
67828         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
67829         sa_sigaction...
67830         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
67831         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
67832         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
67833         * modules/signal (Makefile.am): Use the value.
67834         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
67835         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
67836         * doc/posix-headers/signal.texi (signal.h): Document this
67837         portability issue.
67838         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
67839         Reported by Tom G. Christensen.
67841 2008-08-17  Bruno Haible  <bruno@clisp.org>
67843         New module 'threadlib'.
67844         * modules/threadlib: New file.
67845         * lib/glthread/threadlib.c: New file, extracted from
67846         lib/glthread/lock.c.
67847         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
67848         functions.
67849         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
67850         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
67851         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
67852         macros.
67853         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
67854         (gl_DISABLE_THREADS): Remove macro.
67855         * modules/lock (Files): Remove build-aux/config.rpath.
67856         (Depends-on): Remove havelib. Add threadlib.
67857         (configure.ac-early): Remove section.
67858         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
67859         * modules/tls (Depends-on): Remove lock. Add threadlib.
67860         (Link): New section, copied from threadlib.
67861         * MODULES.html.sh (Multithreading): Add threadlib.
67863 2008-08-14  Bruno Haible  <bruno@clisp.org>
67865         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
67866         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
67867         glthread_rwlock_unlock, glthread_rwlock_destroy,
67868         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
67869         glthread_recursive_lock_destroy): Define as macros always.
67870         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
67871         glthread_lock_lock.
67872         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
67873         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
67874         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
67875         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
67876         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
67877         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
67878         (glthread_recursive_lock_lock_func): Renamed from
67879         glthread_recursive_lock_lock.
67880         (glthread_recursive_lock_unlock_func): Renamed from
67881         glthread_recursive_lock_unlock.
67882         (glthread_recursive_lock_destroy_func): Renamed from
67883         glthread_recursive_lock_destroy.
67885 2008-08-14  Bruno Haible  <bruno@clisp.org>
67887         * lib/glthread/lock.h: Renamed from lib/lock.h.
67888         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
67889         * lib/glthread/tls.h: Renamed from lib/tls.h.
67890         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
67891         * lib/fstrcmp.c: Update includes.
67892         * lib/strsignal.c: Update includes.
67893         * modules/lock (Files, Makefile.am): Update.
67894         (Include): Change to "glthread/lock.h".
67895         * modules/tls (Files, Makefile.am): Update.
67896         (Include): Change to "glthread/tls.h".
67897         * tests/test-lock.c: Update includes.
67898         * tests/test-tls.c: Update includes.
67899         * NEWS: Mention the renamed header files.
67901 2008-08-11  Jim Meyering  <meyering@redhat.com>
67903         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
67905 2008-08-11  Eric Blake  <ebb9@byu.net>
67907         test-c-stack: avoid C99-ism
67908         * tests/test-c-stack.c (main): Fix whitespace, move declaration
67909         before statement.
67910         Reported by Alain Guibert.
67912 2008-08-10  Jim Meyering  <meyering@redhat.com>
67914         ensure that return value of uinttostr et al are not ignored
67915         * lib/inttostr.h (__GNUC_PREREQ): Define.
67916         (__attribute_warn_unused_result__): Define.
67917         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
67919 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
67921         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
67922         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
67924 2008-08-07  Jim Meyering  <meyering@redhat.com>
67926         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
67928         * modules/mkstemp (License): Relicense under LGPLv2+.
67929         * modules/tempname (License): Likewise.
67931 2008-08-06  Bruno Haible  <bruno@clisp.org>
67933         * lib/poll.c (poll): Further micro-optimization.
67935 2008-08-06  Jim Meyering  <meyering@redhat.com>
67937         inet_pton.c: use locale-independent tolower
67938         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
67939         (inet_pton6): Use c_tolower rather than tolower.
67940         * modules/inet_pton (Depends-on): Add c-ctype.
67942 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
67944         * lib/poll.c (poll): Avoid division when timeout is 0, cache
67945         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
67947 2008-08-06  Jim Meyering  <meyering@redhat.com>
67949         * modules/inet_pton (License): Relicense under LGPLv2+.
67951 2008-08-03  Bruno Haible  <bruno@clisp.org>
67953         Additional non-aborting API for lock and tls.
67954         * lib/lock.h: Include <errno.h>.
67955         (glthread_lock_init): New macro/function.
67956         (gl_lock_init): Define as wrapper around glthread_lock_init.
67957         (glthread_lock_lock): New macro/function.
67958         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
67959         (glthread_lock_unlock): New macro/function.
67960         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
67961         (glthread_lock_destroy): New macro/function.
67962         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
67963         (glthread_rwlock_init): New macro/function.
67964         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
67965         (glthread_rwlock_rdlock): New macro/function.
67966         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
67967         (glthread_rwlock_wrlock): New macro/function.
67968         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
67969         (glthread_rwlock_unlock): New macro/function.
67970         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
67971         (glthread_rwlock_destroy): New macro/function.
67972         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
67973         (glthread_recursive_lock_init): New macro/function.
67974         (gl_recursive_lock_init): Define as wrapper around
67975         glthread_recursive_lock_init.
67976         (glthread_recursive_lock_lock): New macro/function.
67977         (gl_recursive_lock_lock): Define as wrapper around
67978         glthread_recursive_lock_lock.
67979         (glthread_recursive_lock_unlock): New macro/function.
67980         (gl_recursive_lock_unlock): Define as wrapper around
67981         glthread_recursive_lock_unlock.
67982         (glthread_recursive_lock_destroy): New macro/function.
67983         (gl_recursive_lock_destroy): Define as wrapper around
67984         glthread_recursive_lock_destroy.
67985         (glthread_once): New macro/function.
67986         (gl_once): Define as wrapper around glthread_once.
67987         Update function declarations.
67988         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
67989         glthread_rwlock_init. Return error code.
67990         (glthread_rwlock_rdlock_multithreaded): Renamed from
67991         glthread_rwlock_rdlock. Return error code.
67992         (glthread_rwlock_wrlock_multithreaded): Renamed from
67993         glthread_rwlock_wrlock. Return error code.
67994         (glthread_rwlock_unlock_multithreaded): Renamed from
67995         glthread_rwlock_unlock. Return error code.
67996         (glthread_rwlock_destroy_multithreaded): Renamed from
67997         glthread_rwlock_destroy. Return error code.
67998         (glthread_recursive_lock_init_multithreaded): Renamed from
67999         glthread_recursive_lock_init. Return error code.
68000         (glthread_recursive_lock_lock_multithreaded): Renamed from
68001         glthread_recursive_lock_lock. Return error code.
68002         (glthread_recursive_lock_unlock_multithreaded): Renamed from
68003         glthread_recursive_lock_unlock. Return error code.
68004         (glthread_recursive_lock_destroy_multithreaded): Renamed from
68005         glthread_recursive_lock_destroy. Return error code.
68006         (glthread_once_call): Make static.
68007         (glthread_once_multithreaded): Renamed from glthread_once.
68008         * lib/tls.h: Include <errno.h>.
68009         (glthread_tls_key_init): New macro/function.
68010         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
68011         (glthread_tls_set): New macro/function.
68012         (gl_tls_set): Define as wrapper around glthread_tls_set.
68013         (glthread_tls_key_destroy): New macro/function.
68014         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
68015         Update function declarations.
68016         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
68017         glthread_tls_get.
68018         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68020 2008-08-04  Eric Blake  <ebb9@byu.net>
68022         gnumakefile: use space, not TAB, outside of targets
68023         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
68025 2008-08-02  Jim Meyering  <meyering@redhat.com>
68027         getdate.y: avoid locale-dependent date parsing failure
68028         In Turkish locales, getdate would fail to recognize keywords
68029         containing a lowercase "i".  The solution is not to rely on
68030         locale-sensitive case-conversion.
68031         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
68032         (lookup_word): Use c_toupper in place of toupper.
68033         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
68034         Reported by Vefa Bicakci <bicave@superonline.com> in
68035         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
68036         * modules/getdate (Depends-on): Add c-ctype.
68038 2008-08-02  Bruno Haible  <bruno@clisp.org>
68040         * gnulib-tool (func_import): When updating or creating a .gitignore
68041         file, prepend each added line with a slash, and ignore leading slashes
68042         from the existing lines.
68043         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68045 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68047         Portability fix for GNU make 3.79.1.
68048         * top/GNUmakefile: Avoid 'else COND', which older GNU make
68049         versions do not understand.
68051 2008-08-01  Bruno Haible  <bruno@clisp.org>
68053         Work around bug of HP-UX 10.20 cc with -0.0 literal.
68054         * tests/test-isnanf.h (zero): New variable.
68055         (main): Avoid literal -0.0f.
68056         * tests/test-isnand.h (zero): New variable.
68057         (main): Avoid literal -0.0.
68058         * tests/test-isnanl.h (zero): New variable.
68059         (main): Avoid literal -0.0L.
68060         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
68061         (test_float, test_double, test_long_double): Avoid literals -0.0f,
68062         -0.0, -0.0L.
68063         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
68064         (test_signbitd): Avoid literal -0.0.
68065         (test_signbitl): Avoid literal -0.0L.
68066         * tests/test-ceilf1.c (zero): New variable.
68067         (main): Avoid literal -0.0f.
68068         * tests/test-ceill.c (zero): New variable.
68069         (main): Avoid literal -0.0L.
68070         * tests/test-floorf1.c (zero): New variable.
68071         (main): Avoid literal -0.0f.
68072         * tests/test-floorl.c (zero): New variable.
68073         (main): Avoid literal -0.0L.
68074         * tests/test-roundf1.c (zero): New variable.
68075         (main): Avoid literal -0.0f.
68076         * tests/test-round1.c (zero): New variable.
68077         (main): Avoid literal -0.0.
68078         * tests/test-roundl.c (zero): New variable.
68079         (main): Avoid literal -0.0L.
68080         * tests/test-truncf1.c (zero): New variable.
68081         (main): Avoid literal -0.0f.
68082         * tests/test-trunc1.c (zero): New variable.
68083         (main): Avoid literal -0.0.
68084         * tests/test-truncl.c (zero): New variable.
68085         (main): Avoid literal -0.0L.
68086         * tests/test-frexp.c (zero): New variable.
68087         (main): Avoid literal -0.0.
68088         * tests/test-frexpl.c (zero): New variable.
68089         (main): Avoid literal -0.0L.
68090         * tests/test-ldexpl.c (zero): New variable.
68091         (main): Avoid literal -0.0L.
68092         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
68093         (zerod, zerol): New variables.
68094         (test_function): Avoid literals -0.0, -0.0L.
68095         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
68096         (zerod, zerol): New variables.
68097         (test_function): Avoid literals -0.0, -0.0L.
68098         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
68099         (zerod, zerol): New variables.
68100         (test_function): Avoid literals -0.0, -0.0L.
68101         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
68102         (zerod, zerol): New variables.
68103         (test_function): Avoid literals -0.0, -0.0L.
68104         * tests/test-strtod.c (zero): New variable.
68105         (main): Avoid literal -0.0.
68106         Reported by Jonathan C. Patschke <jp@centtech.com>.
68108 2008-07-31  Jim Meyering  <meyering@redhat.com>
68110         sha256.h: correct definition of SHA224_DIGEST_SIZE
68111         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
68112         Reported by Paulie Pena IV <paulie4@gmail.com>.
68113         Define as 224 / 8, rather than as a literal.
68114         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
68115         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
68116         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
68118 2008-07-31  Bruno Haible  <bruno@clisp.org>
68120         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
68121         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
68122         Reported by Jonathan Patschke <jp@centtech.com>.
68124 2008-07-31  Bruno Haible  <bruno@clisp.org>
68126         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
68127         Reported by Paolo Bonzini <bonzini@gnu.org>.
68129 2008-07-30  Eric Blake  <ebb9@byu.net>
68131         test-strtod: allow compilation without -lm
68132         * tests/test-strtod.c (main): Avoid link dependence on fabs.
68133         Reported by Dennis Clarke <blastwave@gmail.com>.
68135 2008-07-28  Jim Meyering  <meyering@redhat.com>
68137         bootstrap: work also when there are no .po files in po/
68138         * build-aux/bootstrap (update_po_files): Complete the change
68139         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
68141 2008-07-27  Jim Meyering  <meyering@redhat.com>
68143         * users.txt: Add zile.
68145 2008-07-26  Ben Pfaff  <blp@gnu.org>
68147         Add missing dependencies on new m4/exponent[fdl].m4 files.
68148         * modules/isnanf-nolibm: Add m4/exponentf.m4.
68149         * modules/isnand-nolibm: Add m4/exponentd.m4.
68150         * modules/isnanl-nolibm: Add m4/exponentl.m4.
68151         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
68152         m4/isnan[fdl].m4, because the macros actually used moved.
68153         Reported by Jim Meyering.
68155 2008-07-14  Ben Pfaff  <blp@gnu.org>
68157         Add isinf module.
68158         * lib/isinf.c: New file.
68159         * lib/math.in.h: Define isinf macro if we have decided to replace
68160         it.
68161         * m4/isinf.m4: New file.
68162         * m4/math_h.m4: Initialize and substitute variables for isinf
68163         module.
68164         * modules/isinf: New file.
68165         * modules/isinf-tests: New file.
68166         * modules/math: Add substitutions for new module.
68167         * tests/test-isinf.c: New file.
68168         * doc/posix-functions/isinf.texi: Mention new module.
68169         * MODULES.html.sh: Mention new module.
68171 2008-07-14  Ben Pfaff  <blp@gnu.org>
68173         Factor out some macros for use by additional modules.
68174         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
68175         exponentf.m4.
68176         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
68177         exponentd.m4.
68178         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
68179         file exponentl.m4.
68180         * m4/exponentf.m4: New file.
68181         * m4/exponentd.m4: New file.
68182         * m4/exponentl.m4: New file.
68183         * modules/isnanf: Use new file m4/exponentf.m4.
68184         * modules/isnand: Use new file m4/exponentd.m4.
68185         * modules/isnanl: Use new file m4/exponentl.m4.
68187 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
68189         mktime.c: normalize tp->tm_isdst value to -1/0/1.
68190         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
68191         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
68192         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
68194         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
68195         readlink on platforms without PATH_MAX.
68197 2008-07-21  Eric Blake  <ebb9@byu.net>
68199         Warn, not fail, on stale version.
68200         * top/GNUmakefile (_curr-ver): Tone down previous patch.
68202         Don't allow installation with stale devel version number.
68203         * top/GNUmakefile (_is-install-target): New macro.
68204         (_curr-ver): Forbid installation with stale version number.
68206 2008-07-20  Bruno Haible  <bruno@clisp.org>
68208         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
68209         TESTS_ENVIRONMENT.
68210         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
68212 2008-07-20  Bruno Haible  <bruno@clisp.org>
68214         * lib/c-stack.h (c_stack_action): Add documentation.
68215         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
68217 2008-07-20  Bruno Haible  <bruno@clisp.org>
68219         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
68220         * modules/readlink (License): Likewise.
68222 2008-07-17  Eric Blake  <ebb9@byu.net>
68224         * modules/c-stack (Link): Fix typo.
68226         Make c-stack use libsigsegv, when available.
68227         * modules/c-stack (Depends-on): Add libsigsegv.
68228         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
68229         needed.
68230         * lib/c-stack.c (SIGSTKSZ): Define fallback.
68231         (segv_handler, overflow_handler, c_stack_action)
68232         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
68233         implementation when libsigsegv is available, but only when using
68234         the library is necessary.
68235         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
68236         comment, explaining why XSI check fails on Linux.
68237         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
68238         * tests/test-c-stack2.sh: Tweak skip message.
68239         * NEWS: Document new link-time requirements.
68241 2008-07-16  Eric Blake  <ebb9@byu.net>
68243         c-stack: Expose false positives when not using libsigsegv.
68244         * modules/c-stack-tests (Files): Expand test.
68245         * tests/test-c-stack.c (main): Add means to conditionally trigger
68246         non-overflow SIGSEGV.
68247         * tests/test-c-stack2.sh: New file.
68249 2008-07-14  Bruno Haible  <bruno@clisp.org>
68251         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
68252         Reported by Eric Blake.
68254 2008-07-14  Sam Steingold  <sds@gnu.org>
68255             Bruno Haible  <bruno@clisp.org>
68257         New module libsigsegv.
68258         * modules/libsigsegv: New file.
68259         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
68260         modifications.
68261         * MODULES.html.sh (Signal handling): New section.
68263 2008-07-14  Bruno Haible  <bruno@clisp.org>
68265         * modules/unictype/ctype-* (Description): Add the word "function".
68266         Improves the resulting doc in MODULES.html.
68268 2008-07-12  Ben Pfaff  <blp@gnu.org>
68270         Add longlong module.
68271         * modules/longlong: New file.
68273 2008-07-12  Bruno Haible  <bruno@clisp.org>
68275         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
68276         to empty.
68278 2008-07-10  Ben Pfaff  <blp@gnu.org>
68280         Add isnan module.
68281         * doc/posix-functions/isnan.texi: Mention new module.
68282         * lib/math.in.h: Define isnan macro if we have decided to replace
68283         it.
68284         * m4/isnan.m4: New file.
68285         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
68286         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
68287         also.
68288         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
68289         redundancy.
68290         * m4/math_h.m4: Initialize and substitute variables for isnan
68291         module.
68292         * modules/isnan: New file.
68293         * modules/isnan-tests: New file.
68294         * modules/math: Add substitutions for new module.
68295         * tests/test-isnan.c: New file.
68296         * MODULES.html.sh: Mention new module.
68298 2008-07-10  Ben Pfaff  <blp@gnu.org>
68300         Add isnanf module.
68301         * lib/isnanf.m4: New file.
68302         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
68303         (gl_HAVE_ISNANF_IN_LIBM): New macro.
68304         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
68305         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
68306         * modules/isnanf: New file.
68307         * modules/isnanf-tests: New file.
68308         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
68309         files.
68310         * tests/test-isnanf-nolibm.c: factored most of its contents into
68311         new file tests/test-isnanf.h.
68312         * tests/test-isnanf.h: New file.
68313         * tests/test-isnanf.c: New file.
68314         * MODULES.html.sh: Mention new module.
68315         * doc/glibc-functions/isnanf.texi: Mention new module.
68317 2008-07-10  Ben Pfaff  <blp@gnu.org>
68319         Add isnand module.
68320         * lib/isnand.h: New file.
68321         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
68322         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
68323         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
68324         functionality also.
68325         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
68326         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
68327         (gl_HAVE_ISNAND_IN_LIBM): New macro.
68328         * modules/isnand: New file.
68329         * modules/isnand-tests: New file.
68330         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
68331         files.
68332         * tests/test-isnand-nolibm.c: factored most of its contents into
68333         new file tests/test-isnand.h.
68334         * tests/test-isnand.h: New file.
68335         * tests/test-isnand.c: New file.
68336         * MODULES.html.sh: Mention new module.
68338 2008-07-10  Ben Pfaff  <blp@gnu.org>
68340         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
68341         * lib/isnand.h: Rename lib/isnand-nolibm.h.
68342         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
68343         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
68344         * modules/isnanf-nolibm: Update references to renamed files.
68345         * modules/isnand-nolibm: Likewise.
68346         * modules/isnanf-nolibm-tests: Likewise.
68347         * modules/isnand-nolibm-tests: Likewise.
68348         * lib/frexp.c: Likewise.
68349         * lib/isfinite.c: Likewise.
68350         * lib/signbitd.c: Likewise.
68351         * lib/signbitf.c: Likewise.
68352         * lib/vasnprintf.c: Likewise.
68353         * tests/test-ceilf1.c: Likewise.
68354         * tests/test-ceilf2.c: Likewise.
68355         * tests/test-floorf1.c: Likewise.
68356         * tests/test-floorf2.c: Likewise.
68357         * tests/test-frexp.c: Likewise.
68358         * tests/test-round1.c: Likewise.
68359         * tests/test-round2.c: Likewise.
68360         * tests/test-roundf1.c: Likewise.
68361         * tests/test-strtod.c: Likewise.
68362         * tests/test-trunc1.c: Likewise.
68363         * tests/test-trunc2.c: Likewise.
68364         * tests/test-truncf1.c: Likewise.
68365         * tests/test-truncf2.c: Likewise.
68366         * NEWS: Mention the renamed header files.
68368 2008-07-11  Jim Meyering  <meyering@redhat.com>
68370         vc-list-files: make the last-resort awk code more portable
68371         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
68372         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
68373         does not support it.
68375 2008-07-10  Eric Blake  <ebb9@byu.net>
68377         Work with tar's bootstrap.
68378         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
68379         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
68380         an m4 comment.
68382 2008-07-09  Jim Meyering  <meyering@redhat.com>
68384         posix-shell.m4: fix typo that made this test malfunction
68385         * m4/posix-shell.m4: Remove capitalization in variable name.
68387 2008-07-08  Bruno Haible  <bruno@clisp.org>
68389         * m4/onceonly.m4: Update comments.
68390         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68392 2008-07-04  Jim Meyering  <meyering@redhat.com>
68394         * users.txt: Add vc-dwim.
68395         (bison, coreutils): Use the gitweb URL.
68397 2008-07-03  Jim Meyering  <meyering@redhat.com>
68399         * users.txt: Add libffcall.  From Sam Steingold.
68401 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
68403         getdate.y: do not ignore TZ with relative day, month or year offset
68404         * lib/getdate.y (get_date): Move the tz-handling block to follow the
68405         relative-date-handling, since otherwise, the latter would clobber the
68406         sole output (an updated Start value) of the tz-handling block.
68407         * tests/test-getdate.c: Tests for the fix
68409 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68411         Recognize 'foo_LIBRARIES += libgnu.a'.
68412         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
68413         makefile snippet has already specified an installation location,
68414         also using '+='.
68416 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
68418         getdate.y: factor out common actions
68419         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
68420         Use them in place of open-coded actions.
68422 2008-07-01  Simon Josefsson  <simon@josefsson.org>
68424         Add self-test for getdate module.
68425         * modules/getdate-tests: New file.
68426         * tests/test-getdate.c: New file.
68428 2008-06-29  Bruno Haible  <bruno@clisp.org>
68430         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
68431         .gitignore.
68432         Reported by Sylvain Beucler <beuc@beuc.net>.
68434 2008-06-29  Bruno Haible  <bruno@clisp.org>
68436         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
68437         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
68439 2008-06-29  Bruno Haible  <bruno@clisp.org>
68441         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
68442         EXTRA_DIST.
68443         Reported by Sylvain Beucler <beuc@beuc.net>.
68445 2008-06-26  Jim Meyering  <meyering@redhat.com>
68447         make several modules depend on the "open" module
68448         This provides slightly increased consistency when opening-for-write
68449         the name of a non-directory spelled with a trailing slash.
68450         * modules/chdir-safer: Likewise.
68451         * modules/chown: Likewise.
68452         * modules/clean-temp: Likewise.
68453         * modules/copy-file: Likewise.
68454         * modules/fchdir: Likewise.
68455         * modules/fcntl-safer: Likewise.
68456         * modules/pipe: Likewise.
68457         * modules/utime: Likewise.
68458         Prompted by Eric Blake and Bruno Haible.
68460 2008-06-24  Andreas Schwab  <schwab@suse.de>
68462         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
68463         literals can be used as initializers for global variables.
68465 2008-06-23  Eric Blake  <ebb9@byu.net>
68467         Make gnulib-cache.m4 easier to diff.
68468         * gnulib-tool (func_import): Allow newlines when reading cached
68469         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
68471 2008-06-23  Bruno Haible  <bruno@clisp.org>
68473         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
68474         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
68475         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
68476         m4/signalblocking.m4.
68477         (gl_PREREQ_SIGACTION): Don't invoke it.
68478         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
68479         gl_PREREQ_SIG_HANDLER_H.
68480         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
68481         Don't check for sigaction here.
68483 2008-06-23  Bruno Haible  <bruno@clisp.org>
68485         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
68486         (install_handlers): Don't set the SA_RESETHAND flag.
68488 2008-06-23  Bruno Haible  <bruno@clisp.org>
68490         * m4/sigaction.m4: Comment fixes.
68491         * lib/signal.in.h: Likewise.
68493 2008-06-23  Eric Blake  <ebb9@byu.net>
68495         Fix typo.
68496         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
68498         Avoid SA_ namespace.
68499         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
68500         Reported by Ralf Wildenhues.
68502         Avoid test failure due to SA_RESTORER.
68503         * tests/test-sigaction.c (SA_MASK): New macro.
68504         (main): Avoid failing due to extension flags being set.
68505         Reported by Jim Meyering.
68507         Revert use of sig-handler.h in sigprocmask.c.
68508         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
68509         it requires the existence of struct sigaction.
68510         * lib/sigprocmask.c (handler_t): Restore typedef.
68511         (rpl_signal, old_handlers): Use local type.
68513 2008-06-22  Bruno Haible  <bruno@clisp.org>
68515         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
68516         conditionally.
68517         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68519 2008-06-22  Bruno Haible  <bruno@clisp.org>
68521         * doc/posix-functions/siginterrupt.texi: Move note.
68523         * lib/signal.in.h (SA_RESTART): New macro.
68524         * lib/sigaction.c: Update comment.
68526         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
68528         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
68529         (gl_PREREQ_SIGPROCMASK): Invoke it.
68530         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
68532         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
68534         * lib/sigprocmask.c: Update a comment.
68536 2008-06-21  Eric Blake  <ebb9@byu.net>
68538         Use sigaction module rather than signal().
68539         * modules/c-stack (Depends-on): Add sigaction.
68540         * modules/fatal-signal (Depends-on): Likewise.
68541         * modules/nanosleep (Depends-on): Likewise.
68542         * modules/sigprocmask (Files): Add sig-handler.h.
68543         * modules/sigaction (Files): Likewise.
68544         * lib/sig-handler.h (get_handler): New file, suggested by Paul
68545         Eggert.
68546         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
68547         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
68548         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
68549         (init_fatal_signals): Likewise.
68550         * lib/nanosleep.c (rpl_nanosleep): Likewise.
68551         (siginterrupt): Delete fallback.
68552         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
68553         instead.
68554         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
68555         siginterrupt.
68557         New module sigaction, for mingw.
68558         * modules/sigaction: New module...
68559         * modules/sigaction-tests: ...and its test.
68560         * m4/sigaction.m4: New file.
68561         * lib/sigaction.c: Likewise.
68562         * tests/test-sigaction.c: Likewise.
68563         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
68564         * modules/signal (Makefile.am): Likewise.
68565         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
68566         needed.
68567         * doc/posix-headers/signal.texi (signal.h): Mention provided
68568         types.
68569         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
68570         that sigaction is preferable.
68571         * doc/posix-functions/sigaction.texi (sigaction): Mention new
68572         module.
68573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68574         sigaction.
68576         Improve robustness of sigprocmask by overriding signal.
68577         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
68578         is in use.
68579         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
68580         (SIGKILL, SIGSTOP): Provide fallbacks.
68581         (rpl_signal): Implement.
68582         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
68583         signal can be called inside handlers.
68585         Fix nanosleep module on mingw.
68586         * modules/nanosleep (Depends-on): Add sys_select.
68587         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
68589         Fix licensing of sigprocmask.
68590         * modules/raise (License): Relicense as LGPL.
68592 2008-06-21  Bruno Haible  <bruno@clisp.org>
68594         * lib/propername.c (proper_name_utf8): Don't use the transliterated
68595         result if it contains question marks.
68596         Reported by Michael Geng <linux@michaelgeng.de>.
68598 2008-06-19  Bruno Haible  <bruno@clisp.org>
68600         Fix CVS-ism.
68601         * doc/gnulib.texi: Include updated-stamp.texi.
68602         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
68603         (updated-stamp.texi): New rule.
68604         (gnulib.info): Depend on it.
68605         * doc/.gitignore: Add updated-stamp.texi.
68606         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
68608 2008-06-19  Bruno Haible  <bruno@clisp.org>
68610         * doc/Makefile (gnulib.info): Update and simplify dependencies.
68611         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
68613 2008-06-19  Eric Blake  <ebb9@byu.net>
68615         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
68616         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
68617         Reported by Stepan Kasal.
68619 2008-06-18  Bruno Haible  <bruno@clisp.org>
68621         * lib/fatal-signal.c (init_fatal_signals): Add comment.
68622         Reported by Eric Blake.
68624 2008-06-18  Eric Blake  <ebb9@byu.net>
68626         Work around cygwin 1.5.25 strsignal bug.
68627         * tests/test-strsignal.c: Allow for const char *.
68628         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
68630 2008-06-18  Simon Josefsson  <simon@josefsson.org>
68632         * users.txt: Update URL to article and add author/date
68633         information.
68635 2008-06-17  Bruno Haible  <bruno@clisp.org>
68637         New macro gl_DISABLE_THREADS.
68638         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
68639         if the user did not pass --enable-threads or --disable-threads option.
68640         (gl_DISABLE_THREADS): New macro.
68641         Reported by Eric Blake <ebb9@byu.net>.
68643 2008-06-17  Bruno Haible  <bruno@clisp.org>
68645         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
68646         when the macro ignores it.
68647         Based on a patch by Eric Blake <ebb9@byu.net>.
68649 2008-06-17  Bruno Haible  <bruno@clisp.org>
68651         * modules/tls (License): Change to LGPLv2+.
68652         Reported by Eric Blake.
68654 2008-06-17  Eric Blake  <ebb9@byu.net>
68656         Simplify c-stack prerequisites.
68657         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
68658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
68659         no longer requires <ucontext.h> to exist.  Optimize setrlimit
68660         check.
68661         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
68662         <sys/resource.h>.
68664         Move c-stack test into testsuite.
68665         * modules/c-stack-tests: New file.
68666         * lib/c-stack.c [DEBUG]: Move test program...
68667         * tests/test-c-stack.c: ...into this new file.  Skip rather than
68668         fail test if sigaltstack is lacking.
68669         * tests/test-c-stack.sh: New driver file.
68671 2008-06-16  Eric Blake  <ebb9@byu.net>
68673         Use raise module consistently.
68674         * modules/fatal-signal (Depends-on): Add raise.
68675         * modules/sigprocmask (Depends-on): Likewise.
68676         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
68677         * lib/sigprocmask.c (sigprocmask): Likewise.
68678         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
68679         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
68681         Fix compliance bug in sigpending.
68682         * lib/sigprocmask.c (sigpending): Return pending array via
68683         parameter, not return value.
68685 2008-06-14  Eric Blake  <ebb9@byu.net>
68687         Improve obstack-printf test code.
68688         * tests/test-obstack-printf.c (test_function): Fix comment, and
68689         simplify usage of obstack_* in macros.  Add a test for coverage.
68690         Reported by Bruno Haible.
68692 2008-06-14  Bruno Haible  <bruno@clisp.org>
68694         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
68695         array size as a constant, not as a const variable.
68696         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
68697         AC_USE_SYSTEM_EXTENSIONS.
68698         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
68699         Test whether the obstack_printf function actually exists.
68700         * modules/obstack-printf (Depends-on): Add extensions.
68701         (Include): Remove obstack.h.
68702         * modules/obstack-printf-posix (Depends-on): Add extensions.
68703         (Include): Remove obstack.h.
68705 2008-06-13  Eric Blake  <ebb9@byu.net>
68707         Add obstack-printf and obstack-printf-posix modules.
68708         * modules/obstack-printf: New file.
68709         * modules/obstack-printf-posix: Likewise.
68710         * MODULES.html.sh (Misc): Mention them.
68711         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68712         Likewise.
68713         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68714         Likewise.
68715         * modules/stdio (Makefile.am): Accomodate new modules.
68716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68717         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
68718         Declare.
68719         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
68720         functions.
68721         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
68722         (gl_REPLACE_OBSTACK_PRINTF): New macros
68723         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
68724         * tests/test-obstack-printf.c: New file.
68725         * modules/obstack-printf-tests: Likewise.
68726         * modules/obstack-printf-posix-tests: Likewise.
68728 2008-06-11  Bruno Haible  <bruno@clisp.org>
68730         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
68731         * lib/open.c: Include errno.h.
68732         (open): Fail when attempting to write to a file that has a trailing
68733         slash.
68734         * tests/test-open.c (main): Test against trailing slash bug.
68735         * doc/posix-functions/open.texi: Mention the trailing slash bug.
68737 2008-06-10  Bruno Haible  <bruno@clisp.org>
68739         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
68740         for $? to work inside the trap command, with various /bin/sh-s.
68741         * tests/test-vc-list-files-cvs.sh: Likewise.
68743 2008-06-10  Bruno Haible  <bruno@clisp.org>
68745         * lib/acl-internal.h: Don't include gettext.h here.
68746         * lib/set-mode-acl.c: Include gettext.h here.
68747         * lib/copy-acl.c: Likewise.
68749 2008-06-10  Bruno Haible  <bruno@clisp.org>
68751         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
68752         * lib/wait-process.c (wait_subprocess): Likewise.
68753         * lib/execute.h (execute): Add termsigp argument.
68754         * lib/execute.c (execute): Likewise.
68755         * lib/csharpcomp.c (compile_csharp_using_pnet,
68756         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
68757         * lib/csharpexec.c (execute_csharp_using_pnet,
68758         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
68759         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
68760         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
68761         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
68762         is_jikes_present): Update.
68763         * lib/javaexec.c (execute_java_class): Update.
68764         * lib/javaversion.c (execute_and_read_line): Update.
68765         * NEWS: Document the changes.
68766         Reported by Eric Blake.
68768 2008-06-10  Eric Blake  <ebb9@byu.net>
68770         Add missing include.
68771         * tests/test-strstr.c (includes): Add <signal.h>.
68772         * tests/test-strcasestr.c (includes): Likewise.
68773         * tests/test-memmem.c (includes): Likewise.
68775 2008-06-10  Bruno Haible  <bruno@clisp.org>
68777         * lib/wait-process.c (wait_subprocess): Add an assertion.
68779 2008-06-10  Bruno Haible  <bruno@clisp.org>
68781         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
68783 2008-06-10  Bruno Haible  <bruno@clisp.org>
68785         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
68786         using alarm().
68787         * tests/test-strcasestr.c (main): Likewise.
68788         * tests/test-strstr.c (main): Likewise.
68790 2008-06-09  Bruno Haible  <bruno@clisp.org>
68792         Work around the Solaris 10 ACE ACLs ABI change.
68793         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
68794         declare if ACL_NO_TRIVIAL is present.
68795         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
68796         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
68797         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
68798         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
68799         define if ACL_NO_TRIVIAL is present.
68800         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
68801         and use the current ABI.
68802         (file_has_acl): Use same #if condition as elsewhere.
68803         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
68804         in use, and use the current ABI.
68805         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
68806         Reported by Jim Meyering.
68808 2008-06-09  Eric Blake  <ebb9@byu.net>
68810         Work around environments that (stupidly) ignore SIGALRM.
68811         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
68812         before using alarm().
68813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68814         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68815         Reported by Ian Beckwith <ianb@erislabs.net>.
68817         Produce autobuild blurb earlier in log.
68818         * modules/autobuild (configure.ac-early): Move AB_INIT here.
68820 2008-06-09  Jim Meyering  <meyering@redhat.com>
68821         and Ondřej Vašík  <ovasik@redhat.com>
68823         utimens.c: correct kernel bug work-around
68824         Ondřej Vašík found that the invalid return value of 280 indicates
68825         failure, not success, and the kernel bug we're trying to work
68826         around affects not just the utimensat call, but also the fallback
68827         futimens call.
68828         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
68829         not success.
68830         [HAVE_FUTIMENS]: Use the same work-around, here.
68832 2008-06-09  Jim Meyering  <meyering@redhat.com>
68834         add more guards around definition of ACE_-related code
68835         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
68836         ALLOW and ACE_OWNER are also defined.
68838 2008-06-08  Bruno Haible  <bruno@clisp.org>
68840         * lib/acl-internal.h: Add me as co-author.
68841         * lib/file-has-acl.c: Likewise.
68842         * lib/set-mode-acl.c: Likewise.
68843         * lib/copy-acl.c: Likewise.
68845 2008-06-08  Bruno Haible  <bruno@clisp.org>
68847         Add support for AIX ACLs.
68848         * lib/acl-internal.h (acl_nontrivial): New declaration.
68849         * lib/file-has-acl.c (acl_nontrivial): New function.
68850         (file_has_acl): Add implementation using AIX 4 ACL API.
68851         * lib/set-mode-acl.c (qset_acl): Likewise.
68852         * lib/copy-acl.c (qcopy_acl): Likewise.
68854 2008-06-08  Bruno Haible  <bruno@clisp.org>
68856         Add support for HP-UX ACLs.
68857         * lib/acl-internal.h (acl_nontrivial): New declaration.
68858         * lib/file-has-acl.c (acl_nontrivial): New function.
68859         (file_has_acl): Add implementation using HP-UX 11 ACL API.
68860         * lib/set-mode-acl.c (qset_acl): Likewise.
68861         * lib/copy-acl.c (qcopy_acl): Likewise.
68863 2008-06-08  Bruno Haible  <bruno@clisp.org>
68865         Add support for Cygwin ACLs.
68866         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
68867         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
68868         the chmod_or_fchmod call.
68869         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
68871 2008-06-08  Bruno Haible  <bruno@clisp.org>
68873         Fix bug with setuid modes in Solaris 10+ code.
68874         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
68875         succeeded, when the mode contains some special bits.
68877 2008-06-08  Bruno Haible  <bruno@clisp.org>
68879         Add support for Solaris 7..10 ACLs.
68880         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
68881         declarations.
68882         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
68883         functions.
68884         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
68885         * lib/set-mode-acl.c (qset_acl): Likewise.
68886         * lib/copy-acl.c (qcopy_acl): Likewise.
68888 2008-06-08  Bruno Haible  <bruno@clisp.org>
68890         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
68891         declaration.
68892         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
68893         (acl_access_nontrivial): Remove MacOS X case.
68894         (file_has_acl): Use acl_extended_nontrivial.
68895         * lib/copy-acl.c (qcopy_acl): Likewise.
68897 2008-06-08  Bruno Haible  <bruno@clisp.org>
68899         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
68901 2008-06-08  Jim Meyering  <meyering@redhat.com>
68903         * modules/acl (Maintainer): Add Bruno Haible.
68905 2008-06-07  Bruno Haible  <bruno@clisp.org>
68907         Improve support for Tru64 ACLs.
68908         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
68909         ACL on OSF/1.
68911 2008-06-07  Bruno Haible  <bruno@clisp.org>
68913         Add support for MacOS X ACLs.
68914         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
68915         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
68916         * lib/set-mode-acl.c (qset_acl): Likewise.
68917         * lib/copy-acl.c (qcopy_acl): Likewise.
68919 2008-06-07  Bruno Haible  <bruno@clisp.org>
68921         Fix memory leak introduced on 2008-05-22.
68922         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
68923         use.
68925 2008-06-07  Bruno Haible  <bruno@clisp.org>
68927         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
68928         to construct an empty ACL.
68930 2008-06-07  Bruno Haible  <bruno@clisp.org>
68932         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
68933         precisely.
68934         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
68936 2008-06-07  Bruno Haible  <bruno@clisp.org>
68938         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
68939         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
68941 2008-06-07  Bruno Haible  <bruno@clisp.org>
68943         * doc/posix-functions/_setjmp.texi: Explain the use of this function
68944         regardless of POSIX.
68945         * doc/posix-functions/_longjmp.texi: Likewise.
68946         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
68947         SystemV platform in this case.
68949 2008-06-06  Eric Blake  <ebb9@byu.net>
68951         Document abort() bugs.
68952         * doc/posix-functions/abort.texi (abort): Mention anomalies.
68954         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
68955         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
68956         sigsetjmp.
68957         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
68958         siglongjmp, but only as a macro.
68959         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
68960         is obsolete.
68961         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
68963         Tweak documentation to cover cygwin argz bugs.
68964         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
68965         argz bug fix; no code change needed since no cygwin releases
68966         occurred between the last fix and the bug being tested.
68967         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
68968         module and recently fixed cygwin bugs.
68969         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
68970         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
68971         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
68972         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
68973         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
68974         Likewise.
68975         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
68976         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
68977         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
68978         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
68979         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
68980         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
68981         Likewise.
68983         Avoid gcc warning on cygwin.
68984         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
68985         !ACL_NO_TRIVIAL]: Avoid unused variable.
68987 2008-06-05  Eric Blake  <ebb9@byu.net>
68989         Be tolerant of UNKNOWN version in gnulib-tool test dir.
68990         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
68991         git-version-gen fails to come up with a version.
68992         Reported by Simon Josefsson.
68994 2008-06-05  Jim Meyering  <meyering@redhat.com>
68995             Paul Eggert  <eggert@cs.ucla.edu>
68997         utimens.c: work around a probable Linux kernel bug
68998         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
68999         appears to be a kernel bug that causes utimensat to return 280
69000         instead of 0, indicating success.
69002 2008-06-04  Bruno Haible  <bruno@clisp.org>
69004         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
69005         2008-06-01 commit.
69007 2008-06-04  Bruno Haible  <bruno@clisp.org>
69009         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
69010         * lib/file-has-acl.c (acl_access_nontrivial): New function.
69011         (file_has_acl): Use it. Save errno afterwards.
69012         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
69014 2008-06-03  Bruno Haible  <bruno@clisp.org>
69016         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
69017         draft code. Simplify #ifs.
69018         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
69019         Put Solaris code after POSIX-draft code. Fix comments regarding
69020         Solaris 10, HP-UX. Mention Cygwin.
69021         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
69023 2008-06-03  Eric Blake  <ebb9@byu.net>
69025         Provide fallback for older kernels.
69026         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
69027         Provide runtime fallback if kernel lacks support.
69028         Reported by Mike Frysinger.
69030 2008-06-02  Bruno Haible  <bruno@clisp.org>
69032         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
69033         it exists.
69035 2008-06-02  Bruno Haible  <bruno@clisp.org>
69037         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
69038         * lib/copy-acl.c (qcopy_acl): Update comment.
69040 2008-06-02  Bruno Haible  <bruno@clisp.org>
69042         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
69043         like ACL APIs.
69045 2008-06-02  Bruno Haible  <bruno@clisp.org>
69047         * tests/test-file-has-acl.sh: Use different code for Cygwin.
69048         * tests/test-set-mode-acl.sh: Likewise.
69049         * tests/test-copy-acl.sh: Likewise.
69050         * tests/test-copy-file.sh: Likewise.
69052 2008-06-02  Bruno Haible  <bruno@clisp.org>
69054         * tests/test-file-has-acl.sh: Remove unused code.
69056 2008-06-01  Bruno Haible  <bruno@clisp.org>
69058         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
69059         (copy_acl): Just a wrapper around qcopy_acl that emits the error
69060         messages.
69061         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
69063 2008-06-01  Bruno Haible  <bruno@clisp.org>
69065         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
69066         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
69067         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
69068         APIs.
69069         * modules/acl-tests (configure.ac): Remove tests now contained in
69070         m4/acl.m4.
69072 2008-06-02  Jim Meyering  <meyering@redhat.com>
69074         announce-gen: use a better key-server host name
69075         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
69076         it may be more consistently reliable.  Suggested by Werner Koch
69077         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
69079 2008-06-01  Bruno Haible  <bruno@clisp.org>
69081         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
69082         Reported by Voroskoi Andras <voroskoi@gmail.com>.
69084 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
69086         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
69088 2008-06-01  Bruno Haible  <bruno@clisp.org>
69090         New ACL tests.
69091         * tests/test-file-has-acl.sh: New file.
69092         * tests/test-file-has-acl.c: New file.
69093         * tests/test-set-mode-acl.sh: New file.
69094         * tests/test-set-mode-acl.c: New file.
69095         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
69096         * tests/test-copy-acl.c: New file.
69097         * modules/acl-tests: New file, based on modules/copy-file-tests.
69098         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
69099         (Depends-on): Add acl-tests.
69100         (configure.ac): Remove checks.
69101         (Makefile.am): Don't create test-sameacls program here any more.
69103 2008-06-01  Bruno Haible  <bruno@clisp.org>
69105         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
69106         * tests/test-sameacls.c: Include progname.h.
69107         (main): Invoke set_program_name. Portability fixes for MacOS X,
69108         Solaris, HP-UX.
69110 2008-06-01  Bruno Haible  <bruno@clisp.org>
69112         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
69113         function.
69114         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
69116 2008-06-01  Bruno Haible  <bruno@clisp.org>
69118         * modules/rpmatch (Depends-on): Add strdup.
69120 2008-06-01  Bruno Haible  <bruno@clisp.org>
69122         * lib/pipe.c: Include unistd-safer.h.
69123         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
69124         * modules/pipe (Depends-on): Add unistd-safer.
69126 2008-05-30  Simon Josefsson  <simon@josefsson.org>
69128         * modules/autobuild (configure.ac): Call AB_INIT.
69130 2008-05-30  Simon Josefsson  <simon@josefsson.org>
69132         * tests/test-getaddrinfo.c: Don't print debug messages by default.
69133         Suggested by Bruno Haible <bruno@clisp.org>.
69135 2008-05-30  Simon Josefsson  <simon@josefsson.org>
69137         * tests/test-base64.c: Cast size_t to unsigned long when invoking
69138         printf.  Use %lu instead of %d.  Reported by Bruno Haible
69139         <bruno@clisp.org>.
69141 2008-05-29  Eric Blake  <ebb9@byu.net>
69143         Prefer new POSIX 200x interfaces over futimesat.
69144         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
69145         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
69146         when available.
69147         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
69149 2008-05-28  Bruno Haible  <bruno@clisp.org>
69151         * modules/stpcpy (License): Change to LGPLv2+.
69152         Requested by David Lutterkort <dlutter@redhat.com>.
69154 2008-05-27  Bruno Haible  <bruno@clisp.org>
69156         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
69157         current mingw.
69158         Reported by Jose E. Marchesi <jemarch@gnu.org>.
69160 2008-05-27  Bruno Haible  <bruno@clisp.org>
69162         * modules/iconv_open (Link): New section, from module 'iconv'.
69163         * modules/striconv (Link): Likewise.
69164         * modules/striconveh (Link): Likewise.
69165         * modules/xstriconv (Link): Likewise.
69166         * modules/unicodeio (Link): Likewise.
69167         * modules/propername (Link): Likewise.
69168         Reported by Jim Meyering.
69170 2008-05-26  Jim Meyering  <meyering@redhat.com>
69172         sha256: do not artificially restrict buffer length to be < 2^32
69173         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
69174         uint32_t to size_t.
69175         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
69176         to match.
69178         avoid unaligned access errors, e.g., on sparc
69179         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
69180         direct access through a possibly-unaligned uint64* pointer.
69181         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
69182         direct access through a possibly-unaligned uint32* pointer.
69183         Prompted by this patch from Tom "spot" Callaway:
69184         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
69186         sha512.c: fix typo in comment
69187         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
69189 2008-05-25  Bruno Haible  <bruno@clisp.org>
69191         * lib/set-mode-acl.c: Renamed from lib/acl.c.
69192         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
69193         (Makefile.am): Update lib_SOURCES.
69195 2008-05-25  Bruno Haible  <bruno@clisp.org>
69197         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
69199 2008-05-25  Jim Meyering  <meyering@redhat.com>
69201         useless-if-before-free: freed expr may have white-space differences
69202         * build-aux/useless-if-before-free: Recognize cases in which the
69203         freed expression differs from the tested one in embedded white
69204         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
69205         $1 was used, so we can't make any regexp shy.  Improved tests now
69206         detect this.
69208         useless-if-before-free: accept white space in the expression.
69209         * build-aux/useless-if-before-free: For now, any white space
69210         in the expression must be identical in the free argument.
69212         useless-if-before-free: efficiency tweak
69213         * build-aux/useless-if-before-free: Make the expression-matching
69214         regexp "shy".
69215         Make the *outer* regexp shy, not the expr-matching one.
69217         update code-in-comment to accept cast of free arg
69218         * build-aux/useless-if-before-free: Update regexp.
69220 2008-05-25  Bruno Haible  <bruno@clisp.org>
69222         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
69223         * modules/copy-file-tests (Files, Makefile.am): Update.
69224         * tests/test-copy-file.c (func_test_copy): Update.
69226 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
69228         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
69230 2008-05-23  Bruno Haible  <bruno@clisp.org>
69232         Improve support for ACLs on OSF/1.
69233         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
69234         Remove fallback for unknown flavors of ACLs.
69236 2008-05-22  Bruno Haible  <bruno@clisp.org>
69238         Add support for ACLs on OSF/1.
69239         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
69240         replacements.
69241         (acl_free_text): New macro fallback.
69242         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
69243         acl_free.
69244         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
69245         acl_free_text function. Require AC_C_INLINE.
69247 2008-05-22  Bruno Haible  <bruno@clisp.org>
69249         Make copy_acl work on MacOS X 10.5.
69250         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
69251         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
69252         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
69253         If MODE_INSIDE_ACL, don't assume that every system has the same text
69254         representation for ACLs as FreeBSD.
69255         * lib/copy-acl.c (copy_acl): Add support for platforms with
69256         !MODE_INSIDE_ACL.
69257         * lib/file-has-acl.c (file_has_acl): Likewise.
69258         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
69259         FreeBSD, MacOS X, or IRIX, respectively.
69261 2008-05-22  Bruno Haible  <bruno@clisp.org>
69263         * lib/acl.h: Don't include <sys/acl.h>.
69264         (GETACLCNT): Move fallback to lib/acl-internal.h.
69265         * lib/acl-internal.h: Include <sys/acl.h> here.
69266         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
69268 2008-05-22  Bruno Haible  <bruno@clisp.org>
69270         Split off copy_acl function to separate file.
69271         * lib/copy-acl.c: New file, extracted from lib/acl.c.
69272         * lib/acl.c (copy_acl): Moved function to separate file.
69273         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
69274         * modules/acl (Files): Add lib/copy-acl.c.
69275         (Makefiles.am): Augment lib_SOURCES.
69277 2008-05-22  Bruno Haible  <bruno@clisp.org>
69279         * modules/copy-file-tests: New file.
69280         * tests/test-copy-file.sh: New file.
69281         * tests/test-copy-file.c: New file.
69282         * tests/test-copy-file-sameacls.c: New file.
69284 2008-05-22  Eric Blake  <ebb9@byu.net>
69286         Avoid gcc warning.
69287         * tests/test-memcmp.c (main): Pass NULL indirectly.
69289 2008-05-21  Bruno Haible  <bruno@clisp.org>
69291         Add reference doc about ACLs.
69292         * doc/acl-resources.txt: New file.
69293         * doc/acl-cygwin.txt: New file.
69295 2008-05-21  Bruno Haible  <bruno@clisp.org>
69297         Avoid one more warning from gcc.
69298         * lib/vasnprintf.c (IF_LINT): Update comments.
69299         (VASNPRINTF): Use it also for the 'prefix' array initializer.
69301 2008-05-21  Jim Meyering  <meyering@redhat.com>
69303         avoid a warning from gcc
69304         * lib/vasnprintf.c (IF_LINT): Define.
69305         (scale10_round_decimal_long_double):
69306         Use it to avoid a "may be used uninitialized" warning.
69307         (scale10_round_decimal_double): Likewise.
69309 2008-05-21  Simon Josefsson  <simon@josefsson.org>
69311         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
69312         declared.
69314 2008-05-20  Bruno Haible  <bruno@clisp.org>
69316         * tests/test-memcmp.c (main): Test also the sign of the result. Test
69317         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
69319 2008-05-20  Simon Josefsson  <simon@josefsson.org>
69321         * modules/memcmp-tests: New file.
69322         * tests/test-memcmp.c: New file.
69324 2008-05-19  Bruno Haible  <bruno@clisp.org>
69326         * modules/propername (Notice, configure.ac): Put quoted "..." into
69327         --keyword option.
69328         * lib/propername.h: Update comments accordingly.
69329         Reported by Eric Blake.
69331 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
69333         * modules/getpass-gnu (Depends-on): Add fseeko.
69335 2008-05-19  Simon Josefsson  <simon@josefsson.org>
69337         * modules/base64-tests: New file.
69339 2008-05-19  Bo Borgerson <gigabo@gmail.com>
69341         * lib/base64.c (base64_decode_ctx): If a decode context structure
69342         was passed in use it to ignore newlines.  If a context structure
69343         was _not_ passed in, continue to treat newlines as garbage (this
69344         is the historical behavior).  Formerly base64_decode.
69345         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
69346         takes a decode context structure.
69347         * lib/base64.h (base64_decode): Macro for four-argument calls.
69348         (base64_decode_alloc): Likewise.
69349         * lib/base64.c (base64_decode_ctx): If a decode context structure
69350         was passed in use it to ignore newlines.  If a context structure
69351         was _not_ passed in, continue to treat newlines as garbage (this
69352         is the historical behavior).  Formerly base64_decode.
69353         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
69354         takes a decode context structure.
69355         * lib/base64.h (base64_decode): Macro for four-argument calls.
69356         (base64_decode_alloc): Likewise.
69358 2008-05-19  Jim Meyering  <meyering@redhat.com>
69360         avoid a warning from gcc
69361         * lib/trim.c (IF_LINT): Define.
69362         (trim2): Use it to avoid a "may be used uninitialized" warning.
69364         Fix doc typo.
69365         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
69367 2008-05-19  Bruno Haible  <bruno@clisp.org>
69369         * doc/glibc-functions/getpass.texi: Document limits of other
69370         implementations.
69372 2008-05-19  Simon Josefsson  <simon@josefsson.org>
69373             Bruno Haible <bruno@clisp.org>
69375         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
69377 2008-05-18  Bruno Haible  <bruno@clisp.org>
69379         * modules/propername: New file, from GNU gettext.
69380         * lib/propername.h: New file, from GNU gettext.
69381         * lib/propername.c: New file, from GNU gettext.
69382         * MODULES.html.sh (Internationalization functions): Add propername.
69384 2008-05-16  Jim Meyering  <meyering@redhat.com>
69385             Bruno Haible  <bruno@clisp.org>
69387         Avoid some warnings from "gcc -Wshadow".
69388         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
69390 2008-05-15  Eric Blake  <ebb9@byu.net>
69392         Extend previous patch to cygwin 1.7.0.
69393         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
69394         fast implementation in cygwin >= 1.7.0.
69395         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69398 2008-05-15  Bruno Haible  <bruno@clisp.org>
69400         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
69401         implementation in glibc >= 2.9.
69402         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69405 2008-05-15  Bruno Haible  <bruno@clisp.org>
69407         * MODULES.html.sh (Internationalization functions): Remove linebreak.
69408         (Unicode string functions): Add unilbrk/*.
69409         Reported by Karl Berry.
69411 2008-05-15  Eric Blake  <ebb9@byu.net>
69413         Fix violation of <stdbool.h> replacement in regex.
69414         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
69415         * lib/regexec.c (re_search_internal): Likewise.
69416         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
69418 2008-05-15  Jim Meyering  <meyering@redhat.com>
69420         avoid distracting test output when git or cvs is not found
69421         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
69422         * tests/test-vc-list-files-git.sh: Likewise.
69424 2008-05-15  Eric Blake  <ebb9@byu.net>
69426         Glibc finally accepted the memmem speedup code, bugzilla #5514.
69427         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
69428         glibc version.
69429         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
69430         * doc/posix-functions/strstr.texi (strstr): Likewise.
69431         * lib/str-two-way.h (MAX): Sychronize with glibc.
69433 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
69435         * lib/regcomp.c (optimize_utf8): Add a note on why we test
69436         opr.ctx_type.
69437         (calc_first): Initialize constraint field.
69438         (duplicate_node_closure): Use it instead of special casing ANCHORS.
69439         Fix grammar.
69440         (duplicate_node): Merge constraint field for all node types.
69441         (calc_eclosure_iter): Look at constraint field for all node types.
69442         * lib/regex_internal.c (create_cd_newstate): Don't look at
69443         opr.ctx_type.
69445 2008-05-14  Bruno Haible  <bruno@clisp.org>
69447         Help GCC to do better code generation.
69448         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
69449         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
69450         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
69451         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
69452         Declare with attribute 'malloc' if supported.
69454 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
69456         use "echo STR|wc -c" rather than unportable "expr length STR"
69457         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
69458         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
69460 2008-05-14  Jim Meyering  <meyering@redhat.com>
69462         use dd ibs=$n count=1 ... rather than less-portable head -c$n
69463         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
69464         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
69465         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
69466         via Collin Lasse.
69468 2008-05-14  Eric Blake  <ebb9@byu.net>
69470         Avoid quadratic growth in gl_LIBSOURCES.
69471         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
69472         Suggested by Bruno Haible.
69474         Test xmemdup0.
69475         * modules/xmemdup0-tests: New file.
69476         * tests/test-xmemdup0.c: Likewise.
69478 2008-05-13  Eric Blake  <ebb9@byu.net>
69480         Split xmemdup0 into its own module.
69481         * modules/xmemdup0: New file.
69482         * lib/xmemdup0.h: Likewise.
69483         * lib/xmemdup0.c: Likewise.
69484         * MODULES.html.sh (Memory management functions): Add xmemdup0.
69485         * lib/xalloc.h (xmemdup0): Remove.
69486         * lib/xmalloc.c (xmemdup0): Likewise.
69488 2008-05-13  Eric Blake  <ebb9@byu.net>
69489             Bruno Haible  <bruno@clisp.org>
69491         Reduce number of forks required during autoconf.
69492         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
69493         and gl_LIBSOURCES_DIR.
69494         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
69495         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
69496         m4_syscmd per file.
69497         <m4_foreach_w>: Move...
69498         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
69500 2008-05-13  Eric Blake  <ebb9@byu.net>
69502         * gnulib-tool: Fix various comment typos.
69504 2008-05-12  Bruno Haible  <bruno@clisp.org>
69506         Tailor the linebreaking algorithm.
69507         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
69509 2008-05-12  Bruno Haible  <bruno@clisp.org>
69511         Update to Unicode 5.0.0.
69512         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
69513         LBP_JV, LBP_JT. Redistribute values.
69514         (unilbrk_table): Change size.
69515         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
69516         Unicode TR#14 rev. 22.
69517         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
69518         LBP_JV, LBP_JT. Redistribute values.
69519         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
69520         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
69521         Update.
69522         * lib/unilbrk/lbrkprop1.h: Regenerated.
69523         * lib/unilbrk/lbrkprop2.h: Regenerated.
69524         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
69525         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
69526         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
69527         Likewise.
69528         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
69529         Likewise.
69530         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
69531         result.
69532         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
69533         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
69534         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
69535         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
69536         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
69537         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
69539 2008-05-11  Bruno Haible  <bruno@clisp.org>
69541         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
69543 2008-05-11  Bruno Haible  <bruno@clisp.org>
69545         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
69546         * modules/unilbrk/gen-lbrk: New file.
69548 2008-05-11  Bruno Haible  <bruno@clisp.org>
69550         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
69551         * m4/sha512.m4 (gl_SHA512): Likewise.
69553 2008-05-11  Jim Meyering  <meyering@redhat.com>
69555         New modules: crypto/sha256, crypto/sha512 (from coreutils)
69556         * modules/crypto/sha256: New file.
69557         * modules/crypto/sha512: Likewise.
69558         * lib/sha256.c: Likewise.
69559         * lib/sha256.h: Likewise.
69560         * lib/sha512.c: Likewise.
69561         * lib/sha512.h: Likewise.
69562         * lib/u64.h: Likewise.
69563         * m4/sha256.m4: Likewise.
69564         * m4/sha512.m4: Likewise.
69565         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
69567 2008-05-10  Bruno Haible  <bruno@clisp.org>
69569         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
69570         (Input/Output <stdio.h>): Add xprintf.
69571         (Signal handling <signal.h>): Add strsignal.
69572         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
69573         (Core language properties): Add func.
69574         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
69575         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
69576         strings.
69577         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
69578         (Input/output): New section.
69579         (File system functions): Add openat-die, stat-macros.
69580         (Networking functions): Add sockets.
69581         (Unicode string functions): Add unictype/*.
69582         (Support for building libraries and executables): Add gperf.
69583         (Support for building documentation): Add agpl-3.0.
69584         (Misc): Add nocrash.
69586 2008-05-10  Bruno Haible  <bruno@clisp.org>
69588         * modules/unictype/gen-ctype: New file.
69590 2008-05-10  Jim Meyering  <meyering@redhat.com>
69592         Make chdir-safer.c more efficient on a system with no symlinks.
69593         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
69594         also if ELOOP is zero.  Suggested by Bruno Haible.
69596         Make chdir-safer.c slightly safer.
69597         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
69598         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
69600         Avoid compile failure on systems without ELOOP (like mingw).
69601         * lib/chdir-safer.c (ELOOP): Define if not already defined.
69602         Reported by Bruno Haible.
69604 2008-05-10  Bruno Haible  <bruno@clisp.org>
69606         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
69607         (is_utf8_encoding): Use a case-insensitive comparison.
69608         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
69609         streq.
69611 2008-05-10  Bruno Haible  <bruno@clisp.org>
69613         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
69614         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
69615         * lib/unilbrk/ulc-common.h (iconv_string_length,
69616         iconv_string_keeping_offsets): Remove declarations.
69617         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
69618         Don't include <iconv.h>, streq.h, xsize.h.
69619         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
69620         conversion.
69621         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
69622         <iconv.h>, streq.h, xsize.h.
69623         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
69624         conversion.
69625         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
69626         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
69627         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
69628         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
69630 2008-05-10  Bruno Haible  <bruno@clisp.org>
69632         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
69633         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
69635         * modules/unilbrk/u32-width-linebreaks-tests: New file.
69636         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
69638         * modules/unilbrk/u16-width-linebreaks-tests: New file.
69639         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
69641         * modules/unilbrk/u8-width-linebreaks-tests: New file.
69642         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
69644         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
69645         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
69647         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
69648         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
69650         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
69651         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
69653         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
69654         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
69656 2008-05-10  Bruno Haible  <bruno@clisp.org>
69658         Split up 'linebreak' module.
69659         * lib/unilbrk.h: New file, based on lib/linebreak.h.
69660         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
69661         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
69662         modifications.
69663         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
69664         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
69665         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
69666         lib/linebreak.c.
69667         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
69668         lib/linebreak.c.
69669         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
69670         lib/linebreak.c.
69671         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
69672         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
69673         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
69674         lib/linebreak.c.
69675         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
69676         lib/linebreak.c.
69677         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
69678         lib/linebreak.c.
69679         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
69680         lib/linebreak.c.
69681         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
69682         lib/linebreak.c.
69683         * modules/unilbrk/base: New file.
69684         * modules/unilbrk/tables: New file.
69685         * modules/unilbrk/u8-possible-linebreaks: New file.
69686         * modules/unilbrk/u16-possible-linebreaks: New file.
69687         * modules/unilbrk/u32-possible-linebreaks: New file.
69688         * modules/unilbrk/ulc-common: New file.
69689         * modules/unilbrk/ulc-possible-linebreaks: New file.
69690         * modules/unilbrk/u8-width-linebreaks: New file.
69691         * modules/unilbrk/u16-width-linebreaks: New file.
69692         * modules/unilbrk/u32-width-linebreaks: New file.
69693         * modules/unilbrk/ulc-width-linebreaks: New file.
69694         * lib/linebreak.h: Remove file.
69695         * lib/linebreak.c: Remove file.
69696         * m4/linebreak.m4: Remove file.
69697         * modules/linebreak: Remove file.
69698         * NEWS: Mention the changes.
69700 2008-05-09  Eric Blake  <ebb9@byu.net>
69702         Add xmemdup0.
69703         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
69704         implementation.
69705         * lib/xmalloc.c (xmemdup0): New C implementation.
69707 2008-05-08  Bruno Haible  <bruno@clisp.org>
69709         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
69711 2008-05-07  Eric Blake  <ebb9@byu.net>
69713         Support cross-compilation of <wctype.h>.
69714         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
69715         AC_CACHE_CHECK.
69717 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
69719         * build-aux/vc-list-files: Add support for bzr.
69721 2008-05-03  Jim Meyering  <meyering@redhat.com>
69723         avoid failed assertion with tight malloc
69724         * tests/test-getndelim2.c: Correct an off-by-one assertion.
69726 2008-05-03  Simon Josefsson  <simon@josefsson.org>
69728         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
69729         are needed from arpa/inet.h.
69730         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
69731         Reported by Bruno Haible.
69733 2008-05-02  Jim Meyering  <meyering@redhat.com>
69735         avoid compilation error on FreeBSD 6
69736         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
69738 2008-05-01  Jim Meyering  <meyering@redhat.com>
69740         useless-if-before-free: correct --help's exit status description
69741         * build-aux/useless-if-before-free (usage): Like grep, exit 0
69742         for one or more matches, etc.  Reported by Bruno Haible.
69744         vc-list-files: make the stand-alone gnulib test work
69745         * modules/vc-list-files-tests (configure.ac):
69746         Define and AC_SUBST abs_aux_dir.
69747         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
69748         $(abs_top_srcdir) to each script and having each of them
69749         duplicate the work of setting PATH, set PATH here, using
69750         the new variable, abs_aux_dir instead.
69751         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
69752         * tests/test-vc-list-files-git.sh: Likewise.
69753         Reported by Bruno Haible.
69755 2008-05-01  Bruno Haible  <bruno@clisp.org>
69757         * lib/getndelim2.c (getndelim2): Fix newsize computation during
69758         reallocation. Rename 'done' to 'found_delimiter'.
69760 2008-05-01  Jim Meyering  <meyering@redhat.com>
69762         vc-list-files: accommodate /bin/sh like the one from Solaris 10
69763         * build-aux/vc-list-files: Use `...`, not $(...).
69765 2008-04-30  Jim Meyering  <meyering@redhat.com>
69767         add tests for vc-list-files
69768         * modules/vc-list-files-tests: New module.
69769         * tests/test-vc-list-files-cvs.sh: New file.
69770         * tests/test-vc-list-files-git.sh: New file.
69772         avoid a warning from gcc
69773         * lib/getndelim2.c (IF_LINT): Define.
69774         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
69776         vc-list-files: work properly with build-aux/cvsu, too
69777         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
69778         to all cvs-based clauses.
69780         vc-list-files: work properly in the CVS+awk case, too
69781         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
69783         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
69784         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
69785         take more than one file argument, so .  Add quotes, just in case $dir
69786         ever contains a shell meta-character.  Prompted by Soren Hansen in
69787         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
69789 2008-04-29  Eric Blake  <ebb9@byu.net>
69791         Optimize getndelim2 to use block operations when possible.
69792         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
69793         freadseek, and memchr2.
69794         * lib/getndelim2.c (getndelim2): Use them for block reads.
69796 2008-04-29  Bruno Haible  <bruno@clisp.org>
69798         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
69799         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69800         * modules/inet_ntop (Depends-on): Add extensions.
69801         * modules/inet_pton (Depends-on): Likewise.
69802         Reported by Simon Josefsson.
69804 2008-04-29  Jim Meyering  <meyering@redhat.com>
69806         When the is more than one match in a block, match all of them.
69807         * build-aux/useless-if-before-free: Iterate through each block
69808         until there are no more matches.
69810         Fix broken useless-if-before-free script.
69811         * build-aux/useless-if-before-free: Fix typo: missing "?" after
69812         the expression to match cast of argument to free-like function.
69814 2008-04-29  Eric Blake  <ebb9@byu.net>
69816         Use new header.
69817         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
69819 2008-04-29  Jim Meyering  <meyering@redhat.com>
69821         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
69822         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
69823         by gnulib to exist and to declare e.g., inet_ntop.
69824         Don't include "inet_ntop.h", now removed.
69826         * m4/arpa_inet_h.m4: Remove trailing blanks.
69828 2008-04-29  Eric Blake  <ebb9@byu.net>
69830         Silence valgrind on safe reads beyond potential array bounds.
69831         * lib/rawmemchr.valgrind: New file.
69832         * lib/strchrnul.valgrind: Likewise.
69833         * modules/rawmemchr (Files): Distribute new file.
69834         * modules/strchrnul (Files): Likewise.
69835         Suggested by Bruno Haible.
69837 2008-04-29  Bruno Haible  <bruno@clisp.org>
69839         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
69840         (inet_ntop, inet_pton): Change portability warning's wording.
69841         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
69842         Invoke gl_CHECK_NEXT_HEADERS.
69843         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
69844         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
69845         set ARPA_INET_H.
69846         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69847         * modules/arpa_inet (Description): No longer only for systems that
69848         lack it.
69849         (Depends-on): Add include_next.
69850         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
69851         HAVE_ARPA_INET_H.
69853 2008-04-29  Jim Meyering  <meyering@redhat.com>
69855         * modules/mkdir (License): Re-license as LGPLv2+.
69857 2008-04-29  Bruno Haible  <bruno@clisp.org>
69859         * modules/rawmemchr (Maintainer): Set to Eric.
69860         * modules/strchrnul (Maintainer): Likewise.
69862 2008-04-29  Simon Josefsson  <simon@josefsson.org>
69864         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
69865         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
69867         * modules/arpa_inet (arpa/inet.h): Use them.
69869 2008-04-28  Eric Blake  <ebb9@byu.net>
69871         Test getndelim2.
69872         * modules/getndelim2-tests: New file.
69873         * tests/test-getndelim2.c: Likewise.
69874         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
69875         stream.
69876         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
69878         * MODULES.html.sh: Document new module.
69880 2008-04-20  Bruno Haible  <bruno@clisp.org>
69882         * lib/c-stack.c (die): Use raise.
69883         * modules/c-stack (Depends-on): Add raise.
69885 2008-04-28  Bruno Haible  <bruno@clisp.org>
69887         Expect rpmatch to be declared.
69888         * lib/yesno.c (rpmatch): Remove declaration.
69890         Declare rpmatch.
69891         * lib/stdlib.in.h (rpmatch): New declaration.
69892         * lib/rpmatch.c: Include <stdlib.h> first.
69893         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
69894         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
69895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
69896         HAVE_RPMATCH.
69897         * modules/rpmatch (Depends-on): Add stdlib, extensions.
69898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69899         (Include): Set to <stdlib.h>.
69900         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
69901         HAVE_RPMATCH.
69902         * NEWS: Document the change.
69904 2008-04-28  Bruno Haible  <bruno@clisp.org>
69906         Change rpmatch to use nl_langinfo when appropriate.
69907         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
69908         (N_): New macro.
69909         (localized_pattern): New function/macro.
69910         (try): Remove match, nomatch arguments. Copy the pattern into safe
69911         memory before caching it.
69912         (rpmatch): Use localized_pattern. Add translator comments.
69913         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
69914         Suggested by Eric Blake.
69915         * modules/rpmatch (Depends-on): Add stdbool.
69917 2008-04-28  Eric Blake  <ebb9@byu.net>
69919         Add rawmemchr module, matching glibc.
69920         * modules/string (Makefile.am): New indicator.
69921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
69922         * lib/string.in.h (rawmemchr): Declare when appropriate.
69923         * modules/rawmemchr: New file.
69924         * m4/rawmemchr.m4: Likewise.
69925         * lib/rawmemchr.c: Likewise.
69926         * modules/rawmemchr-tests: Likewise.
69927         * tests/test-rawmemchr.c: Likewise.
69928         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
69929         module.
69930         * modules/strchrnul (Depends-on): Add rawmemchr.
69931         * lib/strchrnul.c (strchrnul): Optimize a corner case.
69933         Whitespace cleanup.
69934         * tests/test-strchrnul.c: Reindent.
69935         * lib/strchrnul.c: Likewise.
69937         Optimize and test strchrnul.
69938         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
69939         * modules/strchrnul-tests: New file.
69940         * tests/test-strchrnul.c: Likewise.
69942         Remove intprops dependency.
69943         * modules/memchr (Depends-on): Remove intprops.
69944         * modules/memrchr (Depends-on): Likewise.
69945         * modules/memchr2 (Depends-on): Likewise.
69946         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
69947         * lib/memrchr.c (__memrchr): Likewise.
69948         * lib/memrchr2.c (memchr2): Likewise.
69949         Reported by Simon Josefsson.
69951 2008-04-28  Simon Josefsson  <simon@josefsson.org>
69953         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
69954         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69956 2008-04-28  Simon Josefsson  <simon@josefsson.org>
69958         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
69960         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
69962         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
69964         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
69965         declarations.
69966         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
69968         * m4/inet_pton.m4: Don't check for header files.
69970         * m4/inet_ntop.m4: Don't check for header files.
69972 2008-04-28  Simon Josefsson  <simon@josefsson.org>
69974         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
69975         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
69976         trigger for cygwin).
69977         Reported by Bruno Haible  <bruno@clisp.org>.
69979 2008-04-28  Bruno Haible  <bruno@clisp.org>
69981         * doc/posix-functions/strdup.texi: Mention mingw problem.
69983 2008-04-27  Bruno Haible  <bruno@clisp.org>
69985         * modules/stat-time-tests (Depends-on): Add sleep.
69986         * tests/test-stat-time.c (force_unlink): New function.
69987         (cleanup): Use it.
69988         (test_mtime): Remove the ctime related tests.
69989         (test_ctime): New function, containing the ctime related tests.
69990         (main): Call test_ctime, except on native Windows platforms.
69992 2008-04-27  Bruno Haible  <bruno@clisp.org>
69994         * lib/rpmatch.c (rpmatch): Add some comments.
69995         Reported by James Youngman <jay@gnu.org>.
69997 2008-04-27  Bruno Haible  <bruno@clisp.org>
69999         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
70000         quiet NaNs.
70002 2008-04-27  Bruno Haible  <bruno@clisp.org>
70004         Make test-yesno.sh work on mingw.
70005         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
70006         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
70007         (main): Set stdin to binary mode.
70008         * modules/yesno-tests (Depends-on): Add binary-io.
70010 2008-04-27  Bruno Haible  <bruno@clisp.org>
70012         Fix 'isfinite' on x86, x86_64, ia64 platforms.
70013         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
70014         argument that lie outside the IEEE 854 domain.
70015         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
70016         (gl_ISFINITE): Use it.
70017         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
70019 2008-04-27  Bruno Haible  <bruno@clisp.org>
70021         Allow local renaming in config.h.
70022         * lib/memrchr.c (memrchr): Don't undefine outside libc.
70024 2008-04-27  Bruno Haible  <bruno@clisp.org>
70026         * lib/memchr.c (__memchr): Change type of 'i'.
70027         * lib/memchr2.c (memchr2): Likewise.
70029 2008-04-26  Eric Blake  <ebb9@byu.net>
70030         and Bruno Haible  <bruno@clisp.org>
70032         Optimize and test memrchr.
70033         * modules/memrchr (Depends-on): Add intprops.
70034         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
70035         * modules/memrchr-tests: New file.
70036         * tests/test-memrchr.c: New file.
70038 2008-04-26  Bruno Haible  <bruno@clisp.org>
70040         Add tentative support for DragonFly BSD.
70041         * lib/stdio-impl.h: Add macros for DragonFly BSD.
70042         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
70043         fp.
70044         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
70045         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
70046         * lib/fpurge.c (fpurge): Likewise.
70047         * lib/freadable.c (freaadable): Likewise.
70048         * lib/freadahead.c (freadahead): Likewise.
70049         * lib/freading.c (freading): Likewise.
70050         * lib/freadptr.c (freadptr): Likewise.
70051         * lib/freadseek.c (freadptrinc): Likewise.
70052         * lib/fseeko.c (fseeko): Likewise.
70053         * lib/fseterr.c (fseterr): Likewise.
70054         * lib/fwritable.c (fwritable): Likewise.
70055         * lib/fwriting.c (fwriting): Likewise.
70057 2008-04-26  Bruno Haible  <bruno@clisp.org>
70059         * lib/stdio-impl.h: New file.
70060         * lib/fbufmode.c: Include stdio-impl.h.
70061         (fbufmode): Use fp_, remove redundant #defines.
70062         * lib/fflush.c: Include stdio-impl.h.
70063         (clear_ungetc_buffer): Remove redundant #defines.
70064         * lib/fpurge.c: Include stdio-impl.h.
70065         (fpurge): Remove redundant #defines.
70066         * lib/freadable.c: Include stdio-impl.h.
70067         (freadable): Remove redundant #defines.
70068         * lib/freadahead.c: Include stdio-impl.h.
70069         (freadahead): Remove redundant #defines.
70070         * lib/freading.c: Include stdio-impl.h.
70071         (freading): Remove redundant #defines.
70072         * lib/freadptr.c: Include stdio-impl.h.
70073         (freadptr): Remove redundant #defines.
70074         * lib/freadseek.c: Include stdio-impl.h.
70075         (freadptrinc): Remove redundant #defines.
70076         * lib/fseeko.c: Include stdio-impl.h.
70077         (rpl_fseeko): Remove redundant #defines.
70078         * lib/fseterr.c: Include stdio-impl.h.
70079         (fseterr): Remove redundant #defines.
70080         * lib/fwritable.c: Include stdio-impl.h.
70081         (fwritable: Remove redundant #defines.
70082         * lib/fwriting.c: Include stdio-impl.h.
70083         (fwriting): Remove redundant #defines.
70084         * modules/fbufmode (Files): Add lib/stdio-impl.h.
70085         * modules/fflush (Files): Likewise.
70086         * modules/fpurge (Files): Likewise.
70087         * modules/freadable (Files): Likewise.
70088         * modules/freadahead (Files): Likewise.
70089         * modules/freading (Files): Likewise.
70090         * modules/freadptr (Files): Likewise.
70091         * modules/freadseek (Files): Likewise.
70092         * modules/fseeko (Files): Likewise.
70093         * modules/fseterr (Files): Likewise.
70094         * modules/fwritable (Files): Likewise.
70095         * modules/fwriting (Files): Likewise.
70097 2008-04-26  Bruno Haible  <bruno@clisp.org>
70099         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
70100         restore_seek_optimization, update_fpos_cache): New functions, extracted
70101         from rpl_fflush.
70102         (rpl_fflush): Use them.
70103         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
70104         (gl_REPLACE_FFLUSH): Use it.
70106 2008-04-26  Bruno Haible  <bruno@clisp.org>
70108         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
70109         on Solaris.
70110         * tests/test-xstrtoimax.sh: Likewise.
70111         * tests/test-xstrtoumax.sh: Likewise.
70112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70114 2008-04-26  Bruno Haible  <bruno@clisp.org>
70116         * modules/memchr-tests: New file.
70117         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
70119 2008-04-26  Eric Blake  <ebb9@byu.net>
70120             Bruno Haible  <bruno@clisp.org>
70122         * lib/memchr.c: Include intprops.h.
70123         (__memchr): Optimize parallel detection of matching bytes. Rename local
70124         variables. Add explanatory comments.
70126 2008-04-26  Bruno Haible  <bruno@clisp.org>
70128         Fix module 'memchr', broken since 2000-10-28.
70129         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
70131 2008-04-26  Bruno Haible  <bruno@clisp.org>
70133         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
70134         comments.
70136 2008-04-25  Eric Blake  <ebb9@byu.net>
70138         Use native fstatat on cygwin 1.7.0.
70139         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
70140         first.
70142 2008-04-23  Eric Blake  <ebb9@byu.net>
70144         Improve memchr2 performance.
70145         * lib/memchr2.c (memchr2): Further optimize parallel detection of
70146         NUL bytes.
70147         * modules/memchr2 (Depends-on): Use intprops.h.
70149 2008-04-23  Simon Josefsson  <simon@josefsson.org>
70151         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
70152         an inline function instead of a CPP macro.  Patch by Ben Pfaff
70153         <blp@cs.stanford.edu>.
70155 2008-04-23  Simon Josefsson  <simon@josefsson.org>
70157         * lib/arpa_inet.in.h: New file.
70159         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
70160         (Makefile.am): Sed in substitute header file.
70162         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
70163         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
70165         * modules/inet_ntop (configure.ac): Use
70166         gl_ARPA_INET_MODULE_INDICATOR.
70168         * modules/inet_pton (configure.ac): Use
70169         gl_ARPA_INET_MODULE_INDICATOR.
70171 2008-04-22  Jim Meyering  <meyering@redhat.com>
70173         * modules/verify (License): Re-license as LGPLv2+.
70175 2008-04-22  Simon Josefsson  <simon@josefsson.org>
70177         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
70178         parameter to void* as per POSIX standard (MinGW uses char*).
70180 2008-04-21  Bruno Haible  <bruno@clisp.org>
70182         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70183         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70184         Define to replacements if REPLACE_ISWCNTRL is 1.
70185         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
70186         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
70187         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
70188         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
70189         what it fixes.
70190         * doc/posix-functions/iswalpha.texi: Likewise.
70191         * doc/posix-functions/iswblank.texi: Likewise.
70192         * doc/posix-functions/iswcntrl.texi: Likewise.
70193         * doc/posix-functions/iswdigit.texi: Likewise.
70194         * doc/posix-functions/iswgraph.texi: Likewise.
70195         * doc/posix-functions/iswlower.texi: Likewise.
70196         * doc/posix-functions/iswprint.texi: Likewise.
70197         * doc/posix-functions/iswpunct.texi: Likewise.
70198         * doc/posix-functions/iswspace.texi: Likewise.
70199         * doc/posix-functions/iswupper.texi: Likewise.
70200         * doc/posix-functions/iswxdigit.texi: Likewise.
70201         Reported by Alain Guibert.
70203 2008-04-21  Bruno Haible  <bruno@clisp.org>
70205         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
70206         Patch by Alain Guibert.
70208 2008-04-21  Bruno Haible  <bruno@clisp.org>
70210         Fix test failures on mingw.
70211         * tests/test-xstrtol.c (print_no_progname): New function.
70212         (main): Install it in error_print_progname hook.
70213         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
70214         * tests/test-xstrtoimax.sh: Likewise.
70215         * tests/test-xstrtoumax.sh: Likewise.
70217 2008-04-21  Bruno Haible  <bruno@clisp.org>
70219         Fix test failure on mingw.
70220         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
70222 2008-04-21  Bruno Haible  <bruno@clisp.org>
70224         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
70225         Actually assign a value.
70227 2008-04-20  Bruno Haible  <bruno@clisp.org>
70229         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
70230         take 2.
70231         * lib/canonicalize.c (canonicalize_file_name): Elide if the
70232         'canonicalize-lgpl' module is also used.
70233         * lib/canonicalize-lgpl.c: Undo last change.
70234         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
70236 2008-04-20  Bruno Haible  <bruno@clisp.org>
70238         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
70239         config.h. Provide _mkdir based fallback for mingw.
70240         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
70241         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
70242         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
70243         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
70244         rather than defining mkdir in config.h.
70245         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
70246         (gl_SYS_STAT_H_DEFAULTS): New macro.
70247         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
70248         HAVE_IO_H any more.
70249         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
70250         HAVE_DECL_MKDIR and HAVE_IO_H.
70252 2008-04-20  Bruno Haible  <bruno@clisp.org>
70254         * lib/isapipe.c: Port to native Windows platforms.
70256 2008-04-20  Bruno Haible  <bruno@clisp.org>
70258         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
70260 2008-04-21  Eric Blake  <ebb9@byu.net>
70262         Work around preprocessors that don't handle UINTMAX_MAX.
70263         * lib/memchr2.c (memchr2): Avoid embedded #if.
70264         Reported by Alain Guibert, fix suggested by Bruno Haible.
70266 2008-04-21  Simon Josefsson  <simon@josefsson.org>
70268         * doc/posix-functions/strftime.texi (strftime): Explain better
70269         Windows incompatibility.  Suggested by Micah Cowan
70270         <micah@cowan.name>.
70272 2008-04-20  Bruno Haible  <bruno@clisp.org>
70274         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
70275         unistr/u8-mblen.
70277 2008-04-20  Bruno Haible  <bruno@clisp.org>
70279         Fix test failure on platforms with non-GNU iconv.
70280         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
70281         (U_TO_U8): Use it, rather than u16_to_u8.
70282         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
70283         units at the end of the input string.
70284         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
70286 2008-04-20  Bruno Haible  <bruno@clisp.org>
70288         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
70289         when the resulting length is 0.
70290         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
70292 2008-04-20  Bruno Haible  <bruno@clisp.org>
70294         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
70295         works.
70296         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
70298 2008-04-20  Bruno Haible  <bruno@clisp.org>
70300         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
70301         * modules/tsearch-tests (configure.ac): Test for initstate function.
70303 2008-04-20  Bruno Haible  <bruno@clisp.org>
70305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
70306         for nlink_t if missing.
70307         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
70309 2008-04-19  Bruno Haible  <bruno@clisp.org>
70311         Work around snprintf bug on Linux libc5.
70312         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
70313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70314         gl_SNPRINTF_SIZE1.
70315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70316         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
70317         that test failed.
70318         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
70319         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
70320         * modules/snprintf (Files): Add m4/printf.m4.
70321         * modules/vsnprintf (Files): Likewise.
70322         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
70323         * doc/posix-functions/vsnprintf.texi: Likewise.
70325 2008-04-19  Bruno Haible  <bruno@clisp.org>
70327         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
70328         from 0.0058 to less than 10^-7.
70330 2008-04-19  Bruno Haible  <bruno@clisp.org>
70332         Fix rounding when a precision is given.
70333         * lib/vasnprintf.c (is_borderline): New function.
70334         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
70335         9...9x.
70336         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
70337         %e, %g.
70338         * tests/test-vasprintf-posix.c (test_function): Likewise.
70339         * tests/test-snprintf-posix.h (test_function): Likewise.
70340         * tests/test-sprintf-posix.h (test_function): Likewise.
70341         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
70342         * tests/test-printf-posix.h (test_function): Likewise.
70343         * tests/test-printf-posix.output: Update.
70344         Reported by John Darrington <john@darrington.wattle.id.au> via
70345         Ben Pfaff <blp@cs.stanford.edu>.
70347 2008-04-18  Simon Josefsson  <simon@josefsson.org>
70349         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
70350         Suggested by Bruno Haible <bruno@clisp.org>.
70352 2008-04-17  Bruno Haible  <bruno@clisp.org>
70354         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
70355         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
70356         implementation.
70357         Patch by Bruce Merry <bmerry@gmail.com>.
70359 2008-04-17  Simon Josefsson  <simon@josefsson.org>
70361         * doc/posix-functions/strftime.texi (strftime): Mention that %e
70362         doesn't work under Windows.
70364 2008-04-16  Bruno Haible  <bruno@clisp.org>
70366         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
70367         New macros.
70368         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
70369         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
70370         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
70371         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
70372         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
70373         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
70374         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
70375         macros.
70376         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
70377         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
70378         Northern Sotho, Uighur.
70380 2008-04-16  Bruno Haible  <bruno@clisp.org>
70382         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
70383         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
70384         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
70385         Reported by Daniel Bergström <daniel@octocode.com>.
70387 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
70388             Bruno Haible  <bruno@clisp.org>
70390         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
70391         function.
70392         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
70393         New functions, mostly extracted from gl_locale_name_default.
70394         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
70396 2008-04-16  Eric Blake  <ebb9@byu.net>
70398         Adjust strtod detection to catch glibc 2.7 bug.
70399         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
70400         Reported by John Gatewood Ham.
70402 2008-04-16  Bruno Haible  <bruno@clisp.org>
70404         Add tentative support for Linux libc5.
70405         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
70406         * lib/fpurge.c (fpurge): Likewise.
70407         * lib/freadable.c (freadable): Likewise.
70408         * lib/freadahead.c (freadahead): Likewise.
70409         * lib/freading.c (freading): Likewise.
70410         * lib/freadptr.c (freadptr): Likewise.
70411         * lib/freadseek.c (freadptrinc): Likewise.
70412         * lib/fseeko.c (rpl_fseeko): Likewise.
70413         * lib/fseterr.c (fseterr): Likewise.
70414         * lib/fwritable.c (fwritable): Likewise.
70415         * lib/fwriting.c (fwriting): Likewise.
70416         Reported by Alain Guibert <alguibert+bts@free.fr>.
70418 2008-04-15  Bruno Haible  <bruno@clisp.org>
70420         * modules/mathl (configure.ac): Define module indicator.
70422 2008-04-15  Bruno Haible  <bruno@clisp.org>
70424         * lib/logl.c (logl): Remove unused variables.
70426 2008-04-15  Bruno Haible  <bruno@clisp.org>
70428         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
70429         fails.
70431 2008-04-15  Bruno Haible  <bruno@clisp.org>
70433         * lib/trim.c (trim2): Fix argument of isspace() macro.
70435 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
70437         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
70438         to 0.
70439         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
70441 2008-04-14  Bruno Haible  <bruno@clisp.org>
70443         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
70444         AC_LANG_PROGRAM argument.
70445         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
70446         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
70447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
70448         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70449         * m4/math_h.m4 (gl_MATH_H): Likewise.
70450         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
70451         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
70452         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
70453         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
70454         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70455         * m4/regex.m4 (gl_REGEX): Likewise.
70456         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
70457         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
70458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70459         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
70460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70461         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
70465 2008-04-14  Jim Meyering  <meyering@redhat.com>
70467         test-strtod: fix typos: s/abs/fabs/
70468         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
70470 2008-04-13  Bruno Haible  <bruno@clisp.org>
70472         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
70473         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
70474         module is also used and while not building the reloc-wrapper.
70476 2008-04-13  Bruno Haible  <bruno@clisp.org>
70478         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
70480 2008-04-13  Bruno Haible  <bruno@clisp.org>
70482         Fix AIX compilation failure introduced on 2008-04-02.
70483         * tests/test-frexp.c (exp): Undefine before redefining.
70484         * tests/test-frexpl.c (exp): Likewise.
70486 2008-04-13  Bruno Haible  <bruno@clisp.org>
70488         Work around a HP-UX stdio bug.
70489         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
70490         * tests/test-ftello.c (main): Likewise.
70491         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
70492         * doc/posix-functions/ftello.texi: Likewise.
70494 2008-04-13  Bruno Haible  <bruno@clisp.org>
70496         Make test-signbit pass on HP-UX/hppa.
70497         * tests/test-signbit.c (minus_zerol): New variable.
70498         (test_signbitl): Use it.
70500 2008-04-13  Bruno Haible  <bruno@clisp.org>
70502         Make truncl work on OSF/1 4.0.
70503         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
70504         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
70505         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
70506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
70507         HAVE_DECL_TRUNCL.
70508         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
70509         HAVE_DECL_TRUNCL.
70510         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
70512 2008-04-13  Bruno Haible  <bruno@clisp.org>
70514         * lib/unictype.h: Remove trailing comma from enumeration definitions.
70516 2008-04-13  Bruno Haible  <bruno@clisp.org>
70518         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
70519         expression, so as to avoid HP-UX 11 cc compiler bug.
70521 2008-04-13  Bruno Haible  <bruno@clisp.org>
70523         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
70525 2008-04-13  Bruno Haible  <bruno@clisp.org>
70527         * lib/git-merge-changelog.c: Remove empty declaration outside of
70528         functions.
70530 2008-04-13  Bruno Haible  <bruno@clisp.org>
70532         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
70534 2008-04-13  Bruno Haible  <bruno@clisp.org>
70536         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
70537         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
70538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
70539         also if it exists but lacks definitions of the SHUT_* macros.
70540         * modules/sys_socket (Description): Update.
70541         Reported by Elbert Pol <e.pol@chello.nl>.
70543 2008-04-13  Bruno Haible  <bruno@clisp.org>
70545         * lib/localcharset.c (OS2): Don't redefine if already defined.
70546         Reported by Elbert Pol <e.pol@chello.nl>.
70548 2008-04-13  Bruno Haible  <bruno@clisp.org>
70550         * lib/binary-io.h [__EMX__]: Include <io.h>.
70551         Reported by Elbert Pol <e.pol@chello.nl>.
70553 2008-04-12  Bruno Haible  <bruno@clisp.org>
70555         * lib/fpucw.h: Enable the definitions also for x86_64.
70556         Needed for NetBSD/x86_64.
70557         Reported by Thomas Klausner <tk@giga.or.at>.
70559 2008-04-12  Bruno Haible  <bruno@clisp.org>
70561         * tests/test-strtod.c: Include isnand.h.
70562         (main): Use isnand instead of isnan.
70563         Reported by Jim Meyering.
70565 2008-04-12  Bruno Haible  <bruno@clisp.org>
70567         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
70568         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70570 2008-04-12  Jim Meyering  <meyering@redhat.com>
70572         * m4/math_h.m4 (gl_MATH_H): Fix typos.
70574 2008-04-12  Bruno Haible  <bruno@clisp.org>
70576         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
70577         Reported by Elbert Pol <e.pol@chello.nl>.
70579 2008-04-12  Eric Blake  <ebb9@byu.net>
70581         Work around Solaris 10 math.h bug.
70582         * m4/math_h.m4 (gl_MATH_H): Check for bug.
70583         (gl_MATH_H_DEFAULTS): Set up default.
70584         * modules/math (Makefile.am): Replace new indicators.
70585         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
70586         * tests/test-math.c (main): Test this.
70587         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
70588         * doc/posix-headers/math.texi (math.h): Mention bug.
70589         Reported by Nelson H. F. Beebe and Jim Meyering.
70591 2008-04-11  Bruno Haible  <bruno@clisp.org>
70593         Adapt to future versions of Apple GCC.
70594         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
70595         Reported by Peter O'Gorman <peter@pogma.com>.
70597 2008-04-11  Bruno Haible  <bruno@clisp.org>
70599         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
70601 2008-04-11  Bruno Haible  <bruno@clisp.org>
70603         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
70605         * modules/getaddrinfo-tests (Makefile.am): Define
70606         test_getaddrinfo_LDADD.
70608 2008-04-11  Bruno Haible  <bruno@clisp.org>
70610         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
70611         (init): Fix syntax error.
70612         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
70613         is declared.
70615 2008-04-11  Bruno Haible  <bruno@clisp.org>
70617         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
70618         * modules/glob (Depends-on): Add stdbool.
70620 2008-04-11  Bruno Haible  <bruno@clisp.org>
70622         * lib/trim.c: Include <string.h>.
70624 2008-04-11  Eric Blake  <ebb9@byu.net>
70626         Avoid compile failure on OS/2.
70627         * lib/regex_internal.h (internal_function): Disable optimization
70628         on OS/2 (__EMX__), where it caused compiler error.
70629         Reported by Elbert Pol.
70631 2008-04-11  Bruno Haible  <bruno@clisp.org>
70633         Flush the standard error stream before aborting. Needed on mingw.
70634         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
70635         * tests/test-array_list.c (ASSERT): Likewise.
70636         * tests/test-array_oset.c (ASSERT): Likewise.
70637         * tests/test-avltree_list.c (ASSERT): Likewise.
70638         * tests/test-avltree_oset.c (ASSERT): Likewise.
70639         * tests/test-avltreehash_list.c (ASSERT): Likewise.
70640         * tests/test-binary-io.c (ASSERT): Likewise.
70641         * tests/test-byteswap.c (ASSERT): Likewise.
70642         * tests/test-c-ctype.c (ASSERT): Likewise.
70643         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
70644         * tests/test-c-strcasestr.c (ASSERT): Likewise.
70645         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
70646         * tests/test-c-strstr.c (ASSERT): Likewise.
70647         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
70648         * tests/test-canonicalize.c (ASSERT): Likewise.
70649         * tests/test-carray_list.c (ASSERT): Likewise.
70650         * tests/test-ceilf1.c (ASSERT): Likewise.
70651         * tests/test-ceilf2.c (ASSERT): Likewise.
70652         * tests/test-ceill.c (ASSERT): Likewise.
70653         * tests/test-count-one-bits.c (ASSERT): Likewise.
70654         * tests/test-fbufmode.c (ASSERT): Likewise.
70655         * tests/test-fflush2.c (ASSERT): Likewise.
70656         * tests/test-floorf1.c (ASSERT): Likewise.
70657         * tests/test-floorf2.c (ASSERT): Likewise.
70658         * tests/test-floorl.c (ASSERT): Likewise.
70659         * tests/test-fopen.c (ASSERT): Likewise.
70660         * tests/test-fpending.c (ASSERT): Likewise.
70661         * tests/test-fprintf-posix.c (ASSERT): Likewise.
70662         * tests/test-fpurge.c (ASSERT): Likewise.
70663         * tests/test-freadable.c (ASSERT): Likewise.
70664         * tests/test-freadahead.c (ASSERT): Likewise.
70665         * tests/test-freading.c (ASSERT): Likewise.
70666         * tests/test-freadptr.c (ASSERT): Likewise.
70667         * tests/test-freadptr2.c (ASSERT): Likewise.
70668         * tests/test-freadseek.c (ASSERT): Likewise.
70669         * tests/test-freopen.c (ASSERT): Likewise.
70670         * tests/test-frexp.c (ASSERT): Likewise.
70671         * tests/test-frexpl.c (ASSERT): Likewise.
70672         * tests/test-fseek.c (ASSERT): Likewise.
70673         * tests/test-fseeko.c (ASSERT): Likewise.
70674         * tests/test-fstrcmp.c (ASSERT): Likewise.
70675         * tests/test-ftell.c (ASSERT): Likewise.
70676         * tests/test-ftello.c (ASSERT): Likewise.
70677         * tests/test-func.c (ASSERT): Likewise.
70678         * tests/test-fwritable.c (ASSERT): Likewise.
70679         * tests/test-fwriting.c (ASSERT): Likewise.
70680         * tests/test-getdelim.c (ASSERT): Likewise.
70681         * tests/test-getline.c (ASSERT): Likewise.
70682         * tests/test-i-ring.c (ASSERT): Likewise.
70683         * tests/test-iconv-utf.c (ASSERT): Likewise.
70684         * tests/test-iconv.c (ASSERT): Likewise.
70685         * tests/test-isfinite.c (ASSERT): Likewise.
70686         * tests/test-isnand.c (ASSERT): Likewise.
70687         * tests/test-isnanf.c (ASSERT): Likewise.
70688         * tests/test-isnanl.h (ASSERT): Likewise.
70689         * tests/test-ldexpl.c (ASSERT): Likewise.
70690         * tests/test-linked_list.c (ASSERT): Likewise.
70691         * tests/test-linkedhash_list.c (ASSERT): Likewise.
70692         * tests/test-localename.c (ASSERT): Likewise.
70693         * tests/test-lseek.c (ASSERT): Likewise.
70694         * tests/test-mbscasecmp.c (ASSERT): Likewise.
70695         * tests/test-mbscasestr1.c (ASSERT): Likewise.
70696         * tests/test-mbscasestr2.c (ASSERT): Likewise.
70697         * tests/test-mbscasestr3.c (ASSERT): Likewise.
70698         * tests/test-mbscasestr4.c (ASSERT): Likewise.
70699         * tests/test-mbschr.c (ASSERT): Likewise.
70700         * tests/test-mbscspn.c (ASSERT): Likewise.
70701         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
70702         * tests/test-mbspbrk.c (ASSERT): Likewise.
70703         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
70704         * tests/test-mbsrchr.c (ASSERT): Likewise.
70705         * tests/test-mbsspn.c (ASSERT): Likewise.
70706         * tests/test-mbsstr1.c (ASSERT): Likewise.
70707         * tests/test-mbsstr2.c (ASSERT): Likewise.
70708         * tests/test-mbsstr3.c (ASSERT): Likewise.
70709         * tests/test-memchr2.c (ASSERT): Likewise.
70710         * tests/test-memmem.c (ASSERT): Likewise.
70711         * tests/test-open.c (ASSERT): Likewise.
70712         * tests/test-printf-frexp.c (ASSERT): Likewise.
70713         * tests/test-printf-frexpl.c (ASSERT): Likewise.
70714         * tests/test-printf-posix.c (ASSERT): Likewise.
70715         * tests/test-quotearg.c (ASSERT): Likewise.
70716         * tests/test-rbtree_list.c (ASSERT): Likewise.
70717         * tests/test-rbtree_oset.c (ASSERT): Likewise.
70718         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
70719         * tests/test-round1.c (ASSERT): Likewise.
70720         * tests/test-roundf1.c (ASSERT): Likewise.
70721         * tests/test-roundl.c (ASSERT): Likewise.
70722         * tests/test-signbit.c (ASSERT): Likewise.
70723         * tests/test-sleep.c (ASSERT): Likewise.
70724         * tests/test-snprintf-posix.c (ASSERT): Likewise.
70725         * tests/test-snprintf.c (ASSERT): Likewise.
70726         * tests/test-sprintf-posix.c (ASSERT): Likewise.
70727         * tests/test-stat-time.c (ASSERT): Likewise.
70728         * tests/test-strcasestr.c (ASSERT): Likewise.
70729         * tests/test-strerror.c (ASSERT): Likewise.
70730         * tests/test-striconv.c (ASSERT): Likewise.
70731         * tests/test-striconveh.c (ASSERT): Likewise.
70732         * tests/test-striconveha.c (ASSERT): Likewise.
70733         * tests/test-strsignal.c (ASSERT): Likewise.
70734         * tests/test-strstr.c (ASSERT): Likewise.
70735         * tests/test-strtod.c (ASSERT): Likewise.
70736         * tests/test-trunc1.c (ASSERT): Likewise.
70737         * tests/test-trunc2.c (ASSERT): Likewise.
70738         * tests/test-truncf1.c (ASSERT): Likewise.
70739         * tests/test-truncf2.c (ASSERT): Likewise.
70740         * tests/test-truncl.c (ASSERT): Likewise.
70741         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
70742         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
70743         * tests/test-vasnprintf.c (ASSERT): Likewise.
70744         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
70745         * tests/test-vasprintf.c (ASSERT): Likewise.
70746         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
70747         * tests/test-vprintf-posix.c (ASSERT): Likewise.
70748         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
70749         * tests/test-vsnprintf.c (ASSERT): Likewise.
70750         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
70751         * tests/test-wcwidth.c (ASSERT): Likewise.
70752         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
70753         * tests/test-xprintf-posix.c (ASSERT): Likewise.
70754         * tests/test-xvasprintf.c (ASSERT): Likewise.
70755         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
70756         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
70757         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
70758         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
70759         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
70760         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
70761         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
70762         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
70763         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
70764         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
70765         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
70766         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
70767         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
70768         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
70769         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
70770         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
70771         * tests/unictype/test-block_list.c (ASSERT): Likewise.
70772         * tests/unictype/test-block_of.c (ASSERT): Likewise.
70773         * tests/unictype/test-block_test.c (ASSERT): Likewise.
70774         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
70775         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
70776         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
70777         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
70778         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
70779         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
70780         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
70781         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
70782         * tests/unictype/test-combining.c (ASSERT): Likewise.
70783         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
70784         * tests/unictype/test-digit.c (ASSERT): Likewise.
70785         * tests/unictype/test-mirror.c (ASSERT): Likewise.
70786         * tests/unictype/test-numeric.c (ASSERT): Likewise.
70787         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
70788         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
70789         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
70790         * tests/unictype/test-scripts.c (ASSERT): Likewise.
70791         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
70792         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
70793         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
70794         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
70795         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
70796         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
70797         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
70798         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
70799         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
70800         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
70801         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
70802         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
70803         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
70804         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
70805         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
70806         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
70807         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
70808         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
70809         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
70810         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
70811         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
70812         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
70813         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
70814         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
70815         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
70816         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
70817         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
70818         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
70819         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
70820         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
70821         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
70822         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
70823         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
70824         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
70825         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
70826         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
70827         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
70828         Reported by Eric Blake.
70830 2008-04-11  Bruno Haible  <bruno@clisp.org>
70832         * lib/wchar.in.h: Tweak comment.
70834 2008-04-11  Bruno Haible  <bruno@clisp.org>
70836         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
70837         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
70838         gl_COMMON.
70839         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
70841 2008-04-11  Bruno Haible  <bruno@clisp.org>
70843         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
70845 2008-04-11  Simon Josefsson  <simon@josefsson.org>
70847         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
70848         of attempting to use non-existing /dev/*random.  Based on patch
70849         from Adam Strzelecki <ono@java.pl> in
70850         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
70852 2008-04-08  Bruno Haible  <bruno@clisp.org>
70854         Add tentative support for emx+gcc.
70855         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
70856         * lib/fpurge.c (fpurge): Likewise.
70857         * lib/freadable.c (freadable): Likewise.
70858         * lib/freadahead.c (freadahead): Likewise.
70859         * lib/freading.c (freading): Likewise.
70860         * lib/freadptr.c (freadptr): Likewise.
70861         * lib/freadseek.c (freadptrinc): Likewise.
70862         * lib/fseeko.c (rpl_fseeko): Likewise.
70863         * lib/fseterr.c (fseterr): Likewise.
70864         * lib/fwritable.c (fwritable): Likewise.
70865         * lib/fwriting.c (fwriting): Likewise.
70866         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
70868 2008-04-09  Eric Blake  <ebb9@byu.net>
70870         Avoid some autoconf warnings.
70871         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
70872         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
70873         * m4/afs.m4 (gl_AFS): Likewise.
70874         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
70875         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
70876         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
70877         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
70878         (gl_INTEGER_TYPE_SUFFIX): Likewise.
70879         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
70880         (AC_CHECK_DECLS_ONCE): Likewise.
70881         Rename file...
70882         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
70883         gnulib-tool requires autoconf 2.59 or better.
70884         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
70886 2008-04-08  Eric Blake  <ebb9@byu.net>
70888         Use 'git describe --match' if present (added in git 1.5.5).
70889         * build-aux/git-version-gen: Limit result to tags that match 'v*'
70890         if possible.
70892 2008-04-08  Bruno Haible  <bruno@clisp.org>
70894         Add tentative support for OpenServer.
70895         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
70896         _ptr, _cnt.
70897         * lib/fpurge.c (fpurge): Likewise.
70898         * lib/freadable.c (freadable): Likewise.
70899         * lib/freadahead.c (freadahead): Likewise.
70900         * lib/freading.c (freading): Likewise.
70901         * lib/freadptr.c (freadptr): Likewise.
70902         * lib/freadseek.c (freadptrinc): Likewise.
70903         * lib/fseeko.c (rpl_fseeko): Likewise.
70904         * lib/fseterr.c (fseterr): Likewise.
70905         * lib/fwritable.c (fwritable): Likewise.
70906         * lib/fwriting.c (fwriting): Likewise.
70907         Reported by Roger Cornelius <rac@tenzing.org> and
70908         Brian K. White <brian@aljex.com>.
70910 2008-04-06  Jim Meyering  <meyering@redhat.com>
70912         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
70914 2008-04-06  Bruno Haible  <bruno@clisp.org>
70916         Avoid possible error with non-ASCII bytes in UTF-8 locales.
70917         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
70918         * tests/test-printf-posix.sh: Likewise.
70919         * tests/test-vfprintf-posix.sh: Likewise.
70920         * tests/test-vprintf-posix.sh: Likewise.
70921         * tests/test-xprintf-posix.sh: Likewise.
70923 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70925         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
70926         hide error from 'ls', needed on OS/2.
70927         Report by Elbert Pol <elbert.pol@gmail.com>.
70929 2008-04-04  Eric Blake  <ebb9@byu.net>
70931         Make test-fseeko.c failures meaningful.
70932         * tests/test-fseeko.c: Print line number on failure.
70933         * tests/test-fseek.c: Likewise.
70934         Reported by Nelson H. F. Beebe.
70936         Improve strtod bug detection check.
70937         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
70938         required for Solaris 10.
70939         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
70941 2008-04-04  Bruno Haible  <bruno@clisp.org>
70943         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
70944         by m4/setenv.m4.
70946 2008-04-03  Eric Blake  <ebb9@byu.net>
70948         Ensure sane .version contents.
70949         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
70950         version string.
70951         * build-aux/git-version-gen: Improve documentation.
70953         Make GNU make output nicer.
70954         * top/GNUmakefile [!_have-Makefile]: Add dependency on
70955         MAKECMDGOALS to enforce message for all command line targets.  Set
70956         srcdir for use in maint.mk.
70958         Another maintainer tweak.
70959         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
70960         a target that regenerates version.
70962 2008-04-03  Jim Meyering  <meyering@redhat.com>
70964         vc-list-files: don't cause coreutils "make po-check" failure
70965         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
70967 2008-04-03  Eric Blake  <ebb9@byu.net>
70969         Allow VPATH usage of vc-list-files.
70970         * build-aux/vc-list-files (scriptversion): Add timestamp.
70971         (options): Add --help, --version, -C.
70972         (CVS): Support installed cvsu.
70974 2008-04-02  Bruno Haible  <bruno@clisp.org>
70976         Avoid some "statement with no effect" warnings from gcc.
70977         * tests/test-wctype.c (main): Explicitly ignore unused values.
70978         Reported by Jim Meyering.
70980 2008-04-02  Jim Meyering  <meyering@redhat.com>
70982         Avoid some warnings from "gcc -Wshadow".
70983         * tests/test-frexp.c (exp): Define to a different identifier.
70984         * tests/test-frexpl.c (exp): Likewise.
70986 2008-04-03  Jim Meyering  <meyering@redhat.com>
70988         bootstrap: remove dangling *.[ch] symlinks from lib
70989         * build-aux/bootstrap [dangling symlink removal]: Move find's
70990         -depth option to precede all others, to avoid a warning.
70991         Remove *.[ch] files too, and from "$source_base" (usually lib/).
70993 2008-04-02  Bruno Haible  <bruno@clisp.org>
70995         Avoid some warnings from "gcc -Wshadow".
70996         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
70997         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
70998         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
70999         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
71000         Reported by Jim Meyering.
71002 2008-04-01  Bruno Haible  <bruno@clisp.org>
71004         Fix test to work on IRIX 6.5 with cc.
71005         * tests/test-math.c (numeric_equal): New function.
71006         (main): Use it.
71008 2008-04-01  Bruno Haible  <bruno@clisp.org>
71010         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
71012 2008-04-01  Bruno Haible  <bruno@clisp.org>
71014         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
71015         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71016         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
71017         (Depends-on): Remove math.
71019         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
71020         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71021         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
71022         (Depends-on): Remove math.
71024         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
71025         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71026         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
71027         (Depends-on): Remove math.
71028         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
71029         (Depends-on): Remove math.
71031         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
71032         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71033         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
71034         (Depends-on): Remove math.
71035         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
71036         (Depends-on): Remove math.
71038         * tests/test-round1.c: Include nan.h.
71039         (main): Use NaNd instead of NAN.
71040         * modules/round-tests (Files): Add tests/nan.h.
71042         * tests/test-trunc1.c: Include nan.h.
71043         (main): Use NaNd instead of NAN.
71044         * modules/trunc-tests (Files): Add tests/nan.h.
71046         * tests/test-roundf1.c: Include nan.h.
71047         (main): Use NaNf instead of NAN.
71048         * modules/roundf-tests (Files): Add tests/nan.h.
71050         * tests/test-truncf1.c: Include nan.h.
71051         (main): Use NaNf instead of NAN.
71052         * modules/truncf-tests (Files): Add tests/nan.h.
71054         * tests/test-ceilf1.c: Include nan.h.
71055         (main): Use NaNf instead of NAN.
71056         * modules/ceilf-tests (Files): Add tests/nan.h.
71058         * tests/test-floorf1.c: Include nan.h.
71059         (main): Use NaNf instead of NAN.
71060         * modules/floorf-tests (Files): Add tests/nan.h.
71062         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
71063         (main): Use NaNf instead of NAN.
71064         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
71066         * tests/test-isnand.c: Include nan.h instead of <math.h>.
71067         (main): Use NaNd instead of NAN.
71068         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
71070         * tests/test-frexp.c: Include nan.h.
71071         (main): Use NaNd instead of NAN.
71072         * modules/frexp-tests (Files): Add tests/nan.h.
71074         * lib/isnan.c: Don't include <math.h>.
71075         (FUNC): Don't use NAN macro.
71076         * modules/isnand-nolibm (Depends-on): Remove math.
71077         * modules/isnanf-nolibm (Depends-on): Remove math.
71078         * modules/isnanl (Depends-on): Remove math.
71079         * modules/isnanl-nolibm (Depends-on): Remove math.
71081         * tests/nan.h: New file.
71083 2008-04-01  Eric Blake  <ebb9@byu.net>
71085         Fix typos.
71086         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
71087         values to be the right type.
71089         For now, cater to gnulib strtod inaccuracies.
71090         * tests/test-strtod.c (main): Allow 1-ulp error on expected
71091         fractional results.  While not as nice from a QoI perspective, it
71092         is a quicker patch than correctly implementing decimal to binary
71093         rounding.
71095 2008-03-31  Eric Blake  <ebb9@byu.net>
71097         Guarantee a definition of NAN.
71098         * lib/math.in.h (NAN): Define if missing.
71099         * tests/test-math.c (main): Test it.
71100         * doc/posix-headers/math.texi (math.h): Document this.
71101         * lib/isnan.c (rpl_isnand): Use it.
71102         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
71103         * tests/test-floorf1.c (NaN): Likewise.
71104         * tests/test-frexp.c (NaN): Likewise.
71105         * tests/test-isnand.c (NaN): Likewise.
71106         * tests/test-isnanf.c (NaN): Likewise.
71107         * tests/test-round1.c (NaN): Likewise.
71108         * tests/test-roundf1.c (NaN): Likewise.
71109         * tests/test-snprintf-posix.h (NaN): Likewise.
71110         * tests/test-sprintf-posix.h (NaN): Likewise.
71111         * tests/test-trunc1.c (NaN): Likewise.
71112         * tests/test-truncf1.c (NaN): Likewise.
71113         * tests/test-vasnprintf-posix.c (NaN): Likewise.
71114         * tests/test-vasprintf-posix.c (NaN): Likewise.
71115         * modules/isnand-nolibm (Depends-on): Add math.
71116         * modules/isnanf-nolibm (Depends-on): Likewise.
71117         * modules/isnanl (Depends-on): Likewise.
71118         * modules/isnanl-nolibm (Depends-on): Likewise.
71119         * modules/snprintf-posix-tests (Depends-on): Likewise.
71120         * modules/sprintf-posix-tests (Depends-on): Likewise.
71121         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
71122         * modules/vsprintf-posix-tests (Depends-on): Likewise.
71123         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
71124         * modules/vasprintf-posix-tests (Depends-on): Likewise.
71126 2008-03-31  Bruno Haible  <bruno@clisp.org>
71128         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
71129         * doc/posix-functions/strtod.texi: Likewise.
71131 2008-03-31  Bruno Haible  <bruno@clisp.org>
71133         * tests/test-strtod.c (main): Don't use C99 syntax.
71135 2008-03-31  Bruno Haible  <bruno@clisp.org>
71137         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
71138         Reported by Eric Blake.
71140 2008-03-31  Jim Meyering  <meyering@redhat.com>
71142         Don't compare actual signbit return values.
71143         * tests/test-strtod.c (main): Rather, compare only their
71144         zero/non-zero nature.
71146 2008-03-31  Eric Blake  <ebb9@byu.net>
71148         More strtod documentation.
71149         * doc/posix-functions/strtod.texi (strtod): Interpret more test
71150         failures as distinct bugs.
71152 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71154         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
71155         Problem reported by Erik Benada in
71156         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
71158 2008-03-30  Bruno Haible  <bruno@clisp.org>
71160         * tests/test-strtod.c: Add comments about which assertion fails on which
71161         platform.
71162         * doc/posix-functions/strtod.texi: Add info about many more platforms.
71164 2008-03-30  Eric Blake  <ebb9@byu.net>
71166         Test signbit behavior on zeros.
71167         * tests/test-signbit.c (test_signbitf): Add tests for zero.
71168         (test_signbitd, test_signbitl): Likewise.
71170         More strtod touchups.
71171         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
71172         sign of negative underflow, for now.  Use .5, not .1.
71173         * doc/posix-functions/strtod.texi (strtod): Mention these
71174         limitations.
71175         Reported by Jim Meyering.
71177 2008-03-30  Bruno Haible  <bruno@clisp.org>
71179         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
71180         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
71182 2008-03-30  Bruno Haible  <bruno@clisp.org>
71184         Avoid failure when attempting to return empty iconv results on some
71185         platforms.
71186         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
71187         allocation, don't report ENOMEM when the resulting string is empty.
71189 2008-03-30  Bruno Haible  <bruno@clisp.org>
71191         Fix buffer overrun.
71192         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
71193         Don't consider the width for tmp_length. Check count against tmp_length
71194         before doing the padding. Ensure enough allocation during padding.
71196 2008-03-30  Eric Blake  <ebb9@byu.net>
71198         strtod touchups.
71199         * lib/strtod.c (strtod): Avoid compiler warnings.
71200         Reported by Jim Meyering.
71202 2008-03-30  Bruno Haible  <bruno@clisp.org>
71204         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
71205         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
71206         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
71207         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
71208         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
71209         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
71210         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
71211         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
71213         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
71214         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
71215         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
71216         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
71217         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
71218         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
71219         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
71220         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
71222         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
71223         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
71224         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
71225         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
71226         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
71227         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
71228         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
71229         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
71231         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
71232         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
71234         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
71235         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
71237         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
71238         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
71240         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
71241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
71242         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
71244         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
71245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
71246         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
71248         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
71249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
71250         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
71252         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
71253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
71254         * modules/vasprintf (Depends-on): Add EOVERFLOW.
71256         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
71257         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
71258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
71259         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
71260         (Depends-on): Add EOVERFLOW.
71261         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
71262         (Depends-on): Add EOVERFLOW.
71263         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
71264         (Depends-on): Add EOVERFLOW.
71265         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
71266         (Depends-on): Add EOVERFLOW.
71267         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
71268         (Depends-on): Add EOVERFLOW.
71269         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
71270         (Depends-on): Add EOVERFLOW.
71271         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
71272         (Depends-on): Add EOVERFLOW.
71273         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
71274         (Depends-on): Add EOVERFLOW.
71276         * lib/sprintf.c (EOVERFLOW): Remove fallback.
71277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
71278         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
71280         * lib/snprintf.c (EOVERFLOW): Remove fallback.
71281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
71282         * modules/snprintf (Depends-on): Add EOVERFLOW.
71284         * lib/poll.c (EOVERFLOW): Remove fallback.
71285         * modules/poll (Depends-on): Add EOVERFLOW.
71287         * lib/getugroups.c (EOVERFLOW): Remove fallback.
71288         * modules/getugroups (Depends-on): Add EOVERFLOW.
71290         * lib/getdelim.c (EOVERFLOW): Remove fallback.
71291         * modules/getdelim (Depends-on): Add EOVERFLOW.
71293         * lib/ftell.c (EOVERFLOW): Remove fallback.
71294         * modules/ftell (Depends-on): Add EOVERFLOW.
71296         * lib/fprintf.c (EOVERFLOW): Remove fallback.
71297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
71298         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
71300         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
71302         * modules/EOVERFLOW-tests: New file.
71303         * tests/test-EOVERFLOW.c: New file.
71305         * modules/EOVERFLOW: New file.
71306         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
71308 2008-03-30  Bruno Haible  <bruno@clisp.org>
71310         Fix bug introduced on 2007-06-10.
71311         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
71312         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
71314 2008-03-30  Bruno Haible  <bruno@clisp.org>
71316         Improve freadseek's efficiency after ungetc.
71317         * lib/freadseek.c: Include freadahead.h.
71318         (freadptrinc): New function, extracted from freadseek.
71319         (freadseek): Use it in a loop. Use freadahead to determine the number
71320         of loop iterations.
71321         * modules/freadseek (Depends-on): Add freadahead.
71322         (configure.ac): Require AC_C_INLINE.
71324 2008-03-30  Bruno Haible  <bruno@clisp.org>
71326         * lib/freadseek.c (freadseek): Don't ignore the return value of
71327         freadptr.
71329 2008-03-29  Eric Blake  <ebb9@byu.net>
71331         Add hex float support.
71332         * modules/strtod (Depends-on): Add c-ctype.
71333         (Link): Mention POW_LIB.
71334         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
71335         whitespace between 'e' and exponent.
71336         * tests/test-strtod.c (main): Enable hex float tests.
71337         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
71338         now provides.
71340         Document various strtod bugs, with some fixes.
71341         * doc/posix-functions/strtod.texi (strtod): Document bugs with
71342         "-0x", "inf", "nan", and hex constants.
71343         * doc/posix-functions/atof.texi (atof): Likewise.
71344         * modules/stdlib (Makefile.am): Support strtod.
71345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
71346         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
71347         detect additional strtod bugs.
71348         * lib/stdlib.in.h (rpl_strtod): Add declarations.
71349         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
71350         bool where appropriate.  Parse 'inf' and 'nan'.
71351         * tests/test-strtod.c: New file.
71352         * modules/strtod (Depends-on): Add stdbool, stdlib.
71353         (configure.ac): Turn on module indicator.
71354         * modules/strtod-tests: New module.
71356 2008-03-29  Eric Blake  <ebb9@byu.net>
71358         Fix ftell on mingw.
71359         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
71360         * modules/ftell-tests (Depends-on): Add binary-io.
71361         * modules/ftello-tests (Depends-on): Likewise.
71362         * tests/test-ftell.c (main): Enhance test to cover behavior after
71363         ungetc.  Enforce binary mode.
71364         * tests/test-ftello.c (main): Likewise.
71366         Pass test-freadseek on cygwin.
71367         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
71368         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
71369         ungetc buffer.
71371         * tests/test-fflush2.c (main): Fix typo.
71373 2008-03-29  Bruno Haible  <bruno@clisp.org>
71375         * tests/test-fflush2.c (main): Temporarily disable the contents of
71376         this test.
71377         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
71378         Reported by Eric Blake.
71380 2008-03-28  Simon Josefsson  <simon@josefsson.org>
71382         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
71383         (GC_SHA224_DIGEST_SIZE): Add.
71385         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
71386         (gc_hash_digest_length): Likewise.
71387         (gc_hash_buffer): Likewise.
71389 2008-03-25  Bruno Haible  <bruno@clisp.org>
71391         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
71392         detail which gettext release to use.
71393         Reported by Simon Josefsson.
71395 2008-03-26  Jim Meyering  <meyering@redhat.com>
71397         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
71398         * modules/gnumakefile (clean-GNUmakefile): Also, use
71399         test ... && ... || : syntax rather than if-then ... fi.
71401         gnumakefile: Don't double-quote-expand $(VPATH) value.
71402         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
71404 2008-03-24  Eric Blake  <ebb9@byu.net>
71406         Alter GNUmakefile to install into top directory.
71407         * modules/maintainer-makefile: Split, and add dependency...
71408         * modules/gnumakefile: to this new module.
71409         * build-aux/GNUmakefile: Move...
71410         * top/GNUmakefile: ...here.
71411         * build-aux/maint.mk: Move...
71412         * top/maint.mk: ...here.
71413         * MODULES.html.sh (Support for maintaining...): Document new
71414         module.
71416 2008-03-23  Bruno Haible  <bruno@clisp.org>
71418         * gnulib-tool: New options --vc-files, --no-vc-files.
71419         (func_usage): Document them.
71420         (vc_files): New variable.
71421         (func_import): Consider vc_files.
71422         (func_create_testdir): Set vc_files to empty.
71423         Suggested by Jim Meyering and Karl Berry.
71425 2008-03-23  Bruno Haible  <bruno@clisp.org>
71427         Fix regex compilation error on HP-UX 11.
71428         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
71429         * modules/regex (Files): Add m4/mbstate_t.m4.
71430         Reported by Ton Voon <ton.voon@altinity.com>.
71432 2008-03-23  Bruno Haible  <bruno@clisp.org>
71434         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
71436 2008-03-23  Eric Blake  <ebb9@byu.net>
71437             Bruno Haible  <bruno@clisp.org>
71439         Install files from top/ in the destination directory.
71440         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
71441         augmentation also for the files from top/.
71442         (func_import, func_create_testdir): Rewrite file names:
71443         top/filename -> filename.
71445 2008-03-23  Bruno Haible  <bruno@clisp.org>
71447         Tweak "gnulib --version" output.
71448         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
71450 2008-03-23  Bruno Haible  <bruno@clisp.org>
71452         Tweak "gnulib --version" output.
71453         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
71454         rather than contents of ChangeLog, when possible.
71456 2008-03-21  Eric Blake  <ebb9@byu.net>
71458         More --version tweaks.
71459         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
71460         date of last ChangeLog entry.
71462 2008-03-21  Jim Meyering  <meyering@redhat.com>
71464         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
71466 2008-03-20  Eric Blake  <ebb9@byu.net>
71468         VPATH fix.
71469         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
71471 2008-03-20  Simon Josefsson  <simon@josefsson.org>
71473         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
71474         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
71476 2008-03-20  Eric Blake  <ebb9@byu.net>
71478         Sync GNUmakefile with coreutils.
71479         * build-aux/GNUmakefile (have-Makefile): Rename...
71480         (_have-Makefile): ...to this, for namespace consideration.
71481         (GNUmakefile.cfg): Include, if present.
71482         (_autoreconf): Define a default.
71483         (_is-dist-target): New rule for rebuilds to pick up intra-release
71484         version.
71485         (maint-cfg.mk): Rename...
71486         (cfg.mk): ...to this.
71488 2008-03-18  Jim Meyering  <meyering@redhat.com>
71490         New script and module: mktempd
71491         * MODULES.html.sh (maint+release support): Add mktempd.
71492         * build-aux/mktempd: New file.
71493         * modules/mktempd: New file.
71495 2008-03-15  Jim Meyering  <meyering@redhat.com>
71497         Undo last change.
71498         * lib/sha1.c, lib/md5.c: 63 != ~63.
71499         Reported by Andreas Schwab.
71501         sha1.c, md5.c: Hoist a redundant expression.
71502         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
71503         "ctx->buflen" only once, before calling *_process_block.
71504         * lib/md5.c (md5_process_bytes): Likewise.
71506 2008-03-14  Eric Blake  <ebb9@byu.net>
71508         Bump copyright year in files generated by gnulib-tool.
71509         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
71510         gnulib-tool, rather than hard-coding it.
71512         Fix 'gnulib-tool --version' output to work with git.
71513         * gnulib-tool (func_gnulib_dir): New function, extracted from...
71514         (startup): ...here.
71515         (func_version): Use it to invoke git-version-gen, rather than
71516         relying on CVS keyword expansion.  Modernize wording.
71517         (cvsdatestamp, last_checkin_date, version): Kill unused
71518         variables.
71520 2008-03-12  Jim Meyering  <meyering@redhat.com>
71522         Recognize optional cast of the argument to free.
71523         * build-aux/useless-if-before-free: Update regexps.
71525         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
71527 2008-03-11  Bruno Haible  <bruno@clisp.org>
71529         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
71530         by a single package.
71531         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
71532         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
71533         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
71534         Reported by Sam Steingold <sds@gnu.org>.
71536 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71538         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
71539         repositories.
71541 2008-03-11  Bruno Haible  <bruno@clisp.org>
71543         Avoid conflicts between local macro definitions.
71544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71545         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
71547 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
71548             Bruno Haible  <bruno@clisp.org>
71550         Make va_copy work with some version of xlc on AIX 5.1.
71551         * lib/stdarg.in.h: New file.
71552         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
71553         On AIX, use a <stdarg.h> file substitute.
71554         * modules/stdarg (Files): Add lib/stdarg.in.h.
71555         (Depends-on): Add include_next.
71556         (Makefile.am): Build a stdarg.h substitute if requested.
71557         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
71559 2008-03-10  Bruno Haible  <bruno@clisp.org>
71561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
71562         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
71563         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
71565 2008-03-10  Bruno Haible  <bruno@clisp.org>
71567         * modules/stdlib (Depends-on): Add include_next, remove
71568         absolute-header.
71570 2008-03-09  Bruno Haible  <bruno@clisp.org>
71572         * lib/freadahead.h (freadahead): Document more precisely.
71573         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
71574         the sum of both buffer sizes.
71575         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
71576         * NEWS: Document the change.
71578 2008-03-09  Bruno Haible  <bruno@clisp.org>
71580         Extend freadptr to return also the buffer size.
71581         * lib/freadptr.h (freadptr): Add sizep argument.
71582         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
71583         (freadptr): Add sizep argument. Determine buffer size like freadahead
71584         does.
71585         * tests/test-freadptr.c: Don't include freadahead.h.
71586         (main): Adapt for new calling convention of freadptr.
71587         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
71588         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
71589         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
71590         tests/test-freadptr2.sh.
71591         (Depends): Remove freadahead.
71592         (TESTS): Add test-freadptr2.sh.
71593         (check_PROGRAMS): Add test-freadptr2.
71595 2008-03-09  Bruno Haible  <bruno@clisp.org>
71597         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
71598         Report and solution by Simon Josefsson.
71600 2008-03-06  Bruno Haible  <bruno@clisp.org>
71602         Make fflush after ungetc work on BSD platforms.
71603         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
71604         * tests/test-fflush2.c: New file.
71605         * tests/test-fflush2.sh: New file.
71606         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
71607         tests/test-fflush2.c.
71608         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
71609         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
71611 2008-03-06  Eric Blake  <ebb9@byu.net>
71613         Likewise for ftello.
71614         * modules/ftello (Dependencies): Add extensions.
71615         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
71617 2008-03-06  Bruno Haible  <bruno@clisp.org>
71619         * modules/fseeko (Dependencies): Add extensions.
71620         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
71621         Needed on glibc systems.
71623 2008-03-06  Bruno Haible  <bruno@clisp.org>
71625         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
71626         email address.
71627         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71629 2008-03-06  Bruno Haible  <bruno@clisp.org>
71631         * users.txt: Add libgnupdf.
71633 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
71635         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
71636         (Header File Substitutes, Function Substitutes,
71637         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
71638         (Build robot for gnulib): Fix typo.
71640 2008-03-06  Bruno Haible  <bruno@clisp.org>
71642         * doc/gnulib-tool.texi (VCS Issues): Small updates.
71643         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71645 2008-03-06  Bruno Haible  <bruno@clisp.org>
71647         * doc/func.texi: New file, extracted from doc/gnulib.texi.
71648         * doc/gnulib.texi: Include it.
71650 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71652         * modules/func (License): Change license to unlimited; there was
71653         no LGPL parts in the module anyway.
71655 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71657         * modules/__func__: Renamed to modules/func.
71658         * modules/__func__-tests: Renamed to modules/func-tests.
71659         * tests/test-__func__.c: Renamed to tests/test-func.c.
71660         * m4/__func__.m4: Renamed to m4/func.m4.
71661         * doc/gnulib.texi (__func__): Section renamed to func.
71662         Suggested by Eric Blake <ebb9@byu.net>.
71664 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71666         * doc/gnulib.texi (__func__): Use C99 terminology when talking
71667         about __func__.  Make example self-contained.  Suggested by Eric
71668         Blake <ebb9@byu.net>.
71670         * tests/test-__func__.c (main): Avoid extraneous () around __func.
71671         Suggested by Eric Blake <ebb9@byu.net>.
71673 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71675         * modules/__func__: New file.
71676         * modules/__func__-tests: New file.
71677         * tests/test-__func__.c: New file.
71678         * m4/__func__.m4: New file.
71679         * doc/gnulib.texi (__func__): Document __func__ module.
71681 2008-03-05  Simon Josefsson  <simon@josefsson.org>
71683         * modules/byteswap (License): Re-license as LGPLv2+.
71685 2008-03-05  Simon Josefsson  <simon@josefsson.org>
71687         * doc/Makefile: Add pdf target.
71689 2008-03-05  Simon Josefsson  <simon@josefsson.org>
71691         * modules/inline (License): Use 'unlimited', since there are only
71692         *.m4 files in this module.
71694 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
71695             Bruno Haible  <bruno@clisp.org>
71697         Add support for HP C 7.1 on OpenVMS 8.3.
71698         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
71700 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
71702         Update VMS specifics.
71703         * lib/getopt.c [VMS]: Remove include of unixlib.h.
71705 2008-03-02  Jim Meyering  <meyering@redhat.com>
71707         Remove the last dependency on the "free" module.
71708         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
71709         Reported by Bob Proulx.
71711         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
71713         Remove useless "if" tests before free.  Deprecate "free" module.
71714         * doc/posix-functions/free.texi: Mention that this
71715         module is no longer useful.
71716         * modules/free (Notice): Say this module is obsolete.
71717         * modules/readutmp (Depends-on): Remove free.
71718         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
71719         * lib/putenv.c (putenv): Likewise.
71720         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
71721         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
71722         * tests/test-c-strcasestr.c (main): Likewise.
71723         * tests/test-c-strstr.c (main): Likewise.
71724         * tests/test-mbscasestr1.c (main): Likewise.
71725         * tests/test-mbscasestr2.c (main): Likewise.
71726         * tests/test-mbsstr1.c (main): Likewise.
71727         * tests/test-mbsstr2.c (main): Likewise.
71728         * tests/test-memmem.c (main): Likewise.
71729         * tests/test-strcasestr.c (main): Likewise.
71730         * tests/test-striconv.c (main): Likewise.
71731         * tests/test-striconveh.c (main): Likewise.
71732         * tests/test-striconveha.c (main): Likewise.
71733         * tests/test-strstr.c (main): Likewise.
71735         * build-aux/git-version-gen: Adjust a comment and the Usage string.
71737         bootstrap: sync from coreutils again
71738         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
71740 2008-03-01  Jim Meyering  <meyering@redhat.com>
71742         bootstrap: sync from coreutils
71743         * build-aux/bootstrap (update_po_files): Copy a .po file into place
71744         also when the target doesn't exist.
71746 2008-03-01  Eric Blake  <ebb9@byu.net>
71748         Fix bugs in last patch.
71749         * lib/memchr2.c (memchr2): Fix typo.
71750         * tests/test-memchr2.c: Test previous bug, and don't use GNU
71751         extension.
71752         Reported by Bruce Korb.
71754         New module 'memchr2'.
71755         * modules/memchr2: New file.
71756         * modules/memchr2-tests: Likewise.
71757         * lib/memchr2.h: Likewise.
71758         * lib/memchr2.c: Likewise, based on memchr.c.
71759         * tests/test-memchr2.c: New test.
71760         * MODULES.html.sh (String handling): Add memchr2.
71762 2008-02-29  Bruno Haible  <bruno@clisp.org>
71764         * modules/freadseek-tests: New file.
71765         * tests/test-freadseek.sh: New file.
71766         * tests/test-freadseek.c: New file.
71768         New module 'freadseek'.
71769         * modules/freadseek: New file.
71770         * lib/freadseek.h: New file.
71771         * lib/freadseek.c: New file.
71772         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
71774 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71776         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
71777         wydawca.
71779         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
71780         program_invocation_name and program_invocation_short_name are
71781         present.
71783 2008-02-28  Bruno Haible  <bruno@clisp.org>
71785         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
71786         * tests/test-freadptr.sh: Also test non-seekable stdin.
71788 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
71790         * build-aux/bootstrap (source_base, m4_base)
71791         (doc_base, tests_base): New variables.
71792         (gnulib_tool_options): Do not hardcode base directories, use
71793         the above variables instead.
71795 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
71797         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
71799 2008-02-28  Bruno Haible  <bruno@clisp.org>
71801         * modules/freadptr-tests: New file.
71802         * tests/test-freadptr.sh: New file.
71803         * tests/test-freadptr.c: New file.
71805         New module 'freadptr'.
71806         * modules/freadptr: New file.
71807         * lib/freadptr.h: New file.
71808         * lib/freadptr.c: New file.
71809         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
71811 2008-02-26  Karl Berry  <karl@freefriends.org>
71813         Sync from Libtool:
71814         * libltdl/argz.c (argz_add, argz_count): New functions.
71815         * libltdl/argz.in.h: Declare them.
71816         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
71818 2008-02-22  Bruno Haible  <bruno@clisp.org>
71820         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
71821         is a pointer type.  Needed for HP-UX 10.
71822         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
71823         * doc/posix-functions/gmtime_r.texi: Likewise.
71824         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
71826 2008-02-24  Bruno Haible  <bruno@clisp.org>
71828         * modules/environ-tests: New file.
71829         * tests/test-environ.c: New file.
71831         New module 'environ'.
71832         * modules/environ: New file.
71833         * lib/unistd.in.h (environ): New declaration.
71834         * m4/environ.m4: New file.
71835         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
71836         after use.
71837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
71838         HAVE_DECL_ENVIRON.
71839         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
71840         HAVE_DECL_ENVIRON.
71841         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
71842         wrong claim that 'environ' is missing on some systems.
71843         * modules/execute (Depends-on): Add environ.
71844         * lib/execute.c (environ): Remove fallback declaration.
71845         * modules/pipe (Depends-on): Add environ.
71846         * lib/pipe.c (environ): Remove fallback declaration.
71847         * modules/setenv (Depends-on): Add environ.
71848         * lib/setenv.c (environ): Remove fallback declaration.
71849         * modules/unsetenv (Depends-on): Add environ.
71850         * lib/unsetenv.c (environ): Remove fallback declaration.
71851         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
71852         m4/environ.m4.
71853         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
71854         (gl_PREREQ_UNSETENV): Likewise.
71856 2008-02-24  Bruno Haible  <bruno@clisp.org>
71858         * doc/posix-functions/environ.texi: Document the MacOS X problem.
71860 2008-02-20  Bob Proulx  <bob@proulx.com>
71862         Enable use of older two part flavor 'git describe'.
71863         * build-aux/git-version-gen: If using the older two part flavor of
71864         git version then recreate the third part now present in the
71865         newer three part flavor of git describe.
71867 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
71869         * lib/fts.c (fts_build): Typo correction to comment.
71871 2008-02-17  Bruno Haible  <bruno@clisp.org>
71873         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
71874         generating no-op conflicts.
71876 2008-02-17  Bruno Haible  <bruno@clisp.org>
71878         Speed up by 10%.
71879         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
71880         result_entries, rather than an index-based loop.
71882 2008-02-17  Bruno Haible  <bruno@clisp.org>
71884         Speed up by 25%.
71885         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
71886         'hashcode_cached'.
71887         (entry_create): New function.
71888         (entry_hashcode): Use the cached hashcode if possible.
71889         (read_changelog_file, try_split_merged_entry): Use entry_create.
71891 2008-02-17  Bruno Haible  <bruno@clisp.org>
71893         Speed up from O(n^2) to O(n) for long ChangeLog files.
71894         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
71895         (read_changelog_file): Change implementation of entries_reversed list
71896         to rbtreehash.
71897         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
71899 2008-02-17  Bruno Haible  <bruno@clisp.org>
71901         New option --split-merged-entry.
71902         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
71903         (find_paragraph_end, try_split_merged_entry): New functions.
71904         (long_options): Add option --split-merged-entry.
71905         (usage): Document option --split-merged-entry.
71906         (main): Implement option --split-merged-entry.
71907         Reported by Eric Blake.
71909 2008-02-17  Bruno Haible  <bruno@clisp.org>
71911         * lib/git-merge-changelog.c: Include c-strstr.h.
71912         (main): Support the "git pull --rebase" situation.
71913         * modules/git-merge-changelog (Depends-on): Add c-strstr.
71914         Reported by Eric Blake.
71916 2008-02-16  Eric Blake  <ebb9@byu.net>
71918         Avoid doubling \ in common case of "c-maybe" quoting style.
71919         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
71920         eliding outer quotes.
71921         * lib/quotearg.h: Document this.
71922         * tests/test-quotearg.c (result_strings, inputs, results_g)
71923         (flag_results, locale_results): Test it by adding a new string to
71924         each test group.
71925         (compare_strings): Test new string.
71927 2008-02-13  Eric Blake  <ebb9@byu.net>
71929         Avoid trigraph quoting in default output.
71930         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
71931         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
71932         unless explicitly requested.
71933         * tests/test-quotearg.c (flag_results, main): Add additional tests.
71935 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
71937         Don't rely on signed integer overflowing to negative value.
71938         * lib/getugroups.c (getugroups): Include <limits.h>.
71939         Instead, compare against INT_MAX, and increment only if the test passes.
71941 2008-02-13  Jim Meyering  <meyering@redhat.com>
71942         and Eric Blake  <ebb9@byu.net>
71944         Avoid shadowing warning and compile errors on Linux.
71945         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
71946         forwarding macros on Linux.
71947         (dcgettext): Define a stub, for Linux.
71948         (results_g, main): Avoid warnings.
71950 2008-02-12  Eric Blake  <ebb9@byu.net>
71952         Silence warning in last patch.
71953         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
71955         Quotearg part 4: add tests, fix c-maybe colon quoting.
71956         * lib/quotearg.h: Improve documentation.
71957         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
71958         escapes when adding outer quotes.  When quoting trigraphs, use
71959         valid C notation.  When quoting NUL, omit extra characters if next
71960         character is not digit.  Alter prototype.
71961         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
71962         callers.
71963         * modules/quotearg-tests: New module.
71964         * tests/test-quotearg.c: New test.
71966 2008-02-07  Eric Blake  <ebb9@byu.net>
71968         Quotearg part 3: add flag to control outer quote elision.
71969         * lib/quotearg.h (c_maybe_quoting_style): New style.
71970         (enum quoting_flags): Better documentation of flags.
71971         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
71972         c-maybe style.
71973         (quotearg_buffer_restyled): Handle new flag to elide outer
71974         quotes.
71976         Quotearg part 2: add flag that can control NUL elision.
71977         * lib/quotearg.h (set_quoting_flags): New prototype.
71978         * lib/quotearg.c (struct quoting_options): Add flag field.
71979         (set_quoting_flags): New function.
71980         (quotearg_buffer_restyled): Add flags parameter.
71981         (quotearg_alloc_mem): Set the flag if length cannot be returned.
71982         (quotearg_n_options): Set the flag, since length cannot be
71983         returned.
71984         (quoting_options_from_style): Default flags correctly.
71986         Quotearg part 1: more wrappers, restore quotearg_char state.
71987         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
71988         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
71989         (quotearg_colon_mem): New wrappers.
71990         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
71991         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
71992         functions.
71993         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
71994         (quotearg_colon_mem): New functions.
71996 2008-02-11  Bruno Haible  <bruno@clisp.org>
71998         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
71999         library in the current directory: it does not work with parallel make.
72000         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72002 2008-02-11  Bruno Haible  <bruno@clisp.org>
72004         * .gitattributes: New file.
72006 2008-02-11  Jim Meyering  <meyering@redhat.com>
72008         useless-if-before-free: Fix reversed exit values.
72009         * build-aux/useless-if-before-free: Use correct values
72010         for EXIT_MATCH and EXIT_NO_MATCH.
72012         * build-aux/useless-if-before-free: Close stdout carefully.
72014 2008-02-10  Bruno Haible  <bruno@clisp.org>
72016         New module 'git-merge-changelog'.
72017         * modules/git-merge-changelog: New file.
72018         * lib/git-merge-changelog.c: New file.
72020 2008-02-10  Jim Meyering  <meyering@redhat.com>
72022         useless-if-before-free: New option: --list (-l).
72024         useless-if-before-free: Don't exit immediately upon open failure.
72025         * build-aux/useless-if-before-free: Exit 2 for errors.
72026         Upon failure to open a file, don't exit immediately.
72027         Rather, just warn and continue with any remaining files.
72029 2008-02-10  Bruno Haible  <bruno@clisp.org>
72031         New abstract list operation 'node_set_value'.
72032         * lib/gl_list.h (gl_list_node_set_value): New function.
72033         (struct gl_list_implementation): New field node_set_value.
72034         * lib/gl_list.c (gl_list_node_set_value): New function.
72035         * lib/gl_array_list.c (gl_array_node_set_value): New function.
72036         (gl_array_list_implementation): Update.
72037         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
72038         (gl_carray_list_implementation): Update.
72039         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
72040         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72041         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72042         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
72043         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72044         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72045         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72046         Update.
72047         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72048         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
72049         (gl_sublist_list_implementation): Update.
72051 2008-02-10  Bruno Haible  <bruno@clisp.org>
72053         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
72054         Needed when ELEMENT is #defined to 'some_type *'.
72056 2008-02-10  Jim Meyering  <meyering@redhat.com>
72058         New script and module: useless-if-before-free
72059         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
72060         * build-aux/useless-if-before-free: New file.
72061         * modules/useless-if-before-free: New file.
72063         * build-aux/gitlog-to-changelog: Use committer date, not author date.
72065         xstrtol_error: Fix typo.
72066         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
72067         s/exit_failure/exit_status/.
72069 2008-02-09  Jim Meyering  <meyering@redhat.com>
72071         New script and module: gitlog-to-changelog
72072         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
72073         * modules/gitlog-to-changelog: New file.
72074         * build-aux/gitlog-to-changelog: New file.
72076 2008-02-08  Jim Meyering  <meyering@redhat.com>
72078         Avoid two "parameter unused" warnings.
72079         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
72080         Mark "st" as used.
72082         Use "git COMMAND", not "git-COMMAND".
72083         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
72084         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
72085         * build-aux/git-version-gen: Use "git status", not "git-status".
72087 2008-02-07  Bruno Haible  <bruno@clisp.org>
72089         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
72090         Avoids a crash on Windows Vista.
72091         Reported by Adam Strzelecki <ono@java.pl> via
72092         Simon Josefsson <simon@josefsson.org>.
72094 2008-02-06  Bruno Haible  <bruno@clisp.org>
72096         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
72097         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
72098         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
72099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
72100         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
72101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
72102         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
72103         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
72104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72111         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
72112         left-adjust flag.
72113         * tests/test-snprintf-posix.h (test_function): Likewise.
72114         * tests/test-sprintf-posix.h (test_function): Likewise.
72115         * tests/test-vasprintf-posix.c (test_function): Likewise.
72116         * doc/posix-functions/fprintf.texi: Update.
72117         * doc/posix-functions/printf.texi: Update.
72118         * doc/posix-functions/snprintf.texi: Update.
72119         * doc/posix-functions/sprintf.texi: Update.
72120         * doc/posix-functions/vfprintf.texi: Update.
72121         * doc/posix-functions/vprintf.texi: Update.
72122         * doc/posix-functions/vsnprintf.texi: Update.
72123         * doc/posix-functions/vsprintf.texi: Update.
72124         Reported by Peter Fales <psfales@alcatel-lucent.com>.
72126 2008-02-06  Bruno Haible  <bruno@clisp.org>
72128         Fix bug introduced on 2008-01-26.
72129         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
72131 2008-02-06  Bruno Haible  <bruno@clisp.org>
72133         Fix bug introduced on 2007-06-10.
72134         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
72135         !NEED_PRINTF_FLAG_ZERO.
72137 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
72139         getloadavg: use libperfstat on AIX5
72140         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
72142 2008-02-03  Bruno Haible  <bruno@clisp.org>
72144         * lib/diffseq.h: Add comments about required #includes.
72145         Reported by Michael Biggs <gnulib@doubleplum.net>.
72147 2008-02-01  Bruno Haible  <bruno@clisp.org>
72149         * users.txt: Add gnuit.
72151 2008-01-31  Bruno Haible  <bruno@clisp.org>
72153         * lib/md4.c (set_uint32): Mark as inline.
72154         * lib/md5.c (set_uint32): Likewise.
72155         * lib/sha1.c (set_uint32): Likewise.
72156         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
72157         * m4/md5.m4 (gl_MD5): Likewise.
72158         * m4/sha1.m4 (gl_SHA1): Likewise.
72160 2008-01-31  Jim Meyering  <meyering@redhat.com>
72162         Use "sizeof VAR", rather than a literal "4".
72163         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
72164         * lib/md4.c (md4_read_ctx): Likewise.
72165         * lib/sha1.c (sha1_read_ctx): Likewise.
72167 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72169         * tests/test-sha1.c: New file, based on test-md5.c.
72171         * modules/crypto/sha1-tests: New file.
72173 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72175         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
72177 2008-01-31  Jim Meyering  <meyering@redhat.com>
72179         Prefer "sizeof v" over the equivalent "4".
72180         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
72181         * lib/md5.c (set_uint32): Likewise.
72182         * lib/sha1.c (set_uint32): Likewise.
72184 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72186         * lib/sha1.c (set_uint32): Mark function as static.
72188 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72190         md2: clarify comments to say that alignment is not required.
72191         * lib/md2.h: Remove warning about alignment in comment.
72192         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
72193         never been required.
72195 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72197         md4: adapt alignment constraint fix from sha1.
72198         * lib/md4.c (set_uint32): New function, from sha1.c
72199         (md4_read_ctx): Use it.
72200         (md4_finish_ctx): Doc fix.
72201         * lib/md4.h: Doc fix.
72203 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72205         md5: adapt alignment constraint fix from sha1.
72206         * lib/md5.c (set_uint32): New function, from sha1.c
72207         (md5_read_ctx): Use it.
72208         (md5_finish_ctx): Doc fix.
72209         * lib/md5.h: Doc fix.
72211 2008-01-30  Peter Palfrader  <weasel@debian.org>
72213         sha1: remove the result buffer alignment constraint
72214         * lib/sha1.c (set_uint32): New function.
72215         (sha1_read_ctx): Rewrite to remove the result buffer alignment
72216         constraint.
72217         (sha1_finish_ctx): Remove comment warning about alignment constraint.
72218         * lib/sha1.h: Likewise.
72220 2008-01-30  Andreas Schwab  <schwab@suse.de>
72221             Bruno Haible  <bruno@clisp.org>
72223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
72224         correct definition of LDBL_MIN_EXP.
72226 2008-01-30  Karl Berry  <karl@gnu.org>
72228         * config/srclist-update: try to preserve x bit on updates.
72229         * config/srclistvars.sh: update for karl.
72231 2008-01-29  Jim Meyering  <meyering@redhat.com>
72233         vasnprintf.c: Avoid warning about unused label
72234         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
72235         "overflow" label definition and associated code with the
72236         same cpp condition that guards the sole use of that label.
72238 2008-01-26  Bruno Haible  <bruno@clisp.org>
72240         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
72241         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
72242         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
72243         * lib/isnanl-nolibm.h (isnanl): Likewise.
72244         Reported by Paul Eggert <eggert@cs.ucla.edu>.
72246 2008-01-26  Bruno Haible  <bruno@clisp.org>
72248         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
72249         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
72251 2008-01-26  Bruno Haible  <bruno@clisp.org>
72253         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
72254         GCC >= 4.0 built-in.
72255         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
72257 2008-01-26  Bruno Haible  <bruno@clisp.org>
72259         Rename isnan, applicable to 'double' only, to isnand.
72260         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
72261         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
72262         (configure.ac): Update.
72263         (Include): Replace "isnan.h" with "isnand.h".
72264         * m4/isnand.m4: Renamed from m4/isnan.m4.
72265         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
72266         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
72267         instead of isnan.c.
72268         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
72269         instead of HAVE_ISNAN_IN_LIBC.
72270         (isnand): Renamed from isnan.
72271         * lib/isnand.c: New file.
72272         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
72273         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
72274         (Makefile.am): Update.
72275         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
72276         Include isnand.h instead of isnan.h.
72277         (main): Test isnand instead of isnan.
72278         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
72279         isnan-nolibm.
72280         * modules/frexp (Depends-on): Likewise.
72281         * modules/frexp-tests (Depends-on): Likewise.
72282         * modules/frexp-nolibm (Depends-on): Likewise.
72283         * modules/frexp-nolibm-tests (Depends-on): Likewise.
72284         * modules/isfinite (Depends-on): Likewise.
72285         * modules/round-tests (Depends-on): Likewise.
72286         * modules/signbit (Depends-on): Likewise.
72287         * modules/signbit-tests (Depends-on): Likewise.
72288         * modules/snprintf-posix (Depends-on): Likewise.
72289         * modules/sprintf-posix (Depends-on): Likewise.
72290         * modules/trunc-tests (Depends-on): Likewise.
72291         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
72292         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72293         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72294         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72295         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72296         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72297         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72298         * modules/vasnprintf-posix (Depends-on): Likewise.
72299         * modules/vasprintf-posix (Depends-on): Likewise.
72300         * modules/vfprintf-posix (Depends-on): Likewise.
72301         * modules/vsnprintf-posix (Depends-on): Likewise.
72302         * modules/vsprintf-posix (Depends-on): Likewise.
72303         * lib/frexp.c: Include isnand.h instead of isnan.h.
72304         (ISNAN): Set to isnand instead of isnan.
72305         * lib/isfinite.c: Include isnand.h instead of isnan.h.
72306         (gl_isfinited): Use isnand instead of isnan.
72307         * lib/signbitd.c: Include isnand.h instead of isnan.h.
72308         (gl_signbitd): Use isnand instead of isnan.
72309         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
72310         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
72311         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
72312         (main): Use isnand instead of isnan.
72313         * tests/test-round1.c: Include isnand.h.
72314         (main): Use isnand instead of isnan.
72315         * tests/test-round2.c: Include isnand.h instead of isnan.h.
72316         (ISNAN): Set to isnand instead of isnan.
72317         * tests/test-trunc1.c: Include isnand.h.
72318         (main): Use isnand instead of isnan.
72319         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
72320         (equal): Use isnand instead of isnan.
72321         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
72322         isnand-nolibm.
72323         * NEWS: Mention the change.
72325 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72326             Bruno Haible  <bruno@clisp.org>
72328         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
72329         the GCC builtins for signbits are present and set
72330         REPLACE_SIGNBIT_USING_GCC if so.
72331         * lib/math.in.h (signbit): Define using GCC builtins if
72332         REPLACE_SIGNBIT_USING_GCC is set.
72333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
72334         REPLACE_SIGNBIT_USING_GCC.
72335         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
72337 2008-01-25  Jim Meyering  <meyering@redhat.com>
72339         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
72340         * lib/poll.c: Include <config.h>, not "config.h".
72341         * tests/test-getaddrinfo.c: Likewise.
72343 2008-01-25  Simon Josefsson  <simon@josefsson.org>
72345         * modules/sockets-tests: New file.
72347 2008-01-24  Simon Josefsson  <simon@josefsson.org>
72349         * modules/sockets: New module, can be used to call WSA_Startup and
72350         WSA_Cleanup when needed.
72352         * lib/sockets.h, lib/sockets.c: New files.
72354         * m4/sockets.m4: New file.
72356         * tests/test-sockets.c: New file.
72358 2008-01-19  Bruno Haible  <bruno@clisp.org>
72360         * doc/posix-headers: Renamed from doc/headers.
72361         * doc/posix-functions: Renamed from doc/functions.
72362         * doc/gnulib.texi: Update.
72364 2008-01-19  Bruno Haible  <bruno@clisp.org>
72366         * doc/glibc-functions/strcasestr.texi: Include contents of
72367         doc/functions/strcasestr.texi, fixing the list of platforms.
72368         * doc/functions/strcasestr.texi: Remove file.
72370 2008-01-19  Bruno Haible  <bruno@clisp.org>
72372         * doc/glibc-functions/memmem.texi: Include contents of
72373         doc/functions/memmem.texi.
72374         * doc/functions/memmem.texi: Remove file.
72376 2008-01-18  Bruno Haible  <bruno@clisp.org>
72378         * doc/glibc-functions/*.texi: New files.
72379         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
72380         to use the new files.
72382 2008-01-17  Bruno Haible  <bruno@clisp.org>
72384         * tests/test-gethostname.c (main): Fix printf statement.
72386 2008-01-17  Simon Josefsson  <simon@josefsson.org>
72388         * modules/gethostname-tests: New file.
72390         * tests/test-gethostname.c: New file.
72392 2008-01-17  Simon Josefsson  <simon@josefsson.org>
72394         * lib/gethostname.c: Include string.h unconditionally, strncpy is
72395         used by the UNAME case.  Reported by Bruno Haible
72396         <bruno@clisp.org>.
72398 2008-01-17  Eric Blake  <ebb9@byu.net>
72400         Convert c-strcasestr to be more efficient.
72401         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
72402         (Depends-on): Add c-strcase, remove malloca, strnlen.
72403         * tests/test-c-strcasestr.c (main): Enhance test.
72404         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
72406 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72408         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
72409         Use it in creating po/Makevars.
72411 2008-01-15  Simon Josefsson  <simon@josefsson.org>
72413         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
72414         Applications that requires it should initialize libgcrypt
72415         manually.
72417 2008-01-16  Simon Josefsson  <simon@josefsson.org>
72419         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
72421 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
72423         Fix problem with getdate on mingw32 reported by Simon Josefsson
72424         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
72425         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
72426         tzname", when deciding whether to declare tzname.
72427         * lib/strftime.c (tzname): Likewise.
72429 2008-01-15  Bruno Haible  <bruno@clisp.org>
72431         Work around a MacOS X 10.5 bug in frexpl().
72432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
72433         * doc/functions/frexpl.texi: Document the bug.
72434         Reported by Elias Pipping <pipping@gentoo.org>.
72436 2008-01-14  Eric Blake  <ebb9@byu.net>
72438         Touch up previous patch.
72439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
72440         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
72442         Convert strcasestr module to use Two-Way algorithm.
72443         * modules/strcasestr-simple: New module, based on the old
72444         strcasestr, but with Two-Way rather than KMP.
72445         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
72446         * lib/string.in.h (rpl_strcasestr): Declare.
72447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
72448         performance.
72449         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
72450         * modules/string (Makefile.am): Support strcasestr.
72451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
72452         * modules/strcasestr-tests (Depends-on): Check for alarm.
72453         * tests/test-strcasestr.c: Augment test.
72454         * lib/str-two-way.h: Clean up stray macro.
72455         * NEWS: Document new module.
72456         * MODULES.html.sh (string handling): Likewise.
72457         * doc/functions/strcasestr.texi: New file.
72458         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
72459         here, since it is not a POSIX function.
72461 2008-01-14  Colin Watson  <cjwatson@debian.org>
72462             Bruno Haible  <bruno@clisp.org>
72464         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
72465         works fine; if not, set REPLACE_STRSIGNAL.
72466         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
72467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72468         REPLACE_STRSIGNAL.
72469         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
72470         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
72471         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
72473 2008-01-14  Bruno Haible  <bruno@clisp.org>
72475         * modules/strsignal (Include): Change to <string.h>.
72477 2008-01-14  Colin Watson  <cjwatson@debian.org>
72479         * modules/argp (Notice): Add a notice recommending to change
72480         XGETTEXT_OPTIONS.
72481         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
72483 2008-01-13  Colin Watson  <cjwatson@debian.org>
72485         * modules/strsignal-tests: New file.
72486         * tests/test-strsignal.c: New file.
72488         * lib/strsignal.c: New file, from glibc with modifications.
72489         * lib/siglist.h: New file, from glibc with modifications.
72490         * lib/string.in.h (strsignal): New declaration.
72491         * m4/strsignal.m4: New file.
72492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72493         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
72494         * modules/strsignal: New file.
72495         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
72496         HAVE_DECL_STRSIGNAL.
72498 2008-01-13  Bruno Haible  <bruno@clisp.org>
72500         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
72501         locale encoding is not ASCII. Needed for OpenBSD 4.0.
72502         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
72503         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72505 2008-01-13  Bruno Haible  <bruno@clisp.org>
72507         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
72508         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
72509         * lib/argp.h (__attribute__): Likewise.
72510         * lib/c-stack.c (__attribute__): Likewise.
72511         * lib/error.h (__attribute__): Likewise.
72512         * lib/fts.c (__attribute__): Likewise.
72513         * lib/openat.h (__attribute__): Likewise.
72514         * lib/stdio.in.h (__attribute__): Likewise.
72515         * lib/string.in.h (__attribute__): Likewise.
72516         * lib/utimens.c (__attribute__): Likewise.
72517         * lib/vasnprintf.h (__attribute__): Likewise.
72518         * lib/xalloc.h (__attribute__): Likewise.
72519         * lib/xprintf.h (__attribute__): Likewise.
72520         * lib/xstrtol.h (__attribute__): Likewise.
72521         * lib/xvasprintf.h (__attribute__): Likewise.
72523 2008-01-12  Bruno Haible  <bruno@clisp.org>
72525         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
72526         * doc/glibc-headers/a.out.texi: New file.
72527         * doc/glibc-headers/aliases.texi: New file.
72528         * doc/glibc-headers/alloca.texi: New file.
72529         * doc/glibc-headers/ar.texi: New file.
72530         * doc/glibc-headers/argp.texi: New file.
72531         * doc/glibc-headers/argz.texi: New file.
72532         * doc/glibc-headers/byteswap.texi: New file.
72533         * doc/glibc-headers/crypt.texi: New file.
72534         * doc/glibc-headers/endian.texi: New file.
72535         * doc/glibc-headers/envz.texi: New file.
72536         * doc/glibc-headers/err.texi: New file.
72537         * doc/glibc-headers/error.texi: New file.
72538         * doc/glibc-headers/execinfo.texi: New file.
72539         * doc/glibc-headers/fpu_control.texi: New file.
72540         * doc/glibc-headers/fstab.texi: New file.
72541         * doc/glibc-headers/fts.texi: New file.
72542         * doc/glibc-headers/getopt.texi: New file.
72543         * doc/glibc-headers/ieee754.texi: New file.
72544         * doc/glibc-headers/ifaddrs.texi: New file.
72545         * doc/glibc-headers/libintl.texi: New file.
72546         * doc/glibc-headers/mcheck.texi: New file.
72547         * doc/glibc-headers/mntent.texi: New file.
72548         * doc/glibc-headers/obstack.texi: New file.
72549         * doc/glibc-headers/paths.texi: New file.
72550         * doc/glibc-headers/printf.texi: New file.
72551         * doc/glibc-headers/pty.texi: New file.
72552         * doc/glibc-headers/resolv.texi: New file.
72553         * doc/glibc-headers/shadow.texi: New file.
72554         * doc/glibc-headers/sysexits.texi: New file.
72555         * doc/glibc-headers/ttyent.texi: New file.
72557 2008-01-12  Jim Meyering  <meyering@redhat.com>
72559         announce-gen: emit Gnulib's git-based version string.
72560         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
72561         New option --gnulib-version=V, where V is expected to be
72562         the output of running git describe in the gnulib directory.
72563         (get_tool_versions): Request feedback on xdelta.  I suspect it's
72564         not useful, and plan to stop publishing an xdelta file with each
72565         coreutils release.
72567         * build-aux/announce-gen: Also check for lzma-compressed files.
72569 2008-01-11  Bruno Haible  <bruno@clisp.org>
72571         * tests/test-memmem.c (main): Increase maximum allowed time.
72572         * tests/test-strstr.c (main): Likewise.
72574 2008-01-11  Bruno Haible  <bruno@clisp.org>
72576         * doc/functions/memmem.texi: Add more precisions about platforms.
72577         * doc/functions/strstr.texi: Likewise.
72579 2008-01-10  Eric Blake  <ebb9@byu.net>
72581         * m4/strstr.m4: Delete cruft from copy-n-paste.
72582         Reported by Bruno Haible.
72584 2008-01-10  Bruno Haible  <bruno@clisp.org>
72586         Make c-strstr rely on strstr.
72587         * lib/c-strstr.c: Don't include str-kmp.h.
72588         (c_strstr): Define in terms of strstr.
72589         * modules/c-strstr (Files): Remove lib/str-kmp.h.
72590         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
72592 2008-01-10  Bruno Haible  <bruno@clisp.org>
72594         * doc/gnulib.texi (String Functions in C Locale): New section.
72595         * doc/c-ctype.texi: New file.
72596         * doc/c-strcase.texi: New file.
72597         * doc/c-strcaseeq.texi: New file.
72598         * doc/c-strcasestr.texi: New file.
72599         * doc/c-strstr.texi: New file.
72600         * doc/c-strtod.texi: New file.
72601         * doc/c-strtold.texi: New file.
72603 2008-01-10  Eric Blake  <ebb9@byu.net>
72605         * lib/relocatable.h: Fix a comment.
72607 2008-01-10  Eric Blake  <ebb9@byu.net>
72609         Share two-way algorithm.
72610         * lib/str-two-way.h: New file, merged from...
72611         * lib/memmem.c: ...here...
72612         * lib/strstr.c: ...and here.
72613         * modules/memmem (Files): Use it.
72614         * modules/strstr (Files): Likewise.
72616         Avoid quadratic strstr implementations.
72617         * lib/strstr.c: New file.
72618         * m4/strstr.m4: Likewise.
72619         * modules/strstr: Likewise.
72620         * modules/strstr-tests: Likewise.
72621         * tests/test-strstr.c: Likewise.
72622         * lib/string.in.h (rpl_strstr): Declare.
72623         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
72624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
72625         * modules/string (Makefile.am): Likewise.
72626         * MODULES.html.sh (string handling): Mention new module.
72627         * doc/functions/strstr.texi (strstr): Document the bug.
72629 2008-01-10  Bruno Haible  <bruno@clisp.org>
72631         * lib/relocatable.h (relocate): State whether result is freshly
72632         allocated or not.
72633         * lib/relocatable.c (relocate): Return a freshly allocated string
72634         instead of a pointer to a privately held string.
72635         Reported by Sylvain Beucler <beuc@gnu.org>.
72637 2008-01-10  Colin Watson  <cjwatson@debian.org>
72639         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
72640         s/S_ISNLK/S_ISLNK/.
72642 2008-01-09  Bruno Haible  <bruno@clisp.org>
72644         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
72645         and other files.
72646         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
72647         if it's only a guess.
72648         * modules/memmem: Simplify by depending on memmem-simple.
72650 2008-01-09  Bruno Haible  <bruno@clisp.org>
72652         Work around OpenBSD 4.0 tdelete() bug.
72653         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
72654         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
72655         macros and don't redefine the enum values.
72656         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
72657         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
72658         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
72660 2008-01-09  Bruno Haible  <bruno@clisp.org>
72662         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
72663         (main): Don't perform the tests if setlocale did not install a UTF-8
72664         locale. Needed on OpenBSD 4.0.
72665         * modules/wcwidth-tests (Depends-on): Add localcharset.
72667 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72669         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
72670         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
72671         * NEWS: announce this.
72672         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
72674 2008-01-09  Simon Josefsson  <simon@josefsson.org>
72675         and Eric Blake  <ebb9@byu.net>
72677         Add memmem-simple module.
72678         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
72679         (gl_FUNC_MEMMEM): Separate performance from presence checks.
72680         * modules/memmem-simple: New file.
72681         * modules/memmem (Description): Tweak.
72682         * MODULES.html.sh (string handling): Mention new module.
72683         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
72684         addressed by memmem-simple.
72685         * NEWS: Document the difference.
72687 2008-01-09  Eric Blake  <ebb9@byu.net>
72689         Give gcc some memmem optimization hints.
72690         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
72691         (strcasestr): Declare as pure.
72692         * modules/memmem (Maintainer): Claim my implementation.
72694 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72696         Support AIX 6.1 and higher.
72697         * build-aux/config.libpath: Likewise.
72698         * build-aux/config.rpath: Likewise.
72700 2008-01-08  Jim Meyering  <meyering@redhat.com>
72701             Bruno Haible  <bruno@clisp.org>
72703         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
72704         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
72705         Reported by Peter Fales in
72706         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
72708 2008-01-08  Bruno Haible  <bruno@clisp.org>
72710         * modules/unictype/category-of (Depends-on): Add
72711         unictype/category-none.
72712         * modules/unictype/category-and-tests (Depends-on): Add
72713         unictype/category-{L,N,Lu,Nd}.
72714         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
72715         * modules/unictype/category-or-tests (Depends-on): Add
72716         unictype/category-{L,N}.
72717         * modules/unictype/category-name-tests (Depends-on): Add
72718         unictype/category-{Z,Nl}.
72719         Reported by Simon Josefsson.
72721 2008-01-08  Bruno Haible  <bruno@clisp.org>
72723         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
72724         convention better.
72725         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
72726         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
72727         Reported by Peter Miller <millerp@canb.auug.org.au>.
72729 2008-01-08  Eric Blake  <ebb9@byu.net>
72731         Rewrite memmem to guarantee linear complexity without malloc.
72732         * lib/memmem.c (memmem): Use Two-Way rather than
72733         Knuth-Morris-Pratt, to allow O(1) space usage.
72734         (critical_factorization, two_way_short_needle)
72735         (two_way_long_needle): New functions.
72736         (knuth_morris_pratt): Delete.
72737         * modules/memmem (Depends-on): No longer need malloca or stdbool.
72738         Add stdint.
72739         * tests/test-memmem.c (main): Add tests for periodic needle and
72740         sublinear performance.
72741         * doc/functions/memmem.texi (memmem): Document other deficiencies
72742         in cygwin and older glibc.
72744 2008-01-08  Bruno Haible  <bruno@clisp.org>
72746         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
72747         augmentation.
72749 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
72751         Add a configure time option: --disable-acl.
72752         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
72753         AC_ARG_ENABLE(acl).
72755 2008-01-06  Simon Josefsson  <simon@josefsson.org>
72757         * tests/test-localename.c: Don't include obsolete "setenv.h".
72759         * modules/localename-tests (Depends-on): Need unsetenv.
72761 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72763         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
72765 2008-01-06  Colin Watson  <cjwatson@debian.org>
72767         * users.txt: Add man-db.
72769 2008-01-07  Bruno Haible  <bruno@clisp.org>
72771         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
72772         previous section name.
72774 2008-01-07  Bruno Haible  <bruno@clisp.org>
72776         * lib/progname.c (set_program_name): Don't strip off a leading
72777         "lt-" prefix outside a .libs directory.
72778         Suggested by Paul Eggert.
72780 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
72781             Bruno Haible  <bruno@clisp.org>
72783         Improve memory cleanup in 'relocatable' module.
72784         * lib/relocatable.h (compute_curr_prefix): Change return type to
72785         'char *'.
72786         * lib/relocatable.c (compute_curr_prefix): Change return type to
72787         'char *'. Free curr_installdir after use.
72788         (relocate): Free curr_prefix_better after use.
72789         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
72791 2008-01-01  Bruno Haible  <bruno@clisp.org>
72793         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
72794         failure on older glibc systems.
72795         Reported by Peter Fales <psfales@alcatel-lucent.com>.
72797 2008-01-05  Eric Blake  <ebb9@byu.net>
72799         Avoid quadratic system memmem.
72800         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
72801         Reported by Ralf Wildenhues.
72803         Fix memmem test for mingw.
72804         * modules/memmem-tests (configure.ac): Check for alarm.
72805         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
72806         it.
72807         * doc/functions/memmem.texi: New file.
72808         * doc/gnulib.texi (Function Substitutes): Add memmem.
72809         Reported by Bruno Haible.
72811 2008-01-04  Bruno Haible  <bruno@clisp.org>
72813         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
72814         Require gl_HEADER_STRINGS_H_DEFAULTS, not
72815         gl_HEADER_STRING_H_DEFAULTS.
72817 2008-01-04  Eric Blake  <ebb9@byu.net>
72819         Shorten duration of memmem test.
72820         * tests/test-memmem.c (main): Use alarm to declare failure if test
72821         is taking too long.
72822         Reported by Ralf Wildenhues.
72824 2007-12-21  Simon Josefsson  <simon@josefsson.org>
72826         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
72827         string, needed by strerror.
72829 2008-01-03  Colin Watson  <cjwatson@debian.org>
72830             Bruno Haible  <bruno@clisp.org>
72832         * doc/gnulib-tool.texi (Localization): New section.
72834 2008-01-02  Bruno Haible  <bruno@clisp.org>
72836         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
72837         variables to 'unsigned char *' type.
72838         Reported by Paul Eggert.
72840 2008-01-02  Jim Meyering  <jim@meyering.net>
72842         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
72844 2007-12-31  Jim Meyering  <jim@meyering.net>
72846         Avoid use of private FTS type name.
72847         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
72849 2007-12-30  Karl Berry  <karl@gnu.org>
72851         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
72852         work around defect in Texinfo and/or the standalone Info browser.
72854 2007-12-30  Bruno Haible  <bruno@clisp.org>
72856         Unify 5 copies of the KMP code.
72857         * lib/str-kmp.h: New file.
72858         * lib/c-strcasestr.c: Include str-kmp.h.
72859         (knuth_morris_pratt): Remove function.
72860         (c_strcasestr): Update.
72861         * lib/c-strstr.c: Include str-kmp.h.
72862         (knuth_morris_pratt): Remove function.
72863         (c_strcasestr): Update.
72864         * lib/mbscasestr.c: Include str-kmp.h.
72865         (knuth_morris_pratt_unibyte): Remove function.
72866         * lib/mbsstr.c: Include str-kmp.h.
72867         (knuth_morris_pratt_unibyte): Remove function.
72868         * lib/strcasestr.c: Include str-kmp.h.
72869         (knuth_morris_pratt): Remove function.
72870         (strcasestr): Update.
72871         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
72872         * modules/c-strstr (Files): Likewise.
72873         * modules/mbscasestr (Files): Likewise.
72874         * modules/mbsstr (Files): Likewise.
72875         * modules/strcasestr (Files): Likewise.
72876         Suggested by Paul Eggert.
72878 2007-12-30  Bruno Haible  <bruno@clisp.org>
72880         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
72881         defined.
72883 2007-12-30  Bruno Haible  <bruno@clisp.org>
72885         * lib/xmalloca.h: Include xalloc.h.
72886         (xnmalloca): New macro.
72888 2007-12-30  Bruno Haible  <bruno@clisp.org>
72890         * lib/malloca.h (nmalloca): New macro.
72891         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
72892         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
72893         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
72894         knuth_morris_pratt_multibyte): Likewise.
72895         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
72896         knuth_morris_pratt_multibyte): Likewise.
72897         * lib/memmem.c (knuth_morris_pratt): Likewise.
72898         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
72900 2007-12-25  Bruno Haible  <bruno@clisp.org>
72902         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
72903         * lib/glob.c: Don't include openat.h.
72904         (link_exists2_p): Add back the code that deals with the
72905         !GLOB_ALTDIRFUNC case.
72906         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
72907         let it do the filename concatenation.
72908         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
72909         * modules/glob (Depends-on): Remove openat.
72911 2007-12-31  Bruno Haible  <bruno@clisp.org>
72913         * modules/dirfd (License): Change to LGPLv2+.
72914         Approved by Jim Meyering.
72916 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72918         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
72919         when multiplying M by sizeof (size_t).
72921 2007-12-10  Martin Lambers  <marlam@marlam.de>
72923         Override getpagesize on mingw.
72924         * lib/getpagesize.c: New file.
72925         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
72926         * modules/getpagesize (Files): Add lib/getpagesize.c.
72927         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
72928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72929         REPLACE_GETPAGESIZE.
72930         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
72932 2007-12-25  Bruno Haible  <bruno@clisp.org>
72934         * modules/localcharset (Notice): New field.
72935         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
72936         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
72938 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72939             Bruno Haible  <bruno@clisp.org>
72941         Avoid using the syntax symbol() in formatted documentation.
72942         * MODULES.html.sh (func_module): When replacing symbol() with a
72943         hyperlink, remove the parentheses. Show an error if some remain.
72944         Recognize and render the '...' syntax.
72945         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
72946         Rework. Add paragraph about GCC's inlining.
72947         * doc/alloca.texi: Likewise.
72948         * doc/error.texi: Remove parentheses from symbol reference.
72949         * doc/gnulib-intro.texi: Likewise.
72950         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
72951         * modules/fnmatch (Description): Reword to say "the ... function".
72952         * modules/full-read (Description): Likewise.
72953         * modules/full-write (Description): Likewise.
72954         * modules/safe-read (Description): Likewise.
72955         * modules/safe-write (Description): Likewise.
72956         * modules/strchrnul (Description): Likewise.
72957         * modules/trim (Description): Likewise.
72958         * modules/error (Description): Remove parentheses from symbol
72959         references.
72960         * modules/verror (Description): Likewise.
72961         Reported by Karl Berry.
72963 2007-12-25  Bruno Haible  <bruno@clisp.org>
72965         Fixup after 2007-10-16 commit.
72966         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
72968 2007-12-24  Bruno Haible  <bruno@clisp.org>
72970         Make --enable-relocatable work with DESTDIR.
72971         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
72972         to compute installdir from destprog.
72973         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
72974         also set the RELOC_DESTDIR variable.
72975         Reported by Левашев Иван <octagram@bluebottle.com>.
72977 2007-12-24  Bruno Haible  <bruno@clisp.org>
72979         Fix link error due to xalloc_die().
72980         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
72981         of xreadlink.
72982         * lib/relocwrapper.c: Update comments.
72983         * build-aux/install-reloc: Remove xreadlink.c from file list.
72984         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
72985         xreadlink.c.
72986         Reported by Левашев Иван <octagram@bluebottle.com>.
72988 2007-12-24  Bruno Haible  <bruno@clisp.org>
72990         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
72991         * lib/setenv.h: Remove file.
72992         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
72993         lib/setenv.h.
72994         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
72995         (Depends-on): Add stdlib.
72996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
72997         gl_FUNC_UNSETENV.
72998         (Include): Replace setenv.h with <stdlib.h>.
72999         * modules/unsetenv: New file.
73000         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
73001         * lib/unsetenv.c: Include <stdlib.h> first.
73002         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
73003         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
73004         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
73005         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
73006         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
73007         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
73008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
73009         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
73010         * doc/functions/unsetenv.texi: Update.
73011         * modules/xsetenv (Depends-on): Add unsetenv.
73012         * modules/getdate (Depends-on): Likewise.
73013         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
73014         * lib/xsetenv.c: Don't include setenv.h.
73015         * lib/getdate.y: Likewise.
73016         * lib/relocwrapper.c: Likewise.
73017         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
73018         (Depends-on): Add stdlib.
73019         * NEWS: Mention the changes.
73020         Reported by Левашев Иван <octagram@bluebottle.com>.
73022 2007-12-23  Bruno Haible  <bruno@clisp.org>
73024         * lib/memmem.c (memmem): Use lowercase variable names. Tab
73025         indentation.
73027 2007-12-23  Bruno Haible  <bruno@clisp.org>
73029         * lib/c-strcasestr.c: Add more comments.
73030         * lib/c-strstr.c: Likewise.
73031         * lib/mbscasestr.c: Likewise.
73032         * lib/mbsstr.c: Likewise.
73033         * lib/strcasestr.c: Likewise.
73034         * lib/memmem.c: Likewise.
73036 2007-12-23  Bruno Haible  <bruno@clisp.org>
73038         * tests/test-memmem.c: Include <string.h> first.
73040 2007-12-22  Bruno Haible  <bruno@clisp.org>
73042         * gnulib-tool (func_create_testdir): Change $auxdir while generating
73043         the contents of $testsbase.
73044         Reported by Ralf Wildenhues.
73046 2007-12-22  Bruno Haible  <bruno@clisp.org>
73048         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
73049         two variables local_ldadd_before, local_ldadd_last.
73051 2007-12-20  Eric Blake  <ebb9@byu.net>
73053         Work around circular library issue when cross-compiling.
73054         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
73055         that progname.o does not need to pull in rpl_memcmp.
73057 2007-12-19  Eric Blake  <ebb9@byu.net>
73059         Fix memmem to avoid O(n^2) worst-case complexity.
73060         * lib/memmem.c (knuth_morris_pratt): New function.
73061         (memmem): Use it if first few naive iterations fail.
73062         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
73063         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
73064         * modules/memchr (License): Likewise.
73065         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
73066         malloca.
73067         * tests/test-memmem.c: Rewrite, borrowing ideas from
73068         test-mbsstr1.c; the old version wouldn't even compile!
73069         * modules/memmem-tests: New file.
73070         * lib/string.in.h (rpl_memmem): Add declaration.
73071         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
73072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
73073         REPLACE_MEMMEM.
73075 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73077         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
73078         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
73079         before any system include files, and undef after them all.  This
73080         should fix a problem on VMS reported by John E. Malmberg in
73081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
73083 2007-12-17  Eric Blake  <ebb9@byu.net>
73085         Revert addition of verify, for BSD/OS.
73086         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
73087         can't handle large files, for the sake of obsolete platforms.
73088         * modules/fseeko (Depends-on): Remove verify.
73089         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
73090         * doc/functions/ftello.texi (ftello): Likewise.
73091         * doc/functions/fgetpos.texi (fgetpos): Likewise.
73092         Reported by Larry Jones.
73094 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
73096         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
73097         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
73099 2007-12-17  Jim Meyering  <meyering@redhat.com>
73101         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
73102         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
73103         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
73104         * modules/getcwd (Depends-on): Add openat.
73105         Reported by Petr Salinger.
73107 2007-12-17  Bruno Haible  <bruno@clisp.org>
73109         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
73110         avoid a segmentation fault of the configure test on x86_64 systems.
73112 2007-12-15  Jim Meyering  <meyering@redhat.com>
73114         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
73116 2007-12-13  Eric Blake  <ebb9@byu.net>
73118         Another fseek test.
73119         * tests/test-fseek.c (main): Also test ungetc handling.
73120         * tests/test-fseeko.c (main): Likewise.
73121         * modules/fseeko (Depends-on): Add verify.
73122         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
73123         large.
73124         Reported by Larry Jones.
73126         Fix fseeko on mingw.
73127         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
73128         seek.
73130         Beef up fseek tests.
73131         * tests/test-fseek.c (main): Also test eof handling.
73132         * tests/test-fseeko.c (main): Likewise.
73133         Reported by Larry Jones.
73135 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
73137         Fix fseeko on BSD-based platforms.
73138         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
73139         successful seek.
73141 2007-12-12  Eric Blake  <ebb9@byu.net>
73143         Allow circular dependency of separate libtests.a
73144         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
73145         when use_libtests.
73147 2007-12-11  Eric Blake  <ebb9@byu.net>
73149         Fix bug with -0.0L in previous patch.
73150         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
73151         * tests/test-isnan.c (main): Also test on zeroes.
73152         * tests/test-isnanf.c (main): Likewise.
73153         * tests/test-isnanl.h (main): Likewise.
73155         Detect pseudo-denormals on x86 even when cross-compiling.
73156         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
73157         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
73158         invalid bit patterns that happen to satisfy ==.
73160         Avoid link failures with separate libtests.a.
73161         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
73162         last, to satisfy circular dependencies.
73164 2007-12-11  Eric Blake  <ebb9@byu.net>
73165         and Bruno Haible  <bruno@clisp.org>
73167         Fix OpenBSD 4.0 <float.h> handling of long double.
73168         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
73169         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
73170         * doc/headers/float.texi (float.h): Document OpenBSD bug.
73172 2007-12-11  Jim Meyering  <meyering@redhat.com>
73174         * users.txt: Add libvirt.
73176         Support versions of autoconf prior to 2.59c.
73177         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
73178         if it is not already defined.
73180 2007-12-09  Bruno Haible  <bruno@clisp.org>
73182         Let 'gnulib-tool --import' collect sources needed for the tests in
73183         tests/ rather than in lib/.
73184         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
73185         argument. If true, add rules to generate libtests.a, and put libtests.a
73186         into $(LDADD). Consider source files in subdirectories and set
73187         uses_subdirs.
73188         (func_emit_initmacro_start, func_emit_initmacro_end,
73189         func_emit_initmacro_done): Pass all arguments explicitly.
73190         (func_import): Determine two module lists main_modules,
73191         testsrelated_modules. Determine use_libtests. Determine two variables
73192         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
73193         instead of just sed_transform_lib_file. Determine two variables
73194         main_files and testsrelated_files. Compute 'files' as the union of
73195         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
73196         func_add_or_update. In the generated gnulib-comp.m4, collect the
73197         object files for tests/ in different variables than those for lib/.
73198         Substitute LIBTESTS_LIBDEPS.
73199         (func_create_testdir): Combine the uses_subdirs results from
73200         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
73202 2007-12-09  Bruno Haible  <bruno@clisp.org>
73204         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
73205         the build-aux directory.
73207 2007-12-09  Bruno Haible  <bruno@clisp.org>
73209         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
73210         introduced on 2006-09-09.
73212 2007-12-07  Jim Meyering  <meyering@redhat.com>
73214         Let these macros work also with autoconf-2.59.
73215         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
73216         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
73217         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
73219 2007-12-06  Jim Meyering  <meyering@redhat.com>
73221         Avoid a configure-time syntax error in gl_FUNC_ACL.
73222         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
73223         function in each branch, before testing the cache variable.
73225 2007-12-04  Eric Blake  <ebb9@byu.net>
73227         Make scripts executable.
73228         * build-aux/config.guess: Add execute permissions.
73229         * build-aux/config.sub: Likewise.
73230         * build-aux/gendocs.sh: Likewise.
73232         Fix frexp on mingw.
73233         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
73234         cross-compiling.
73235         * doc/functions/frexp.texi (frexp): Document the bug.
73237         Make cygwin fseeko check more reliable.
73238         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
73239         version numbers, rather than unrelated feature check.
73240         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
73241         * doc/functions/ftello.texi (ftello): Likewise.
73242         Reported by Bruno Haible.
73244         * m4/strerror.m4: Bump version number.
73246 2007-12-03  Bruno Haible  <bruno@clisp.org>
73248         * doc/functions/mprotect.texi: Mention the mingw problem.
73250 2007-12-03  Eric Blake  <ebb9@byu.net>
73252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
73253         REPLACE_STRERROR is initialized before this macro.
73255 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73257         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
73258         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
73259         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
73260         put -lsec in even for programs other than 'ls'.  This fixes a problem
73261         for gettext reported by Bruno Haible in
73262         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
73263         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
73264         Add support for Solaris 10.  This isn't efficient, but should get the
73265         job done for now.
73267 2007-12-03  James Youngman  <jay@gnu.org>
73269         * doc/regexprops-generic.texi: change "an close-group" to "a
73270         close-group" and "illegal" to "not allowed".
73272 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73274         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
73275         pr_byname.h. Needed for the rare case when the maintainer has done
73276         "make maintainer-clean" in the source directory and then attempts a
73277         build outside the source directory.
73278         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
73279         scripts_byname.h.
73281 2007-12-02  Martin Lambers <marlam@marlam.de>
73282             Bruno Haible  <bruno@clisp.org>
73284         * lib/getpagesize.h: Remove file.
73285         * lib/unistd.in.h: Include declaration of getpagesize here.
73286         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
73287         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
73288         HAVE_SYS_PARAM_H.
73289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
73290         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
73291         * modules/getpagesize (Files): Remove lib/getpagesize.h.
73292         (Depends-on): Add unistd.
73293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73294         (Include): Use <unistd.h> instead of getpagesize.h.
73295         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
73296         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
73297         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
73298         gl_GETPAGESIZE invocation, already handled by module dependency.
73299         * lib/pagealign_alloc.c: Don't include getpagesize.h.
73301 2007-12-02  Bruno Haible  <bruno@clisp.org>
73303         * modules/strings-tests: New file.
73304         * tests/test-strings.c: New file.
73306         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
73307         * lib/strings.in.h: New file.
73308         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
73309         * m4/strings_h.m4: New file.
73310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
73311         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
73312         * modules/strings: New file.
73313         * modules/string (Makefile.am): Update.
73314         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
73315         Reported by Karl Berry.
73317 2007-12-01  Eric Blake  <ebb9@byu.net>
73319         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
73320         accommodate fix in cygwin 1.5.25.
73322 2007-12-01  Jim Meyering  <meyering@redhat.com>
73324         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
73325         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
73326         that would inhibit utf8-optimization of a regexp containing line-
73327         or buffer-anchors, e.g., `^', `$'.
73329 2007-11-30  Bruno Haible  <bruno@clisp.org>
73331         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
73332         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
73333         glthread_recursive_lock_init.
73334         * lib/lock.c (glthread_recursive_lock_init)
73335         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
73336         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73338 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
73340         New function qset_acl, like set_acl but with syscall semantics.
73341         * lib/acl.h (qset_acl): New decl.
73342         * lib/acl.c (qset_acl): New function.
73343         (set_acl): Use new function.  Use more-consistent diagnostics.
73345 2007-11-28  Jim Meyering  <meyering@redhat.com>
73347         * modules/physmem (License): Change from GPL to LGPLv2+.
73349 2007-11-26  Bruno Haible  <bruno@clisp.org>
73351         * lib/vasnprintf.c (decode_long_double): Don't abort if the
73352         'long double' type has excess precision.
73353         Reported by Jim Meyering in
73354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
73356 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73358         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
73359         Sync from <http://gnu.org/licenses>.
73360         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
73361         with license text from same location.
73362         * doc/maintain.texi, doc/standards.texi:  Sync from
73363         <http://savannah.gnu.org/projects/gnustandards>.
73365 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
73366         and Jim Meyering  <meyering@redhat.com>
73368         Adjust getdate' grammar to accept a slightly more regular language.
73369         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
73370         Before, the former was rejected.
73371         * lib/getdate.y (digits_to_date_time): New function, factored
73372         out of ...
73373         (number): ...here.  Just call digits_to_date_time.
73374         (hybrid): New non-terminal to handle an <unsigned number,
73375         signed relative offset> sequence consistently.
73377 2007-11-18  Jim Meyering  <meyering@redhat.com>
73379         Pull my changes from coreutils:
73380         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
73381         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
73382         use of $gnulib_tool_option_extras, so that it's separated from the
73383         preceding argument.
73385         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
73386         * build-aux/bootstrap (cp_mark_as_generated): Create any required
73387         parent destination directories before copying a file into place.
73389 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73391         bootstrap: work also with 4-argument variant of AC_INIT
73392         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
73394 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73396         Port test-getaddrinfo to Solaris.
73397         Problem reported by Bruno Haible in
73398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
73399         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
73400         explanation of setting 'hints'.
73401         Don't reject an implementation merely because it returns EAI_SERVICE.
73402         (EAI_SERVICE): Define to 0 if not defined.
73404 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73406         The license of gnu-make and posix-shell is now "GPLed build tool".
73407         * modules/gnu-make (License): Likewise.
73408         * modules/posix-shell (License): Likewise.
73410         New module posix-shell, for determining a POSIX shell
73411         or perhaps something that is close enough to a POSIX shell.
73412         * m4/posix-shell.m4: New file.
73413         * modules/posix-shell: New file.
73415         * MODULES.html.sh: Mention new module.
73417         New module gnu-make, for determining whether we're using GNU Make.
73418         * m4/gnu-make.m4: New file.
73419         * modules/gnu-make: New file.
73420         * MODULES.html.sh: Mention new module.
73422 2007-11-14  Jim Meyering  <meyering@redhat.com>
73424         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
73425         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
73426         use this macro to create a function _definition_.
73427         Remove useless "#undef ARGMATCH_DIE".
73429 2007-11-14  Bruno Haible  <bruno@clisp.org>
73431         * lib/config.charset: Update for OpenBSD 4.1.
73432         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
73434 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
73436         Document 64-bit #if problems in stdint.texi.
73437         * doc/headers/stdint.texi (stdint.h): Mention problems with
73438         64-bit-#if, and how to work around them.
73440         Don't insist on 'long long int' support in the preprocessor.  It
73441         breaks too many things.  For example, PRIdMAX still uses a 'long
73442         long int' format with the latest Sun compiler, even though
73443         HAVE_LONG_LONG_INT isn't defined due to that compiler's
73444         preprocessor problem.  This causes the latest coreutils to dump
73445         core on Solaris 10 sparc with the Sun C compiler.
73446         Instead, fix the 2007-10-16 problem in a different way, by evaluating
73447         the troublesome expressions at configure-time, not at #if-time.
73448         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
73449         preprocessor.
73450         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
73451         compile-time C checks, done at 'configure'-time.
73452         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
73453         * modules/inttypes (Makefile): Substitute the new symbols that
73454         gl_INTTYPES_H now generates.
73455         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
73457 2007-11-12  Bruno Haible  <bruno@clisp.org>
73459         Tests for Unicode character classification functions.
73461         * modules/unictype/bidicategory-byname-tests: New file.
73462         * modules/unictype/bidicategory-name-tests: New file.
73463         * modules/unictype/bidicategory-of-tests: New file.
73464         * modules/unictype/bidicategory-test-tests: New file.
73465         * modules/unictype/block-list-tests: New file.
73466         * modules/unictype/block-of-tests: New file.
73467         * modules/unictype/block-test-tests: New file.
73468         * modules/unictype/category-C-tests: New file.
73469         * modules/unictype/category-Cc-tests: New file.
73470         * modules/unictype/category-Cf-tests: New file.
73471         * modules/unictype/category-Cn-tests: New file.
73472         * modules/unictype/category-Co-tests: New file.
73473         * modules/unictype/category-Cs-tests: New file.
73474         * modules/unictype/category-L-tests: New file.
73475         * modules/unictype/category-Ll-tests: New file.
73476         * modules/unictype/category-Lm-tests: New file.
73477         * modules/unictype/category-Lo-tests: New file.
73478         * modules/unictype/category-Lt-tests: New file.
73479         * modules/unictype/category-Lu-tests: New file.
73480         * modules/unictype/category-M-tests: New file.
73481         * modules/unictype/category-Mc-tests: New file.
73482         * modules/unictype/category-Me-tests: New file.
73483         * modules/unictype/category-Mn-tests: New file.
73484         * modules/unictype/category-N-tests: New file.
73485         * modules/unictype/category-Nd-tests: New file.
73486         * modules/unictype/category-Nl-tests: New file.
73487         * modules/unictype/category-No-tests: New file.
73488         * modules/unictype/category-P-tests: New file.
73489         * modules/unictype/category-Pc-tests: New file.
73490         * modules/unictype/category-Pd-tests: New file.
73491         * modules/unictype/category-Pe-tests: New file.
73492         * modules/unictype/category-Pf-tests: New file.
73493         * modules/unictype/category-Pi-tests: New file.
73494         * modules/unictype/category-Po-tests: New file.
73495         * modules/unictype/category-Ps-tests: New file.
73496         * modules/unictype/category-S-tests: New file.
73497         * modules/unictype/category-Sc-tests: New file.
73498         * modules/unictype/category-Sk-tests: New file.
73499         * modules/unictype/category-Sm-tests: New file.
73500         * modules/unictype/category-So-tests: New file.
73501         * modules/unictype/category-Z-tests: New file.
73502         * modules/unictype/category-Zl-tests: New file.
73503         * modules/unictype/category-Zp-tests: New file.
73504         * modules/unictype/category-Zs-tests: New file.
73505         * modules/unictype/category-and-not-tests: New file.
73506         * modules/unictype/category-and-tests: New file.
73507         * modules/unictype/category-byname-tests: New file.
73508         * modules/unictype/category-name-tests: New file.
73509         * modules/unictype/category-none-tests: New file.
73510         * modules/unictype/category-of-tests: New file.
73511         * modules/unictype/category-or-tests: New file.
73512         * modules/unictype/category-test-withtable-tests: New file.
73513         * modules/unictype/combining-class-tests: New file.
73514         * modules/unictype/ctype-alnum-tests: New file.
73515         * modules/unictype/ctype-alpha-tests: New file.
73516         * modules/unictype/ctype-blank-tests: New file.
73517         * modules/unictype/ctype-cntrl-tests: New file.
73518         * modules/unictype/ctype-digit-tests: New file.
73519         * modules/unictype/ctype-graph-tests: New file.
73520         * modules/unictype/ctype-lower-tests: New file.
73521         * modules/unictype/ctype-print-tests: New file.
73522         * modules/unictype/ctype-punct-tests: New file.
73523         * modules/unictype/ctype-space-tests: New file.
73524         * modules/unictype/ctype-upper-tests: New file.
73525         * modules/unictype/ctype-xdigit-tests: New file.
73526         * modules/unictype/decimal-digit-tests: New file.
73527         * modules/unictype/digit-tests: New file.
73528         * modules/unictype/mirror-tests: New file.
73529         * modules/unictype/numeric-tests: New file.
73530         * modules/unictype/property-alphabetic-tests: New file.
73531         * modules/unictype/property-ascii-hex-digit-tests: New file.
73532         * modules/unictype/property-bidi-arabic-digit-tests: New file.
73533         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
73534         * modules/unictype/property-bidi-block-separator-tests: New file.
73535         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
73536         * modules/unictype/property-bidi-common-separator-tests: New file.
73537         * modules/unictype/property-bidi-control-tests: New file.
73538         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
73539         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
73540         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
73541         * modules/unictype/property-bidi-european-digit-tests: New file.
73542         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
73543         * modules/unictype/property-bidi-left-to-right-tests: New file.
73544         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
73545         * modules/unictype/property-bidi-other-neutral-tests: New file.
73546         * modules/unictype/property-bidi-pdf-tests: New file.
73547         * modules/unictype/property-bidi-segment-separator-tests: New file.
73548         * modules/unictype/property-bidi-whitespace-tests: New file.
73549         * modules/unictype/property-byname-tests: New file.
73550         * modules/unictype/property-combining-tests: New file.
73551         * modules/unictype/property-composite-tests: New file.
73552         * modules/unictype/property-currency-symbol-tests: New file.
73553         * modules/unictype/property-dash-tests: New file.
73554         * modules/unictype/property-decimal-digit-tests: New file.
73555         * modules/unictype/property-default-ignorable-code-point-tests: New file.
73556         * modules/unictype/property-deprecated-tests: New file.
73557         * modules/unictype/property-diacritic-tests: New file.
73558         * modules/unictype/property-extender-tests: New file.
73559         * modules/unictype/property-format-control-tests: New file.
73560         * modules/unictype/property-grapheme-base-tests: New file.
73561         * modules/unictype/property-grapheme-extend-tests: New file.
73562         * modules/unictype/property-grapheme-link-tests: New file.
73563         * modules/unictype/property-hex-digit-tests: New file.
73564         * modules/unictype/property-hyphen-tests: New file.
73565         * modules/unictype/property-id-continue-tests: New file.
73566         * modules/unictype/property-id-start-tests: New file.
73567         * modules/unictype/property-ideographic-tests: New file.
73568         * modules/unictype/property-ids-binary-operator-tests: New file.
73569         * modules/unictype/property-ids-trinary-operator-tests: New file.
73570         * modules/unictype/property-ignorable-control-tests: New file.
73571         * modules/unictype/property-iso-control-tests: New file.
73572         * modules/unictype/property-join-control-tests: New file.
73573         * modules/unictype/property-left-of-pair-tests: New file.
73574         * modules/unictype/property-line-separator-tests: New file.
73575         * modules/unictype/property-logical-order-exception-tests: New file.
73576         * modules/unictype/property-lowercase-tests: New file.
73577         * modules/unictype/property-math-tests: New file.
73578         * modules/unictype/property-non-break-tests: New file.
73579         * modules/unictype/property-not-a-character-tests: New file.
73580         * modules/unictype/property-numeric-tests: New file.
73581         * modules/unictype/property-other-alphabetic-tests: New file.
73582         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
73583         * modules/unictype/property-other-grapheme-extend-tests: New file.
73584         * modules/unictype/property-other-id-continue-tests: New file.
73585         * modules/unictype/property-other-id-start-tests: New file.
73586         * modules/unictype/property-other-lowercase-tests: New file.
73587         * modules/unictype/property-other-math-tests: New file.
73588         * modules/unictype/property-other-uppercase-tests: New file.
73589         * modules/unictype/property-paired-punctuation-tests: New file.
73590         * modules/unictype/property-paragraph-separator-tests: New file.
73591         * modules/unictype/property-pattern-syntax-tests: New file.
73592         * modules/unictype/property-pattern-white-space-tests: New file.
73593         * modules/unictype/property-private-use-tests: New file.
73594         * modules/unictype/property-punctuation-tests: New file.
73595         * modules/unictype/property-quotation-mark-tests: New file.
73596         * modules/unictype/property-radical-tests: New file.
73597         * modules/unictype/property-sentence-terminal-tests: New file.
73598         * modules/unictype/property-soft-dotted-tests: New file.
73599         * modules/unictype/property-space-tests: New file.
73600         * modules/unictype/property-terminal-punctuation-tests: New file.
73601         * modules/unictype/property-test-tests: New file.
73602         * modules/unictype/property-titlecase-tests: New file.
73603         * modules/unictype/property-unassigned-code-value-tests: New file.
73604         * modules/unictype/property-unified-ideograph-tests: New file.
73605         * modules/unictype/property-uppercase-tests: New file.
73606         * modules/unictype/property-variation-selector-tests: New file.
73607         * modules/unictype/property-white-space-tests: New file.
73608         * modules/unictype/property-xid-continue-tests: New file.
73609         * modules/unictype/property-xid-start-tests: New file.
73610         * modules/unictype/property-zero-width-tests: New file.
73611         * modules/unictype/scripts-tests: New file.
73612         * modules/unictype/syntax-c-ident-tests: New file.
73613         * modules/unictype/syntax-c-whitespace-tests: New file.
73614         * modules/unictype/syntax-java-ident-tests: New file.
73615         * modules/unictype/syntax-java-whitespace-tests: New file.
73616         * tests/unictype/test-bidi_byname.c: New file.
73617         * tests/unictype/test-bidi_name.c: New file.
73618         * tests/unictype/test-bidi_of.c: New file.
73619         * tests/unictype/test-bidi_test.c: New file.
73620         * tests/unictype/test-block_list.c: New file.
73621         * tests/unictype/test-block_of.c: New file.
73622         * tests/unictype/test-block_test.c: New file.
73623         * tests/unictype/test-categ_and.c: New file.
73624         * tests/unictype/test-categ_and_not.c: New file.
73625         * tests/unictype/test-categ_byname.c: New file.
73626         * tests/unictype/test-categ_name.c: New file.
73627         * tests/unictype/test-categ_none.c: New file.
73628         * tests/unictype/test-categ_of.c: New file.
73629         * tests/unictype/test-categ_or.c: New file.
73630         * tests/unictype/test-categ_test_withtable.c: New file.
73631         * tests/unictype/test-combining.c: New file.
73632         * tests/unictype/test-decdigit.c: New file.
73633         * tests/unictype/test-digit.c: New file.
73634         * tests/unictype/test-mirror.c: New file.
73635         * tests/unictype/test-numeric.c: New file.
73636         * tests/unictype/test-pr_byname.c: New file.
73637         * tests/unictype/test-pr_test.c: New file.
73638         * tests/unictype/test-predicate-part1.h: New file.
73639         * tests/unictype/test-predicate-part2.h: New file.
73640         * tests/unictype/test-scripts.c: New file.
73641         * tests/unictype/test-sy_c_ident.c: New file.
73642         * tests/unictype/test-sy_java_ident.c: New file.
73644         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
73645         for Unicode 5.0.0.
73646         * tests/unictype/test-categ_Cc.c: Likewise.
73647         * tests/unictype/test-categ_Cf.c: Likewise.
73648         * tests/unictype/test-categ_Cn.c: Likewise.
73649         * tests/unictype/test-categ_Co.c: Likewise.
73650         * tests/unictype/test-categ_Cs.c: Likewise.
73651         * tests/unictype/test-categ_L.c: Likewise.
73652         * tests/unictype/test-categ_Ll.c: Likewise.
73653         * tests/unictype/test-categ_Lm.c: Likewise.
73654         * tests/unictype/test-categ_Lo.c: Likewise.
73655         * tests/unictype/test-categ_Lt.c: Likewise.
73656         * tests/unictype/test-categ_Lu.c: Likewise.
73657         * tests/unictype/test-categ_M.c: Likewise.
73658         * tests/unictype/test-categ_Mc.c: Likewise.
73659         * tests/unictype/test-categ_Me.c: Likewise.
73660         * tests/unictype/test-categ_Mn.c: Likewise.
73661         * tests/unictype/test-categ_N.c: Likewise.
73662         * tests/unictype/test-categ_Nd.c: Likewise.
73663         * tests/unictype/test-categ_Nl.c: Likewise.
73664         * tests/unictype/test-categ_No.c: Likewise.
73665         * tests/unictype/test-categ_P.c: Likewise.
73666         * tests/unictype/test-categ_Pc.c: Likewise.
73667         * tests/unictype/test-categ_Pd.c: Likewise.
73668         * tests/unictype/test-categ_Pe.c: Likewise.
73669         * tests/unictype/test-categ_Pf.c: Likewise.
73670         * tests/unictype/test-categ_Pi.c: Likewise.
73671         * tests/unictype/test-categ_Po.c: Likewise.
73672         * tests/unictype/test-categ_Ps.c: Likewise.
73673         * tests/unictype/test-categ_S.c: Likewise.
73674         * tests/unictype/test-categ_Sc.c: Likewise.
73675         * tests/unictype/test-categ_Sk.c: Likewise.
73676         * tests/unictype/test-categ_Sm.c: Likewise.
73677         * tests/unictype/test-categ_So.c: Likewise.
73678         * tests/unictype/test-categ_Z.c: Likewise.
73679         * tests/unictype/test-categ_Zl.c: Likewise.
73680         * tests/unictype/test-categ_Zp.c: Likewise.
73681         * tests/unictype/test-categ_Zs.c: Likewise.
73682         * tests/unictype/test-ctype_alnum.c: Likewise.
73683         * tests/unictype/test-ctype_alpha.c: Likewise.
73684         * tests/unictype/test-ctype_blank.c: Likewise.
73685         * tests/unictype/test-ctype_cntrl.c: Likewise.
73686         * tests/unictype/test-ctype_digit.c: Likewise.
73687         * tests/unictype/test-ctype_graph.c: Likewise.
73688         * tests/unictype/test-ctype_lower.c: Likewise.
73689         * tests/unictype/test-ctype_print.c: Likewise.
73690         * tests/unictype/test-ctype_punct.c: Likewise.
73691         * tests/unictype/test-ctype_space.c: Likewise.
73692         * tests/unictype/test-ctype_upper.c: Likewise.
73693         * tests/unictype/test-ctype_xdigit.c: Likewise.
73694         * tests/unictype/test-decdigit.h: Likewise.
73695         * tests/unictype/test-digit.h: Likewise.
73696         * tests/unictype/test-numeric.h: Likewise.
73697         * tests/unictype/test-pr_alphabetic.c: Likewise.
73698         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
73699         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
73700         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
73701         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
73702         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
73703         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
73704         * tests/unictype/test-pr_bidi_control.c: Likewise.
73705         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
73706         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
73707         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
73708         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
73709         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
73710         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
73711         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
73712         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
73713         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
73714         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
73715         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
73716         * tests/unictype/test-pr_combining.c: Likewise.
73717         * tests/unictype/test-pr_composite.c: Likewise.
73718         * tests/unictype/test-pr_currency_symbol.c: Likewise.
73719         * tests/unictype/test-pr_dash.c: Likewise.
73720         * tests/unictype/test-pr_decimal_digit.c: Likewise.
73721         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
73722         * tests/unictype/test-pr_deprecated.c: Likewise.
73723         * tests/unictype/test-pr_diacritic.c: Likewise.
73724         * tests/unictype/test-pr_extender.c: Likewise.
73725         * tests/unictype/test-pr_format_control.c: Likewise.
73726         * tests/unictype/test-pr_grapheme_base.c: Likewise.
73727         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
73728         * tests/unictype/test-pr_grapheme_link.c: Likewise.
73729         * tests/unictype/test-pr_hex_digit.c: Likewise.
73730         * tests/unictype/test-pr_hyphen.c: Likewise.
73731         * tests/unictype/test-pr_id_continue.c: Likewise.
73732         * tests/unictype/test-pr_id_start.c: Likewise.
73733         * tests/unictype/test-pr_ideographic.c: Likewise.
73734         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
73735         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
73736         * tests/unictype/test-pr_ignorable_control.c: Likewise.
73737         * tests/unictype/test-pr_iso_control.c: Likewise.
73738         * tests/unictype/test-pr_join_control.c: Likewise.
73739         * tests/unictype/test-pr_left_of_pair.c: Likewise.
73740         * tests/unictype/test-pr_line_separator.c: Likewise.
73741         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
73742         * tests/unictype/test-pr_lowercase.c: Likewise.
73743         * tests/unictype/test-pr_math.c: Likewise.
73744         * tests/unictype/test-pr_non_break.c: Likewise.
73745         * tests/unictype/test-pr_not_a_character.c: Likewise.
73746         * tests/unictype/test-pr_numeric.c: Likewise.
73747         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
73748         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
73749         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
73750         * tests/unictype/test-pr_other_id_continue.c: Likewise.
73751         * tests/unictype/test-pr_other_id_start.c: Likewise.
73752         * tests/unictype/test-pr_other_lowercase.c: Likewise.
73753         * tests/unictype/test-pr_other_math.c: Likewise.
73754         * tests/unictype/test-pr_other_uppercase.c: Likewise.
73755         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
73756         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
73757         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
73758         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
73759         * tests/unictype/test-pr_private_use.c: Likewise.
73760         * tests/unictype/test-pr_punctuation.c: Likewise.
73761         * tests/unictype/test-pr_quotation_mark.c: Likewise.
73762         * tests/unictype/test-pr_radical.c: Likewise.
73763         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
73764         * tests/unictype/test-pr_soft_dotted.c: Likewise.
73765         * tests/unictype/test-pr_space.c: Likewise.
73766         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
73767         * tests/unictype/test-pr_titlecase.c: Likewise.
73768         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
73769         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
73770         * tests/unictype/test-pr_uppercase.c: Likewise.
73771         * tests/unictype/test-pr_variation_selector.c: Likewise.
73772         * tests/unictype/test-pr_white_space.c: Likewise.
73773         * tests/unictype/test-pr_xid_continue.c: Likewise.
73774         * tests/unictype/test-pr_xid_start.c: Likewise.
73775         * tests/unictype/test-pr_zero_width.c: Likewise.
73776         * tests/unictype/test-sy_c_whitespace.c: Likewise.
73777         * tests/unictype/test-sy_java_whitespace.c: Likewise.
73779 2007-11-12  Bruno Haible  <bruno@clisp.org>
73781         Unicode character classification functions.
73782         * lib/unictype.h: New file.
73783         * modules/unictype/base: New file.
73784         * modules/unictype/category-L: New file.
73785         * modules/unictype/category-Lu: New file.
73786         * modules/unictype/category-Ll: New file.
73787         * modules/unictype/category-Lt: New file.
73788         * modules/unictype/category-Lm: New file.
73789         * modules/unictype/category-Lo: New file.
73790         * modules/unictype/category-M: New file.
73791         * modules/unictype/category-Mn: New file.
73792         * modules/unictype/category-Mc: New file.
73793         * modules/unictype/category-Me: New file.
73794         * modules/unictype/category-N: New file.
73795         * modules/unictype/category-Nd: New file.
73796         * modules/unictype/category-Nl: New file.
73797         * modules/unictype/category-No: New file.
73798         * modules/unictype/category-P: New file.
73799         * modules/unictype/category-Pc: New file.
73800         * modules/unictype/category-Pd: New file.
73801         * modules/unictype/category-Ps: New file.
73802         * modules/unictype/category-Pe: New file.
73803         * modules/unictype/category-Pi: New file.
73804         * modules/unictype/category-Pf: New file.
73805         * modules/unictype/category-Po: New file.
73806         * modules/unictype/category-S: New file.
73807         * modules/unictype/category-Sm: New file.
73808         * modules/unictype/category-Sc: New file.
73809         * modules/unictype/category-Sk: New file.
73810         * modules/unictype/category-So: New file.
73811         * modules/unictype/category-Z: New file.
73812         * modules/unictype/category-Zs: New file.
73813         * modules/unictype/category-Zl: New file.
73814         * modules/unictype/category-Zp: New file.
73815         * modules/unictype/category-C: New file.
73816         * modules/unictype/category-Cc: New file.
73817         * modules/unictype/category-Cf: New file.
73818         * modules/unictype/category-Cs: New file.
73819         * modules/unictype/category-Co: New file.
73820         * modules/unictype/category-Cn: New file.
73821         * modules/unictype/category-or: New file.
73822         * modules/unictype/category-of: New file.
73823         * modules/unictype/category-test: New file.
73824         * modules/unictype/category-test-withtable: New file.
73825         * modules/unictype/category-byname: New file.
73826         * modules/unictype/category-none: New file.
73827         * modules/unictype/category-and: New file.
73828         * modules/unictype/category-and-not: New file.
73829         * modules/unictype/category-name: New file.
73830         * modules/unictype/combining-class: New file.
73831         * modules/unictype/category-all: New file.
73832         * modules/unictype/bidicategory-all: New file.
73833         * modules/unictype/bidicategory-byname: New file.
73834         * modules/unictype/bidicategory-name: New file.
73835         * modules/unictype/bidicategory-of: New file.
73836         * modules/unictype/bidicategory-test: New file.
73837         * modules/unictype/decimal-digit: New file.
73838         * modules/unictype/digit: New file.
73839         * modules/unictype/numeric: New file.
73840         * modules/unictype/mirror: New file.
73841         * modules/unictype/property-white-space: New file.
73842         * modules/unictype/property-alphabetic: New file.
73843         * modules/unictype/property-other-alphabetic: New file.
73844         * modules/unictype/property-not-a-character: New file.
73845         * modules/unictype/property-default-ignorable-code-point: New file.
73846         * modules/unictype/property-other-default-ignorable-code-point: New
73847         file.
73848         * modules/unictype/property-deprecated: New file.
73849         * modules/unictype/property-logical-order-exception: New file.
73850         * modules/unictype/property-variation-selector: New file.
73851         * modules/unictype/property-private-use: New file.
73852         * modules/unictype/property-unassigned-code-value: New file.
73853         * modules/unictype/property-uppercase: New file.
73854         * modules/unictype/property-other-uppercase: New file.
73855         * modules/unictype/property-lowercase: New file.
73856         * modules/unictype/property-other-lowercase: New file.
73857         * modules/unictype/property-titlecase: New file.
73858         * modules/unictype/property-soft-dotted: New file.
73859         * modules/unictype/property-id-start: New file.
73860         * modules/unictype/property-other-id-start: New file.
73861         * modules/unictype/property-id-continue: New file.
73862         * modules/unictype/property-other-id-continue: New file.
73863         * modules/unictype/property-xid-start: New file.
73864         * modules/unictype/property-xid-continue: New file.
73865         * modules/unictype/property-pattern-white-space: New file.
73866         * modules/unictype/property-pattern-syntax: New file.
73867         * modules/unictype/property-join-control: New file.
73868         * modules/unictype/property-grapheme-base: New file.
73869         * modules/unictype/property-grapheme-extend: New file.
73870         * modules/unictype/property-other-grapheme-extend: New file.
73871         * modules/unictype/property-grapheme-link: New file.
73872         * modules/unictype/property-bidi-control: New file.
73873         * modules/unictype/property-bidi-left-to-right: New file.
73874         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
73875         * modules/unictype/property-bidi-arabic-right-to-left: New file.
73876         * modules/unictype/property-bidi-european-digit: New file.
73877         * modules/unictype/property-bidi-eur-num-separator: New file.
73878         * modules/unictype/property-bidi-eur-num-terminator: New file.
73879         * modules/unictype/property-bidi-arabic-digit: New file.
73880         * modules/unictype/property-bidi-common-separator: New file.
73881         * modules/unictype/property-bidi-block-separator: New file.
73882         * modules/unictype/property-bidi-segment-separator: New file.
73883         * modules/unictype/property-bidi-whitespace: New file.
73884         * modules/unictype/property-bidi-non-spacing-mark: New file.
73885         * modules/unictype/property-bidi-boundary-neutral: New file.
73886         * modules/unictype/property-bidi-pdf: New file.
73887         * modules/unictype/property-bidi-embedding-or-override: New file.
73888         * modules/unictype/property-bidi-other-neutral: New file.
73889         * modules/unictype/property-hex-digit: New file.
73890         * modules/unictype/property-ascii-hex-digit: New file.
73891         * modules/unictype/property-ideographic: New file.
73892         * modules/unictype/property-unified-ideograph: New file.
73893         * modules/unictype/property-radical: New file.
73894         * modules/unictype/property-ids-binary-operator: New file.
73895         * modules/unictype/property-ids-trinary-operator: New file.
73896         * modules/unictype/property-zero-width: New file.
73897         * modules/unictype/property-space: New file.
73898         * modules/unictype/property-non-break: New file.
73899         * modules/unictype/property-iso-control: New file.
73900         * modules/unictype/property-format-control: New file.
73901         * modules/unictype/property-dash: New file.
73902         * modules/unictype/property-hyphen: New file.
73903         * modules/unictype/property-punctuation: New file.
73904         * modules/unictype/property-line-separator: New file.
73905         * modules/unictype/property-paragraph-separator: New file.
73906         * modules/unictype/property-quotation-mark: New file.
73907         * modules/unictype/property-sentence-terminal: New file.
73908         * modules/unictype/property-terminal-punctuation: New file.
73909         * modules/unictype/property-currency-symbol: New file.
73910         * modules/unictype/property-math: New file.
73911         * modules/unictype/property-other-math: New file.
73912         * modules/unictype/property-paired-punctuation: New file.
73913         * modules/unictype/property-left-of-pair: New file.
73914         * modules/unictype/property-combining: New file.
73915         * modules/unictype/property-composite: New file.
73916         * modules/unictype/property-decimal-digit: New file.
73917         * modules/unictype/property-numeric: New file.
73918         * modules/unictype/property-diacritic: New file.
73919         * modules/unictype/property-extender: New file.
73920         * modules/unictype/property-ignorable-control: New file.
73921         * modules/unictype/property-test: New file.
73922         * modules/unictype/property-byname: New file.
73923         * modules/unictype/property-all: New file.
73924         * modules/unictype/scripts: New file.
73925         * modules/unictype/scripts-all: New file.
73926         * modules/unictype/block-of: New file.
73927         * modules/unictype/block-test: New file.
73928         * modules/unictype/block-list: New file.
73929         * modules/unictype/block-all: New file.
73930         * modules/unictype/syntax-c-whitespace: New file.
73931         * modules/unictype/syntax-java-whitespace: New file.
73932         * modules/unictype/syntax-c-ident: New file.
73933         * modules/unictype/syntax-java-ident: New file.
73934         * modules/unictype/ctype-alnum: New file.
73935         * modules/unictype/ctype-alpha: New file.
73936         * modules/unictype/ctype-cntrl: New file.
73937         * modules/unictype/ctype-digit: New file.
73938         * modules/unictype/ctype-graph: New file.
73939         * modules/unictype/ctype-lower: New file.
73940         * modules/unictype/ctype-print: New file.
73941         * modules/unictype/ctype-punct: New file.
73942         * modules/unictype/ctype-space: New file.
73943         * modules/unictype/ctype-upper: New file.
73944         * modules/unictype/ctype-xdigit: New file.
73945         * modules/unictype/ctype-blank: New file.
73946         * lib/unictype/bidi_byname.c: New file.
73947         * lib/unictype/bidi_name.c: New file.
73948         * lib/unictype/bidi_of.c: New file.
73949         * lib/unictype/bidi_test.c: New file.
73950         * lib/unictype/bitmap.h: New file.
73951         * lib/unictype/block_test.c: New file.
73952         * lib/unictype/blocks.c: New file.
73953         * lib/unictype/categ_C.c: New file.
73954         * lib/unictype/categ_Cc.c: New file.
73955         * lib/unictype/categ_Cf.c: New file.
73956         * lib/unictype/categ_Cn.c: New file.
73957         * lib/unictype/categ_Co.c: New file.
73958         * lib/unictype/categ_Cs.c: New file.
73959         * lib/unictype/categ_L.c: New file.
73960         * lib/unictype/categ_Ll.c: New file.
73961         * lib/unictype/categ_Lm.c: New file.
73962         * lib/unictype/categ_Lo.c: New file.
73963         * lib/unictype/categ_Lt.c: New file.
73964         * lib/unictype/categ_Lu.c: New file.
73965         * lib/unictype/categ_M.c: New file.
73966         * lib/unictype/categ_Mc.c: New file.
73967         * lib/unictype/categ_Me.c: New file.
73968         * lib/unictype/categ_Mn.c: New file.
73969         * lib/unictype/categ_N.c: New file.
73970         * lib/unictype/categ_Nd.c: New file.
73971         * lib/unictype/categ_Nl.c: New file.
73972         * lib/unictype/categ_No.c: New file.
73973         * lib/unictype/categ_P.c: New file.
73974         * lib/unictype/categ_Pc.c: New file.
73975         * lib/unictype/categ_Pd.c: New file.
73976         * lib/unictype/categ_Pe.c: New file.
73977         * lib/unictype/categ_Pf.c: New file.
73978         * lib/unictype/categ_Pi.c: New file.
73979         * lib/unictype/categ_Po.c: New file.
73980         * lib/unictype/categ_Ps.c: New file.
73981         * lib/unictype/categ_S.c: New file.
73982         * lib/unictype/categ_Sc.c: New file.
73983         * lib/unictype/categ_Sk.c: New file.
73984         * lib/unictype/categ_Sm.c: New file.
73985         * lib/unictype/categ_So.c: New file.
73986         * lib/unictype/categ_Z.c: New file.
73987         * lib/unictype/categ_Zl.c: New file.
73988         * lib/unictype/categ_Zp.c: New file.
73989         * lib/unictype/categ_Zs.c: New file.
73990         * lib/unictype/categ_and.c: New file.
73991         * lib/unictype/categ_and_not.c: New file.
73992         * lib/unictype/categ_byname.c: New file.
73993         * lib/unictype/categ_name.c: New file.
73994         * lib/unictype/categ_none.c: New file.
73995         * lib/unictype/categ_of.c: New file.
73996         * lib/unictype/categ_or.c: New file.
73997         * lib/unictype/categ_test.c: New file.
73998         * lib/unictype/combining.c: New file.
73999         * lib/unictype/ctype_alnum.c: New file.
74000         * lib/unictype/ctype_alpha.c: New file.
74001         * lib/unictype/ctype_blank.c: New file.
74002         * lib/unictype/ctype_cntrl.c: New file.
74003         * lib/unictype/ctype_digit.c: New file.
74004         * lib/unictype/ctype_graph.c: New file.
74005         * lib/unictype/ctype_lower.c: New file.
74006         * lib/unictype/ctype_print.c: New file.
74007         * lib/unictype/ctype_punct.c: New file.
74008         * lib/unictype/ctype_space.c: New file.
74009         * lib/unictype/ctype_upper.c: New file.
74010         * lib/unictype/ctype_xdigit.c: New file.
74011         * lib/unictype/decdigit.c: New file.
74012         * lib/unictype/digit.c: New file.
74013         * lib/unictype/identsyntaxmap.h: New file.
74014         * lib/unictype/mirror.c: New file.
74015         * lib/unictype/numeric.c: New file.
74016         * lib/unictype/pr_alphabetic.c: New file.
74017         * lib/unictype/pr_ascii_hex_digit.c: New file.
74018         * lib/unictype/pr_bidi_arabic_digit.c: New file.
74019         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
74020         * lib/unictype/pr_bidi_block_separator.c: New file.
74021         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
74022         * lib/unictype/pr_bidi_common_separator.c: New file.
74023         * lib/unictype/pr_bidi_control.c: New file.
74024         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
74025         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
74026         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
74027         * lib/unictype/pr_bidi_european_digit.c: New file.
74028         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
74029         * lib/unictype/pr_bidi_left_to_right.c: New file.
74030         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
74031         * lib/unictype/pr_bidi_other_neutral.c: New file.
74032         * lib/unictype/pr_bidi_pdf.c: New file.
74033         * lib/unictype/pr_bidi_segment_separator.c: New file.
74034         * lib/unictype/pr_bidi_whitespace.c: New file.
74035         * lib/unictype/pr_byname.c: New file.
74036         * lib/unictype/pr_byname.gperf: New file.
74037         * lib/unictype/pr_combining.c: New file.
74038         * lib/unictype/pr_composite.c: New file.
74039         * lib/unictype/pr_currency_symbol.c: New file.
74040         * lib/unictype/pr_dash.c: New file.
74041         * lib/unictype/pr_decimal_digit.c: New file.
74042         * lib/unictype/pr_default_ignorable_code_point.c: New file.
74043         * lib/unictype/pr_deprecated.c: New file.
74044         * lib/unictype/pr_diacritic.c: New file.
74045         * lib/unictype/pr_extender.c: New file.
74046         * lib/unictype/pr_format_control.c: New file.
74047         * lib/unictype/pr_grapheme_base.c: New file.
74048         * lib/unictype/pr_grapheme_extend.c: New file.
74049         * lib/unictype/pr_grapheme_link.c: New file.
74050         * lib/unictype/pr_hex_digit.c: New file.
74051         * lib/unictype/pr_hyphen.c: New file.
74052         * lib/unictype/pr_id_continue.c: New file.
74053         * lib/unictype/pr_id_start.c: New file.
74054         * lib/unictype/pr_ideographic.c: New file.
74055         * lib/unictype/pr_ids_binary_operator.c: New file.
74056         * lib/unictype/pr_ids_trinary_operator.c: New file.
74057         * lib/unictype/pr_ignorable_control.c: New file.
74058         * lib/unictype/pr_iso_control.c: New file.
74059         * lib/unictype/pr_join_control.c: New file.
74060         * lib/unictype/pr_left_of_pair.c: New file.
74061         * lib/unictype/pr_line_separator.c: New file.
74062         * lib/unictype/pr_logical_order_exception.c: New file.
74063         * lib/unictype/pr_lowercase.c: New file.
74064         * lib/unictype/pr_math.c: New file.
74065         * lib/unictype/pr_non_break.c: New file.
74066         * lib/unictype/pr_not_a_character.c: New file.
74067         * lib/unictype/pr_numeric.c: New file.
74068         * lib/unictype/pr_other_alphabetic.c: New file.
74069         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
74070         * lib/unictype/pr_other_grapheme_extend.c: New file.
74071         * lib/unictype/pr_other_id_continue.c: New file.
74072         * lib/unictype/pr_other_id_start.c: New file.
74073         * lib/unictype/pr_other_lowercase.c: New file.
74074         * lib/unictype/pr_other_math.c: New file.
74075         * lib/unictype/pr_other_uppercase.c: New file.
74076         * lib/unictype/pr_paired_punctuation.c: New file.
74077         * lib/unictype/pr_paragraph_separator.c: New file.
74078         * lib/unictype/pr_pattern_syntax.c: New file.
74079         * lib/unictype/pr_pattern_white_space.c: New file.
74080         * lib/unictype/pr_private_use.c: New file.
74081         * lib/unictype/pr_punctuation.c: New file.
74082         * lib/unictype/pr_quotation_mark.c: New file.
74083         * lib/unictype/pr_radical.c: New file.
74084         * lib/unictype/pr_sentence_terminal.c: New file.
74085         * lib/unictype/pr_soft_dotted.c: New file.
74086         * lib/unictype/pr_space.c: New file.
74087         * lib/unictype/pr_terminal_punctuation.c: New file.
74088         * lib/unictype/pr_test.c: New file.
74089         * lib/unictype/pr_titlecase.c: New file.
74090         * lib/unictype/pr_unassigned_code_value.c: New file.
74091         * lib/unictype/pr_unified_ideograph.c: New file.
74092         * lib/unictype/pr_uppercase.c: New file.
74093         * lib/unictype/pr_variation_selector.c: New file.
74094         * lib/unictype/pr_white_space.c: New file.
74095         * lib/unictype/pr_xid_continue.c: New file.
74096         * lib/unictype/pr_xid_start.c: New file.
74097         * lib/unictype/pr_zero_width.c: New file.
74098         * lib/unictype/scripts.c: New file.
74099         * lib/unictype/sy_c_ident.c: New file.
74100         * lib/unictype/sy_c_whitespace.c: New file.
74101         * lib/unictype/sy_java_ident.c: New file.
74102         * lib/unictype/sy_java_whitespace.c: New file.
74104         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
74105         Unicode 5.0.0.
74106         * lib/unictype/blocks.h: Likewise.
74107         * lib/unictype/categ_C.h: Likewise.
74108         * lib/unictype/categ_Cc.h: Likewise.
74109         * lib/unictype/categ_Cf.h: Likewise.
74110         * lib/unictype/categ_Cn.h: Likewise.
74111         * lib/unictype/categ_Co.h: Likewise.
74112         * lib/unictype/categ_Cs.h: Likewise.
74113         * lib/unictype/categ_L.h: Likewise.
74114         * lib/unictype/categ_Ll.h: Likewise.
74115         * lib/unictype/categ_Lm.h: Likewise.
74116         * lib/unictype/categ_Lo.h: Likewise.
74117         * lib/unictype/categ_Lt.h: Likewise.
74118         * lib/unictype/categ_Lu.h: Likewise.
74119         * lib/unictype/categ_M.h: Likewise.
74120         * lib/unictype/categ_Mc.h: Likewise.
74121         * lib/unictype/categ_Me.h: Likewise.
74122         * lib/unictype/categ_Mn.h: Likewise.
74123         * lib/unictype/categ_N.h: Likewise.
74124         * lib/unictype/categ_Nd.h: Likewise.
74125         * lib/unictype/categ_Nl.h: Likewise.
74126         * lib/unictype/categ_No.h: Likewise.
74127         * lib/unictype/categ_P.h: Likewise.
74128         * lib/unictype/categ_Pc.h: Likewise.
74129         * lib/unictype/categ_Pd.h: Likewise.
74130         * lib/unictype/categ_Pe.h: Likewise.
74131         * lib/unictype/categ_Pf.h: Likewise.
74132         * lib/unictype/categ_Pi.h: Likewise.
74133         * lib/unictype/categ_Po.h: Likewise.
74134         * lib/unictype/categ_Ps.h: Likewise.
74135         * lib/unictype/categ_S.h: Likewise.
74136         * lib/unictype/categ_Sc.h: Likewise.
74137         * lib/unictype/categ_Sk.h: Likewise.
74138         * lib/unictype/categ_Sm.h: Likewise.
74139         * lib/unictype/categ_So.h: Likewise.
74140         * lib/unictype/categ_Z.h: Likewise.
74141         * lib/unictype/categ_Zl.h: Likewise.
74142         * lib/unictype/categ_Zp.h: Likewise.
74143         * lib/unictype/categ_Zs.h: Likewise.
74144         * lib/unictype/categ_of.h: Likewise.
74145         * lib/unictype/combining.h: Likewise.
74146         * lib/unictype/ctype_alnum.h: Likewise.
74147         * lib/unictype/ctype_alpha.h: Likewise.
74148         * lib/unictype/ctype_blank.h: Likewise.
74149         * lib/unictype/ctype_cntrl.h: Likewise.
74150         * lib/unictype/ctype_digit.h: Likewise.
74151         * lib/unictype/ctype_graph.h: Likewise.
74152         * lib/unictype/ctype_lower.h: Likewise.
74153         * lib/unictype/ctype_print.h: Likewise.
74154         * lib/unictype/ctype_punct.h: Likewise.
74155         * lib/unictype/ctype_space.h: Likewise.
74156         * lib/unictype/ctype_upper.h: Likewise.
74157         * lib/unictype/ctype_xdigit.h: Likewise.
74158         * lib/unictype/decdigit.h: Likewise.
74159         * lib/unictype/digit.h: Likewise.
74160         * lib/unictype/mirror.h: Likewise.
74161         * lib/unictype/numeric.h: Likewise.
74162         * lib/unictype/pr_alphabetic.h: Likewise.
74163         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
74164         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
74165         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
74166         * lib/unictype/pr_bidi_block_separator.h: Likewise.
74167         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
74168         * lib/unictype/pr_bidi_common_separator.h: Likewise.
74169         * lib/unictype/pr_bidi_control.h: Likewise.
74170         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
74171         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
74172         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
74173         * lib/unictype/pr_bidi_european_digit.h: Likewise.
74174         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
74175         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
74176         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
74177         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
74178         * lib/unictype/pr_bidi_pdf.h: Likewise.
74179         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
74180         * lib/unictype/pr_bidi_whitespace.h: Likewise.
74181         * lib/unictype/pr_combining.h: Likewise.
74182         * lib/unictype/pr_composite.h: Likewise.
74183         * lib/unictype/pr_currency_symbol.h: Likewise.
74184         * lib/unictype/pr_dash.h: Likewise.
74185         * lib/unictype/pr_decimal_digit.h: Likewise.
74186         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
74187         * lib/unictype/pr_deprecated.h: Likewise.
74188         * lib/unictype/pr_diacritic.h: Likewise.
74189         * lib/unictype/pr_extender.h: Likewise.
74190         * lib/unictype/pr_format_control.h: Likewise.
74191         * lib/unictype/pr_grapheme_base.h: Likewise.
74192         * lib/unictype/pr_grapheme_extend.h: Likewise.
74193         * lib/unictype/pr_grapheme_link.h: Likewise.
74194         * lib/unictype/pr_hex_digit.h: Likewise.
74195         * lib/unictype/pr_hyphen.h: Likewise.
74196         * lib/unictype/pr_id_continue.h: Likewise.
74197         * lib/unictype/pr_id_start.h: Likewise.
74198         * lib/unictype/pr_ideographic.h: Likewise.
74199         * lib/unictype/pr_ids_binary_operator.h: Likewise.
74200         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
74201         * lib/unictype/pr_ignorable_control.h: Likewise.
74202         * lib/unictype/pr_iso_control.h: Likewise.
74203         * lib/unictype/pr_join_control.h: Likewise.
74204         * lib/unictype/pr_left_of_pair.h: Likewise.
74205         * lib/unictype/pr_line_separator.h: Likewise.
74206         * lib/unictype/pr_logical_order_exception.h: Likewise.
74207         * lib/unictype/pr_lowercase.h: Likewise.
74208         * lib/unictype/pr_math.h: Likewise.
74209         * lib/unictype/pr_non_break.h: Likewise.
74210         * lib/unictype/pr_not_a_character.h: Likewise.
74211         * lib/unictype/pr_numeric.h: Likewise.
74212         * lib/unictype/pr_other_alphabetic.h: Likewise.
74213         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
74214         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
74215         * lib/unictype/pr_other_id_continue.h: Likewise.
74216         * lib/unictype/pr_other_id_start.h: Likewise.
74217         * lib/unictype/pr_other_lowercase.h: Likewise.
74218         * lib/unictype/pr_other_math.h: Likewise.
74219         * lib/unictype/pr_other_uppercase.h: Likewise.
74220         * lib/unictype/pr_paired_punctuation.h: Likewise.
74221         * lib/unictype/pr_paragraph_separator.h: Likewise.
74222         * lib/unictype/pr_pattern_syntax.h: Likewise.
74223         * lib/unictype/pr_pattern_white_space.h: Likewise.
74224         * lib/unictype/pr_private_use.h: Likewise.
74225         * lib/unictype/pr_punctuation.h: Likewise.
74226         * lib/unictype/pr_quotation_mark.h: Likewise.
74227         * lib/unictype/pr_radical.h: Likewise.
74228         * lib/unictype/pr_sentence_terminal.h: Likewise.
74229         * lib/unictype/pr_soft_dotted.h: Likewise.
74230         * lib/unictype/pr_space.h: Likewise.
74231         * lib/unictype/pr_terminal_punctuation.h: Likewise.
74232         * lib/unictype/pr_titlecase.h: Likewise.
74233         * lib/unictype/pr_unassigned_code_value.h: Likewise.
74234         * lib/unictype/pr_unified_ideograph.h: Likewise.
74235         * lib/unictype/pr_uppercase.h: Likewise.
74236         * lib/unictype/pr_variation_selector.h: Likewise.
74237         * lib/unictype/pr_white_space.h: Likewise.
74238         * lib/unictype/pr_xid_continue.h: Likewise.
74239         * lib/unictype/pr_xid_start.h: Likewise.
74240         * lib/unictype/pr_zero_width.h: Likewise.
74241         * lib/unictype/scripts.h: Likewise.
74242         * lib/unictype/scripts_byname.gperf: Likewise.
74243         * lib/unictype/sy_c_ident.h: Likewise.
74244         * lib/unictype/sy_c_whitespace.h: Likewise.
74245         * lib/unictype/sy_java_ident.h: Likewise.
74246         * lib/unictype/sy_java_whitespace.h: Likewise.
74248         * lib/unictype/Makefile: New file.
74249         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
74250         glibc.
74251         * lib/unictype/3level.h: New file, copied from glibc.
74252         * lib/unictype/3levelbit.h: New file.
74254 2007-11-11  Bruno Haible  <bruno@clisp.org>
74256         * modules/gperf: New file.
74257         * modules/iconv_open (Depends-on): Add it.
74258         (Makefile.am): Remove the GPERF definition.
74260 2007-11-11  Bruno Haible  <bruno@clisp.org>
74262         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
74263         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
74265 2007-11-11  Bruno Haible  <bruno@clisp.org>
74267         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
74268         (usage): Remove function.
74270 2007-11-11  Bruno Haible  <bruno@clisp.org>
74272         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
74273         gl_FUNC_CEILF_LIBS.
74274         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
74275         gl_FUNC_CEIL_LIBS.
74276         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
74277         gl_FUNC_CEILL_LIBS.
74278         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
74279         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
74280         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
74282 2007-11-11  Bruno Haible  <bruno@clisp.org>
74284         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
74285         roundf were declared but do not exist on functions.
74286         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
74287         roundl were declared but do not exist on functions.
74288         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
74289         HAVE_FLOORL_AND_CEILL, respectively.
74290         Needed for Sun C on Solaris 10.
74292 2007-11-11  Bruno Haible  <bruno@clisp.org>
74294         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
74295         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
74296         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
74297         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
74298         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
74299         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
74300         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
74301         HAVE_DECL_ROUNDF.
74302         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
74303         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
74304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
74305         of HAVE_DECL_ROUND*.
74306         * modules/math (Makefile.am): Update.
74308 2007-11-10  Bruno Haible  <bruno@clisp.org>
74310         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
74311         ptrdiff_t as m4/intl.m4.
74313 2007-11-10  Jim Meyering  <meyering@redhat.com>
74315         Avoid link failure for the argmatch test.
74316         * tests/test-argmatch.c (usage): Define function to avoid a link
74317         failure: argmatch_die requires a usage function.
74319 2007-11-09  Bruno Haible  <bruno@clisp.org>
74321         * doc/functions/snprintf.texi: Mention BeOS deficiency.
74322         * doc/functions/vsnprintf.texi: Likewise.
74323         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
74324         with a size argument < 2.
74326 2007-11-09  Bruno Haible  <bruno@clisp.org>
74328         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
74329         buffer. Fixes an inefficiency introduced on 2007-11-03.
74331 2007-11-09  Bruno Haible  <bruno@clisp.org>
74333         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
74334         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
74336 2007-11-08  Jim Meyering  <meyering@redhat.com>
74338         Change cache variable name prefix "jm_" to "gl_" everywhere.
74339         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
74340         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
74341         * m4/uptime.m4: s/gl_/jm_/
74343 2007-11-07  Bruno Haible  <bruno@clisp.org>
74345         Update to GNU gettext 0.17.
74346         * m4/intl.m4: Update to GNU gettext 0.17.
74347         * m4/po.m4: Likewise.
74348         * modules/gettext (Files): Remove m4/ulonglong.m4.
74349         (configure.ac): Require gettext infrastructure from version 0.17.
74351 2007-11-06  Bruno Haible  <bruno@clisp.org>
74353         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
74354         symbolic values are not defined in a public header.
74355         * lib/freadable.c (freadable) [QNX]: Likewise.
74356         * lib/freadahead.c (freadahead) [QNX]: Likewise.
74357         * lib/freading.c (freading) [QNX]: Likewise.
74358         * lib/fseterr.c (fseterr) [QNX]: Likewise.
74359         * lib/fwritable.c (fwritable) [QNX]: Likewise.
74360         * lib/fwriting.c (fwriting) [QNX]: Likewise.
74361         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
74362         Reported by Alain Magloire.
74364         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
74366 2007-11-05  Bruno Haible  <bruno@clisp.org>
74368         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
74369         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
74370         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
74371         Reported by Eric Blake.
74373 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74374             Bruno Haible  <bruno@clisp.org>
74376         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
74377         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
74378         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
74379         (malloc): Undefine also before including <stdlib.h>.
74380         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
74381         Needed on OSF/1 4.0.
74383 2007-11-05  Jim Meyering  <meyering@redhat.com>
74385         git-version-gen: sync from coreutils.
74386         * build-aux/git-version-gen: Add comments.
74387         Change the first '-' to '.' in the snapshot version string,
74388         e.g., 6.9-377-08144 -> 6.9.377-08144
74389         Remove first parameter.
74390         Don't declare a version "-dirty" merely because a time
74391         stamp has changed.
74393 2007-11-04  Bruno Haible  <bruno@clisp.org>
74395         * lib/lock.h: Protect all macro definitions containing an 'if'
74396         statement through a "do { ... } while (0)".
74397         * lib/tls.h: Likewise.
74399 2007-11-04  Bruno Haible  <bruno@clisp.org>
74401         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
74403 2007-11-04  Bruno Haible  <bruno@clisp.org>
74405         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
74406         * modules/fprintf-posix (Depends-on): Add nocrash.
74407         * modules/snprintf-posix (Depends-on): Likewise.
74408         * modules/sprintf-posix (Depends-on): Likewise.
74409         * modules/vasnprintf-posix (Depends-on): Likewise.
74410         * modules/vasprintf-posix (Depends-on): Likewise.
74411         * modules/vfprintf-posix (Depends-on): Likewise.
74412         * modules/vsnprintf-posix (Depends-on): Likewise.
74413         * modules/vsprintf-posix (Depends-on): Likewise.
74414         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
74415         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
74416         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
74417         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
74418         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
74419         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
74420         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
74422 2007-11-04  Bruno Haible  <bruno@clisp.org>
74424         * modules/nocrash: New file.
74425         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
74426         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
74428 2007-11-04  Bruno Haible  <bruno@clisp.org>
74430         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
74431         precision handling.
74432         * tests/test-vasprintf-posix.c (test_function): Likewise.
74433         * tests/test-snprintf-posix.h (test_function): Likewise.
74434         * tests/test-sprintf-posix.h (test_function): Likewise.
74436         Fix *printf behaviour for large precisions on mingw and BeOS.
74437         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
74438         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
74439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
74440         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
74441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
74442         gl_PRINTF_PRECISION and test its result. Invoke
74443         gl_PREREQ_VASNPRINTF_PRECISION.
74444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
74445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
74446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
74447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
74448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
74449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
74451         * doc/functions/fprintf.texi: Update.
74452         * doc/functions/printf.texi: Update.
74453         * doc/functions/snprintf.texi: Update.
74454         * doc/functions/sprintf.texi: Update.
74455         * doc/functions/vfprintf.texi: Update.
74456         * doc/functions/vprintf.texi: Update.
74457         * doc/functions/vsnprintf.texi: Update.
74458         * doc/functions/vsprintf.texi: Update.
74460 2007-11-04  Bruno Haible  <bruno@clisp.org>
74462         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
74464 2007-11-04  Bruno Haible  <bruno@clisp.org>
74466         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
74467         Reported by Sylvain Beucler <beuc@gnu.org>.
74469 2007-11-03  Bruno Haible  <bruno@clisp.org>
74471         * tests/test-fprintf-posix2.sh: New file.
74472         * tests/test-fprintf-posix2.c: New file.
74473         * modules/fprintf-posix-tests (Files): Add them.
74474         (TESTS): Add test-fprintf-posix2.sh.
74475         (configure.ac): Check for getrlimit and setrlimit.
74476         (check_PROGRAMS): Add test-fprintf-posix2.
74478         * tests/test-printf-posix2.sh: New file.
74479         * tests/test-printf-posix2.c: New file.
74480         * modules/printf-posix-tests (Files): Add them.
74481         (TESTS): Add test-printf-posix2.sh.
74482         (configure.ac): Check for getrlimit and setrlimit.
74483         (check_PROGRAMS): Add test-printf-posix2.
74485         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
74486         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
74487         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
74488         (decode_double): New function, copied from decode_long_double.
74489         (scale10_round_decimal_decoded): New function, extracted from
74490         scale10_round_decimal_long_double.
74491         (scale10_round_decimal_long_double): Use it.
74492         (scale10_round_decimal_double): New function.
74493         (floorlog10): New function.
74494         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
74495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
74496         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
74497         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
74498         gl_PRINTF_ENOMEM and test its result. Invoke
74499         gl_PREREQ_VASNPRINTF_ENOMEM.
74500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
74501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
74502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
74503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
74504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
74505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
74507         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
74508         * modules/snprintf-posix (Depends-on): Likewise.
74509         * modules/sprintf-posix (Depends-on): Likewise.
74510         * modules/vasnprintf-posix (Depends-on): Likewise.
74511         * modules/vasprintf-posix (Depends-on): Likewise.
74512         * modules/vfprintf-posix (Depends-on): Likewise.
74513         * modules/vsnprintf-posix (Depends-on): Likewise.
74514         * modules/vsprintf-posix (Depends-on): Likewise.
74515         * doc/functions/fprintf.texi: Update.
74516         * doc/functions/printf.texi: Update.
74517         * doc/functions/snprintf.texi: Update.
74518         * doc/functions/sprintf.texi: Update.
74519         * doc/functions/vfprintf.texi: Update.
74520         * doc/functions/vprintf.texi: Update.
74521         * doc/functions/vsnprintf.texi: Update.
74522         * doc/functions/vsprintf.texi: Update.
74524 2007-11-03  Bruno Haible  <bruno@clisp.org>
74526         * modules/frexp-nolibm-tests: New file.
74528         * modules/frexp-nolibm: New file.
74529         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
74531 2007-11-03  Bruno Haible  <bruno@clisp.org>
74533         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
74534         value is C99 compliant.
74535         Needed for OSF/1 5.1.
74537 2007-11-03  Bruno Haible  <bruno@clisp.org>
74539         Fix out-of-memory handling of vasnprintf.
74540         * lib/printf-parse.c: Include <errno.h>.
74541         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
74542         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
74543         is already set.
74545 2007-11-02  Eric Blake  <ebb9@byu.net>
74547         Fix tests on cygwin.
74548         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
74550 2007-11-01  Bruno Haible  <bruno@clisp.org>
74552         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
74553         warning.
74554         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
74555         needed for POSIX compatibility.
74557 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74559         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
74560         for compatibility with GNU.
74562 2007-11-01  Bruno Haible  <bruno@clisp.org>
74564         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
74565         (putenv): Renamed from rpl_putenv. Change argument type from
74566         'const char *' to 'char *'.
74567         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
74568         of defining putenv in config.h, just set REPLACE_PUTENV.
74569         * modules/putenv (Depends-on): Add stdlib.
74570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74571         (Include): Use <stdlib.h>.
74572         * lib/stdlib.in.h (putenv): New declaration.
74573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
74574         REPLACE_PUTENV.
74575         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
74576         REPLACE_PUTENV.
74577         Needed for MacOS X 10.5.0.
74578         Reported by Peter O'Gorman <peter@pogma.com>.
74580 2007-11-01  Jim Meyering  <meyering@redhat.com>
74582         Treat an empty date string exactly like "0".
74583         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
74584         if the remaining date string (to be parsed) is empty, use "0".
74585         Reported by Mischa Molhoek and discussed in this thread:
74586         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
74588 2007-10-31  Bruno Haible  <bruno@clisp.org>
74590         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
74591         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
74592         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
74593         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
74594         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
74595         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
74597 2007-10-31  Bruno Haible  <bruno@clisp.org>
74599         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
74600         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
74601         (AC_TYPE_LONG_LONG_INT): Use it.
74602         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
74603         it as well.
74604         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
74605         to m4/longlong.m4.
74606         * modules/stdint (Files): Remove m4/ulonglong.m4.
74607         * modules/strtoull (Files): Use m4/longlong.m4 instead of
74608         m4/ulonglong.m4.
74609         * modules/strtoumax (Files): Likewise.
74611 2007-10-30  Bruno Haible  <bruno@clisp.org>
74613         * modules/xvasprintf-posix: New file.
74614         Suggested by Eric Blake.
74616 2007-10-30  Bruno Haible  <bruno@clisp.org>
74618         * modules/xprintf-posix-tests: New file.
74619         * tests/test-xprintf-posix.sh: New file.
74620         * tests/test-xprintf-posix.c: New file.
74621         * tests/test-xfprintf-posix.c: New file.
74623         * modules/xprintf-posix: New file.
74625 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74627         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
74628         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
74629         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
74631 2007-10-29  Bruno Haible  <bruno@clisp.org>
74633         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
74634         contain the special marker '_cv_'.
74635         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
74636         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
74637         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
74638         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
74639         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
74640         Reported by Ralf Wildenhues.
74642 2007-10-29  Bruno Haible  <bruno@clisp.org>
74644         * gnulib-tool (func_import): When --lgpl is not specified, set
74645         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
74646         GPLv3.
74647         Reported by Simon Josefsson.
74649 2007-10-28  Bruno Haible  <bruno@clisp.org>
74651         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
74652         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
74653         HAVE_DECL_ISFINITE.
74654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
74655         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
74656         HAVE_DECL_ISFINITE.
74658 2007-10-28  Bruno Haible  <bruno@clisp.org>
74660         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
74661         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
74663 2007-10-28  Bruno Haible  <bruno@clisp.org>
74665         Fix link errors with Sun C 5.0 on Solaris 10.
74666         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
74667         function is declared but not present in the compiler's libm.
74668         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
74669         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
74670         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
74671         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
74672         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
74673         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
74674         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
74675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
74676         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
74677         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
74678         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
74679         HAVE_DECL_FLOORL.
74681 2007-10-28  Bruno Haible  <bruno@clisp.org>
74683         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
74684         gl_FUNC_FLOORL. Cache the result.
74685         (gl_FUNC_FLOORL): Use it.
74686         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
74687         gl_FUNC_CEILL. Cache the result.
74688         (gl_FUNC_CEILL): Use it.
74690         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
74691         gl_FUNC_FLOOR. Cache the result.
74692         (gl_FUNC_FLOOR): Use it.
74693         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
74694         gl_FUNC_CEIL. Cache the result.
74695         (gl_FUNC_CEIL): Use it.
74697         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
74698         gl_FUNC_FLOORF. Cache the result.
74699         (gl_FUNC_FLOORF): Use it.
74700         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
74701         gl_FUNC_CEILF. Cache the result.
74702         (gl_FUNC_CEILF): Use it.
74704 2007-10-28  Bruno Haible  <bruno@clisp.org>
74706         * gnulib-tool: Allow specifying the LGPL version number through
74707         --lgpl=2 or --lgpl=3.
74708         (func_usage): Document --lgpl with argument.
74709         Handle --lgpl=... arguments.
74710         (func_import): Recognize also gl_LGPL calls with an argument. When
74711         --lgpl=2 is used and the module's license is just LGPL, report an
74712         error. Set sed_transform_lib_file according to the lgpl variable. In
74713         the generated files, use --lgpl or gl_LGPL invocations with argument,
74714         if necessary.
74715         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
74716         an LGPv2+ license.
74717         * doc/gnulib-tool.texi (Modified imports): Update explanation of
74718         gl_LGPL macro.
74720 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74721             Bruno Haible  <bruno@clisp.org>
74723         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
74724         (u16_uctomb_aux): Likewise.
74725         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
74726         !HAVE_INLINE.
74727         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
74729 2007-10-28  Bruno Haible  <bruno@clisp.org>
74731         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
74732         Invoke AM_GETTEXT_OPTION if it exists.
74733         * modules/vasprintf: Likewise.
74734         * modules/verror: Likewise.
74735         * modules/xprintf: Likewise.
74736         * modules/xvasprintf: Likewise.
74738 2007-10-27  Ben Pfaff  <blp@gnu.org>
74740         * lib/math.in.h: Define isfinite macro and prototypes for
74741         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
74742         implementations.
74743         * m4/math_h.m4: New substitutions for isfinite module.
74744         * lib/isfinite.c: New file.
74745         * m4/isfinite.m4: New file.
74746         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
74747         * modules/isfinite: New file.
74748         * modules/isfinite-tests: New file.
74749         * tests/tests-isfinite.c: New file.
74750         * doc/functions/isfinite.texi: Mention isfinite module.
74751         * MODULES.html.sh: Mention new module.
74753 2007-10-27  Ben Pfaff  <blp@gnu.org>
74755         Ralf Wildenhues reported that Tru64 4.0D declares the round
74756         functions but does not have definitions.
74757         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
74758         cannot be found in any library, set the output variable to
74759         "missing" instead of "".
74760         * m4/round.m4: Also use our substitute if we cannot find round in
74761         any library, even if it is declared.
74762         * m4/roundf.m4: Likewise for roundf.
74763         * m4/roundl.m4: Likewise for roundl.
74764         * lib/math.in.h: Undefine roundf, round, roundl before defining
74765         their replacements, to allow for hypothetical systems where these
74766         may be defined as macros but not available in libraries.
74768 2007-10-27  Bruno Haible  <bruno@clisp.org>
74770         * doc/gnulib.texi: Invoke @firstparagraphindent.
74771         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
74772         changes in gnulib.
74773         (Source changes): New section.
74775 2007-10-26  Bruno Haible  <bruno@clisp.org>
74777         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
74778         borrowed from autoconf.
74780 2007-10-26  Bruno Haible  <bruno@clisp.org>
74782         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
74783         strerror returned the empty string. Needed on HP-UX 11.00.
74785 2007-10-24  Micah Cowan  <micah@cowan.name>
74787         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
74788         * build-aux/bootstrap: Remove support for now-unnecessary option,
74789         --cvs-user, and envvars CVS_USER, CVS_RSH.
74791 2007-10-24  Jim Meyering  <meyering@redhat.com>
74793         Avoid diagnostics from sha1sum when there is no cached checksum.
74794         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
74795         if the po.s1 file hasn't been created yet.
74797         * build-aux/bootstrap: Sync from coreutils:
74798         2007-10-24  Jim Meyering  <meyering@redhat.com>
74799         Get gnulib from the git repository, not from an obsolete cvs one.
74800         * build-aux/bootstrap: Suggestion from Micah Cowan.
74801         2007-10-04  Jim Meyering  <jim@meyering.net>
74802         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
74803         (update_po_files): Work also when there are no .po files in po/.
74805 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74807         * README: Append ".git" to git and cg examples.
74808         Problem reported by Benoit Sigoure.
74810 2007-10-23  Micah Cowan  <micah@cowan.name>
74812         * users.txt: Add wget.
74814 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74816         Fix linking of some unistdio tests on FreeBSD.
74817         * modules/unistdio/u16-vsnprintf-tests
74818         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
74819         * modules/unistdio/u16-vsprintf-tests
74820         (test_u16_vsnprintf1_LDADD): Likewise.
74821         * modules/unistdio/u32-vsnprintf-tests
74822         (test_u32_vsnprintf1_LDADD): Likewise.
74823         * modules/unistdio/u32-vsprintf-tests
74824         (test_u32_vsprintf1_LDADD): Likewise.
74825         * modules/unistdio/u8-vsnprintf-tests
74826         (test_u8_vsnprintf1_LDADD): Likewise.
74827         * modules/unistdio/u8-vsprintf-tests
74828         (test_u8_vsprintf1_LDADD): Likewise.
74829         * modules/unistdio/ulc-vsnprintf-tests
74830         (test_ulc_vsnprintf1_LDADD): Likewise.
74831         * modules/unistdio/ulc-vsprintf-tests
74832         (test_ulc_vsprintf1_LDADD): Likewise.
74834         Fix linking of some uniconv tests on FreeBSD.
74835         * modules/uniconv/u16-conv-from-enc-tests
74836         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
74837         * modules/uniconv/u16-conv-to-enc-tests
74838         (test_u16_conv_to_enc_LDADD): Likewise.
74839         * modules/uniconv/u16-strconv-from-enc-tests
74840         (test_u16_strconv_from_enc_LDADD): Likewise.
74841         * modules/uniconv/u16-strconv-to-enc-tests
74842         (test_u16_strconv_to_enc_LDADD): Likewise.
74843         * modules/uniconv/u32-conv-from-enc-tests
74844         (test_u32_conv_from_enc_LDADD): Likewise.
74845         * modules/uniconv/u32-conv-to-enc-tests
74846         (test_u32_conv_to_enc_LDADD): Likewise.
74847         * modules/uniconv/u32-strconv-from-enc-tests
74848         (test_u32_strconv_from_enc_LDADD): Likewise.
74849         * modules/uniconv/u32-strconv-to-enc-tests
74850         (test_u32_strconv_to_enc_LDADD): Likewise.
74851         * modules/uniconv/u8-conv-from-enc-tests
74852         (test_u8_conv_from_enc_LDADD): Likewise.
74853         * modules/uniconv/u8-conv-to-enc-tests
74854         (test_u8_conv_to_enc_LDADD): Likewise.
74855         * modules/uniconv/u8-strconv-from-enc-tests
74856         (test_u8_strconv_from_enc_LDADD): Likewise.
74857         * modules/uniconv/u8-strconv-to-enc-tests
74858         (test_u8_strconv_to_enc_LDADD): Likewise.
74860 2007-10-22  Bruno Haible  <bruno@clisp.org>
74862         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
74863         size.
74865 2007-10-22  Eric Blake  <ebb9@byu.net>
74867         Tweak x*printf documentation.
74868         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
74869         variable name and comments.
74870         Suggested by Bruno Haible.
74872 2007-10-22  Bruno Haible  <bruno@clisp.org>
74874         * lib/acl.c (copy_acl): Fix file name in comment.
74876 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74878         Fix Tru64 problem with stdbool.h.
74879         * lib/stdbool.in.h (false, true):
74880         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
74881         Don't declare as an enum in this situation; it runs afoul of Tru64.
74882         Problem reported by Steven M. Schweda in
74883         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
74885 2007-10-22  Eric Blake  <ebb9@byu.net>
74887         Also wrap vf?printf.
74888         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
74889         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
74890         (xvprintf, xvfprintf): New functions.
74892 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74894         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
74895         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
74897         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
74898         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
74900 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74902         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
74903         by Bruno Haible.
74905 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74907         * lib/getloadavg.c
74908         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
74909         Undef `sys' after including sys/table.h, for Tru64 4.0D.
74911         * tests/test-i-ring.c: Work for C89.
74913 2007-10-22  Bruno Haible  <bruno@clisp.org>
74915         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
74916         -1u, in preprocessor expression, so that we don't test for the bug
74917         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
74918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
74920 2007-10-22  Eric Blake  <ebb9@byu.net>
74922         * tests/test-yesno.sh: Silence stderr during test.
74924 2007-10-22  Simon Josefsson  <simon@josefsson.org>
74926         * modules/crypto/gc-camellia: New file.
74928         * m4/gc-camellia.m4: New file.
74930         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
74932         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
74934 2007-10-22  Simon Josefsson  <simon@josefsson.org>
74936         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
74937         --help to stdout.  Reported by sms@antinode.org (Steven
74938         M. Schweda).
74940 2007-10-22  Simon Josefsson  <simon@josefsson.org>
74942         * users.txt: Fix link to libksba.
74944 2007-10-21  Ben Pfaff  <blp@gnu.org>
74946         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
74947         round.c roundf implementation that depends on floorf and ceilf to
74948         be tested unconditionally.
74950 2007-10-21  Ben Pfaff  <blp@gnu.org>
74952         * m4/check-libm-func.m4: Removed.
74953         * m4/check-math-lib.m4: New file.
74954         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
74955         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
74956         definition and lack of AC_LIBOBJ([roundf]).
74957         * m4/roundl.m4: Ditto, and similarly for roundl.
74958         * modules/round: Reference new m4 file.
74959         * modules/roundf: Ditto.
74960         * modules/roundl: Ditto.
74961         * tests/test-round2.c (main): Use ROUND instead of round.
74962         Bug report from Bruno Haible.
74964 2007-10-21  Bruno Haible  <bruno@clisp.org>
74966         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
74967         context.
74969 2007-10-21  Bruno Haible  <bruno@clisp.org>
74971         * tests/test-wcwidth.c (main): Allow negative result for some control
74972         characters.
74974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
74975         Needed on OSF/1 5.1.
74977 2007-10-21  Bruno Haible  <bruno@clisp.org>
74979         * tests/test-floorf1.c: Include isnanf.h.
74980         (main): Use isnanf() instead of isnan().
74981         * tests/test-ceilf1.c: Include isnanf.h.
74982         (main): Use isnanf() instead of isnan().
74983         * tests/test-truncf1.c: Include isnanf.h.
74984         (main): Use isnanf() instead of isnan().
74985         * tests/test-roundf1.c: Include isnanf.h.
74986         (main): Use isnanf() instead of isnan().
74988 2007-10-21  Eric Blake  <ebb9@byu.net>
74990         * users.txt: Update URL for m4.
74992 2007-10-21  Bruno Haible  <bruno@clisp.org>
74994         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
74996 2007-10-21  Bruno Haible  <bruno@clisp.org>
74998         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
74999         Git's management files if the CVS files are not present.
75001 2007-10-20  Bruno Haible  <bruno@clisp.org>
75003         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
75004         gcc-3.4.x.
75006 2007-10-20  Ben Pfaff  <blp@gnu.org>
75008         * lib/math.in.h: Declare round, roundf, roundl if we are providing
75009         implementations.
75010         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
75011         * lib/round.c: New file.
75012         * lib/roundf.c: New file.
75013         * lib/roundl.c: New file.
75014         * m4/round.m4: New file.
75015         * m4/roundf.m4: New file.
75016         * m4/roundl.m4: New file.
75017         * m4/check-libm-func-m4: New file.
75018         * modules/math: Replace round, roundf, roundl related @VARS@ in
75019         math.in.h.
75020         * modules/round: New file.
75021         * modules/round-tests: New file.
75022         * modules/roundf: New file.
75023         * modules/roundf-tests: New file.
75024         * modules/roundl: New file.
75025         * modules/roundl-tests: New file.
75026         * tests/test-round1.c: New file.
75027         * tests/test-round2.c: New file.
75028         * tests/test-roundf1.c: New file.
75029         * tests/test-roundf2.c: New file.
75030         * tests/test-roundl.c: New file.
75031         * doc/functions/round.texi: Mention round module.
75032         * doc/functions/roundf.texi: Mention roundf module.
75033         * doc/functions/roundl.texi: Mention roundl module.
75034         * MODULES.html.sh: Mention new modules.
75035         Thanks to Bruno Haible for suggestions.
75037 2007-10-20  Jim Meyering  <meyering@redhat.com>
75039         * lib/xprintf.c: Include <config.h> unconditionally.
75041         Change xprintf's license to GPL.
75042         * modules/xprintf (License): s/LGPL/GPL/, since this module
75043         depends on modules (exit and exitfail) which are GPL.
75044         Suggestion from Bruno Haible.
75046         xprintf fixes.
75047         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
75048         Use a clearer diagnostic.
75049         Patch from Bruno Haible.
75051 2007-10-20  Bruno Haible  <bruno@clisp.org>
75053         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
75054         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
75055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75057 2007-10-20  Bruno Haible  <bruno@clisp.org>
75059         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
75060         precision in the comparison result > x - 1 or similar.
75061         * tests/test-ceilf2.c (correct_result_p): Likewise.
75062         * tests/test-truncf2.c (correct_result_p): Likewise.
75063         * tests/test-trunc2.c (correct_result_p): Likewise.
75064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75066 2007-10-20  Bruno Haible  <bruno@clisp.org>
75068         * modules/ceil: New file.
75069         * m4/ceil.m4: New file.
75070         * doc/functions/ceil.texi: Mention the 'ceil' module.
75072 2007-10-20  Bruno Haible  <bruno@clisp.org>
75074         * modules/floor: New file.
75075         * m4/floor.m4: New file.
75076         * doc/functions/floor.texi: Mention the 'floor' module.
75078 2007-10-20  Bruno Haible  <bruno@clisp.org>
75080         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
75081         of %a.
75082         * modules/floorf-tests (Depends-on): Likewise.
75083         * modules/truncf-tests (Depends-on): Likewise.
75084         * modules/trunc-tests (Depends-on): Likewise.
75085         Reported by Ben Pfaff.
75087 2007-10-19  Jim Meyering  <meyering@redhat.com>
75089         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
75090         Don't bother testing specific errno values.  Just test ferror.
75092         New module: xprintf
75093         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
75095 2007-10-19  Bruno Haible  <bruno@clisp.org>
75097         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
75098         syntax.
75099         * modules/javaexec (Makefile.am): Likewise.
75100         * modules/relocatable-prog (Makefile.am): Likewise.
75101         Suggested by Jim Meyering.
75103 2007-10-18  Bruno Haible  <bruno@clisp.org>
75105         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
75106         Reported by Jim Meyering.
75108 2007-10-18  Eric Blake  <ebb9@byu.net>
75110         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
75112 2007-10-18  Bruno Haible  <bruno@clisp.org>
75114         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
75115         the format string into writable memory. Needed in Fortify conditions.
75117 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
75118             Bruno Haible  <bruno@clisp.org>
75120         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
75121         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
75122         * modules/trim (Depends-on): Add mbchar.
75123         (configure.ac): Add gl_FUNC_MBRTOWC.
75124         (Makefile.am): Augment lib_SOURCES.
75126 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75128         Modify glob.c to use fstatat and dirfd, to simplify it.
75129         Suggested by Eric Blake.
75130         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
75131         Don't include <stdbool.h>; not used.
75132         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
75133         (link_exists_p): Simplify implementation, since we can now assume
75134         dirfd and fstatat.
75135         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
75137 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75139         * gnulib-tool (func_get_dependencies): Fix sed script to
75140         match only tests.
75142 2007-10-17  Bruno Haible  <bruno@clisp.org>
75144         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
75145         allow locale names without encoding suffix.
75146         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
75147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
75149 2007-10-16  Bruno Haible  <bruno@clisp.org>
75151         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
75152         * lib/getgroups.c (getgroups): Likewise.
75153         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
75155 2007-10-16  Bruno Haible  <bruno@clisp.org>
75157         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
75158         * modules/malloc-posix (License): Likewise.
75159         * modules/realloc-posix (License): Likewise.
75160         * modules/calloc-posix (License): Likewise.
75161         * modules/intprops (License): Change from GPL to LGPL, with
75162         Paul Eggert's approval.
75164 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75166         Merge glibc changes into lib/glob.c.
75168         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
75169         2007-10-15 04:59:03 UTC.  Here are the changes:
75171         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
75173         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
75175         * lib/glob.c: Add some branch prediction throughout.
75177         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
75179         [BZ #5103]
75180         * lib/glob.c (glob): Recognize patterns starting \/.
75182         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
75184         [BZ #3996]
75185         * lib/glob.c (attribute_hidden): Define if not defined.
75186         (glob): Unescape dirname, filename or username when needed and not
75187         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
75188         is NULL.  Handle unescaped [ in pattern without closing ].
75189         Don't pass GLOB_CHECK down to recursive glob for directories.
75190         (__glob_pattern_type): New function.
75191         (__glob_pattern_p): Implement using __glob_pattern_type.
75192         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
75193         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
75194         Remove unreachable code.
75196         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
75198         * lib/glob.c (glob_in_dir): Add some comments and asserts to
75199         explain why there are no leaks.
75201         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
75203         [BZ #3253]
75204         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
75205         time, rather allocate increasingly bigger arrays of pointers, if
75206         possible with alloca, if too large with malloc.
75208 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75210         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
75211         Problem reported by H.Merijn Brand in
75212         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
75213         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
75214         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75216 2007-10-15  Bruno Haible  <bruno@clisp.org>
75218         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
75219         with explicit rpl_ prefix.
75220         * lib/fopen.c (fopen): Likewise.
75221         * lib/freopen.c (freopen): Likewise.
75222         * lib/iconv.c (iconv): Likewise.
75223         * lib/iconv_close.c (iconv_close): Likewise.
75225 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75227         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
75229 2007-10-15  Bruno Haible  <bruno@clisp.org>
75231         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
75232         <stddef.h> instead of <stdlib.h> since we only need NULL.
75233         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75235 2007-10-15  Bruno Haible  <bruno@clisp.org>
75237         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
75238         Replace paragraph talking about LIBOBJS.
75239         Reported by Colin Watson <cjwatson@debian.org>.
75241 2007-10-15  Bruno Haible  <bruno@clisp.org>
75243         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
75244         <stdlib.h> before using NULL.
75246 2007-10-15  Simon Josefsson  <simon@josefsson.org>
75248         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
75249         Reported by Albert Chin <china@thewrittenword.com>.
75251 2007-10-14  Bruno Haible  <bruno@clisp.org>
75253         * modules/iconv_open-utf-tests: New file.
75254         * tests/test-iconv-utf.c: New file.
75256         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
75257         * modules/iconv_open-utf: New file.
75258         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
75259         (iconv, iconv_close): New declarations.
75260         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
75261         be defined.
75262         (iconv_open): Add special handling of conversion between UTF-8 and
75263         UTF-{16,32}{BE,LE}.
75264         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
75265         * lib/iconv_close.c: New file.
75266         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
75267         gl_FUNC_ICONV_OPEN.
75268         (gl_FUNC_ICONV_OPEN): Use it.
75269         (gl_FUNC_ICONV_OPEN_UTF): New macro.
75270         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
75271         and REPLACE_ICONV_UTF.
75272         * modules/iconv_open (Depends-on): Add c-strcase.
75273         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
75274         ICONV_CONST.
75275         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
75277 2007-10-13  Albert Chin  <china@thewrittenword.com>
75278             Bruno Haible  <bruno@clisp.org>
75280         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
75281         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
75283 2007-10-13  Bruno Haible  <bruno@clisp.org>
75285         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
75286         defined, use the ISO C99 inline semantics.
75287         * lib/argp.h (ARGP_EI): Likewise.
75289 2007-10-13  Bruno Haible  <bruno@clisp.org>
75291         Handle 'inline' change in gcc 4.3.0.
75292         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
75293         argp_fmtstream_write, argp_fmtstream_set_lmargin,
75294         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
75295         argp_fmtstream_point): Disable 'extern' declaration if the function
75296         definition is going to be provided inline.
75297         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
75298         semantics, not the ISO C99 inline semantics.
75299         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
75300         'extern' declaration if the function definition is going to be provided
75301         inline.
75302         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
75303         the GNU C inline semantics, not the ISO C99 inline semantics. With
75304         GCC 4.2, avoid a warning.
75306 2007-10-13  Bruno Haible  <bruno@clisp.org>
75308         * lib/freading.h (freading): Enable the use of __freading for
75309         glibc >= 2.7.
75310         * lib/freading.c (freading): Likewise.
75312 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75314         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
75315         "warning: C99 inline functions are not supported; using GNU89".
75317 2007-10-12  Bruno Haible  <bruno@clisp.org>
75319         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
75320         of 2.
75321         * tests/test-ceilf2.c: New file.
75322         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
75324         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
75325         * modules/ceilf-tests: Update.
75327 2007-10-12  Bruno Haible  <bruno@clisp.org>
75329         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
75330         of 2.
75331         * tests/test-floorf2.c: New file.
75332         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
75334         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
75335         * modules/floorf-tests: Update.
75337 2007-10-12  Bruno Haible  <bruno@clisp.org>
75339         * tests/test-trunc2.c: New file.
75340         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
75342         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
75343         * modules/trunc-tests: Update.
75345 2007-10-12  Bruno Haible  <bruno@clisp.org>
75347         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
75348         of 2.
75349         * tests/test-truncf2.c: New file.
75350         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
75352         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
75353         * modules/truncf-tests: Update.
75355 2007-10-11  Eric Blake  <ebb9@byu.net>
75357         Don't claim strerror is broken on Interix.
75358         * doc/functions/strerror.texi (strerror): Known broken systems are
75359         now Solaris 8, and not Interix.
75360         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
75361         Interix on cross-compile.
75362         Reported by Martin Koeppe in
75363         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
75365 2007-10-11  Bruno Haible  <bruno@clisp.org>
75367         * modules/i-ring-tests: New file.
75368         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
75369         instead of assert.
75371 2007-10-11  Bruno Haible  <bruno@clisp.org>
75373         * modules/filenamecat-tests: New file.
75374         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
75375         * lib/filenamecat.c: Remove test code.
75377 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75379         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
75381         * lib/strerror.c: Include <string.h> always, to test interface,
75382         and to remove the need for the dummy.
75383         Include intprops.h to compute width instead of doing it ourselves
75384         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
75385         (strerror): Define it to return NULL if there's no system strerror.
75386         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
75387         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
75388         ancient pre-strerror Unix systems well any more.  Saying "unknown
75389         system error" is enough.
75390         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
75391         simpler strerror.c implementation.
75392         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
75393         Simplify the tests to reflect the simpler strerror implementation.
75394         * modules/strerror (Depends-on): Add intprops.
75396 2007-10-09  Eric Blake  <ebb9@byu.net>
75398         Silence test-fpending.
75399         * modules/fpending-tests (Files): Add wrapper script.
75400         * tests/test-fpending.sh: New file.
75402 2007-10-09  Bruno Haible  <bruno@clisp.org>
75404         * MODULES.html.sh (func_module): Don't create a hyperlink for
75405         function names like 'printf_frexp'.
75406         (Misc): Add crc, memxor.
75407         (Characteristics of floating types): New section.
75408         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
75409         isnanf-nolibm, signbit, trunc, truncf, truncl.
75410         (Enhancements for ISO C 99 functions): New subsection Input/output.
75411         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
75412         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
75413         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
75414         (Compatibility checks for POSIX:2001 functions): Add clock-time.
75415         (Enhancements for POSIX:2001 functions): Add chdir-long.
75416         (File system functions): Add areadlink, chdir-safer, read-file.
75417         Remove cycle-check.
75418         (File system as inode set): New section.
75419         (Date and time): Add gethrxtime.
75420         (Multithreading): Add openmp.
75421         (Internationalization functions): Add localename.
75422         (Unicode string functions): Add unistr/u*-mbsnlen.
75423         (Support for maintaining and releasing projects): Add git-version-gen.
75424         (Lone files): Remove directories.
75426 2007-10-08  Ben Pfaff  <blp@gnu.org>
75428         * lib/xmalloca.h: Fix typo in comment.
75430 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75432         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
75433         when avoiding problems with integer overflow.  Use a portable test
75434         instead.
75436 2007-10-08  Simon Josefsson  <simon@josefsson.org>
75438         * modules/dummy (License): Change to LGPLv2+.
75439         * modules/float (License): Likewise
75440         * modules/realloc (License): Likewise
75441         * modules/stdlib (License): Likewise
75443 2007-10-07  Bruno Haible  <bruno@clisp.org>
75445         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
75446         * floor.c (TWO_MANT_DIG): Likewise.
75447         * ceil.c (TWO_MANT_DIG): Likewise.
75448         Reported by Ben Pfaff.
75450 2007-10-07  Bruno Haible  <bruno@clisp.org>
75452         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
75453         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
75454         * lib/frexp.c (FUNC): Likewise.
75455         * lib/printf-frexp.h (printf_frexp): Likewise.
75456         * lib/printf-frexpl.h (printf_frexpl): Likewise.
75457         * lib/printf-frexp.c (FUNC): Likewise.
75458         Suggested by Jim Meyering.
75460 2007-10-07  Jim Meyering  <meyering@redhat.com>
75462         Make xnanosleep's integer overflow test more robust.
75463         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
75464         so that gcc-4.3.0 doesn't optimize away this test for overflow.
75466 2007-10-07  Bruno Haible  <bruno@clisp.org>
75468         * NEWS: Mention the license change.
75470         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
75471         abbreviations in the modules files.
75473         Change copyright notice from GPLv2+ to GPLv3+.
75474         * README: Change copyright notice.
75475         * MODULES.html.sh: Likewise.
75476         * build-aux/bootstrap.conf: Likewise.
75477         * build-aux/config.libpath: Likewise.
75478         * build-aux/csharpcomp.sh.in: Likewise.
75479         * build-aux/csharpexec.sh.in: Likewise.
75480         * build-aux/install-reloc: Likewise.
75481         * build-aux/javacomp.sh.in: Likewise.
75482         * build-aux/javaexec.sh.in: Likewise.
75483         * build-aux/ldd.sh.in: Likewise.
75484         * build-aux/reloc-ldflags: Likewise.
75485         * build-aux/relocatable.sh.in: Likewise.
75486         * build-aux/x-to-1.in: Likewise.
75487         * check-module: Likewise.
75488         * config/srclistvars.sh: Likewise.
75489         * gnulib-tool: Likewise.
75490         * lib/acl-internal.h: Likewise.
75491         * lib/acl.c: Likewise.
75492         * lib/acl.h: Likewise.
75493         * lib/acl_entries.c: Likewise.
75494         * lib/areadlink-with-size.c: Likewise.
75495         * lib/areadlink.c: Likewise.
75496         * lib/areadlink.h: Likewise.
75497         * lib/argmatch.c: Likewise.
75498         * lib/argmatch.h: Likewise.
75499         * lib/argp-ba.c: Likewise.
75500         * lib/argp-eexst.c: Likewise.
75501         * lib/argp-fmtstream.c: Likewise.
75502         * lib/argp-fmtstream.h: Likewise.
75503         * lib/argp-fs-xinl.c: Likewise.
75504         * lib/argp-help.c: Likewise.
75505         * lib/argp-namefrob.h: Likewise.
75506         * lib/argp-parse.c: Likewise.
75507         * lib/argp-pin.c: Likewise.
75508         * lib/argp-pv.c: Likewise.
75509         * lib/argp-pvh.c: Likewise.
75510         * lib/argp-xinl.c: Likewise.
75511         * lib/argp.h: Likewise.
75512         * lib/at-func.c: Likewise.
75513         * lib/atanl.c: Likewise.
75514         * lib/backupfile.c: Likewise.
75515         * lib/backupfile.h: Likewise.
75516         * lib/basename.c: Likewise.
75517         * lib/binary-io.h: Likewise.
75518         * lib/byteswap.in.h: Likewise.
75519         * lib/c-stack.c: Likewise.
75520         * lib/c-stack.h: Likewise.
75521         * lib/c-strcasestr.c: Likewise.
75522         * lib/c-strcasestr.h: Likewise.
75523         * lib/c-strstr.c: Likewise.
75524         * lib/c-strstr.h: Likewise.
75525         * lib/c-strtod.c: Likewise.
75526         * lib/calloc.c: Likewise.
75527         * lib/canon-host.c: Likewise.
75528         * lib/canon-host.h: Likewise.
75529         * lib/canonicalize-lgpl.c: Likewise.
75530         * lib/canonicalize.c: Likewise.
75531         * lib/canonicalize.h: Likewise.
75532         * lib/ceil.c: Likewise.
75533         * lib/ceilf.c: Likewise.
75534         * lib/ceill.c: Likewise.
75535         * lib/chdir-long.c: Likewise.
75536         * lib/chdir-long.h: Likewise.
75537         * lib/chdir-safer.c: Likewise.
75538         * lib/chdir-safer.h: Likewise.
75539         * lib/chown.c: Likewise.
75540         * lib/classpath.c: Likewise.
75541         * lib/classpath.h: Likewise.
75542         * lib/clean-temp.c: Likewise.
75543         * lib/clean-temp.h: Likewise.
75544         * lib/cloexec.c: Likewise.
75545         * lib/close-stream.c: Likewise.
75546         * lib/closein.c: Likewise.
75547         * lib/closein.h: Likewise.
75548         * lib/closeout.c: Likewise.
75549         * lib/closeout.h: Likewise.
75550         * lib/concat-filename.c: Likewise.
75551         * lib/copy-file.c: Likewise.
75552         * lib/copy-file.h: Likewise.
75553         * lib/count-one-bits.h: Likewise.
75554         * lib/crc.c: Likewise.
75555         * lib/crc.h: Likewise.
75556         * lib/creat-safer.c: Likewise.
75557         * lib/csharpcomp.c: Likewise.
75558         * lib/csharpcomp.h: Likewise.
75559         * lib/csharpexec.c: Likewise.
75560         * lib/csharpexec.h: Likewise.
75561         * lib/cycle-check.c: Likewise.
75562         * lib/cycle-check.h: Likewise.
75563         * lib/diacrit.c: Likewise.
75564         * lib/diacrit.h: Likewise.
75565         * lib/diffseq.h: Likewise.
75566         * lib/dirchownmod.c: Likewise.
75567         * lib/dirent.in.h: Likewise.
75568         * lib/dirfd.c: Likewise.
75569         * lib/dirfd.h: Likewise.
75570         * lib/dirname.c: Likewise.
75571         * lib/dirname.h: Likewise.
75572         * lib/dummy.c: Likewise.
75573         * lib/dup-safer.c: Likewise.
75574         * lib/dup2.c: Likewise.
75575         * lib/eealloc.h: Likewise.
75576         * lib/error.c: Likewise.
75577         * lib/error.h: Likewise.
75578         * lib/euidaccess.c: Likewise.
75579         * lib/exclude.c: Likewise.
75580         * lib/exclude.h: Likewise.
75581         * lib/execute.c: Likewise.
75582         * lib/execute.h: Likewise.
75583         * lib/exitfail.c: Likewise.
75584         * lib/exitfail.h: Likewise.
75585         * lib/expl.c: Likewise.
75586         * lib/fatal-signal.c: Likewise.
75587         * lib/fatal-signal.h: Likewise.
75588         * lib/fbufmode.c: Likewise.
75589         * lib/fbufmode.h: Likewise.
75590         * lib/fchdir.c: Likewise.
75591         * lib/fchmodat.c: Likewise.
75592         * lib/fchownat.c: Likewise.
75593         * lib/fcntl--.h: Likewise.
75594         * lib/fcntl-safer.h: Likewise.
75595         * lib/fcntl.in.h: Likewise.
75596         * lib/fd-safer.c: Likewise.
75597         * lib/fflush.c: Likewise.
75598         * lib/file-has-acl.c: Likewise.
75599         * lib/file-set.c: Likewise.
75600         * lib/file-type.c: Likewise.
75601         * lib/file-type.h: Likewise.
75602         * lib/fileblocks.c: Likewise.
75603         * lib/filemode.c: Likewise.
75604         * lib/filemode.h: Likewise.
75605         * lib/filename.h: Likewise.
75606         * lib/filenamecat.c: Likewise.
75607         * lib/filenamecat.h: Likewise.
75608         * lib/findprog.c: Likewise.
75609         * lib/findprog.h: Likewise.
75610         * lib/float.in.h: Likewise.
75611         * lib/floor.c: Likewise.
75612         * lib/floorf.c: Likewise.
75613         * lib/floorl.c: Likewise.
75614         * lib/fopen-safer.c: Likewise.
75615         * lib/fopen.c: Likewise.
75616         * lib/fpending.c: Likewise.
75617         * lib/fpending.h: Likewise.
75618         * lib/fprintf.c: Likewise.
75619         * lib/fprintftime.h: Likewise.
75620         * lib/fpucw.h: Likewise.
75621         * lib/fpurge.c: Likewise.
75622         * lib/fpurge.h: Likewise.
75623         * lib/freadable.c: Likewise.
75624         * lib/freadable.h: Likewise.
75625         * lib/freadahead.c: Likewise.
75626         * lib/freadahead.h: Likewise.
75627         * lib/freading.c: Likewise.
75628         * lib/freading.h: Likewise.
75629         * lib/free.c: Likewise.
75630         * lib/freopen.c: Likewise.
75631         * lib/frexp.c: Likewise.
75632         * lib/frexpl.c: Likewise.
75633         * lib/fseek.c: Likewise.
75634         * lib/fseterr.c: Likewise.
75635         * lib/fseterr.h: Likewise.
75636         * lib/fstatat.c: Likewise.
75637         * lib/fstrcmp.c: Likewise.
75638         * lib/fstrcmp.h: Likewise.
75639         * lib/fsusage.c: Likewise.
75640         * lib/fsusage.h: Likewise.
75641         * lib/ftell.c: Likewise.
75642         * lib/ftello.c: Likewise.
75643         * lib/fts-cycle.c: Likewise.
75644         * lib/fts.c: Likewise.
75645         * lib/fts_.h: Likewise.
75646         * lib/full-read.c: Likewise.
75647         * lib/full-read.h: Likewise.
75648         * lib/full-write.c: Likewise.
75649         * lib/full-write.h: Likewise.
75650         * lib/fwritable.c: Likewise.
75651         * lib/fwritable.h: Likewise.
75652         * lib/fwriteerror.c: Likewise.
75653         * lib/fwriteerror.h: Likewise.
75654         * lib/fwriting.c: Likewise.
75655         * lib/fwriting.h: Likewise.
75656         * lib/gcd.c: Likewise.
75657         * lib/gcd.h: Likewise.
75658         * lib/getcwd.c: Likewise.
75659         * lib/getdate.h: Likewise.
75660         * lib/getdate.y: Likewise.
75661         * lib/getdomainname.c: Likewise.
75662         * lib/getdomainname.h: Likewise.
75663         * lib/getgroups.c: Likewise.
75664         * lib/gethostname.c: Likewise.
75665         * lib/gethrxtime.c: Likewise.
75666         * lib/gethrxtime.h: Likewise.
75667         * lib/getloadavg.c: Likewise.
75668         * lib/getndelim2.c: Likewise.
75669         * lib/getndelim2.h: Likewise.
75670         * lib/getnline.c: Likewise.
75671         * lib/getnline.h: Likewise.
75672         * lib/getopt.c: Likewise.
75673         * lib/getopt.in.h: Likewise.
75674         * lib/getopt1.c: Likewise.
75675         * lib/getopt_int.h: Likewise.
75676         * lib/getpagesize.h: Likewise.
75677         * lib/getsubopt.c: Likewise.
75678         * lib/gettime.c: Likewise.
75679         * lib/getugroups.c: Likewise.
75680         * lib/getugroups.h: Likewise.
75681         * lib/getusershell.c: Likewise.
75682         * lib/gl_anyavltree_list1.h: Likewise.
75683         * lib/gl_anyavltree_list2.h: Likewise.
75684         * lib/gl_anyhash_list1.h: Likewise.
75685         * lib/gl_anyhash_list2.h: Likewise.
75686         * lib/gl_anylinked_list1.h: Likewise.
75687         * lib/gl_anylinked_list2.h: Likewise.
75688         * lib/gl_anyrbtree_list1.h: Likewise.
75689         * lib/gl_anyrbtree_list2.h: Likewise.
75690         * lib/gl_anytree_list1.h: Likewise.
75691         * lib/gl_anytree_list2.h: Likewise.
75692         * lib/gl_anytree_oset.h: Likewise.
75693         * lib/gl_anytreehash_list1.h: Likewise.
75694         * lib/gl_anytreehash_list2.h: Likewise.
75695         * lib/gl_array_list.c: Likewise.
75696         * lib/gl_array_list.h: Likewise.
75697         * lib/gl_array_oset.c: Likewise.
75698         * lib/gl_array_oset.h: Likewise.
75699         * lib/gl_avltree_list.c: Likewise.
75700         * lib/gl_avltree_list.h: Likewise.
75701         * lib/gl_avltree_oset.c: Likewise.
75702         * lib/gl_avltree_oset.h: Likewise.
75703         * lib/gl_avltreehash_list.c: Likewise.
75704         * lib/gl_avltreehash_list.h: Likewise.
75705         * lib/gl_carray_list.c: Likewise.
75706         * lib/gl_carray_list.h: Likewise.
75707         * lib/gl_linked_list.c: Likewise.
75708         * lib/gl_linked_list.h: Likewise.
75709         * lib/gl_linkedhash_list.c: Likewise.
75710         * lib/gl_linkedhash_list.h: Likewise.
75711         * lib/gl_list.c: Likewise.
75712         * lib/gl_list.h: Likewise.
75713         * lib/gl_oset.c: Likewise.
75714         * lib/gl_oset.h: Likewise.
75715         * lib/gl_rbtree_list.c: Likewise.
75716         * lib/gl_rbtree_list.h: Likewise.
75717         * lib/gl_rbtree_oset.c: Likewise.
75718         * lib/gl_rbtree_oset.h: Likewise.
75719         * lib/gl_rbtreehash_list.c: Likewise.
75720         * lib/gl_rbtreehash_list.h: Likewise.
75721         * lib/gl_sublist.c: Likewise.
75722         * lib/gl_sublist.h: Likewise.
75723         * lib/group-member.c: Likewise.
75724         * lib/group-member.h: Likewise.
75725         * lib/hard-locale.c: Likewise.
75726         * lib/hard-locale.h: Likewise.
75727         * lib/hash-pjw.c: Likewise.
75728         * lib/hash-pjw.h: Likewise.
75729         * lib/hash-triple.c: Likewise.
75730         * lib/hash.c: Likewise.
75731         * lib/hash.h: Likewise.
75732         * lib/human.c: Likewise.
75733         * lib/human.h: Likewise.
75734         * lib/i-ring.c: Likewise.
75735         * lib/i-ring.h: Likewise.
75736         * lib/idcache.c: Likewise.
75737         * lib/imaxabs.c: Likewise.
75738         * lib/imaxdiv.c: Likewise.
75739         * lib/inet_pton.c: Likewise.
75740         * lib/inet_pton.h: Likewise.
75741         * lib/intprops.h: Likewise.
75742         * lib/inttostr.c: Likewise.
75743         * lib/inttostr.h: Likewise.
75744         * lib/inttypes.in.h: Likewise.
75745         * lib/isapipe.c: Likewise.
75746         * lib/isdir.c: Likewise.
75747         * lib/isnan.c: Likewise.
75748         * lib/isnan.h: Likewise.
75749         * lib/isnanf.c: Likewise.
75750         * lib/isnanf.h: Likewise.
75751         * lib/isnanl-nolibm.h: Likewise.
75752         * lib/isnanl.c: Likewise.
75753         * lib/isnanl.h: Likewise.
75754         * lib/javacomp.c: Likewise.
75755         * lib/javacomp.h: Likewise.
75756         * lib/javaexec.c: Likewise.
75757         * lib/javaexec.h: Likewise.
75758         * lib/javaversion.c: Likewise.
75759         * lib/javaversion.h: Likewise.
75760         * lib/javaversion.java: Likewise.
75761         * lib/lbrkprop.h: Likewise.
75762         * lib/lchmod.h: Likewise.
75763         * lib/lchown.c: Likewise.
75764         * lib/ldexpl.c: Likewise.
75765         * lib/linebreak.c: Likewise.
75766         * lib/linebreak.h: Likewise.
75767         * lib/linebuffer.c: Likewise.
75768         * lib/linebuffer.h: Likewise.
75769         * lib/locale.in.h: Likewise.
75770         * lib/logl.c: Likewise.
75771         * lib/long-options.c: Likewise.
75772         * lib/long-options.h: Likewise.
75773         * lib/lstat.c: Likewise.
75774         * lib/lstat.h: Likewise.
75775         * lib/math.in.h: Likewise.
75776         * lib/mbchar.c: Likewise.
75777         * lib/mbchar.h: Likewise.
75778         * lib/mbfile.h: Likewise.
75779         * lib/mbiter.h: Likewise.
75780         * lib/mbscasecmp.c: Likewise.
75781         * lib/mbscasestr.c: Likewise.
75782         * lib/mbschr.c: Likewise.
75783         * lib/mbscspn.c: Likewise.
75784         * lib/mbslen.c: Likewise.
75785         * lib/mbsncasecmp.c: Likewise.
75786         * lib/mbsnlen.c: Likewise.
75787         * lib/mbspbrk.c: Likewise.
75788         * lib/mbspcasecmp.c: Likewise.
75789         * lib/mbsrchr.c: Likewise.
75790         * lib/mbssep.c: Likewise.
75791         * lib/mbsspn.c: Likewise.
75792         * lib/mbsstr.c: Likewise.
75793         * lib/mbstok_r.c: Likewise.
75794         * lib/mbswidth.c: Likewise.
75795         * lib/mbswidth.h: Likewise.
75796         * lib/mbuiter.h: Likewise.
75797         * lib/memcasecmp.c: Likewise.
75798         * lib/memcasecmp.h: Likewise.
75799         * lib/memchr.c: Likewise.
75800         * lib/memcmp.c: Likewise.
75801         * lib/memcoll.c: Likewise.
75802         * lib/memcoll.h: Likewise.
75803         * lib/memcpy.c: Likewise.
75804         * lib/memrchr.c: Likewise.
75805         * lib/mkancesdirs.c: Likewise.
75806         * lib/mkdir-p.c: Likewise.
75807         * lib/mkdir-p.h: Likewise.
75808         * lib/mkdir.c: Likewise.
75809         * lib/mkdirat.c: Likewise.
75810         * lib/mkdtemp.c: Likewise.
75811         * lib/mkstemp-safer.c: Likewise.
75812         * lib/mkstemp.c: Likewise.
75813         * lib/modechange.c: Likewise.
75814         * lib/modechange.h: Likewise.
75815         * lib/mountlist.c: Likewise.
75816         * lib/mountlist.h: Likewise.
75817         * lib/mpsort.c: Likewise.
75818         * lib/nanosleep.c: Likewise.
75819         * lib/obstack.c: Likewise.
75820         * lib/obstack.h: Likewise.
75821         * lib/open-safer.c: Likewise.
75822         * lib/open.c: Likewise.
75823         * lib/openat-die.c: Likewise.
75824         * lib/openat-priv.h: Likewise.
75825         * lib/openat-proc.c: Likewise.
75826         * lib/openat.c: Likewise.
75827         * lib/openat.h: Likewise.
75828         * lib/pagealign_alloc.c: Likewise.
75829         * lib/pagealign_alloc.h: Likewise.
75830         * lib/physmem.c: Likewise.
75831         * lib/physmem.h: Likewise.
75832         * lib/pipe-safer.c: Likewise.
75833         * lib/pipe.c: Likewise.
75834         * lib/pipe.h: Likewise.
75835         * lib/posixtm.c: Likewise.
75836         * lib/posixtm.h: Likewise.
75837         * lib/posixver.c: Likewise.
75838         * lib/printf-frexp.c: Likewise.
75839         * lib/printf-frexp.h: Likewise.
75840         * lib/printf-frexpl.c: Likewise.
75841         * lib/printf-frexpl.h: Likewise.
75842         * lib/printf.c: Likewise.
75843         * lib/progname.c: Likewise.
75844         * lib/progname.h: Likewise.
75845         * lib/progreloc.c: Likewise.
75846         * lib/putenv.c: Likewise.
75847         * lib/quote.c: Likewise.
75848         * lib/quote.h: Likewise.
75849         * lib/quotearg.c: Likewise.
75850         * lib/quotearg.h: Likewise.
75851         * lib/raise.c: Likewise.
75852         * lib/readline.c: Likewise.
75853         * lib/readline.h: Likewise.
75854         * lib/readlink.c: Likewise.
75855         * lib/readtokens.c: Likewise.
75856         * lib/readtokens.h: Likewise.
75857         * lib/readtokens0.c: Likewise.
75858         * lib/readtokens0.h: Likewise.
75859         * lib/readutmp.c: Likewise.
75860         * lib/readutmp.h: Likewise.
75861         * lib/realloc.c: Likewise.
75862         * lib/relocwrapper.c: Likewise.
75863         * lib/rename-dest-slash.c: Likewise.
75864         * lib/rename.c: Likewise.
75865         * lib/rmdir.c: Likewise.
75866         * lib/rpmatch.c: Likewise.
75867         * lib/safe-read.c: Likewise.
75868         * lib/safe-read.h: Likewise.
75869         * lib/safe-write.c: Likewise.
75870         * lib/safe-write.h: Likewise.
75871         * lib/same-inode.h: Likewise.
75872         * lib/same.c: Likewise.
75873         * lib/same.h: Likewise.
75874         * lib/save-cwd.c: Likewise.
75875         * lib/save-cwd.h: Likewise.
75876         * lib/savedir.c: Likewise.
75877         * lib/savedir.h: Likewise.
75878         * lib/savewd.c: Likewise.
75879         * lib/savewd.h: Likewise.
75880         * lib/search.in.h: Likewise.
75881         * lib/setenv.c: Likewise.
75882         * lib/setenv.h: Likewise.
75883         * lib/settime.c: Likewise.
75884         * lib/sh-quote.c: Likewise.
75885         * lib/sh-quote.h: Likewise.
75886         * lib/sig2str.c: Likewise.
75887         * lib/sig2str.h: Likewise.
75888         * lib/signal.in.h: Likewise.
75889         * lib/signbitd.c: Likewise.
75890         * lib/signbitf.c: Likewise.
75891         * lib/signbitl.c: Likewise.
75892         * lib/sigprocmask.c: Likewise.
75893         * lib/sincosl.c: Likewise.
75894         * lib/sleep.c: Likewise.
75895         * lib/sprintf.c: Likewise.
75896         * lib/sqrtl.c: Likewise.
75897         * lib/stat-time.h: Likewise.
75898         * lib/stdio--.h: Likewise.
75899         * lib/stdio-safer.h: Likewise.
75900         * lib/stdlib--.h: Likewise.
75901         * lib/stdlib-safer.h: Likewise.
75902         * lib/stdlib.in.h: Likewise.
75903         * lib/stpcpy.c: Likewise.
75904         * lib/stpncpy.c: Likewise.
75905         * lib/strchrnul.c: Likewise.
75906         * lib/strcspn.c: Likewise.
75907         * lib/strerror.c: Likewise.
75908         * lib/strftime.c: Likewise.
75909         * lib/strftime.h: Likewise.
75910         * lib/striconveh.c: Likewise.
75911         * lib/striconveh.h: Likewise.
75912         * lib/striconveha.c: Likewise.
75913         * lib/striconveha.h: Likewise.
75914         * lib/stripslash.c: Likewise.
75915         * lib/strnlen1.c: Likewise.
75916         * lib/strnlen1.h: Likewise.
75917         * lib/strtod.c: Likewise.
75918         * lib/strtoimax.c: Likewise.
75919         * lib/strtok_r.c: Likewise.
75920         * lib/strtol.c: Likewise.
75921         * lib/strtoll.c: Likewise.
75922         * lib/strtoul.c: Likewise.
75923         * lib/strtoull.c: Likewise.
75924         * lib/sysexits.in.h: Likewise.
75925         * lib/tempname.c: Likewise.
75926         * lib/tempname.h: Likewise.
75927         * lib/timespec.h: Likewise.
75928         * lib/tls.c: Likewise.
75929         * lib/tls.h: Likewise.
75930         * lib/tmpdir.c: Likewise.
75931         * lib/tmpdir.h: Likewise.
75932         * lib/tmpfile-safer.c: Likewise.
75933         * lib/tmpfile.c: Likewise.
75934         * lib/trigl.c: Likewise.
75935         * lib/trigl.h: Likewise.
75936         * lib/trim.c: Likewise.
75937         * lib/trim.h: Likewise.
75938         * lib/trunc.c: Likewise.
75939         * lib/truncf.c: Likewise.
75940         * lib/truncl.c: Likewise.
75941         * lib/tsearch.c: Likewise.
75942         * lib/unicodeio.c: Likewise.
75943         * lib/unicodeio.h: Likewise.
75944         * lib/unistd--.h: Likewise.
75945         * lib/unistd-safer.h: Likewise.
75946         * lib/unistdio/ulc-fprintf.c: Likewise.
75947         * lib/unistdio/ulc-vfprintf.c: Likewise.
75948         * lib/unlinkdir.c: Likewise.
75949         * lib/unlinkdir.h: Likewise.
75950         * lib/unlocked-io.h: Likewise.
75951         * lib/unsetenv.c: Likewise.
75952         * lib/userspec.c: Likewise.
75953         * lib/utime.c: Likewise.
75954         * lib/utimecmp.c: Likewise.
75955         * lib/utimecmp.h: Likewise.
75956         * lib/utimens.c: Likewise.
75957         * lib/verify.h: Likewise.
75958         * lib/verror.c: Likewise.
75959         * lib/verror.h: Likewise.
75960         * lib/version-etc-fsf.c: Likewise.
75961         * lib/version-etc.c: Likewise.
75962         * lib/version-etc.h: Likewise.
75963         * lib/vfprintf.c: Likewise.
75964         * lib/vprintf.c: Likewise.
75965         * lib/vsprintf.c: Likewise.
75966         * lib/w32spawn.h: Likewise.
75967         * lib/wait-process.c: Likewise.
75968         * lib/wait-process.h: Likewise.
75969         * lib/wcwidth.c: Likewise.
75970         * lib/write-any-file.c: Likewise.
75971         * lib/xalloc-die.c: Likewise.
75972         * lib/xalloc.h: Likewise.
75973         * lib/xasprintf.c: Likewise.
75974         * lib/xgetcwd.c: Likewise.
75975         * lib/xgetcwd.h: Likewise.
75976         * lib/xgetdomainname.c: Likewise.
75977         * lib/xgetdomainname.h: Likewise.
75978         * lib/xgethostname.c: Likewise.
75979         * lib/xmalloc.c: Likewise.
75980         * lib/xmalloca.c: Likewise.
75981         * lib/xmalloca.h: Likewise.
75982         * lib/xmemcoll.c: Likewise.
75983         * lib/xnanosleep.c: Likewise.
75984         * lib/xreadlink.c: Likewise.
75985         * lib/xreadlink.h: Likewise.
75986         * lib/xsetenv.c: Likewise.
75987         * lib/xsetenv.h: Likewise.
75988         * lib/xstriconv.c: Likewise.
75989         * lib/xstriconv.h: Likewise.
75990         * lib/xstrndup.c: Likewise.
75991         * lib/xstrndup.h: Likewise.
75992         * lib/xstrtod.c: Likewise.
75993         * lib/xstrtod.h: Likewise.
75994         * lib/xstrtol-error.c: Likewise.
75995         * lib/xstrtol.c: Likewise.
75996         * lib/xstrtol.h: Likewise.
75997         * lib/xtime.h: Likewise.
75998         * lib/xvasprintf.c: Likewise.
75999         * lib/xvasprintf.h: Likewise.
76000         * lib/yesno.c: Likewise.
76001         * lib/yesno.h: Likewise.
76002         * posix-modules: Likewise.
76003         * tests/test-alloca-opt.c: Likewise.
76004         * tests/test-arcfour.c: Likewise.
76005         * tests/test-arctwo.c: Likewise.
76006         * tests/test-argmatch.c: Likewise.
76007         * tests/test-argp-2.sh: Likewise.
76008         * tests/test-argp.c: Likewise.
76009         * tests/test-arpa_inet.c: Likewise.
76010         * tests/test-array_list.c: Likewise.
76011         * tests/test-array_oset.c: Likewise.
76012         * tests/test-atexit.c: Likewise.
76013         * tests/test-avltree_list.c: Likewise.
76014         * tests/test-avltree_oset.c: Likewise.
76015         * tests/test-avltreehash_list.c: Likewise.
76016         * tests/test-base64.c: Likewise.
76017         * tests/test-binary-io.c: Likewise.
76018         * tests/test-byteswap.c: Likewise.
76019         * tests/test-c-ctype.c: Likewise.
76020         * tests/test-c-strcasecmp.c: Likewise.
76021         * tests/test-c-strcasestr.c: Likewise.
76022         * tests/test-c-strncasecmp.c: Likewise.
76023         * tests/test-c-strstr.c: Likewise.
76024         * tests/test-canonicalize-lgpl.c: Likewise.
76025         * tests/test-canonicalize.c: Likewise.
76026         * tests/test-carray_list.c: Likewise.
76027         * tests/test-ceilf.c: Likewise.
76028         * tests/test-ceill.c: Likewise.
76029         * tests/test-count-one-bits.c: Likewise.
76030         * tests/test-crc.c: Likewise.
76031         * tests/test-dirname.c: Likewise.
76032         * tests/test-fbufmode.c: Likewise.
76033         * tests/test-fcntl.c: Likewise.
76034         * tests/test-fflush.c: Likewise.
76035         * tests/test-floorf.c: Likewise.
76036         * tests/test-floorl.c: Likewise.
76037         * tests/test-fopen.c: Likewise.
76038         * tests/test-fprintf-posix.c: Likewise.
76039         * tests/test-fprintf-posix.h: Likewise.
76040         * tests/test-fpurge.c: Likewise.
76041         * tests/test-freadable.c: Likewise.
76042         * tests/test-freadahead.c: Likewise.
76043         * tests/test-freading.c: Likewise.
76044         * tests/test-freopen.c: Likewise.
76045         * tests/test-frexp.c: Likewise.
76046         * tests/test-frexpl.c: Likewise.
76047         * tests/test-fseek.c: Likewise.
76048         * tests/test-fseeko.c: Likewise.
76049         * tests/test-fseterr.c: Likewise.
76050         * tests/test-fstrcmp.c: Likewise.
76051         * tests/test-ftell.c: Likewise.
76052         * tests/test-ftello.c: Likewise.
76053         * tests/test-fwritable.c: Likewise.
76054         * tests/test-fwriting.c: Likewise.
76055         * tests/test-getaddrinfo.c: Likewise.
76056         * tests/test-getpass.c: Likewise.
76057         * tests/test-gettimeofday.c: Likewise.
76058         * tests/test-hmac-md5.c: Likewise.
76059         * tests/test-hmac-sha1.c: Likewise.
76060         * tests/test-iconv.c: Likewise.
76061         * tests/test-iconvme.c: Likewise.
76062         * tests/test-inttypes.c: Likewise.
76063         * tests/test-isnan.c: Likewise.
76064         * tests/test-isnanf.c: Likewise.
76065         * tests/test-isnanl-nolibm.c: Likewise.
76066         * tests/test-isnanl.c: Likewise.
76067         * tests/test-isnanl.h: Likewise.
76068         * tests/test-ldexpl.c: Likewise.
76069         * tests/test-linked_list.c: Likewise.
76070         * tests/test-linkedhash_list.c: Likewise.
76071         * tests/test-locale.c: Likewise.
76072         * tests/test-localename.c: Likewise.
76073         * tests/test-lock.c: Likewise.
76074         * tests/test-lseek.c: Likewise.
76075         * tests/test-malloca.c: Likewise.
76076         * tests/test-math.c: Likewise.
76077         * tests/test-mbscasecmp.c: Likewise.
76078         * tests/test-mbscasestr1.c: Likewise.
76079         * tests/test-mbscasestr2.c: Likewise.
76080         * tests/test-mbscasestr3.c: Likewise.
76081         * tests/test-mbscasestr4.c: Likewise.
76082         * tests/test-mbschr.c: Likewise.
76083         * tests/test-mbscspn.c: Likewise.
76084         * tests/test-mbsncasecmp.c: Likewise.
76085         * tests/test-mbspbrk.c: Likewise.
76086         * tests/test-mbspcasecmp.c: Likewise.
76087         * tests/test-mbsrchr.c: Likewise.
76088         * tests/test-mbsspn.c: Likewise.
76089         * tests/test-mbsstr1.c: Likewise.
76090         * tests/test-mbsstr2.c: Likewise.
76091         * tests/test-mbsstr3.c: Likewise.
76092         * tests/test-md5.c: Likewise.
76093         * tests/test-memmem.c: Likewise.
76094         * tests/test-netinet_in.c: Likewise.
76095         * tests/test-open.c: Likewise.
76096         * tests/test-printf-frexp.c: Likewise.
76097         * tests/test-printf-frexpl.c: Likewise.
76098         * tests/test-printf-posix.c: Likewise.
76099         * tests/test-printf-posix.h: Likewise.
76100         * tests/test-rbtree_list.c: Likewise.
76101         * tests/test-rbtree_oset.c: Likewise.
76102         * tests/test-rbtreehash_list.c: Likewise.
76103         * tests/test-read-file.c: Likewise.
76104         * tests/test-rijndael.c: Likewise.
76105         * tests/test-search.c: Likewise.
76106         * tests/test-signbit.c: Likewise.
76107         * tests/test-sleep.c: Likewise.
76108         * tests/test-snprintf-posix.c: Likewise.
76109         * tests/test-snprintf-posix.h: Likewise.
76110         * tests/test-snprintf.c: Likewise.
76111         * tests/test-sprintf-posix.c: Likewise.
76112         * tests/test-sprintf-posix.h: Likewise.
76113         * tests/test-stat-time.c: Likewise.
76114         * tests/test-stdbool.c: Likewise.
76115         * tests/test-stdint.c: Likewise.
76116         * tests/test-stdio.c: Likewise.
76117         * tests/test-stdlib.c: Likewise.
76118         * tests/test-stpncpy.c: Likewise.
76119         * tests/test-strcasestr.c: Likewise.
76120         * tests/test-striconv.c: Likewise.
76121         * tests/test-striconveh.c: Likewise.
76122         * tests/test-striconveha.c: Likewise.
76123         * tests/test-string.c: Likewise.
76124         * tests/test-sys_select.c: Likewise.
76125         * tests/test-sys_socket.c: Likewise.
76126         * tests/test-sys_stat.c: Likewise.
76127         * tests/test-sys_time.c: Likewise.
76128         * tests/test-sysexits.c: Likewise.
76129         * tests/test-time.c: Likewise.
76130         * tests/test-tls.c: Likewise.
76131         * tests/test-trunc.c: Likewise.
76132         * tests/test-truncf.c: Likewise.
76133         * tests/test-truncl.c: Likewise.
76134         * tests/test-unistd.c: Likewise.
76135         * tests/test-vasnprintf-posix.c: Likewise.
76136         * tests/test-vasnprintf-posix2.c: Likewise.
76137         * tests/test-vasnprintf.c: Likewise.
76138         * tests/test-vasprintf-posix.c: Likewise.
76139         * tests/test-vasprintf.c: Likewise.
76140         * tests/test-verify.c: Likewise.
76141         * tests/test-vfprintf-posix.c: Likewise.
76142         * tests/test-vprintf-posix.c: Likewise.
76143         * tests/test-vsnprintf-posix.c: Likewise.
76144         * tests/test-vsnprintf.c: Likewise.
76145         * tests/test-vsprintf-posix.c: Likewise.
76146         * tests/test-wchar.c: Likewise.
76147         * tests/test-wctype.c: Likewise.
76148         * tests/test-wcwidth.c: Likewise.
76149         * tests/test-xstrtol.c: Likewise.
76150         * tests/test-xvasprintf.c: Likewise.
76151         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
76152         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
76153         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
76154         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
76155         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
76156         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
76157         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
76158         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
76159         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
76160         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
76161         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
76162         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
76163         * tests/uniname/test-uninames.c: Likewise.
76164         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
76165         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
76166         * tests/unistdio/test-u16-printf1.h: Likewise.
76167         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
76168         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
76169         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
76170         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
76171         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
76172         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
76173         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
76174         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
76175         * tests/unistdio/test-u32-printf1.h: Likewise.
76176         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
76177         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
76178         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
76179         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
76180         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
76181         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
76182         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
76183         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
76184         * tests/unistdio/test-u8-printf1.h: Likewise.
76185         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
76186         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
76187         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
76188         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
76189         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
76190         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
76191         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
76192         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
76193         * tests/unistdio/test-ulc-printf1.h: Likewise.
76194         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
76195         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
76196         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
76197         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
76198         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
76199         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
76200         * tests/uniwidth/test-u16-strwidth.c: Likewise.
76201         * tests/uniwidth/test-u16-width.c: Likewise.
76202         * tests/uniwidth/test-u32-strwidth.c: Likewise.
76203         * tests/uniwidth/test-u32-width.c: Likewise.
76204         * tests/uniwidth/test-u8-strwidth.c: Likewise.
76205         * tests/uniwidth/test-u8-width.c: Likewise.
76206         * tests/uniwidth/test-uc_width.c: Likewise.
76207         * config/srclist-update: Likewise.
76208         (fixlicense): Update to GPLv3+.
76210         Change copyright notice from LGPLv2.1+ to LGPLv3+.
76211         * tests/test-tsearch.c: Change copyright notice.
76213         Change copyright notice from LGPLv2.0+ to LGPLv3+.
76214         * lib/c-strcaseeq.h: Change copyright notice.
76215         * lib/streq.h: Likewise.
76216         * lib/uniconv.h: Likewise.
76217         * lib/uniconv/u-conv-from-enc.h: Likewise.
76218         * lib/uniconv/u-conv-to-enc.h: Likewise.
76219         * lib/uniconv/u-strconv-from-enc.h: Likewise.
76220         * lib/uniconv/u-strconv-to-enc.h: Likewise.
76221         * lib/uniconv/u16-conv-from-enc.c: Likewise.
76222         * lib/uniconv/u16-conv-to-enc.c: Likewise.
76223         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
76224         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
76225         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
76226         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
76227         * lib/uniconv/u32-conv-from-enc.c: Likewise.
76228         * lib/uniconv/u32-conv-to-enc.c: Likewise.
76229         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
76230         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
76231         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
76232         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
76233         * lib/uniconv/u8-conv-from-enc.c: Likewise.
76234         * lib/uniconv/u8-conv-to-enc.c: Likewise.
76235         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
76236         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
76237         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
76238         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
76239         * lib/uniname.h: Likewise.
76240         * lib/uniname/uniname.c: Likewise.
76241         * lib/unistdio.h: Likewise.
76242         * lib/unistdio/u-asnprintf.h: Likewise.
76243         * lib/unistdio/u-asprintf.h: Likewise.
76244         * lib/unistdio/u-printf-args.c: Likewise.
76245         * lib/unistdio/u-printf-args.h: Likewise.
76246         * lib/unistdio/u-printf-parse.h: Likewise.
76247         * lib/unistdio/u-snprintf.h: Likewise.
76248         * lib/unistdio/u-sprintf.h: Likewise.
76249         * lib/unistdio/u-vasprintf.h: Likewise.
76250         * lib/unistdio/u-vsnprintf.h: Likewise.
76251         * lib/unistdio/u-vsprintf.h: Likewise.
76252         * lib/unistdio/u16-asnprintf.c: Likewise.
76253         * lib/unistdio/u16-asprintf.c: Likewise.
76254         * lib/unistdio/u16-printf-parse.c: Likewise.
76255         * lib/unistdio/u16-snprintf.c: Likewise.
76256         * lib/unistdio/u16-sprintf.c: Likewise.
76257         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
76258         * lib/unistdio/u16-u16-asprintf.c: Likewise.
76259         * lib/unistdio/u16-u16-snprintf.c: Likewise.
76260         * lib/unistdio/u16-u16-sprintf.c: Likewise.
76261         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
76262         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
76263         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
76264         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
76265         * lib/unistdio/u16-vasnprintf.c: Likewise.
76266         * lib/unistdio/u16-vasprintf.c: Likewise.
76267         * lib/unistdio/u16-vsnprintf.c: Likewise.
76268         * lib/unistdio/u16-vsprintf.c: Likewise.
76269         * lib/unistdio/u32-asnprintf.c: Likewise.
76270         * lib/unistdio/u32-asprintf.c: Likewise.
76271         * lib/unistdio/u32-printf-parse.c: Likewise.
76272         * lib/unistdio/u32-snprintf.c: Likewise.
76273         * lib/unistdio/u32-sprintf.c: Likewise.
76274         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
76275         * lib/unistdio/u32-u32-asprintf.c: Likewise.
76276         * lib/unistdio/u32-u32-snprintf.c: Likewise.
76277         * lib/unistdio/u32-u32-sprintf.c: Likewise.
76278         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
76279         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
76280         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
76281         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
76282         * lib/unistdio/u32-vasnprintf.c: Likewise.
76283         * lib/unistdio/u32-vasprintf.c: Likewise.
76284         * lib/unistdio/u32-vsnprintf.c: Likewise.
76285         * lib/unistdio/u32-vsprintf.c: Likewise.
76286         * lib/unistdio/u8-asnprintf.c: Likewise.
76287         * lib/unistdio/u8-asprintf.c: Likewise.
76288         * lib/unistdio/u8-printf-parse.c: Likewise.
76289         * lib/unistdio/u8-snprintf.c: Likewise.
76290         * lib/unistdio/u8-sprintf.c: Likewise.
76291         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
76292         * lib/unistdio/u8-u8-asprintf.c: Likewise.
76293         * lib/unistdio/u8-u8-snprintf.c: Likewise.
76294         * lib/unistdio/u8-u8-sprintf.c: Likewise.
76295         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
76296         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
76297         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
76298         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
76299         * lib/unistdio/u8-vasnprintf.c: Likewise.
76300         * lib/unistdio/u8-vasprintf.c: Likewise.
76301         * lib/unistdio/u8-vsnprintf.c: Likewise.
76302         * lib/unistdio/u8-vsprintf.c: Likewise.
76303         * lib/unistdio/ulc-asnprintf.c: Likewise.
76304         * lib/unistdio/ulc-asprintf.c: Likewise.
76305         * lib/unistdio/ulc-printf-parse.c: Likewise.
76306         * lib/unistdio/ulc-snprintf.c: Likewise.
76307         * lib/unistdio/ulc-sprintf.c: Likewise.
76308         * lib/unistdio/ulc-vasnprintf.c: Likewise.
76309         * lib/unistdio/ulc-vasprintf.c: Likewise.
76310         * lib/unistdio/ulc-vsnprintf.c: Likewise.
76311         * lib/unistdio/ulc-vsprintf.c: Likewise.
76312         * lib/unistr.h: Likewise.
76313         * lib/unistr/u-cpy-alloc.h: Likewise.
76314         * lib/unistr/u-cpy.h: Likewise.
76315         * lib/unistr/u-endswith.h: Likewise.
76316         * lib/unistr/u-move.h: Likewise.
76317         * lib/unistr/u-set.h: Likewise.
76318         * lib/unistr/u-startswith.h: Likewise.
76319         * lib/unistr/u-stpcpy.h: Likewise.
76320         * lib/unistr/u-stpncpy.h: Likewise.
76321         * lib/unistr/u-strcat.h: Likewise.
76322         * lib/unistr/u-strcpy.h: Likewise.
76323         * lib/unistr/u-strcspn.h: Likewise.
76324         * lib/unistr/u-strdup.h: Likewise.
76325         * lib/unistr/u-strlen.h: Likewise.
76326         * lib/unistr/u-strncat.h: Likewise.
76327         * lib/unistr/u-strncpy.h: Likewise.
76328         * lib/unistr/u-strnlen.h: Likewise.
76329         * lib/unistr/u-strpbrk.h: Likewise.
76330         * lib/unistr/u-strspn.h: Likewise.
76331         * lib/unistr/u-strstr.h: Likewise.
76332         * lib/unistr/u-strtok.h: Likewise.
76333         * lib/unistr/u16-check.c: Likewise.
76334         * lib/unistr/u16-chr.c: Likewise.
76335         * lib/unistr/u16-cmp.c: Likewise.
76336         * lib/unistr/u16-cpy-alloc.c: Likewise.
76337         * lib/unistr/u16-cpy.c: Likewise.
76338         * lib/unistr/u16-endswith.c: Likewise.
76339         * lib/unistr/u16-mblen.c: Likewise.
76340         * lib/unistr/u16-mbsnlen.c: Likewise.
76341         * lib/unistr/u16-mbtouc-aux.c: Likewise.
76342         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
76343         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
76344         * lib/unistr/u16-mbtouc.c: Likewise.
76345         * lib/unistr/u16-mbtoucr.c: Likewise.
76346         * lib/unistr/u16-move.c: Likewise.
76347         * lib/unistr/u16-next.c: Likewise.
76348         * lib/unistr/u16-prev.c: Likewise.
76349         * lib/unistr/u16-set.c: Likewise.
76350         * lib/unistr/u16-startswith.c: Likewise.
76351         * lib/unistr/u16-stpcpy.c: Likewise.
76352         * lib/unistr/u16-stpncpy.c: Likewise.
76353         * lib/unistr/u16-strcat.c: Likewise.
76354         * lib/unistr/u16-strchr.c: Likewise.
76355         * lib/unistr/u16-strcmp.c: Likewise.
76356         * lib/unistr/u16-strcpy.c: Likewise.
76357         * lib/unistr/u16-strcspn.c: Likewise.
76358         * lib/unistr/u16-strdup.c: Likewise.
76359         * lib/unistr/u16-strlen.c: Likewise.
76360         * lib/unistr/u16-strmblen.c: Likewise.
76361         * lib/unistr/u16-strmbtouc.c: Likewise.
76362         * lib/unistr/u16-strncat.c: Likewise.
76363         * lib/unistr/u16-strncmp.c: Likewise.
76364         * lib/unistr/u16-strncpy.c: Likewise.
76365         * lib/unistr/u16-strnlen.c: Likewise.
76366         * lib/unistr/u16-strpbrk.c: Likewise.
76367         * lib/unistr/u16-strrchr.c: Likewise.
76368         * lib/unistr/u16-strspn.c: Likewise.
76369         * lib/unistr/u16-strstr.c: Likewise.
76370         * lib/unistr/u16-strtok.c: Likewise.
76371         * lib/unistr/u16-to-u32.c: Likewise.
76372         * lib/unistr/u16-to-u8.c: Likewise.
76373         * lib/unistr/u16-uctomb-aux.c: Likewise.
76374         * lib/unistr/u16-uctomb.c: Likewise.
76375         * lib/unistr/u32-check.c: Likewise.
76376         * lib/unistr/u32-chr.c: Likewise.
76377         * lib/unistr/u32-cmp.c: Likewise.
76378         * lib/unistr/u32-cpy-alloc.c: Likewise.
76379         * lib/unistr/u32-cpy.c: Likewise.
76380         * lib/unistr/u32-endswith.c: Likewise.
76381         * lib/unistr/u32-mblen.c: Likewise.
76382         * lib/unistr/u32-mbsnlen.c: Likewise.
76383         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
76384         * lib/unistr/u32-mbtouc.c: Likewise.
76385         * lib/unistr/u32-mbtoucr.c: Likewise.
76386         * lib/unistr/u32-move.c: Likewise.
76387         * lib/unistr/u32-next.c: Likewise.
76388         * lib/unistr/u32-prev.c: Likewise.
76389         * lib/unistr/u32-set.c: Likewise.
76390         * lib/unistr/u32-startswith.c: Likewise.
76391         * lib/unistr/u32-stpcpy.c: Likewise.
76392         * lib/unistr/u32-stpncpy.c: Likewise.
76393         * lib/unistr/u32-strcat.c: Likewise.
76394         * lib/unistr/u32-strchr.c: Likewise.
76395         * lib/unistr/u32-strcmp.c: Likewise.
76396         * lib/unistr/u32-strcpy.c: Likewise.
76397         * lib/unistr/u32-strcspn.c: Likewise.
76398         * lib/unistr/u32-strdup.c: Likewise.
76399         * lib/unistr/u32-strlen.c: Likewise.
76400         * lib/unistr/u32-strmblen.c: Likewise.
76401         * lib/unistr/u32-strmbtouc.c: Likewise.
76402         * lib/unistr/u32-strncat.c: Likewise.
76403         * lib/unistr/u32-strncmp.c: Likewise.
76404         * lib/unistr/u32-strncpy.c: Likewise.
76405         * lib/unistr/u32-strnlen.c: Likewise.
76406         * lib/unistr/u32-strpbrk.c: Likewise.
76407         * lib/unistr/u32-strrchr.c: Likewise.
76408         * lib/unistr/u32-strspn.c: Likewise.
76409         * lib/unistr/u32-strstr.c: Likewise.
76410         * lib/unistr/u32-strtok.c: Likewise.
76411         * lib/unistr/u32-to-u16.c: Likewise.
76412         * lib/unistr/u32-to-u8.c: Likewise.
76413         * lib/unistr/u32-uctomb.c: Likewise.
76414         * lib/unistr/u8-check.c: Likewise.
76415         * lib/unistr/u8-chr.c: Likewise.
76416         * lib/unistr/u8-cmp.c: Likewise.
76417         * lib/unistr/u8-cpy-alloc.c: Likewise.
76418         * lib/unistr/u8-cpy.c: Likewise.
76419         * lib/unistr/u8-endswith.c: Likewise.
76420         * lib/unistr/u8-mblen.c: Likewise.
76421         * lib/unistr/u8-mbsnlen.c: Likewise.
76422         * lib/unistr/u8-mbtouc-aux.c: Likewise.
76423         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
76424         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
76425         * lib/unistr/u8-mbtouc.c: Likewise.
76426         * lib/unistr/u8-mbtoucr.c: Likewise.
76427         * lib/unistr/u8-move.c: Likewise.
76428         * lib/unistr/u8-next.c: Likewise.
76429         * lib/unistr/u8-prev.c: Likewise.
76430         * lib/unistr/u8-set.c: Likewise.
76431         * lib/unistr/u8-startswith.c: Likewise.
76432         * lib/unistr/u8-stpcpy.c: Likewise.
76433         * lib/unistr/u8-stpncpy.c: Likewise.
76434         * lib/unistr/u8-strcat.c: Likewise.
76435         * lib/unistr/u8-strchr.c: Likewise.
76436         * lib/unistr/u8-strcmp.c: Likewise.
76437         * lib/unistr/u8-strcpy.c: Likewise.
76438         * lib/unistr/u8-strcspn.c: Likewise.
76439         * lib/unistr/u8-strdup.c: Likewise.
76440         * lib/unistr/u8-strlen.c: Likewise.
76441         * lib/unistr/u8-strmblen.c: Likewise.
76442         * lib/unistr/u8-strmbtouc.c: Likewise.
76443         * lib/unistr/u8-strncat.c: Likewise.
76444         * lib/unistr/u8-strncmp.c: Likewise.
76445         * lib/unistr/u8-strncpy.c: Likewise.
76446         * lib/unistr/u8-strnlen.c: Likewise.
76447         * lib/unistr/u8-strpbrk.c: Likewise.
76448         * lib/unistr/u8-strrchr.c: Likewise.
76449         * lib/unistr/u8-strspn.c: Likewise.
76450         * lib/unistr/u8-strstr.c: Likewise.
76451         * lib/unistr/u8-strtok.c: Likewise.
76452         * lib/unistr/u8-to-u16.c: Likewise.
76453         * lib/unistr/u8-to-u32.c: Likewise.
76454         * lib/unistr/u8-uctomb-aux.c: Likewise.
76455         * lib/unistr/u8-uctomb.c: Likewise.
76456         * lib/unitypes.h: Likewise.
76457         * lib/uniwidth.h: Likewise.
76458         * lib/uniwidth/cjk.h: Likewise.
76459         * lib/uniwidth/u16-strwidth.c: Likewise.
76460         * lib/uniwidth/u16-width.c: Likewise.
76461         * lib/uniwidth/u32-strwidth.c: Likewise.
76462         * lib/uniwidth/u32-width.c: Likewise.
76463         * lib/uniwidth/u8-strwidth.c: Likewise.
76464         * lib/uniwidth/u8-width.c: Likewise.
76465         * lib/uniwidth/width.c: Likewise.
76467 2007-10-07  Bruno Haible  <bruno@clisp.org>
76469         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
76470         The file is still under LGPL (see modules/inttypes).
76472 2007-10-06  Bruno Haible  <bruno@clisp.org>
76474         * modules/trunc (Dependencies): Add 'extensions'.
76475         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
76476         Reported by Ben Pfaff <blp@gnu.org>.
76478 2007-10-06  Bruno Haible  <bruno@clisp.org>
76480         * modules/freopen-tests: New file.
76481         * tests/test-freopen.c: New file.
76483         * modules/fopen-tests: New file.
76484         * tests/test-fopen.c: New file.
76486         * modules/fopen: New file.
76487         * lib/fopen.c: New file.
76488         * m4/fopen.m4: New file.
76489         * modules/freopen: New file.
76490         * lib/freopen.c: New file.
76491         * m4/freopen.m4: New file.
76492         * lib/stdio.in.h (fopen, freopen): New declarations.
76493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
76494         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
76495         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
76496         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
76497         * doc/functions/fopen.texi: Mention the 'fopen' module.
76498         * doc/functions/freopen.texi: Mention the 'freopen' module.
76500 2007-10-06  Bruno Haible  <bruno@clisp.org>
76502         * modules/open-tests: New file.
76503         * tests/test-open.c: New file.
76505         * modules/open: New file.
76506         * lib/open.c: New file.
76507         * m4/open.m4: New file.
76508         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
76509         lib/open.c does.
76510         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
76511         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
76512         macros.
76513         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
76514         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
76515         REPLACE_OPEN.
76516         * doc/functions/open.texi: Mention the 'open' module.
76518 2007-10-04  Bruno Haible  <bruno@clisp.org>
76520         * modules/ceill-tests: New file.
76521         * tests/test-ceill.c: New file.
76523         * modules/ceill: New file.
76524         * lib/ceill.c: Replace entire file.
76525         * m4/ceill.m4: New file.
76526         * lib/math.in.h (ceill): Replace declaration.
76527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
76528         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
76529         * doc/functions/ceill.texi: Mention the 'ceill' module.
76530         * modules/mathl (Files): Remove lib/ceill.c.
76531         (Depends-on): Add ceill.
76533 2007-10-04  Bruno Haible  <bruno@clisp.org>
76535         * modules/ceilf-tests: New file.
76536         * tests/test-ceilf.c: New file.
76538         * modules/ceilf: New file.
76539         * lib/ceil.c: New file.
76540         * lib/ceilf.c: New file.
76541         * m4/ceilf.m4: New file.
76542         * lib/math.in.h (ceilf): New declaration.
76543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
76544         HAVE_DECL_CEILF.
76545         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
76546         HAVE_DECL_CEILF.
76547         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
76549 2007-10-04  Bruno Haible  <bruno@clisp.org>
76551         * modules/floorl-tests: New file.
76552         * tests/test-floorl.c: New file.
76554         * modules/floorl: New file.
76555         * lib/floorl.c: Replace entire file.
76556         * m4/floorl.m4: New file.
76557         * lib/math.in.h (floorl): Replace declaration.
76558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
76559         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
76560         * doc/functions/floorl.texi: Mention the 'floorl' module.
76561         * modules/mathl (Files): Remove lib/floorl.c.
76562         (Depends-on): Add floorl.
76564 2007-10-04  Bruno Haible  <bruno@clisp.org>
76566         * modules/floorf-tests: New file.
76567         * tests/test-floorf.c: New file.
76569         * modules/floorf: New file.
76570         * lib/floor.c: New file.
76571         * lib/floorf.c: New file.
76572         * m4/floorf.m4: New file.
76573         * lib/math.in.h (floorf): New declaration.
76574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
76575         HAVE_DECL_FLOORF.
76576         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
76577         HAVE_DECL_FLOORF.
76578         * doc/functions/floorf.texi: Mention the 'floorf' module.
76580 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
76581             Bruno Haible  <bruno@clisp.org>
76583         Advertise for the Git server instead of the CVS server.
76584         * doc/gnulib-intro.texi (Steady Development): Mention the Git
76585         repository instead of the CVS one.
76586         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
76587         about all VCS systems generically.
76588         * doc/gnulib.texi (Introduction): Capitalize `Git'.
76590 2007-10-04  Bruno Haible  <bruno@clisp.org>
76592         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
76593         means.
76594         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
76596 2007-10-04  Bruno Haible  <bruno@clisp.org>
76598         * modules/truncl-tests: New file.
76599         * tests/test-truncl.c: New file.
76601         * modules/truncl: New file.
76602         * lib/truncl.c: New file.
76603         * m4/truncl.m4: New file.
76604         * lib/math.in.h (truncl): New declaration.
76605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
76606         HAVE_DECL_TRUNCL.
76607         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
76608         HAVE_DECL_TRUNCL.
76609         * doc/functions/truncl.texi: Mention the 'truncl' module.
76611 2007-10-04  Bruno Haible  <bruno@clisp.org>
76613         * modules/truncf-tests: New file.
76614         * tests/test-truncf.c: New file.
76616         * modules/truncf: New file.
76617         * lib/trunc.c: Make paramerizable through USE_* macros.
76618         * lib/truncf.c: New file.
76619         * m4/truncf.m4: New file.
76620         * lib/math.in.h (truncf): New declaration.
76621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
76622         HAVE_DECL_TRUNCF.
76623         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
76624         HAVE_DECL_TRUNCF.
76625         * doc/functions/truncf.texi: Mention the 'truncf' module.
76627 2007-10-03  Bruno Haible  <bruno@clisp.org>
76629         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
76630         augmentation also for tests modules.
76631         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
76632         * modules/atexit-tests (Makefile.am): Likewise.
76633         * modules/binary-io-tests (Makefile.am): Likewise.
76634         * modules/c-strcase-tests (Makefile.am): Likewise.
76635         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
76636         * modules/canonicalize-tests (Makefile.am): Likewise.
76637         * modules/closein-tests (Makefile.am): Likewise.
76638         * modules/fprintf-posix-tests (Makefile.am): Likewise.
76639         * modules/freadahead-tests (Makefile.am): Likewise.
76640         * modules/fseek-tests (Makefile.am): Likewise.
76641         * modules/fseeko-tests (Makefile.am): Likewise.
76642         * modules/ftell-tests (Makefile.am): Likewise.
76643         * modules/ftello-tests (Makefile.am): Likewise.
76644         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
76645         * modules/isnanl-tests (Makefile.am): Likewise.
76646         * modules/lseek-tests (Makefile.am): Likewise.
76647         * modules/mbscasecmp-tests (Makefile.am): Likewise.
76648         * modules/mbscasestr-tests (Makefile.am): Likewise.
76649         * modules/mbschr-tests (Makefile.am): Likewise.
76650         * modules/mbscspn-tests (Makefile.am): Likewise.
76651         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
76652         * modules/mbspbrk-tests (Makefile.am): Likewise.
76653         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
76654         * modules/mbsrchr-tests (Makefile.am): Likewise.
76655         * modules/mbsspn-tests (Makefile.am): Likewise.
76656         * modules/mbsstr-tests (Makefile.am): Likewise.
76657         * modules/printf-posix-tests (Makefile.am): Likewise.
76658         * modules/snprintf-posix-tests (Makefile.am): Likewise.
76659         * modules/sprintf-posix-tests (Makefile.am): Likewise.
76660         * modules/tsearch-tests (Makefile.am): Likewise.
76661         * modules/uniname/uniname-tests (Makefile.am): Likewise.
76662         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
76663         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
76664         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
76665         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
76666         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
76667         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
76668         * modules/vprintf-posix-tests (Makefile.am): Likewise.
76669         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
76670         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
76671         * modules/xstrtoimax-tests (Makefile.am): Likewise.
76672         * modules/xstrtol-tests (Makefile.am): Likewise.
76673         * modules/xstrtoumax-tests (Makefile.am): Likewise.
76674         * modules/yesno-tests (Makefile.am): Likewise.
76676 2007-10-03  Bruno Haible  <bruno@clisp.org>
76678         * modules/trunc-tests: New file.
76679         * tests/test-trunc.c: New file.
76681         * modules/trunc: New file.
76682         * lib/trunc.c: New file.
76683         * m4/trunc.m4: New file.
76684         * lib/math.in.h (trunc): New declaration.
76685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
76686         HAVE_DECL_TRUNC.
76687         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
76688         HAVE_DECL_TRUNC.
76689         * doc/functions/trunc.texi: Mention the 'trunc' module.
76691 2007-10-03  Bruno Haible  <bruno@clisp.org>
76693         * tests/test-fpending.c: New file, mostly copied
76694         from coreutils/lib/t-fpending.c.
76695         * modules/fpending-tests: New file.
76697 2007-10-03  Bruno Haible  <bruno@clisp.org>
76699         Port the stdio extensions to QNX (untested).
76700         * lib/fseterr.c (fseterr): Add support for QNX.
76701         * lib/fbufmode.c (fbufmode): Likewise.
76702         * lib/freadable.c (freadable): Likewise.
76703         * lib/fwritable.c (fwritable): Likewise.
76704         * lib/freading.c (freading): Likewise.
76705         * lib/fwriting.c (fwriting): Likewise.
76706         * lib/freadahead.c (freadahed): Likewise.
76707         * lib/fpurge.c (fpurge): Likewise.
76708         * lib/fseeko.c (rpl_fseeko): Likewise.
76710 2007-10-03  Bruno Haible  <bruno@clisp.org>
76711             Jim Meyering  <jim@meyering.net>
76712             Eric Blake  <ebb9@byu.net>
76714         * doc/relocatable.texi: Use @command instead of @program.
76716 2007-10-02  Jim Meyering  <jim@meyering.net>
76718         Perform one more "_.h" -> ".in.h" substitution.
76719         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
76720         instead of unistd_.h here, too.
76722 2007-10-01  Bruno Haible  <bruno@clisp.org>
76724         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
76725         Needed for the alloca-opt module.
76727 2007-09-30  Bruno Haible  <bruno@clisp.org>
76729         * lib/alloca.in.h: Renamed from lib/alloca_.h.
76730         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
76731         alloca_.h.
76732         * lib/argz.in.h: Renamed from lib/argz_.h.
76733         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
76734         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
76735         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
76736         byteswap_.h.
76737         * lib/dirent.in.h: Renamed from lib/dirent_.h.
76738         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
76739         dirent_.h.
76740         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
76741         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
76742         fcntl_.h.
76743         * lib/float.in.h: Renamed from lib/float_.h.
76744         * modules/float (Files, Makefile.am): Use float.in.h instead of
76745         float_.h.
76746         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
76747         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
76748         fnmatch_.h.
76749         * lib/getopt.in.h: Renamed from lib/getopt_.h.
76750         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
76751         getopt_.h.
76752         * lib/glob.in.h: Renamed from lib/glob_.h.
76753         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
76754         * lib/iconv.in.h: Renamed from lib/iconv_.h.
76755         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
76756         iconv_.h.
76757         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
76758         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
76759         inttypes_.h.
76760         * lib/locale.in.h: Renamed from lib/locale_.h.
76761         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
76762         locale_.h.
76763         * lib/math.in.h: Renamed from lib/math_.h.
76764         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
76765         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
76766         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
76767         of netinet_in_.h. Add dependency.
76768         * lib/poll.in.h: Renamed from lib/poll_.h.
76769         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
76770         * lib/search.in.h: Renamed from lib/search_.h.
76771         * modules/search (Files, Makefile.am): Use search.in.h instead of
76772         search_.h.
76773         * lib/signal.in.h: Renamed from lib/signal_.h.
76774         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
76775         _signal.h.
76776         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
76777         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
76778         stdbool_.h.
76779         * lib/stdint.in.h: Renamed from lib/stdint_.h.
76780         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
76781         stdint_.h.
76782         * lib/stdio.in.h: Renamed from lib/stdio_.h.
76783         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
76784         stdio_.h.
76785         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
76786         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
76787         stdlib_.h.
76788         * lib/string.in.h: Renamed from lib/string_.h.
76789         * modules/string (Files, Makefile.am): Use string.in.h instead of
76790         string_.h.
76791         * doc/gnulib-tool.texi (Initial import): Update.
76792         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
76793         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
76794         of sys_select_.h. Add dependency.
76795         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
76796         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
76797         of sys_socket_.h.
76798         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
76799         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
76800         sys_stat_.h.
76801         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
76802         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
76803         sys_time_.h.
76804         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
76805         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
76806         sysexits_.h.
76807         * lib/time.in.h: Renamed from lib/time_.h.
76808         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
76809         * lib/unistd.in.h: Renamed from lib/unistd_.h.
76810         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
76811         unistd_.h.
76812         * lib/wchar.in.h: Renamed from lib/wchar_.h.
76813         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
76814         wchar_.h.
76815         * lib/wctype.in.h: Renamed from lib/wctype_.h.
76816         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
76817         wctype_.h.
76818         * build-aux/bootstrap (slurp): Update.
76819         * lib/.cppi-disable: Update.
76821 2007-09-30  Bruno Haible  <bruno@clisp.org>
76823         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
76824         Needed on BeOS.
76826 2007-09-30  Bruno Haible  <bruno@clisp.org>
76828         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
76830 2007-09-29  Bruno Haible  <bruno@clisp.org>
76832         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
76834 2007-09-29  Bruno Haible  <bruno@clisp.org>
76836         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
76837         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
76838         * build-aux/install-reloc: Compile also areadlink.c.
76839         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
76841 2007-09-29  Bruno Haible  <bruno@clisp.org>
76843         * gnulib-tool (func_emit_initmacro_done): Indentation.
76845 2007-09-29  Bruno Haible  <bruno@clisp.org>
76847         * README: Add CVS checkout update instructions.
76848         Info from Bob Proulx <bob@proulx.com>.
76850 2007-09-28  Eric Blake  <ebb9@byu.net>
76852         Provide move-if-change.
76853         * build-aux/move-if-change: New file, based on best practice
76854         rather than any canonical upstream location.
76856 2007-09-28  Jim Meyering  <jim@meyering.net>
76858         Fix canonicalize loop-detection corner case.
76859         Do not attempt to stat the symlink values stored via seen_triple.
76860         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
76861         on linux-2.6.18, (but not 2.6.22).
76862         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
76863         triple_compare.  The former compares dev,ino,filename, while the latter
76864         would actually stat dirname(filename) when dev and ino were equal.
76865         * lib/hash-triple.c: Install <string.h>.
76866         (STREQ): Define.
76867         (triple_compare_ino_str): New function.
76868         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
76870 2007-09-28  Eric Blake  <ebb9@byu.net>
76872         Enforce that AC_REPLACE_FUNCS files exist.
76873         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
76874         override check for typos.
76876         Fix test-closein on Solaris 10.
76877         * tests/test-closein.c (main): Don't assume stdin can be inherited
76878         closed on all systems.
76879         * tests/test-closein.sh: Likewise.
76880         Reported by Piotr Tarnowski.
76882 2007-09-28  Jim Meyering  <jim@meyering.net>
76884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
76886 2007-09-27  Jim Meyering  <jim@meyering.net>
76888         canonicalize: Avoid a false-positive cycle failure.
76889         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
76890         Sort.  Remove cycle-check.
76891         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
76892         not cycle-check.h.
76893         (seen_triple): New function.
76894         (canonicalize_filename_mode): Use it instead of cycle-check.
76895         * tests/test-canonicalize.c: Add a test for this bug.
76896         * tests/test-canonicalize.sh: Set up and run the test.
76898         New module, file-set, from coreutils.
76899         * modules/file-set: Define it.
76900         * lib/file-set.c, lib/file-set.h: Implement.
76902         New module, hash-triple, from coreutils.
76903         * modules/hash-triple: Define it.
76904         * lib/hash-triple.c, lib/hash-triple.h: Implement.
76906 2007-09-25  Eric Blake  <ebb9@byu.net>
76908         Fix strerror on Interix.
76909         * lib/string_.h (strerror): Declare replacement.
76910         * doc/functions/strerror.texi (strerror): Document the Interix
76911         shortcoming.
76912         * modules/string (Makefile.am): Support new hooks.
76913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
76914         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
76915         gl_FUNC_STRERROR_SEPARATE.
76916         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
76917         * lib/strerror.c (rpl_strerror): Provide replacement.
76918         * modules/strerror (Depends-on): Add string.
76919         (configure.ac): Detect use of module.
76920         * tests/test-strerror.c: New file.
76921         * modules/strerror-tests: New test module.
76922         * modules/argp (Depends-on): Add strerror.
76923         * modules/error (Depends-on): Likewise.
76924         Reported by Martin Koeppe.
76926 2007-09-24  Bruno Haible  <bruno@clisp.org>
76928         * README: Update git instructions.
76930 2007-09-24  Eric Blake  <ebb9@byu.net>
76932         Revert fpending breakage from 2007-09-08.
76933         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
76934         __fpending.c.
76936 2007-09-24  Jim Meyering  <jim@meyering.net>
76938         filenamecat.c: Add a test.
76939         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
76940         showing how the function works when DIR is the empty string.
76942 2007-09-21  Simon Josefsson  <simon@josefsson.org>
76944         * tests/test-canonicalize.sh: Turn on executable bit.
76946 2007-09-19  Eric Blake  <ebb9@byu.net>
76948         * README: Update CVS instructions.
76950 2007-09-18  Bruno Haible  <bruno@clisp.org>
76952         * modules/areadlink: New file.
76953         * lib/areadlink.h (areadlink): New declaration.
76954         * lib/areadlink.c: New file, based on lib/xreadlink.c.
76956 2007-09-17  Jim Meyering  <jim@meyering.net>
76958         * lib/savewd.c (ESTALE) [!defined]: Define.
76959         Reported to be required on Interix by Martin Koeppe.
76961 2007-09-17  Bruno Haible  <bruno@clisp.org>
76963         * gnulib-tool (func_version): Use $version.
76965 2007-09-16  Bruno Haible  <bruno@clisp.org>
76967         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
76968         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
76969         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
76970         Reported by Greg Schafer <gschafer@zip.com.au>.
76972 2007-09-15  Bruno Haible  <bruno@clisp.org>
76974         * gnulib-tool (sed): Try a little harder to make bash understand the
76975         alias.
76976         Reported by Bruce Korb <bruce.korb@gmail.com>.
76978 2007-09-13  Eric Blake  <ebb9@byu.net>
76980         * ChangeLog: Remove conflict markers.
76982 2007-09-13  Simon Josefsson  <simon@josefsson.org>
76984         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
76985         Reported by Bruno Haible <bruno@clisp.org>.
76987 2007-09-12  Bruno Haible  <bruno@clisp.org>
76989         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
76990         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
76991         is not defined.
76993 2007-09-12  Eric Blake  <ebb9@byu.net>
76995         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
76996         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
76997         Autoconf definition.
76998         * modules/euidaccess (Depends-on): Add extensions, for
76999         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
77000         * modules/fnmatch (Depends-on): Likewise.
77001         * modules/getaddrinfo (Depends-on): Likewise.
77002         * modules/getdelim (Depends-on): Likewise.
77003         * modules/getline (Depends-on): Likewise.
77004         * modules/getsubopt (Depends-on): Likewise.
77005         * modules/gettext (Depends-on): Likewise.
77006         * modules/group-member (Depends-on): Likewise.
77007         * modules/mbchar (Depends-on): Likewise.
77008         * modules/memmem (Depends-on): Likewise.
77009         * modules/mempcpy (Depends-on): Likewise.
77010         * modules/memrchr (Depends-on): Likewise.
77011         * modules/pagealign_alloc (Depends-on): Likewise.
77012         * modules/readutmp (Depends-on): Likewise.
77013         * modules/stpcpy (Depends-on): Likewise.
77014         * modules/stpncpy (Depends-on): Likewise.
77015         * modules/strchrnul (Depends-on): Likewise.
77016         * modules/strndup (Depends-on): Likewise.
77017         * modules/strsep (Depends-on): Likewise.
77018         * modules/strverscmp (Depends-on): Likewise.
77019         * modules/vasprintf (Depends-on): Likewise.
77020         * modules/wcwidth (Depends-on): Likewise.
77021         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
77022         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
77023         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
77024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
77025         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
77026         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77027         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
77028         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77029         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
77030         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
77031         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77032         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
77033         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
77034         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
77035         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
77036         * m4/readutmp.m4 (gl_READUTMP): Likewise.
77037         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
77038         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
77039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
77040         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
77041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
77042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
77043         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
77044         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
77045         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
77046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
77047         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
77048         so that lock.m4 can be used in gettext without extensions module.
77050 2007-09-11  Bruno Haible  <bruno@clisp.org>
77052         * m4/isc-posix.m4: Remove file.
77053         Suggested by Eric Blake.
77055 2007-09-11  Eric Blake  <ebb9@byu.net>
77057         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
77059 2007-09-10  Bruno Haible  <bruno@clisp.org>
77061         * posix-modules: Fix typo in error message.
77062         Reported by Matt <mkraai@beckman.com>.
77064 2007-09-09  Bruno Haible  <bruno@clisp.org>
77066         * doc/functions/getdelim.texi: Update list of platforms lacking the
77067         function.
77068         * doc/functions/getline.texi: Likewise.
77070 2007-09-09  Jim Meyering  <jim@meyering.net>
77072         * lib/hash.c (hash_initialize): Detect calloc failure.
77073         Reported by Bruno Haible.
77075 2007-09-09  Bruno Haible  <bruno@clisp.org>
77077         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
77078         malloc or realloc fails.
77080 2007-09-09  Bruno Haible  <bruno@clisp.org>
77082         * modules/getcwd (Depends-on): Add malloc-posix.
77083         * modules/glob (Depends-on): Likewise.
77084         * modules/putenv (Depends-on): Likewise.
77085         * modules/strdup (Depends-on): Likewise.
77086         * modules/getdelim (Depends-on): Add realloc-posix.
77087         * modules/read-file (Depends-on): Likewise.
77089 2007-09-09  Bruno Haible  <bruno@clisp.org>
77091         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
77092         (gl_FUNC_MALLOC_POSIX): Require it.
77093         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
77094         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
77095         * modules/realloc (Files): Add m4/malloc.m4.
77096         * modules/calloc (Files): Likewise.
77098 2007-09-09  Bruno Haible  <bruno@clisp.org>
77100         * modules/malloc-posix: New file.
77101         * modules/malloc (Depends-on): Add malloc-posix.
77102         * lib/malloc.c: Include errno.h.
77103         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
77104         and a POSIX-compatible malloc into a single function. Set ENOMEM
77105         when returning NULL.
77106         * m4/malloc.m4: New file.
77107         * doc/functions/malloc.texi: Mention the malloc-posix module.
77108         * lib/stdlib_.h (malloc): New declaration.
77109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
77110         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
77111         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
77112         and HAVE_MALLOC_POSIX.
77114 2007-09-09  Bruno Haible  <bruno@clisp.org>
77116         * modules/realloc-posix: New file.
77117         * modules/realloc (Depends-on): Add realloc-posix.
77118         * lib/realloc.c: Include errno.h.
77119         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
77120         and a POSIX-compatible realloc into a single function. Set ENOMEM
77121         when returning NULL.
77122         * m4/realloc.m4: New file.
77123         * doc/functions/realloc.texi: Mention the realloc-posix module.
77124         * lib/stdlib_.h (realloc): New declaration.
77125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
77126         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
77127         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
77128         and HAVE_REALLOC_POSIX.
77130 2007-09-09  Bruno Haible  <bruno@clisp.org>
77132         * modules/calloc-posix: New file.
77133         * modules/calloc (Depends-on): Add calloc-posix.
77134         * lib/calloc.c: Include errno.h.
77135         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
77136         and a POSIX-compatible calloc into a single function. Set ENOMEM
77137         when returning NULL.
77138         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
77139         * doc/functions/calloc.texi: Mention the calloc-posix module.
77140         * lib/stdlib_.h (calloc): New declaration.
77141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
77142         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
77143         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
77144         and HAVE_CALLOC_POSIX.
77146 2007-09-09  Bruno Haible  <bruno@clisp.org>
77148         Allow for modules to show an arbitrary notice.
77149         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
77150         * gnulib-tool: New option --extract-notice.
77151         (func_usage): Document it.
77152         (sed_extract_prog): Update.
77153         (func_get_notice): New function.
77154         (func_modules_notice): New function.
77155         (func_import, func_create_testdir): Invoke it.
77156         Suggested by Jim Meyering.
77158 2007-09-09  Bruno Haible  <bruno@clisp.org>
77160         * gnulib-tool: New options --verbose, --quiet.
77161         (func_usage): Document them.
77162         (verbose): New variable.
77163         (func_execute_command): New function.
77164         (func_import): Don't show the module list and the file list if
77165         $verbose < 0.
77166         (func_create_testdir): Likewise. Use func_execute_command.
77167         (func_create_megatestdir): Use func_execute_command.
77169 2007-09-08  Bruno Haible  <bruno@clisp.org>
77171         * gnulib-tool (func_import): Prefer rsync over wget when available,
77172         for fetching the PO files.
77174 2007-09-08  Bruno Haible  <bruno@clisp.org>
77176         * posix-modules: New file. Portions copied from gnulib-tool.
77177         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
77179 2007-09-08  Jim Meyering  <jim@meyering.net>
77181         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
77182         * lib/fpending.h: Rename from __fpending.h.
77183         * lib/fpending.c: Rename from __fpending.c.
77184         Include "fpending.h", not "__fpending.h".
77185         * lib/__fpending.h, lib/__fpending.c: Remove files.
77186         * modules/fpending (Files): Reflect new file names.
77187         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
77189 2007-09-08  Bruno Haible  <bruno@clisp.org>
77191         * m4/inttypes-h.m4: Remove stub file.
77193 2007-09-07  Simon Josefsson  <simon@josefsson.org>
77195         * doc/headers/stdint.texi: Discuss #include_next issue.
77197 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77199         * build-aux/bootstrap: Remove obsolete comment about wget --help.
77201 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77203         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
77204         in variable name.
77206 2007-09-03  Jim Meyering  <jim@meyering.net>
77208         New module: git-version-gen.
77209         * modules/git-version-gen: New file.
77211         Import changes from coreutils for bootstrap script.
77213         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
77215         bootstrap: uses rsync to download the .po files
77216         * build-aux/bootstrap (po_download_command_format): New global.
77217         (download_po_files): Use rsync.
77218         (update_po_files): Don't remove .po files after download,
77219         so future rsync runs can take advantage of the copies.
77221         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
77223         Solve the unnecessary-.po-file-regeneration problem once and for all.
77224         * build-aux/bootstrap (download_po_files): New function, renamed from
77225         get_translations.  Now, downloads, but doesn't update LINGUAS.
77226         (update_po_files): New function.
77228         bootstrap: Ignore more.
77229         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
77230         uniwidth to e.g., lib/.gitignore.
77231         (slurp): Handle the sys_stat_.h -> sys mapping, too.
77233         * build-aux/bootstrap: New setting: vc_ignore.
77234         (insert_sorted_if_absent): Create $file if absent.
77235         Adapt to new, possibly empty, list: $vc_ignore.
77237         bootstrap: generate more ignorable names
77238         * build-aux/bootstrap (slurp): When generating ignorable names,
77239         also map .sin to .sed, .gperf to .c, and .y to .c.
77241 2007-09-03  Jim Meyering  <jim@meyering.net>
77243         * build-aux/git-version-gen: New file, from coreutils.  For details, see
77244         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
77246 2007-09-02  Bruno Haible  <bruno@clisp.org>
77248         Fix mis-recognition of 'mcs' on QNX 6.
77249         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
77250         output contains the string "Mono".
77251         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
77252         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
77254 2007-09-01  Bruno Haible  <bruno@clisp.org>
77256         Fix collision between uniwidth/* and linebreak modules.
77257         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
77258         u32_width): Remove declarations.
77259         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
77260         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
77261         streq3, streq2, streq1, streq0): Remove functions.
77262         (STREQ): Remove macro.
77263         (is_cjk_encoding): Remove function.
77264         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
77265         (uc_width, u8_width, u16_width, u32_width): Remove functions.
77266         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
77267         * NEWS: Document the change.
77269 2007-09-01  Bruno Haible  <bruno@clisp.org>
77271         * lib/streq.h: Add double-inclusion guard.
77273 2007-09-01  Karl Berry  <karl@gnu.org>
77275         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
77277 2007-08-28  Jim Meyering  <jim@meyering.net>
77279         Rename mreadlink_with_size to areadlink_with_size.
77280         * NEWS: Document the change.
77281         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
77282         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
77283         * lib/mreadlink.h: Rename this to...
77284         * lib/areadlink.h: ...this.
77285         * modules/mreadlink-with-size: Rename this to...
77286         * modules/areadlink-with-size: ...this.
77287         * lib/canonicalize.c: Reflect the renaming.
77288         * modules/canonicalize: Likewise.
77290 2007-08-26  Bruno Haible  <bruno@clisp.org>
77292         * gnulib-tool (func_import): When deciding which files to remove,
77293         consider also dangling symbolic links.
77294         Reported by Eric Blake.
77296 2007-08-26  Bruno Haible  <bruno@clisp.org>
77298         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
77300 2007-08-23  Simon Josefsson  <simon@josefsson.org>
77302         * lib/readline.c: Don't include getline.h, the prototype is now
77303         found in stdio.h.
77305 2007-08-23  Jim Meyering  <jim@meyering.net>
77307         Getdelim touchup.
77308         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
77309         around the funlockfile call, since funlockfile never sets errno.
77310         Don't set errno upon failed realloc.
77312 2007-08-22  Eric Blake  <ebb9@byu.net>
77314         Getline touchups.
77315         * lib/getdelim.c (getdelim): Revert regression that required *n to
77316         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
77317         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
77318         getdelim, rather than whether implementation is missing.
77319         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
77320         * lib/stdio_.h (getline): Also declare if replacement is
77321         required.
77322         * doc/functions/getdelim.texi: New file.
77323         * doc/functions/getline.texi: Likewise.
77324         * doc/gnulib.texi (Function Substitutes): Add new files.
77325         Reported by Bruno Haible.
77327 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
77329         * users.txt: Add Guile.
77331 2007-08-22  Eric Blake  <ebb9@byu.net>
77333         * tests/test-getdelim.c (main): Use remove, not unlink.
77334         * tests/test-getline.c (main): Likewise.
77336         Move getline and getdelim into stdio.h, per POSIX 200x.
77337         * modules/getline (Files): Remove getline.h.
77338         (Depends-on): Add stdio.
77339         (configure.ac): Add module indicator.
77340         * modules/getdelim (Files): Remove getdelim.h.
77341         (Depends-on): Add stdio.
77342         (configure.ac): Add module indicator.
77343         * modules/stdio (Makefile.am): Work with new indicators.
77344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77345         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
77346         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77347         * lib/getdelim.h: Delete.
77348         * lib/getline.h: Delete.
77349         * lib/stdio_.h (getdelim, getline): Declare.
77350         * modules/getdelim-tests: New module.
77351         * modules/getline-tests: Likewise.
77352         * tests/test-getdelim.c: New file.
77353         * tests/test-getline.c: Likewise.
77354         * NEWS: Document the change.
77355         * lib/getline.c: Update choice of header.
77356         * lib/csharpcomp.c: Likewise.
77357         * lib/getpass.c: Likewise.
77358         * lib/javacomp.c: Likewise.
77359         * lib/javaversion.c: Likewise.
77360         * lib/yesno.c: Likewise.
77361         * lib/getdelim.c: Likewise.
77362         (getdelim): Set errno on failure, and avoid memory leak.
77364 2007-08-19  Bruno Haible  <bruno@clisp.org>
77366         * modules/closein (Depends-on): Add freadahead.
77367         * lib/closein.c: Include freadahead.h.
77368         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
77369         is zero.
77371 2007-08-19  Bruno Haible  <bruno@clisp.org>
77373         * modules/freadahead-tests: New file.
77374         * tests/test-freadahead.sh: New file.
77375         * tests/test-freadahead.c: New file.
77377         * modules/freadahead: New file.
77378         * lib/freadahead.h: New file.
77379         * lib/freadahead.c: New file.
77380         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
77381         fbufmode, fpurge, freadable, fwritable.
77383 2007-08-19  Eric Blake  <ebb9@byu.net>
77385         Test yesno in combination with closein.
77386         * lib/yesno.c (yesno): Document use of stdin.
77387         * modules/yesno-tests (Files): New module.
77388         * tests/test-yesno.c (main): New file.
77389         * tests/test-yesno.sh: Likewise.
77391 2007-08-19  Bruno Haible  <bruno@clisp.org>
77393         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
77394         * lib/fseeko.c (rpl_fseeko): Likewise.
77395         * lib/fseterr.c (fseterr): Likewise.
77397 2007-08-19  Bruno Haible  <bruno@clisp.org>
77399         * tests/test-lseek.c (main): Disable a test for BeOS.
77400         * doc/functions/lseek.texi: Document the BeOS bug.
77402 2007-08-19  Bruno Haible  <bruno@clisp.org>
77403             Eric Blake  <ebb9@byu.net>
77405         * lib/lseek.c: Include <sys/stat.h>.
77406         (rpl_lseek): Add workaround code also for Unix platforms.
77407         Needed for BeOS.
77408         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
77409         * doc/functions/lseek.texi: Document BeOS definiency.
77411 2007-08-18  Bruno Haible  <bruno@clisp.org>
77413         * modules/fstrcmp-tests: New file.
77414         * tests/test-fstrcmp.c: New file.
77416 2007-08-18  Bruno Haible  <bruno@clisp.org>
77418         * modules/fstrcmp: New file, from GNU gettext with modifications.
77419         * lib/fstrcmp.h: New file, from GNU gettext.
77420         * lib/fstrcmp.c: New file, from GNU gettext.
77421         * MODULES.html.sh (String handling): Add fstrcmp.
77423 2007-08-18  Bruno Haible  <bruno@clisp.org>
77425         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
77426         'bool'.
77427         (diag, compareseq): Remove const from the ctxt argument.
77428         (USE_HEURISTIC): Undefine at the end.
77430 2007-08-18  Jim Meyering  <jim@meyering.net>
77432         New file: lib/idcache.h
77433         * NEWS: Mention the addition.
77434         * modules/idcache (Files): Add lib/idcache.h
77435         * lib/idcache.c: Include "idcache.h".
77436         Don't include <sys/types.h>.
77437         Add a FIXME comment.
77438         Move file-scoped "static" declarations to the top.
77439         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
77441 2007-08-17  Bruno Haible  <bruno@clisp.org>
77442         and Paul Eggert  <eggert@cs.ucla.edu>
77444         * MODULES.html.sh: Add diffseq.
77445         * modules/diffseq: New file.
77446         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
77447         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
77449 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77451         Import changes from coreutils for bootstrap script.
77453         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
77455         * build-aux/bootstrap (slurp): Work even in environments where
77456         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
77457         current code does not slurp files whose names start with ".", and
77458         this looks like it might be a troublesome area.
77460         2007-07-11  Jim Meyering  <jim@meyering.net>
77462         If there's a GPL vN copyright comment, require that N == 3.
77464         2007-07-08  Jim Meyering  <jim@meyering.net>
77466         Run the coreutils-specific code only if tests/Makefile.am.in exists.
77467         * build-aux/bootstrap (mam_template): Move definition out of loop.
77469         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
77471         * build-aux/bootstrap (symlink_to_dir): Rename function from
77472         symlink_to_gnulib.  Add a directory parameter.  Update all
77473         callers.
77474         (cp_mark_as_generated): Also check for -- and link to -- files in
77475         gl/.
77477         2007-07-08  Jim Meyering  <jim@meyering.net>
77479         Adapt to deeper hierarchy in gnulib.
77480         * build-aux/bootstrap (symlink_to_dir): If the destination
77481         directory doesn't exist, create it. This is required at least for
77482         "lib/uniwidth/cjk.h".
77484         2007-05-15  Jim Meyering  <jim@meyering.net>
77486         * build-aux/bootstrap: Now that generated Makefile.am files
77487         are no longer under version control, they must be created at
77488         bootstrap time.
77490 2007-08-14  Ben Pfaff  <blp@gnu.org>
77492         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
77494 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77496         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
77497         given the changes below.
77498         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
77499         even on hosts that have padding bits beyond the supported 64.
77501 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77503         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
77504         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
77505         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
77506         depends on it.
77507         (xstrtol_error): Remove.
77508         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
77509         but with a different signature.
77510         (ATTRIBUTE_NORETURN, __attribute__): New macros.
77511         * lib/xstrtol-error.c: Include exitfail.h.
77512         (xstrtol_fatal): New function, with a different signature from the
77513         old xstrtol_error, so that the caller need not worry about passing
77514         in an exit status, or about storage management of the option argument.
77515         (xstrtol_error): Now a static function.  Redo signature to
77516         implement xstrtol_fatal.  Output the correct number of hyphens in
77517         front of the option so that the caller need not worry about
77518         storage management.
77519         (N_): New macro.
77520         (_): Remove; not used now.
77521         * modules/xstrtol: Depend on getopt.
77522         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
77523         of old STRTOL_FATAL_ERROR macro.
77524         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
77525         of test program.
77526         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
77527         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
77529 2007-08-08  Eric Blake  <ebb9@byu.net>
77531         * lib/xstrtol-error.c: Add missing include.
77533         Move xstrtol messages into gnulib domain, when --pobase is used.
77534         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
77535         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
77536         * modules/xstrtol (Files): Distribute new file.
77537         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
77538         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
77539         * tests/test-xstrtol.c: ...into new file.
77540         * tests/test-xstrtoul.c: Also test xstrtoul.
77541         * tests/test-xstrtoimax.c: Also test xstrtoimax.
77542         * tests/test-xstrtoumax.c: Also test xstrtoumax.
77543         * tests/test-xstrtol.sh: Drive the tests.
77544         * tests/test-xstrtoimax.sh: Likewise.
77545         * tests/test-xstrtoumax.sh: Likewise.
77546         * modules/xstrtol-tests: New module.
77547         * modules/xstrtoimax-tests: Likewise.
77548         * modules/xstrtoumax-tests: Likewise.
77550 2007-08-08  Jim Meyering  <jim@meyering.net>
77552         New function: mfile_name_concat.
77553         * lib/filenamecat.c (mfile_name_concat): New function, just like
77554         file_name_concat, but return NULL upon failure rather than exiting
77555         with a diagnostic.
77556         * lib/filenamecat.h: Declare it.
77558 2007-08-07  Bruno Haible  <bruno@clisp.org>
77560         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
77561         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
77562         warning from gcc.
77563         Reported by Eric Blake.
77565 2007-08-07  Simon Josefsson  <simon@josefsson.org>
77567         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
77568         * modules/crypto/arcfour (License): Likewise.
77569         * modules/crypto/des-tests (License): Likewise.
77570         * modules/crypto/gc-arctwo-tests (License): Likewise.
77571         * modules/crypto/gc-des-tests (License): Likewise.
77572         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
77573         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
77574         * modules/crypto/gc-md2-tests (License): Likewise.
77575         * modules/crypto/gc-md4-tests (License): Likewise.
77576         * modules/crypto/gc-md5-tests (License): Likewise.
77577         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
77578         * modules/crypto/gc-rijndael-tests (License): Likewise.
77579         * modules/crypto/gc-sha1-tests (License): Likewise.
77580         * modules/crypto/gc-tests (License): Likewise.
77581         * modules/crypto/hmac-md5 (License): Likewise.
77582         * modules/crypto/hmac-sha1 (License): Likewise.
77583         * modules/crypto/md2-tests (License): Likewise.
77584         * modules/crypto/md4-tests (License): Likewise.
77585         * modules/crypto/md5 (License): Likewise.
77586         * modules/crypto/rijndael (License): Likewise.
77587         * modules/crypto/sha1 (License): Likewise.
77588         * modules/memxor (License): Likewise.
77590 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77591         and Bruno Haible  <bruno@clisp.org>
77593         * NEWS: Describe interface changes to human, xstrtol.
77594         * lib/human.h: Include <xstrtol.h>.
77595         (human_options): Return enum strtol_error, not int.  Remove
77596         bool arg; take int * instead.
77597         * lib/human.c: Don't include "gettext.h".
77598         (_): Remove; no longer used.
77599         Don't include <xstrtol.h>, since human.h does it.
77600         (human_options): Adjust to abovementioned interface changes.
77601         Do not report error to stderr; that's now the caller's
77602         responsibility.
77603         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
77604         interface change.
77605         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
77606         Str, Argument_type_string.  All uses changed.  Put " argument"
77607         in diagnostics to make them clearer.  Change wording of suffix
77608         message for clarity.
77609         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
77610         Argument_type_string.
77611         (STRTOL_FATAL_WARN): Remove; no longer used.
77612         * modules/human (Depends-on): Remove gettext-h.
77614 2007-08-06  Simon Josefsson  <simon@josefsson.org>
77616         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
77618 2007-07-31  Bruno Haible  <bruno@clisp.org>
77620         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
77621         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
77622         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
77624 2007-07-31  Bruno Haible  <bruno@clisp.org>
77626         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
77627         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
77629 2007-07-30  Bruno Haible  <bruno@clisp.org>
77631         * modules/base64 (License): Use the synonymous term "LGPLv2+".
77632         * modules/c-ctype (License): Likewise.
77633         * modules/c-strcase (License): Likewise.
77634         * modules/check-version (License): Likewise.
77635         * modules/iconv (License): Likewise.
77636         * modules/iconv_open (License): Likewise.
77637         * modules/read-file (License): Likewise.
77638         * modules/striconv (License): Likewise.
77639         * modules/strverscmp (License): Likewise.
77640         * modules/vasprintf (License): Likewise.
77641         * modules/crypto/des (License): Likewise.
77642         * modules/crypto/gc (License): Likewise.
77643         * modules/crypto/gc-arcfour (License): Likewise.
77644         * modules/crypto/gc-arctwo (License): Likewise.
77645         * modules/crypto/gc-des (License): Likewise.
77646         * modules/crypto/gc-hmac-md5 (License): Likewise.
77647         * modules/crypto/gc-hmac-sha1 (License): Likewise.
77648         * modules/crypto/gc-md2 (License): Likewise.
77649         * modules/crypto/gc-md4 (License): Likewise.
77650         * modules/crypto/gc-md5 (License): Likewise.
77651         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
77652         * modules/crypto/gc-random (License): Likewise.
77653         * modules/crypto/gc-rijndael (License): Likewise.
77654         * modules/crypto/gc-sha1 (License): Likewise.
77655         * modules/crypto/md2 (License): Likewise.
77656         * modules/crypto/md4 (License): Likewise.
77658 2007-07-30  Jim Meyering  <jim@meyering.net>
77660         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
77661         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
77662         it has valid stat data.  This bug would cause du not to count the
77663         sizes of inaccessible directories.
77664         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
77665         in <http://bugzilla.redhat.com/250077>.
77667 2007-07-25  Peter O'Gorman  <peter@pogma.com>
77668             Bruno Haible  <bruno@clisp.org>
77670         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
77671         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
77672         #include_next, gives a diagnostic about it, but reports no error in
77673         the exit code.
77674         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
77676 2007-07-24  Ben Pfaff  <blp@gnu.org>
77678         Improve name: "count-one-bits" is better than "popcount".
77679         * MODULES.html.sh: Update name.
77680         * lib/popcount.h: Renamed lib/count-one-bits.h.
77681         (popcount): Renamed count_one_bits.
77682         (popcountl): Renamed count_one_bits_l.
77683         (popcountll): Renamed count_one_bits_ll.
77684         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
77685         * modules/popcount: Renamed module/count-one-bits.
77686         * modules/popcount-tests: Renamed module/count-one-bits-tests.
77687         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
77689 2007-07-23  Ben Pfaff  <blp@gnu.org>
77691         * lib/popcount.h (popcount32): Reduce size of constants, to allow
77692         better code generation, and add U to large constants to avoid
77693         warnings, in non-GCC case.
77694         Suggested by Bruno Haible.
77696 2007-07-23  Ben Pfaff  <blp@gnu.org>
77698         * lib/popcount.h: Use verify_true instead of if...abort.
77699         * modules/popcount: Depend on verify module.
77700         Suggested by Jim Meyering.
77702 2007-07-23  Bruno Haible  <bruno@clisp.org>
77704         * gnulib-tool (func_import): Create a .cvsignore file also when the
77705         directory is not yet in CVS but the toplevel directory is. When
77706         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
77707         Reported by Karl Berry.
77709 2007-07-22  Ben Pfaff  <blp@gnu.org>
77711         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
77712         case.
77713         Suggested by Eric Blake.
77715 2007-07-22  Ben Pfaff  <blp@gnu.org>
77717         New module: popcount.
77718         * MODULES.html.sh: Add popcount.
77719         * modules/popcount: New file.
77720         * modules/popcount-tests: New file.
77721         * tests/test-popcount.c: New file.
77722         * lib/popcount.h: New file.
77723         * m4/popcount.m4: New file.
77725 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77727         * build-aux/announce-gen: Update to GPLv3.
77729         * build-aux/config.guess: Update from config.
77731 2007-07-21  Bruno Haible  <bruno@clisp.org>
77733         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
77734         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
77736 2007-07-20  Jim Meyering  <jim@meyering.net>
77738         * check-module: Diagnose a self-dependency.
77740 2007-07-19  Bruno Haible  <bruno@clisp.org>
77742         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
77743         empty.
77744         Reported by Eric Blake.
77746 2007-07-18  Bruno Haible  <bruno@clisp.org>
77748         * gnulib-tool: New options --po-base, --po-domain.
77749         (func_usage): Document them.
77750         (pobase, po_domain): New variables.
77751         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
77752         DEFAULT_TEXT_DOMAIN.
77753         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
77754         (func_import): Consider pobase and po_domain. Create a po/ directory.
77755         (func_create_testdir): Set pobase and po_domain to empty.
77756         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
77757         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
77759 2007-07-18  Bruno Haible  <bruno@clisp.org>
77761         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77762         EXTRA_DIST augmentation for files in build-aux/.
77764 2007-07-16  Bruno Haible  <bruno@clisp.org>
77766         * modules/lseek (License): Use the synonymous term "LGPLv2+".
77767         * modules/getdelim (License): Likewise.
77769 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77771         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
77772         * modules/d-type (License): Likewise.
77773         * modules/extensions (License): Likewise.
77774         * modules/fnmatch (License): Likewise.
77775         * modules/fseeko (License): Likewise.
77776         * modules/getaddrinfo (License): Likewise.
77777         * modules/getline (License): Likewise.
77778         * modules/getlogin_r (License): Likewise.
77779         * modules/getpass (License): Likewise.
77780         * modules/gettimeofday (License): Likewise.
77781         * modules/glob (License): Likewise.
77782         * modules/inet_ntop (License): Likewise.
77783         * modules/malloc (License): Likewise.
77784         * modules/malloca (License): Likewise.
77785         * modules/memmem (License): Likewise.
77786         * modules/mempcpy (License): Likewise.
77787         * modules/memset (License): Likewise.
77788         * modules/minmax (License): Likewise.
77789         * modules/mktime (License): Likewise.
77790         * modules/netinet_in (License): Likewise.
77791         * modules/pathmax (License): Likewise.
77792         * modules/poll (License): Likewise.
77793         * modules/regex (License): Likewise.
77794         * modules/snprintf (License): Likewise.
77795         * modules/stdbool (License): Likewise.
77796         * modules/stdint (License): Likewise.
77797         * modules/stdio (License): Likewise.
77798         * modules/strcase (License): Likewise.
77799         * modules/strcasestr (License): Likewise.
77800         * modules/strdup (License): Likewise.
77801         * modules/string (License): Likewise.
77802         * modules/strndup (License): Likewise.
77803         * modules/strnlen (License): Likewise.
77804         * modules/strpbrk (License): Likewise.
77805         * modules/strptime (License): Likewise.
77806         * modules/strsep (License): Likewise.
77807         * modules/sys_select (License): Likewise.
77808         * modules/sys_socket (License): Likewise.
77809         * modules/sys_stat (License): Likewise.
77810         * modules/sys_time (License): Likewise.
77811         * modules/time (License): Likewise.
77812         * modules/time_r (License): Likewise.
77813         * modules/timegm (License): Likewise.
77814         * modules/unistd (License): Likewise.
77815         * modules/vsnprintf (License): Likewise.
77816         * modules/wctype (License): Likewise.
77818 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77820         * modules/argz (License): LGPLv2+.
77822 2007-07-15  Karl Berry  <karl@gnu.org>
77824         * doc/gnulib.texi: revise node structure per new fdl.texi.
77826 2007-07-14  Bruno Haible  <bruno@clisp.org>
77828         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
77829         the output file.
77830         * lib/uniname/uninames.h: Regenerated.
77832 2007-07-14  Karl Berry  <karl@gnu.org>
77834         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
77835         omitting sectioning and index commands.
77837 2007-07-13  Bruno Haible  <bruno@clisp.org>
77839         New gnulib-tool option --more-symlinks.
77840         * gnulib-tool (func_usage): Document --more-symlinks.
77841         (do_copyrights): New variable.
77842         Recognize option --more-symlinks.
77843         (func_import): Don't add a copyright notice transform to
77844         sed_transform_lib_file if do_copyrights is empty.
77846 2007-07-13  Bruno Haible  <bruno@clisp.org>
77848         * lib/vasnprintf.c (decimal_point_char): Define also if
77849         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
77850         && !NEED_PRINTF_DIRECTIVE_A.
77851         Reported by Clemens Koller <clemens.koller@anagramm.de> via
77852         Gary V. Vaughan <gary@gnu.org>.
77854 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
77856         * lib/inttypes_.h: Undo previous change, since it was fixed
77857         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
77859 2007-07-13  Bruno Haible  <bruno@clisp.org>
77861         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
77862         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
77864 2007-07-13  Jim Meyering  <jim@meyering.net>
77866         df: Don't fail for Tru64's "file-on-file mount".
77867         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
77868         so we fall through and use statfs instead.  Details here:
77869         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
77870         Reported by Albert Chin.
77872 2007-07-13  Bruno Haible  <bruno@clisp.org>
77874         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
77875         * modules/configmake (License): Likewise.
77876         * modules/gettext (License): Likewise.
77877         * modules/gettext-h (License): Likewise.
77878         * modules/include_next (License): Likewise.
77879         * modules/link-warning (License): Likewise.
77880         * modules/localcharset (License): Likewise.
77881         * modules/localename (License): Likewise.
77882         * modules/lock (License): Likewise.
77883         * modules/relocatable-lib-lgpl (License): Likewise.
77884         * modules/size_max (License): Likewise.
77885         * modules/vasnprintf (License): Likewise.
77886         * modules/wchar (License): Likewise.
77887         * modules/xsize (License): Likewise.
77889 2007-07-13  Bruno Haible  <bruno@clisp.org>
77891         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
77892         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
77894 2007-07-12  Bruno Haible  <bruno@clisp.org>
77896         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
77897         in the modules files.
77899 2007-07-11  Karl Berry  <karl@gnu.org>
77901         * MODULES.html.sh (func_module): use
77902          sed -e '\|^'"${includefile}"'$|d'
77903          instead of /.../d, to avoid errors on $includefile's containing /.
77905 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77907         * gnulib-tool (func_import): Avoid duplication of --avoid
77908         statements
77909         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
77910         names to `_' in variable names.
77912 2007-07-10  Eric Blake  <ebb9@byu.net>
77914         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
77915         * NEWS: Document this change.
77917 2007-07-08  Bruno Haible  <bruno@clisp.org>
77919         Update to Unicode 5.0.
77920         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
77921         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
77922         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
77923         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
77924         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
77925         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
77926         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
77927         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
77928         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
77929         U+10A3F, U+1D242..U+1D244.
77930         (nonspacing_table_ind): Update.
77931         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
77932         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
77934 2007-07-08  Bruno Haible  <bruno@clisp.org>
77936         Update to Unicode 5.0.
77937         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
77938         code transform. Extend the name index field of unicode_name_to_code and
77939         unicode_code_to_name from 16 to 24 bits.
77940         * lib/uniname/uniname.c (unicode_character_name,
77941         unicode_name_character): Add the range 0x12xxx to the code transform.
77942         * lib/uniname/uninames.h: Regenerated.
77943         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
77945 2007-07-07  Bruno Haible  <bruno@clisp.org>
77947         * modules/wcwidth-tests: New file.
77948         * tests/test-wcwidth.c: New file.
77950         Work around MacOS X wcwidth() bug.
77951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
77952         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
77953         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
77954         original wcwidth in non-UTF-8 locales.
77955         * modules/wcwidth (Depends-on): Add localcharset, streq,
77956         uniwidth/width.
77957         * doc/functions/wcwidth.texi: Update.
77959 2007-07-07  Bruno Haible  <bruno@clisp.org>
77961         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
77962         (wcwidth): New declaration.
77963         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
77964         macros.
77965         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
77966         here. Prepare for creating <wchar.h> unconditionally.
77967         * modules/wchar (Depends-on): Add link-warning.
77968         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
77969         REPLACE_WCWIDTH, and GL_LINK_WARNING.
77970         * lib/wcwidth.h: Remove file.
77971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
77972         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
77973         * modules/wcwidth (Files): Remove lib/wcwidth.h.
77974         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
77975         (Include): Replace wcwidth.h with <wchar.h>.
77976         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
77977         * lib/mbchar.h: Don't include wcwidth.h.
77978         * lib/mbswidth.c: Likewise.
77979         * NEWS: Mention the change.
77981 2007-07-07  Bruno Haible  <bruno@clisp.org>
77983         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
77984         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
77985         definition with an external declaration.
77986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
77987         defined as a function. Remove AC_C_INLINE requirement.
77988         * modules/wcwidth (Files): Add lib/wcwidth.c.
77989         (Makefile.am): Remove redundant statement.
77991 2007-07-07  Bruno Haible  <bruno@clisp.org>
77993         * MODULES.html.sh (Unicode string functions): Add the new modules.
77995         * tests/uniwidth/test-u32-strwidth.c: New file.
77996         * modules/uniwidth/u32-strwidth-tests: New file.
77998         * lib/uniwidth/u32-strwidth.c: New file.
77999         * modules/uniwidth/u32-strwidth: New file.
78001         * tests/uniwidth/test-u16-strwidth.c: New file.
78002         * modules/uniwidth/u16-strwidth-tests: New file.
78004         * lib/uniwidth/u16-strwidth.c: New file.
78005         * modules/uniwidth/u16-strwidth: New file.
78007         * tests/uniwidth/test-u8-strwidth.c: New file.
78008         * modules/uniwidth/u8-strwidth-tests: New file.
78010         * lib/uniwidth/u8-strwidth.c: New file.
78011         * modules/uniwidth/u8-strwidth: New file.
78013         * tests/uniwidth/test-u32-width.c: New file.
78014         * modules/uniwidth/u32-width-tests: New file.
78016         * lib/uniwidth/u32-width.c: New file.
78017         * modules/uniwidth/u32-width: New file.
78019         * tests/uniwidth/test-u16-width.c: New file.
78020         * modules/uniwidth/u16-width-tests: New file.
78022         * lib/uniwidth/u16-width.c: New file.
78023         * modules/uniwidth/u16-width: New file.
78025         * tests/uniwidth/test-u8-width.c: New file.
78026         * modules/uniwidth/u8-width-tests: New file.
78028         * lib/uniwidth/u8-width.c: New file.
78029         * modules/uniwidth/u8-width: New file.
78031         * tests/uniwidth/test-uc_width.c: New file.
78032         * modules/uniwidth/width-tests: New file.
78034         * lib/uniwidth/width.c: New file, from GNU libiconv.
78035         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
78036         * modules/uniwidth/width: New file.
78038         * lib/uniwidth.h: New file, from GNU libiconv.
78039         * modules/uniwidth/base: New file.
78041 2007-07-07  Bruno Haible  <bruno@clisp.org>
78043         * lib/uniname.h: New file, from GNU gettext.
78044         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
78045         * lib/uniname/uninames.h: New file, from GNU gettext.
78046         * lib/uniname/uniname.c: New file, from GNU gettext.
78047         * tests/uniname/test-uninames.sh: New file.
78048         * tests/uniname/test-uninames.c: New file, from GNU gettext.
78049         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
78050         * modules/uniname/base: New file.
78051         * modules/uniname/uniname: New file.
78052         * modules/uniname/uniname-tests: New file.
78053         * MODULES.html.sh (Unicode string functions): Add the new modules.
78055 2007-07-06  Bruno Haible  <bruno@clisp.org>
78057         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
78059 2007-07-06  Bruno Haible  <bruno@clisp.org>
78061         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
78062         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
78063         includes <cygwin/sys_time.h> which includes <sys/select.h> which
78064         include <sys/time.h>.
78065         Reported by Eric Blake.
78067 2007-07-06  Eric Blake  <ebb9@byu.net>
78069         Fix testing canonicalize on cygwin.
78070         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
78071         Revert patch from 2007-06-19.
78072         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
78073         canonicalize module is also in use.
78074         * tests/test-canonicalize.c: New file.
78075         * tests/test-canonicalize.sh: Likewise.
78076         * modules/canonicalize-tests: Likewise.
78078 2007-07-06  Jim Meyering  <jim@meyering.net>
78080         * lib/getugroups.c (getugroups): Detect getgrent failure.
78081         Adjust comment to reflect reality: this function may return -1.
78083 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
78085         * build-aux/bootstrap (TP_URL,get_translations): Update to use
78086         the new TP address.
78087         (usage): Fix typo
78088         (gnulib_mk): New variable.
78090 2007-07-05  Jim Meyering  <jim@meyering.net>
78092         Don't let endgrent clobber errno, no matter how improbable.
78093         * lib/getugroups.c (getugroups): Save and restore errno around
78094         endgrent call.
78096         Close the group DB even when failing with 2^31 or more members.
78097         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
78099 2007-07-04  Jim Meyering  <jim@meyering.net>
78101         * lib/getugroups.h: New file.
78102         * lib/getugroups.c: Include "getugroups.h".
78103         Remove uses of "register" keyword.
78104         Move local variable, "cp", down into scope where used.
78105         Give "username" parameter the "const" attribute.
78106         * modules/getugroups (Files): Add lib/getugroups.h
78108 2007-07-04  Karl Berry  <karl@gnu.org>
78110         * MODULES.html.sh (func_all_modules): Complete rename of
78111         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
78113 2007-07-02  Bruno Haible  <bruno@clisp.org>
78115         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
78116         mode, when inttypes.h comes from gnulib.
78117         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
78119 2007-07-02  Simon Josefsson  <simon@josefsson.org>
78121         * NEWS: Mention lgpl module name change.
78123         * modules/lgpl-2.1: Renamed from lgpl.
78125         * NEWS: Mention gpl module name change.
78127         * modules/gpl-3.0: New file, based on gpl-2.0.
78129         * modules/gpl-2.0: Renamed from gpl.
78131         * modules/gpl: Fix filename, doc/gpl.texi is now found at
78132         doc/gpl-2.0.texi.
78134 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78136         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
78137         #define __STDC_LIMIT_MACROS temporarily while including
78138         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
78139         Problem reported by Joel E. Denny in
78140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
78142 2007-07-01  Bruno Haible  <bruno@clisp.org>
78144         * lib/unistdio.h: New file.
78145         * lib/unistdio/u-asnprintf.h: New file.
78146         * lib/unistdio/u-asprintf.h: New file.
78147         * lib/unistdio/u-printf-args.c: New file.
78148         * lib/unistdio/u-printf-args.h: New file.
78149         * lib/unistdio/u-printf-parse.h: New file.
78150         * lib/unistdio/u-snprintf.h: New file.
78151         * lib/unistdio/u-sprintf.h: New file.
78152         * lib/unistdio/u-vasprintf.h: New file.
78153         * lib/unistdio/u-vsnprintf.h: New file.
78154         * lib/unistdio/u-vsprintf.h: New file.
78155         * lib/unistdio/ulc-asnprintf.c: New file.
78156         * lib/unistdio/ulc-asprintf.c: New file.
78157         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
78158         * lib/unistdio/ulc-printf-parse.c: New file.
78159         * lib/unistdio/ulc-snprintf.c: New file.
78160         * lib/unistdio/ulc-sprintf.c: New file.
78161         * lib/unistdio/ulc-vasnprintf.c: New file.
78162         * lib/unistdio/ulc-vasprintf.c: New file.
78163         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
78164         * lib/unistdio/ulc-vsnprintf.c: New file.
78165         * lib/unistdio/ulc-vsprintf.c: New file.
78166         * lib/unistdio/u8-asnprintf.c: New file.
78167         * lib/unistdio/u8-asprintf.c: New file.
78168         * lib/unistdio/u8-printf-parse.c: New file.
78169         * lib/unistdio/u8-snprintf.c: New file.
78170         * lib/unistdio/u8-sprintf.c: New file.
78171         * lib/unistdio/u8-vasnprintf.c: New file.
78172         * lib/unistdio/u8-vasprintf.c: New file.
78173         * lib/unistdio/u8-vsnprintf.c: New file.
78174         * lib/unistdio/u8-vsprintf.c: New file.
78175         * lib/unistdio/u8-u8-asnprintf.c: New file.
78176         * lib/unistdio/u8-u8-asprintf.c: New file.
78177         * lib/unistdio/u8-u8-snprintf.c: New file.
78178         * lib/unistdio/u8-u8-sprintf.c: New file.
78179         * lib/unistdio/u8-u8-vasnprintf.c: New file.
78180         * lib/unistdio/u8-u8-vasprintf.c: New file.
78181         * lib/unistdio/u8-u8-vsnprintf.c: New file.
78182         * lib/unistdio/u8-u8-vsprintf.c: New file.
78183         * lib/unistdio/u16-asnprintf.c: New file.
78184         * lib/unistdio/u16-asprintf.c: New file.
78185         * lib/unistdio/u16-printf-parse.c: New file.
78186         * lib/unistdio/u16-snprintf.c: New file.
78187         * lib/unistdio/u16-sprintf.c: New file.
78188         * lib/unistdio/u16-vasnprintf.c: New file.
78189         * lib/unistdio/u16-vasprintf.c: New file.
78190         * lib/unistdio/u16-vsnprintf.c: New file.
78191         * lib/unistdio/u16-vsprintf.c: New file.
78192         * lib/unistdio/u16-u16-asnprintf.c: New file.
78193         * lib/unistdio/u16-u16-asprintf.c: New file.
78194         * lib/unistdio/u16-u16-snprintf.c: New file.
78195         * lib/unistdio/u16-u16-sprintf.c: New file.
78196         * lib/unistdio/u16-u16-vasnprintf.c: New file.
78197         * lib/unistdio/u16-u16-vasprintf.c: New file.
78198         * lib/unistdio/u16-u16-vsnprintf.c: New file.
78199         * lib/unistdio/u16-u16-vsprintf.c: New file.
78200         * lib/unistdio/u32-asnprintf.c: New file.
78201         * lib/unistdio/u32-asprintf.c: New file.
78202         * lib/unistdio/u32-printf-parse.c: New file.
78203         * lib/unistdio/u32-snprintf.c: New file.
78204         * lib/unistdio/u32-sprintf.c: New file.
78205         * lib/unistdio/u32-vasnprintf.c: New file.
78206         * lib/unistdio/u32-vasprintf.c: New file.
78207         * lib/unistdio/u32-vsnprintf.c: New file.
78208         * lib/unistdio/u32-vsprintf.c: New file.
78209         * lib/unistdio/u32-u32-asnprintf.c: New file.
78210         * lib/unistdio/u32-u32-asprintf.c: New file.
78211         * lib/unistdio/u32-u32-snprintf.c: New file.
78212         * lib/unistdio/u32-u32-sprintf.c: New file.
78213         * lib/unistdio/u32-u32-vasnprintf.c: New file.
78214         * lib/unistdio/u32-u32-vasprintf.c: New file.
78215         * lib/unistdio/u32-u32-vsnprintf.c: New file.
78216         * lib/unistdio/u32-u32-vsprintf.c: New file.
78217         * tests/unistdio/test-ulc-asnprintf1.c: New file.
78218         * tests/unistdio/test-ulc-asnprintf1.h: New file.
78219         * tests/unistdio/test-ulc-printf1.h: New file.
78220         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
78221         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
78222         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
78223         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
78224         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
78225         * tests/unistdio/test-ulc-vasprintf1.c: New file.
78226         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
78227         * tests/unistdio/test-ulc-vsprintf1.c: New file.
78228         * tests/unistdio/test-u8-asnprintf1.c: New file.
78229         * tests/unistdio/test-u8-asnprintf1.h: New file.
78230         * tests/unistdio/test-u8-printf1.h: New file.
78231         * tests/unistdio/test-u8-vasnprintf1.c: New file.
78232         * tests/unistdio/test-u8-vasnprintf2.c: New file.
78233         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
78234         * tests/unistdio/test-u8-vasnprintf3.c: New file.
78235         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
78236         * tests/unistdio/test-u8-vasprintf1.c: New file.
78237         * tests/unistdio/test-u8-vsnprintf1.c: New file.
78238         * tests/unistdio/test-u8-vsprintf1.c: New file.
78239         * tests/unistdio/test-u16-asnprintf1.c: New file.
78240         * tests/unistdio/test-u16-asnprintf1.h: New file.
78241         * tests/unistdio/test-u16-printf1.h: New file.
78242         * tests/unistdio/test-u16-vasnprintf1.c: New file.
78243         * tests/unistdio/test-u16-vasnprintf2.c: New file.
78244         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
78245         * tests/unistdio/test-u16-vasnprintf3.c: New file.
78246         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
78247         * tests/unistdio/test-u16-vasprintf1.c: New file.
78248         * tests/unistdio/test-u16-vsnprintf1.c: New file.
78249         * tests/unistdio/test-u16-vsprintf1.c: New file.
78250         * tests/unistdio/test-u32-asnprintf1.c: New file.
78251         * tests/unistdio/test-u32-asnprintf1.h: New file.
78252         * tests/unistdio/test-u32-printf1.h: New file.
78253         * tests/unistdio/test-u32-vasnprintf1.c: New file.
78254         * tests/unistdio/test-u32-vasnprintf2.c: New file.
78255         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
78256         * tests/unistdio/test-u32-vasnprintf3.c: New file.
78257         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
78258         * tests/unistdio/test-u32-vasprintf1.c: New file.
78259         * tests/unistdio/test-u32-vsnprintf1.c: New file.
78260         * tests/unistdio/test-u32-vsprintf1.c: New file.
78261         * modules/unistdio/base: New file.
78262         * modules/unistdio/u-printf-args: New file.
78263         * modules/unistdio/ulc-asnprintf: New file.
78264         * modules/unistdio/ulc-asprintf: New file.
78265         * modules/unistdio/ulc-fprintf: New file.
78266         * modules/unistdio/ulc-printf-parse: New file.
78267         * modules/unistdio/ulc-snprintf: New file.
78268         * modules/unistdio/ulc-sprintf: New file.
78269         * modules/unistdio/ulc-vasnprintf: New file.
78270         * modules/unistdio/ulc-vasprintf: New file.
78271         * modules/unistdio/ulc-vfprintf: New file.
78272         * modules/unistdio/ulc-vsnprintf: New file.
78273         * modules/unistdio/ulc-vsprintf: New file.
78274         * modules/unistdio/u8-asnprintf: New file.
78275         * modules/unistdio/u8-asprintf: New file.
78276         * modules/unistdio/u8-printf-parse: New file.
78277         * modules/unistdio/u8-snprintf: New file.
78278         * modules/unistdio/u8-sprintf: New file.
78279         * modules/unistdio/u8-vasnprintf: New file.
78280         * modules/unistdio/u8-vasprintf: New file.
78281         * modules/unistdio/u8-vsnprintf: New file.
78282         * modules/unistdio/u8-vsprintf: New file.
78283         * modules/unistdio/u8-u8-asnprintf: New file.
78284         * modules/unistdio/u8-u8-asprintf: New file.
78285         * modules/unistdio/u8-u8-snprintf: New file.
78286         * modules/unistdio/u8-u8-sprintf: New file.
78287         * modules/unistdio/u8-u8-vasnprintf: New file.
78288         * modules/unistdio/u8-u8-vasprintf: New file.
78289         * modules/unistdio/u8-u8-vsnprintf: New file.
78290         * modules/unistdio/u8-u8-vsprintf: New file.
78291         * modules/unistdio/u16-asnprintf: New file.
78292         * modules/unistdio/u16-asprintf: New file.
78293         * modules/unistdio/u16-printf-parse: New file.
78294         * modules/unistdio/u16-snprintf: New file.
78295         * modules/unistdio/u16-sprintf: New file.
78296         * modules/unistdio/u16-vasnprintf: New file.
78297         * modules/unistdio/u16-vasprintf: New file.
78298         * modules/unistdio/u16-vsnprintf: New file.
78299         * modules/unistdio/u16-vsprintf: New file.
78300         * modules/unistdio/u16-u16-asnprintf: New file.
78301         * modules/unistdio/u16-u16-asprintf: New file.
78302         * modules/unistdio/u16-u16-snprintf: New file.
78303         * modules/unistdio/u16-u16-sprintf: New file.
78304         * modules/unistdio/u16-u16-vasnprintf: New file.
78305         * modules/unistdio/u16-u16-vasprintf: New file.
78306         * modules/unistdio/u16-u16-vsnprintf: New file.
78307         * modules/unistdio/u16-u16-vsprintf: New file.
78308         * modules/unistdio/u32-asnprintf: New file.
78309         * modules/unistdio/u32-asprintf: New file.
78310         * modules/unistdio/u32-printf-parse: New file.
78311         * modules/unistdio/u32-snprintf: New file.
78312         * modules/unistdio/u32-sprintf: New file.
78313         * modules/unistdio/u32-vasnprintf: New file.
78314         * modules/unistdio/u32-vasprintf: New file.
78315         * modules/unistdio/u32-vsnprintf: New file.
78316         * modules/unistdio/u32-vsprintf: New file.
78317         * modules/unistdio/u32-u32-asnprintf: New file.
78318         * modules/unistdio/u32-u32-asprintf: New file.
78319         * modules/unistdio/u32-u32-snprintf: New file.
78320         * modules/unistdio/u32-u32-sprintf: New file.
78321         * modules/unistdio/u32-u32-vasnprintf: New file.
78322         * modules/unistdio/u32-u32-vasprintf: New file.
78323         * modules/unistdio/u32-u32-vsnprintf: New file.
78324         * modules/unistdio/u32-u32-vsprintf: New file.
78325         * modules/unistdio/ulc-asnprintf-tests: New file.
78326         * modules/unistdio/ulc-vasnprintf-tests: New file.
78327         * modules/unistdio/ulc-vasprintf-tests: New file.
78328         * modules/unistdio/ulc-vsnprintf-tests: New file.
78329         * modules/unistdio/ulc-vsprintf-tests: New file.
78330         * modules/unistdio/u8-asnprintf-tests: New file.
78331         * modules/unistdio/u8-vasnprintf-tests: New file.
78332         * modules/unistdio/u8-vasprintf-tests: New file.
78333         * modules/unistdio/u8-vsnprintf-tests: New file.
78334         * modules/unistdio/u8-vsprintf-tests: New file.
78335         * modules/unistdio/u16-asnprintf-tests: New file.
78336         * modules/unistdio/u16-vasnprintf-tests: New file.
78337         * modules/unistdio/u16-vasprintf-tests: New file.
78338         * modules/unistdio/u16-vsnprintf-tests: New file.
78339         * modules/unistdio/u16-vsprintf-tests: New file.
78340         * modules/unistdio/u32-asnprintf-tests: New file.
78341         * modules/unistdio/u32-vasnprintf-tests: New file.
78342         * modules/unistdio/u32-vasprintf-tests: New file.
78343         * modules/unistdio/u32-vsnprintf-tests: New file.
78344         * modules/unistdio/u32-vsprintf-tests: New file.
78345         * MODULES.html.sh (Unicode string functions): Add the new modules.
78347 2007-07-01  Bruno Haible  <bruno@clisp.org>
78349         * lib/sprintf.c (sprintf): Limit the available length estimation,
78350         to avoid address wraparound.
78351         * lib/vsprintf.c (vsprintf): Likewise.
78352         * modules/sprintf-posix (Dependencies): Add stdint.
78353         * modules/vsprintf-posix (Dependencies): Likewise.
78355 2007-07-01  Bruno Haible  <bruno@clisp.org>
78357         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
78358         Windows PATH as well. Conservative double-quoting. Comments.
78360 2007-07-01  Bruno Haible  <bruno@clisp.org>
78361             Eric Blake  <ebb9@byu.net>
78362             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78364         * gnulib-tool (self_abspathname): Fix algorithm to cope with
78365         empty components in $PATH, denoting '.'.
78367 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78369         * gnulib-tool: Fix indentation.
78370         (func_create_megatestdir): Likewise.
78371         Report by Bruno Haible.
78373 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78375         Sync from Automake.
78376         * build-aux/gnupload: Fix shell portability issues with for loops.
78377         Report by Karl Berry.
78379 2007-06-29  Simon Josefsson  <simon@josefsson.org>
78381         * build-aux/maint.mk (POURL): Use translationproject.org.
78383 2007-06-27  Simon Josefsson  <simon@josefsson.org>
78384             Bruno Haible  <bruno@clisp.org>
78386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
78387         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
78388         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
78389         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
78390         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
78392 2007-06-27  Bruno Haible  <bruno@clisp.org>
78394         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
78395         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
78397 2007-06-26  Karl Berry  <karl@gnu.org>
78399         * MODULES.html.sh: remove xreadlink-with-size.
78401 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78403         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
78404         method that I hope also handles the double-include problem noted
78405         by Bruno Haible in
78406         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
78408 2007-06-23  Bruno Haible  <bruno@clisp.org>
78410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78411         Don't let the 'mostlyclean' target fail if the last subdirectory could
78412         not be removed.
78413         Reported by Karl Berry.
78415 2007-06-23  Bruno Haible  <bruno@clisp.org>
78417         * gnulib-tool (echo): Add a speedier workaround for ksh.
78418         * tests/test-echo.sh: Likewise.
78420 2007-06-23  Bruno Haible  <bruno@clisp.org>
78422         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
78423         * tests/test-echo.sh: Likewise.
78425 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78427         * gnulib-tool (IFS): Initialize early, so we don't set it to
78428         empty later.
78429         (self_abspathname): Rewrite algorithm to set it, reindent.
78430         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
78431         (func_create_megatestdir): Merge some sed scripts.
78433 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78435         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
78436         exposed by Sun Studio 11 cc on Solaris 8.
78438 2007-06-22  Bruno Haible  <bruno@clisp.org>
78440         * gnulib-tool (echo): Ensure the echo primitive does not interpret
78441         backslashes.
78442         * tests/test-echo.sh: New file.
78444 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78446         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
78447         simplify `sed_replace_build_aux' scripts, they are portable but
78448         echoing them with `echo' is not.
78449         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
78451 2007-06-21  Karl Berry  <karl@gnu.org>
78453         * config/srclist.txt: guess we can't handle the licenses via
78454         srclist at the moment.
78456 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78458         * MODULES.html.sh: Add include_next.
78459         * modules/include_next: New file.
78461 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78463         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
78464         INCLUDE_NEXT.
78465         (gl_CHECK_NEXT_HEADERS): New macro.
78466         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
78467         the obsolescent gl_ABSOLUTE_HEADER.
78468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
78469         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
78470         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
78471         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
78472         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
78473         * m4/math_h.m4 (gl_MATH_H): Likewise.
78474         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
78475         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
78476         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
78477         * m4/stdint.m4 (gl_STDINT_H): Likewise.
78478         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
78479         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
78480         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
78481         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
78482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
78483         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
78484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
78485         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
78486         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
78487         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
78488         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78489         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
78490         * m4/inttypes.m4 (gl_INTTYPES_H): Define
78491         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
78492         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
78493         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
78494         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
78495         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
78496         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
78497         * lib/float_.h: Likewise.
78498         * lib/inttypes_.h: Likewise.
78499         * lib/math_.h: Likewise.
78500         * lib/search_.h: Likewise.
78501         * lib/signal_.h: Likewise.
78502         * lib/stdint_.h: Likewise.
78503         * lib/stdio_.h: Likewise.
78504         * lib/stdlib_.h: Likewise.
78505         * lib/string_.h: Likewise.
78506         * lib/sys_stat_.h: Likewise.
78507         * lib/sys_time_.h: Likewise.
78508         * lib/time_.h: Likewise.
78509         * lib/unistd_.h: Likewise.
78510         * lib/wchar_.h: Likewise.
78511         * lib/wctype_.h: Likewise.
78512         * lib/dirent_.h: Likewise.
78513         * lib/iconv_.h: Likewise.
78514         * lib/locale_.h: Likewise.
78515         * lib/netinet_in_.h: Likewise.
78516         * lib/sys_select_.h: Likewise.
78517         * lib/sys_socket_.h: Likewise.
78518         * lib/sysexits_.h: Likewise.
78519         * modules/fcntl (Depends-on): Depend on include_next, not
78520         absolute_header.
78521         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
78522         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
78523         * modules/fchdir: Likewise.
78524         * modules/float: Likewise.
78525         * modules/iconv_open: Likewise.
78526         * modules/inttypes: Likewise.
78527         * modules/locale: Likewise.
78528         * modules/math: Likewise.
78529         * modules/netinet_in: Likewise.
78530         * modules/search: Likewise.
78531         * modules/signal: Likewise.
78532         * modules/stdint: Likewise.
78533         * modules/stdio: Likewise.
78534         * modules/stdlib: Likewise.
78535         * modules/string: Likewise.
78536         * modules/sys_select: Likewise.
78537         * modules/sys_socket: Likewise.
78538         * modules/sys_stat: Likewise.
78539         * modules/sys_time: Likewise.
78540         * modules/sysexits: Likewise.
78541         * modules/time: Likewise.
78542         * modules/unistd: Likewise.
78543         * modules/wchar: Likewise.
78544         * modules/wctype: Likewise.
78545         * modules/sys_stat: Change maintainer to "all".
78546         * modules/unistd: Likewise.
78548 2007-06-20  Karl Berry  <karl@gnu.org>
78550         * config/srclist.txt: track www changes in license files.
78552 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
78554         * build-aux/bootstrap: Remove stray dot.
78555         Make sure build_aux settings are honored when linking
78556         gnulib_extra_files.
78558 2007-06-19  Eric Blake  <ebb9@byu.net>
78560         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
78561         Allow compilation on cygwin.
78563 2007-06-19  Jim Meyering  <jim@meyering.net>
78565         xreadlink-with-size: Remove module.  No longer used.
78566         Ex-callers now use xreadlink or mreadlink-with-size.
78567         * modules/xreadlink-with-size: Remove module.
78568         * lib/xreadlink-with-size.c: Remove file.
78569         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
78570         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
78571         just before the function definition *is* accurate.
78573         Eliminate one way canonicalize_filename_mode could exit.
78574         * lib/canonicalize.c (canonicalize_filename_mode):
78575         Use mreadlink_with_size, not xreadlink_with_size.
78577 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
78579         Detect porting problems to FreeBSD/arm, which has time_t wider than
78580         long int.  Original problem reported for GNU diff by Xin Li in
78581         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
78582         * modules/getdate (Depends-on): Add intprops, verify.
78583         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
78584         is an integer type no wider than long int.
78586 2007-06-18  Jim Meyering  <jim@meyering.net>
78588         New module: mreadlink-with-size.
78589         * MODULES.html.sh: Add mreadlink-with-size.
78590         * modules/mreadlink-with-size: New module
78591         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
78592         not xreadlink-with-size.
78593         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
78595 2007-06-16  Bruno Haible  <bruno@clisp.org>
78597         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
78598         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
78599         Reported by Gary V. Vaughan <gary@gnu.org>.
78601 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
78603         Revamp lchown so that it lives in unistd.h where it belongs.
78604         * lib/lchown.h: Remove.
78605         * lib/dirchownmod.c: Don't include lib/lchown.h.
78606         * lib/fchownat.c: Likewise.
78607         * lib/openat.c: Likewise.
78608         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
78609         does not follow symlinks.
78610         (EOPNOTSUPP): Define if not defined.
78611         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
78612         is defined to 0.
78613         (lchown): New decl.
78614         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
78615         Do not check for lchown decl.
78616         Set REPLACE_LCHOWN.
78617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
78618         REPLACE_LCHOWN.
78619         * modules/chown: Make it clear it follows symlinks.
78620         * modules/lchown: Make it clear it doesn't follow symlinks.
78621         (Files): Remove lib/lchown.h
78622         (Depends-on): Add unistd.
78623         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
78624         (Include): Include <unistd.h>, not "lchown.h".
78625         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
78626         REPLACE_LCHOWN.
78628 2007-06-15  Jim Meyering  <jim@meyering.net>
78630         Change license (GPL to LGPL) of fsusage and dependents.
78631         * modules/fsusage (License): Change to LGPL.
78632         * modules/full-read (License): Likewise.
78633         * modules/full-write (License): Likewise.
78634         * modules/safe-read (License): Likewise.
78635         * modules/safe-write (License): Likewise.
78637 2007-06-14  Ben Pfaff  <blp@gnu.org>
78639         Missing part of allocsa -> malloca transition.
78640         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
78641         gl_MALLOCA.
78643 2007-06-12  Bruno Haible  <bruno@clisp.org>
78645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
78646         to ia64, x86_64, i386.
78647         Reported by Eric Blake.
78649 2007-06-12  Bruno Haible  <bruno@clisp.org>
78651         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
78652         cross-compiling to x86_64.
78654 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
78656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
78657         glitch reported by Ralf Wildenhues in
78658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
78660         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
78661         Vin Shelton.
78663 2007-06-11  Bruno Haible  <bruno@clisp.org>
78665         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
78666         replacement string.
78667         Reported by Eric Blake.
78669 2007-06-10  Bruno Haible  <bruno@clisp.org>
78671         Prepare vasnprintf code for use with Unicode strings.
78672         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
78673         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
78674         TYPE_U32_STRING.
78675         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
78676         a_u32_string variants.
78677         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
78678         * lib/printf-args.c: Don't include config.h and the specification
78679         header if PRINTF_FETCHARGS is already defined.
78680         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
78681         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
78682         TYPE_U16_STRING, TYPE_U32_STRING.
78683         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
78684         u16_directive, u16_directives, u32_directive, u32_directives): New
78685         types.
78686         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
78687         New declarations.
78688         * lib/printf-parse.c: Don't include config.h and the specification
78689         header if PRINTF_PARSE is already defined. Eliminate the set of
78690         parameters for WIDE_CHAR_VERSION; the user of this file must provide
78691         them now. Include c-ctype.h.
78692         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
78693         directive and CHAR_T_ONLY_ASCII.
78694         * lib/vasnprintf.c: Don't include config.h and the specification header
78695         if VASNPRINTF is already defined.
78696         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
78697         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
78698         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
78699         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
78700         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
78701         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
78702         code accordingly.
78703         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
78704         pad_ourselves also in this case, with the 'c' and 's' directives, and
78705         with a different notion of "width".
78706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
78708 2007-06-10  Bruno Haible  <bruno@clisp.org>
78710         * modules/unistr/u32-mbsnlen: New file.
78711         * lib/unistr/u32-mbsnlen.c: New file.
78713         * modules/unistr/u16-mbsnlen: New file.
78714         * lib/unistr/u16-mbsnlen.c: New file.
78716         * modules/unistr/u8-mbsnlen: New file.
78717         * lib/unistr/u8-mbsnlen.c: New file.
78719         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
78720         declarations.
78722 2007-06-10  Bruno Haible  <bruno@clisp.org>
78724         * lib/string_.h (mbsnlen): New declaration.
78725         * lib/mbsnlen.c: New file.
78726         * m4/mbsnlen.m4: New file.
78727         * modules/mbsnlen: New file.
78728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
78729         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
78730         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
78732 2007-06-10  Bruno Haible  <bruno@clisp.org>
78734         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
78736 2007-06-10  Bruno Haible  <bruno@clisp.org>
78738         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
78739         * lib/mbuiter.h: Likewise.
78741 2007-06-10  Bruno Haible  <bruno@clisp.org>
78743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
78744         declaration.
78746 2007-06-10  Karl Berry  <karl@gnu.org>
78748         * config/srclist.txt: remove gettext entries, Bruno prefers
78749         to update individually.
78751 2007-06-10  Bruno Haible  <bruno@clisp.org>
78753         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
78754         'maxlen'. Ensure only length + width bytes are allocated, not
78755         length + 1 + width.
78757 2007-06-09  Bruno Haible  <bruno@clisp.org>
78759         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
78760         (CHAR_T): Remove macro.
78761         (VASNPRINTF): Update.
78763 2007-06-09  Bruno Haible  <bruno@clisp.org>
78765         * MODULES.html.sh (Unicode string functions): Add the new modules.
78767         * modules/uniconv/u32-conv-to-enc: New file.
78768         * lib/uniconv/u32-conv-to-enc.c: New file.
78769         * modules/uniconv/u32-conv-to-enc-tests: New file.
78770         * tests/uniconv/test-u32-conv-to-enc.c: New file.
78772         * modules/uniconv/u16-conv-to-enc: New file.
78773         * lib/uniconv/u16-conv-to-enc.c: New file.
78774         * lib/uniconv/u-conv-to-enc.h: New file.
78775         * modules/uniconv/u16-conv-to-enc-tests: New file.
78776         * tests/uniconv/test-u16-conv-to-enc.c: New file.
78778         * modules/uniconv/u8-conv-to-enc: New file.
78779         * lib/uniconv/u8-conv-to-enc.c: New file.
78780         * modules/uniconv/u8-conv-to-enc-tests: New file.
78781         * tests/uniconv/test-u8-conv-to-enc.c: New file.
78783         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
78784         u32_conv_to_encoding): New declarations.
78786 2007-06-09  Bruno Haible  <bruno@clisp.org>
78788         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
78790 2007-06-09  Bruno Haible  <bruno@clisp.org>
78792         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
78793         * modules/malloca: Renamed from modules/allocsa, updated.
78794         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
78795         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
78796         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
78797         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
78798         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
78799         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
78800         * modules/xmalloca: Renamed from modules/xallocsa, updated.
78801         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
78802         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
78803         * modules/c-strcasestr (Depends-on): Update.
78804         * lib/c-strcasestr.c: Update.
78805         * modules/c-strstr (Depends-on): Update.
78806         * lib/c-strstr.c: Update.
78807         * modules/canonicalize-lgpl (Depends-on): Update.
78808         * lib/canonicalize-lgpl.c: Update.
78809         * modules/clean-temp (Depends-on): Update.
78810         * lib/clean-temp.c: Update.
78811         * modules/csharpcomp (Depends-on): Update.
78812         * lib/csharpcomp.c: Update.
78813         * modules/csharpexec (Depends-on): Update.
78814         * lib/csharpexec.c: Update.
78815         * modules/javacomp (Depends-on): Update.
78816         * lib/javacomp.c: Update.
78817         * modules/javaexec (Depends-on): Update.
78818         * lib/javaexec.c: Update.
78819         * modules/mbscasestr (Depends-on): Update.
78820         * lib/mbscasestr.c: Update.
78821         * modules/mbsstr (Depends-on): Update.
78822         * lib/mbsstr.c: Update.
78823         * modules/setenv (Depends-on): Update.
78824         * lib/setenv.c: Update.
78825         * modules/strcasestr (Depends-on): Update.
78826         * lib/strcasestr.c: Update.
78827         * modules/striconveha (Depends-on): Update.
78828         * lib/striconveha.c: Update.
78829         * modules/relocatable-prog-wrapper (Files): Update.
78830         * lib/relocwrapper.c: Update.
78831         * build-aux/install-reloc: Update.
78832         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
78834 2007-06-08  Bruno Haible  <bruno@clisp.org>
78836         Port to uClibc.
78837         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
78838         * lib/fpurge.c (fpurge): Likewise.
78839         * lib/freading.c (freading): Likewise.
78840         * lib/fseeko.c (rpl_fseeko): Likewise.
78841         * lib/fseterr.c (fseterr): Likewise.
78842         * lib/fwriting.c (fwriting): Likewise.
78843         * tests/test-fflush.c (main): Avoid a failure on uClibc.
78845 2007-06-08  Bruno Haible  <bruno@clisp.org>
78847         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
78848         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
78849         * modules/gettext (Files): Add m4/intlmacosx.m4.
78851 2007-06-07  Bruno Haible  <bruno@clisp.org>
78853         * modules/localename-tests: New file.
78854         * tests/test-localename.c: New file.
78856         New module 'localename'.
78857         * lib/localename.h: New file.
78858         * lib/localename.c: New file, from GNU gettext.
78859         * m4/localename.m4: New file.
78860         * modules/localename: New file.
78862 2007-06-07  Bruno Haible  <bruno@clisp.org>
78864         Work around the lack of <wchar.h> on some builds of uClibc.
78865         * doc/headers/wchar.texi: Update.
78866         * lib/wchar_.h: Include <wchar.h> only if it exists.
78867         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
78868         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
78869         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
78870         doesn't exist.
78871         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
78872         * modules/mbfile (Depends-on): Add wchar.
78873         * modules/mbiter (Depends-on): Likewise.
78874         * modules/mbuiter (Depends-on): Likewise.
78875         Reported by Simon Josefsson.
78877 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78879         Work around problem reported by Steven M. Schweda in
78880         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
78881         Tru64 5.1B with the Compaq compiler environment installed declares
78882         an 'isblank' function but does not define it in the C library.
78883         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
78884         * lib/regex_internal.h (isblank): Likewise.
78885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
78886         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
78888 2007-06-05  Bruno Haible  <bruno@clisp.org>
78890         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
78891         ia64.
78892         * modules/printf-safe: New file.
78893         * modules/fprintf-posix (Depends-on): Add printf-safe.
78894         * modules/printf-posix (Depends-on): Likewise.
78895         * modules/snprintf-posix (Depends-on): Likewise.
78896         * modules/sprintf-posix (Depends-on): Likewise.
78897         * modules/vasnprintf-posix (Depends-on): Likewise.
78898         * modules/vasprintf-posix (Depends-on): Likewise.
78899         * modules/vfprintf-posix (Depends-on): Likewise.
78900         * modules/vprintf-posix (Depends-on): Likewise.
78901         * modules/vsnprintf-posix (Depends-on): Likewise.
78902         * modules/vsprintf-posix (Depends-on): Likewise.
78903         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
78904         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
78905         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
78906         "no" on i386, x86_64, ia64.
78907         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
78908         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78909         on i386, x86_64, ia64.
78910         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
78911         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78912         on i386, x86_64, ia64.
78913         * tests/test-vasnprintf-posix.c: Include float.h.
78914         (LDBL80_WORDS): New macro.
78915         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78916         on i386, x86_64, ia64.
78917         * tests/test-vasprintf-posix.c: Include float.h.
78918         (LDBL80_WORDS): New macro.
78919         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78920         on i386, x86_64, ia64.
78921         * tests/test-snprintf-posix.c: Include float.h.
78922         * tests/test-sprintf-posix.c: Likewise.
78923         * tests/test-vsnprintf-posix.c: Likewise.
78924         * tests/test-vsprintf-posix.c: Likewise.
78926 2007-06-05  Bruno Haible  <bruno@clisp.org>
78928         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
78929         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
78930         non-IEEE numbers on i386, x86_64, ia64.
78931         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
78932         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
78933         * tests/test-isnanl.h: Include float.h.
78934         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
78936 2007-06-05  Bruno Haible  <bruno@clisp.org>
78938         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
78939         also the %a / %A. Handle the %a / %A code before this extra handling.
78941 2007-06-05  Bruno Haible  <bruno@clisp.org>
78943         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
78944         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
78946 2007-06-05  Bruno Haible  <bruno@clisp.org>
78948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
78949         typo in variable name.
78951 2007-06-05  Eric Blake  <ebb9@byu.net>
78953         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
78954         Reported by Simon Josefsson.
78956 2007-06-04  Bruno Haible  <bruno@clisp.org>
78958         Avoid test failures on some PowerPC platforms.
78959         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
78960         Define differently for PowerPC.
78961         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
78962         Reported by Gary V. Vaughan <gary@gnu.org>.
78964 2007-06-02  Bruno Haible  <bruno@clisp.org>
78966         Fix test-stdint failure on FreeBSD/ia64.
78967         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
78968         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
78969         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
78970         * doc/headers/stdint.texi: Update.
78972 2007-06-01  Bruno Haible  <bruno@clisp.org>
78974         * tests/test-binary-io.c (main): Pass a third argument to open().
78975         Reported by Gary V. Vaughan <gary@gnu.org>.
78977 2007-06-01  Bruno Haible  <bruno@clisp.org>
78979         * doc/functions/frexpl.texi: Update for mingw.
78981 2007-06-01  Bruno Haible  <bruno@clisp.org>
78983         * tests/test-lseek.c (main): Disable test of errno for invalid third
78984         argument.
78985         * doc/functions/lseek.texi: Update.
78986         Reported by Gary V. Vaughan <gary@gnu.org>.
78988 2007-05-28  Bruno Haible  <bruno@clisp.org>
78990         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
78992 2007-05-31  Eric Blake  <ebb9@byu.net>
78994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
78995         cross compiling.
78997 2007-05-30  Eric Blake  <ebb9@byu.net>
78998         and Bruno Haible  <bruno@clisp.org>
79000         Work around mingw test failures exposed by m4-1.4.9b.
79001         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
79002         * tests/test-unistd.c: Disable uid_t and git_t tests for the
79003         moment.
79005 2007-05-30  Bruno Haible  <bruno@clisp.org>
79007         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
79008         assuming that they are closed. Needed on HP-UX 11.
79010 2007-05-29  Bruno Haible  <bruno@clisp.org>
79012         Fix a problem with #include_next.
79013         * lib/dirent_.h: Split the double-inclusion guard.
79014         * lib/fcntl_.h: Likewise.
79015         * lib/float_.h: Likewise.
79016         * lib/iconv_.h: Likewise.
79017         * lib/inttypes_.h: Likewise.
79018         * lib/locale_.h: Likewise.
79019         * lib/math_.h: Likewise.
79020         * lib/netinet_in_.h: Likewise.
79021         * lib/search_.h: Likewise.
79022         * lib/signal_.h: Likewise.
79023         * lib/stdint_.h: Likewise.
79024         * lib/stdio_.h: Likewise.
79025         * lib/stdlib_.h: Likewise.
79026         * lib/string_.h: Likewise.
79027         * lib/sys_select_.h: Likewise.
79028         * lib/sys_socket_.h: Likewise.
79029         * lib/sys_stat_.h: Likewise.
79030         * lib/sys_time_.h: Likewise.
79031         * lib/sysexits_.h: Likewise.
79032         * lib/time_.h: Likewise.
79033         * lib/unistd_.h: Likewise.
79034         * lib/wchar_.h: Likewise.
79035         * lib/wctype_.h: Likewise.
79037 2007-05-29  Bruno Haible  <bruno@clisp.org>
79039         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
79040         for the moment.
79042 2007-05-29  Bruno Haible  <bruno@clisp.org>
79044         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
79045         invocation.
79046         Reported by Eric Blake.
79048 2007-05-29  Bruno Haible  <bruno@clisp.org>
79050         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
79051         compiling case.
79053 2007-05-29  Eric Blake  <ebb9@byu.net>
79054             Bruno Haible  <bruno@clisp.org>
79056         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
79057         cross compiles.
79059 2007-05-28  Eric Blake  <ebb9@byu.net>
79061         * modules/closein-tests (test_closein_LDADD): Support test on
79062         cygwin with libtool.
79064 2007-05-28  Bruno Haible  <bruno@clisp.org>
79066         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
79067         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
79068         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
79069         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
79070         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
79071         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
79072         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
79073         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
79074         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
79076 2007-05-28  Eric Blake  <ebb9@byu.net>
79078         Unconditionally include <config.h> in unit tests.
79079         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
79080         * tests/test-allocsa.c, tests/test-arcfour.c,
79081         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
79082         tests/test-array_list.c, tests/test-array_oset.c,
79083         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
79084         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
79085         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
79086         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
79087         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
79088         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
79089         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
79090         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
79091         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
79092         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
79093         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
79094         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
79095         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
79096         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
79097         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
79098         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
79099         test-md5.c, test-memmem.c, test-printf-posix.c,
79100         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
79101         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
79102         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
79103         test-strcasestr.c, test-striconv.c, test-striconveh.c,
79104         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
79105         test-vasnprintf-posix2.c, test-vasnprintf.c,
79106         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
79107         test-vfprintf-posix.c, test-vprintf-posix.c,
79108         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
79109         test-xvasprintf.c: Likewise.
79111 2007-05-28  Bruno Haible  <bruno@clisp.org>
79113         * gnulib-tool (func_import): Remember the --with-tests command-line
79114         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
79115         Reported by Eric Blake.
79117 2007-05-28  Bruno Haible  <bruno@clisp.org>
79119         * modules/ftell-tests: New file.
79120         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
79121         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
79123         * lib/ftell.c: New file.
79124         * modules/ftell: New file.
79125         * m4/ftell.m4: New file.
79126         * doc/functions/ftell.texi: Update.
79127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
79128         REPLACE_FTELL.
79129         * lib/stdio_.h (rpl_ftell): New declaration.
79130         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
79131         REPLACE_FTELL.
79133 2007-05-28  Eric Blake  <ebb9@byu.net>
79135         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
79137 2007-05-28  Bruno Haible  <bruno@clisp.org>
79139         * modules/fseek-tests: New file.
79140         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
79141         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
79143         * lib/fseek.c: New file.
79144         * modules/fseek: New file.
79145         * m4/fseek.m4: New file.
79146         * doc/functions/fseek.texi: Update.
79147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
79148         REPLACE_FSEEK.
79149         * lib/stdio_.h (rpl_fseek): New declaration.
79150         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
79151         REPLACE_FSEEK.
79153 2007-05-28  Bruno Haible  <bruno@clisp.org>
79155         * lib/stdio_.h (fflush): More comments.
79157 2007-05-28  Bruno Haible  <bruno@clisp.org>
79159         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
79160         runtime test.
79162 2007-05-28  Eric Blake  <ebb9@byu.net>
79164         Improve lseek module.
79165         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
79166         * lib/unistd_.h (lseek): Scale back link warning message.
79167         * tests/test-lseek.c: Beef up test.
79168         * tests/test-lseek.sh: Exercise more facets of lseek.
79169         Reported by Bruno Haible.
79171 2007-05-28  Bruno Haible  <bruno@clisp.org>
79173         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
79174         to define.
79176 2007-05-27  Bruno Haible  <bruno@clisp.org>
79178         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
79180 2007-05-27  Bruno Haible  <bruno@clisp.org>
79182         * modules/openmp: New file.
79183         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
79184         Noah Misch.
79186 2007-05-26  Bruno Haible  <bruno@clisp.org>
79188         * modules/chdir-long (Depends-on): Add fchdir.
79189         * modules/chdir-safer (Depends-on): Likewise.
79190         * modules/fts (Depends-on): Likewise.
79191         * modules/fts-lgpl (Depends-on): Likewise.
79192         * modules/openat (Depends-on): Likewise.
79193         * modules/savewd (Depends-on): Likewise.
79195 2007-05-24  Eric Blake  <ebb9@byu.net>
79197         Fix lseek on mingw.
79198         * modules/lseek: New module.
79199         * m4/lseek.m4: New file.
79200         * lib/lseek.c: New file.
79201         * modules/lseek-tests: New file.
79202         * tests/test-lseek.c: New file.
79203         * tests/test-lseek.sh: New file.
79204         * MODULES.html.sh: Document lseek module.
79205         * modules/fflush (Depends-on): Add lseek, fseeko.
79206         * modules/fseeko (Depends-on): Likewise.
79207         * modules/ftello (Depends-on): Likewise.
79208         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
79209         broken.
79210         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
79211         broken.
79212         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
79213         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
79214         * lib/ftello.c (rpl_ftello): Likewise.
79215         * tests/test-fseeko.c (main): Test this.
79216         * tests/test-fseeko.sh: Likewise.
79217         * tests/test-ftello.c (main): Likewise.
79218         * tests/test-ftello.sh: Likewise.
79219         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
79220         implies replacing fseek.
79221         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
79222         HAVE_FTELLO.
79223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
79224         * modules/unistd (Makefile.am): Likewise.
79225         * lib/unistd_.h (lseek): Declare a replacement.
79226         * doc/functions/lseek.texi (lseek): Document this fix.
79227         * doc/functions/fseek.texi (fseek): Likewise.
79228         * doc/functions/ftell.texi (ftell): Likewise.
79230 2007-05-24  Bruno Haible  <bruno@clisp.org>
79232         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
79233         in the printed representation of a NaN.
79234         * tests/test-vasprintf-posix.c (test_function): Likewise.
79235         * tests/test-snprintf-posix.h (test_function): Likewise.
79236         * tests/test-sprintf-posix.h (test_function): Likewise.
79237         Reported by Eric Blake.
79239 2007-05-23  Eric Blake  <ebb9@byu.net>
79241         Fix fseeko/ftello on cygwin 1.5.24.
79242         * doc/functions/fseeko.texi (fseeko): Document the fix.
79243         * doc/functions/ftello.texi (ftello): Document the fix.
79244         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
79245         * doc/functions/stdout.text (stdout): New file.
79246         * doc/functions/stderr.text (stderr): New file.
79247         * doc/gnulib.texi (Function Substitutes): Use new files.
79248         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
79249         prior to 1.7.0.
79250         * tests/test-ftello.c (main): Likewise for ftello.
79251         * tests/test-fseeko.sh: New file.
79252         * tests/test-ftello.sh: New file.
79253         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
79254         with seekable stdin.
79255         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
79256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
79257         (gl_REPLACE_FSEEKO): New macro.
79258         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
79259         * modules/fseeko (Files): Distribute fseeko.c.
79260         * modules/ftello (Files): Distribute ftello.c.
79261         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
79262         mode.
79263         * lib/ftello.c (rpl_ftello): New file.
79264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
79265         fseeko, ftello.
79266         (gl_STDIN_LARGE_OFFSET): New macro.
79267         * modules/stdio (Makefile.am): Perform the replacement.
79268         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
79270 2007-05-23  Bruno Haible  <bruno@clisp.org>
79272         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
79273         GNULIB_POSIXCHECK is defined.
79275 2007-05-21  Bruno Haible  <bruno@clisp.org>
79277         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
79278         Check also the output for NaN arguments. When cross-compiling, guess
79279         no on IRIX.
79280         * lib/vasnprintf.c: Update comments.
79281         * tests/test-vasnprintf-posix.c (strisnan): New function.
79282         (test_function): Use it.
79283         * tests/test-vasprintf-posix.c (strisnan): New function.
79284         (test_function): Use it.
79285         * tests/test-snprintf-posix.h (strisnan): New function.
79286         (test_function): Use it.
79287         * tests/test-sprintf-posix.h (strisnan): New function.
79288         (test_function): Use it.
79289         Reported by Eric Blake.
79291 2007-05-20  Bruno Haible  <bruno@clisp.org>
79293         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
79294         numbers that fails on BeOS.
79295         * doc/functions/frexpl.texi: Update.
79297 2007-05-20  Jim Meyering  <jim@meyering.net>
79299         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
79300         forced upon us by glibc-2.6.
79302 2007-05-20  Bruno Haible  <bruno@clisp.org>
79304         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
79305         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
79306         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
79307         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
79308         NEED_PRINTF_INFINITE.
79309         (is_infinitel): New function.
79310         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
79311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
79312         gl_PREREQ_VASNPRINTF_INFINITE.
79313         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
79314         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79315         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
79316         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
79317         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
79318         gl_PREREQ_VASNPRINTF_INFINITE.
79319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79326         * doc/functions/fprintf.texi: Update.
79327         * doc/functions/printf.texi: Update.
79328         * doc/functions/snprintf.texi: Update.
79329         * doc/functions/sprintf.texi: Update.
79330         * doc/functions/vfprintf.texi: Update.
79331         * doc/functions/vprintf.texi: Update.
79332         * doc/functions/vsnprintf.texi: Update.
79333         * doc/functions/vsprintf.texi: Update.
79335 2007-05-20  Bruno Haible  <bruno@clisp.org>
79337         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
79338         was not found in libc.
79339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
79341 2007-05-20  Bruno Haible  <bruno@clisp.org>
79343         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
79344         printed as "-nan" instead of "nan".
79345         * tests/test-vasprintf-posix.c (test_function): Likewise.
79346         * tests/test-snprintf-posix.h (test_function): Likewise.
79347         * tests/test-sprintf-posix.h (test_function): Likewise.
79348         Needed for HP-UX 11.
79350 2007-05-20  Jim Meyering  <jim@meyering.net>
79352         Fix buggy test for the fchownat-deref bug.
79353         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
79354         symlink required for the run-test.  Without it, this test would
79355         always declare that fchownat doesn't work, and client code would
79356         unnecessarily use the replacement function with fixed libc.
79357         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
79358         Reported by Greg Schafer.
79360 2007-05-19  Bruno Haible  <bruno@clisp.org>
79362         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
79363         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
79364         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
79365         Needed for IRIX 6.5 and Solaris 2.5.1.
79367 2007-05-19  Bruno Haible  <bruno@clisp.org>
79369         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
79370         (test_function): Skip tests involving -0.0 on platforms where
79371         -0.0 = 0.0.
79372         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
79373         (test_function): Skip tests involving -0.0 on platforms where
79374         -0.0 = 0.0.
79375         * tests/test-snprintf-posix.h (have_minus_zero): New function.
79376         (test_function): Skip tests involving -0.0 on platforms where
79377         -0.0 = 0.0.
79378         * tests/test-sprintf-posix.h (have_minus_zero): New function.
79379         (test_function): Skip tests involving -0.0 on platforms where
79380         -0.0 = 0.0.
79381         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
79382         tests.
79383         * tests/test-printf-posix.h (test_function): Likewise.
79384         * tests/test-printf-posix.output: Remove all -0.0 related results.
79385         Needed for IRIX 6.5.
79387 2007-05-19  Bruno Haible  <bruno@clisp.org>
79389         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
79390         printed as "nan0x7fffffff" instead of "nan".
79391         * tests/test-vasprintf-posix.c (test_function): Likewise.
79392         * tests/test-snprintf-posix.h (test_function): Likewise.
79393         * tests/test-sprintf-posix.h (test_function): Likewise.
79394         * tests/test-fprintf-posix.h (NaN): Remove macro.
79395         (test_function): Remove all NaN related tests.
79396         * tests/test-printf-posix.h (NaN): Remove macro.
79397         (test_function): Remove all NaN related tests.
79398         * tests/test-printf-posix.output: Remove all NaN related results.
79399         Needed for IRIX 6.5.
79401 2007-05-19  Bruno Haible  <bruno@clisp.org>
79403         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
79404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
79406 2007-05-19  Bruno Haible  <bruno@clisp.org>
79408         * lib/float_.h: New file.
79409         * m4/float_h.m4: New file.
79410         * modules/float: New file.
79411         * modules/isnanl (Dependencies): Add float.
79412         * modules/isnanl-nolibm (Dependencies): Likewise.
79413         * modules/mathl (Dependencies): Likewise.
79414         * modules/printf-frexpl (Dependencies): Likewise.
79415         * modules/signbit (Dependencies): Likewise.
79416         * modules/vasnprintf (Dependencies): Likewise.
79417         * doc/headers/float.texi: Update.
79419 2007-05-19  Jim Meyering  <jim@meyering.net>
79421         * lib/utimens.c (gl_futimens): Rename from futimens,
79422         now that glibc-2.6 declares futimens.
79423         * lib/utimens.h: Likewise.
79425 2007-05-19  Bruno Haible  <bruno@clisp.org>
79427         Avoid test failures on mingw.
79428         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
79429         * tests/test-printf-posix.sh: Likewise.
79430         * tests/test-vfprintf-posix.sh: Likewise.
79431         * tests/test-vprintf-posix.sh: Likewise.
79433 2007-05-19  Bruno Haible  <bruno@clisp.org>
79435         Fix *printf result for NaN, Inf, -0.0 on mingw.
79436         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
79437         * lib/vasnprintf.c: Include math.h and isnan.h.
79438         (is_infinite_or_zero): New function.
79439         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
79440         values in the %f, %F, %e, %E, %g, %G directives.
79441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
79442         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79443         gl_PRINTF_INFINITE and test its result. Invoke
79444         gl_PREREQ_VASNPRINTF_INFINITE.
79445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79452         * doc/functions/fprintf.texi: Update.
79453         * doc/functions/printf.texi: Update.
79454         * doc/functions/snprintf.texi: Update.
79455         * doc/functions/sprintf.texi: Update.
79456         * doc/functions/vfprintf.texi: Update.
79457         * doc/functions/vprintf.texi: Update.
79458         * doc/functions/vsnprintf.texi: Update.
79459         * doc/functions/vsprintf.texi: Update.
79461 2007-05-19  Bruno Haible  <bruno@clisp.org>
79463         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
79464         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
79465         Instead of multiplying with 10^k, set extra_zeroes to k.
79466         (scale10_round_long_double): Remove function.
79468 2007-05-18  Bruno Haible  <bruno@clisp.org>
79470         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
79471         introduced on 2007-05-06.
79473 2007-05-18  Bruno Haible  <bruno@clisp.org>
79475         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
79476         %g directives.
79477         * tests/test-vasprintf-posix.c (test_function): Likewise.
79478         * tests/test-snprintf-posix.h (test_function): Likewise.
79479         * tests/test-sprintf-posix.h (test_function): Likewise.
79481 2007-05-18  Bruno Haible  <bruno@clisp.org>
79483         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
79484         (strmatch): New function.
79485         (test_function): Test the %f directive on numbers of various exponents.
79486         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
79487         (strmatch): New function.
79488         (test_function): Test the %f directive on numbers of various exponents.
79489         * tests/test-snprintf-posix.h (strmatch): New function.
79490         (test_function): Test the %f directive on numbers of various exponents.
79491         * tests/test-sprintf-posix.h (strmatch): New function.
79492         (test_function): Test the %f directive on numbers of various exponents.
79493         * tests/test-snprintf-posix.c (SIZEOF): New macro.
79494         * tests/test-sprintf-posix.c (SIZEOF): New macro.
79495         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
79496         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
79498 2007-05-18  Bruno Haible  <bruno@clisp.org>
79500         Add support for 'long double' number output.
79501         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
79502         * lib/vasnprintf.c: Include math.h and float+.h.
79503         (mp_limb_t): New type.
79504         (GMP_LIMB_BITS): New macro.
79505         (mp_twolimb_t): New type.
79506         (GMP_TWOLIMB_BITS): New macro.
79507         (mpn_t): New type.
79508         (multiply, divide, convert_to_decimal, decode_long_double,
79509         scale10_round_long_double, scale10_round_decimal_long_double,
79510         floorlog10l): New functions.
79511         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
79512         for the %f, %F, %e, %E, %g, %G directives.
79513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
79514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79515         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
79516         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
79517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79524         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
79525         * modules/snprintf-posix (Depends-on): Likewise.
79526         * modules/sprintf-posix (Depends-on): Likewise.
79527         * modules/vasnprintf-posix (Depends-on): Likewise.
79528         * modules/vasprintf-posix (Depends-on): Likewise.
79529         * modules/vfprintf-posix (Depends-on): Likewise.
79530         * modules/vsnprintf-posix (Depends-on): Likewise.
79531         * modules/vsprintf-posix (Depends-on): Likewise.
79532         * modules/vasnprintf (Files): Add lib/float+.h.
79533         * doc/functions/fprintf.texi: Update.
79534         * doc/functions/printf.texi: Update.
79535         * doc/functions/snprintf.texi: Update.
79536         * doc/functions/sprintf.texi: Update.
79537         * doc/functions/vfprintf.texi: Update.
79538         * doc/functions/vprintf.texi: Update.
79539         * doc/functions/vsnprintf.texi: Update.
79540         * doc/functions/vsprintf.texi: Update.
79542 2007-05-18  Bruno Haible  <bruno@clisp.org>
79544         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
79546 2007-05-18  Bruno Haible  <bruno@clisp.org>
79548         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
79549         for printing 64-bit integers. Needed for mingw.
79551 2007-05-18  Bruno Haible  <bruno@clisp.org>
79553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
79554         gl_FUNC_FREXPL_WORKS.
79555         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
79557 2007-05-18  Bruno Haible  <bruno@clisp.org>
79559         * modules/frexpl-nolibm-tests: New file.
79561         * modules/frexpl-nolibm: New file.
79562         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
79564 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79566         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
79567         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
79568         GCC 4.2, which otherwise issues a lot of warnings.
79569         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
79570         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
79571         Likewise.
79572         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
79573         * modules/iconv_open (iconv.h): Likewise.
79574         * modules/locale (locale.h): Likewise.
79575         * modules/netinet_in (netinet/in.h): Likewise.
79576         * modules/sys_select (sys_select.h): Likewise.
79577         * modules/sys_socket (sys/socket.h): Likewise.
79578         * modules/sys_stat (sys/stat.h): Likewise.
79579         * modules/sysexits (sysexits.h): Likewise.
79580         * modules/unistd (unistd.h): Likewise.
79582 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79584         * modules/closein-tests (Makefile.am): Distribute
79585         `test-closein.sh'.
79587 2007-05-17  Bruno Haible  <bruno@clisp.org>
79589         * tests/test-printf-posix.output: Renamed from
79590         tests/test-fprintf-posix.out.
79591         * modules/fprintf-posix-tests: Update.
79592         * modules/printf-posix-tests: Update.
79593         * modules/vfprintf-posix-tests: Update.
79594         * modules/vprintf-posix-tests: Update.
79595         * tests/test-fprintf-posix.sh: Update.
79596         * tests/test-printf-posix.sh: Update.
79597         * tests/test-vfprintf-posix.sh: Update.
79598         * tests/test-vprintf-posix.sh: Update.
79599         Reported by Ralf Wildenhues.
79601 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79603         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
79604         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
79605         GCC 4.2, which otherwise issues a lot of warnings.
79606         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
79607         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
79608         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
79609         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
79610         it should no longer be needed.
79611         * lib/string_.h: Likewise.
79612         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
79613         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
79614         * modules/inttypes (inttypes.h): Likewise.
79615         * modules/math (math.h): Likewise.
79616         * modules/search (search.h): Likewise.
79617         * modules/signal (signal.h): Likewise.
79618         * modules/stdint (stdint.h): Likewise.
79619         * modules/stdio (stdio.h): Likewise.
79620         * modules/stdlib (stdlib.h): Likewise.
79621         * modules/string (string.h): Likewise.
79622         * modules/sys_time (sys/time.h): Likewise.
79623         * modules/time (time.h): Likewise.
79624         * modules/wchar (wchar.h): Likewise.
79625         * modules/wctype (wtype.h): Likewise.
79627 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
79629         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
79631 2007-05-13  Bruno Haible  <bruno@clisp.org>
79633         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
79634         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
79635         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
79636         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79637         (gl_PREREQ_STRTOK_R): Don't require it here.
79639 2007-05-13  Bruno Haible  <bruno@clisp.org>
79641         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
79642         when used in C++ mode.
79644 2007-05-12  Bruno Haible  <bruno@clisp.org>
79646         * lib/linebuffer.h: Tweak doc.
79647         * lib/linebuffer.c: Likewise.
79649 2007-05-12  James Youngman  <jay@gnu.org>
79651         * lib/linebuffer.c (readlinebuffer_delim): New function,
79652         like readlinebuffer, but use a caller-specified delimiter.
79653         (readlinebuffer): Just call readlinebuffer_delim with '\n'
79654         as the delimiter.
79655         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
79657 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79659         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
79660         * modules/openat (Files): Remove openat-die.c.
79661         (Depends-on): Add openat-die.
79662         * modules/openat-die: New module.
79664 2007-05-06  Bruno Haible  <bruno@clisp.org>
79666         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
79667         Update with info about Cygwin.
79668         * doc/functions/fprintf.texi: Update.
79669         * doc/functions/printf.texi: Update.
79670         * doc/functions/snprintf.texi: Update.
79671         * doc/functions/sprintf.texi: Update.
79672         * doc/functions/vfprintf.texi: Update.
79673         * doc/functions/vprintf.texi: Update.
79674         * doc/functions/vsnprintf.texi: Update.
79675         * doc/functions/vsprintf.texi: Update.
79676         Reported by Eric Blake.
79678 2007-05-06  Bruno Haible  <bruno@clisp.org>
79680         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
79681         padding ourselves for the floating-point directives.
79682         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
79683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
79684         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79685         gl_PRINTF_FLAG_ZERO and test its result. Invoke
79686         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
79687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
79689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79694         * tests/test-snprintf-posix.h (test_function): Also check the width
79695         and some flags in the %f directive.
79696         * tests/test-sprintf-posix.h (test_function): Likewise.
79697         * tests/test-vasnprintf-posix.c (test_function): Likewise.
79698         * tests/test-vasprintf-posix.c (test_function): Likewise.
79699         * doc/functions/fprintf.texi: Update.
79700         * doc/functions/printf.texi: Update.
79701         * doc/functions/snprintf.texi: Update.
79702         * doc/functions/sprintf.texi: Update.
79703         * doc/functions/vfprintf.texi: Update.
79704         * doc/functions/vprintf.texi: Update.
79705         * doc/functions/vsnprintf.texi: Update.
79706         * doc/functions/vsprintf.texi: Update.
79708 2007-05-06  Bruno Haible  <bruno@clisp.org>
79710         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
79711         pass the ' flag character to sprintf or snprintf.
79712         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
79713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
79714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79715         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
79716         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
79717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
79719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79724         * tests/test-snprintf-posix.h (test_function): Also check the grouping
79725         flag.
79726         * tests/test-sprintf-posix.h (test_function): Likewise.
79727         * tests/test-vasnprintf-posix.c (test_function): Likewise.
79728         * tests/test-vasprintf-posix.c (test_function): Likewise.
79729         * doc/functions/fprintf.texi: Update.
79730         * doc/functions/printf.texi: Update.
79731         * doc/functions/snprintf.texi: Update.
79732         * doc/functions/sprintf.texi: Update.
79733         * doc/functions/vfprintf.texi: Update.
79734         * doc/functions/vprintf.texi: Update.
79735         * doc/functions/vsnprintf.texi: Update.
79736         * doc/functions/vsprintf.texi: Update.
79738 2007-05-01  Bruno Haible  <bruno@clisp.org>
79740         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
79742 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
79744         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
79745         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
79747 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79749         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
79750         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
79751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
79753 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
79755         * lib/argp-help.c (struct hol_entry): New member `ord'.
79756         (HOL_ENTRY_PTRCMP): Use ord for comparison
79757         (hol_sort): Initialize ord.
79759 2007-05-01  Bruno Haible  <bruno@clisp.org>
79761         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
79762         Reported by Eric Blake.
79763         * doc/gnulib.texi (Function Substitutes): Update.
79765 2007-05-01  Bruno Haible  <bruno@clisp.org>
79767         * doc/functions.texi: Remove file, now redundant through
79768         doc/functions/*.texi.
79770 2007-05-01  Bruno Haible  <bruno@clisp.org>
79772         * modules/argp (Depends-on): Add sleep.
79774 2007-05-01  Bruno Haible  <bruno@clisp.org>
79776         * modules/sleep-tests: New file.
79777         * tests/test-sleep.c: New file.
79779         * modules/sleep: New file.
79780         * lib/sleep.c: New file.
79781         * m4/sleep.m4: New file.
79782         * lib/unistd_.h (sleep): New declaration.
79783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
79784         HAVE_SLEEP.
79785         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
79786         * doc/functions/sleep.texi: Document the sleep module.
79788 2007-05-01  Bruno Haible  <bruno@clisp.org>
79790         * lib/sigprocmask.h: Remove file.
79791         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
79792         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
79793         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
79794         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
79795         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
79796         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
79797         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
79798         HAVE_SIGSET_T as a shell variable.
79799         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
79800         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
79801         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
79802         (Depends-on): Add signal. Remove verify.
79803         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
79804         (Include): Mention <signal.h> instead of sigprocmask.h.
79805         * NEWS: Mention the change.
79806         * lib/fatal-signal.c: Don't include sigprocmask.h.
79808 2007-05-01  Bruno Haible  <bruno@clisp.org>
79810         * modules/signal: New file.
79811         * lib/signal_.h: New file.
79812         * m4/signal_h.m4: New file.
79814 2007-05-01  Bruno Haible  <bruno@clisp.org>
79816         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
79817         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
79818         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
79819         HAVE_WCTYPE_CTMP_BUG into wctype.h.
79821 2007-05-01  Bruno Haible  <bruno@clisp.org>
79823         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
79824         configure time.
79825         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
79826         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
79827         * modules/sys_stat (Makefile.am): Substitute their values into
79828         sys/stat.h.
79830 2007-05-01  Bruno Haible  <bruno@clisp.org>
79832         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
79833         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
79834         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
79836 2007-05-01  Bruno Haible  <bruno@clisp.org>
79838         * doc/header/assert.texi: Undo last change: don't mention the gnulib
79839         'assert' module here.
79841 2007-05-01  Bruno Haible  <bruno@clisp.org>
79843         * doc/functions/*.texi: New files.
79844         * doc/functions/google-ranking.txt: New file.
79845         * doc/gnulib.texi (Function Substitutes): New chapter.
79846         (ctime, inet_ntoa): Remove sections.
79847         * doc/ctime.texi: Remove file.
79848         * doc/inet_ntoa.texi: Remove file.
79849         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
79850         dependencies.
79851         (%.info): New rule, specifying a --reference-limit.
79853 2007-05-01  Bruno Haible  <bruno@clisp.org>
79855         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
79857 2007-05-01  Bruno Haible  <bruno@clisp.org>
79859         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
79860         the portability of 'mkdir' to mingw systems.
79862 2007-05-01  Bruno Haible  <bruno@clisp.org>
79864         * doc/headers/google-ranking.txt: New file.
79866 2007-04-30  Eric Blake  <ebb9@byu.net>
79868         Prefer fseeko to fseek.
79869         * modules/getpass (Depends-on): Add fseeko.
79870         * lib/getpass.c (getpass): Use fseeko, not fseek.
79872 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
79874         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
79875         assumes the sorting is stable, while most qsort implementations
79876         are not.  Use argument addresses to ensure they never compare as
79877         equal.
79879         * tests/test-argp-2.sh (usage-indent test): Fix output
79880         (func_compare): Restore diff options
79881         * tests/test-argp.c: Restore #include "progname.h"
79883 2007-04-29  Bruno Haible  <bruno@clisp.org>
79885         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
79886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79887         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
79888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79889         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
79890         (configure.ac): Define CHECK_SNPRINTF_POSIX.
79891         (TESTS, check_PROGRAMS): Add test-snprintf.
79892         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
79893         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
79894         (TESTS, check_PROGRAMS): Add test-vsnprintf.
79895         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
79896         assertions that fail on HP-UX, OSF/1, or IRIX.
79897         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
79899 2007-04-29  Bruno Haible  <bruno@clisp.org>
79901         * MODULES.html.sh (posix_functions): Remove 'contents'.
79903 2007-04-29  Karl Berry  <karl@gnu.org>
79905         * config/srclist.txt (gendocs_template_min): new entry.
79907 2007-04-29  Bruno Haible  <bruno@clisp.org>
79909         Work around fpurge bug on BSD systems.
79910         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
79911         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
79912         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
79913         fpurge to rpl_fpurge if the system already has this function.
79914         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
79915         the case where the system already has this function. Correct invariants
79916         on BSD systems.
79917         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
79918         BSD systems.
79920 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
79922         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
79923         proposed by Sven Verdoolaege.
79925         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
79926         options.
79927         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
79928         (usage and help tests): Update
79930 2007-04-29  Bruno Haible  <bruno@clisp.org>
79932         * tests/test-fflush.c (main): Use a file of size 17, not 10.
79933         Print more information in case of failure. Disable a test on BeOS.
79935 2007-04-29  Bruno Haible  <bruno@clisp.org>
79937         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
79938         This helps debugging on systems on which no gdb is available.
79940 2007-04-29  Bruno Haible  <bruno@clisp.org>
79942         * lib/freading.h: Improve comments.
79943         * lib/fwriting.h: Likewise.
79944         * tests/test-freading.c (main): Don't check freading immediately after
79945         repositioning. Needed for glibc.
79947 2007-04-29  Bruno Haible  <bruno@clisp.org>
79949         * lib/freading.c (freading): Trivial simplification.
79951 2007-04-28  Bruno Haible  <bruno@clisp.org>
79953         * tests/test-fwriting.c (main): Also test the interaction between
79954         fflush and fwriting.
79955         * modules/fwriting-tests (Depends-on): Add fflush.
79957         * tests/test-freading.c (main): Also test the interaction between
79958         fflush and freading.
79959         * modules/freading-tests (Depends-on): Add fflush.
79961 2007-04-28  Bruno Haible  <bruno@clisp.org>
79963         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
79964         fseeko and ftello.
79965         Suggested by Eric Blake.
79967 2007-04-28  Jim Meyering  <jim@meyering.net>
79969         Avoid false-negative in gl_STDINT_H's C99 conformance test.
79970         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
79971         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
79973 2007-04-27  Eric Blake  <ebb9@byu.net>
79975         * doc/headers/assert.texi (assert.h): Document assert module use.
79977 2007-04-27  Bruno Haible  <bruno@clisp.org>
79979         * doc/headers/*.texi: New files.
79980         * doc/gnulib.texi (Header File Substitutes): New chapter.
79981         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
79982         dependencies.
79983         (standards.info ,standards.html, standards.dvi): Update dependencies.
79984         (mostlyclean, clean): New targets.
79986 2007-04-27  Bruno Haible  <bruno@clisp.org>
79988         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
79989         * modules/sysexits (Files, Makefile.am): Update.
79991         * lib/sys_socket_.h: Renamed from lib/socket_.h.
79992         * modules/sys_socket (Files, Makefile.am): Update.
79994         * lib/sys_stat_.h: Renamed from lib/stat_.h.
79995         * modules/sys_stat (Files, Makefile.am): Update.
79997 2007-04-27  Eric Blake  <ebb9@byu.net>
79999         * lib/freading.h: Improve comments.
80000         * lib/fwriting.h: Likewise.
80001         * lib/fflush.c: Likewise.
80003         Fix closein for mingw.
80004         * modules/closein-tests: Add tests for closein.
80005         * tests/test-closein.c: New file.
80006         * tests/test-closein.sh: Likewise.
80007         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
80008         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
80010 2007-04-27  Bruno Haible  <bruno@clisp.org>
80012         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
80013         version is < 6.
80014         * lib/math_.h [__DECC]: Likewise.
80015         * lib/stdio_.h [__DECC]: Likewise.
80016         * lib/stdlib_.h [__DECC]: Likewise.
80017         * lib/string_.h [__DECC]: Likewise.
80018         * lib/time_.h [__DECC]: Likewise.
80019         * lib/wchar_.h [__DECC]: Likewise.
80020         * lib/wctype_.h [__DECC]: Likewise.
80022 2007-04-27  Bruno Haible  <bruno@clisp.org>
80024         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
80026 2007-04-27  Bruno Haible  <bruno@clisp.org>
80028         * lib/fflush.c: Add comments.
80029         * modules/fpurge-tests (Depends-on): Add fflush.
80030         * modules/freadable-tests (Depends-on): Likewise.
80031         * modules/fwritable-tests (Depends-on): Likewise.
80033 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
80035         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
80036         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
80037         Report by Bruno Haible <bruno@clisp.org>.
80039 2007-04-26  Eric Blake  <ebb9@byu.net>
80041         Fix fflush on mingw.
80042         * modules/fflush (Depends-on): Add freading.
80043         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
80044         but unread data.
80046 2007-04-26  Eric Blake  <ebb9@byu.net>
80047         and Bruno Haible  <bruno@clisp.org>
80049         Implement freading and fwriting.
80050         * lib/freading.c: New file.
80051         * lib/freading.h: Likewise.
80052         * m4/freading.m4: Likewise.
80053         * modules/freading: Likewise.
80054         * modules/freading-tests: Likewise.
80055         * tests/test-freading.c: Likewise.
80056         * lib/fwriting.c: New file.
80057         * lib/fwriting.h: Likewise.
80058         * m4/fwriting.m4: Likewise.
80059         * modules/fwriting: Likewise.
80060         * modules/fwriting-tests: Likewise.
80061         * tests/test-fwriting.c: Likewise.
80062         * MODULES.html.sh (File stream based Input/Output): Mention them.
80064 2007-04-26  Bruno Haible  <bruno@clisp.org>
80066         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
80067         'long' when we assume it.
80068         Suggested by Eric Blake.
80070 2007-04-26  Bruno Haible  <bruno@clisp.org>
80072         Ensure fseeko, ftello are declared on glibc systems.
80073         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
80074         * modules/fseeko (configure.ac-early): Likewise.
80075         * modules/ftello (configure.ac-early): Likewise.
80076         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
80077         AC_FUNC_FSEEKO for this.
80078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
80079         (gl_CHECK_FSEEKO): Remove macro.
80081 2007-04-26  Bruno Haible  <bruno@clisp.org>
80083         * tests/test-fflush.c (main): Also check the ftell result after
80084         fflush and fseek/fseeko.
80085         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
80086         file descriptor position cache in the stream.
80087         * lib/fseeko.c (rpl_fseeko): Likewise.
80089 2007-04-26  Bruno Haible  <bruno@clisp.org>
80091         * modules/fflush-tests (Depends-on): Add fseeko.
80093 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
80094             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80096         * lib/argz_.h: ensure error_t definition is obtained in same
80097         mechanism system argz.h would have.
80098         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
80099         argz facilities are known bad.  Err on the side of caution if
80100         cross-compiling.
80102 2007-04-25  Eric Blake  <ebb9@byu.net>
80104         * lib/fpurge.c (includes): Use stdlib.h for free.
80105         * tests/test-fflush.c (main): Also test fflush-fseeko.
80107 2007-04-25  Bruno Haible  <bruno@clisp.org>
80109         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
80110         * lib/fseeko.c: New file.
80111         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
80112         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
80113         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
80114         gl_FUNC_FSEEKO.
80115         (gl_FUNC_FSEEKO): Invoke it.
80116         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
80117         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
80118         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
80120 2007-04-25  Bruno Haible  <bruno@clisp.org>
80122         * modules/fflush (Depends-on): Add ftello.
80124 2007-04-25  Bruno Haible  <bruno@clisp.org>
80126         * modules/ftello-tests: New file.
80127         * tests/test-ftello.c: New file.
80129         * modules/ftello: New file.
80130         * m4/ftello.m4: New file.
80131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
80132         HAVE_FTELLO.
80133         * lib/stdio_.h (ftello): New declaration.
80134         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
80135         HAVE_FTELLO.
80137 2007-04-25  Bruno Haible  <bruno@clisp.org>
80139         * modules/fseeko-tests: New file.
80140         * tests/test-fseeko.c: New file.
80142         * modules/fseeko: New file.
80143         * m4/fseeko.m4: New file.
80144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
80145         HAVE_FSEEKO.
80146         * lib/stdio_.h (fseeko): New declaration.
80147         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
80148         HAVE_FSEEKO.
80150 2007-04-25  Bruno Haible  <bruno@clisp.org>
80152         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
80154 2007-04-25  Bruno Haible  <bruno@clisp.org>
80156         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
80157         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
80158         * tests/test-unistd.c: Likewise.
80159         * tests/test-fcntl.c: Likewise.
80161 2007-04-23  Eric Blake  <ebb9@byu.net>
80163         * lib/fflush.c: Fix missing include.
80164         Reported by Bruno Haible.
80166 2007-04-23  Bruno Haible  <bruno@clisp.org>
80168         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
80169         Reported by Eric Blake.
80171 2007-04-23  Bruno Haible  <bruno@clisp.org>
80173         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
80175 2007-04-23  Bruno Haible  <bruno@clisp.org>
80177         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
80179 2007-04-23  Bruno Haible  <bruno@clisp.org>
80181         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
80182         Needed on HP-UX 11.
80184 2007-04-16  Eric Blake  <ebb9@byu.net>
80186         Make fflush rely on fpurge.
80187         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
80188         open coding all variants.
80189         * modules/fflush (Depends-on): Add fpurge and unistd.
80190         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
80191         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
80193         Fix --with-tests compilation on cygwin.
80194         * modules/argmatch-tests (Makefile.am): List gnulib library first
80195         in LDADD.
80196         * modules/argp-tests (Makefile.am): Likewise.
80197         * modules/array-list-tests (Makefile.am): Likewise.
80198         * modules/array-oset-tests (Makefile.am): Likewise.
80199         * modules/avltree-list-tests (Makefile.am): Likewise.
80200         * modules/avltree-oset-tests (Makefile.am): Likewise.
80201         * modules/avltreehash-list-tests (Makefile.am): Likewise.
80202         * modules/carray-list-tests (Makefile.am): Likewise.
80203         * modules/dirname-tests (Makefile.am): Likewise.
80204         * modules/frexp-tests (Makefile.am): Likewise.
80205         * modules/isnanl-tests (Makefile.am): Likewise.
80206         * modules/linked-list-tests (Makefile.am): Likewise.
80207         * modules/linkedhash-list-tests (Makefile.am): Likewise.
80208         * modules/lock-tests (Makefile.am): Likewise.
80209         * modules/rbtree-list-tests (Makefile.am): Likewise.
80210         * modules/rbtree-oset-tests (Makefile.am): Likewise.
80211         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
80212         * modules/tls-tests (Makefile.am): Likewise.
80213         * modules/tsearch-tests (Makefile.am): Likewise.
80214         * modules/xvasprintf-tests (Makefile.am): Likewise.
80216         Fix fpurge for cygwin.
80217         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
80218         value.
80219         * modules/fpurge-tests (Depends-on): Clean up trash.
80221 2007-04-16  Simon Josefsson  <simon@josefsson.org>
80223         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
80225         * m4/autobuild.m4: Re-indent.
80227 2007-04-13  Bruno Haible  <bruno@clisp.org>
80229         * modules/fpurge-tests: New file.
80230         * tests/test-fpurge.c: New file.
80232         * modules/fpurge: New file.
80233         * lib/fpurge.h: New file.
80234         * lib/fpurge.c: New file.
80235         * m4/fpurge.m4: New file.
80237 2007-04-13  Bruno Haible  <bruno@clisp.org>
80239         * modules/fbufmode-tests: New file.
80240         * tests/test-fbufmode.c: New file.
80242         * modules/fbufmode: New file.
80243         * lib/fbufmode.h: New file.
80244         * lib/fbufmode.c: New file.
80245         * m4/fbufmode.m4: New file.
80247 2007-04-13  Bruno Haible  <bruno@clisp.org>
80249         * modules/fwritable-tests: New file.
80250         * tests/test-fwritable.c: New file.
80252         * modules/fwritable: New file.
80253         * lib/fwritable.h: New file.
80254         * lib/fwritable.c: New file.
80255         * m4/fwritable.m4: New file.
80257 2007-04-13  Bruno Haible  <bruno@clisp.org>
80259         * modules/freadable-tests: New file.
80260         * tests/test-freadable.c: New file.
80262         * modules/freadable: New file.
80263         * lib/freadable.h: New file.
80264         * lib/freadable.c: New file.
80265         * m4/freadable.m4: New file.
80267 2007-04-13  Bruno Haible  <bruno@clisp.org>
80269         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
80270         MOSTLYCLEANFILES.
80272 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80274         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
80275         gzip bootstrap.conf to avoid dragging in i18n machinery.
80276         (gnulib_tool_option): Use it.
80278 2007-04-13  Bruno Haible  <bruno@clisp.org>
80280         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
80281         %F directives.
80282         * tests/test-vasprintf-posix.c (test_function): Likewise.
80283         * tests/test-snprintf-posix.h (test_function): Likewise.
80284         * tests/test-sprintf-posix.h (test_function): Likewise.
80285         * tests/test-fprintf-posix.h (test_function): Likewise.
80286         * tests/test-printf-posix.h (test_function): Likewise.
80287         * tests/test-fprintf-posix.out: Likewise.
80289 2007-04-13  Bruno Haible  <bruno@clisp.org>
80291         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
80292         * modules/tls-tests (configure.ac): Likewise.
80293         Reported by Arto C. Nirkko <anirkko@insel.ch>.
80295 2007-04-13  Bruno Haible  <bruno@clisp.org>
80297         * lib/tls.c (glthread_tls_get): Fix return type.
80298         Patch by Arto C. Nirkko <anirkko@insel.ch>.
80300 2007-04-12  Eric Blake  <ebb9@byu.net>
80302         * modules/gettime (Depends-on): Remove gettime.
80303         Reported by Dmitry V. Levin.
80305 2007-04-12  Bruno Haible  <bruno@clisp.org>
80307         * modules/fflush (Include): Mention <stdio.h>.
80308         * modules/strtoimax (Include): Mention <inttypes.h>.
80309         * modules/strtoumax (Include): Likewise.
80311 2007-04-12  Eric Blake  <ebb9@byu.net>
80313         * .cvsignore: New file.
80314         * .gitignore: Likewise.
80316 2007-04-12  Bruno Haible  <bruno@clisp.org>
80318         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
80319         not before, since $(LDADD) often contains libgnu.a.
80320         * modules/striconv-tests (test_striconv_LDADD): Likewise.
80321         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
80322         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
80323         Needed on Cygwin.
80325 2007-04-12  Eric Blake  <ebb9@byu.net>
80327         Work around glibc's failure to flush stdin on fclose.
80328         * lib/closein.c (close_stdin): Flush stdin before closing.
80330         Work around glibc's failure to reset seekable stdin on exit.
80331         * modules/closein: New module.
80332         * lib/closein.c: New file.
80333         * lib/closein.h: Likewise.
80334         * m4/closein.m4: Likewise.
80335         * MODULES.html.sh (File stream based Input/Output): Document it.
80337 2007-04-12  Simon Josefsson  <simon@josefsson.org>
80339         * gnulib-tool: Rename generated 'autobuild' script to
80340         'do-autobuild' in --create-megatestdir output.
80342         * doc/gnulib.texi (Build robot for gnulib): Fix.
80344 2007-04-12  Simon Josefsson  <simon@josefsson.org>
80346         * modules/sysexits (Depends-on): Add absolute-header.
80348 2007-04-12  Eric Blake  <ebb9@byu.net>
80350         No need to preserve errno on success.
80351         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
80352         Reported by Bruno Haible.
80354 2007-04-12  Simon Josefsson  <simon@josefsson.org>
80356         * MODULES.html.sh (Support for maintaining and releasing
80357         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
80359 2007-04-12  Simon Josefsson  <simon@josefsson.org>
80361         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
80363 2007-04-12  Simon Josefsson  <simon@josefsson.org>
80365         * modules/autobuild: New module.
80367         * m4/autobuild.m4: New file.
80369 2007-04-11  Bruno Haible  <bruno@clisp.org>
80371         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
80372         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
80373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
80374         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
80375         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80376         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80377         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
80379         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80380         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
80382         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80383         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
80385         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80386         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
80388         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80389         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80390         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
80391         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80392         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
80394         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80395         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80396         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
80397         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
80398         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
80399         Reported by Eric Blake.
80401 2007-04-11  Bruno Haible  <bruno@clisp.org>
80403         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
80405 2007-04-10  Bruno Haible  <bruno@clisp.org>
80407         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
80408         for NaN and Infinity. Needed on FreeBSD 6.1.
80409         * tests/test-vasnprintf-posix.c (test_function): Undo last change
80410         regarding results for "%010a" of Infinity and NaN.
80411         * tests/test-vasprintf-posix.c (test_function): Likewise.
80412         * tests/test-snprintf-posix.h (test_function): Likewise.
80413         * tests/test-sprintf-posix.h (test_function): Likewise.
80414         * tests/test-fprintf-posix.h (test_function): Likewise.
80415         * tests/test-printf-posix.h (test_function): Likewise.
80416         * tests/test-fprintf-posix.out: Likewise.
80418 2007-04-10  Bruno Haible  <bruno@clisp.org>
80420         * modules/locale-tests: New file.
80421         * tests/test-locale.c: New file.
80423         * modules/locale: New file.
80424         * lib/locale_.h: New file.
80425         * m4/locale_h.m4: New file.
80427 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
80428             Bruno Haible  <bruno@clisp.org>
80430         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
80431         be determined, test for availability of the copysignf, copysign,
80432         copysignl functions.
80433         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
80434         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
80435         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
80437 2007-04-09  Eric Blake  <ebb9@byu.net>
80439         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
80440         * modules/stdio (Makefile.am): Support fflush.
80441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80442         * modules/fflush: New file.
80443         * lib/fflush.c: Likewise.
80444         * m4/fflush.m4: Likewise.
80445         * modules/fflush-tests: New test.
80446         * tests/test-fflush.c: Likewise.
80447         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
80449 2007-04-06  Bruno Haible  <bruno@clisp.org>
80451         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
80452         (VASNPRINTF): Use signbit for faster determination whether to print a
80453         minus sign.
80454         * modules/vasnprintf (Files): Remove lib/float+.h.
80455         * modules/fprintf-posix (Depends-on): Add signbit.
80456         * modules/snprintf-posix (Depends-on): Likewise.
80457         * modules/sprintf-posix (Depends-on): Likewise.
80458         * modules/vasnprintf-posix (Depends-on): Likewise.
80459         * modules/vasprintf-posix (Depends-on): Likewise.
80460         * modules/vfprintf-posix (Depends-on): Likewise.
80461         * modules/vsnprintf-posix (Depends-on): Likewise.
80462         * modules/vsprintf-posix (Depends-on): Likewise.
80464 2007-04-06  Bruno Haible  <bruno@clisp.org>
80466         * tests/test-frexp.c (main): Test also the sign bit of zero results.
80467         * tests/test-frexpl.c (main): Likewise.
80468         * tests/test-ldexpl.c (main): Likewise.
80469         * modules/frexp-tests (Depends-on): Add signbit.
80470         * modules/frexpl-tests (Depdends-on): Likewise.
80471         * modules/ldexpl-tests (Depdends-on): Likewise.
80473 2007-04-06  Bruno Haible  <bruno@clisp.org>
80475         * modules/signbit-tests: New file.
80476         * tests/test-signbit.c: New file.
80478         * modules/signbit: New file.
80479         * lib/signbitf.c: New file.
80480         * lib/signbitd.c: New file.
80481         * lib/signbitl.c: New file.
80482         * m4/signbit.m4: New file.
80483         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
80484         (signbit): New macro.
80485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
80486         REPLACE_SIGNBIT.
80487         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
80488         REPLACE_FREXPL into math.h.
80490 2007-04-06  Bruno Haible  <bruno@clisp.org>
80492         * modules/isnanf-nolibm-tests: New file.
80493         * tests/test-isnanf.c: New file.
80495         * modules/isnanf-nolibm: New file.
80496         * lib/isnanf.h: New file.
80497         * lib/isnanf.c: New file.
80498         * lib/isnan.c: Consider the USE_FLOAT macro.
80499         * m4/isnanf.m4: New file.
80501 2007-04-06  Bruno Haible  <bruno@clisp.org>
80503         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
80504         (Link): New section.
80506         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
80508 2007-04-06  Bruno Haible  <bruno@clisp.org>
80510         Assume the 'long double' type.
80511         * m4/longdouble.m4: Remove file.
80512         * config/srclist.txt: Don't mention longdouble.m4.
80513         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
80514         * lib/float+.h: Likewise.
80515         * lib/frexp.c: Likewise.
80516         * lib/printf-args.h: Likewise.
80517         * lib/printf-args.c: Likewise.
80518         * lib/printf-frexp.c: Likewise.
80519         * lib/printf-parse.c: Likewise.
80520         * lib/vasnprintf.c: Likewise.
80521         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
80522         * m4/intl.m4: Likewise.
80523         * m4/isnanl.m4: Likewise.
80524         * m4/printf.m4: Likewise.
80525         * m4/printf-frexpl.m4: Likewise.
80526         * m4/vasnprintf.m4: Likewise.
80527         * modules/allocsa (Files): Remove m4/longdouble.m4.
80528         * modules/gettext (Files): Likewise.
80529         * modules/relocatable-prog-wrapper (Files): Likewise.
80530         * modules/vasnprintf (Files): Likewise.
80531         * modules/isnanl (Files): Likewise.
80532         (Include): Simplify.
80533         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
80534         (Include): Simplify.
80535         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
80536         (Include): Simplify.
80537         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
80538         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80539         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
80540         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80541         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
80542         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80543         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
80544         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80545         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
80546         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80547         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
80548         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80549         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
80550         * tests/test-isnanl.c: Likewise.
80551         * tests/test-snprintf-posix.h: Likewise.
80552         * tests/test-sprintf-posix.h: Likewise.
80553         * tests/test-vasnprintf-posix.c: Likewise.
80554         * tests/test-vasnprintf-posix2.c: Likewise.
80555         * tests/test-vasprintf-posix.c: Likewise.
80557 2007-04-06  Bruno Haible  <bruno@clisp.org>
80559         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
80560         * lib/math_.h [__DECC]: Include the overridden include file through
80561         #include_next, outside the double-inclusion guard.
80562         * lib/stdio_.h [__DECC]: Likewise.
80563         * lib/stdlib_.h [__DECC]: Likewise.
80564         * lib/string_.h [__DECC]: Likewise.
80565         * lib/time_.h [__DECC]: Likewise.
80566         * lib/wchar_.h [__DECC]: Likewise.
80567         * lib/wctype_.h [__DECC]: Likewise.
80568         * lib/inttypes_.h [__DECC]: Likewise.
80569         Reported by Albert Chin <china@thewrittenword.com> in
80570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
80572 2007-04-04  Eric Blake  <ebb9@byu.net>
80574         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
80575         1.5.x.
80577 2007-04-04  Bruno Haible  <bruno@clisp.org>
80579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
80580         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
80582 2007-04-04  Bruno Haible  <bruno@clisp.org>
80584         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
80585         results for "%010a" of Infinity and NaN.
80586         * tests/test-vasprintf-posix.c (test_function): Likewise.
80587         * tests/test-snprintf-posix.h (test_function): Likewise.
80588         * tests/test-sprintf-posix.h (test_function): Likewise.
80589         * tests/test-fprintf-posix.h (test_function): Remove these tests.
80590         * tests/test-printf-posix.h (test_function): Likewise.
80591         * tests/test-fprintf-posix.out: Update.
80592         Needed for FreeBSD 6.1.
80594 2007-04-04  Bruno Haible  <bruno@clisp.org>
80596         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
80597         directly used by the gnulib modules nor by gnulib-tool.
80599 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80601         * DEPENDENCIES: Give overall description of version dependency
80602         desirability.  Use more-typical names for apps.
80603         Add shell, coreutils, diffutils, grep, tar, gzip.
80605 2007-04-04  Simon Josefsson  <simon@josefsson.org>
80607         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
80609 2007-04-04  Karl Berry  <karl@gnu.org>
80611         * MODULES.html.sh (func_module): missing '.
80613 2007-04-03  Bruno Haible  <bruno@clisp.org>
80615         * modules/argmatch-tests (Makefile.am): New variable
80616         test_argmatch_LDADD.
80617         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
80618         * modules/array-list-tests (Makefile.am): New variable
80619         test_array_list_LDADD.
80620         * modules/array-oset-tests (Makefile.am): New variable
80621         test_array_oset_LDADD.
80622         * modules/avltree-list-tests (Makefile.am): New variable
80623         test_avltree_list_LDADD.
80624         * modules/avltree-oset-tests (Makefile.am): New variable
80625         test_avltree_oset_LDADD.
80626         * modules/avltreehash-list-tests (Makefile.am): New variable
80627         test_avltreehash_list_LDADD.
80628         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
80629         test_canonicalize_lgpl_LDADD.
80630         * modules/carray-list-tests (Makefile.am): New variable
80631         test_carray_list_LDADD.
80632         * modules/dirname-tests (Makefile.am): New variable
80633         test_dirname_LDADD.
80634         * modules/linked-list-tests (Makefile.am): New variable
80635         test_linked_list_LDADD.
80636         * modules/linkedhash-list-tests (Makefile.am): New variable
80637         test_linkedhash_list_LDADD.
80638         * modules/rbtree-list-tests (Makefile.am): New variable
80639         test_rbtree_list_LDADD.
80640         * modules/rbtree-oset-tests (Makefile.am): New variable
80641         test_rbtree_oset_LDADD.
80642         * modules/rbtreehash-list-tests (Makefile.am): New variable
80643         test_rbtreehash_list_LDADD.
80644         * modules/xvasprintf-tests (Makefile.am): New variable
80645         test_xvasprintf_LDADD.
80646         Reported by Eric Blake.
80648 2007-04-03  Eric Blake  <ebb9@byu.net>
80650         * DEPENDENCIES: Weaken m4 requirements.
80652 2007-04-03  Bruno Haible  <bruno@clisp.org>
80654         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
80655         * modules/isnanl-tests (configure.ac): Likewise.
80657 2007-04-03  Ben Pfaff  <blp@gnu.org>
80659         * modules/iconv_open: Add $(srcdir)/ to source directory
80660         references in Makefile fragments that call gperf, to fix VPATH
80661         builds.
80663 2007-04-03  Bruno Haible  <bruno@clisp.org>
80665         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
80666         * lib/ldexpl.c: Undo last change.
80668 2007-04-03  Bruno Haible  <bruno@clisp.org>
80670         * modules/printf-frexpl (Depends-on): Undo last change.
80671         (Files): Add m4/ldexpl.m4.
80673 2007-04-03  Bruno Haible  <bruno@clisp.org>
80675         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
80676         * modules/isnanl (Link): New section.
80678         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
80679         * modules/frexp (Link): New section.
80681         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
80682         * modules/frexpl (Link): New section.
80684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
80685         * modules/ldexpl (Link): New section.
80687 2007-04-03  Bruno Haible  <bruno@clisp.org>
80689         * modules/TEMPLATE-EXTENDED: New file.
80690         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
80692 2007-04-03  Bruno Haible  <bruno@clisp.org>
80694         * DEPENDENCIES: New file.
80695         Suggested by Simon Josefsson.
80697 2007-04-03  Bruno Haible  <bruno@clisp.org>
80699         * doc/gnulib.texi: Escape @.
80701 2007-04-03  James Youngman  <jay@gnu.org>
80702         and Paul Eggert  <eggert@cs.ucla.edu>
80704         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
80705         birthtime on all systems that have birthtime, not just those which
80706         use st_birthtimensec rather than st_birthtim.  Putting zero in
80707         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
80708         that the birth time is not available for files on an NFS mount.
80710 2007-04-03  Simon Josefsson  <simon@josefsson.org>
80712         * modules/memxor: Move back from crypto/, suggested by Bruno.
80713         * modules/crypto/hmac-sha1: Fix memxor dependency.
80715         * modules/crypto/gc: Moved from ../.
80717 2007-04-02  Eric Blake  <ebb9@byu.net>
80719         * lib/ldexpl.c (includes): Avoid libm.
80721         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
80723 2007-04-02  Bruno Haible  <bruno@clisp.org>
80725         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
80726         on IRIX.
80728 2007-04-02  Bruno Haible  <bruno@clisp.org>
80730         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
80731         x86 or x86_64 platforms running MacOS X.
80732         Reported by Ryan Schmidt <@ryandesign.com>.
80734 2007-04-02  Bruno Haible  <bruno@clisp.org>
80736         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
80737         i386.
80739 2007-04-01  Simon Josefsson  <simon@josefsson.org>
80741         * modules/crypto/arcfour: Moved from ../.
80742         * modules/crypto/arcfour-tests: Moved from ../.
80743         * modules/crypto/arctwo: Moved from ../.
80744         * modules/crypto/arctwo-tests: Moved from ../.
80745         * modules/crypto/des: Moved from ../.
80746         * modules/crypto/des-tests: Moved from ../.
80747         * modules/crypto/gc-arcfour: Moved from ../.
80748         * modules/crypto/gc-arcfour-tests: Moved from ../.
80749         * modules/crypto/gc-arctwo: Moved from ../.
80750         * modules/crypto/gc-arctwo-tests: Moved from ../.
80751         * modules/crypto/gc-des: Moved from ../.
80752         * modules/crypto/gc-des-tests: Moved from ../.
80753         * modules/crypto/gc-hmac-md5: Moved from ../.
80754         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
80755         * modules/crypto/gc-hmac-sha1: Moved from ../.
80756         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
80757         * modules/crypto/gc-md2: Moved from ../.
80758         * modules/crypto/gc-md2-tests: Moved from ../.
80759         * modules/crypto/gc-md4: Moved from ../.
80760         * modules/crypto/gc-md4-tests: Moved from ../.
80761         * modules/crypto/gc-md5: Moved from ../.
80762         * modules/crypto/gc-md5-tests: Moved from ../.
80763         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
80764         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
80765         * modules/crypto/gc-random: Moved from ../.
80766         * modules/crypto/gc-rijndael: Moved from ../.
80767         * modules/crypto/gc-rijndael-tests: Moved from ../.
80768         * modules/crypto/gc-sha1: Moved from ../.
80769         * modules/crypto/gc-sha1-tests: Moved from ../.
80770         * modules/crypto/gc-tests: Moved from ../.
80771         * modules/crypto/hmac-md5: Moved from ../.
80772         * modules/crypto/hmac-md5-tests: Moved from ../.
80773         * modules/crypto/hmac-sha1: Moved from ../.
80774         * modules/crypto/hmac-sha1-tests: Moved from ../.
80775         * modules/crypto/md2: Moved from ../.
80776         * modules/crypto/md2-tests: Moved from ../.
80777         * modules/crypto/md4: Moved from ../.
80778         * modules/crypto/md4-tests: Moved from ../.
80779         * modules/crypto/md5: Moved from ../.
80780         * modules/crypto/md5-tests: Moved from ../.
80781         * modules/crypto/memxor: Moved from ../.
80782         * modules/crypto/rijndael: Moved from ../.
80783         * modules/crypto/rijndael-tests: Moved from ../.
80784         * modules/crypto/sha1: Moved from ../.
80786 2007-03-30  James Youngman  <jay@gnu.org>
80788         * tests/test-stat-time.c (prepare_test): use chmod() rather than
80789         rename() to change the ctime of a file (because ctime is unaffected
80790         by rename on jfs2 on AIX 5.1).
80791         (main): Start by doing cleanup, in case a previous run failed leaving
80792         test files behind.
80794 2007-03-31  Bruno Haible  <bruno@clisp.org>
80796         Support old proprietary implementations of iconv.
80797         * modules/iconv_open: New file.
80798         * lib/iconv_.h: New file.
80799         * m4/iconv_h.m4: New file.
80800         * lib/iconv_open.c: New file.
80801         * lib/iconv_open-aix.gperf: New file.
80802         * lib/iconv_open-hpux.gperf: New file.
80803         * lib/iconv_open-irix.gperf: New file.
80804         * lib/iconv_open-osf.gperf: New file.
80805         * m4/iconv_open.m4: New file.
80806         * modules/linebreak (Depends-on): Add iconv_open.
80807         * modules/striconv (Depends-on): Likewise.
80808         * modules/striconveh (Depends-on): Likewise.
80809         * modules/unicodeio (Depends-on): Likewise.
80810         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
80811         (iconv_t)(-1).
80812         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
80813         conversion if cd is (iconv_t)(-1).
80814         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
80815         is not possible.
80817 2007-03-31  Bruno Haible  <bruno@clisp.org>
80819         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
80820         work on Solaris either. Protect also second use of "autodetect_jp".
80822 2007-03-31  Bruno Haible  <bruno@clisp.org>
80824         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
80825         the function is not present.
80827 2007-03-31  Bruno Haible  <bruno@clisp.org>
80829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
80830         the function is not present.
80832 2007-03-31  Bruno Haible  <bruno@clisp.org>
80834         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
80835         a bug in HP-UX iconv_open().
80837 2007-03-31  Bruno Haible  <bruno@clisp.org>
80839         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
80840         (Mathematics <math.h>): New section, add fpieee.
80841         (Input/output <stdio.h>): Add fseterr.
80842         (Mathematics <math.h>): New section, add printf-frexp.
80843         (Container data structures): Add sublist.
80844         (Core language properties): Add fpucw, inline.
80845         (Functions for greatest-width integer types <inttypes.h>): Add
80846         imaxabs, imaxdiv, inttypes.
80847         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
80848         isnanl-nolibm, ldexp.
80849         (Mathematics <math.h>): New section, add printf-frexpl.
80850         (Support for systems lacking POSIX:2001): Add fprintf-posix,
80851         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
80852         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
80853         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
80854         (Unicode string functions): Add unistr/u*-mbtoucr.
80855         (Java): Add javacomp-script, javaexec-script.
80856         (C#): Add csharpcomp-script, csharpexec-script.
80857         (Support for building libraries and executables): Add havelib,
80858         relocatable-*.
80859         (Support for maintaining and releasing projects): Renamed from
80860         'Support for maintaining and release projects'. Add announce-gen.
80862 2007-03-31  Bruno Haible  <bruno@clisp.org>
80864         * README: Talk primarily about git.
80865         (git and CVS): Renamed from CVS.
80866         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
80867         gnulib is available through git.
80868         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
80870 2007-03-30  Bruno Haible  <bruno@clisp.org>
80872         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
80873         * lib/poll_.h: Likewise.
80874         * lib/stat_.h: Likewise.
80875         * lib/sys_time_.h: Likewise.
80876         * lib/sysexit_.h: Likewise.
80877         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
80878         * lib/stdbool_.h: Likewise.
80879         * lib/byteswap_.h: Add double-inclusion guard.
80881 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
80883         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
80885 2007-03-30  Karl Berry  <karl@gnu.org>
80887         * config/srclist-update: double space after USA in the license
80888         substitution, since that's how it's usually (?) written.
80890 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80892         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
80893         reported by Bruno Haible.
80895 2007-03-29  Bruno Haible  <bruno@clisp.org>
80897         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
80898         a bug in AIX iconv().
80900 2007-03-29  Bruno Haible  <bruno@clisp.org>
80902         * modules/ldexpl-tests: New file.
80903         * tests/test-ldexpl.c: New file.
80905 2007-03-29  Bruno Haible  <bruno@clisp.org>
80907         * lib/ldexpl.c: Include fpucw.h.
80908         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
80909         multiplication.
80910         * modules/ldexpl (Depends-on): Add fpucw.
80912 2007-03-29  Bruno Haible  <bruno@clisp.org>
80914         * modules/ldexpl: New file.
80915         * m4/ldexpl.m4: New file.
80916         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
80917         set.
80918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
80919         REPLACE_LDEXPL.
80920         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
80921         REPLACE_LDEXPL.
80922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
80923         gl_FUNC_LDEXPL_WORKS.
80924         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
80925         * modules/mathl (Files): Remove lib/ldexpl.c.
80926         (Depends-on): Add ldexpl.
80928 2007-03-29  Bruno Haible  <bruno@clisp.org>
80930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
80932 2007-03-29  Bruno Haible  <bruno@clisp.org>
80934         * tests/test-striconveh.c (main): Don't assume that a direct conversion
80935         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
80936         and possibly also HP-UX.
80937         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
80938         work on AIX, IRIX, HP-UX, OSF/1.
80939         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80940         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80941         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80942         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80943         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
80944         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80946 2007-03-29  Bruno Haible  <bruno@clisp.org>
80948         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
80950 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
80952         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
80953         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
80955 2007-03-29  Eric Blake  <ebb9@byu.net>
80957         * lib/acl-internal.h: Remove redundant include.
80958         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
80959         Cygwin when a file is locked.
80961 2007-03-29  Bruno Haible  <bruno@clisp.org>
80963         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
80964         file.
80965         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
80967 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
80969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
80970         try to remove a parent directory if the child couldn't be removed
80971         (except for the first rmdir, which could fail because the child
80972         doesn't exist).  Problem reported by Jeff Blaine in
80973         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
80975 2007-03-28  Bruno Haible  <bruno@clisp.org>
80977         * lib/striconveh.c (utf8conv_carefully): New function.
80978         (mem_cd_iconveh_internal): Invoke it.
80980 2007-03-28  Bruno Haible  <bruno@clisp.org>
80982         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
80983         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
80984         input.
80985         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
80986         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
80987         unistr/u8-uctomb.
80989 2007-03-28  Bruno Haible  <bruno@clisp.org>
80991         * modules/unistr/u8-mbtoucr: New file.
80992         * lib/unistr/u8-mbtoucr.c: New file.
80993         * modules/unistr/u16-mbtoucr: New file.
80994         * lib/unistr/u16-mbtoucr.c: New file.
80995         * modules/unistr/u16-mbtoucr: New file.
80996         * lib/unistr/u16-mbtoucr.c: New file.
80997         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
80999 2007-03-27  Simon Josefsson  <simon@josefsson.org>
81000             Bruno Haible  <bruno@clisp.org>
81002         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
81003         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
81004         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
81006         * m4/stdio_h.m4: Add stubs for vasprintf too.
81008         * modules/stdio: Support vasprintf in sed command.
81010         * modules/vasprintf: Depend on stdio for prototypes.  Remove
81011         vasprintf.h.  Add stdio module indicator.
81013         * lib/stdio_.h: Declare asprintf and vasprintf, based on
81014         vasprintf.h.
81016         * lib/vasprintf.h: File removed.
81018         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
81019         * lib/vasprintf.c: Ditto.
81020         * lib/xvasprintf.c: Ditto.
81021         * tests/test-vasprintf-posix.c: Ditto.
81022         * tests/test-vasprintf.c: Ditto.
81024 2007-03-27  Bruno Haible  <bruno@clisp.org>
81026         Make vasnprintf multithread-safe.
81027         * lib/vasnprintf.c (decimal_point_char): New function.
81028         (VASNPRINTF): Use it.
81029         Suggested by Simon Josefsson.
81031 2007-03-27  Eric Blake  <ebb9@byu.net>
81033         Support sub-second birthtime on cygwin.
81034         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
81035         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
81036         (get_stat_birthtime): Also work with st_birthtim.
81038 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
81040         * lib/stat-time.h (USE_BIRTHTIME): Remove.
81041         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
81042         (get_stat_birthtime_ns): Do not try to use "spare" fields.
81043         (get_stat_birthtime_ns): Simplify compile-time tests.
81044         (get_stat_birthtime): Change the API to look like
81045         get_stat_mtime etc., except return a negative tv_nsec on error.
81046         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
81047         Don't check for "spare" fields.
81048         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
81049         or for struct stat.st_birthtime, as these tests aren't used.
81050         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
81052 2007-03-27  Bruno Haible  <bruno@clisp.org>
81054         * lib/stat-time.h: Include <sys/stat.h>.
81056 2007-03-27  James Youngman  <jay@gnu.org>
81058         * lib/stat-time.h (get_stat_birthtime): New function for
81059           retrieving st_birthtime as provided by UFS2 (hence *BSD).
81060         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
81061           and its variants.
81062         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
81063         * modules/stat-time-test: New file.
81064         * tests/test-stat-time.c: New test, devised by Bruno Haible.
81066 2007-03-26  Bruno Haible  <bruno@clisp.org>
81068         Better support of signalling NaNs.
81069         * lib/atanl.c: Include isnanl.h.
81070         (atanl): Perform test for NaN at the beginning of the function and
81071         through a call to isnanl.
81072         * lib/cosl.c: Include isnanl.h.
81073         (cosl): Perform test for NaN at the beginning of the function and
81074         through a call to isnanl.
81075         * lib/ldexpl.c: Include isnanl.h.
81076         (ldexpl): Perform test for NaN through a call to isnanl.
81077         * lib/logl.c: Include isnanl.h.
81078         (logl): Perform test for NaN at the beginning of the function and
81079         through a call to isnanl.
81080         * lib/sinl.c: Include isnanl.h.
81081         (sinl): Perform test for NaN at the beginning of the function and
81082         through a call to isnanl.
81083         * lib/sqrtl.c: Include isnanl.h.
81084         (sqrtl): Perform test for NaN at the beginning of the function and
81085         through a call to isnanl.
81086         * lib/tanl.c: Include isnanl.h.
81087         (tanl): Perform test for NaN at the beginning of the function and
81088         through a call to isnanl.
81089         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
81090         * modules/mathl (Depends-on): Add isnanl.
81092 2007-03-26  Eric Blake  <ebb9@byu.net>
81094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
81095         regression in logic sense of previous patch.
81097 2007-03-26  Bruno Haible  <bruno@clisp.org>
81099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
81100         unportable shell command "if ! ...".
81101         Reported by Ralf Wildenhues.
81103 2007-03-25  Bruno Haible  <bruno@clisp.org>
81105         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
81106         <sysexits.h> file, and only add EX_CONFIG.
81107         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
81108         absolute file name and whether it is sufficient. Substitute also
81109         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
81110         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
81111         ABSOLUTE_SYSEXITS_H into sysexits.h.
81113 2007-03-25  Bruno Haible  <bruno@clisp.org>
81115         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
81116         hints is NULL.
81118 2007-03-25  Bruno Haible  <bruno@clisp.org>
81120         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
81121         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
81123 2007-03-25  Bruno Haible  <bruno@clisp.org>
81125         * lib/vasnprintf.c: Include langinfo.h.
81126         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
81127         multithread-safe.
81128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
81129         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
81130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81131         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81132         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81133         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81135         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
81136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81137         Reported by Simon Josefsson.
81139 2007-03-25  Bruno Haible  <bruno@clisp.org>
81141         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
81142         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
81143         * modules/vasnprintf (Depends-on): Add stdint.
81145 2007-03-25  Bruno Haible  <bruno@clisp.org>
81147         * modules/fpieee: New file.
81148         * m4/fpieee.m4: New file.
81149         * modules/isnan-nolibm (Depends-on): Add fpieee.
81150         * modules/isnanl-nolibm (Depends-on): Add fpieee.
81151         * modules/isnanl (Depends-on): Add fpieee.
81153 2007-03-25  Bruno Haible  <bruno@clisp.org>
81155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
81157 2007-03-25  Bruno Haible  <bruno@clisp.org>
81159         Avoid test failures on IRIX 6.5.
81160         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
81161         (main): Use it.
81162         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
81163         macros.
81164         (main): Use them.
81166 2007-03-25  Bruno Haible  <bruno@clisp.org>
81168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
81169         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
81170         exists but doesn't work.
81171         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
81172         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
81173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
81174         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
81175         math.h.
81177 2007-03-25  Bruno Haible  <bruno@clisp.org>
81179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
81180         returns inf. Needed on IRIX 6.5.
81182 2007-03-25  Bruno Haible  <bruno@clisp.org>
81184         * tests/test-frexpl.c: Include isnanl-nolibm.h.
81185         (main): Use isnanl instead of x != x idiom.
81186         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
81188         * tests/test-frexp.c: Include isnan.h.
81189         (main): Use isnan instead of x != x idiom.
81190         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
81192 2007-03-25  Bruno Haible  <bruno@clisp.org>
81194         * tests/test-frexp.c (NaN): New function/macro.
81195         (main): Use it instead of 0.0 / 0.0.
81196         * tests/test-isnan.c (NaN): New function/macro.
81197         (main): Use it instead of 0.0 / 0.0.
81198         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
81199         (test_function): Use it instead of 0.0 / 0.0.
81200         * tests/test-vasprintf-posix.c (NaN): New function/macro.
81201         (test_function): Use it instead of 0.0 / 0.0.
81202         * tests/test-snprintf-posix.h (NaN): New function/macro.
81203         (test_function): Use it instead of 0.0 / 0.0.
81204         * tests/test-sprintf-posix.h (NaN): New function/macro.
81205         (test_function): Use it instead of 0.0 / 0.0.
81206         * tests/test-fprintf-posix.h (NaN): New function/macro.
81207         (test_function): Use it instead of 0.0 / 0.0.
81208         * tests/test-printf-posix.h (NaN): New function/macro.
81209         (test_function): Use it instead of 0.0 / 0.0.
81211         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
81213 2007-03-25  Bruno Haible  <bruno@clisp.org>
81215         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
81217 2007-03-25  Bruno Haible  <bruno@clisp.org>
81219         * lib/regexec.c (merge_state_with_log): Make static.
81221 2007-03-25  Bruno Haible  <bruno@clisp.org>
81223         * lib/trigl.c (kernel_rem_pio2): Make static.
81225 2007-03-25  Bruno Haible  <bruno@clisp.org>
81227         * lib/sincosl.c (sincosl_table): Make static.
81229 2007-03-25  Bruno Haible  <bruno@clisp.org>
81231         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
81232         if the compiler does not support C99.
81234 2007-03-25  Bruno Haible  <bruno@clisp.org>
81236         * modules/time (Makefile.am): Ensure all rule action lines start with a
81237         tab.
81239 2007-03-24  Bruno Haible  <bruno@clisp.org>
81241         * modules/tsearch-tests: New file.
81242         * tests/test-tsearch.sh: New file.
81243         * tests/test-tsearch.c: New file, mostly copied from glibc.
81245         * modules/search-tests: New file.
81246         * tests/test-search.c: New file.
81248         * modules/search: New file.
81249         * lib/search_.h: New file, incorporating lib/tsearch.h.
81250         * m4/search_h.m4: New file.
81251         * lib/tsearch.h: Remove file.
81252         * lib/tsearch.c: Include search.h instead of tsearch.h.
81253         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
81254         HAVE_TSEARCH.
81255         * modules/tsearch (Files): Remove lib/tsearch.h.
81256         (Depends-on): Add search.
81257         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
81258         (Include): Change tsearch.h into search.h.
81260 2007-03-24  Bruno Haible  <bruno@clisp.org>
81262         * modules/fpucw: New file.
81263         * lib/fpucw.h: New file.
81264         * lib/frexp.c: Include fpucw.h.
81265         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
81266         (FUNC): Use them.
81267         * lib/printf-frexp.c: Include fpucw.h.
81268         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
81269         (FUNC): Use them.
81270         * lib/vasnprintf.c: Include fpucw.h.
81271         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
81272         'long double' calculations.
81273         * tests/test-frexpl.c: Include fpucw.h.
81274         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
81275         * tests/test-printf-frexpl.c: Include fpucw.h.
81276         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
81277         * modules/frexpl (Depends-on): Add fpucw.
81278         * modules/printf-frexpl (Depends-on): Likewise.
81279         * modules/fprintf-posix (Depends-on): Likewise.
81280         * modules/snprintf-posix (Depends-on): Likewise.
81281         * modules/sprintf-posix (Depends-on): Likewise.
81282         * modules/vasnprintf-posix (Depends-on): Likewise.
81283         * modules/vasprintf-posix (Depends-on): Likewise.
81284         * modules/vfprintf-posix (Depends-on): Likewise.
81285         * modules/vsnprintf-posix (Depends-on): Likewise.
81286         * modules/vsprintf-posix (Depends-on): Likewise.
81287         * modules/frexpl-tests (Depends-on): Likewise.
81288         * modules/printf-frexpl-tests (Depends-on): Likewise.
81290 2007-03-24  Bruno Haible  <bruno@clisp.org>
81292         * lib/float+.h: New file.
81293         * lib/isnan.c: Include float+.h.
81294         (SIZE): New macro.
81295         (FUNC): Compare only SIZE bytes of the value.
81296         * lib/vasnprintf.c: Include float+.h.
81297         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
81298         SIZEOF_LDBL or SIZEOF_DBL bytes.
81299         * modules/isnan-nolibm (Files): Add lib/float+.h.
81300         * modules/isnanl-nolibm (Files): Add lib/float+.h.
81301         * modules/isnanl (Files): Add lib/float+.h.
81302         * modules/vasnprintf (Files): Add lib/float+.h.
81304 2007-03-24  Bruno Haible  <bruno@clisp.org>
81306         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
81307         include isnanl-nolibm.h.
81309 2007-03-24  Bruno Haible  <bruno@clisp.org>
81311         * tests/test-read-file.c (main): Don't produce spurious output for
81312         expected situations. Make the test fail if it encountered unexpected
81313         results.
81315 2007-03-24  Bruno Haible  <bruno@clisp.org>
81317         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
81318         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
81320 2007-03-24  Bruno Haible  <bruno@clisp.org>
81322         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
81324 2007-03-24  Bruno Haible  <bruno@clisp.org>
81326         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
81327         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
81329         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
81330         * modules/utf8-ucs4: Turn into a symbolic link to module
81331         unistr/u8-mbtouc.
81333         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
81334         utf8-ucs4-unsafe.
81335         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
81336         unistr/u8-mbtouc-unsafe.
81338         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
81339         * modules/utf16-ucs4: Turn into a symbolic link to module
81340         unistr/u16-mbtouc.
81342         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
81343         utf16-ucs4-unsafe.
81344         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
81345         unistr/u16-mbtouc-unsafe.
81347         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
81348         * modules/ucs4-utf8: Turn into a symbolic link to module
81349         unistr/u8-ubtomb.
81351         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
81352         * modules/ucs4-utf16: Turn into a symbolic link to module
81353         unistr/u16-ubtomb.
81355 2007-03-24  Bruno Haible  <bruno@clisp.org>
81357         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
81358         Enable the function only if HAVE_INLINE.
81359         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
81360         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
81361         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
81362         Enable the function only if HAVE_INLINE.
81363         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
81364         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
81365         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
81366         Enable the function only if HAVE_INLINE.
81367         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
81368         Enable the function only if HAVE_INLINE.
81369         * modules/utf8-ucs4: Update.
81370         * modules/utf8-ucs4-unsafe: Update.
81371         * modules/utf16-ucs4: Update.
81372         * modules/utf16-ucs4-unsafe: Update.
81373         * modules/ucs4-utf8: Update.
81374         * modules/ucs4-utf16: Update.
81376 2007-03-24  Bruno Haible  <bruno@clisp.org>
81378         * lib/utf8-ucs4.h: Remove file.
81379         * lib/utf8-ucs4-unsafe.h: Remove file.
81380         * lib/utf16-ucs4.h: Remove file.
81381         * lib/utf16-ucs4-unsafe.h: Remove file.
81382         * lib/ucs4-utf8.h: Remove file.
81383         * lib/ucs4-utf16.h: Remove file.
81384         * lib/unistr.h: Include their previous contents.
81385         * m4/utf-ucs4.m4: Remove file.
81386         * m4/ucs4-utf.m4: Remove file.
81387         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
81388         (Depends-on): Add unistr/base.
81389         (configure.ac): Remove gl_UTF_UCS4.
81390         (Makefile.am): Update.
81391         (Include): Change to unistr.h.
81392         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
81393         (Depends-on): Add unistr/base.
81394         (configure.ac): Remove gl_UTF_UCS4.
81395         (Makefile.am): Update.
81396         (Include): Change to unistr.h.
81397         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
81398         (Depends-on): Add unistr/base.
81399         (configure.ac): Remove gl_UTF_UCS4.
81400         (Makefile.am): Update.
81401         (Include): Change to unistr.h.
81402         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
81403         (Depends-on): Add unistr/base.
81404         (configure.ac): Remove gl_UTF_UCS4.
81405         (Makefile.am): Update.
81406         (Include): Change to unistr.h.
81407         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
81408         (Depends-on): Add unistr/base.
81409         (configure.ac): Remove gl_UCS4_UTF.
81410         (Makefile.am): Update.
81411         (Include): Change to unistr.h.
81412         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
81413         (Depends-on): Add unistr/base.
81414         (configure.ac): Remove gl_UCS4_UTF.
81415         (Makefile.am): Update.
81416         (Include): Change to unistr.h.
81417         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
81418         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
81419         utf8-ucs4-unsafe.h.
81420         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
81421         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
81422         utf16-ucs4-unsafe.h.
81423         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
81424         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
81425         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
81426         * lib/unistr/u8-strchr.c: Likewise.
81427         * lib/unistr/u8-strrchr.c: Likewise.
81428         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
81429         * lib/unistr/u16-strchr.c: Likewise.
81430         * lib/unistr/u16-strrchr.c: Likewise.
81431         * lib/striconveh.c: Update.
81432         * lib/linebreak.c: Update.
81434 2007-03-24  Bruno Haible  <bruno@clisp.org>
81436         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
81437         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
81439 2007-03-22  Bruno Haible  <bruno@clisp.org>
81441         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
81443 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81445         * MODULES.html.sh (File system functions): New module write-any-file.
81446         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
81447         * m4/write-any-file.m4: New files.
81449 2007-03-23  Eric Blake  <ebb9@byu.net>
81451         * gnulib-tool: Rearrange space-tab sequences, since some editors
81452         like to eat them.
81454 2007-03-23  Eric Blake  <ebb9@byu.net>
81456         * lib/version-etc.c (version_etc_va): Update license wording to
81457         be more concise.  Recommended by Richard Stallman.
81459 2007-03-22  Bruno Haible  <bruno@clisp.org>
81461         * lib/poll.c (MSG_PEEK): New fallback definition.
81463 2007-03-22  Bruno Haible  <bruno@clisp.org>
81465         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
81466         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
81467         (main): Update.
81468         Fixes a compilation error on BeOS.
81470 2007-03-22  Bruno Haible  <bruno@clisp.org>
81472         * modules/frexpl-tests: New file.
81473         * tests/test-frexpl.c: New file.
81475         * modules/frexpl: New file.
81476         * m4/frexpl.m4: New file.
81477         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
81478         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
81479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
81480         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
81481         (Depends-on): Add frexpl. Remove isnanl-nolibm.
81482         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
81484 2007-03-22  Bruno Haible  <bruno@clisp.org>
81486         * lib/frexpl.c: Share code with lib/frexp.c.
81487         * modules/mathl (Files): Add lib/frexp.c.
81488         (Depends-on): Add isnanl-nolibm.
81490 2007-03-22  Bruno Haible  <bruno@clisp.org>
81492         * modules/printf-frexp (Files): Add m4/frexp.m4.
81493         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
81494         only if the found frexp function actually works.
81496 2007-03-22  Bruno Haible  <bruno@clisp.org>
81498         * lib/frexp.c: Remove older implementation that uses divisions.
81500 2007-03-21  Bruno Haible  <bruno@clisp.org>
81502         * modules/frexp-tests: New file.
81503         * tests/test-frexp.c: New file.
81505         * modules/frexp: New file.
81506         * lib/frexp.c: New file.
81507         * m4/frexp.m4: New file.
81508         * lib/math_.h (frexp): New declaration.
81509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
81510         REPLACE_FREXP.
81511         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
81513 2007-03-21  Bruno Haible  <bruno@clisp.org>
81515         * modules/isnanl-tests: New file.
81516         * tests/test-isnanl.c: New file.
81518         * modules/isnanl: New file.
81519         * lib/isnanl.h: New file.
81520         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
81521         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
81522         gl_FUNC_ISNANL_WORKS.
81523         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
81524         New macros.
81526 2007-03-21  Bruno Haible  <bruno@clisp.org>
81528         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
81529         lib/isnanl.h.
81530         (Include): Update.
81531         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
81532         * lib/vasnprintf.c: Update.
81533         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
81534         tests/test-isnanl.h, remove tests/test-isnanl.c.
81535         (Makefile.am): Update.
81536         * tests/test-isnanl-nolibm.c: New file.
81537         * tests/test-isnanl.h: New file.
81538         * tests/test-isnanl.c: Remove file.
81540 2007-03-21  Jim Meyering  <jim@meyering.net>
81542         When trying to open ".", treat ESTALE like EACCES.
81543         * lib/savewd.c (savewd_save): Resort to forking not just upon
81544         failure with EACCES, but also when errno is ESTALE.
81546 2007-03-20  Bruno Haible  <bruno@clisp.org>
81548         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
81549         Needed on AIX 5.1. Reported by Matthew Woehlke.
81551 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
81553         Suggestions by Bruno Haible:
81554         * lib/acl-internal.h: Include "gettext.h" rather than rolling
81555         our own.
81556         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
81557         * modules/acl (Depends-on): Add gettext.
81559 2007-03-19  Bruno Haible  <bruno@clisp.org>
81561         * modules/iconvme: Remove file.
81562         * lib/iconvme.h: Remove file.
81563         * lib/iconvme.c: Remove file.
81564         * m4/iconvme.m4: Remove file.
81566 2007-03-19  Bruno Haible  <bruno@clisp.org>
81568         * doc/relocatable-maint.texi: Break long shell script line.
81569         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
81571 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
81573         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
81574         handle file_has_acl.
81575         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
81576         * lib/acl.c: Move header inclusions and related macro defns into
81577         lib/acl-internal.h.
81578         (S_ISLNK): Remove defn, since that's now done for us.
81579         (file_has_acl): Move to lib/file-has-acl.c.
81580         Call acl_trivial if available.  This is the crucial part of the fix.
81581         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
81582         shared within the library.  Rewrite a bit, partly to make it compatible
81583         with the GNU coding style.
81584         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
81585         Remove unnecessary double-quotes.
81586         Don't test for acl_to_text; the build will catch that.
81587         Replace acl_entries if it doesn't exist and it is needed.
81588         Check for -lsec and acl_trivial (as used on Solaris 10).
81589         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
81590         lib/file-has-acl.c.
81591         (Depends-on): Add sys_stat, for S_ISLNK.
81593 2007-03-19  Ben Pfaff  <blp@gnu.org>
81595         * doc/gnulib.texi: Fix typos.
81596         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
81598 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
81600         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
81601         If size is zero here, buf must be zero.
81603 2007-03-19  Simon Josefsson  <simon@josefsson.org>
81605         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
81606         <bruno@clisp.org>.
81608 2007-03-18  Bruno Haible  <bruno@clisp.org>
81610         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
81611         Suggested by Eric Blake.
81613 2007-03-18  Ben Pfaff  <blp@gnu.org>
81615         * doc/relocatable.texi: Recommend using as prefix a directory
81616         that does not exist and will never be created.  Based on
81617         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
81618         and others.
81620 2007-03-17  Bruno Haible  <bruno@clisp.org>
81622         * lib/fchownat.c: Include lchown.h.
81624 2007-03-17  Bruno Haible  <bruno@clisp.org>
81626         Fix endless loop when the given allocated size was > INT_MAX.
81627         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
81628         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
81629         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
81630         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
81631         * lib/sprintf.c (sprintf): Likewise.
81633 2007-03-17  Bruno Haible  <bruno@clisp.org>
81635         * tests/test-argp-2.sh (func_compare): Output a context diff.
81637 2007-03-17  Bruno Haible  <bruno@clisp.org>
81639         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
81640         locale's decimal-point character.
81642 2007-03-17  Bruno Haible  <bruno@clisp.org>
81644         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
81645         before comparing it. Needed because on some platforms (e.g. x86) a
81646         'long double' occupies less bytes than sizeof (long double).
81648 2007-03-17  Bruno Haible  <bruno@clisp.org>
81650         * tests/test-crc.c (main): Make printf statements 64-bit clean.
81651         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
81652         * tests/test-getaddrinfo.c (simple): Likewise.
81653         * tests/test-read-file.c (main): Likewise.
81655 2007-03-17  Bruno Haible  <bruno@clisp.org>
81657         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
81659 2007-03-17  Bruno Haible  <bruno@clisp.org>
81661         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
81662         unused variable.
81664 2007-03-17  Bruno Haible  <bruno@clisp.org>
81666         * tests/test-c-strcasecmp.c: Include c-strcase.h.
81667         * tests/test-c-strncasecmp.c: Likewise.
81669 2007-03-17  Bruno Haible  <bruno@clisp.org>
81671         * modules/stdlib (Depends-on): Add unistd.
81672         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
81673         Needed for MacOS X 10.3.
81675 2007-03-17  Bruno Haible  <bruno@clisp.org>
81677         * lib/unistr/u-strdup.h: Include <stdlib.h>.
81679 2007-03-17  Bruno Haible  <bruno@clisp.org>
81681         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
81683 2007-03-17  Bruno Haible  <bruno@clisp.org>
81685         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
81686         to reflect files copied from gnulib (with or without modifications).
81687         Suggested by Jim Meyering.
81689 2007-03-17  Eric Blake  <ebb9@byu.net>
81691         * NEWS: Document stdlib change from 2007-02-18.
81693 2007-03-17  Jim Meyering  <jim@meyering.net>
81695         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
81696         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
81697         someone uses a name containing shell meta-characters.
81698         Reported by Alfred M. Szmidt.
81700         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
81702 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
81704         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
81705         and copy gettext configuration files only if configure.ac contains
81706         a use of AM_GNU_GETTEXT_VERSION.
81708 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
81710         * build-aux/bootstrap (gnulib_name): New variable.
81711         (gnulib_tool_options): Use it.
81713 2007-03-13  Simon Josefsson  <simon@josefsson.org>
81715         * tests/test-des.c: Use new namespace.
81717 2007-03-15  Bruno Haible  <bruno@clisp.org>
81719         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
81720         Reported by James Youngman <jay@gnu.org>.
81722 2007-03-15  Bruno Haible  <bruno@clisp.org>
81724         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
81725         declared prototype. Needed with cc on OSF/1 5.1.
81727 2007-03-15  Bruno Haible  <bruno@clisp.org>
81729         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
81730         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
81731         (struct gl_list_implementation): Add dispose_fn argument to the
81732         'create_empty', 'create' methods.
81733         (struct gl_list_impl_base): Add field 'dispose_fn'.
81734         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
81735         argument.
81736         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
81737         dispose_fn argument.
81738         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
81739         dispose_fn on the dropped values.
81740         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
81741         dispose_fn argument.
81742         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
81743         dropped values.
81744         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
81745         (gl_tree_remove_node): Call dispose_fn on the dropped value.
81746         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
81747         (gl_tree_remove_node): Call dispose_fn on the dropped value.
81748         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
81749         argument.
81750         (gl_tree_list_free): Call dispose_fn on the dropped values.
81751         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
81752         the dropped values.
81753         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
81754         Add dispose_fn argument.
81755         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
81756         Call dispose_fn on the dropped values.
81757         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
81758         Add dispose_fn argument.
81759         (gl_sublist_create): Initialize the 'dispose_fn' field.
81760         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
81761         * tests/test-array_list.c (main): Update.
81762         * tests/test-carray_list.c (main): Update.
81763         * tests/test-avltree_list.c (main): Update.
81764         * tests/test-rbtree_list.c (main): Update.
81765         * tests/test-avltreehash_list.c (main): Update.
81766         * tests/test-rbtreehash_list.c (main): Update.
81767         * tests/test-linked_list.c (main): Update.
81768         * tests/test-linkedhash_list.c (main): Update.
81769         * tests/test-array_oset.c (main): Update.
81771 2007-03-15  Bruno Haible  <bruno@clisp.org>
81773         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
81774         (gl_oset_create_empty): Add dispose_fn argument.
81775         (struct gl_oset_implementation): Add dispose_fn argument to
81776         'create_empty' method.
81777         (struct gl_oset_impl_base): Add dispose_fn field.
81778         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
81779         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
81780         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
81781         values.
81782         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
81783         (gl_tree_oset_free): Call dispose_fn on the dropped values.
81784         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
81785         dropped value.
81786         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
81787         dropped value.
81788         * tests/test-array_oset.c (main): Update.
81789         * tests/test-avltree_oset.c (main): Update.
81790         * tests/test-rbtree_oset.c (main): Update.
81791         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
81793 2007-03-13  Bruno Haible  <bruno@clisp.org>
81795         * tests/test-stdbool.c (i): Update after last patch.
81797 2007-03-12  Bruno Haible  <bruno@clisp.org>
81799         * lib/quotearg.c: Include <wctype.h> early, before the definition of
81800         the iswprint macro. Needed on Solaris 2.5.1.
81802 2007-03-12  Bruno Haible  <bruno@clisp.org>
81804         * tests/test-printf-frexp.c (main): Declare x as volatile.
81806 2007-03-12  Simon Josefsson  <simon@josefsson.org>
81808         * doc/gnulib.texi (Build robot for gnulib): New section.
81810 2007-03-12  Jim Meyering  <jim@meyering.net>
81812         * build-aux/bootstrap: New file.
81813         * build-aux/bootstrap.conf: New file, from coreutils.
81815 2007-03-11  Bruno Haible  <bruno@clisp.org>
81817         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
81819 2007-03-12  Simon Josefsson  <simon@josefsson.org>
81821         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
81822         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
81823         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
81825 2007-03-11  Bruno Haible  <bruno@clisp.org>
81827         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
81828         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
81830 2007-03-11  Bruno Haible  <bruno@clisp.org>
81832         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
81833         formula. Needed for SunPRO C 5.0.
81835 2007-03-11  Bruno Haible  <bruno@clisp.org>
81837         * modules/long-options (Depends-on): Add getopt.
81839 2007-03-11  Bruno Haible  <bruno@clisp.org>
81841         * modules/modechange (Depends-on): Add stdbool.
81843 2007-03-11  Bruno Haible  <bruno@clisp.org>
81845         * modules/i-ring (Depends-on): Add stdbool.
81847 2007-03-11  Bruno Haible  <bruno@clisp.org>
81849         * modules/gc-des (Depends-on): Add stdbool.
81851 2007-03-11  Bruno Haible  <bruno@clisp.org>
81853         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
81855 2007-03-11  Bruno Haible  <bruno@clisp.org>
81857         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
81859 2007-03-11  Bruno Haible  <bruno@clisp.org>
81861         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
81863 2007-03-11  Bruno Haible  <bruno@clisp.org>
81865         * lib/vasnprintf.c (sprintf): Undefine.
81867 2007-03-11  Bruno Haible  <bruno@clisp.org>
81869         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
81870         initializers in SunPRO C and Compaq C compilers.
81872 2007-03-11  Bruno Haible  <bruno@clisp.org>
81874         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
81875         decrementing code ANSI C compliant.
81877 2007-03-11  Bruno Haible  <bruno@clisp.org>
81879         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
81880         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
81882 2007-03-11  Bruno Haible  <bruno@clisp.org>
81884         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
81885         <stdbool.h> substitute doesn't pass.
81887 2007-03-11  Bruno Haible  <bruno@clisp.org>
81889         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
81891 2007-03-11  Bruno Haible  <bruno@clisp.org>
81893         * gnulib-tool (func_create_megatestdir): Create also an autobuild
81894         script, for submission to autobuild.josefsson.org.
81896 2007-03-10  Bruno Haible  <bruno@clisp.org>
81898         * modules/canonicalize-lgpl-tests: New file.
81899         * tests/test-canonicalize-lgpl.sh: New file.
81900         * tests/test-canonicalize-lgpl.c: New file.
81902         * modules/c-strcase-tests: New file.
81903         * tests/test-c-strcase.sh: New file.
81904         * tests/test-c-strcasecmp.c: New file.
81905         * tests/test-c-strncasecmp.c: New file.
81907         * modules/atexit-tests: New file.
81908         * tests/test-atexit.sh: New file.
81909         * tests/test-atexit.c: New file.
81911 2007-03-10  Bruno Haible  <bruno@clisp.org>
81913         * tests/test-binary-io.sh: Use temporary filenames that are not so
81914         likely to clash with those of other tests (in a parallel make).
81915         * tests/test-binary-io.c: Likewise.
81917 2007-03-10  Bruno Haible  <bruno@clisp.org>
81919         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
81920         fallback; use #error instead.
81921         Suggested by Simon Josefsson.
81923 2007-03-10  Bruno Haible  <bruno@clisp.org>
81925         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
81926         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
81927         first and the last.
81929 2007-03-10  Bruno Haible  <bruno@clisp.org>
81931         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
81933 2007-03-10  Bruno Haible  <bruno@clisp.org>
81935         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
81936         "make distcheck".
81937         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
81938         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
81939         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
81941 2007-03-10  Bruno Haible  <bruno@clisp.org>
81943         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
81944         variable.
81945         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
81946         variable.
81948 2007-03-09  Eric Blake  <ebb9@byu.net>
81949         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
81951         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
81952         types are not being provided by gnulib.
81953         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
81954         types are supported.
81956 2007-03-10  Bruno Haible  <bruno@clisp.org>
81958         * lib/stdio_.h (__attribute__): New macro.
81959         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
81960         vsprintf): Specify __attribute__ __format__ for GCC.
81961         Suggested by Eric Blake.
81963 2007-03-09  Bruno Haible  <bruno@clisp.org>
81965         * modules/printf-posix-tests: New file.
81966         * tests/test-printf-posix.sh: New file.
81967         * tests/test-printf-posix.c: New file.
81969         * modules/printf-posix: New file.
81970         * lib/printf.c: New file.
81971         * m4/printf-posix-rpl.m4: New file.
81972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
81973         REPLACE_PRINTF.
81974         * lib/stdio_.h (printf): New declaration.
81975         (format, __format__, ____printf____, ____scanf____, ____strftime____,
81976         ____strfmon____): New macros.
81977         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
81978         REPLACE_PRINTF.
81980 2007-03-09  Bruno Haible  <bruno@clisp.org>
81982         * tests/test-vasnprintf-posix2.sh: New file.
81983         * tests/test-vasnprintf-posix2.c: New file.
81984         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
81985         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
81986         (Makefile.am): Activate test-vasnprintf-posix2.sh.
81988         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
81989         a locale dependent decimal point, rather than always '.'.
81991 2007-03-09  Eric Blake  <ebb9@byu.net>
81993         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
81994         spite of platforms like Tandem/NSK that define it to -1.
81996 2007-03-08  Bruno Haible  <bruno@clisp.org>
81998         * modules/vprintf-posix-tests: New file.
81999         * tests/test-vprintf-posix.sh: New file.
82000         * tests/test-vprintf-posix.c: New file.
82001         * tests/test-printf-posix.h: New file.
82003         * modules/vprintf-posix: New file.
82004         * lib/vprintf.c: New file.
82005         * m4/vprintf-posix.m4: New file.
82006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
82007         REPLACE_VPRINTF.
82008         * lib/stdio_.h (vprintf): New declaration.
82009         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
82010         REPLACE_VPRINTF.
82012 2007-03-08  Bruno Haible  <bruno@clisp.org>
82014         * modules/fprintf-posix-tests: New file.
82015         * tests/test-fprintf-posix.sh: New file.
82016         * tests/test-fprintf-posix.c: New file.
82018         * modules/fprintf-posix: New file.
82019         * lib/fprintf.c: New file.
82020         * m4/fprintf-posix.m4: New file.
82021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
82022         REPLACE_FPRINTF.
82023         * lib/stdio_.h (fprintf): New declaration.
82024         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
82025         REPLACE_FPRINTF.
82027 2007-03-08  Bruno Haible  <bruno@clisp.org>
82029         * modules/vfprintf-posix-tests: New file.
82030         * tests/test-vfprintf-posix.sh: New file.
82031         * tests/test-vfprintf-posix.c: New file.
82032         * tests/test-fprintf-posix.h: New file.
82033         * tests/test-fprintf-posix.out: New file.
82035         * modules/vfprintf-posix: New file.
82036         * lib/vfprintf.c: New file.
82037         * m4/vfprintf-posix.m4: New file.
82038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
82039         REPLACE_VFPRINTF.
82040         * lib/stdio_.h (vfprintf): New declaration.
82041         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
82042         REPLACE_VFPRINTF.
82044 2007-03-08  Bruno Haible  <bruno@clisp.org>
82046         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
82048 2007-03-08  Bruno Haible  <bruno@clisp.org>
82050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
82051         instead of 'expr' invocations.
82052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82057         Suggested by Paul Eggert.
82059 2007-03-08  Bruno Haible  <bruno@clisp.org>
82061         * modules/fseterr-tests: New file.
82062         * tests/test-fseterr.c: New file.
82064         * modules/fseterr: New file.
82065         * lib/fseterr.h: New file.
82066         * lib/fseterr.c: New file.
82068 2007-03-08  Bruno Haible  <bruno@clisp.org>
82070         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
82071         * lib/getopt_.h: Likewise.
82072         * lib/mbswidth.h: Likewise.
82073         * lib/setenv.h: Likewise.
82074         * lib/vasnprintf.h: Likewise.
82075         * lib/vasprintf.h: Likewise.
82076         * lib/verror.h: Likewise.
82077         * lib/xsetenv.h: Likewise.
82078         * lib/xvasprintf.h: Likewise.
82080 2007-03-08  Jim Meyering  <jim@meyering.net>
82082         * users.txt: Add parted.
82084         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
82086 2007-03-07  Bruno Haible  <bruno@clisp.org>
82088         * m4/printf.m4: Make the shell script snippets copy&pastable.
82090 2007-03-02  Bruno Haible  <bruno@clisp.org>
82092         * lib/netinet_in_.h: New file.
82093         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
82094         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
82095         * modules/netinet_in (Files): Add lib/netinet_in_.h.
82096         (Depends-on): Add absolute-header.
82097         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
82098         into netinet/in.h.
82100 2007-03-03  Bruno Haible  <bruno@clisp.org>
82102         * lib/sys_select_.h: New file.
82103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
82104         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
82105         * modules/sys_select (Files): Add lib/sys_select_.h.
82106         (Depends-on): Add absolute-header.
82107         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
82108         into sys/select.h.
82110 2007-03-02  Bruno Haible  <bruno@clisp.org>
82112         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
82113         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
82114         values.
82115         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
82116         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
82117         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
82118         * modules/sys_socket (Depends-on): Add absolute-header.
82119         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
82120         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
82121         (Include): Remove requirement of inclusion of <sys/types.h>.
82123 2007-03-02  Bruno Haible  <bruno@clisp.org>
82125         * lib/byteswap_.h (bswap_32): Fix formula.
82127 2007-03-06  Bruno Haible  <bruno@clisp.org>
82129         * modules/sprintf-posix-tests: New file.
82130         * tests/test-sprintf-posix.c: New file.
82132         * modules/sprintf-posix: New file.
82133         * lib/sprintf.c: New file.
82134         * m4/sprintf-posix.m4: New file.
82135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
82136         REPLACE_SPRINTF.
82137         * lib/stdio_.h (sprintf): New declaration.
82138         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
82139         REPLACE_SPRINTF.
82141 2007-03-06  Bruno Haible  <bruno@clisp.org>
82143         * modules/vsprintf-posix-tests: New file.
82144         * tests/test-vsprintf-posix.c: New file.
82145         * tests/test-sprintf-posix.h: New file.
82147         * modules/vsprintf-posix: New file.
82148         * lib/vsprintf.c: New file.
82149         * m4/vsprintf-posix.m4: New file.
82150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
82151         REPLACE_VSPRINTF.
82152         * lib/stdio_.h (vsprintf): New declaration.
82153         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
82154         REPLACE_VSPRINTF.
82156 2007-03-06  Bruno Haible  <bruno@clisp.org>
82158         * modules/vsnprintf (Depend-on): Remove minmax.
82160 2007-03-06  Bruno Haible  <bruno@clisp.org>
82162         * modules/snprintf-posix-tests: New file.
82163         * tests/test-snprintf-posix.c: New file.
82165         * modules/snprintf-posix: New file.
82166         * m4/snprintf-posix.m4: New file.
82167         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
82168         gl_FUNC_SNPRINTF.
82169         (gl_FUNC_SNPRINTF): Invoke it.
82170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
82171         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
82172         is set.
82173         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
82175 2007-03-06  Bruno Haible  <bruno@clisp.org>
82177         * modules/vsnprintf-posix-tests: New file.
82178         * tests/test-vsnprintf-posix.c: New file.
82179         * tests/test-snprintf-posix.h: New file.
82181         * modules/vsnprintf-posix: New file.
82182         * m4/vsnprintf-posix.m4: New file.
82183         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
82184         gl_FUNC_VSNPRINTF.
82185         (gl_FUNC_VSNPRINTF): Invoke it.
82186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
82187         * lib/stdio_.h (vsnprintf): Define as a replacement if
82188         REPLACE_VSNPRINTF is set.
82189         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
82191 2007-03-06  Bruno Haible  <bruno@clisp.org>
82193         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
82194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
82196 2007-03-06  Bruno Haible  <bruno@clisp.org>
82198         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
82199         (asinl): Declare also if HAVE_DECL_ASINL is set.
82200         (atanl): Declare also if HAVE_DECL_ATANL is set.
82201         (ceill): Declare also if HAVE_DECL_CEILL is set.
82202         (cosl): Declare also if HAVE_DECL_COSL is set.
82203         (expl): Declare also if HAVE_DECL_EXPL is set.
82204         (floorl): Declare also if HAVE_DECL_FLOORL is set.
82205         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
82206         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
82207         (logl): Declare also if HAVE_DECL_LOGL is set.
82208         (sinl): Declare also if HAVE_DECL_SINL is set.
82209         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
82210         (tanl): Declare also if HAVE_DECL_TANL is set.
82211         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
82212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
82213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
82214         declaration of frexpl, ldexpl.
82215         * modules/printf-frexpl (Depends-on): Add math.
82216         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
82218 2007-03-05  Bruno Haible  <bruno@clisp.org>
82220         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
82221         frexpl and ldexpl are declared.
82222         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
82224 2007-03-05  Bruno Haible  <bruno@clisp.org>
82226         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
82227         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
82229 2007-03-05  Bruno Haible  <bruno@clisp.org>
82231         * lib/stdio_.h: Include <stddef.h>.
82233 2007-03-05  Bruno Haible  <bruno@clisp.org>
82235         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
82237 2007-03-05  Bruno Haible  <bruno@clisp.org>
82239         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
82240         NetBSD 4, from Ralf Wildenhues.
82242 2007-03-04  Bruno Haible  <bruno@clisp.org>
82244         * lib/vasprintf.h: Update #if logic for the case when the functions
82245         exist but are overridden.
82247 2007-03-04  Bruno Haible  <bruno@clisp.org>
82249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
82250         implementations: glibc-2.4 and MacOS X 10.3.
82251         * tests/test-vasnprintf-posix.c (test_function): Test also the case
82252         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
82253         * tests/test-vasprintf-posix.c (test_function): Likewise.
82255 2007-03-04  Bruno Haible  <bruno@clisp.org>
82257         * modules/vasprintf-posix-tests: New file.
82258         * tests/test-vasprintf-posix.c: New file.
82260         * modules/vasprintf-posix: New file.
82261         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
82262         defined.
82263         * m4/vasprintf-posix.m4: New file.
82264         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
82265         gl_FUNC_VASPRINTF.
82266         (gl_FUNC_VASPRINTF): Invoke it.
82267         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
82268         here.
82269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
82271 2007-03-04  Bruno Haible  <bruno@clisp.org>
82273         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
82274         REPLACE_GETTIMEOFDAY.
82275         * modules/sys_time (Makefile.am): Likewise.
82276         * m4/sys_time_h.m4: Likewise.
82277         * m4/gettimeofday.m4: Likewise.
82279 2007-03-04  Bruno Haible  <bruno@clisp.org>
82281         * modules/vasnprintf-posix-tests: New file.
82282         * tests/test-vasnprintf-posix.c: New file.
82284         * modules/vasnprintf-posix: New file.
82285         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
82286         printf-frexpl.h.
82287         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
82288         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
82289         REPLACE_VASNPRINTF is defined.
82290         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
82291         gl_FUNC_VASNPRINTF.
82292         (gl_FUNC_VASNPRINTF): Invoke it.
82293         * m4/vasnprintf-posix.m4: New file.
82294         * m4/printf.m4: New file.
82296 2007-03-04  Bruno Haible  <bruno@clisp.org>
82298         Compile progreloc.c only if --enable-relocatable is specified.
82299         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
82300         if --enable-relocatable was specified.
82301         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
82302         lib_SOURCES.
82304 2007-03-04  Jim Meyering  <jim@meyering.net>
82306         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
82307         Use it consistently, rather than enumerating errno constants.
82309 2007-03-04  Bruno Haible  <bruno@clisp.org>
82311         * modules/xvasprintf-tests: New file.
82312         * tests/test-xvasprintf.c: New file.
82314         * modules/vasprintf-tests: New file.
82315         * tests/test-vasprintf.c: New file.
82317         * modules/vasnprintf-tests: New file.
82318         * tests/test-vasnprintf.c: New file.
82320         * modules/vsnprintf-tests: New file.
82321         * tests/test-vsnprintf.c: New file.
82323         * modules/snprintf-tests: New file.
82324         * tests/test-snprintf.c: New file.
82326 2007-03-04  Bruno Haible  <bruno@clisp.org>
82328         Compile relocatable.c only if --enable-relocatable is specified.
82329         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
82330         gl_RELOCATABLE_LIBRARY.
82331         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
82332         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
82333         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
82334         gl_RELOCATABLE_LIBRARY.
82335         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
82336         (Makefile.am): Remove lib_SOURCES.
82337         * modules/relocatable-lib-lgpl (configure.ac): Invoke
82338         gl_RELOCATABLE_LIBRARY.
82339         (Makefile.am): Remove lib_SOURCES.
82340         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
82341         always.
82342         * modules/relocatable-prog-wrapper (configure.ac): Invoke
82343         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
82345 2007-03-04  Bruno Haible  <bruno@clisp.org>
82347         * modules/argmatch-tests: New file.
82348         * tests/test-argmatch.c: New file.
82350         * tests/test-allocsa.c (main): Halve the number of loop runs.
82352         * modules/alloca-opt-tests: New file.
82353         * tests/test-alloca-opt.c: New file.
82355 2007-03-04  Jim Meyering  <jim@meyering.net>
82357         Work around difference between Linux ACLs and Solaris 10 ZFS.
82358         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
82359         for EINVAL.
82361 2007-03-03  Bruno Haible  <bruno@clisp.org>
82363         * modules/relocatable-prog (Depends-on): Add back progreloc's
82364         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
82366 2007-03-03  Bruno Haible  <bruno@clisp.org>
82368         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
82369         * modules/relocatable-lib: New file.
82371 2007-03-03  Bruno Haible  <bruno@clisp.org>
82373         * modules/relocatable-prog: Renamed from modules/relocatable.
82374         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
82376 2007-03-03  Bruno Haible  <bruno@clisp.org>
82378         * modules/relocatable-script (Files): Add doc/relocatable.texi,
82379         m4/relocatable-lib.m4.
82380         (Depends-on): Remove 'relocatable'.
82381         (configure.ac): Add gl_RELOCATABLE_NOP.
82383 2007-03-03  Bruno Haible  <bruno@clisp.org>
82385         * modules/relocatable-prog-wrapper: New file.
82386         * modules/relocatable (Depends-on): Add it. Remove all other
82387         dependencies except progname.
82388         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
82390         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
82391         (gl_FUNC_STRERROR): Nop.
82392         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
82394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
82395         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
82397         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
82398         (gl_FUNC_READLINK): Update.
82400         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
82402 2007-03-03  Bruno Haible  <bruno@clisp.org>
82404         * lib/xreadlink.c: Include <unistd.h> unconditionally.
82405         * modules/xreadlink (Depends-on): Add unistd.
82406         * modules/xreadlink-with-size (Depends-on): Likewise.
82408 2007-03-03  Bruno Haible  <bruno@clisp.org>
82410         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
82411         extracted from gt_FUNC_SETENV.
82412         (gt_FUNC_SETENV): Remove macro.
82413         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
82414         remove gt_FUNC_SETENV.
82416 2007-03-03  Bruno Haible  <bruno@clisp.org>
82418         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
82419         ENABLE_RELOCATABLE here.
82420         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
82422 2007-03-03  Bruno Haible  <bruno@clisp.org>
82424         * modules/rbtreehash-list-tests (Depends-on): Add progname.
82425         * tests/test-rbtreehash_list.c: Include progname.h.
82426         (main): Call set_program_name.
82428         * modules/rbtree-oset-tests (Depends-on): Add progname.
82429         * tests/test-rbtree_oset.c: Include progname.h.
82430         (main): Call set_program_name.
82432         * modules/rbtree-list-tests (Depends-on): Add progname.
82433         * tests/test-rbtree_list.c: Include progname.h.
82434         (main): Call set_program_name.
82436         * modules/linked-list-tests (Depends-on): Add progname.
82437         * tests/test-linked_list.c: Include progname.h.
82438         (main): Call set_program_name.
82440 2007-03-03  Bruno Haible  <bruno@clisp.org>
82442         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
82443         All uses of __restrict changed to _Restrict_.
82444         * lib/glob_.h (__restrict): Remove macro.
82446 2007-03-02  Bruno Haible  <bruno@clisp.org>
82448         * modules/gettext (configure.ac): Require gettext infrastructure
82449         from version 0.16.1.
82451 2007-03-02  Bruno Haible  <bruno@clisp.org>
82453         * modules/linkedhash-list-tests (Depends-on): Add progname.
82454         * tests/test-linkedhash_list.c: Include progname.h.
82455         (main): Call set_program_name.
82457         * modules/carray-list-tests (Depends-on): Add progname.
82458         * tests/test-carray_list.c: Include progname.h.
82459         (main): Call set_program_name.
82461         * modules/avltreehash-list-tests (Depends-on): Add progname.
82462         * tests/test-avltreehash_list.c: Include progname.h.
82463         (main): Call set_program_name.
82465         * modules/avltree-oset-tests (Depends-on): Add progname.
82466         * tests/test-avltree_oset.c: Include progname.h.
82467         (main): Call set_program_name.
82469         * modules/avltree-list-tests (Depends-on): Add progname.
82470         * tests/test-avltree_list.c: Include progname.h.
82471         (main): Call set_program_name.
82473         * modules/array-oset-tests (Depends-on): Add progname.
82474         * tests/test-array_oset.c: Include progname.h.
82475         (main): Call set_program_name.
82477         * modules/array-list-tests (Depends-on): Add progname.
82478         * tests/test-array_list.c: Include progname.h.
82479         (main): Call set_program_name.
82481         * modules/argp-tests (Depends-on): Add progname.
82482         * tests/test-argp.c: Include argp.h first. Include progname.h.
82483         (main): Call set_program_name.
82485 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
82487         * doc/gnulib-tool.texi (Initial import): Reword description of
82488         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
82489         limited effect even if defined after the first system include.
82491 2007-03-01  Bruno Haible  <bruno@clisp.org>
82493         * build-aux/config.libpath: Update to libtool-1.5.22.
82494         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82496 2007-03-01  Bruno Haible  <bruno@clisp.org>
82498         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
82499         foo_CFLAGS.
82500         Reported by Ralf Wildenhues.
82502 2007-03-01  Bruno Haible  <bruno@clisp.org>
82504         * build-aux/install-reloc: Remove object files left over by some
82505         compilers.
82506         Reported by Ralf Wildenhues.
82508 2007-03-01  Bruno Haible  <bruno@clisp.org>
82510         * build-aux/install-reloc: Break long lines.
82512 2007-03-01  Bruno Haible  <bruno@clisp.org>
82514         * doc/relocatable.texi: Document that it may not work on OpenBSD.
82515         Reported by Ralf Wildenhues.
82517 2007-03-01  Bruno Haible  <bruno@clisp.org>
82519         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
82520         include ordering constraints.
82522 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82524         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
82525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
82526         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
82527         as another example.
82528         * lib/time_.h: Fix misspelling.
82529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
82530         Require gl_HEADER_TIME_H_DEFAULTS.
82531         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
82532         * m4/time_r.m4 (gl_TIME_R): Likewise.
82533         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
82535 2007-03-01  Bruno Haible  <bruno@clisp.org>
82537         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
82538         * m4/utimens.m4 (gl_UTIMENS): Likewise.
82540 2007-03-01  Jim Meyering  <jim@meyering.net>
82542         * modules/xreadlink (Maintainer): Add my name.
82543         * modules/xreadlink-with-size (Depends-on): Alphabetize.
82545 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
82546             Bruno Haible  <bruno@clisp.org>
82548         * build-aux/install-reloc: Compile also c-ctype.c.
82549         * build-aux/relocatable.sh.in: New file.
82550         * doc/relocatable.texi: New file.
82551         * doc/relocatable-maint.texi: New file.
82552         * doc/gnulib.texi: Include relocatable-maint.texi.
82553         * lib/progreloc.c: Include unistd.h unconditionally.
82554         * lib/relocwrapper.c: Include unistd.h unconditionally.
82555         Include c-ctype.h.
82556         (add_dotbin): Use c_tolower.
82557         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
82558         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
82559         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
82560         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
82561         to m4/relocatable-lib.m4.
82562         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
82563         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
82564         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
82565         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
82566         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
82567         * modules/relocatable: New file.
82568         * modules/relocatable-lib: New file.
82569         * modules/relocatable-script: New file.
82571 2007-02-28  Bruno Haible  <bruno@clisp.org>
82573         Import --enable-relocatable infrastructure.
82574         * build-aux/config.libpath: New file, from GNU gettext.
82575         * build-aux/install-reloc: New file, from GNU gettext.
82576         * build-aux/reloc-ldflags: New file, from GNU gettext.
82577         * lib/relocatable.h: New file, from GNU gettext.
82578         * lib/relocatable.c: New file, from GNU gettext.
82579         * lib/relocwrapper.c: New file, from GNU gettext.
82580         * m4/relocatable.m4: New file, from GNU gettext.
82582 2007-02-28  Bruno Haible  <bruno@clisp.org>
82584         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
82586         * modules/xreadlink: New file, from GNU gettext with modifications.
82587         * lib/xreadlink.c: New file, from GNU gettext.
82588         * lib/xreadlink.h: Add comments.
82589         (xreadlink): New declaration.
82591         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
82592         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
82593         lib/xreadlink-with-size.c.
82594         (configure.ac): Remove gl_XREADLINK invocation.
82595         (Makefile.am): Augment lib_SOURCES.
82596         * m4/xreadlink.m4: Remove file.
82597         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
82598         (xreadlink_with_size): Renamed from xreadink.
82599         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
82600         * modules/canonicalize (Depends-on): Replace xreadlink with
82601         xreadlink-with-size.
82602         * lib/canonicalize.c (canonicalize_filename_mode): Update.
82604 2007-02-25  Jim Meyering  <jim@meyering.net>
82606         * build-aux/announce-gen: When complaining about excess arguments,
82607         list them.
82609 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82611         * README: Document signed integer overflow situation more
82612         accurately.
82614 2007-02-25  Bruno Haible  <bruno@clisp.org>
82616         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
82617         'a' or 'A' conversion.
82619 2007-02-25  Bruno Haible  <bruno@clisp.org>
82621         * modules/filename: Renamed from modules/pathname.
82622         (Files): Replace lib/pathname.h with lib/filename.h. Replace
82623         lib/concatpath.c with lib/concat-filename.c.
82624         (Makefile.am): Update.
82625         (Include): Replace pathname.h with filename.h.
82626         * lib/filename.h: Renamed from lib/pathname.h.
82627         (concatenated_filename): Renamed from concatenated_pathname.
82628         * lib/concat-filename.c: Renamed from lib/concatpath.c.
82629         (concatenated_filename): Renamed from concatenated_pathname.
82630         * lib/findprog.c: Include filename.h instead of pathname.h.
82631         (find_in_path): Update.
82632         * lib/javacomp.c: Include filename.h instead of pathname.h.
82633         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
82634         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
82635         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
82636         is_oldgcj_14_13_usable, is_javac_usable): Update.
82637         * lib/javaexec.c: Include filename.h instead of pathname.h.
82638         (execute_java_class): Update.
82639         * modules/findprog: Update.
82640         * modules/javacomp: Update.
82641         * modules/javaexec: Update.
82642         * MODULES.html.sh (File system functions): Add 'filename', remove
82643         'pathname'.
82645 2007-02-25  Bruno Haible  <bruno@clisp.org>
82647         * modules/printf-frexpl-tests: New file.
82648         * tests/test-printf-frexpl.c: New file.
82650         * modules/printf-frexpl: New file.
82651         * lib/printf-frexpl.h: New file.
82652         * lib/printf-frexpl.c: New file.
82653         * m4/printf-frexpl.m4: New file.
82655 2007-02-25  Bruno Haible  <bruno@clisp.org>
82657         * modules/printf-frexp-tests: New file.
82658         * tests/test-printf-frexp.c: New file.
82660         * modules/printf-frexp: New file.
82661         * lib/printf-frexp.h: New file.
82662         * lib/printf-frexp.c: New file.
82663         * m4/printf-frexp.m4: New file.
82665 2007-02-25  Bruno Haible  <bruno@clisp.org>
82667         Assume automake >= 1.10 for the tests.
82668         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
82669         * modules/arctwo-tests: Likewise.
82670         * modules/argp-tests: Likewise.
82671         * modules/avltree-list-tests: Likewise.
82672         * modules/avltree-oset-tests: Likewise.
82673         * modules/avltreehash-list-tests: Likewise.
82674         * modules/carray-list-tests: Likewise.
82675         * modules/crc-tests: Likewise.
82676         * modules/des-tests: Likewise.
82677         * modules/gc-arcfour-tests: Likewise.
82678         * modules/gc-arctwo-tests: Likewise.
82679         * modules/gc-des-tests: Likewise.
82680         * modules/gc-hmac-md5-tests: Likewise.
82681         * modules/gc-hmac-sha1-tests: Likewise.
82682         * modules/gc-md2-tests: Likewise.
82683         * modules/gc-md4-tests: Likewise.
82684         * modules/gc-md5-tests: Likewise.
82685         * modules/gc-pbkdf2-sha1-tests: Likewise.
82686         * modules/gc-rijndael-tests: Likewise.
82687         * modules/gc-sha1-tests: Likewise.
82688         * modules/gc-tests: Likewise.
82689         * modules/getaddrinfo-tests: Likewise.
82690         * modules/hmac-md5-tests: Likewise.
82691         * modules/hmac-sha1-tests: Likewise.
82692         * modules/linked-list-tests: Likewise.
82693         * modules/linkedhash-list-tests: Likewise.
82694         * modules/lock-tests: Likewise.
82695         * modules/md2-tests: Likewise.
82696         * modules/md4-tests: Likewise.
82697         * modules/md5-tests: Likewise.
82698         * modules/rbtree-list-tests: Likewise.
82699         * modules/rbtree-oset-tests: Likewise.
82700         * modules/rbtreehash-list-tests: Likewise.
82701         * modules/read-file-tests: Likewise.
82702         * modules/rijndael-tests: Likewise.
82703         * modules/stdint-tests: Likewise.
82704         * modules/tls-tests: Likewise.
82706 2007-02-24  Bruno Haible  <bruno@clisp.org>
82708         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
82709         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
82710         function; instead check whether isnan with a double argument links.
82711         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
82712         function; instead check whether isnan with a 'long double' argument
82713         links.
82714         Reported by Eric Blake <ebb9@byu.net>.
82716 2007-02-24  Bruno Haible  <bruno@clisp.org>
82718         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
82719         defined.
82720         * lib/isnanl.c: Remove all code. Just include isnan.c.
82721         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
82723 2007-02-25  Jim Meyering  <jim@meyering.net>
82725         Avoid conflicting types for 'unsetenv' on FreeBSD.
82726         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
82727         conflicting with FreeBSD's (5.0 and 6.1) function declaration
82728         in stdlib.h.
82730 2007-02-24  Bruno Haible  <bruno@clisp.org>
82732         * modules/isnanl-nolibm-tests: New file.
82733         * tests/test-isnanl.c: New file.
82735         * modules/isnanl-nolibm: New file.
82736         * lib/isnanl.h: New file.
82737         * lib/isnanl.c: New file.
82738         * m4/isnanl.m4: New file.
82740 2007-02-24  Bruno Haible  <bruno@clisp.org>
82742         * modules/isnan-nolibm-tests: New file.
82743         * tests/test-isnan.c: New file.
82745         * modules/isnan-nolibm: New file.
82746         * lib/isnan.h: New file.
82747         * lib/isnan.c: New file.
82748         * m4/isnan.m4: New file.
82750 2007-02-24  Bruno Haible  <bruno@clisp.org>
82752         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
82753         assume that an exponent fits in 20 bits.
82755 2007-02-24  Jim Meyering  <jim@meyering.net>
82757         * m4/regex.m4: Update the description of the configure-time option,
82758         --without-included-regex, to state accurately what the defaults are,
82759         and perhaps to give people an idea why using this option is risky.
82761 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
82764         loops on small arguments.  This attempts to avoid the problem
82765         Bruno Haible reported for AIX 4.3.2 in
82766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
82768 2007-02-23  Bruno Haible  <bruno@clisp.org>
82770         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
82771         Needed for help2man.
82773 2007-02-23  Karl Berry  <karl@gnu.org>
82775         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
82776         exists, foo.h should be cvs-ignored, not committed.
82778 2007-02-23  Eric Blake  <ebb9@byu.net>
82780         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
82781         * lib/stat-time.h (includes): Likewise.
82782         * lib/utimecmp.c (includes): Likewise.
82783         * lib/utimens.h (includes): Likewise.
82784         * lib/getdate.y (includes): Also include "timespec.h" for use
82785         internal to the module.
82786         * modules/utimens (Depends-on): Revert yesterday's patch.
82787         * modules/nanosleep (Depends-on): Add missing dependency.
82789 2007-02-22  Bruno Haible  <bruno@clisp.org>
82791         * lib/glob.c: Don't include getlogin_r.h.
82793 2007-02-22  Jim Meyering  <jim@meyering.net>
82795         * modules/utimens (Depends-on): Add timespec, required for
82796         utimens.h's inclusion of timespec.h.
82798 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
82800         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
82801         long unreadable paths in GNU/Linux.  Problem reported by Andreas
82802         Schwab in
82803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
82804         I'll try to think of a better way to fix the Solaris problem.
82806         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
82807         like glibc; on Solaris 10, it fails with errno == EINVAL.
82808         POSIX says the behavior is unspecified if the first argument is NULL,
82809         so play it safe and never pass NULL to the system getcwd.
82811 2007-02-21  Jim Meyering  <jim@meyering.net>
82813         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
82814         of gettimeofday.  It would conflict with the one now always
82815         provided via sys_time_.h.  Reported by Matthew Woehlke, as
82816         an IRIX 6.5 build failure.
82818 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82820         Minor fixups to port to Solaris 10 with Sun C 5.8.
82821         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
82822         * modules/getcwd (Depends-on): Add dirfd.
82823         * lib/putenv.c (putenv): #undef it.
82824         (rpl_putenv): New decl.
82825         (malloc, free): Include <stdlib.h> rather than prototyping separately.
82827 2007-02-20  Bruno Haible  <bruno@clisp.org>
82829         * modules/stdio-tests: New file.
82830         * tests/test-stdio.c: New file.
82832         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
82833         (Depends-on): Add stdio.
82834         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
82835         (Include): Use <stdio.h> instead of vsnprintf.h.
82836         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
82837         HAVE_DECL_VSNPRINTF.
82838         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
82840         * modules/snprintf (Files): Remove lib/snprintf.h.
82841         (Depends-on): Add stdio.
82842         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
82843         (Include): Use <stdio.h> instead of snprintf.h.
82844         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
82845         HAVE_DECL_SNPRINTF.
82846         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
82847         * lib/getaddrinfo.c: Likewise.
82849         * modules/stdio: New file.
82850         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
82851         * lib/snprintf.h: Remove file.
82852         * lib/vsnprintf.h: Remove file.
82853         * lib/.cppi-disable: Remove snprintf.h.
82854         * m4/stdio_h.m4: New file.
82855         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
82857 2007-02-20  Jim Meyering  <jim@meyering.net>
82859         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
82860         used by e.g., mingw.  From Bruno Haible.
82862 2007-02-19  Bruno Haible  <bruno@clisp.org>
82864         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
82865         warnings.
82866         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82868 2007-02-19  Bruno Haible  <bruno@clisp.org>
82870         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
82871         from mingw users.
82873 2007-02-19  Bruno Haible  <bruno@clisp.org>
82875         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
82876         warnings.
82877         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
82879 2007-02-19  Jim Meyering  <jim@meyering.net>
82881         Don't use FD after a successful "fdopendir (fd)".
82882         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
82883         Reset it by calling dirfd on the just-obtained DIR*.
82885         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
82886         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
82888 2007-02-18  Bruno Haible  <bruno@clisp.org>
82890         * lib/readlink.c: Include <unistd.h>.
82891         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
82892         HAVE_READLINK.
82893         * modules/readlink (Depends-on): Add unistd.
82894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82895         (Include): Add <unistd.h>.
82897         * lib/getlogin_r.h: Remove file.
82898         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
82899         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
82900         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
82901         HAVE_DECL_GETLOGIN_R.
82902         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
82903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82904         (Include): Use <unistd.h> instead of getlogin_r.h.
82906         * lib/getcwd.h: Remove file.
82907         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
82908         * lib/xgetcwd.c: Likewise.
82909         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
82910         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
82911         * modules/getcwd (Files): Remove lib/getcwd.h.
82912         (Depends-on): Add unistd.
82913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82914         (Include): Use <unistd.h> instad of getcwd.h.
82916         * lib/ftruncate.c: Include <unistd.h> first.
82917         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
82918         Set HAVE_FTRUNCATE.
82919         * modules/ftruncate (Depends-on): Add unistd.
82920         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82922         * lib/fchdir.c: Include <unistd.h> first.
82923         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
82924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
82925         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
82926         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82927         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
82929         * lib/dup2.c: Include <unistd.h> first.
82930         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
82931         HAVE_DUP2.
82932         * modules/dup2 (Depends-on): Add unistd.
82933         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82935         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
82936         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
82937         REPLACE_CHOWN. Don't define chown as a macro here.
82938         * modules/chown (Depends-on): Add unistd.
82939         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82941         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
82942         Add definition for GL_LINK_WARNING.
82943         (chown, dup2): New declarations.
82944         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
82945         link warning.
82946         (ftruncate): New declaration.
82947         (getcwd): New declaration, taken from old getcwd.h.
82948         (getlogin_r): New declaration, taken from old getlogin_r.h.
82949         (readlink): New declaration.
82950         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
82951         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
82952         (gl_PREREQ_UNISTD): Remove macro.
82953         (gl_UNISTD_MODULE_INDICATOR): New macro.
82954         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
82955         many new variables. Don't set UNISTD_H.
82956         * modules/unistd (Description): Change.
82957         (Depends-on): Add link-warning.
82958         (configure.ac): Update.
82959         (Makefile.am): Create unistd.h always. Substitute many new variables
82960         into it.
82962 2007-02-18  Bruno Haible  <bruno@clisp.org>
82964         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
82965         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
82966         HAVE_GETSUBOPT.
82967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
82968         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
82969         * lib/getsubopt.h: Remove file.
82970         * modules/getsubopt (Files): Remove lib/getsubopt.h.
82971         (Depends-on): Add stdlib.
82972         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82973         (Includes): Use <stdlib.h> instead of getsubopt.h.
82974         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
82975         Set HAVE_GETSUBOPT.
82976         * lib/getsubopt.c: Don't include getsubopt.h.
82978 2007-02-18  Bruno Haible  <bruno@clisp.org>
82980         * modules/fchdir (Depends-on): Add dup2.
82982 2007-02-18  Bruno Haible  <bruno@clisp.org>
82984         * lib/stdlib_.h: Handle glibc's special invocation convention
82985         specially.
82987 2007-02-18  Bruno Haible  <bruno@clisp.org>
82989         * modules/stdlib-tests: New file.
82990         * tests/test-stdlib.c: New file.
82992         * modules/mkstemp (Files): Remove lib/mkstemp.h.
82993         (Depends-on): Add stdlib.
82994         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82995         (Includes): Use <stdlib.h> instead of mkstemp.h.
82996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
82997         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
82998         * lib/mkstemp.c: Don't include mkstemp.h.
82999         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
83000         * lib/stdlib--.h: Don't include mkstemp.h.
83002         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
83003         (Depends-on): Add stdlib.
83004         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83005         (Includes): Use <stdlib.h> instead of mkdtemp.h.
83006         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
83007         HAVE_MKDTEMP.
83008         * lib/mkdtemp.c: Don't include mkdtemp.h.
83009         * lib/clean-temp.c: Don't include mkdtemp.h.
83011         * modules/exit (Files): Remove lib/exit.h.
83012         (Depends-on): Add stdlib.
83013         (Makefile.am): Remove lib_SOURCES.
83014         (Include): Use <stdlib.h> instead of exit.h.
83015         * lib/argmatch.c: Don't include exit.h.
83016         * lib/execute.c: Likewise.
83017         * lib/pagealign_alloc.c: Likewise.
83018         * lib/pipe.c: Likewise.
83019         * lib/wait-process.c: Likewise.
83020         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
83021         * lib/exitfail.c: Likewise.
83022         * lib/savewd.c: Likewise.
83023         * lib/xsetenv.c: Likewise.
83025         * modules/stdlib: New file.
83026         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
83027         and extra comments about mkstemp().
83028         * lib/exit.h: Remove file.
83029         * lib/mkdtemp.h: Remove file.
83030         * lib/mkstemp.h: Remove file.
83031         * m4/stdlib_h.m4: New file.
83032         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
83034 2007-02-18  Bruno Haible  <bruno@clisp.org>
83036         * modules/math-tests: New file.
83037         * tests/test-math.c: New file.
83039         * modules/math: New file.
83040         * modules/mathl (Files): Remove lib/mathl.h.
83041         (Depends-on): Add math.
83042         (Makefile.am): Don't mention mathl.h.
83043         (Include): Use <math.h> instead of mathl.h.
83044         * lib/math_.h: New file.
83045         * lib/mathl.h: Remove file.
83046         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
83047         mathl.h.
83048         * lib/asinl.c: Likewise.
83049         * lib/atanl.c: Likewise.
83050         * lib/ceill.c: Likewise.
83051         * lib/cosl.c: Likewise.
83052         * lib/expl.c: Likewise.
83053         * lib/floorl.c: Likewise.
83054         * lib/frexpl.c: Likewise.
83055         * lib/ldexpl.c: Likewise.
83056         * lib/logl.c: Likewise.
83057         * lib/sincosl.c: Likewise.
83058         * lib/sinl.c: Likewise.
83059         * lib/sqrtl.c: Likewise.
83060         * lib/tanl.c: Likewise.
83061         * lib/trigl.c: Likewise.
83062         * m4/math_h.m4: New file.
83063         * MODULES.html.sh (Mathematics): Add math.
83065 2007-02-17  Bruno Haible  <bruno@clisp.org>
83067         * modules/wctype-tests: New file.
83068         * tests/test-wctype.c: New file.
83070         * modules/wchar-tests: New file.
83071         * tests/test-wchar.c: New file.
83073         * modules/unistd-tests: New file.
83074         * tests/test-unistd.c: New file.
83076         * modules/time-tests: New file.
83077         * tests/test-time.c: New file.
83079         * modules/sysexits-tests: New file.
83080         * tests/test-sysexits.c: New file.
83082         * modules/sys_time-tests: New file.
83083         * tests/test-sys_time.c: New file.
83085         * modules/sys_stat-tests: New file.
83086         * tests/test-sys_stat.c: New file.
83088         * modules/sys_socket-tests: New file.
83089         * tests/test-sys_socket.c: New file.
83091         * modules/sys_select-tests: New file.
83092         * tests/test-sys_select.c: New file.
83094         * modules/string-tests: New file.
83095         * tests/test-string.c: New file.
83097         * modules/stdbool-tests: New file.
83098         * tests/test-stdbool.c: New file.
83100         * modules/netinet_in-tests: New file.
83101         * tests/test-netinet_in.c: New file.
83103         * modules/inttypes-tests: New file.
83104         * tests/test-inttypes.c: New file.
83106         * modules/fcntl-tests: New file.
83107         * tests/test-fcntl.c: New file.
83109         * modules/byteswap-tests: New file.
83110         * tests/test-byteswap.c: New file.
83112         * modules/arpa_inet-tests: New file.
83113         * tests/test-arpa_inet.c: New file.
83115 2007-02-17  Bruno Haible  <bruno@clisp.org>
83117         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
83118         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
83119         if the corresponding module is not enabled. Emit link warnings if
83120         the function is used nevertheless.
83121         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
83122         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
83123         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
83124         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
83125         * modules/inttypes (Depends-on): Add link-warning.
83126         (Makefile.am): Copy the contents of build-aux/link-warning.h into
83127         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
83128         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
83129         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
83130         * modules/imaxdiv (configure.ac): Likewise.
83131         * modules/strtoimax (configure.ac): Likewise.
83132         * modules/strtoumax (configure.ac): Likewise.
83134 2007-02-17  Bruno Haible  <bruno@clisp.org>
83136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
83137         gl_STRING_MODULE_INDICATOR_DEFAULTS.
83138         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
83139         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
83141 2007-02-17  Bruno Haible  <bruno@clisp.org>
83143         * modules/link-warning: New file.
83144         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
83145         * lib/string_.h (GL_LINK_WARNING): Remove definition.
83146         * modules/string (Depends-on): Add link-warning.
83147         (Makefile.am): Copy the contents of build-aux/link-warning.h into
83148         string.h.
83149         * MODULES.html.sh (Support for building libraries and executables): Add
83150         link-warning.
83152 2007-02-17  Bruno Haible  <bruno@clisp.org>
83154         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
83155         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
83156         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
83157         long lines.
83159 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
83160             Bruno Haible  <bruno@clisp.org>
83162         * modules/tmpfile: New file.
83163         * lib/tmpfile.c: New file.
83164         * m4/tmpfile.m4: New file.
83165         * MODULES.html.sh (func_all_modules): New section "Input/output".
83167 2007-02-15  Bruno Haible  <bruno@clisp.org>
83169         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
83170         (supports_delete_on_close): New function.
83171         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
83173 2007-02-14  Bruno Haible  <bruno@clisp.org>
83175         * modules/mbspcasecmp-tests: New file.
83176         * tests/test-mbspcasecmp.sh: New file.
83177         * tests/test-mbspcasecmp.c: New file.
83179         New module mbspcasecmp.
83180         * modules/mbspcasecmp: New file.
83181         * lib/mbspcasecmp.c: New file.
83182         * lib/string_.h (strncasecmp): Change warning message.
83183         (mbspcasecmp): New declaration.
83184         * m4/mbspcasecmp.m4: New file.
83185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83186         GNULIB_MBSPCASECMP.
83187         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
83188         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
83190 2007-02-14  Bruno Haible  <bruno@clisp.org>
83192         * modules/mbsncasecmp-tests: New file.
83193         * tests/test-mbsncasecmp.sh: New file.
83194         * tests/test-mbsncasecmp.c: New file.
83196         New module mbsncasecmp.
83197         * modules/mbsncasecmp: New file.
83198         * lib/mbsncasecmp.c: New file.
83199         * lib/string_.h (mbsncasecmp): New declaration.
83200         * m4/mbsncasecmp.m4: New file.
83201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83202         GNULIB_MBSNCASECMP.
83203         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
83204         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
83206 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83208         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
83209         Verify that it doesn't overlap with our flags.
83210         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
83211         do not have the desired effect in multibyte locales; instead, use
83212         mbscasecmp.
83213         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
83214         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
83215         we don't require GNU fnmatch ourselves (if our users require it, they
83216         should do so explicitly).
83218         Fix regex code so it doesn't rely on strcasecmp.
83219         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
83220         Otherwise, include gnulib's langinfo.h.
83221         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
83222         undesirable behavior in non-C locales.  Instead, rely on localecharset.
83223         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
83224         * modules/regex (FILES): Remove m4/codeset.m4.
83225         (Depends-on): Add localcharset.  Remove strcase.
83227 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83229         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
83230         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
83232 2007-02-13  Bruno Haible  <bruno@clisp.org>
83234         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
83235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83237 2007-02-12  Bruno Haible  <bruno@clisp.org>
83239         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
83240         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
83241         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
83242         time warning rather than a link error.
83244 2007-02-12  Bruno Haible  <bruno@clisp.org>
83246         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
83247         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
83248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83250 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
83252         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
83253         args, not 2.
83255 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
83257         New module 'time', so that apps can include <time.h> as per
83258         POSIX and GNU instead of separate include files like time_r.h
83259         and timegm.h.  This implementation tries out a simpler approach
83260         for replacing decls in standard include files (as compared to
83261         the string module), somewhat as an experiment.
83263         * config/srclist.txt: Comment out mktime.c for now.
83264         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
83265         since it doesn't apply any more.  Use generic wording instead.
83266         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
83267         'time'.
83268         * lib/time_.h, m4/time_h.m4, modules/time: New files.
83269         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
83270         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
83271         Don't include <sys/types.h>; no longer needed since we assume C89.
83272         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
83273         * lib/strftime.c: Likewise.
83274         * lib/time_r.c: Likewise.
83275         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
83276         * lib/nanosleep.c: Include <time.h> first, to check interface.
83277         * lib/strptime.c: Likewise.
83278         * lib/time_r.c: Likewise.
83279         * lib/timegm.c: Likewise.
83280         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
83281         needed.
83282         * lib/timegm.c: Don't include timegm.h; no longer needed.
83283         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
83284         time.h now handles any problems in that area.
83285         (struct timespec, nanosleep): Remove; time.h now arranges for these.
83286         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
83287         that time.h defines struct timespec.
83288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
83289         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
83290         handles that.
83291         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
83292         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
83293         needed.  Set REPLACE_LOCALTIME.
83294         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
83295         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
83296         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
83297         nanosleep; time_h.m4 now does that.  Don't require
83298         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
83299         module handles this now.
83300         * modules/getdate (Depends-on): Remove timespec.  Add time.
83301         * modules/nanosleep (Depends-on): Likewise.
83302         * modules/stat-time (Depends-on): Likewise.
83303         * modules/nanosleep (Include): Include time.h, not timespec.h.
83304         * modules/strptime (Files): Remove lib/strptime.h.
83305         (Depends-on): Add extensions, time.
83306         (Include): Include time.h, not strptime.h.
83307         * modules/time_r (Files): Remove lib/time_r.h.
83308         (Depends-on): Add time.
83309         (Include): Include time.h, not time_r.h.
83310         * modules/timegm: Likewise.
83311         * modules/timespec (Description): Now does timespec-related decls
83312         of our own, instead of struct timespec itself.
83313         (Depends-on): Add time; remove extensions.
83314         (Maintainer): Add self.
83315         * modules/utimecmp (Depends-on): Add time; remove timespec.
83316         * modules/utimens (Depends-on): Likewise.
83317         * modules/xnanosleep (Depends-on): Likewise.
83319 2007-02-11  Bruno Haible  <bruno@clisp.org>
83321         * lib/c-strstr.c: Include allocsa.h.
83322         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
83323         * lib/c-strcasestr.c: Include allocsa.h.
83324         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
83325         * lib/strcasestr.c: Include allocsa.h.
83326         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
83327         * lib/mbsstr.c: Include allocsa.h.
83328         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
83329         allocsa/freesa instead of malloc/free.
83330         * lib/mbscasestr.c: Include allocsa.h.
83331         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
83332         allocsa/freesa instead of malloc/free.
83333         * modules/c-strstr (Depends-on): Add allocsa.
83334         * modules/c-strcasestr (Depends-on): Likewise.
83335         * modules/strcasestr (Depends-on): Likewise.
83336         * modules/mbsstr (Depends-on): Likewise.
83337         * modules/mbscasestr (Depends-on): Likewise.
83339 2007-02-11  Bruno Haible  <bruno@clisp.org>
83341         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
83343         * modules/mbsspn-tests: New file.
83344         * tests/test-mbsspn.sh: New file.
83345         * tests/test-mbsspn.c: New file.
83347 2007-02-11  Bruno Haible  <bruno@clisp.org>
83349         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
83351         * modules/mbspbrk-tests: New file.
83352         * tests/test-mbspbrk.sh: New file.
83353         * tests/test-mbspbrk.c: New file.
83355 2007-02-11  Bruno Haible  <bruno@clisp.org>
83357         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
83358         unneeded cast.
83360         * modules/mbscspn-tests: New file.
83361         * tests/test-mbscspn.sh: New file.
83362         * tests/test-mbscspn.c: New file.
83364 2007-02-11  Bruno Haible  <bruno@clisp.org>
83366         * modules/mbscasecmp-tests: New file.
83367         * tests/test-mbscasecmp.sh: New file.
83368         * tests/test-mbscasecmp.c: New file.
83370 2007-02-11  Bruno Haible  <bruno@clisp.org>
83372         Ensure O(n) worst-case complexity of mbscasestr.
83373         * lib/mbscasestr.c: Include stdbool.h.
83374         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
83375         functions.
83376         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
83377         the bookkeeping indicates that it's worth it.
83378         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
83380         * modules/mbscasestr-tests: New file.
83381         * tests/test-mbscasestr1.c: New file.
83382         * tests/test-mbscasestr2.sh: New file.
83383         * tests/test-mbscasestr2.c: New file.
83384         * tests/test-mbscasestr3.sh: New file.
83385         * tests/test-mbscasestr3.c: New file.
83386         * tests/test-mbscasestr4.sh: New file.
83387         * tests/test-mbscasestr4.c: New file.
83388         * m4/locale-tr.m4: New file.
83390 2007-02-11  Bruno Haible  <bruno@clisp.org>
83392         Ensure O(n) worst-case complexity of mbsstr.
83393         * lib/mbsstr.c: Include stdbool.h.
83394         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
83395         functions.
83396         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
83397         bookkeeping indicates that it's worth it.
83398         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
83400         * modules/mbsstr-tests: New file.
83401         * tests/test-mbsstr1.c: New file.
83402         * tests/test-mbsstr2.sh: New file.
83403         * tests/test-mbsstr2.c: New file.
83404         * tests/test-mbsstr3.sh: New file.
83405         * tests/test-mbsstr3.c: New file.
83406         * m4/locale-fr.m4: New file.
83408 2007-02-11  Bruno Haible  <bruno@clisp.org>
83410         * lib/mbsrchr.c (mbsrchr): Fix bug.
83412         * modules/mbsrchr-tests: New file.
83413         * tests/test-mbsrchr.sh: New file.
83414         * tests/test-mbsrchr.c: New file.
83416 2007-02-11  Bruno Haible  <bruno@clisp.org>
83418         * lib/mbschr.c (mbschr): Fix bug.
83420         * modules/mbschr-tests: New file.
83421         * tests/test-mbschr.sh: New file.
83422         * tests/test-mbschr.c: New file.
83423         * m4/locale-zh.m4: New file.
83425 2007-02-11  Bruno Haible  <bruno@clisp.org>
83427         Support for copying multibyte string iterators.
83428         * lib/mbiter.h: Include <string.h>.
83429         (mbiter_multi_copy): New function.
83430         (mbi_copy): New macro.
83431         * lib/mbuiter.h: Include <string.h>.
83432         (mbuiter_multi_copy): New function.
83433         (mbui_copy): New macro.
83435 2007-02-11  Bruno Haible  <bruno@clisp.org>
83437         New module mbslen.
83438         * modules/mbslen: New file.
83439         * lib/mbslen.c: New file.
83440         * lib/string_.h (mbslen): New declaration.
83441         * m4/mbslen.m4: New file.
83442         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83443         GNULIB_MBSLEN.
83444         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
83445         * MODULES.html.sh (Internationalization functions): Add mbslen.
83447 2007-02-11  Bruno Haible  <bruno@clisp.org>
83449         Ensure O(n) worst-case complexity of strcasestr substitute.
83450         * lib/strcasestr.c: Include stdbool.h.
83451         (knuth_morris_pratt): New function.
83452         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
83453         bookkeeping indicates that it's worth it.
83454         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
83456         * modules/strcasestr-tests: New file.
83457         * tests/test-strcasestr.c: New file.
83459 2007-02-11  Bruno Haible  <bruno@clisp.org>
83461         Ensure O(n) worst-case complexity of c_strcasestr.
83462         * lib/c-strcasestr.c: Include stdbool.h, string.h.
83463         (knuth_morris_pratt): New function.
83464         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
83465         the bookkeeping indicates that it's worth it.
83466         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
83468         * modules/c-strcasestr-tests: New file.
83469         * tests/test-c-strcasestr.c: New file.
83471 2007-02-11  Bruno Haible  <bruno@clisp.org>
83473         Ensure O(n) worst-case complexity of c_strstr.
83474         * lib/c-strstr.c: Include stdbool.h, string.h.
83475         (knuth_morris_pratt): New function.
83476         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
83477         bookkeeping indicates that it's worth it.
83478         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
83480         * lib/c-strstr.c: Complete rewrite for maintainability.
83482         * modules/c-strstr-tests: New file.
83483         * tests/test-c-strstr.c: New file.
83485 2007-02-11  Bruno Haible  <bruno@clisp.org>
83487         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
83488         5.2.1 and earlier, whereby \055 was treated just like the range
83489         delimiter '-'.
83490         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
83492 2007-02-08  Bruno Haible  <bruno@clisp.org>
83494         * modules/regex (Depends-on): Add stdbool.
83495         Reported by Dalibor Topic <robilad@kaffe.org>.
83497 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83499         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
83500         Prefer returning from main to exiting from it.
83501         Remove unnecessary parens after sizeof.
83503 2007-02-05  Bruno Haible  <bruno@clisp.org>
83505         New module mbssep.
83506         * modules/mbssep: New file.
83507         * lib/mbssep.c: New file.
83508         * lib/string_.h (strsep): Add a conditional link warning.
83509         (mbssep): New declaration.
83510         * m4/mbssep.m4: New file.
83511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83512         GNULIB_MBSSEP.
83513         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
83514         * MODULES.html.sh (Internationalization functions): Add mbssep.
83516 2007-02-05  Bruno Haible  <bruno@clisp.org>
83518         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
83519         Optimize search in case of 1 delimiter.
83521 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
83523         * lib/acl.h: Include sys/types.h before sys/acl.h.
83525 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
83527         Merge upstream fix for glibc bugzilla #3957:
83529         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
83531         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
83532         bit for RE_HAT_LISTS_NOT_NEWLINE.
83533         (build_charclass_op): Remove bogus comment.
83535 2007-02-05  Simon Josefsson  <simon@josefsson.org>
83537         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
83539 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
83541         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
83542         * lib/memmem.c [!defined _LIBC]: Include config.h.
83544 2007-02-04  Bruno Haible  <bruno@clisp.org>
83546         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
83547         warning message.
83549 2007-02-04  Bruno Haible  <bruno@clisp.org>
83551         New module mbstok_r.
83552         * modules/mbstok_r: New file.
83553         * lib/mbstok_r.c: New file.
83554         * lib/string_.h (strtok_r): Change argument names to match the
83555         comments. Add a conditional link warning.
83556         (mbstok_r): New declaration.
83557         * m4/mbstok_r.m4: New file.
83558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83559         GNULIB_MBSTOK_R.
83560         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
83561         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
83563 2007-02-04  Bruno Haible  <bruno@clisp.org>
83565         New module mbsspn.
83566         * modules/mbsspn: New file.
83567         * lib/mbsspn.c: New file.
83568         * lib/string_.h (strspn): Add a conditional link warning.
83569         (mbsspn): New declaration.
83570         * m4/mbsspn.m4: New file.
83571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83572         GNULIB_MBSSPN.
83573         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
83574         * MODULES.html.sh (Internationalization functions): Add mbsspn.
83576 2007-02-04  Bruno Haible  <bruno@clisp.org>
83578         New module mbspbrk.
83579         * modules/mbspbrk: New file.
83580         * lib/mbspbrk.c: New file.
83581         * lib/string_.h (strpbrk): Add a conditional link warning.
83582         (mbspbrk): New declaration.
83583         * m4/mbspbrk.m4: New file.
83584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83585         GNULIB_MBSPBRK.
83586         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
83587         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
83589 2007-02-04  Bruno Haible  <bruno@clisp.org>
83591         New module mbscspn.
83592         * modules/mbscspn: New file.
83593         * lib/mbscspn.c: New file.
83594         * lib/string_.h (strcspn): Add a conditional link warning.
83595         (mbscspn): New declaration.
83596         * m4/mbscspn.m4: New file.
83597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83598         GNULIB_MBSCSPN.
83599         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
83600         * MODULES.html.sh (Internationalization functions): Add mbscspn.
83602 2007-02-04  Bruno Haible  <bruno@clisp.org>
83604         New module mbscasestr, reduced goal of strcasestr.
83605         * modules/mbscasestr: New file.
83606         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
83607         (mbscasestr): Renamed from strcasestr.
83608         * lib/strcasestr.c: Don't include mbuiter.h.
83609         (strcasestr): Remove support for multibyte locales.
83610         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
83611         Change the conditional link warning.
83612         (mbscasestr): New declaration.
83613         * m4/mbscasestr.m4: New file.
83614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
83615         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
83616         REPLACE_STRCASESTR.
83617         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
83618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
83619         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
83620         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
83621         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
83622         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
83623         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
83624         (Depends-on): Remove mbuiter.
83625         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
83627 2007-02-04  Bruno Haible  <bruno@clisp.org>
83629         Simplify handling of strncasecmp.
83630         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
83631         the conditional link warning.
83632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
83633         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
83634         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
83635         * modules/strcase (configure.ac): Don't invoke
83636         gl_STRING_MODULE_INDICATOR.
83637         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
83639 2007-02-04  Bruno Haible  <bruno@clisp.org>
83641         New module mbscasecmp, reduced goal of strcasecmp.
83642         * modules/mbscasecmp: New file.
83643         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
83644         (mbscasecmp): Renamed from strcasecmp.
83645         * lib/strcasecmp.c: Don't include mbuiter.h.
83646         (strcasecmp): Remove support for multibyte locales.
83647         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
83648         Change the conditional link warning.
83649         (mbscasecmp): New declaration.
83650         * m4/mbscasecmp.m4: New file.
83651         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
83652         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
83653         REPLACE_STRCASECMP.
83654         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
83655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83656         GNULIB_MBSCASECMP.
83657         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
83658         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
83659         * modules/strcase (Files): Remove m4/mbrtowc.m4.
83660         (Depends-on): Remove mbuiter.
83661         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
83663 2007-02-04  Bruno Haible  <bruno@clisp.org>
83665         New module mbsstr. Remove module strstr.
83666         * modules/mbsstr: New file.
83667         * modules/strstr: Remove file.
83668         * lib/mbsstr.c: Renamed from lib/strstr.c.
83669         (mbsstr): Renamed from strstr.
83670         * lib/string_.h (strstr): Remove declaration. Change the conditional
83671         link warning.
83672         (mbsstr): New declaration.
83673         * m4/mbsstr.m4: New file.
83674         * m4/strstr.m4: Remove file.
83675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
83676         REPLACE_STRSTR.
83677         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
83678         Don't initialize GNULIB_STRSTR.
83679         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
83680         substitute GNULIB_STRSTR and REPLACE_STRSTR.
83681         * MODULES.html.sh (Internationalization functions): Add mbsstr.
83682         (Support for systems lacking ANSI C 89): Remove strstr.
83684 2007-02-04  Bruno Haible  <bruno@clisp.org>
83686         New module mbsrchr.
83687         * modules/mbsrchr: New file.
83688         * lib/mbsrchr.c: New file.
83689         * lib/string_.h (strrchr): Add a conditional link warning.
83690         (mbsrchr): New declaration.
83691         * m4/mbsrchr.m4: New file.
83692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83693         GNULIB_MBSRCHR.
83694         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
83695         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
83697 2007-02-04  Bruno Haible  <bruno@clisp.org>
83699         New module mbschr.
83700         * modules/mbschr: New file.
83701         * lib/mbschr.c: New file.
83702         * lib/string_.h (strchr): Add a conditional link warning.
83703         (mbschr): New declaration.
83704         * m4/mbschr.m4: New file.
83705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83706         GNULIB_MBSCHR.
83707         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
83708         * MODULES.html.sh (Internationalization functions): Add mbschr.
83710 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
83712         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
83714         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
83716 2007-02-04  Bruno Haible  <bruno@clisp.org>
83718         New module description section 'configure.ac-early'.
83719         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
83720         (func_get_autoconf_early_snippet): New function.
83721         (func_import, func_create_testdir): Use it. Remove special cases for
83722         modules 'extensions' and 'lock'.
83723         * modules/extensions (configure.ac-early): Require
83724         gl_USE_SYSTEM_EXTENSIONS.
83725         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
83727 2007-02-04  Bruno Haible  <bruno@clisp.org>
83729         Make use of gcj-4.3's -fsource and -ftarget option.
83730         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
83731         and if so try the options -fsource and -ftarget.
83732         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
83733         source_version, ftarget_option, target_version arguments.
83734         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
83735         (is_envjavac_oldgcj_14_14_usable): Renamed from
83736         is_envjavac_gcj_14_14_usable.
83737         (is_envjavac_oldgcj_14_13_usable): Renamed from
83738         is_envjavac_gcj_14_13_usable.
83739         (is_gcj_present): Update.
83740         (is_gcj_43, is_gcj43_usable): New functions.
83741         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
83742         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
83743         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
83744         try the options -fsource and -ftarget.
83746 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83748         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
83749         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
83750         larger value.
83752 2007-02-03  Jim Meyering  <jim@meyering.net>
83754         Give tools a better chance to allocate space for very large buffers.
83755         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
83757         Make pwd and readlink work also when run with an unreadable parent dir
83758         on systems with openat support.
83759         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
83760         provided getcwd function, even when we have openat support.
83761         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
83763 2007-02-02  Bruno Haible  <bruno@clisp.org>
83765         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
83766         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
83767         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
83768         portability problems if one of these functions is only used on specific
83769         platforms.
83770         Reported by Paul Eggert.
83772 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
83774         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
83775         is causing more trouble than it's curing.
83776         * lib/regex_internal.h (__mempcpy): Remove.
83777         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
83778         (and make the code a tad smaller to boot).
83779         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
83781 2007-02-02  Jim Meyering  <jim@meyering.net>
83783         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
83784         section, not in the Makefile.am: one.
83786 2007-02-02  Eric Blake  <ebb9@byu.net>
83788         * lib/strchrnul.c: Always include config.h first.
83790         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
83791         gnulib strstr is not necessary here.
83793 2007-02-02  Simon Josefsson  <simon@josefsson.org>
83795         * m4/socklen.m4: Fix typo.
83797 2007-02-02  Eric Blake  <ebb9@byu.net>
83799         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
83800         * modules/netinet_in (Makefile.am): Likewise.
83802 2007-02-01  Bruno Haible  <bruno@clisp.org>
83804         * lib/string_.h (GL_LINK_WARNING): New macro.
83805         (strcasecmp, strstr, strcasestr): If provided by the system,
83806         conditionally define as a macro that leads to a warning instead of to
83807         an error.
83808         (strncasecmp): Conditionally define as a macro that leads to a warning.
83810 2007-02-01  Karl Berry  <karl@gnu.org>
83812         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
83814 2007-02-01  Bruno Haible  <bruno@clisp.org>
83816         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
83817         renamings.
83819 2007-02-01  Eric Blake  <ebb9@byu.net>
83821         * modules/regex (Depends-on): Revert dependence on mempcpy.
83822         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
83823         module's definition of mempcpy.
83824         Reported by Paul Eggert.
83826 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83828         * lib/string_.h: If the gnulib module XYZ is not present, undefine
83829         the symbol XYZ before redefining it.  This fixes a problem with
83830         programs that don't use XYZ, when compiled on systems that define
83831         XYZ to something else.
83833 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
83835         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
83836         occurs when "mkdir -m foo" creates a setgid directory that is (1)
83837         writeable to group or other and (2) is intended to have a special
83838         mode bit that is set or cleared.  In such a case, the directory
83839         should be neither group- nor other-writeable until the special
83840         mode bits are right.
83842 2007-01-31  Eric Blake  <ebb9@byu.net>
83844         * modules/mountlist (Depends-on): Add strstr.
83846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
83847         bug.
83848         * modules/string (Makefile.am): Remove redundant replacement.
83849         * modules/regex (Depends-on): Add mempcpy.
83851 2007-01-31  Bruno Haible  <bruno@clisp.org>
83853         New module description field 'Link'.
83854         * gnulib-tool (func_usage): Document --extract-link-directive.
83855         (sed_extract_prog): Recognize 'Link' directive.
83856         (func_get_link_directive): New function.
83857         (func_import): Show summary of link directives.
83858         Handle --extract-link-directive option.
83859         * modules/acl (Link): New section.
83860         * modules/clock-time (Link): New section.
83861         * modules/euidaccess (Link): New section.
83862         * modules/gettext (Link): New section.
83863         * modules/iconv (Link): New section.
83864         * modules/lock (Link): New section.
83865         * modules/nanosleep (Link): New section.
83866         * modules/readline (Link): New section.
83868 2007-01-27  Bruno Haible  <bruno@clisp.org>
83870         Enforce the use of gnulib modules for unportable <string.h> functions.
83871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
83872         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
83873         (gl_HEADER_STRING_H_BODY): Require it.
83874         * lib/string_.h: If the gnulib module XYZ is not present, redefine
83875         the symbol XYZ to one that gives a link error.
83876         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
83877         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
83878         * modules/mempcpy (configure.ac): Likewise.
83879         * modules/memrchr (configure.ac): Likewise.
83880         * modules/stpcpy (configure.ac): Likewise.
83881         * modules/stpncpy (configure.ac): Likewise.
83882         * modules/strcase (configure.ac): Likewise.
83883         * modules/strcasestr (configure.ac): Likewise.
83884         * modules/strchrnul (configure.ac): Likewise.
83885         * modules/strdup (configure.ac): Likewise.
83886         * modules/strndup (configure.ac): Likewise.
83887         * modules/strnlen (configure.ac): Likewise.
83888         * modules/strpbrk (configure.ac): Likewise.
83889         * modules/strsep (configure.ac): Likewise.
83890         * modules/strstr (configure.ac): Likewise.
83891         * modules/strtok_r (configure.ac): Likewise.
83893 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
83895         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
83897 2007-01-30  Jim Meyering  <jim@meyering.net>
83899         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
83901 2007-01-29  Bruno Haible  <bruno@clisp.org>
83903         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
83904         * lib/execute.c: Likewise.
83905         * lib/pipe.c: Likewise.
83906         * lib/printf-args.h: Likewise.
83907         * lib/printf-args.c: Likewise.
83908         * lib/printf-parse.c: Likewise.
83909         * lib/vasnprintf.c: Likewise.
83911 2007-01-29  Eric Blake  <ebb9@byu.net>
83913         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
83914         declaration.
83916 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
83918         * lib/strptime.h (strptime): Use 'restrict' for args where
83919         POSIX requires this.
83920         * lib/strptime.c (strptime): Likewise.
83921         Change license notice from LGPL to GPL, since gnulib-tool will
83922         change this as needed.
83923         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
83924         defined.
83925         Include "strptime.h" first, to check interface.
83926         Do not #undef _LIBC and _NL_CURRENT.
83927         Do not include <stdlib.h>; no longer needed.
83928         Include "time_r.h" and declare ptime_locale_status
83929         only if _LIBC is not defined.
83930         (__P): Remove unused macro.
83931         (match_string): Bring back glibc version, but use it only if _LIBC
83932         is defined.
83933         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
83934         Remove unnecessary assertion and abort() call.
83935         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
83936         * m4/strptime.m4: Fix serial number comment.
83937         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
83938         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
83939         (Depends-on): Add time_r.
83941 2007-01-29  Bruno Haible  <bruno@clisp.org>
83943         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83944         strptime.
83945         * modules/strptime (Depends-on): Add stdbool.
83946         * lib/strptime.h: Include <time.h> always. Add comments.
83948 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83950         * modules/strptime: New file.
83951         * lib/strptime.h: New file.
83952         * lib/strptime.c: New file.
83953         * m4/strptime.m4: New file.
83955 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83957         * MODULES.html.sh: New module mpsort.
83958         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
83960         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
83961         a circularity problem with HP-UX ia64 reported by Bob Proulx in
83962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
83963         All uses changed.
83964         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
83965         All uses changed.
83966         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
83967         to _Restrict_.
83968         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
83969         the parameter matches the prototype.
83971 2007-01-28  Jim Meyering  <jim@meyering.net>
83973         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
83974         sys/time.h here, reverting that part of the previous patch:
83975         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
83977 2007-01-28  Bruno Haible  <bruno@clisp.org>
83979         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
83980         value of $(SYS_TIME_H).
83981         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
83982         remove it conditionally, too. [added by Jim Meyering]
83983         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
83984         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
83985         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
83986         GETTIMEOFDAY_REPLACEMENT to 1.
83988 2007-01-28  Bruno Haible  <bruno@clisp.org>
83990         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
83991         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
83992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
83993         Set UNISTD_H instead of UNISTD_H2.
83994         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
83996 2007-01-28  Bruno Haible  <bruno@clisp.org>
83998         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
83999         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
84001 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84003         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
84004         (func_create_testdir): Ensure C locale for `grep' and `tr'
84005         character ranges.
84006         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
84007         ACLOCAL_AMFLAGS parsing state machine.
84009 2007-01-27  Bruno Haible  <bruno@clisp.org>
84011         * modules/unistr/base: Update.
84013 2007-01-27  Bruno Haible  <bruno@clisp.org>
84015         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
84016         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
84017         * modules/unistr/u32-mbtouc-unsafe: Renamed from
84018         modules/unistr/u32-mbtouc.
84019         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
84020         * lib/unistr.h: Update.
84021         * lib/linebreak.c: Update.
84022         * modules/unistr/u32-mbtouc: Renamed from
84023         modules/unistr/u32-mbtouc-safe.
84024         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
84025         * lib/unistr.h: Update.
84026         * lib/unistr/u32-to-u8.c: Update.
84027         * lib/unistr/u32-to-u16.c: Update.
84029 2007-01-27  Bruno Haible  <bruno@clisp.org>
84031         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
84032         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
84033         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
84034         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
84035         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
84036         * modules/unistr/u16-mbtouc-unsafe: Renamed from
84037         modules/unistr/u16-mbtouc.
84038         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
84039         * lib/unistr.h: Update.
84040         * lib/linebreak.c: Update.
84041         * modules/linebreak: Update.
84042         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
84043         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
84044         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
84045         * modules/unistr/u16-mbtouc: Renamed from
84046         modules/unistr/u16-mbtouc-safe.
84047         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
84048         * lib/unistr.h: Update.
84049         * lib/unistr/u16-to-u8.c: Update.
84050         * modules/unistr/u16-to-u8: Update.
84051         * lib/unistr/u16-to-u32.c: Update.
84052         * modules/unistr/u16-to-u32: Update.
84054 2007-01-27  Bruno Haible  <bruno@clisp.org>
84056         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
84057         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
84058         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
84059         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
84060         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
84061         * modules/unistr/u8-mbtouc-unsafe: Renamed from
84062         modules/unistr/u8-mbtouc.
84063         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
84064         * lib/unistr.h: Update.
84065         * lib/striconveh.c: Update.
84066         * modules/striconveh: Update.
84067         * lib/linebreak.c: Update.
84068         * modules/linebreak: Update.
84069         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
84070         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
84071         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
84072         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
84073         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
84074         * lib/unistr.h: Update.
84075         * lib/striconveh.c: Update.
84076         * modules/striconveh: Update.
84077         * lib/unistr/u8-to-u16.c: Update.
84078         * modules/unistr/u8-to-u16: Update.
84079         * lib/unistr/u8-to-u32.c: Update.
84080         * modules/unistr/u8-to-u32: Update.
84082 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84084         Sync from Libtool.
84085         * lib/argz.c: Do not include strings.h nor memory.h, include
84086         string.h unconditionally.  Patch by Simon Josefsson.
84088 2007-01-27  Bruno Haible  <bruno@clisp.org>
84090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
84091         from gl_HEADER_STRING_H_BODY.
84092         (gl_HEADER_STRING_H_BODY): Require it.
84093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
84094         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
84095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
84096         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
84097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
84098         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
84099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84100         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
84101         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
84102         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
84103         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
84104         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
84105         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
84106         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84107         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
84109 2007-01-27  Bruno Haible  <bruno@clisp.org>
84111         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
84112         check_PROGRAMS into noinst_PROGRAMS.
84113         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
84114         check_PROGRAMS in this case.
84115         (func_import): Set for_test to false.
84116         (func_create_testdir): Set for_test to true.
84118 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
84119             Bruno Haible  <bruno@clisp.org>
84121         * modules/strcasestr (Files): Remove lib/strcasestr.h.
84122         (Depends-on): Add string.
84123         (Includes): Use <string.h> instead of strcasestr.h.
84124         * modules/string (Makefile.am): Also substitute the value of
84125         REPLACE_STRCASESTR.
84126         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
84127         assume strcasestr is declared in <string.h> not <strings.h>. Also
84128         set REPLACE_STRCASESTR.
84129         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
84130         REPLACE_STRCASESTR.
84131         * lib/strcasestr.h: Remove file.
84132         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
84133         * lib/string_.h (strcasestr): New declaration.
84135 2007-01-27  Bruno Haible  <bruno@clisp.org>
84137         * lib/string_.h: Use 'extern'.
84139 2007-01-27  Jim Meyering  <jim@meyering.net>
84141         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
84142         of set-but-not-used local, "q".
84144         * lib/mempcpy.c: Include <config.h> before <string.h>.
84145         This fixes a compilation error on HP-UX, due to the system's
84146         "restrict"-using mempcpy prototype.
84148 2007-01-26  Bruno Haible  <bruno@clisp.org>
84150         Small optimization.
84151         * lib/javacomp.c: Include c-strstr.h.
84152          (is_envjavac_gcj): Use c_strstr instead of strstr.
84153         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
84155 2007-01-26  Bruno Haible  <bruno@clisp.org>
84157         * MODULES.html.sh (Unicode string functions): Add the new modules.
84159         * modules/uniconv/u32-strconv-to-locale: New file.
84160         * lib/uniconv/u32-strconv-to-locale.c: New file.
84162         * modules/uniconv/u16-strconv-to-locale: New file.
84163         * lib/uniconv/u16-strconv-to-locale.c: New file.
84165         * modules/uniconv/u8-strconv-to-locale: New file.
84166         * lib/uniconv/u8-strconv-to-locale.c: New file.
84168         * modules/uniconv/u32-strconv-from-locale: New file.
84169         * lib/uniconv/u32-strconv-from-locale.c: New file.
84171         * modules/uniconv/u16-strconv-from-locale: New file.
84172         * lib/uniconv/u16-strconv-from-locale.c: New file.
84174         * modules/uniconv/u8-strconv-from-locale: New file.
84175         * lib/uniconv/u8-strconv-from-locale.c: New file.
84177         * modules/uniconv/u32-strconv-to-enc: New file.
84178         * lib/uniconv/u32-strconv-to-enc.c: New file.
84179         * modules/uniconv/u32-strconv-to-enc-tests: New file.
84180         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
84182         * modules/uniconv/u16-strconv-to-enc: New file.
84183         * lib/uniconv/u16-strconv-to-enc.c: New file.
84184         * lib/uniconv/u-strconv-to-enc.h: New file.
84185         * modules/uniconv/u16-strconv-to-enc-tests: New file.
84186         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
84188         * modules/uniconv/u8-strconv-to-enc: New file.
84189         * lib/uniconv/u8-strconv-to-enc.c: New file.
84190         * modules/uniconv/u8-strconv-to-enc-tests: New file.
84191         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
84193         * modules/uniconv/u32-strconv-from-enc: New file.
84194         * lib/uniconv/u32-strconv-from-enc.c: New file.
84195         * modules/uniconv/u32-strconv-from-enc-tests: New file.
84196         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
84198         * modules/uniconv/u16-strconv-from-enc: New file.
84199         * lib/uniconv/u16-strconv-from-enc.c: New file.
84200         * modules/uniconv/u16-strconv-from-enc-tests: New file.
84201         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
84203         * modules/uniconv/u8-strconv-from-enc: New file.
84204         * lib/uniconv/u8-strconv-from-enc.c: New file.
84205         * lib/uniconv/u-strconv-from-enc.h: New file.
84206         * modules/uniconv/u8-strconv-from-enc-tests: New file.
84207         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
84209         * modules/uniconv/u32-conv-from-enc: New file.
84210         * lib/uniconv/u32-conv-from-enc.c: New file.
84211         * modules/uniconv/u32-conv-from-enc-tests: New file.
84212         * tests/uniconv/test-u32-conv-from-enc.c: New file.
84214         * modules/uniconv/u16-conv-from-enc: New file.
84215         * lib/uniconv/u16-conv-from-enc.c: New file.
84216         * lib/uniconv/u-conv-from-enc.h: New file.
84217         * modules/uniconv/u16-conv-from-enc-tests: New file.
84218         * tests/uniconv/test-u16-conv-from-enc.c: New file.
84220         * modules/uniconv/u8-conv-from-enc: New file.
84221         * lib/uniconv/u8-conv-from-enc.c: New file.
84222         * modules/uniconv/u8-conv-from-enc-tests: New file.
84223         * tests/uniconv/test-u8-conv-from-enc.c: New file.
84225         * modules/uniconv/base: New file.
84226         * lib/uniconv.h: New file.
84228 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
84230         * doc/gnulib-tool.texi (Initial import): Update to match current
84231         behavior with strdup module.
84232         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
84233         * lib/memmem.h: Remove; all uses removed.  This is now done
84234         by <string.h>.
84235         * lib/mempcpy.h: Likewise.
84236         * lib/memrchr.h: Likewise.
84237         * lib/stpcpy.h: Likewise.
84238         * lib/stpncpy.h: Likewise.
84239         * lib/strcase.h: Likewise.
84240         * lib/strchrnul.h: Likewise.
84241         * lib/strdup.h: Likewise.
84242         * lib/strndup.h: Likewise.
84243         * lib/strnlen.h: Likewise.
84244         * lib/strpbrk.h: Likewise.
84245         * lib/strsep.h: Likewise.
84246         * lib/strstr.h: Likewise.
84247         * lib/strtok_r.h: Likewise.
84248         * lib/string_.h: New file.
84249         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
84250         Rely on <string.h> instead.
84251         * lib/canon-host.c: Likewise.
84252         * lib/chdir-long.c: Likewise.
84253         * lib/concatpath.c: Likewise.
84254         * lib/exclude.c: Likewise.
84255         * lib/fchdir.c: Likewise.
84256         * lib/getaddrinfo.c: Likewise.
84257         * lib/getcwd.c: Likewise.
84258         * lib/getsubopt.c: Likewise.
84259         * lib/glob.c: Likewise.
84260         * lib/hard-locale.c: Likewise.
84261         * lib/iconvme.c: Likewise.
84262         * lib/javacomp.c: Likewise.
84263         * lib/mempcpy.c: Likewise.
84264         * lib/memrchr.c: Likewise.
84265         * lib/regex_internal.h: Likewise.
84266         * lib/stpncpy.c: Likewise.
84267         * lib/strcasecmp.c: Likewise.
84268         * lib/strchrnul.c: Likewise.
84269         * lib/strdup.c: Likewise.
84270         * lib/striconv.c: Likewise.
84271         * lib/striconveh.c: Likewise.
84272         * lib/striconveha.c: Likewise.
84273         * lib/strncasecmp.c: Likewise.
84274         * lib/strndup.c: Likewise.
84275         * lib/strnlen.c: Likewise.
84276         * lib/strsep.c: Likewise.
84277         * lib/strstr.c: Likewise.
84278         * lib/strtok_r.c: Likewise.
84279         * lib/userspec.c: Likewise.
84280         * lib/w32spawn.h: Likewise.
84281         * lib/xstrndup.c: Likewise.
84282         * lib/mountlist.c (strstr): Remove decl.
84283         * m4/string_h.m4: New file.
84284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
84285         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
84286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
84287         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
84288         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
84289         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
84290         Set REPLACE_STRCASECMP if necessary.
84291         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
84292         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
84293         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
84294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
84295         HAVE_DECL_STRDUP if necessary.
84296         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
84297         since gl_FUNC_STRNDUP does that now.
84298         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
84299         Check for decl here...
84300         (gl_PREREQ_STRNLEN): ... not here.
84301         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
84302         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
84303         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
84304         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
84305         necessary.
84306         * modules/string: New file.
84307         * modules/memmem (Files): Remove special-purpose include file.
84308         (Depends-on): Add string.
84309         (Include): Include <string.h>, not the removed file.
84310         * modules/mempcpy: Likewise.
84311         * modules/memrchr: Likewise.
84312         * modules/stpcpy: Likewise.
84313         * modules/stpncpy: Likewise.
84314         * modules/strcase: Likewise.
84315         * modules/strchrnul: Likewise.
84316         * modules/strdup: Likewise.
84317         * modules/strndup: Likewise.
84318         * modules/strnlen: Likewise.
84319         * modules/strpbrk: Likewise.
84320         * modules/strsep: Likewise.
84321         * modules/strstr: Likewise.
84322         * modules/strtok_r: Likewise.
84323         * tests/test-dirname.c: Don't include "strdup.h", since
84324         <string.h> now suffices.
84325         * tests/test-memmem.c: Don't include "memmem.h", since
84326         <string.h> now suffices.
84328 2007-01-25  Bruno Haible  <bruno@clisp.org>
84330         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
84331         *resultp is 0.
84333         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
84334         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
84335         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
84336         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
84338         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
84339         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
84340         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
84341         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
84342         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
84343         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
84345 2007-01-24  Bruno Haible  <bruno@clisp.org>
84347         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
84348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
84349         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
84350         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
84351         gl_FUNC_FTS_CORE.
84352         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
84353         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
84354         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84355         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
84356         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
84357         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
84358         gl_FUNC_FCHOWNAT.
84359         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
84360         gl_FUNC_STRFTIME.
84361         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
84362         Reported by Ralf Wildenhues.
84364 2007-01-24  Bruno Haible  <bruno@clisp.org>
84366         Drop AC_REQUIRE calls that are redundant with the module dependencies.
84367         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
84368         gl_GETADDRINFO.
84369         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
84370         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
84371         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
84373 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
84375         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
84376         Don't use 'exit'; just return from 'main'.
84377         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
84379         * lib/fnmatch_.h: Readjust white space and comments to match
84380         glibc, to avoid spurious diffs.
84382 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84384         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
84385         2004-12-01 change by Jakub Jelinek, since this code won't compile
84386         if !LIBC.  Problem reported by Bob Proulx.
84388 2007-01-23  Bruno Haible  <bruno@clisp.org>
84390         * lib/striconveh.c: Include c-strcaseeq.h.
84391         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
84392         * modules/striconveh (Depends-on): Add c-strcaseeq.
84394 2007-01-23  Bruno Haible  <bruno@clisp.org>
84396         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
84398         * modules/c-strcaseeq: New file.
84399         * lib/c-strcaseeq.h: New file.
84401         * modules/streq: New file.
84402         * lib/streq.h: New file.
84404 2007-01-23  Bruno Haible  <bruno@clisp.org>
84406         * modules/striconveha-tests: New file.
84407         * tests/test-striconveha.c: New file.
84409         * lib/striconveha.h: Include <stdbool.h>.
84410         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
84411         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
84412         (mem_iconveha_notranslit): Renamed from mem_iconveha.
84413         (mem_iconveha): New function.
84414         (str_iconveha_notranslit): Renamed from str_iconveha.
84415         (str_iconveha): New function.
84416         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
84417         c-strcase.
84419 2007-01-23  Bruno Haible  <bruno@clisp.org>
84421         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
84422         encodings without forgiving before trying any encoding with handler.
84423         (str_iconveha): Try all encodings without forgiving before trying any
84424         encoding with handler.
84426 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84428         Import the following changes from libc.
84430         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
84432         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
84434         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84436         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
84437         normal_bracket label.
84439         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
84441         [BZ #361]
84442         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
84443         to normal_bracket after fetching the next character.
84445 2007-01-22  Bruno Haible  <bruno@clisp.org>
84447         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
84448         argument.
84449         * lib/striconveh.c (iconv_carefully_1): New function.
84450         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
84451         argument.
84452         (str_cd_iconveh): Update.
84453         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
84454         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
84455         * tests/test-striconveh.c (MAGIC): New macro.
84456         (new_offsets): New function.
84457         (main): Test call with and without offsets.
84459 2007-01-22  Bruno Haible  <bruno@clisp.org>
84461         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
84462         * modules/sys_select (Makefile.am): Likewise.
84463         * modules/sys_socket (Makefile.am): Likewise.
84464         * modules/sys_time (Makefile.am): Likewise.
84466 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
84468         * modules/gettimeofday (License): Change from GPL to LGPL, since
84469         gettimeofday is a library function.
84471 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84473         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
84475 2007-01-21  Bruno Haible  <bruno@clisp.org>
84477         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
84479 2007-01-21  Bruno Haible  <bruno@clisp.org>
84481         * modules/striconveha: New file.
84482         * lib/striconveha.h: New file.
84483         * lib/striconveha.c: New file.
84484         * MODULES.html.sh (Internationalization functions): Add striconveha.
84485         * lib/striconv.c (str_iconv): Optimize the case of an empty input
84486         string.
84487         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
84489 2007-01-21  Bruno Haible  <bruno@clisp.org>
84491         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
84492         * lib/striconveh.c (str_iconveh): Likewise.
84494 2007-01-21  Bruno Haible  <bruno@clisp.org>
84496         * lib/striconveh.h (mem_iconveh): New declaration.
84497         * lib/striconveh.c (mem_iconveh): New function.
84498         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
84500 2007-01-21  Bruno Haible  <bruno@clisp.org>
84502         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
84504         * lib/striconveh.h (mem_cd_iconveh): Change specification.
84505         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
84506         original result buffer.
84507         (str_cd_iconveh): Update.
84508         * tests/test-striconveh.c (main): Update.
84510         * lib/striconv.h (mem_cd_iconv): Change specification.
84511         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
84512         result buffer.
84513         (str_cd_iconv): Update.
84514         * tests/test-striconv.c (main): Update.
84516 2007-01-21  Bruno Haible  <bruno@clisp.org>
84518         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
84520 2007-01-20  Jim Meyering  <jim@meyering.net>
84522         * lib/userspec.c (parse_with_separator): If a user or group string
84523         starts with "+", skip the corresponding name-to-ID look-up, since
84524         such a look-up must fail: user and group names may not include "+".
84526 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84528         * lib/poll.c: Include sys/time.h and time.h unconditionally,
84529         since we now assume the sys_time module.
84530         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
84531         check for sys/time.h; no longer needed.
84532         * modules/poll (Depends-on): Depend on sys_time.
84534 2007-01-18  Bruno Haible  <bruno@clisp.org>
84536         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
84537         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
84539         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
84540         gettimeofday.
84542         * tests/test-gettimeofday.c: Include <time.h>.
84543         (dummy): Remove variable.
84545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
84546         gl_HEADER_SYS_TIME_H.
84547         (gl_HEADER_SYS_TIME_H): New macro.
84549         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
84550         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
84552         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
84553         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84554         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
84555         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
84556         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84557         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
84558         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
84559         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84561         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
84562         last change; it caused a compilation error when cross-compiling to
84563         Cygwin.
84565 2007-01-18  Jim Meyering  <jim@meyering.net>
84567         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
84568         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
84569         than the race-prone "test -d sys || mkdir sys".
84570         (configure.ac): Use AC_PROG_MKDIR_P.
84571         * modules/sys_select: Likewise.
84572         * modules/sys_socket: Likewise.
84573         * modules/sys_time: Likewise.
84575 2007-01-18  Eric Blake  <ebb9@byu.net>
84577         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
84578         replace gettimeofday.
84579         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
84580         name, to avoid infinite recursion.
84582 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
84584         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
84585         module sys_time.
84586         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
84587         assume timespec.h defines struct timeval.
84588         * lib/settime.c: Likewise.
84589         * lib/utimens.c: Likewise.
84590         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
84591         since we now assume the gettimeofday module.
84592         * lib/tempname.c (__gen_tempname): Likewise.
84593         * lib/gettimeofday.h: Remove.
84594         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
84595         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
84596         Include <time.h>, for 'time()'.
84597         (localtime_buffer_addr): Also use this workaround if
84598         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
84599         to simplify the uses.  All uses changed.
84600         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
84601         that #undef is inside {}, and 'const' follows type name consistently.
84602         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
84603         (gettimeofday): Do not use the maximum possible value for
84604         tv->tv_usec, since that might break usages other than ls.c.
84605         Instead, we'll leave ls.c alone.  This undoes today's patch
84606         by Bruno.  Add a compile-time warning for 1s-clock resolution;
84607         we've never observed the problem but might as well keep the
84608         canary.
84609         * lib/nanosleep.c: Include timespec.h first, for interface check.
84610         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
84611         now assume the sys_time module.
84612         * lib/tempname.c: Likewise.
84613         * lib/timespec.h: Likewise.
84614         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
84615         needed.
84616         * lib/strftime.c: Likewise.
84617         * lib/timespec.h: Likewise.
84618         * lib/posixtm.c: Include posixtm.h first, for interface check.
84619         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
84620         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
84621         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
84622         * lib/sys_time_.h: New file.
84623         * lib/timespec.h (struct timespec): Use long int, not long.
84624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
84625         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
84626         Remove obsolescent call to AC_HEADER_TIME.
84627         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
84628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
84629         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
84630         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
84631         Likewise.
84632         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
84633         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
84634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
84635         into the sys_time module.  Check for gettimeofday just once.
84636         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
84637         for gettimeofday signature to just check the signature.  Merely
84638         compile it, since linking doesn't test signature.  Improve test for
84639         whether gettimeofday.o is actually needed.
84640         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
84641         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
84642         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
84643         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84644         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
84645         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
84646         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
84647         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
84648         than worrying about sys/time.h.
84649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
84650         Don't bother worrying about TIME_WITH_SYS_TIME.
84651         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
84652         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
84653         * m4/sys_time_h.m4: New file.
84654         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
84655         Don't include sys/time.h.  Return from main rather than exiting.
84656         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
84657         all uses changed.
84658         * modules/gethrxtime (Depends-on): Add sys_time.
84659         * modules/gettime (Depends-on): Likewise.
84660         * modules/gettimeofday (Depends-on): Likewise.
84661         * modules/nanosleep (Depends-on): Likewise.
84662         * modules/settime (Depends-on): Likewise.
84663         * modules/tempname (Depends-on): Likewise.
84664         * modules/utimens (Depends-on): Likewise.
84665         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
84666         (Include): Change back to <sys/time.h>.
84667         (Maintainer): Add self.
84668         * modules/sys_time: New file.
84669         * modules/tempname (Depends-on): Add gettimeofday.
84670         * tests/test-gettimeofday.c: Include <sys/time.h>
84671         rather than gettimeofday.h.
84673 2007-01-17  Bruno Haible  <bruno@clisp.org>
84675         * gnulib-tool (func_get_license): Revert last patch. Instead, let
84676         the license default to GPL.
84677         (func_create_testdir): Don't complain if a module is LGPL and its
84678         tests module depends on GPLed modules.
84680 2007-01-17  Bruno Haible  <bruno@clisp.org>
84682         * lib/gettimeofday.c (gettimeofday): Add code for the case
84683         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
84684         maximum possible value for tv->tv_usec, rather than the minimum one.
84686 2005-10-08  Martin Lambers  <marlam@marlam.de>
84687 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84688 2007-01-16  Bruno Haible  <bruno@clisp.org>
84690         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
84691         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
84692         gl_FUNC_GETTIMEOFDAY.
84693         (Include): Add gettimeofday.h.
84694         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
84695         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
84696         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
84697         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
84698         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
84699         * lib/gettimeofday.h: New file.
84700         * lib/gettimeofday.c: Include <sys/timeb.h>.
84701         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
84702         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84703         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
84704         fall back on time().
84706         * tests/test-gettimeofday.c: New file.
84707         * modules/gettimeofday-tests: New file.
84709 2007-01-16  Eric Blake  <ebb9@byu.net>
84711         * modules/fnmatch (Depends-on): Depend on wchar.
84712         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
84713         * m4/fnmatch.m4: Likewise.
84714         * modules/mbchar (Makefile.am): Assume <wchar.h>.
84715         * m4/mbchar.m4: Likewise.
84716         * modules/mbswidth (Depends-on): Depend on wchar.
84717         * lib/mbswidth.c: Assume <wchar.h>.
84718         * m4/mbswidth.m4: Likewise.
84719         * modules/quotearg (Depends-on): Depend on wchar.
84720         * lib/quotearg.c: Assume <wchar.h>.
84721         * m4/quotearg.m4: Likewise.
84722         * modules/regex (Depends-on): Depend on wchar.
84723         * lib/regex_internal.h: Assume <wchar.h>.
84724         * m4/regex.m4: Likewise.
84725         * modules/stdint (Depends-on): Depend on wchar.
84726         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
84727         * m4/stdint.m4: Likewise.
84728         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
84729         * modules/strftime (Depends-on): Depend on wchar.
84730         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
84731         * modules/strtol (Depends-on): Depend on wchar.
84732         * lib/strtol.c: Assume <wchar.h>.
84733         * modules/wcwidth (Depends-on): Depend on wchar.
84734         * lib/wcwidth.h: Assume <wchar.h>.
84735         * m4/wcwidth.m4: Likewise.
84737 2007-01-16  Bruno Haible  <bruno@clisp.org>
84739         * modules/csharpexec-script: New, created from...
84740         * modules/csharpexec: ... this.
84742 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
84744         * modules/javaexec-script: New, created from...
84745         * modules/javaexec: ... this.
84747 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84749         * modules/poll (Dependencies): Add sys_select.
84751 2007-01-15  Jim Meyering  <jim@meyering.net>
84753         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
84754         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
84755         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
84756         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
84758 2007-01-15  Bruno Haible  <bruno@clisp.org>
84760         * modules/striconveh: New file.
84761         * lib/striconveh.h: New file.
84762         * lib/striconveh.c: New file.
84763         * MODULES.html.sh (Internationalization functions): Add striconveh.
84765         * modules/striconveh-tests: New file.
84766         * tests/test-striconveh.c: New file.
84768 2007-01-15  Bruno Haible  <bruno@clisp.org>
84770         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
84771         not from GNU libiconv or GNU libc.
84773 2007-01-15  Bruno Haible  <bruno@clisp.org>
84775         * doc/gnulib-intro.texi (Copyright): Explain the different license
84776         terms for module descriptions, autoconf macros, tests, documentation.
84778 2007-01-14  Bruno Haible  <bruno@clisp.org>
84780         * modules/striconv-tests: New file.
84781         * tests/test-striconv.c: New file.
84783 2007-01-14  Bruno Haible  <bruno@clisp.org>
84785         * modules/iconv-tests: New file.
84786         * tests/test-iconv.c: New file.
84788 2007-01-14  Bruno Haible  <bruno@clisp.org>
84790         * gnulib-tool (func_get_license): For test modules, use the license of
84791         the main module.
84793 2007-01-14  Bruno Haible  <bruno@clisp.org>
84795         * modules/iconv (Include): Clarify that <iconv.h> can only be included
84796         if iconv is found to exist.
84798 2007-01-14  Bruno Haible  <bruno@clisp.org>
84800         * modules/c-ctype-tests: New file.
84801         * tests/test-c-ctype.c: New file.
84803 2007-01-14  Bruno Haible  <bruno@clisp.org>
84805         * modules/binary-io-tests: New file.
84806         * tests/test-binary-io.sh: New file.
84807         * tests/test-binary-io.c: New file.
84809 2007-01-14  Bruno Haible  <bruno@clisp.org>
84811         * modules/array-oset-tests: New file.
84812         * tests/test-array_oset.c: New file.
84814 2007-01-14  Bruno Haible  <bruno@clisp.org>
84816         * modules/array-list-tests: New file.
84817         * tests/test-array_list.c: New file.
84819 2007-01-14  Bruno Haible  <bruno@clisp.org>
84821         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
84822         and make.
84823         Reported by Simon Josefsson in
84824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
84826 2007-01-14  Bruno Haible  <bruno@clisp.org>
84828         * modules/allocsa-tests: New file.
84829         * tests/test-allocsa.c: New file.
84831 2007-01-14  Bruno Haible  <bruno@clisp.org>
84833         * modules/fchdir (Depends-on): Add absolute-header.
84834         * modules/unistd (Depends-on): Likewise.
84836 2006-12-30  Bruno Haible  <bruno@clisp.org>
84838         * modules/fchdir: New file.
84839         * modules/unistd (Files): Add lib/unistd_.h.
84840         (Makefile.am): Generate unistd.h from unistd_.h.
84841         * lib/fchdir.c: New file.
84842         * lib/dirent_.h: New file.
84843         * lib/unistd_.h: New file.
84844         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
84845         * m4/fchdir.m4: New file.
84846         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
84847         (gl_HEADER_UNISTD): Invoke it.
84848         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
84849         function.
84850         * lib/backupfile.c (opendir, closedir): Undefine.
84851         * lib/chown.c (open, close): Undefine.
84852         * lib/clean-temp.c (open, close): Undefine.
84853         * lib/copy-file.c (open, close): Undefine.
84854         * lib/execute.c (open, close): Undefine.
84855         * lib/fsusage.c (open, close): Undefine.
84856         * lib/gc-gnulib.c (open, close): Undefine.
84857         * lib/getcwd.c (opendir, closedir): Undefine.
84858         * lib/glob.c (opendir, closedir): Undefine.
84859         * lib/javacomp.c (open, close): Undefine.
84860         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
84861         * lib/openat-proc.c (open, close): Undefine.
84862         * lib/pagealign_alloc.c (open, close): Undefine.
84863         * lib/pipe.c (open, close): Undefine.
84864         * lib/progreloc.c (open, close): Undefine.
84865         * lib/savedir.c (opendir, closedir): Undefine.
84866         * lib/utime.c (open, close): Undefine.
84867         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
84869 2007-01-10  Bruno Haible  <bruno@clisp.org>
84871         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
84873 2007-01-12  Eric Blake  <ebb9@byu.net>
84875         Provide a robust <wchar.h>.  Further simplifications are now
84876         possible in other modules, but not included here.
84877         * modules/wchar: New module.
84878         * m4/wchar.m4: New file.
84879         * lib/wchar_.h: Likewise.
84880         * modules/mbchar (Depends-on): Depend on wchar, as the first use
84881         of the new module.
84882         * MODULES.html.sh (Extended multibyte and wide character utilities):
84883         New section.
84885 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
84887         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
84888         to a reasonable default for memory allocation.
84889         (xreadlink): Don't allocate a huge buffer, to work around a buggy
84890         file system that reports garbage st_size values for symlinks.
84891         Problem reported by Liyang Hu.
84893 2007-01-11  Simon Josefsson  <simon@josefsson.org>
84895         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
84896         Emacs .#* auto-save files).
84898 2007-01-11  Bruno Haible  <bruno@clisp.org>
84900         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
84901         directory.
84903 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84905         Use @...@ consistently in lib/wctype_.h.
84906         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
84907         on it being set to 1 or 0.
84908         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
84909         go back to AC_SUBSTing it.
84910         * modules/wctype (Makefile.am): Undo previous change.
84912 2007-01-10  Eric Blake  <ebb9@byu.net>
84914         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
84915         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
84916         * modules/wctype (Makefile.am): Likewise.
84917         Reported by Chris McGuire.
84919 2007-01-10  Jim Meyering  <jim@meyering.net>
84921         fts.c: a small readability/maintainability improvement
84922         * lib/fts.c (fts_read): Make this code slightly more readable and
84923         maintainable by hoisting the "sp->fts_cur = p" assignments to
84924         immediately follow the statements that set P.  Derived from
84925         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
84927 2007-01-10  Eric Blake  <ebb9@byu.net>
84929         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
84930         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
84931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
84932         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84933         Reported by Chris McGuire.
84935 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84937         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
84938         in sed script.
84940 2007-01-09  Bruno Haible  <bruno@clisp.org>
84942         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
84943         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
84944         variables.
84945         (func_module): Use them.
84947 2007-01-09  Bruno Haible  <bruno@clisp.org>
84949         * modules/unistr/base: New file.
84950         * lib/unistr.h: New file.
84952         * modules/unistr/u8-to-u16: New file.
84953         * lib/unistr/u8-to-u16.c: New file.
84955         * modules/unistr/u8-to-u32: New file.
84956         * lib/unistr/u8-to-u32.c: New file.
84958         * modules/unistr/u16-to-u8: New file.
84959         * lib/unistr/u16-to-u8.c: New file.
84961         * modules/unistr/u16-to-u32: New file.
84962         * lib/unistr/u16-to-u32.c: New file.
84964         * modules/unistr/u32-to-u8: New file.
84965         * lib/unistr/u32-to-u8.c: New file.
84967         * modules/unistr/u32-to-u16: New file.
84968         * lib/unistr/u32-to-u16.c: New file.
84970         * modules/unistr/u8-check: New file.
84971         * modules/unistr/u16-check: New file.
84972         * modules/unistr/u32-check: New file.
84973         * lib/unistr/u8-check.c: New file.
84974         * lib/unistr/u16-check.c: New file.
84975         * lib/unistr/u32-check.c: New file.
84977         * modules/unistr/u8-chr: New file.
84978         * modules/unistr/u16-chr: New file.
84979         * modules/unistr/u32-chr: New file.
84980         * lib/unistr/u8-chr.c: New file.
84981         * lib/unistr/u16-chr.c: New file.
84982         * lib/unistr/u32-chr.c: New file.
84984         * modules/unistr/u8-cmp: New file.
84985         * modules/unistr/u16-cmp: New file.
84986         * modules/unistr/u32-cmp: New file.
84987         * lib/unistr/u8-cmp.c: New file.
84988         * lib/unistr/u16-cmp.c: New file.
84989         * lib/unistr/u32-cmp.c: New file.
84991         * modules/unistr/u8-cpy: New file.
84992         * modules/unistr/u16-cpy: New file.
84993         * modules/unistr/u32-cpy: New file.
84994         * lib/unistr/u8-cpy.c: New file.
84995         * lib/unistr/u16-cpy.c: New file.
84996         * lib/unistr/u32-cpy.c: New file.
84997         * lib/unistr/u-cpy.h: New file.
84999         * modules/unistr/u8-cpy-alloc: New file.
85000         * modules/unistr/u16-cpy-alloc: New file.
85001         * modules/unistr/u32-cpy-alloc: New file.
85002         * lib/unistr/u8-cpy-alloc.c: New file.
85003         * lib/unistr/u16-cpy-alloc.c: New file.
85004         * lib/unistr/u32-cpy-alloc.c: New file.
85005         * lib/unistr/u-cpy-alloc.h: New file.
85007         * modules/unistr/u8-endswith: New file.
85008         * modules/unistr/u16-endswith: New file.
85009         * modules/unistr/u32-endswith: New file.
85010         * lib/unistr/u8-endswith.c: New file.
85011         * lib/unistr/u16-endswith.c: New file.
85012         * lib/unistr/u32-endswith.c: New file.
85013         * lib/unistr/u-endswith.h: New file.
85015         * modules/unistr/u8-mblen: New file.
85016         * modules/unistr/u16-mblen: New file.
85017         * modules/unistr/u32-mblen: New file.
85018         * lib/unistr/u8-mblen.c: New file.
85019         * lib/unistr/u16-mblen.c: New file.
85020         * lib/unistr/u32-mblen.c: New file.
85022         * modules/unistr/u8-mbtouc: New file.
85023         * modules/unistr/u16-mbtouc: New file.
85024         * modules/unistr/u32-mbtouc: New file.
85025         * lib/unistr/u8-mbtouc.c: New file.
85026         * lib/unistr/u16-mbtouc.c: New file.
85027         * lib/unistr/u32-mbtouc.c: New file.
85029         * modules/unistr/u8-mbtouc-safe: New file.
85030         * modules/unistr/u16-mbtouc-safe: New file.
85031         * modules/unistr/u32-mbtouc-safe: New file.
85032         * lib/unistr/u8-mbtouc-safe.c: New file.
85033         * lib/unistr/u16-mbtouc-safe.c: New file.
85034         * lib/unistr/u32-mbtouc-safe.c: New file.
85036         * modules/unistr/u8-move: New file.
85037         * modules/unistr/u16-move: New file.
85038         * modules/unistr/u32-move: New file.
85039         * lib/unistr/u8-move.c: New file.
85040         * lib/unistr/u16-move.c: New file.
85041         * lib/unistr/u32-move.c: New file.
85042         * lib/unistr/u-move.h: New file.
85044         * modules/unistr/u8-next: New file.
85045         * modules/unistr/u16-next: New file.
85046         * modules/unistr/u32-next: New file.
85047         * lib/unistr/u8-next.c: New file.
85048         * lib/unistr/u16-next.c: New file.
85049         * lib/unistr/u32-next.c: New file.
85051         * modules/unistr/u8-prev: New file.
85052         * modules/unistr/u16-prev: New file.
85053         * modules/unistr/u32-prev: New file.
85054         * lib/unistr/u8-prev.c: New file.
85055         * lib/unistr/u16-prev.c: New file.
85056         * lib/unistr/u32-prev.c: New file.
85058         * modules/unistr/u8-set: New file.
85059         * modules/unistr/u16-set: New file.
85060         * modules/unistr/u32-set: New file.
85061         * lib/unistr/u8-set.c: New file.
85062         * lib/unistr/u16-set.c: New file.
85063         * lib/unistr/u32-set.c: New file.
85064         * lib/unistr/u-set.h: New file.
85066         * modules/unistr/u8-startswith: New file.
85067         * modules/unistr/u16-startswith: New file.
85068         * modules/unistr/u32-startswith: New file.
85069         * lib/unistr/u8-startswith.c: New file.
85070         * lib/unistr/u16-startswith.c: New file.
85071         * lib/unistr/u32-startswith.c: New file.
85072         * lib/unistr/u-startswith.h: New file.
85074         * modules/unistr/u8-stpcpy: New file.
85075         * modules/unistr/u16-stpcpy: New file.
85076         * modules/unistr/u32-stpcpy: New file.
85077         * lib/unistr/u8-stpcpy.c: New file.
85078         * lib/unistr/u16-stpcpy.c: New file.
85079         * lib/unistr/u32-stpcpy.c: New file.
85080         * lib/unistr/u-stpcpy.h: New file.
85082         * modules/unistr/u8-stpncpy: New file.
85083         * modules/unistr/u16-stpncpy: New file.
85084         * modules/unistr/u32-stpncpy: New file.
85085         * lib/unistr/u8-stpncpy.c: New file.
85086         * lib/unistr/u16-stpncpy.c: New file.
85087         * lib/unistr/u32-stpncpy.c: New file.
85088         * lib/unistr/u-stpncpy.h: New file.
85090         * modules/unistr/u8-strcat: New file.
85091         * modules/unistr/u16-strcat: New file.
85092         * modules/unistr/u32-strcat: New file.
85093         * lib/unistr/u8-strcat.c: New file.
85094         * lib/unistr/u16-strcat.c: New file.
85095         * lib/unistr/u32-strcat.c: New file.
85096         * lib/unistr/u-strcat.h: New file.
85098         * modules/unistr/u8-strchr: New file.
85099         * modules/unistr/u16-strchr: New file.
85100         * modules/unistr/u32-strchr: New file.
85101         * lib/unistr/u8-strchr.c: New file.
85102         * lib/unistr/u16-strchr.c: New file.
85103         * lib/unistr/u32-strchr.c: New file.
85105         * modules/unistr/u8-strcmp: New file.
85106         * modules/unistr/u16-strcmp: New file.
85107         * modules/unistr/u32-strcmp: New file.
85108         * lib/unistr/u8-strcmp.c: New file.
85109         * lib/unistr/u16-strcmp.c: New file.
85110         * lib/unistr/u32-strcmp.c: New file.
85112         * modules/unistr/u8-strcpy: New file.
85113         * modules/unistr/u16-strcpy: New file.
85114         * modules/unistr/u32-strcpy: New file.
85115         * lib/unistr/u8-strcpy.c: New file.
85116         * lib/unistr/u16-strcpy.c: New file.
85117         * lib/unistr/u32-strcpy.c: New file.
85118         * lib/unistr/u-strcpy.h: New file.
85120         * modules/unistr/u8-strcspn: New file.
85121         * modules/unistr/u16-strcspn: New file.
85122         * modules/unistr/u32-strcspn: New file.
85123         * lib/unistr/u8-strcspn.c: New file.
85124         * lib/unistr/u16-strcspn.c: New file.
85125         * lib/unistr/u32-strcspn.c: New file.
85126         * lib/unistr/u-strcspn.h: New file.
85128         * modules/unistr/u8-strdup: New file.
85129         * modules/unistr/u16-strdup: New file.
85130         * modules/unistr/u32-strdup: New file.
85131         * lib/unistr/u8-strdup.c: New file.
85132         * lib/unistr/u16-strdup.c: New file.
85133         * lib/unistr/u32-strdup.c: New file.
85134         * lib/unistr/u-strdup.h: New file.
85136         * modules/unistr/u8-strlen: New file.
85137         * modules/unistr/u16-strlen: New file.
85138         * modules/unistr/u32-strlen: New file.
85139         * lib/unistr/u8-strlen.c: New file.
85140         * lib/unistr/u16-strlen.c: New file.
85141         * lib/unistr/u32-strlen.c: New file.
85142         * lib/unistr/u-strlen.h: New file.
85144         * modules/unistr/u8-strmblen: New file.
85145         * modules/unistr/u16-strmblen: New file.
85146         * modules/unistr/u32-strmblen: New file.
85147         * lib/unistr/u8-strmblen.c: New file.
85148         * lib/unistr/u16-strmblen.c: New file.
85149         * lib/unistr/u32-strmblen.c: New file.
85151         * modules/unistr/u8-strmbtouc: New file.
85152         * modules/unistr/u16-strmbtouc: New file.
85153         * modules/unistr/u32-strmbtouc: New file.
85154         * lib/unistr/u8-strmbtouc.c: New file.
85155         * lib/unistr/u16-strmbtouc.c: New file.
85156         * lib/unistr/u32-strmbtouc.c: New file.
85158         * modules/unistr/u8-strncat: New file.
85159         * modules/unistr/u16-strncat: New file.
85160         * modules/unistr/u32-strncat: New file.
85161         * lib/unistr/u8-strncat.c: New file.
85162         * lib/unistr/u16-strncat.c: New file.
85163         * lib/unistr/u32-strncat.c: New file.
85164         * lib/unistr/u-strncat.h: New file.
85166         * modules/unistr/u8-strncmp: New file.
85167         * modules/unistr/u16-strncmp: New file.
85168         * modules/unistr/u32-strncmp: New file.
85169         * lib/unistr/u8-strncmp.c: New file.
85170         * lib/unistr/u16-strncmp.c: New file.
85171         * lib/unistr/u32-strncmp.c: New file.
85173         * modules/unistr/u8-strncpy: New file.
85174         * modules/unistr/u16-strncpy: New file.
85175         * modules/unistr/u32-strncpy: New file.
85176         * lib/unistr/u8-strncpy.c: New file.
85177         * lib/unistr/u16-strncpy.c: New file.
85178         * lib/unistr/u32-strncpy.c: New file.
85179         * lib/unistr/u-strncpy.h: New file.
85181         * modules/unistr/u8-strnlen: New file.
85182         * modules/unistr/u16-strnlen: New file.
85183         * modules/unistr/u32-strnlen: New file.
85184         * lib/unistr/u8-strnlen.c: New file.
85185         * lib/unistr/u16-strnlen.c: New file.
85186         * lib/unistr/u32-strnlen.c: New file.
85187         * lib/unistr/u-strnlen.h: New file.
85189         * modules/unistr/u8-strpbrk: New file.
85190         * modules/unistr/u16-strpbrk: New file.
85191         * modules/unistr/u32-strpbrk: New file.
85192         * lib/unistr/u8-strpbrk.c: New file.
85193         * lib/unistr/u16-strpbrk.c: New file.
85194         * lib/unistr/u32-strpbrk.c: New file.
85195         * lib/unistr/u-strpbrk.h: New file.
85197         * modules/unistr/u8-strrchr: New file.
85198         * modules/unistr/u16-strrchr: New file.
85199         * modules/unistr/u32-strrchr: New file.
85200         * lib/unistr/u8-strrchr.c: New file.
85201         * lib/unistr/u16-strrchr.c: New file.
85202         * lib/unistr/u32-strrchr.c: New file.
85204         * modules/unistr/u8-strspn: New file.
85205         * modules/unistr/u16-strspn: New file.
85206         * modules/unistr/u32-strspn: New file.
85207         * lib/unistr/u8-strspn.c: New file.
85208         * lib/unistr/u16-strspn.c: New file.
85209         * lib/unistr/u32-strspn.c: New file.
85210         * lib/unistr/u-strspn.h: New file.
85212         * modules/unistr/u8-strstr: New file.
85213         * modules/unistr/u16-strstr: New file.
85214         * modules/unistr/u32-strstr: New file.
85215         * lib/unistr/u8-strstr.c: New file.
85216         * lib/unistr/u16-strstr.c: New file.
85217         * lib/unistr/u32-strstr.c: New file.
85218         * lib/unistr/u-strstr.h: New file.
85220         * modules/unistr/u8-strtok: New file.
85221         * modules/unistr/u16-strtok: New file.
85222         * modules/unistr/u32-strtok: New file.
85223         * lib/unistr/u8-strtok.c: New file.
85224         * lib/unistr/u16-strtok.c: New file.
85225         * lib/unistr/u32-strtok.c: New file.
85226         * lib/unistr/u-strtok.h: New file.
85228         * modules/unistr/u8-uctomb: New file.
85229         * modules/unistr/u16-uctomb: New file.
85230         * modules/unistr/u32-uctomb: New file.
85231         * lib/unistr/u8-uctomb.c: New file.
85232         * lib/unistr/u16-uctomb.c: New file.
85233         * lib/unistr/u32-uctomb.c: New file.
85235         * MODULES.html.sh (Unicode string functions): Add the new modules.
85237 2007-01-08  Bruno Haible  <bruno@clisp.org>
85239         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
85240         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
85241         subdirectories.
85243 2007-01-08  Karl Berry  <karl@gnu.org>
85245         * doc/error.texi: mention that main() fns must set program_name
85246         when progname is used.
85248 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
85250         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
85251         WCTYPE_H is empty, for the benefit of builds from non-distclean
85252         directories.  Problem reported by Eric Blake in
85253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
85255 2007-01-08  Bruno Haible  <bruno@clisp.org>
85257         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
85258         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
85259         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
85260         PROVIDE_CANONICALIZE_FILENAME_MODE.
85261         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
85263 2007-01-08  Bruno Haible  <bruno@clisp.org>
85265         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
85266         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
85267         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
85268         * lib/fts.c: Likewise.
85269         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
85271 2006-12-25  Bruno Haible  <bruno@clisp.org>
85273         * modules/utf8-ucs4-safe: New file.
85274         * lib/utf8-ucs4-safe.h: New file.
85275         * lib/unistr/utf8-ucs4-safe.c: New file.
85277         * modules/utf16-ucs4-safe: New file.
85278         * lib/utf16-ucs4-safe.h: New file.
85279         * lib/unistr/utf16-ucs4-safe.c: New file.
85281         * MODULES.html.sh (Unicode string functions): Add the new modules.
85283 2007-01-08  Bruno Haible  <bruno@clisp.org>
85285         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
85286         (Depends-on): Add unitypes.
85287         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
85288         (u8_mbtouc_aux): Move out to separate file.
85289         (u8_mbtouc): Use ucs4_t, uint8_t types.
85290         * lib/unistr/utf8-ucs4.c: New file.
85292         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
85293         (Depends-on): Add unitypes.
85294         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
85295         (u16_mbtouc_aux): Move out to separate file.
85296         (u16_mbtouc): Use ucs4_t, uint16_t types.
85297         * lib/unistr/utf16-ucs4.c: New file.
85299         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
85300         (Depends-on): Add unitypes.
85301         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
85302         (u8_uctomb_aux): Move out to separate file.
85303         (u8_uctomb): Use ucs4_t, uint8_t types.
85304         * lib/unistr/ucs4-utf8.c: New file.
85306         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
85307         (Depends-on): Add unitypes.
85308         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
85309         (u16_uctomb_aux): Move out to separate file.
85310         (u16_uctomb): Use ucs4_t, uint16_t types.
85311         * lib/unistr/ucs4-utf16.c: New file.
85313 2006-12-25  Bruno Haible  <bruno@clisp.org>
85315         * modules/unitypes: New file.
85316         * lib/unitypes.h: New file.
85317         * MODULES.html.sh (func_all_modules): New section "Unicode string
85318         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
85319         this section. Add unitypes.
85321 2007-01-08  Bruno Haible  <bruno@clisp.org>
85323         Avoid variable names that conflict with those from libtool.
85324         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
85325         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
85326         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
85327         library_names_spec to acl_library_names_spec, hardcode_* to
85328         acl_hardcode_*.
85329         Reported by Ralf Wildenhues.
85331 2007-01-08  Bruno Haible  <bruno@clisp.org>
85333         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
85334         definition.
85335         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
85336         definition.
85337         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
85338         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
85339         definition.
85340         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
85341         definition.
85342         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
85343         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
85344         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
85345         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
85346         definition.
85347         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
85348         definition.
85349         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
85350         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
85351         GC_USE_<algorithm>.
85352         * lib/gc-libgcrypt.c: Likewise.
85353         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
85354         * modules/gc-arctwo (configure.ac): Likewise.
85355         * modules/gc-des (configure.ac): Likewise.
85356         * modules/gc-hmac-md5 (configure.ac): Likewise.
85357         * modules/gc-hmac-sha1 (configure.ac): Likewise.
85358         * modules/gc-md2 (configure.ac): Likewise.
85359         * modules/gc-md4 (configure.ac): Likewise.
85360         * modules/gc-md5 (configure.ac): Likewise.
85361         * modules/gc-random (configure.ac): Likewise.
85362         * modules/gc-rijndael (configure.ac): Likewise.
85363         * modules/gc-sha1 (configure.ac): Likewise.
85365 2007-01-08  Bruno Haible  <bruno@clisp.org>
85367         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
85368         macro definition.
85369         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
85370         definition.
85371         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
85372         definition.
85373         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
85374         * modules/fcntl-safer (configure.ac): Likewise.
85375         * modules/fopen-safer (configure.ac): Likewise.
85376         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
85377         GNULIB_FWRITEERROR macro definition.
85379 2007-01-08  Bruno Haible  <bruno@clisp.org>
85381         * m4/gnulib-common.m4: New file.
85382         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
85383         (func_get_filelist): Add m4/gnulib-common.m4.
85385 2007-01-08  Bruno Haible  <bruno@clisp.org>
85387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
85388         command.
85390 2007-01-08  Jim Meyering  <jim@meyering.net>
85392         Use a more robust test for a "can't happen" condition.
85393         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
85394         narrowed the st_size value.  Presuming the "can't happen" condition
85395         is true, that narrowing could conceivably convert an invalid st_size
85396         value into a valid one.  Instead, use a change based on Matthew
85397         Woehlke's original patch.
85399         Slight readability improvement: use an assert-like macro
85400         in place of literal "abort ()" uses.
85401         * lib/fts.c (fts_assert): Define.
85402         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
85403         Use this macro instead of a bare 'abort'.
85405 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
85407         Don't worry about using IRIX 5.3's wctype.h broken definitions;
85408         simply work around them.
85409         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
85410         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
85411         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
85412         declaring.
85413         Don't bother to define as macros, since the standard doesn't require it.
85414         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
85415         longer worry about IRIX 5.3.
85416         (HAVE_WCTYPE_CTMP_BUG): Remove.
85418 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85420         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
85421         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
85422         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
85423         Problems reported by Georg Schwarz for IRIX 5.3.
85425         * gnulib-tool (autoconf_minversion): Take the maximum version number
85426         found, not the minimum.  Problem reported by James Youngman.
85428 2007-01-03  Karl Berry  <karl@gnu.org>
85430         * doc/error.texi: new file, explaining interaction with progname.
85431         * doc/gnulib.texi: include it.  Update copyright.
85433 2007-01-03  Simon Josefsson  <simon@josefsson.org>
85435         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
85436         AC_CANONICAL_HOST, to improve autobuild outputs.
85438 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
85439             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
85441         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
85442         sockets, server sockets, and other file descriptors.  Count errors
85443         to compute the return value.  Reorder the code a bit to be easier
85444         to follow.  Don't set event bits that were not requested (except
85445         POLLERR and POLLHUP).
85447 2007-01-01  Bruno Haible  <bruno@clisp.org>
85449         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
85451 2007-01-03  Jim Meyering  <jim@meyering.net>
85453         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
85455 2007-01-02  Bruno Haible  <bruno@clisp.org>
85457         * modules/settime (Include): Require timespec.h.
85458         * modules/nanosleep (Include): Likewise.
85460 2007-01-01  Bruno Haible  <bruno@clisp.org>
85462         * gnulib-tool (func_emit_copyright_notice): Bump year.
85463         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
85465 2007-01-01  Bruno Haible  <bruno@clisp.org>
85467         Improve support for OpenBSD.
85468         * build-aux/config.rpath (libname_spec): Export.
85469         (library_names_spec): New variable. Export.
85470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
85471         library_names_spec from the config.rpath output. Locate shared library
85472         through the name pattern in library_names_spec.
85474 2007-01-01  Eric Blake  <ebb9@byu.net>
85476         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
85478 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
85480         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
85481         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
85482         assume the C locale, and avoid an "eval" that could cause trouble.
85483         Problem with SORT reported by Bob Proulx.
85485         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
85486         Define.  Trivial patch from Henning Nielsen Lund, originally
85487         sent to bug-grep@gnu.org today.
85489 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
85491         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
85492         struct stat.  Problem reported by Henning Nielsen Lund.
85493         * lib/acl.c: Include acl.h first, to check interface.  Don't
85494         bother to include sys/types.h and sys/stat.h again.
85496 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85498         Import the following change from libc; problem reported by
85499         Sven Verdoolaege.
85501         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
85503         [BZ #1373]
85504         * lib/argp.h: Remove __NTH for __argp_usage inline function.
85506 2006-12-28  Jim Meyering  <jim@meyering.net>
85508         * build-aux/announce-gen: Do not assume that the package
85509         builds any of tar.gz, tar.bz2, and .xdelta files.
85510         Suggestion from Simon Josefsson.
85512 2006-12-28  Simon Josefsson  <simon@josefsson.org>
85514         * modules/announce-gen: New file.
85516 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
85518         * lib/mbchar.h: Just include <wctype.h>; the wctype module
85519         handles its gotchas now.
85520         * lib/mbswidth.c: Likewise.
85521         * lib/wcwidth.h: Likewise.
85522         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
85523         and iswcntrl; the wctype module does this stuff now.
85524         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85526         * modules/mbchar (Depends-on): Add wctype.
85527         * modules/mbswidth (Depends-on): Likewise.
85528         * modules/wcwidth (Depends-on): Likewise.
85530 2006-12-27  Eric Blake  <ebb9@byu.net>
85532         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
85533         module uses more than what <wctype.h> is required to provide.
85535 2006-12-26  Eric Blake  <ebb9@byu.net>
85537         * gnulib-tool (sed_extract_prog): Avoid space-tab.
85539 2006-12-26  Eric Blake  <ebb9@byu.net>
85541         * modules/absolute-header: New module.
85542         * modules/fcntl (Depends-on): Depend on it.
85543         * modules/inttypes (Depends-on): Likewise.
85544         * modules/stdint (Depends-on): Likewise.
85545         * modules/sys_stat (Depends-on): Likewise.
85546         * modules/wctype (Depends-on): Likewise.
85547         * MODULES.html.sh (Support for building libraries and
85548         executables): Document it.
85550 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
85552         * gnulib-tool (SED): Remove, undoing previous change.
85553         The problem was that it broke coreutils on Solaris, because
85554         "sed --posix" leaked into a makefile.
85555         (sed): New alias, if 'alias' and GNU sed.
85557 2006-12-24  Jim Meyering  <jim@meyering.net>
85559         Work around an fchownat bug in glibc-2.4:
85560         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
85561         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
85562         in spite of the -P option.
85563         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
85564         New macros.
85565         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
85566         * modules/openat (Files): Add lib/fchownat.c.
85567         * lib/openat.c (fchownat): Don't define here.  Move to...
85568         * lib/fchownat.c: ...this new file.
85570 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85572         Fix bug reported by Bruno Haible in
85573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
85574         where quotearg.c didn't compile on Mac OS X 10.2 because it
85575         lacks <wchar.h> and wint_t.
85576         * lib/wctype_.h (__wctype_wint_t): New type.
85577         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
85578         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
85579         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
85580         Arg is now of type __wctype_wint_t, not wint_t.
85581         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
85582         substitute HAVE_WINT_T.
85583         * modules/wctype (Files): Add m4/wint_t.m4.
85584         (wctype.h): Substitute HAVE_WINT_T.
85586 2006-12-23  Bruno Haible  <bruno@clisp.org>
85588         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
85590 2006-12-23  Bruno Haible  <bruno@clisp.org>
85592         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
85593         S_ISLNK.
85594         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
85595         mingw.
85597 2006-12-22  Bruno Haible  <bruno@clisp.org>
85599         * lib/copy-file.c: Include acl.h.
85600         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
85601         Close the file descriptors only after being done with copy_acl.
85602         * modules/copy-file (Depends-on): Add acl.
85604 2006-12-22  Bruno Haible  <bruno@clisp.org>
85606         * gnulib-tool (SED): New variable.
85607         Use $SED instead of sed everywhere.
85609 2006-12-22  Bruno Haible  <bruno@clisp.org>
85611         * modules/no-c++: New file.
85612         * m4/no-c++.m4: New file.
85613         * MODULES.html.sh (Support for building libraries and executables):
85614         Add no-c++.
85616 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
85618         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
85619         Include <limits.h>, and use its INT_MAX to rewrite the
85620         j loop so that it does not overflow 'int'.  Problem reported by
85621         Ralf Wildenhues in
85622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
85623         Play it safe by shifting left by 1 rather than multiplying by 2,
85624         as GCC is less likely to optimize this away when the value
85625         is signed (when it assumes overflow leads to undefined behavior).
85626         Also, don't assume time_t uses two's complement.
85628 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
85630         * MODULES.html.sh: New module wctype.
85631         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
85632         * lib/fnmatch.c: Don't bother to include <wchar.h> before
85633         <wctype.h>, since the new wctype module should fix this.
85634         * lib/quotearg.c: Include <wctype.h> unconditionally, since
85635         the wctype module should arrange for it.
85636         * lib/regex_internal.h: Likewise.
85637         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
85638         since the wctype module should handle this now.
85639         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
85640         * modules/fnmatch (Depends-on): Add wctype.
85641         * modules/quotearg (Depends-on): Likewise.
85642         * modules/regex (Depends-on): Likewise.
85644 2006-12-19  Bruno Haible  <bruno@clisp.org>
85646         * lib/strdup.h [C++]: Wrap definitions in extern "C".
85647         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
85649 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85651         * modules/savewd (Depends-on): Fix dependency on fcntl.
85653 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
85655         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
85656         conforms to C99, rather than relying on the user's environment
85657         setting of STDINT_H.
85659 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
85660         and Eric Blake  <ebb9@byu.net>
85662         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
85663         This is more consistent with the other defines here.
85664         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
85665         Port to z/OS.  Problem reported by Paul Gilmartin.
85666         Change local vars to use gl_ prefix rather than ac_.
85667         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
85668         with other defines.
85669         * modules/double-slash-root: New module.
85670         * modules/dirname (Files): Remove m4/double-slash-root.m4.
85671         (Depends-on): Add double-slash-root.
85672         * MODULES.html.sh (File system functions): Mention new module.
85674 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
85676         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
85677         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
85678         This is for the benefit of gzip, which doesn't do i18n.
85680 2006-12-12  Jim Meyering  <jim@meyering.net>
85682         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
85683         Reported by Andreas Schwab <schwab@suse.de>.
85685 2006-12-12  Bruno Haible  <bruno@clisp.org>
85687         Merge these changes.
85688         2006-09-05  Bruno Haible  <bruno@clisp.org>
85689         * lib/iconvme.c (iconv_string): No need to save and restore errno when
85690         iconv_alloc succeeded.
85691         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
85692         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
85693         test for " && dest " at the end - dest is always != NULL there. Call
85694         iconv with 4xNULL arguments initially, to reset the state. Call iconv
85695         with 2xNULL arguments, also to flush the state storage. Handle the
85696         IRIX iconv behaviour. Realloc the final result, to throw away unused
85697         memory.
85699 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
85701         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
85702         and fchmodat unconditionally, since glibc 2.4 has them.
85703         Problem reported by Arkadiusz Miskiewicz.
85705 2006-12-10  Bruno Haible  <bruno@clisp.org>
85707         * gnulib-tool (func_import): Show the include files only for those
85708         modules that are copied and specified.
85709         Reported by Karl Berry.
85711 2006-12-08  Jim Meyering  <jim@meyering.net>
85713         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
85714         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
85716         * build-aux/announce-gen: Add two new options, both optional:
85717         --bootstrap-tools=TOOL_LIST
85718               a comma-separated list of tools, e.g.,
85719               autoconf,automake,bison,gnulib
85720         --gnulib-snapshot-date=DATE
85721               if gnulib is in the bootstrap tool list,
85722               then report this as the snapshot date.
85723               If not specified, use the current date/time.
85724               If you specify a date here, be sure it's UTC.
85726 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85728         * tests/test-argp-2.sh: Fix test to match actual output.
85729         (func_compare): Fix sed script to be portable.
85731 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
85733         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
85734         workaround for this case.  It is not autoconfigured now; offhand
85735         it's hard to see how to autoconfigure it.
85737 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
85739         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
85740         a directory that is about to be chowned.  Such a directory's
85741         initial file permissions should permit the owner only and this
85742         should not be changed until after the chown, since the group and
85743         other bits would be incorrect if they granted permission before
85744         the chown.
85746         Fix porting problem for iswctype reported by Georg Schwarz in:
85747         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
85748         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
85749         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
85750         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
85751         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85753 2006-12-03  Jim Meyering  <jim@meyering.net>
85755         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
85756         p->fts_statp may not yet be defined.
85757         (fts_read): Instead, set it in the caller, once p->fts_statp is
85758         sure to be defined, and corresponds to a top-level directory.
85759         This bug made du -x fail.  Here's the coreutils test case:
85760         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
85761         Reported by Mike Frysinger.
85763 2006-12-01  Jim Meyering  <jim@meyering.net>
85765         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
85766         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
85767         Reported by Simon Josefsson.
85769 2006-11-30  Jim Meyering  <jim@meyering.net>
85771         * m4/warning.m4: Use the all-permissive copyright notice
85772         recommended by RMS (rather than LGPL).
85773         * m4/vararrays.m4: Likewise.
85774         * m4/flexmember.m4: Likewise.
85776 2006-11-29  Bruno Haible  <bruno@clisp.org>
85778         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
85779         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
85780         using +=.
85781         Reported by Simon Josefsson <simon@josefsson.org>.
85783 2006-11-28  James Youngman <jay@gnu.org>
85785         * README: Advise users that they might find the bug-gnulib@gnu.org
85786         and autotools-announce@gnu.org mailing lists useful.
85788 2006-11-28  Bruno Haible  <bruno@clisp.org>
85790         * m4/ptrdiff_max.m4: Remove file.
85792 2006-11-21  Bruno Haible  <bruno@clisp.org>
85794         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
85795         _AC_COMPUTE_INT.
85796         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85797         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
85798         _AC_COMPUTE_INT.
85799         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85800         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
85801         _AC_COMPUTE_INT.
85802         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85804 2006-11-28  Jim Meyering  <jim@meyering.net>
85806         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
85807         warning from "gcc -Wshadow" about shadowing the builtin.
85809 2006-11-27  Bruno Haible  <bruno@clisp.org>
85811         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
85812         _AC_COMPUTE_INT.
85813         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85815 2006-11-27  Bruno Haible  <bruno@clisp.org>
85816             Paul Eggert  <eggert@cs.ucla.edu>
85818         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
85820 2006-11-26  Bruno Haible  <bruno@clisp.org>
85822         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
85823         noinst_LTLIBRARIES.
85825 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85826             Bruno Haible  <bruno@clisp.org>
85828         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
85829         if compiling with "gcc -ansi".
85831 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85833         Fix some incompatibilities with gcc -ansi -pedantic.
85834         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
85835         if compiling pedantically with GCC, unless it's C99 or later.
85836         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
85837         it mishandles gcc -ansi -pedantic as well.
85838         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
85839         if gcc -pedantic.
85840         * lib/regexec.c (check_node_accept_bytes): Don't use auto
85841         initializers for struct if -pedantic, unless it's C99 or later.
85843 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
85845         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
85846         Don't close an fd more than once. Identical atimes indicate
85847         success, not failure.
85849 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
85851         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
85853 2006-11-23  Jim Meyering  <jim@meyering.net>
85855         * build-aux/announce-gen: New file.  From coreutils.
85857 2006-11-22  Jim Meyering  <jim@meyering.net>
85859         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
85860         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
85861         (fts_read): Use a temporary to narrow the overused st_size member
85862         before using it in a switch statement.  Reported by Matthew Woehlke.
85864         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
85865         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
85867 2006-11-20  Bruno Haible  <bruno@clisp.org>
85869         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
85870         changequote instead of pairs of brackets.
85871         Reported by Andreas Schwab <schwab@suse.de>.
85873 2006-11-21  Jim Meyering  <jim@meyering.net>
85875         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
85876         so as to remain compatible with older compilers.
85877         Patch from Michael Deutschmann.
85879 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85881         * MODULES.html.sh (File system functions): Add openat.
85883         * lib/openat.h (rpl_fstatat): New macro, if
85884         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
85885         (fstatat): Define to rpl_fstatat under the same conditions,
85886         unless COMPILING_FSTATAT.
85887         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
85888         seems to have the bug.
85889         * lib/fstatat.c: New file.
85890         * modules/openat (Files): Add it.
85892 2006-11-20  Bruno Haible  <bruno@clisp.org>
85894         * Makefile: New file.
85896 2006-11-20  Jim Meyering  <jim@meyering.net>
85898         The beginnings of syntax-related checks for gnulib.
85899         * lib/Makefile: New file.
85900         * lib/t-idcache: New script.  Ensure that the two halves of
85901         idcache.c stay in sync.
85903         * lib/idcache.c: Adjust comments in user- and group- portions to
85904         be more accurate, and to be consistent with one another.
85906 2006-11-20  Jim Meyering  <jim@meyering.net>
85908         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
85909         continue using the flexible array member (thus, this module performs
85910         half as many malloc calls), with the addition that...
85911         (getgroup, getuser): Consistently record a non-match via an empty
85912         "name" string, and map an empty string match to a NULL return value.
85913         * modules/idcache (Depends-on): Re-add flexmember.
85915         * lib/idcache.c (getuser): Remove all uses of the register keyword.
85916         (getuidbyname, getgroup, getgidbyname): Likewise.
85918         Use cleaner syntax: NULL rather than 0.
85919         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
85921 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85923         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
85924         It mishandled the case where the group was missing.
85925         Problem reported by Greg Schafer.
85926         * modules/idcache: Likewise.
85928 2006-11-18  Jim Meyering  <jim@meyering.net>
85930         * check-module (%exempt_header): Add exception for some
85931         conditionally-included headers.
85933         * modules/i-ring (Depends-on): Add verify.
85934         (License): Change to LGPL.
85936 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85938         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
85939         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
85940         and inttostr.h.  Use snprintf rather than uinttostr, so that
85941         LGPLed code doesn't depend on GPLed.
85943 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85945         * modules/inline (License): Change from GPL to LGPL.
85947 2006-11-17  Jim Meyering  <jim@meyering.net>
85949         * modules/d-type (License): Switch to LGPL.
85951 2006-11-15  Bruno Haible  <bruno@clisp.org>
85953         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
85955 2006-11-15  Eric Blake  <ebb9@byu.net>
85957         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
85958         the module dependency.
85960 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85961             Bruno Haible  <bruno@clisp.org>
85963         * gnulib-tool (func_create_testdir): Add license consistency check.
85965 2006-11-15  Eric Blake  <ebb9@byu.net>
85967         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
85968         random "(cached)" in configure output.
85970 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85972         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
85973         test for conforming inttypes.h is both announced and cached.
85975         * MODULES.html.sh (seen_modules, seen_files): New variables.
85976         (func_module): Rewrite to use a few less gnulib-tool and sed
85977         invocations.  Avoid a couple of quadratic algorithms for ...
85978         (missed_modules, missed_files): ... these, with ...
85979         (func_append, func_tmpdir): ... these new functions, from
85980         gnulib-tool.  Analogously, install traps for cleanup.
85982         * tests/test-gc.c (main): Remove unused variables.
85983         * tests/test-read-file.c: Include stdlib.h, for 'free'.
85985 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
85987         * modules/inttostr (License): Change to LGPL.
85989 2006-11-14  Eric Blake  <ebb9@byu.net>
85991         * modules/tempname (License): Change to LGPL.
85993 2006-11-14  Eric Blake  <ebb9@byu.net>
85995         * doc/functions.texi (Function Portability): *printf functions on
85996         Cygwin now understand all POSIX size specifiers.
85998 2006-11-14  Bruno Haible  <bruno@clisp.org>
86000         * modules/c-ctype (License): Change to LGPL.
86002 2006-11-12  Bruno Haible  <bruno@clisp.org>
86004         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
86005         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
86006         for GNOME libraries, for which the include files are installed in
86007         subdirectories of $prefix/include.
86009 2006-11-12  Bruno Haible  <bruno@clisp.org>
86011         * m4/lib-link.m4: Require at least autoconf-2.54.
86012         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
86013         name to underscores for the --with option.
86015 2006-11-13  Bruno Haible  <bruno@clisp.org>
86017         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
86018         the tests directory.
86019         Reported by Ralf Wildenhues.
86021 2006-11-13  Bruno Haible  <bruno@clisp.org>
86023         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
86024         (func_emit_initmacro_end): Undo the override here.
86025         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
86026         Works around the famous automake error in coreutils.
86028 2006-11-13  Eric Blake  <ebb9@byu.net>
86030         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
86031         element, not its node.
86033 2006-11-12  Bruno Haible  <bruno@clisp.org>
86035         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
86036         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
86038 2006-11-12  Bruno Haible  <bruno@clisp.org>
86040         * gnulib-tool: New option --local-symlink.
86041         (func_usage): Document it.
86042         (lsymbolic): New variable.
86043         (func_import, func_create_testdir): If --symlink was not specified,
86044         test whether --local-symlink was specified and the file comes from
86045         the local_gnulib_dir.
86047 2006-11-12  Bruno Haible  <bruno@clisp.org>
86049         * gnulib-tool (func_ln): New function.
86050         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
86052 2006-11-12  Bruno Haible  <bruno@clisp.org>
86054         Finish support for source files in subdirectories.
86055         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
86056         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
86057         AUTOMAKE_OPTIONS.
86058         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
86060 2006-11-12  Bruno Haible  <bruno@clisp.org>
86062         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86063         EXTRA_lib_SOURCES augmentation.
86064         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
86066 2006-11-12  Jim Meyering  <jim@meyering.net>
86068         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
86069         file descriptors.  This also averts a failure on systems with
86070         native openat support when a traversed directory lacks "x" access.
86071         * lib/fts_.h: Include "i-ring.h"
86072         (struct FTS) [fts_fd_ring]: New member.
86073         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
86074         (FCHDIR): Add parentheses.
86075         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
86076         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
86077         When descending, rather than simply closing the previous
86078         fts_cwd_fd value, push that file descriptor onto the ring.
86079         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
86080         (fts_open): Initialize the new fd_ring member.
86081         (fts_close): Clear the ring.
86082         (fts_safe_changedir): When possible, use our new fd_ring to skip
86083         the diropen and fstat and dev/ino comparison that would normally
86084         accompany a virtual `chdir ("..")'.
86086         * modules/fts (Depends-on): Add i-ring.
86087         * modules/i-ring: New module.
86088         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
86089         * m4/i-ring.m4: New file.
86091 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86093         * gnulib-tool (func_create_testdir): Fix replacement of
86094         `build-aux' in configure.ac.  Run autotools in gltests
86095         subdirectory.
86096         (func_create_testdir, func_create_megatestdir, test): There is
86097         no need for '--force' in most autotool invocations in a new
86098         tree.  Actually fail the whole test if any of the tools, or the
86099         configure or make stages fail.
86101         Sync from Automake.
86102         * build-aux/gnupload: Revert last change.  Add pointer to upload
86103         instructions of the GNU Maintenance Instructions.
86104         Suggestion by Karl Berry.
86106 2006-11-10  Jim Meyering  <jim@meyering.net>
86108         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
86110 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86112         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
86113         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
86114         (bind_textdomain_codeset) [! ENABLE_NLS]:
86115         Evaluate all the arguments.  That way, callers get compatible behavior
86116         if the arguments have side effects.  Also, it avoids some GCC
86117         diagnostics in some cases; Joel E. Denny reported problems when Bison
86118         was configured with --enable-gcc-warnigs.
86120 2006-11-10  Jim Meyering  <jim@meyering.net>
86122         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
86123         relevant options in CFLAGS (like -O, -fno-inline) are taken into
86124         account.
86126 2006-11-10  Jim Meyering  <jim@meyering.net>
86128         * modules/inline: New file/module.
86129         * modules/xalloc (Files): Remove m4/inline.m4.
86130         (Depends-on): Add inline, instead.
86131         * modules/oset: Likewise.
86132         * modules/list: Likewise.
86134 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86136         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
86137         Problem reported by Matthew Woehlke.
86139 2006-11-09  Bruno Haible  <bruno@clisp.org>
86141         * lib/tempname.c (gen_tempname): Remove variant that invokes
86142         __gen_tempname.
86143         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
86144         __gen_tempname.
86146 2006-11-08  Bruno Haible  <bruno@clisp.org>
86148         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
86149         to 'yes' instead of 'cross-compiling'.
86151 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
86153         * lib/quotearg.h (quotearg_free): New decl.
86154         * lib/quotearg.c (quotearg_free): New function.
86155         (slot0, nslots, slotvec0, slotvec):
86156         Now file-scope so that quotearg_free can get at them.
86158 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86160         Sync from Automake.
86161         * build-aux/gnupload: Add missing 'gnu' to example URL.
86162         Report by Karl Berry.
86164 2006-11-08  Bruno Haible  <bruno@clisp.org>
86166         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
86167         Suggested by Paul Eggert.
86169 2006-11-08  Jim Meyering  <jim@meyering.net>
86171         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
86172         It's already included if !_LIBC.
86173         (fts_safe_changedir): Add a comment.
86175 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
86177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
86178         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
86179         Matthew Woehlke.
86181         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
86182         definitions up, to avoid colliding with change below.
86183         (static_inline) [HAVE_INLINE]: New macro.
86184         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
86185         Provide extern decls when !HAVE_INLINE.  Do not define unless
86186         static_inline is defined, either by us or by xmalloc.c.  Use
86187         static_inline rather than static inline.
86188         (XCALLOC): Optimize sizeof(T) = 1 case.
86189         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
86191 2006-11-07  Bruno Haible  <bruno@clisp.org>
86193         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
86194         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
86195         AC_C_INLINE.
86196         * modules/xalloc (Files): Add m4/inline.m4.
86198 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86200         * README: Fix typo.
86201         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
86202         (Miscellanous Notes): ...from this.
86204 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
86206         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
86207         Mention that offsetof should be used instead of sizeof.
86208         From Bruno Haible.
86210 2006-11-07  Bruno Haible  <bruno@clisp.org>
86212         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
86214 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
86216         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
86217         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
86218         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
86219         (gl_tree_add_before, gl_tree_add_after):
86220         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
86221         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
86222         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
86223         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
86224         (gl_linked_add_after, gl_linked_add_at): Likewise.
86225         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
86226         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
86227         (gl_tree_add_before, gl_tree_add_after): Likewise.
86228         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
86229         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
86230         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
86232 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86234         * lib/gl_oset.h: Use C comment style, not C++ comment style.
86236 2006-11-06  Bruno Haible  <bruno@clisp.org>
86238         * m4/inline.m4: New file.
86239         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
86240         * modules/list (Files): Add m4/inline.m4.
86241         * modules/oset (Files): Likewise.
86243 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
86245         * lib/idcache.c: Include <stddef.h>, for offsetof.
86246         (struct userid.name): Change from char * to a flexible array member.
86247         All uses changed.
86248         * modules/idcache (Depends-on): Add flexmember.
86250         * MODULES.html.sh (Core language properties): New module flexmember.
86251         * modules/flexmember, m4/flexmember.m4: New files.
86253         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
86254         inline functions that are identical with the old xnmalloc_inline,
86255         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
86256         that we can avoid some unnecessary integer multiplications and
86257         divisions in the common case where the element size is known at
86258         compile time.
86259         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
86260         needed.
86261         (xnboundedmalloc): Remove.
86262         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
86263         arguments, for consistency with rest of this header.
86264         (xcharalloc): Rewrite using XNMALLOC.
86265         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
86266         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
86267         versions have been moved to lib/xalloc.h and renamed to be the
86268         non-*_inline versions.
86269         (xmalloc, xrealloc): Implement without reference to the xnmalloc
86270         and xnrealloc functions, since those functions are now inline and
86271         now call us.
86272         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
86273         renaming described above.
86274         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
86275         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
86276         captures the dependency in AC_C_INLINE.
86278         New module canonicalize-lgpl, proposed by Charles Wilson in
86279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
86280         with a few small changes afterwards.
86281         * MODULES.html.sh (File system functions): New module
86282         canonicalize-lgpl.
86283         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
86284         and canonicalize_file_name.
86285         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
86286         * modules/canonicalize-lgpl: New files.
86288 2006-11-05  Bruno Haible  <bruno@clisp.org>
86290         * gnulib-tool (func_import, func_create_testdir): Create directories
86291         also for files in subdirectories of lib/.
86293 2006-11-05  Bruno Haible  <bruno@clisp.org>
86295         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
86296         ANSI C compliant.
86298 2006-11-03  Bruno Haible  <bruno@clisp.org>
86300         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
86301         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
86302         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
86303         (xnboundedmalloc): New inline function.
86304         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
86305         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
86306         xmalloc.
86307         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
86308         xmalloc.
86309         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
86310         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
86311         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
86312         xmalloc.
86313         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
86314         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
86315         xmalloc.
86316         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
86317         gl_tree_add_after): Use XMALLOC instead of xmalloc.
86318         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
86319         xmalloc.
86320         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
86321         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
86322         gl_tree_add_after): Use XMALLOC instead of xmalloc.
86323         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
86324         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
86325         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
86326         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
86328 2006-11-03  Bruno Haible  <bruno@clisp.org>
86330         * lib/c-ctype.h [C++]: Define functions without name mangling.
86331         * lib/fwriteerror.h [C++]: Likewise.
86332         * lib/gcd.h [C++]: Likewise.
86333         * lib/linebreak.h [C++]: Likewise.
86335 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86337         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
86338         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
86339         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
86340         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
86341         Check for functions and headers just once.
86342         Check for declaration of canonicalize_file_name.
86343         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
86345 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
86347         * gnulib-tool (func_import): Fix typo in actioncmd.
86349 2006-11-02  Bruno Haible  <bruno@clisp.org>
86351         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
86352         newline sequence in the Makefile.am snippet as a space, like "make"
86353         does.
86354         Reported by Roger Persson <perrog@gmail.com>.
86356 2006-11-01  Bruno Haible  <bruno@clisp.org>
86358         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
86359         already declared in <string.h>.
86360         * lib/strcase.h (strncasecmp): Don't declare it if yes.
86362 2006-11-01  Bruno Haible  <bruno@clisp.org>
86364         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
86365         * lib/strcase.h: Include <string.h>.
86366         (strcasecmp): Define to rpl_strcasecmp here.
86368 2006-11-01  Bruno Haible  <bruno@clisp.org>
86370         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
86372 2006-11-01  Eric Blake  <ebb9@byu.net>
86374         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
86376         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
86378 2006-10-29  Bruno Haible  <bruno@clisp.org>
86380         Make it compile in C++ mode.
86381         * lib/full-write.c (full_rw): Add a cast.
86383 2006-11-01  Bruno Haible  <bruno@clisp.org>
86385         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
86386         be POSIX compliant.
86387         Reported by Roger Persson <perrog@gmail.com>.
86389 2006-11-01  Eric Blake  <ebb9@byu.net>
86391         * lib/getopt_.h: Fix comments.
86393 2006-10-31  Eric Blake  <ebb9@byu.net>
86395         * modules/tmpdir (Depends-on): Add sys_stat.
86396         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
86397         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
86398         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
86399         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
86400         tempname.
86402 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
86404         Avoid some C++ diagnostics reported by Bruno Haible.
86405         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
86406         xmalloc.
86407         (quotearg_alloc): Use xcharalloc rather than xmalloc.
86408         (struct slotvec): Move to top level.
86409         (quotearg_n_options): Rewrite to avoid xmalloc.
86410         * lib/xalloc.h (xcharalloc): New function.
86411         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
86412         [defined __cplusplus]: Add function template that provides result
86413         type propagation.  This part of the change is from Bruno Haible.
86415 2006-10-29  Bruno Haible  <bruno@clisp.org>
86417         Make it compile in C++ mode.
86418         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
86419         * lib/strnlen1.c (strnlen1): Cast memchr result.
86420         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
86421         * lib/clean-temp.c (string_equals, string_hash): Add casts.
86422         (create_temp_dir): Rename local variable 'template'.
86423         (compile_csharp_using_sscli): Add cast.
86424         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
86425         * lib/findprog.c (find_in_path): Likewise.
86426         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
86427         * lib/wait-process.c (register_slave_subprocess): Likewise.
86429 2006-10-22  Bruno Haible  <bruno@clisp.org>
86431         * modules/tsearch: New file.
86432         * lib/tsearch.h: New file.
86433         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
86434         * m4/tsearch.m4: New file.
86435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
86437 2006-10-29  Eric Blake  <ebb9@byu.net>
86439         * lib/arcfour.c: Assume config.h.
86440         * lib/arctwo.c: Likewise.
86441         * lib/base64.c: Likewise.
86442         * lib/check-version.c: Likewise.
86443         * lib/crc.c: Likewise.
86444         * lib/des.c: Likewise.
86445         * lib/gc-gnulib.c: Likewise.
86446         * lib/gc-libgcrypt.c: Likewise.
86447         * lib/gc-pbkdf2-sha1.c: Likewise.
86448         * lib/getaddrinfo.c: Likewise.
86449         * lib/getdelim.c: Likewise.
86450         * lib/getline.c: Likewise.
86451         * lib/hmac-md5.c: Likewise.
86452         * lib/hmac-sha1.c: Likewise.
86453         * lib/iconvme.c: Likewise.
86454         * lib/md2.c: Likewise.
86455         * lib/md4.c: Likewise.
86456         * lib/memxor.c: Likewise.
86457         * lib/read-file.c: Likewise.
86458         * lib/readline.c: Likewise.
86459         * lib/rijndael-alg-fst.c: Likewise.
86460         * lib/rijndael-api-fst.c: Likewise.
86461         * lib/xgetdomainname.c: Likewise.
86463 2006-10-28  Eric Blake  <ebb9@byu.net>
86465         * lib/xstrndup.c: Assume config.h.
86467 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
86469         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
86470         stat-macros.h is now for our own macros, whereas stat_h is for
86471         macros in the <sys/stat.h> name space.
86472         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
86473         (STAT_MACROS_H): Remove.
86474         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
86475         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
86476         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
86477         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
86478         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
86479         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
86480         Move these macros to ...
86481         * lib/stat_.h: here.  Don't include stat-macros.h.
86482         * lib/canonicalize.c: Don't include stat-macros.h.
86483         * lib/chown.c: Likewise.
86484         * lib/euidaccess.c: Likewise.
86485         * lib/file-type.c: Likewise.
86486         * lib/filemode.c: Likewise.
86487         * lib/glob.c: Likewise.
86488         * lib/isapipe.c: Likewise.
86489         * lib/lchown.c: Likewise.
86490         * lib/lstat.c: Likewise.
86491         * lib/mkdir-p.c: Likewise.
86492         * lib/rmdir.c: Likewise.
86493         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
86494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
86495         unless mkdir isn't declared, to speed up 'configure'.
86496         Always create sys/stat.h, since it's unlikely any real sys/stat.h
86497         would define all the S_* symbols.
86498         * modules/canonicalize (Depends-on):
86499         Depend on sys_stat, not stat-macros.
86500         * modules/chown: Likewise.
86501         * modules/euidaccess: Likewise.
86502         * modules/filemode: Likewise.
86503         * modules/file-type: Likewise.
86504         * modules/glob: Likewise.
86505         * modules/isapipe: Likewise.
86506         * modules/lchown: Likewise.
86507         * modules/lstat: Likewise.
86508         * modules/mkancesdirs: Likewise.
86509         * modules/rmdir: Likewise.
86510         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
86511         * modules/modechange: Likewise.
86512         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
86513         (configure.ac): Remove gl_STAT_MACROS.
86514         * modules/sys_stat (Depends-on): Remove stat-macros.
86516 2006-10-27  Bruno Haible  <bruno@clisp.org>
86518         * m4/signed.m4: Remove file.
86519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
86520         invocation.
86521         * modules/vasnprintf (Files): Remove m4/signed.m4.
86523 2006-10-27  Bruno Haible  <bruno@clisp.org>
86525         Update to GNU gettext 0.16.
86526         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
86527         m4/inttypes-h.m4, m4/signed.m4.
86528         * m4/gettext.m4: Update to GNU gettext 0.16.
86529         * m4/intl.m4: New file, from GNU gettext.
86530         * m4/intldir.m4: New file, from GNU gettext.
86531         * config/srclist.txt: Update
86533 2006-10-27  Eric Blake  <ebb9@byu.net>
86535         * MODULES.html.sh: Document tempname.
86536         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
86537         dependencies.
86538         (Files): Move lib/tempname.c...
86539         * modules/tempname: ...to this new module.
86540         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
86541         (gl_PREREQ_TEMPNAME): Move...
86542         * m4/tempname.m4: ...to this new file.
86543         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
86544         * modules/sys_stat (Depends-on): Add stat-macros.
86545         * lib/stat_.h (includes): Pick up stat macros.
86546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
86547         if stat macros are broken.
86548         * lib/tempname.c (includes): No need to include "stat-macros.h".
86549         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
86550         (direxists, __path_search) [!_LIBC]: Don't compile these in
86551         gnulib; the tmpdir module covers that.
86552         * lib/tempname.h: New file.
86554 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
86556         * COPYING: Explain how gnulib-tool converts licence headers.
86557         Almost all wording by Eric Blake.
86559 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
86561         * lib/mbchar.h (is_basic_table): Make read-only.
86562         * lib/mbchar.c (is_basic_table): Likewise.
86563         Reported by John Darrington.
86565 2006-10-25  Bruno Haible  <bruno@clisp.org>
86567         * lib/progname.h (set_program_name): Undefine before defining.
86569 2006-10-25  Bruno Haible  <bruno@clisp.org>
86571         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
86572         false for non-gcc C++ compilers.
86573         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
86575 2006-10-24  Bruno Haible  <bruno@clisp.org>
86577         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
86578         iconv implementations like Irix iconv.
86580 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86582         * modules/vararrays: New file.
86583         * m4/vararrays.m4: New file, taken from diffutils.
86584         * MODULES.html.sh: New module vararrays.
86586 2006-10-24  Karl Berry  <karl@gnu.org>
86588         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
86589         Don't call GNU Unix.
86591 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86593         * users.txt: Add Libtool.
86595         Sync from Libtool:
86597         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86599         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
86600         to gnulib's policy of including config.h unconditionally.
86602 2006-10-24  Bruno Haible  <bruno@clisp.org>
86604         * modules/wcwidth (Files): Add m4/wint_t.m4.
86605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
86606         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
86608 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86610         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
86611         to pacify GCC with some -W flags enabled.  Problem reported by
86612         Bruno Haible.
86614 2006-10-24  Jim Meyering  <jim@meyering.net>
86616         * MODULES.html.sh: Remove uinttostr.  It's not a module.
86617         Reported by Karl Berry.
86619 2006-10-23  Bruno Haible  <bruno@clisp.org>
86621         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
86623 2006-10-24  Bruno Haible  <bruno@clisp.org>
86625         * lib/gl_list.h: Use C comment style, not C++ comment style.
86627 2006-10-23  Eric Blake  <ebb9@byu.net>
86629         * lib/getaddrinfo.c (includes): Add missing include.
86631 2006-10-23  Bruno Haible  <bruno@clisp.org>
86632             Paul Eggert  <eggert@cs.ucla.edu>
86634         Ability to rename obstack_free.
86635         * lib/obstack.h (__obstack_free): New macro. Declare instead of
86636         obstack_free.
86637         (obstack_free): Invoke the __obstack_free macro.
86638         * lib/obstack.c (obstack_free): Use __obstack_free macro.
86640 2006-10-23  Bruno Haible  <bruno@clisp.org>
86641             Paul Eggert  <eggert@cs.ucla.edu>
86643         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
86644         __argc, __argv from the declaration. (They are defined as macros on
86645         mingw.)
86647 2006-10-22  Bruno Haible  <bruno@clisp.org>
86649         * doc/gnulib-intro.texi: New file.
86650         * doc/gnulib.texi: Include it.
86652 2006-10-21  Bruno Haible  <bruno@clisp.org>
86654         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
86655         "Introduction", "Miscellanous Notes", "Particular Modules".
86657 2006-10-21  Bruno Haible  <bruno@clisp.org>
86659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
86660         Change mostlyclean-local rule to avoid sh syntax error from bash
86661         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
86663 2006-10-23  Jim Meyering  <jim@meyering.net>
86665         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
86666         in place of snprintf.
86668         * modules/inttostr (Files): Add lib/uinttostr.c.
86669         * lib/uinttostr.c (inttostr): New file/function.
86670         * lib/inttostr.h (uinttostr): Declare.
86671         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
86672         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
86673         Add uinttostr.
86674         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
86676 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
86678         * lib/canonicalize.c (ELOOP): Define if not already defined.
86679         Problem reported by Bruno Haible in
86680         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
86682 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
86684         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
86685         Problem reported by Perry Smith and Ville Laurikari.
86687         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
86688         uses.
86690 2006-10-19  Bruno Haible  <bruno@clisp.org>
86692         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
86693         for mingw.
86695 2006-10-19  Bruno Haible  <bruno@clisp.org>
86697         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
86698         Needed for mingw.
86700 2006-10-19  Bruno Haible  <bruno@clisp.org>
86702         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
86704 2006-10-19  Bruno Haible  <bruno@clisp.org>
86706         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
86707         it.
86709 2006-10-19  Bruno Haible  <bruno@clisp.org>
86711         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
86712         invocation.
86714 2006-10-19  Bruno Haible  <bruno@clisp.org>
86716         * gnulib-tool (func_create_testdir): Don't include ftruncate and
86717         mountlist by default.
86719 2006-10-16  Bruno Haible  <bruno@clisp.org>
86721         * lib/c-strstr.c: Include c-strstr.h.
86723 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
86725         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
86726         in a slash.
86728 2006-10-18  Bruno Haible  <bruno@clisp.org>
86730         * lib/lock.h [C++]: Wrap definitions in extern "C".
86732 2006-10-18  Bruno Haible  <bruno@clisp.org>
86734         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
86735         gl_LIBOBJS list.
86737 2006-10-18  Bruno Haible  <bruno@clisp.org>
86739         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
86741 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
86743         * lib/xstrtol.h: Include gettext.h.
86744         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
86745         Problem reported by Eric Blake.
86746         * modules/xstrtol (Depends-on): Add gettext-h.
86748 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
86750         * lib/strftime.c (advance): New macro.
86751         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
86752         incomplete type, so you can't add 0 to it.  Problem and patch
86753         reported by Eelco Dolstra for dietlibc.
86755 2006-10-18  Jim Meyering  <jim@meyering.net>
86757         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
86758         type for a local, and rename it: s/up/user_proc/.
86760 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
86762         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
86763         READ_UTMP_USER_PROCESS.
86764         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
86766 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86768         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
86769         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
86771 2006-10-17  Eric Blake  <ebb9@byu.net>
86773         * lib/sigprocmask.c (sigprocmask): Fix typo.
86775         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
86777         * modules/clean-temp (Makefile.am): Don't add to make output...
86778         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
86779         config.h.
86781 2006-10-17  Bruno Haible  <bruno@clisp.org>
86783         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
86784         differently if DEFAULT_TEXT_DOMAIN is set.
86786 2006-10-16  Bruno Haible  <bruno@clisp.org>
86788         * lib/clean-temp.c: Include fwriteerror.h.
86790 2006-10-16  Bruno Haible  <bruno@clisp.org>
86792         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
86794 2006-10-16  Bruno Haible  <bruno@clisp.org>
86796         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
86797         * lib/sigprocmask.h: Include <sys/types.h>.
86798         (sigset_t): Use the system's definition if present.
86800 2006-10-17  Eric Blake  <ebb9@byu.net>
86802         * lib/xvasprintf.c (includes): Assume config.h.
86803         * lib/xasprintf.c (includes): Likewise.
86805 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86807         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
86808         at least as wide as intmax_t.
86810 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
86812         (Imported from Automake.)
86813         * build-aux/gnupload: Update to version 1.1 of directive file.
86815 2006-10-16  Eric Blake  <ebb9@byu.net>
86817         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
86818         match Automake 1.10a.
86820 2006-10-14  Bruno Haible  <bruno@clisp.org>
86822         * modules/sigprocmask: New file.
86823         * lib/sigprocmask.h: New file.
86824         * lib/sigprocmask.c: New file.
86825         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
86826         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
86827         request sigprocmask.o.
86828         (gl_PREREQ_SIGPROCMASK): New macro.
86829         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
86830         (Depends-on): Add sigprocmask.
86831         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
86832         gt_SIGNALBLOCKING. Test for 'raise' only once.
86833         * lib/fatal-signal.c: Include sigprocmask.h.
86834         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
86835         unblock_fatal_signals): Define always.
86836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86837         sigprocmask.
86839 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
86841         Sync from Automake.
86842         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
86843         which incorrectly sets the mode of an existing destination
86844         directory.  In some cases the unpatched install-sh could do the
86845         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
86846         system.  We hope this is rare in practice, but it's clearly worth
86847         fixing.  Problem reported by Alex Unleashed in
86848         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
86849         Also, don't bother to check for -m bugs unless we're using -m;
86850         suggested by Stepan Kasal.
86852 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86854         Sync from Automake.
86855         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
86856         `-c' flag, so they appear at the same position as in %FASTDEP%
86857         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
86858         which ignores unknown options only after the first non-option.
86859         Bug report against M4 by Nelson H. F. Beebe.
86861 2006-10-13  Jim Meyering  <jim@meyering.net>
86863         Fix a bug in yesterday's change.
86864         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
86865         p->fts_statp->st_dev would be used uninitialized.
86866         Ensures that we always call fts_stat on the very first entry.
86867         Miklos Szeredi reported that find -xdev stopped working.
86869 2006-10-12  Bruno Haible  <bruno@clisp.org>
86871         * gnulib-tool (func_get_automake_snippet): Append an automatically
86872         computed EXTRA_DIST augmentation.
86873         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
86874         * modules/alloca-opt (Makefile.am): Likewise.
86875         * modules/allocsa (Makefile.am): Likewise.
86876         * modules/arcfour (Makefile.am): Likewise.
86877         * modules/arctwo (Makefile.am): Likewise.
86878         * modules/argmatch (Makefile.am): Likewise.
86879         * modules/argz (Makefile.am): Likewise.
86880         * modules/atexit (Makefile.am): Likewise.
86881         * modules/backupfile (Makefile.am): Likewise.
86882         * modules/byteswap (Makefile.am): Likewise.
86883         * modules/c-strtod (Makefile.am): Likewise.
86884         * modules/c-strtold (Makefile.am): Likewise.
86885         * modules/calloc (Makefile.am): Likewise.
86886         * modules/canon-host (Makefile.am): Likewise.
86887         * modules/canonicalize (Makefile.am): Likewise.
86888         * modules/chdir-long (Makefile.am): Likewise.
86889         * modules/chdir-safer (Makefile.am): Likewise.
86890         * modules/check-version (Makefile.am): Likewise.
86891         * modules/chown (Makefile.am): Likewise.
86892         * modules/cloexec (Makefile.am): Likewise.
86893         * modules/close-stream (Makefile.am): Likewise.
86894         * modules/closeout (Makefile.am): Likewise.
86895         * modules/crc (Makefile.am): Likewise.
86896         * modules/csharpexec (Makefile.am): Likewise.
86897         * modules/cycle-check (Makefile.am): Likewise.
86898         * modules/des (Makefile.am): Likewise.
86899         * modules/dev-ino (Makefile.am): Likewise.
86900         * modules/dirfd (Makefile.am): Likewise.
86901         * modules/dirname (Makefile.am): Likewise.
86902         * modules/dup2 (Makefile.am): Likewise.
86903         * modules/eealloc (Makefile.am): Likewise.
86904         * modules/error (Makefile.am): Likewise.
86905         * modules/euidaccess (Makefile.am): Likewise.
86906         * modules/exclude (Makefile.am): Likewise.
86907         * modules/exitfail (Makefile.am): Likewise.
86908         * modules/fcntl-safer (Makefile.am): Likewise.
86909         * modules/fcntl (Makefile.am): Likewise.
86910         * modules/file-type (Makefile.am): Likewise.
86911         * modules/fileblocks (Makefile.am): Likewise.
86912         * modules/filemode (Makefile.am): Likewise.
86913         * modules/filenamecat (Makefile.am): Likewise.
86914         * modules/fnmatch (Makefile.am): Likewise.
86915         * modules/fopen-safer (Makefile.am): Likewise.
86916         * modules/fpending (Makefile.am): Likewise.
86917         * modules/fprintftime (Makefile.am): Likewise.
86918         * modules/free (Makefile.am): Likewise.
86919         * modules/fsusage (Makefile.am): Likewise.
86920         * modules/ftruncate (Makefile.am): Likewise.
86921         * modules/fts (Makefile.am): Likewise.
86922         * modules/gc-arcfour (Makefile.am): Likewise.
86923         * modules/gc-des (Makefile.am): Likewise.
86924         * modules/gc-hmac-md5 (Makefile.am): Likewise.
86925         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
86926         * modules/gc-md4 (Makefile.am): Likewise.
86927         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
86928         * modules/gc-sha1 (Makefile.am): Likewise.
86929         * modules/gc (Makefile.am): Likewise.
86930         * modules/getaddrinfo (Makefile.am): Likewise.
86931         * modules/getcwd (Makefile.am): Likewise.
86932         * modules/getdelim (Makefile.am): Likewise.
86933         * modules/getdomainname (Makefile.am): Likewise.
86934         * modules/getgroups (Makefile.am): Likewise.
86935         * modules/gethostname (Makefile.am): Likewise.
86936         * modules/gethrxtime (Makefile.am): Likewise.
86937         * modules/getline (Makefile.am): Likewise.
86938         * modules/getloadavg (Makefile.am): Likewise.
86939         * modules/getlogin_r (Makefile.am): Likewise.
86940         * modules/getndelim2 (Makefile.am): Likewise.
86941         * modules/getopt (Makefile.am): Likewise.
86942         * modules/getpagesize (Makefile.am): Likewise.
86943         * modules/getpass-gnu (Makefile.am): Likewise.
86944         * modules/getpass (Makefile.am): Likewise.
86945         * modules/getsubopt (Makefile.am): Likewise.
86946         * modules/gettime (Makefile.am): Likewise.
86947         * modules/gettimeofday (Makefile.am): Likewise.
86948         * modules/getugroups (Makefile.am): Likewise.
86949         * modules/getusershell (Makefile.am): Likewise.
86950         * modules/glob (Makefile.am): Likewise.
86951         * modules/group-member (Makefile.am): Likewise.
86952         * modules/hard-locale (Makefile.am): Likewise.
86953         * modules/hash (Makefile.am): Likewise.
86954         * modules/hmac-md5 (Makefile.am): Likewise.
86955         * modules/hmac-sha1 (Makefile.am): Likewise.
86956         * modules/human (Makefile.am): Likewise.
86957         * modules/idcache (Makefile.am): Likewise.
86958         * modules/imaxabs (Makefile.am): Likewise.
86959         * modules/imaxdiv (Makefile.am): Likewise.
86960         * modules/inet_ntop (Makefile.am): Likewise.
86961         * modules/inet_pton (Makefile.am): Likewise.
86962         * modules/intprops (Makefile.am): Likewise.
86963         * modules/inttostr (Makefile.am): Likewise.
86964         * modules/inttypes (Makefile.am): Likewise.
86965         * modules/isapipe (Makefile.am): Likewise.
86966         * modules/javaversion (Makefile.am): Likewise.
86967         * modules/lchmod (Makefile.am): Likewise.
86968         * modules/lchown (Makefile.am): Likewise.
86969         * modules/localcharset (Makefile.am): Likewise.
86970         * modules/long-options (Makefile.am): Likewise.
86971         * modules/lstat (Makefile.am): Likewise.
86972         * modules/malloc (Makefile.am): Likewise.
86973         * modules/mathl (Makefile.am): Likewise.
86974         * modules/mbchar (Makefile.am): Likewise.
86975         * modules/md2 (Makefile.am): Likewise.
86976         * modules/md4 (Makefile.am): Likewise.
86977         * modules/md5 (Makefile.am): Likewise.
86978         * modules/memcasecmp (Makefile.am): Likewise.
86979         * modules/memchr (Makefile.am): Likewise.
86980         * modules/memcmp (Makefile.am): Likewise.
86981         * modules/memcoll (Makefile.am): Likewise.
86982         * modules/memcpy (Makefile.am): Likewise.
86983         * modules/memmem (Makefile.am): Likewise.
86984         * modules/memmove (Makefile.am): Likewise.
86985         * modules/mempcpy (Makefile.am): Likewise.
86986         * modules/memrchr (Makefile.am): Likewise.
86987         * modules/memset (Makefile.am): Likewise.
86988         * modules/memxor (Makefile.am): Likewise.
86989         * modules/mkancesdirs (Makefile.am): Likewise.
86990         * modules/mkdir-p (Makefile.am): Likewise.
86991         * modules/mkdir (Makefile.am): Likewise.
86992         * modules/mkdtemp (Makefile.am): Likewise.
86993         * modules/mkstemp (Makefile.am): Likewise.
86994         * modules/mktime (Makefile.am): Likewise.
86995         * modules/modechange (Makefile.am): Likewise.
86996         * modules/mountlist (Makefile.am): Likewise.
86997         * modules/nanosleep (Makefile.am): Likewise.
86998         * modules/obstack (Makefile.am): Likewise.
86999         * modules/openat (Makefile.am): Likewise.
87000         * modules/pagealign_alloc (Makefile.am): Likewise.
87001         * modules/pathmax (Makefile.am): Likewise.
87002         * modules/physmem (Makefile.am): Likewise.
87003         * modules/poll (Makefile.am): Likewise.
87004         * modules/posixtm (Makefile.am): Likewise.
87005         * modules/posixver (Makefile.am): Likewise.
87006         * modules/putenv (Makefile.am): Likewise.
87007         * modules/quote (Makefile.am): Likewise.
87008         * modules/quotearg (Makefile.am): Likewise.
87009         * modules/raise (Makefile.am): Likewise.
87010         * modules/read-file (Makefile.am): Likewise.
87011         * modules/readline (Makefile.am): Likewise.
87012         * modules/readlink (Makefile.am): Likewise.
87013         * modules/readtokens (Makefile.am): Likewise.
87014         * modules/readutmp (Makefile.am): Likewise.
87015         * modules/realloc (Makefile.am): Likewise.
87016         * modules/regex (Makefile.am): Likewise.
87017         * modules/rename-dest-slash (Makefile.am): Likewise.
87018         * modules/rename (Makefile.am): Likewise.
87019         * modules/rijndael (Makefile.am): Likewise.
87020         * modules/rmdir (Makefile.am): Likewise.
87021         * modules/rpmatch (Makefile.am): Likewise.
87022         * modules/safe-read (Makefile.am): Likewise.
87023         * modules/safe-write (Makefile.am): Likewise.
87024         * modules/same-inode (Makefile.am): Likewise.
87025         * modules/same (Makefile.am): Likewise.
87026         * modules/save-cwd (Makefile.am): Likewise.
87027         * modules/savedir (Makefile.am): Likewise.
87028         * modules/setenv (Makefile.am): Likewise.
87029         * modules/settime (Makefile.am): Likewise.
87030         * modules/sha1 (Makefile.am): Likewise.
87031         * modules/sig2str (Makefile.am): Likewise.
87032         * modules/snprintf (Makefile.am): Likewise.
87033         * modules/stat-macros (Makefile.am): Likewise.
87034         * modules/stat-time (Makefile.am): Likewise.
87035         * modules/stdbool (Makefile.am): Likewise.
87036         * modules/stdint (Makefile.am): Likewise.
87037         * modules/stdlib-safer (Makefile.am): Likewise.
87038         * modules/stpcpy (Makefile.am): Likewise.
87039         * modules/stpncpy (Makefile.am): Likewise.
87040         * modules/strcase (Makefile.am): Likewise.
87041         * modules/strcasestr (Makefile.am): Likewise.
87042         * modules/strchrnul (Makefile.am): Likewise.
87043         * modules/strcspn (Makefile.am): Likewise.
87044         * modules/strdup (Makefile.am): Likewise.
87045         * modules/strerror (Makefile.am): Likewise.
87046         * modules/strftime (Makefile.am): Likewise.
87047         * modules/strndup (Makefile.am): Likewise.
87048         * modules/strnlen (Makefile.am): Likewise.
87049         * modules/strpbrk (Makefile.am): Likewise.
87050         * modules/strsep (Makefile.am): Likewise.
87051         * modules/strstr (Makefile.am): Likewise.
87052         * modules/strtod (Makefile.am): Likewise.
87053         * modules/strtoimax (Makefile.am): Likewise.
87054         * modules/strtok_r (Makefile.am): Likewise.
87055         * modules/strtol (Makefile.am): Likewise.
87056         * modules/strtoll (Makefile.am): Likewise.
87057         * modules/strtoul (Makefile.am): Likewise.
87058         * modules/strtoull (Makefile.am): Likewise.
87059         * modules/strtoumax (Makefile.am): Likewise.
87060         * modules/strverscmp (Makefile.am): Likewise.
87061         * modules/sys_socket (Makefile.am): Likewise.
87062         * modules/sys_stat (Makefile.am): Likewise.
87063         * modules/sysexits (Makefile.am): Likewise.
87064         * modules/time_r (Makefile.am): Likewise.
87065         * modules/timegm (Makefile.am): Likewise.
87066         * modules/timespec (Makefile.am): Likewise.
87067         * modules/tmpfile-safer (Makefile.am): Likewise.
87068         * modules/trim (Makefile.am): Likewise.
87069         * modules/unistd-safer (Makefile.am): Likewise.
87070         * modules/unlinkdir (Makefile.am): Likewise.
87071         * modules/unlocked-io (Makefile.am): Likewise.
87072         * modules/userspec (Makefile.am): Likewise.
87073         * modules/utime (Makefile.am): Likewise.
87074         * modules/utimecmp (Makefile.am): Likewise.
87075         * modules/utimens (Makefile.am): Likewise.
87076         * modules/vasnprintf (Makefile.am): Likewise.
87077         * modules/vasprintf (Makefile.am): Likewise.
87078         * modules/vsnprintf (Makefile.am): Likewise.
87079         * modules/xalloc (Makefile.am): Likewise.
87080         * modules/xgetcwd (Makefile.am): Likewise.
87081         * modules/xnanosleep (Makefile.am): Likewise.
87082         * modules/xreadlink (Makefile.am): Likewise.
87083         * modules/xstrtod (Makefile.am): Likewise.
87084         * modules/xstrtol (Makefile.am): Likewise.
87085         * modules/xstrtold (Makefile.am): Likewise.
87086         * modules/yesno (Makefile.am): Likewise.
87087         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
87089 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
87091         * modules/error (Makefile.am): Distribute files through
87092         EXTRA_DIST, not lib_SOURCES.
87094 2006-10-12  Eric Blake  <ebb9@byu.net>
87096         * modules/error (Makefile.am): Distribute files in /lib.
87097         * modules/obstack (Makefile.am): Likewise.
87099 2006-10-12  Bruno Haible  <bruno@clisp.org>
87101         * modules/acl (Makefile.am): Distribute all files in lib/ through
87102         EXTRA_DIST.
87103         * modules/arcfour (Makefile.am): Likewise.
87104         * modules/arctwo (Makefile.am): Likewise.
87105         * modules/argmatch (Makefile.am): Likewise.
87106         * modules/argz (Makefile.am): Likewise.
87107         * modules/atexit (Makefile.am): Likewise.
87108         * modules/backupfile (Makefile.am): Likewise.
87109         * modules/c-strtod (Makefile.am): Likewise.
87110         * modules/c-strtold (Makefile.am): Likewise.
87111         * modules/calloc (Makefile.am): Likewise.
87112         * modules/canon-host (Makefile.am): Likewise.
87113         * modules/canonicalize (Makefile.am): Likewise.
87114         * modules/chdir-long (Makefile.am): Likewise.
87115         * modules/chdir-safer (Makefile.am): Likewise.
87116         * modules/check-version (Makefile.am): Likewise.
87117         * modules/chown (Makefile.am): Likewise.
87118         * modules/cloexec (Makefile.am): Likewise.
87119         * modules/close-stream (Makefile.am): Likewise.
87120         * modules/closeout (Makefile.am): Likewise.
87121         * modules/crc (Makefile.am): Likewise.
87122         * modules/cycle-check (Makefile.am): Likewise.
87123         * modules/des (Makefile.am): Likewise.
87124         * modules/dirfd (Makefile.am): Likewise.
87125         * modules/dirname (Makefile.am): Likewise.
87126         * modules/dup2 (Makefile.am): Likewise.
87127         * modules/euidaccess (Makefile.am): Likewise.
87128         * modules/exclude (Makefile.am): Likewise.
87129         * modules/exitfail (Makefile.am): Likewise.
87130         * modules/fcntl-safer (Makefile.am): Likewise.
87131         * modules/file-type (Makefile.am): Likewise.
87132         * modules/fileblocks (Makefile.am): Likewise.
87133         * modules/filemode (Makefile.am): Likewise.
87134         * modules/filenamecat (Makefile.am): Likewise.
87135         * modules/fnmatch (Makefile.am): Likewise.
87136         * modules/fopen-safer (Makefile.am): Likewise.
87137         * modules/fpending (Makefile.am): Likewise.
87138         * modules/fprintftime (Makefile.am): Likewise.
87139         * modules/free (Makefile.am): Likewise.
87140         * modules/fsusage (Makefile.am): Likewise.
87141         * modules/ftruncate (Makefile.am): Likewise.
87142         * modules/fts (Makefile.am): Likewise.
87143         * modules/gc (Makefile.am): Likewise.
87144         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
87145         * modules/getaddrinfo (Makefile.am): Likewise.
87146         * modules/getcwd (Makefile.am): Likewise.
87147         * modules/getdelim (Makefile.am): Likewise.
87148         * modules/getdomainname (Makefile.am): Likewise.
87149         * modules/getgroups (Makefile.am): Likewise.
87150         * modules/gethostname (Makefile.am): Likewise.
87151         * modules/gethrxtime (Makefile.am): Likewise.
87152         * modules/getline (Makefile.am): Likewise.
87153         * modules/getloadavg (Makefile.am): Likewise.
87154         * modules/getlogin_r (Makefile.am): Likewise.
87155         * modules/getopt (Makefile.am): Likewise.
87156         * modules/getpass (Makefile.am): Likewise.
87157         * modules/getpass-gnu (Makefile.am): Likewise.
87158         * modules/getsubopt (Makefile.am): Likewise.
87159         * modules/gettime (Makefile.am): Likewise.
87160         * modules/gettimeofday (Makefile.am): Likewise.
87161         * modules/getugroups (Makefile.am): Likewise.
87162         * modules/getusershell (Makefile.am): Likewise.
87163         * modules/glob (Makefile.am): Likewise.
87164         * modules/group-member (Makefile.am): Likewise.
87165         * modules/hard-locale (Makefile.am): Likewise.
87166         * modules/hash (Makefile.am): Likewise.
87167         * modules/hmac-md5 (Makefile.am): Likewise.
87168         * modules/hmac-sha1 (Makefile.am): Likewise.
87169         * modules/human (Makefile.am): Likewise.
87170         * modules/idcache (Makefile.am): Likewise.
87171         * modules/imaxabs (Makefile.am): Likewise.
87172         * modules/imaxdiv (Makefile.am): Likewise.
87173         * modules/inet_ntop (Makefile.am): Likewise.
87174         * modules/inet_pton (Makefile.am): Likewise.
87175         * modules/inttostr (Makefile.am): Likewise.
87176         * modules/isapipe (Makefile.am): Likewise.
87177         * modules/lchown (Makefile.am): Likewise.
87178         * modules/long-options (Makefile.am): Likewise.
87179         * modules/lstat (Makefile.am): Likewise.
87180         * modules/malloc (Makefile.am): Likewise.
87181         * modules/mathl (Makefile.am): Likewise.
87182         * modules/mbchar (Makefile.am): Likewise.
87183         * modules/md2 (Makefile.am): Likewise.
87184         * modules/md4 (Makefile.am): Likewise.
87185         * modules/md5 (Makefile.am): Likewise.
87186         * modules/memcasecmp (Makefile.am): Likewise.
87187         * modules/memchr (Makefile.am): Likewise.
87188         * modules/memcmp (Makefile.am): Likewise.
87189         * modules/memcoll (Makefile.am): Likewise.
87190         * modules/memcpy (Makefile.am): Likewise.
87191         * modules/memmem (Makefile.am): Likewise.
87192         * modules/memmove (Makefile.am): Likewise.
87193         * modules/mempcpy (Makefile.am): Likewise.
87194         * modules/memrchr (Makefile.am): Likewise.
87195         * modules/memset (Makefile.am): Likewise.
87196         * modules/memxor (Makefile.am): Likewise.
87197         * modules/mkancesdirs (Makefile.am): Likewise.
87198         * modules/mkdir (Makefile.am): Likewise.
87199         * modules/mkdir-p (Makefile.am): Likewise.
87200         * modules/mkdtemp (Makefile.am): Likewise.
87201         * modules/mkstemp (Makefile.am): Likewise.
87202         * modules/mktime (Makefile.am): Likewise.
87203         * modules/modechange (Makefile.am): Likewise.
87204         * modules/mountlist (Makefile.am): Likewise.
87205         * modules/nanosleep (Makefile.am): Likewise.
87206         * modules/openat (Makefile.am): Likewise.
87207         * modules/pagealign_alloc (Makefile.am): Likewise.
87208         * modules/physmem (Makefile.am): Likewise.
87209         * modules/poll (Makefile.am): Likewise.
87210         * modules/posixtm (Makefile.am): Likewise.
87211         * modules/posixver (Makefile.am): Likewise.
87212         * modules/putenv (Makefile.am): Likewise.
87213         * modules/quote (Makefile.am): Likewise.
87214         * modules/quotearg (Makefile.am): Likewise.
87215         * modules/raise (Makefile.am): Likewise.
87216         * modules/read-file (Makefile.am): Likewise.
87217         * modules/readline (Makefile.am): Likewise.
87218         * modules/readlink (Makefile.am): Likewise.
87219         * modules/readtokens (Makefile.am): Likewise.
87220         * modules/readutmp (Makefile.am): Likewise.
87221         * modules/realloc (Makefile.am): Likewise.
87222         * modules/regex (Makefile.am): Likewise.
87223         * modules/rename (Makefile.am): Likewise.
87224         * modules/rename-dest-slash (Makefile.am): Likewise.
87225         * modules/rijndael (Makefile.am): Likewise.
87226         * modules/rmdir (Makefile.am): Likewise.
87227         * modules/rpmatch (Makefile.am): Likewise.
87228         * modules/safe-read (Makefile.am): Likewise.
87229         * modules/safe-write (Makefile.am): Likewise.
87230         * modules/same (Makefile.am): Likewise.
87231         * modules/save-cwd (Makefile.am): Likewise.
87232         * modules/savedir (Makefile.am): Likewise.
87233         * modules/setenv (Makefile.am): Likewise.
87234         * modules/settime (Makefile.am): Likewise.
87235         * modules/sha1 (Makefile.am): Likewise.
87236         * modules/sig2str (Makefile.am): Likewise.
87237         * modules/snprintf (Makefile.am): Likewise.
87238         * modules/stdlib-safer (Makefile.am): Likewise.
87239         * modules/stpcpy (Makefile.am): Likewise.
87240         * modules/stpncpy (Makefile.am): Likewise.
87241         * modules/strcase (Makefile.am): Likewise.
87242         * modules/strcasestr (Makefile.am): Likewise.
87243         * modules/strchrnul (Makefile.am): Likewise.
87244         * modules/strcspn (Makefile.am): Likewise.
87245         * modules/strdup (Makefile.am): Likewise.
87246         * modules/strerror (Makefile.am): Likewise.
87247         * modules/strftime (Makefile.am): Likewise.
87248         * modules/strndup (Makefile.am): Likewise.
87249         * modules/strnlen (Makefile.am): Likewise.
87250         * modules/strpbrk (Makefile.am): Likewise.
87251         * modules/strsep (Makefile.am): Likewise.
87252         * modules/strstr (Makefile.am): Likewise.
87253         * modules/strtod (Makefile.am): Likewise.
87254         * modules/strtoimax (Makefile.am): Likewise.
87255         * modules/strtok_r (Makefile.am): Likewise.
87256         * modules/strtol (Makefile.am): Likewise.
87257         * modules/strtoll (Makefile.am): Likewise.
87258         * modules/strtoul (Makefile.am): Likewise.
87259         * modules/strtoull (Makefile.am): Likewise.
87260         * modules/strtoumax (Makefile.am): Likewise.
87261         * modules/strverscmp (Makefile.am): Likewise.
87262         * modules/time_r (Makefile.am): Likewise.
87263         * modules/timegm (Makefile.am): Likewise.
87264         * modules/tmpfile-safer (Makefile.am): Likewise.
87265         * modules/unistd-safer (Makefile.am): Likewise.
87266         * modules/unlinkdir (Makefile.am): Likewise.
87267         * modules/userspec (Makefile.am): Likewise.
87268         * modules/utime (Makefile.am): Likewise.
87269         * modules/utimecmp (Makefile.am): Likewise.
87270         * modules/utimens (Makefile.am): Likewise.
87271         * modules/vasnprintf (Makefile.am): Likewise.
87272         * modules/vasprintf (Makefile.am): Likewise.
87273         * modules/vsnprintf (Makefile.am): Likewise.
87274         * modules/xalloc (Makefile.am): Likewise.
87275         * modules/xgetcwd (Makefile.am): Likewise.
87276         * modules/xnanosleep (Makefile.am): Likewise.
87277         * modules/xreadlink (Makefile.am): Likewise.
87278         * modules/xstrtod (Makefile.am): Likewise.
87279         * modules/xstrtol (Makefile.am): Likewise.
87280         * modules/xstrtold (Makefile.am): Likewise.
87281         * modules/yesno (Makefile.am): Likewise.
87283 2006-10-12  Jim Meyering  <jim@meyering.net>
87285         * m4/getloadavg.m4: Revert the change below.
87287         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
87288         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
87289         fail with a symlink, which is what coreutils' ./bootstrap now
87290         creates by default.
87292 2006-10-12  Bruno Haible  <bruno@clisp.org>
87294         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
87295         mingw.
87296         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
87297         MSVC and mingw explicitly.
87299 2006-10-11  Simon Josefsson  <jas@extundo.com>
87300             Bruno Haible  <bruno@clisp.org>
87302         Add support for multiple gnulib-tool invocations in the scope of a
87303         single configure.ac file.
87304         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
87305         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
87306         with the same contents as the _LIBADD variable.
87307         (func_emit_initmacro_start, func_emit_initmacro_end,
87308         func_emit_initmacro_done): New functions.
87309         (func_import, func_create_testdir): Invoke them. Allow the identifiers
87310         gl_LIBOBJS and gl_LTLIBOBJS.
87312 2006-10-11  Bruno Haible  <bruno@clisp.org>
87314         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
87315         (func_create_testdir): Don't create po/Makefile.am, don't invoke
87316         autoreconf. Instead, invoke autopoint explicitly but move back the
87317         *.m4 files from gnulib.
87319 2006-10-11  Bruno Haible  <bruno@clisp.org>
87321         * gnulib-tool (func_usage): Make module names after --create-testdir
87322         optional.
87323         (func_create_testdir): If no module was specified, use nearly all
87324         modules.
87326 2006-10-12  Jim Meyering  <jim@meyering.net>
87328         Big performance improvement for fts-based tools that use FTS_NOSTAT.
87329         Avoid spurious inode-mismatch problems on non-POSIX file systems.
87330         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
87331         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
87332         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
87333         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
87334         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
87335         (fts_set_stat_required): New function.
87336         (fts_open): Defer the calls to fts_stat, if possible or requested.
87337         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
87338         into fts_stat itself.
87339         (fts_read): Perform any required (deferred) fts_stat call.
87340         (fts_build): Likewise, for the directory we're about to open and read.
87341         In the readdir loop, carefully decide whether each entry will require
87342         an eventual call to fts_stat, using dirent.d_type info if available.
87343         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
87344         a command line argument into this function.  Update all callers.
87345         Map a return value of FTS_DOT to FTS_D for a command line argument.
87346         * modules/fts (Depends-on): Add d-type.  Alphabetize.
87347         Thanks to Miklos Szeredi for his tenacity and for the initial
87348         bug report about "find" failing on a FUSE-based file system.
87350         * lib/fts.c (fts_open): Use consistent indentation.
87352 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
87354         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
87355         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
87356         reported by Jim Meyering.  All uses of cache variables renamed
87357         to match Autoconf's.
87358         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
87359         the other one.
87361         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
87362         Fix misspelling in diagnostic.
87364 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
87366         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
87367         defined.  Problem reported by Matthew Woehlke.
87369         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
87370         Add support for Tandem NonStop R series.
87371         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
87372         Use new macro.
87374         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
87375         (has_trailing_slash): Omit size arg; all callers changed.
87376         Omit 'inline', since it doesn't help performance and we'd
87377         need to configure it.
87378         Don't count //, ///, etc. as having a trailing slash.
87379         As a side effect, this removes a C99ism reported by Matthew Woehlke.
87380         (rpl_rename_dest_slash): On failure, use rename's errno rather
87381         than (in some cases) an incorrect or junk errno.
87382         Simplify code by removing need to compute length; this does
87383         cause it to make two passes instead of one over the file name,
87384         but it's worth it.
87386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
87387         change, since Autoconf's version may no longer be appropriate now
87388         that we are using CVS Autoconf's version.  Add support for Tandem.
87390 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
87391             Bruno Haible  <bruno@clisp.org>
87393         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
87394         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
87395         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
87396         gl_AC_TYPE_LONG_LONG.
87398         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
87399         instead of HAVE_LONG_LONG.
87400         * lib/printf-args.c (printf_fetchargs): Likewise.
87401         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
87402         * lib/vasnprintf.c (VASNPRINTF): Likewise.
87403         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
87404         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
87405         gl_AC_TYPE_LONG_LONG.
87407 2006-10-11  Bruno Haible  <bruno@clisp.org>
87409         * m4/longlong.m4: Add comments.
87410         * m4/ulonglong.m4: Likewise.
87412 2006-10-10  Bruno Haible  <bruno@clisp.org>
87414         Make it possible to #define stpcpy, strdup to aliases.
87415         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
87416         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
87418 2006-10-10  Bruno Haible  <bruno@clisp.org>
87420         Make it possible to #define gcd to an alias.
87421         * lib/gcd.c: Include config.h.
87423 2006-10-10  Bruno Haible  <bruno@clisp.org>
87425         Make it possible to #define c_isascii to an alias.
87426         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
87427         defined. Undefine the macros before defining them, to avoid gcc
87428         warnings.
87429         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
87430         define NO_C_CTYPE_MACROS early.
87432 2006-10-10  Bruno Haible  <bruno@clisp.org>
87434         Make it possible to #define set_program_name to an alias.
87435         * lib/progname.c: Don't undefine set_program_name; instead, undefine
87436         ENABLE_RELOCATABLE early.
87438 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87440         Port to Tandem NSK OSS, which has 64-bit signed int but at most
87441         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
87442         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
87443         More generally, don't assume that 64-bit signed int is available
87444         if unsigned int is, and vice versa.
87445         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
87446         unsigned symbols, not on their signed counterparts.
87447         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
87448         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
87449         (UINT64_C, UINTMAX_C):
87450         Likewise.
87451         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
87452         unsigned counterparts.
87453         (Have_long_long, Unsigned): New macros.
87454         (Int): Renamed from INT.
87455         (strtoimax): Use the new macros.
87456         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
87457         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
87458         * modules/inttypes (inttypes.h): Substitute
87459         HAVE_UNSIGNED_LONG_LONG_INT.
87460         * modules/stdint (stdint.h): Likewise.
87461         (Files): Add m4/ulonglong.m4.
87463 2006-10-10  Bruno Haible  <bruno@clisp.org>
87465         Fix a gcc -Wshadow warning.
87466         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
87467         to 'bucket'.
87468         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
87469         gl_linked_indexof_from_to): Likewise.
87470         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
87471         Likewise.
87472         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
87473         Likewise.
87474         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
87475         Reported by Eric Blake.
87477 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
87479         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
87480         for NetBSD.  Problem reported by Bruno Haible.
87482 2006-10-09  Jim Meyering  <jim@meyering.net>
87484         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
87485         Patch from Bruno Haible.
87487 2006-10-09  Jim Meyering  <jim@meyering.net>
87489         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
87490         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
87491         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
87493 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
87495         Don't include <config.h> twice; this doesn't work in some cases,
87496         e.g., when config.h has "#define intmax_t long long int" and
87497         we include <config.h>, <inttypes.h>, <config.h> in that order.
87498         Problem reported by Matthew Woehlke in:
87499         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
87500         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
87501         * lib/fts-cycle.c: Don't include config.h.
87502         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
87503         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
87504         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
87505         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
87506         inttypes.h.
87507         * lib/xstrtoumax.c: Likewise.
87508         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
87509         __strtol and the like, so that this module is more like its siblings.
87510         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
87511         Remove; no longer needed now that we assume gnulib inttypes.h.
87513 2006-10-08  Bruno Haible  <bruno@clisp.org>
87515         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
87516         option.
87518 2006-10-07  Jim Meyering  <jim@meyering.net>
87520         * modules/inttypes (inttypes.h): Revert what seems to have been
87521         an inadvertent part of today's change: use "|", not "/" in the
87522         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
87524 2006-10-07  Bruno Haible  <bruno@clisp.org>
87526         * modules/sublist: New file.
87528 2006-10-07  Bruno Haible  <bruno@clisp.org>
87530         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
87531         * modules/argz (argz.h): Likewise.
87532         * modules/arpa_inet (arpa/inet.h): Likewise.
87533         * modules/byteswap (byteswap.h): Likewise.
87534         * modules/configmake (configmake.h): Likewise.
87535         * modules/fcntl (fcntl.h): Likewise.
87536         * modules/fnmatch (fnmatch.h): Likewise.
87537         * modules/getopt (getopt.h): Likewise.
87538         * modules/glob (glob.h): Likewise.
87539         * modules/inttypes (inttypes.h): Likewise.
87540         * modules/netinet_in (netinet/in.h): Likewise.
87541         * modules/poll (poll.h): Likewise.
87542         * modules/stdbool (stdbool.h): Likewise.
87543         * modules/stdint (stdint.h): Likewise.
87544         * modules/sys_select (sys/select.h): Likewise.
87545         * modules/sys_socket (sys/socket.h): Likewise.
87546         * modules/sys_stat (sys/stat.h): Likewise.
87547         * modules/sysexits (sysexits.h): Likewise.
87548         * modules/unistd (unistd.h): Likewise.
87549         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87550         Add a "DO NOT EDIT" comment to the generated file.
87551         (func_import): Likewise for gnulib-comp.m4.
87553 2006-10-07  Bruno Haible  <bruno@clisp.org>
87555         * lib/gl_sublist.h: New file.
87556         * lib/gl_sublist.c: New file.
87558 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87560         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
87561         name (relative to the original working directory) and the file
87562         name component (relative to the temporary working directory).  All
87563         callers changed.
87564         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
87565         * lib/mkdir-p.c (make_dir_parents): Likewise.
87566         * lib/mkdir-p.h (make_dir_parents): Likewise.
87568 2006-10-06  Eric Blake  <ebb9@byu.net>
87570         Define several macros for use by the clean-temp module.
87571         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
87572         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
87573         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
87575         * lib/clean-temp.h (close_stream_temp): New declaration.
87576         * lib/clean-temp.c (includes): Pull in headers according to what
87577         other modules are in use.
87578         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
87580 2006-10-06  Bruno Haible  <bruno@clisp.org>
87582         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
87583         instead of fopen, fwriteerror.
87585 2006-10-06  Bruno Haible  <bruno@clisp.org>
87587         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
87588         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
87589         int.
87590         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
87591         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
87592         Return an error indicator.
87593         Suggested by Eric Blake.
87595 2006-10-06  Bruno Haible  <bruno@clisp.org>
87597         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
87598         Reported by Eric Blake.
87600 2006-10-06  Bruno Haible  <bruno@clisp.org>
87602         * modules/closeout (Description): Mention stderr too.
87604 2006-10-06  Bruno Haible  <bruno@clisp.org>
87605         and Paul Eggert  <eggert@cs.ucla.edu>
87607         * lib/closeout.c (close_stdout): Also close stderr.
87608         * lib/closeout.h: Update comment.
87610 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
87612         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
87613         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
87614         * lib/dirchownmod.c: Include lchown.h.
87615         * lib/lchown.c: Don't include files that lchown.h now includes.
87616         Don't declare chown, since lchown.h now does that.
87617         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
87618         (lchown): Define to rpl_chown if lchown is declared but
87619         does not exist.  Declare using a prototype if lchown is not
87620         declared.  Add a copyright notice.
87621         * lib/mkstemp.h: Include <unistd.h>.
87622         * lib/openat.c: Include lchown.h.
87624         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
87625         we now test for that separately.
87626         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
87627         rather than O_NOFOLLOW, when testing whether it's possible to
87628         avoid a race condition reliably.
87629         * lib/savewd.c (savewd_chdir): Likewise.
87631         Remove macros that are no longer needed now that stdint.h is
87632         reliable.
87633         * lib/fsusage.c (UINTMAX_MAX): Remove.
87634         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
87635         * lib/utimecmp.c (SIZE_MAX): Remove.
87637         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
87639         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
87640         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
87641         O_NOATIME works.
87643 2006-10-05  Bruno Haible  <bruno@clisp.org>
87645         * lib/gl_list.h (gl_sortedlist_search_from_to,
87646         gl_sortedlist_indexof_from_to): New declarations.
87647         (gl_list_implementation): New fields sortedlist_search_from_to,
87648         sortedlist_indexof_from_to.
87649         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
87650         inline functions.
87651         * lib/gl_list.c (gl_sortedlist_search_from_to,
87652         gl_sortedlist_indexof_from_to): New functions.
87653         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
87654         function.
87655         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
87656         (gl_array_sortedlist_search_from_to): New function.
87657         (gl_array_list_implementation): Update.
87658         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
87659         function.
87660         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
87661         (gl_carray_sortedlist_search_from_to): New function.
87662         (gl_carray_list_implementation): Update.
87663         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
87664         gl_linked_sortedlist_indexof_from_to): New functions.
87665         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
87666         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
87667         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
87668         gl_tree_sortedlist_indexof_from_to): New functions.
87669         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
87670         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
87671         Update.
87672         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
87673         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
87674         Update.
87676 2006-10-05  Bruno Haible  <bruno@clisp.org>
87678         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
87679         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
87680         (struct gl_list_implementation): Add fields search_from_to,
87681         indexof_from_to. Remove fields search, indexof.
87682         (gl_list_search): Use the search_from_to method.
87683         (gl_list_search_from, gl_list_search_from_to): New functions.
87684         (gl_list_indexof): Use the indexof_from_to method.
87685         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
87686         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
87687         (gl_list_search_from, gl_list_search_from_to): New functions.
87688         (gl_list_indexof): Use the indexof_from_to method.
87689         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
87690         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
87691         gl_array_indexof. Add start_index, end_index arguments.
87692         (gl_array_search_from_to): Renamed from gl_array_search. Add
87693         start_index, end_index arguments.
87694         (gl_array_remove, gl_array_list_implementation): Update.
87695         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
87696         gl_carray_indexof. Add start_index, end_index arguments.
87697         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
87698         start_index, end_index arguments.
87699         (gl_carray_remove, gl_carray_list_implementation): Update.
87700         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
87701         gl_linked_search. Add start_index, end_index arguments.
87702         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
87703         start_index, end_index arguments.
87704         (gl_linked_remove): Update.
87705         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
87706         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
87707         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
87708         field to 'size_t'.
87709         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
87710         gl_tree_search. Add start_index, end_index arguments.
87711         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
87712         start_index, end_index arguments.
87713         (gl_tree_remove): Update.
87714         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
87715         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
87716         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
87717         function.
87718         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
87719         gl_tree_search. Add start_index, end_index arguments.
87720         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
87721         start_index, end_index arguments.
87722         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
87723         Update.
87724         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
87726 2006-10-05  Bruno Haible  <bruno@clisp.org>
87728         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
87730         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
87731         fwriteerror_temp): New declarations.
87732         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
87733         (descriptors): New variable.
87734         (cleanup): First, close the descriptors.
87735         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
87736         fclose_temp, fwriteerror_temp): New functions.
87738 2006-10-04  Jim Meyering  <jim@meyering.net>
87740         * lib/fts.c (fts_open): Tiny comment change.
87742 2006-10-04  Bruno Haible  <bruno@clisp.org>
87744         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
87745         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
87746         gl_LOCK_BODY.
87747         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
87748         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
87749         gl_LOCK_EARLY_BODY.
87750         (gl_LOCK): Require gl_LOCK_BODY.
87752 2006-10-04  Bruno Haible  <bruno@clisp.org>
87754         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
87755         (gl_oset_search_atleast): New declaration.
87756         (struct gl_oset_implementation): Add field 'search_atleast'.
87757         (gl_oset_search_atleast): New inline function.
87758         * lib/gl_oset.c (gl_oset_search_atleast): New function.
87759         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
87760         (gl_array_oset_implementation): Update.
87761         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
87762         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
87763         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
87765 2006-10-04  Bruno Haible  <bruno@clisp.org>
87767         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
87769 2006-10-03  Bruno Haible  <bruno@clisp.org>
87771         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
87772         from gl_avltreehash_list_implementation.
87774 2006-10-03  Bruno Haible  <bruno@clisp.org>
87776         * lib/gl_oset.c (gl_oset_add): Fix return type.
87778 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
87780         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
87782 2006-10-02  Eric Blake  <ebb9@byu.net>
87784         * modules/strnlen (Depends-on): Add extensions.
87786 2006-10-02  Eric Blake  <ebb9@byu.net>
87788         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
87789         definition in 2.60+.
87791 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
87793         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
87794         checks.
87796 2006-10-02  Bruno Haible  <bruno@clisp.org>
87798         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
87799         to the AUTOMAKE_OPTIONS.
87800         Reported by Jim Meyering.
87802 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
87804         Work around bug in Solaris 10 /proc file system:
87805         /proc/self/fd/NNN/.. isn't the parent directory of
87806         the directory whose file descriptor is NNN.  This needs to
87807         be worked around at run time, not compile time, since a
87808         program might be built on Solaris 8, where things work, and
87809         run on Solaris 10.
87810         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
87811         to use the following interface instead:
87812         (OPENAT_BUFFER_SIZE): New macro.
87813         (openat_proc_name): New function.
87814         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
87815         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
87816         Likewise.
87817         * lib/openat-proc.c: New file.
87818         * modules/openat (Files): Add lib/openat-proc.c.
87819         (Depends-on): Add same-inode, stdbool.
87820         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
87822 2006-09-29  Bruno Haible  <bruno@clisp.org>
87824         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
87825         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
87826         argument. Set stdout_closed before testing for ferror, not after.
87827         (fwriteerror, fwriteerror_no_ebadf): New functions.
87829 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87831         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
87833 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
87835         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
87836         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
87838 2006-09-28  Jim Meyering  <jim@meyering.net>
87840         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
87841         Include <unistd.h>.
87843 2006-09-28  Bruno Haible  <bruno@clisp.org>
87845         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
87846         * modules/linkedhash-list (Depends-on): Likewise.
87847         * modules/rbtreehash-list (Depends-on): Likewise.
87849 2006-09-28  Bruno Haible  <bruno@clisp.org>
87851         * lib/strndup.h: Simplify the redefinition of strndup.
87852         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
87853         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
87855 2006-09-28  Bruno Haible  <bruno@clisp.org>
87857         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
87858         * lib/gl_linkedhash_list.c: Likewise.
87859         * lib/gl_rbtreehash_list.c: Likewise.
87861 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
87863         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
87864         getaddrinfo.
87866         * lib/__fpending.h: Don't include <stdio_ext.h> unless
87867         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
87868         it causes <stdio_ext.h> to cause a compile-time error.
87869         Problem reported by Nelson H. F. Beebe.
87870         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
87871         of HAVE_DECL___PENDING.
87873         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
87874         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
87875         declaration.
87877 2006-09-27  Jim Meyering  <jim@meyering.net>
87879         This file could end up with a definition for a function
87880         named __strndup, rather than rpl_strndup on a system with
87881         incomplete weak_alias support.
87882         * lib/strndup.c (strndup): Rename from __strndup.
87883         Remove #defines that used to map __strndup to strndup.
87884         Don't use K&R prototypes.
87885         Remove LIBC-related code, since this file is not sync'd with glibc.
87886         * lib/strndup.h: Revamp, accordingly.
87887         * m4/strndup.m4: Modernize.
87889 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
87891         * modules/savewd (Depends-on): Add 'raise'.
87892         * lib/savewd.c: Include <signal.h>, for 'raise'.
87894 2006-09-26  Jim Meyering  <jim@meyering.net>
87896         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
87897         when we detect Darwin 8.7.0's acl_get_file bug.
87898         Rearrange to perform the new (below) run-test while $LIBS
87899         contains any acl-related library.  Set USE_ACL at the end.
87900         (gl_ACL_GET_FILE): New function.
87902 2006-09-26  Eric Blake  <ebb9@byu.net>
87904         * lib/verror.c: Include <config.h> unconditionally.
87906 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
87908         * modules/clock-time (Maintainer): Add self.
87909         * modules/getlogin_r (Depends-on): Add extensions.
87911 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87913         * modules/clock-time: New module.
87914         * modules/nanosleep (Depends-on): Add clock-time.
87915         * modules/gethrxtime (Depends-on): Likewise.
87916         * modules/gettime (Depends-on): Likewise.
87917         * modules/settime (Depends-on): Likewise.
87919         * modules/fts-lgpl: Depend on openat.
87920         * modules/mkancesdirs: Depend on savewd.
87921         * modules/mkdir-p: Likewise.
87923 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87925         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
87927         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
87928         `gl_have_arbitrary_file_name_length_limit' to
87929         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
87930         actually works between configure runs.
87932 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87933             Bruno Haible  <bruno@clisp.org>
87935         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
87937 2006-09-25  Jim Meyering  <jim@meyering.net>
87939         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
87940         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
87942 2006-09-25  Eric Blake  <ebb9@byu.net>
87944         * gnulib-tool (func_import, func_create_testdir): Fix typos in
87945         exec's in 2006-09-18 patch when shuffling fds.
87947 2006-09-25  Bruno Haible  <bruno@clisp.org>
87949         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
87950         Reported by Jim Meyering.
87952 2006-09-24  Jim Meyering  <jim@meyering.net>
87954         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
87955         compare a pointer against a literal "0".  That caused failures with
87956         at least HP-UX's hpcc.
87958 2006-09-22  Simon Josefsson  <jas@extundo.com>
87960         * modules/gc-sha1:
87961         * modules/gc-md4:
87962         * modules/gc-hmac-sha1:
87963         * modules/gc-hmac-md5:
87964         * modules/gc-des:
87965         * modules/gc-arcfour: Distribute more files.
87967 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87969         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
87970         (gl_linked_iterator_from_to): Initialize struct completely.
87971         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
87972         (gl_tree_iterator_from_to): Likewise
87973         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
87974         * lib/gl_array_list.c [lint] (gl_array_iterator)
87975         (gl_array_iterator_from_to): Likewise.
87976         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
87977         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
87978         (gl_carray_iterator_from_to): Likewise.
87980         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
87981         * lib/md4.c (md4_process_block): Remove unused variable.
87982         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
87983         parentheses for clarity.
87985 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87987         * modules/bison-i18n (Depends-on): Add gettext.
87989 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87991         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
87992         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
87993         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
87994         also add missing comma that caused broken test.
87995         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
87996         stdlib.h, for `abort'.
87997         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
87998         variables.
87999         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
88000         include unistd.h if present, for `rmdir'.
88001         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
88002         variables.
88003         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
88004         in the process include standard headers for prototypes.
88005         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
88006         gets declared on GNU/Linux.
88007         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
88008         unistd.h, for `rmdir'.
88009         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
88011         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
88012         always true.
88013         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
88015         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
88017 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88019         * gnulib-tool (func_version): Create output all at once.  This
88020         may help avoid triggering unnecessary SIGPIPEs, and at any
88021         rate it doesn't hurt.
88023 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88024             Bruno Haible  <bruno@clisp.org>
88026         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
88027         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88028         * m4/signed.m4 (bh_C_SIGNED): Likewise.
88030         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
88031         (gl_FUNC_VASPRINTF): Invoke it.
88033 2006-09-22  Bruno Haible  <bruno@clisp.org>
88035         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
88036         getloadavg.c as first argument.
88038 2006-09-22  Bruno Haible  <bruno@clisp.org>
88040         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
88041         at the beginning of the gl_INIT macro.
88042         * modules/getloadavg (configure.ac): Pass $gl_source_base to
88043         gl_GETLOADAVG.
88045 2006-09-22  Bruno Haible  <bruno@clisp.org>
88047         * gnulib-tool (func_create_megatestdir): Don't include the config-h
88048         module.
88049         Suggested by Ralf Wildenhues.
88051 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88053         Import this patch from libc:
88055         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
88057         * lib/regex_internal.c (re_string_reconstruct): Handle
88058         offset < pstr->valid_raw_len && pstr->offsets_needed case.
88059         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
88060         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
88061         re_string_context_at.
88063         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
88064         now requires it.
88065         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
88066         gl_REGEX now does it for us.
88067         (gl_REGEX): Add test taken from
88068         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
88070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
88071         Check that large offsets work.  Modernize Autoconf usages.
88072         Prefer "yes" to mean a good thing rather than a bad.
88073         Don't put "#define mkstemp" in config.h, as this might interfere
88074         with standard system headers that "#define mkstemp mkstemp64".
88076         * modules/mkstemp (Depends-on): Add extensions, so that
88077         mkstemp is visible on some platforms.
88078         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
88079         (Include): Change to "mkstemp.h" from <stdlib.h>.
88080         (Files): Add mkstemp.h.
88082         * lib/mkstemp.h: New file, since some standard headers
88083         #define mkstemp.
88084         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
88085         Include "mkstemp.h".
88086         Make the _LIBC code resemble glibc original more,
88087         e.g., use K&R style.
88088         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
88089         (mkstemp): Remove, since mkstemp.h does this for us.
88090         * lib/stdlib--.h: Include mkstemp.h.
88092         Import this patch from libc:
88094         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
88096         * lib/tempname.c (__gen_tempname): Change attempts_min
88097         into a macro.  Use preprocessor to decide how to initialize
88098         attempts [Coverity CID 67].
88100 2006-09-20  Bruno Haible  <bruno@clisp.org>
88102         * lib/mkdtemp.c: Import from libc.
88103         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
88104                 * sysdeps/posix/tempname.c (__gen_tempname): Change
88105                 attempts_min into a macro.  Use preprocessor to decide how to
88106                 initialize attempts [Coverity CID 67].
88107         2001-11-27  Paul Eggert  <eggert@twinsun.com>
88108                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
88109                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
88111 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88113         * gnulib-tool (func_exit): New function, to allow to pass the
88114         exit status portably through the trap.  Use everywhere.
88115         (--help, --version): Signal a write error.
88116         (trap): catch SIGPIPE, for write errors.
88117         Exit at the end of the trap, with the correct exit status.
88119 2006-09-19  Karl Berry  <karl@gnu.org>
88121         * doc/gnulib.texi: note about the license texinfo files.
88123 2006-09-19  Eric Blake  <ebb9@byu.net>
88125         * gnulib-tool: Avoid space-tab.
88127 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
88129         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
88130         that prevented coreutils 6.1 from building.  Problem reported
88131         by Petter Reinholdtsen.
88133 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
88135         * gnulib-tool (avoidlist): Fix typo that broke options like
88136         --avoid=lock that are used by coreutils bootstrap.
88138 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
88140         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
88141         more systematically.
88143 2006-09-18  Jim Meyering  <jim@meyering.net>
88145         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
88147 2006-09-18  Bruno Haible  <bruno@clisp.org>
88149         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
88151 2006-09-18  Bruno Haible  <bruno@clisp.org>
88153         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
88154         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
88155         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
88156         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
88157         * m4/gettext.m4: Require autoconf >= 2.52.
88158         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
88159         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
88160         of gl_cv_header_inttypes_h.
88162 2006-09-18  Bruno Haible  <bruno@clisp.org>
88164         * lib/javaversion.c: Include configmake.h.
88166 2006-09-18  Bruno Haible  <bruno@clisp.org>
88168         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
88169         avoid that the while loops be executed in a subshell.
88171 2006-09-18  Bruno Haible  <bruno@clisp.org>
88173         * MODULES.html.sh (func_module): Break long lines.
88174         Suggested by Bruce Korb <bkorb@gnu.org>.
88176 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88178         Speed up by a factor of 1.12.
88179         * gnulib-tool (nl): New variable.
88180         (func_import): Rewrite include directive extraction to only read each
88181         directive once.
88183 2006-09-17  Bruno Haible  <bruno@clisp.org>
88185         * modules/javaversion (Makefile.am): Remove DEFS setting.
88186         (Depends-on): Add configmake, for PKGDATADIR definition.
88188 2006-09-17  Bruno Haible  <bruno@clisp.org>
88190         * gnulib-tool (func_create_testdir): Rewrite all files at once.
88192 2006-09-17  Bruno Haible  <bruno@clisp.org>
88194         * gnulib-tool (func_append): New function, stolen from libtool.m4.
88195         (func_modules_transitive_closure, func_modules_add_dummy,
88196         func_modules_to_filelist, func_import, func_create_testdir,
88197         func_create_megatestdir, ...): Use it wherever possible.
88198         Suggested by Ralf Wildenhues.
88200 2006-09-16  Karl Berry  <karl@gnu.org>
88202         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
88203         to avoid sectioning errors.
88204         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
88205         [ifinfo]: blank line after @center-ed titles.
88206         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
88207         Spell FSF address consistently with others.
88208         (These changes approved by rms.)
88210 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88212         Speed up by a factor of 1.61.
88213         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
88214         already checked module names again.
88216 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88218         Speed up by a factor of 1.13.
88219         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
88220         for new_files, and the input to func_add_or_update.
88222 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88224         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
88225         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
88227 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
88229         * modules/mkancesdirs (Depends-on): Add fcntl.
88230         * modules/savewd: New file.
88231         * MODULES.html.sh (File system functions): Add savewd.
88233         * modules/configmake (Makefile.am): Add support for the
88234         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
88236 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
88238         * m4/savewd.m4: New file.
88240 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
88242         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
88243         (dirchownmod): New arg FD.  All callers changed.
88244         Use FD rather than opening the directory ourself, as opening is
88245         now the caller's responsibility.
88246         * lib/dirchownmod.h: Likewise.
88247         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
88248         hosts that require <sys/types.h> before <sys/stat.h>.  Include
88249         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
88250         (test_dir): Remove.
88251         (mkancesdirs): Return length of prefix of FILE that has already
88252         been made, or -2 if there is a child doing the work.  Redo
88253         algorithm so that it is O(N) rather than O(N**2).  Optimize away
88254         ".", and treat ".." specially since it might stray back into
88255         already-created areas.  Use a subprocess if necessary.  New arg
88256         WD; all users changed.  MAKE_DIR function should now return 1
88257         if it creates a directory that is not readable.  Return -2 if
88258         a child process is spun off.
88259         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
88260         Adjust signature to match code.
88261         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
88262         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
88263         all users changed.
88264         * lib/savewd.c, lib/savewd.h: New files.
88266 2006-09-15  Jim Meyering  <jim@meyering.net>
88268         * modules/rename-dest-slash: New module.
88269         * MODULES.html.sh (posix_compat): Add it here.
88271         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
88273 2006-09-15  Jim Meyering  <jim@meyering.net>
88275         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
88276         file.
88278         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
88280 2006-09-15  Jim Meyering  <jim@meyering.net>
88282         * lib/rename-dest-slash.c (has_trailing_slash): Use
88283         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
88284         (rpl_rename_dest_slash): Perform the cheaper trailing slash
88285         test before testing whether SRC is a directory.
88286         Suggestions from Bruno Haible.
88288         Avoid a warning about an unused variable.
88289         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
88290         into the #ifdef block where it's used.
88292         * lib/rename-dest-slash.c: New file.
88294 2006-09-14  Bruno Haible  <bruno@clisp.org>
88296         * lib/allocsa.c: Include <config.h> unconditionally.
88297         * lib/asnprintf.c: Likewise.
88298         * lib/asprintf.c: Likewise.
88299         * lib/c-strcasecmp.c: Likewise.
88300         * lib/c-strcasestr.c: Likewise.
88301         * lib/c-strncasecmp.c: Likewise.
88302         * lib/c-strstr.c: Likewise.
88303         * lib/classpath.c: Likewise.
88304         * lib/clean-temp.c: Likewise.
88305         * lib/concatpath.c: Likewise.
88306         * lib/copy-file.c: Likewise.
88307         * lib/csharpcomp.c: Likewise.
88308         * lib/csharpexec.c: Likewise.
88309         * lib/execute.c: Likewise.
88310         * lib/fatal-signal.c: Likewise.
88311         * lib/findprog.c: Likewise.
88312         * lib/fwriteerror.c: Likewise.
88313         * lib/gl_array_list.c: Likewise.
88314         * lib/gl_array_oset.c: Likewise.
88315         * lib/gl_avltree_list.c: Likewise.
88316         * lib/gl_avltree_oset.c: Likewise.
88317         * lib/gl_avltreehash_list.c: Likewise.
88318         * lib/gl_carray_list.c: Likewise.
88319         * lib/gl_linked_list.c: Likewise.
88320         * lib/gl_linkedhash_list.c: Likewise.
88321         * lib/gl_list.c: Likewise.
88322         * lib/gl_oset.c: Likewise.
88323         * lib/gl_rbtree_list.c: Likewise.
88324         * lib/gl_rbtree_oset.c: Likewise.
88325         * lib/gl_rbtreehash_list.c: Likewise.
88326         * lib/imaxabs.c: Likewise.
88327         * lib/imaxdiv.c: Likewise.
88328         * lib/javacomp.c: Likewise.
88329         * lib/javaexec.c: Likewise.
88330         * lib/javaversion.c: Likewise.
88331         * lib/linebreak.c: Likewise.
88332         * lib/localcharset.c: Likewise.
88333         * lib/lock.c: Likewise.
88334         * lib/mbchar.c: Likewise.
88335         * lib/mbswidth.c: Likewise.
88336         * lib/mkdtemp.c: Likewise.
88337         * lib/pipe.c: Likewise.
88338         * lib/printf-args.c: Likewise.
88339         * lib/printf-parse.c: Likewise.
88340         * lib/progname.c: Likewise.
88341         * lib/progreloc.c: Likewise.
88342         * lib/readlink.c: Likewise.
88343         * lib/sh-quote.c: Likewise.
88344         * lib/stpcpy.c: Likewise.
88345         * lib/stpncpy.c: Likewise.
88346         * lib/strcasecmp.c: Likewise.
88347         * lib/strcasestr.c: Likewise.
88348         * lib/strcspn.c: Likewise.
88349         * lib/striconv.c: Likewise.
88350         * lib/strncasecmp.c: Likewise.
88351         * lib/strnlen1.c: Likewise.
88352         * lib/strstr.c: Likewise.
88353         * lib/strtok_r.c: Likewise.
88354         * lib/tls.c: Likewise.
88355         * lib/tmpdir.c: Likewise.
88356         * lib/unicodeio.c: Likewise.
88357         * lib/unsetenv.c: Likewise.
88358         * lib/vasnprintf.c: Likewise.
88359         * lib/vasprintf.c: Likewise.
88360         * lib/wait-process.c: Likewise.
88361         * lib/xallocsa.c: Likewise.
88362         * lib/xsetenv.c: Likewise.
88363         * lib/xstriconv.c: Likewise.
88365 2006-09-13  Simon Josefsson  <jas@extundo.com>
88367         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
88368         that internally, suggested by Ralf Wildenhues
88369         <Ralf.Wildenhues@gmx.de>.
88371 2006-09-13  Simon Josefsson  <jas@extundo.com>
88373         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
88374         @LIBOBJS@.
88375         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88377 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88379         * lib/_fpending.c: Include <config.h> unconditionally, since we no
88380         longer worry about uses that don't define HAVE_CONFIG_H.
88381         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
88382         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
88383         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
88384         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
88385         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
88386         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
88387         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
88388         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
88389         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
88390         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
88391         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
88392         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
88393         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
88394         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
88395         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
88396         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
88397         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
88398         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
88399         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
88400         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
88401         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
88402         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
88403         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
88404         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
88405         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
88406         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
88407         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
88408         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
88409         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
88410         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
88411         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
88412         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
88413         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
88414         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
88415         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
88416         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
88417         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
88418         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
88419         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
88420         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
88421         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
88422         Likewise.
88424 2006-09-13  Eric Blake  <ebb9@byu.net>
88426         * lib/getopt.c: Fix typo in last commit.
88428 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88430         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
88431         dgettext.
88433 2006-09-12  Jim Meyering  <jim@meyering.net>
88435         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
88436         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
88437         Reported by Nelson H. F. Beebe.
88439 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
88441         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
88442         program_invocation_name and program_invocation_short_name are
88443         initialized.
88444         * lib/argp-namefrob.h: Move declarations of program_invocation_name
88445         and program_invocation_short_name to argp.h, so they are visible
88446         to user programs.
88447         * lib/argp.h: Likewise
88449 2006-09-10  Bruno Haible  <bruno@clisp.org>
88451         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
88452         m4/inttypes_h.m4, m4/uintmax_t.m4.
88454 2006-09-10  Bruno Haible  <bruno@clisp.org>
88456         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
88457         gl_AC_TYPE_UINTMAX_T.
88459 2006-09-10  Bruno Haible  <bruno@clisp.org>
88461         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
88463 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
88465         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
88466         convention.  Text proposed by Bruno Haible.
88467         (struct argp_option): Document the use of N_() wrappers.
88469         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
88470         '\v', and translate the two parts separately, instead of feeding
88471         the whole string to gettext.  This allows to exclude
88472         '\v' from the strings visible to the translator by writing doc
88473         strings as N_("..") "\v" N_("..").
88475 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
88477         * config/srclist.txt: Undo latest change; the bug was fixed.
88479 2006-09-09  Bruno Haible  <bruno@clisp.org>
88481         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
88482         assignments if building a library without libtool.
88483         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
88484         in func_emit_lib_Makefile_am.
88485         (func_import): When building a static library libfoo.a, arrange to
88486         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
88487         (func_create_testdir): Likewise.
88488         * modules/gc (configure.ac, Makefile.am): If building statically,
88489         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
88490         * modules/iconvme (configure.ac, Makefile.am): Likewise.
88491         * modules/striconv (configure.ac, Makefile.am): Likewise.
88492         Based on a suggestion by Ralf Wildenhues.
88494 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88496         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
88497         Check for unistd.h too, since Autoconf doesn't assume POSIX.
88498         Also:
88500         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88501         Add year_2050_test to catch glibc bug 2821
88502         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
88504         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
88505         Prefer #ifdef to #if.
88507         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
88508         Return from 'main' instead of calling 'exit'.
88510 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88512         * lib/mktime.c (guess_time_tm): Fix bug where mktime
88513         returned the maximum time_t value rather than (time_t) -1.
88514         Problem originally reported by William Bardwell
88515         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
88517         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
88518         Moved to here ...
88519         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
88520         ... from here.
88522 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88524         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
88525         2821 is fixed.
88527 2006-09-08  Jim Meyering  <jim@meyering.net>
88529         Don't make generated files read-only.  That would bother too many
88530         people.  However, do retain the ability to work when targets are
88531         read-only: remove the destination and temporary files before writing
88532         them (when generated via sed or echo), or by using the -f option for
88533         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
88534         * modules/alloca-opt, modules/argz, modules/arpa_inet:
88535         * modules/byteswap, modules/configmake, modules/fcntl:
88536         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
88537         * modules/localcharset, modules/netinet_in, modules/poll:
88538         * modules/stdbool, modules/stdint, modules/sys_select:
88539         * modules/sys_socket, modules/sys_stat, modules/sysexits:
88541 2006-09-08  Jim Meyering  <jim@meyering.net>
88543         Avoid new build failure on FreeBSD 6.0.
88544         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
88545         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
88546         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
88548 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88550         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
88552 2006-09-07  Jim Meyering  <jim@meyering.net>
88554         Fix global typo in last change: use chmod u-w, not chmod u-x.
88555         Spotted by Paul Eggert and Bruce Korb.
88556         * modules/alloca-opt, modules/argz, modules/arpa_inet:
88557         * modules/byteswap, modules/configmake, modules/fcntl:
88558         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
88559         * modules/localcharset, modules/netinet_in, modules/poll:
88560         * modules/stdbool, modules/stdint, modules/sys_select:
88561         * modules/sys_socket, modules/sys_stat, modules/sysexits:
88563 2006-09-06  Jim Meyering  <jim@meyering.net>
88565         Make generated files be read-only.
88566         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
88567         Ensure that each generated file is now read-only.
88568         * modules/argz: Likewise.
88569         * modules/arpa_inet: Likewise.
88570         * modules/byteswap: Likewise.
88571         * modules/configmake: Likewise.
88572         * modules/fcntl: Likewise.
88573         * modules/fnmatch: Likewise.
88574         * modules/getopt: Likewise.
88575         * modules/glob: Likewise.
88576         * modules/inttypes: Likewise.
88577         * modules/netinet_in: Likewise.
88578         * modules/poll: Likewise.
88579         * modules/stdbool: Likewise.
88580         * modules/stdint: Likewise.
88581         * modules/sys_select: Likewise.
88582         * modules/sys_socket: Likewise.
88583         * modules/sys_stat: Likewise.
88584         * modules/sysexits: Likewise.
88585         * modules/localcharset: Same as above, but continue using temporary
88586         file named "t-$@" (why different?) rather than the "$@-t" used
88587         everywhere else.
88589         * modules/sysexits (Makefile.am): Replace literal occurrences
88590         of "sysexit.h" more readable, and more consistent, "$@".
88592 2006-09-06  Bruno Haible  <bruno@clisp.org>
88594         * modules/striconv: New file.
88595         * modules/xstriconv: New file.
88596         * MODULES.html.sh (Internationalization functions): Add striconv,
88597         xstriconv.
88599 2006-09-06  Bruno Haible  <bruno@clisp.org>
88601         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
88602         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
88603         not using libtool correctly.
88605 2006-09-06  Bruno Haible  <bruno@clisp.org>
88607         * lib/striconv.h: New file.
88608         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
88609         iconvstring.c.
88610         * lib/xstriconv.h: New file.
88611         * lib/xstriconv.c: New file.
88613 2006-09-06  Bruno Haible  <bruno@clisp.org>
88615         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
88616         lib_..._LDFLAGS.
88618 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88620         * lib/argz_.h: Sync from Libtool.
88622         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
88623                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
88625         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
88627 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
88629         * modules/trim: New file.
88631 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
88633         * lib/trim.h: New file.
88634         * lib/trim.c: New file.
88636 2006-09-05  Bruno Haible  <bruno@clisp.org>
88638         * MODULES.html.sh (String handling): Add trim.
88640 2006-09-04  Karl Berry  <karl@gnu.org>
88642         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
88643         until next release.
88645 2006-09-03  Bruno Haible  <bruno@clisp.org>
88647         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
88648         correctly.
88650 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
88652         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
88653         not gl_GETLOADAVG.  Omit unneeded semicolons.
88654         Problems reported by Ralf Wildenhues in
88655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
88656         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
88657         at the end, which is the usual gnulib style.
88659         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
88660         of doing all the work ourselves.
88661         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
88662         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
88664 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
88666         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
88667         Problem reported by Ralf Wildenhues in
88668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
88670         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
88671         HAVE_STRUCT_STATFS_F_FSTYPENAME.
88673 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
88675         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
88676         yesterday's patch by changing test -n to test -z.
88678 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
88680         * modules/getloadavg (Files): Add m4/getloadavg.m4.
88681         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
88682         the former is now obsolescent.
88684         * modules/chdir-long (Depends-on): Add fcntl.
88686 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
88688         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
88689         obsolescent, and programs should use gnulib instead.
88690         * m4/getloadavg.m4: New file, with contents taken from Autoconf
88691         but with prefixes changed.
88693 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
88695         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
88696         or stdbool.h, because they might not exist while configuring.
88698         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
88699         Don't include unistd.h or limits.h; not needed, since chdir-long.h
88700         does that for us.
88701         (O_DIRECTORY): Remove.
88703 2006-08-31  Eric Blake  <ebb9@byu.net>
88705         * gnulib-tool: Don't let emacs change spaces to TAB.
88707 2006-08-31  Bruno Haible  <bruno@clisp.org>
88709         * gnulib-tool: When calling func_import more than once, do it in a
88710         subshell.
88711         Reported by Eric Blake <ebb9@byu.net>.
88713 2006-08-31  Bruno Haible  <bruno@clisp.org>
88715         * gnulib-tool (nl): Remove variable.
88716         (sed_transform_lib_file): Use more robust test for config-h module.
88717         (func_import): Fix typo in 2006-08-25 patch.
88719 2006-08-31  Bruno Haible  <bruno@clisp.org>
88721         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
88722         specified, augment Makefile.am variables instead of assigning them.
88724 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88726         Work around a bug in both the Linux and SunOS 64-bit kernels:
88727         nanosleep mishandles sleeps for longer than 2**31 seconds.
88728         Problem reported by Frank v Waveren in
88729         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
88730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
88731         Check for nanosleep bug.
88732         (LIB_NANOSLEEP): Append clock_gettime library if needed.
88734 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88736         Work around a bug in both the Linux and SunOS 64-bit kernels:
88737         nanosleep mishandles sleeps for longer than 2**31 seconds.
88738         Problem reported by Frank v Waveren in
88739         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
88740         * lib/nanosleep.c (BILLION): New constant.
88741         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
88742         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
88743         implementation.
88745 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88747         * modules/nanosleep (Depends-on): Add gettime.
88749 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88750         and Simon Josefsson  <jas@extundo.com>
88751         and Oskar Liljeblad  <oskar@osk.mine.nu>
88753         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
88754         * gnulib-tool (func_import): New license type 'unmodifiable license
88755         text'.
88756         * modules/fdl: Use it.  Longer description.
88757         * module/gpl, module/lgpl: New files.
88759 2006-08-30  Jim Meyering  <jim@meyering.net>
88761         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
88762         shadowing the parameter.
88764 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88766         Sync from Libtool:
88768         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88770         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
88771         sharing with gnulib.  Report by Eric Blake.
88773 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88775         * modules/isapipe: New file.
88776         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
88778 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88780         * modules/configmake (Makefile.am): Add a comment, and omit
88781         the CONFIGMAKE_ prefix from generated macro names.  Suggested
88782         by Bruno Haible.
88784 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88786         * m4/isapipe.m4: New file.
88788 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88790         * lib/isapipe.c, lib/isapipe.h: New files.
88792 2006-08-29  Jim Meyering  <jim@meyering.net>
88794         * modules/configmake (Makefile.am): Make configmake.h depend on
88795         Makefile.  Otherwise, a stale configmake.h could hang around.
88797 2006-08-29  Eric Blake  <ebb9@byu.net>
88799         * lib/error.c (error_at_line, print_errno_message): Match libc, after
88800         resolution of upstream bug 3044.
88802 2006-08-29  Bruno Haible  <bruno@clisp.org>
88804         * modules/localcharset (Depends-on): Add configmake.
88805         (Makefile.am): Remove setting of LIBDIR through DEFS.
88807 2006-08-29  Bruno Haible  <bruno@clisp.org>
88809         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
88810         defined.
88812 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88814         * modules/fcntl: New file.
88815         * modules/chdir-safer (Depends-on): Add fcntl.
88816         * modules/fts: Likewise.
88817         * modules/mkdir-p: Likewise.
88819         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
88820         This undoes the most recent change, since we're now addressing the
88821         problem in a different way.
88823         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
88824         into output, since the output might be called Makefile.am even
88825         if $makefile_name is something different.
88826         (func_import): Use $makefile_am rather than
88827         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
88828         empty.
88830         * modules/inttypes (Files): Add m4/inttypes-h.m4.
88832 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88834         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
88835         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
88836         recent change to stdint.m4, since we're now addressing the problem in a
88837         different way.
88839 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88841         * m4/fcntl_h.m4: New file.
88843 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88845         * lib/fcntl_.h: New file.
88846         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
88847         the fcntl module.
88848         * lib/dirchownmod.c: Likewise.
88849         * lib/fts.c: Likewise.
88851         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
88852         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
88853         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
88854         just before including <inttypes.h>, to avoid circular inclusion.
88856 2006-08-28  Jim Meyering  <jim@meyering.net>
88858         * doc/visibility.texi: Actually read and correct the grammar of the
88859         sentence affected by yesterday's change.
88861 2006-08-28  Eric Blake  <ebb9@byu.net>
88863         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
88864         needs wrapper.
88866 2006-08-28  Eric Blake  <ebb9@byu.net>
88868         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
88870 2006-08-28  Eric Blake  <ebb9@byu.net>
88872         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
88874 2006-08-28  Bruno Haible  <bruno@clisp.org>
88876         * modules/c-strstr: New file, from GNU gettext.
88877         * MODULES.html.sh (String handling): Add c-strstr.
88879 2006-08-28  Bruno Haible  <bruno@clisp.org>
88881         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
88882         macros.
88883         Reported by Eric Blake.
88885 2006-08-28  Bruno Haible  <bruno@clisp.org>
88887         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
88888         (VASNPRINTF): Return a string of length > INT_MAX without failing.
88889         * lib/vasprintf.c: Include errno.h, limits.h.
88890         (EOVERFLOW): New fallback definition.
88891         (vasprintf): Test here whether the string length is > INT_MAX.
88892         * lib/vsnprintf.c: Include errno.h, limits.h.
88893         (EOVERFLOW): New fallback definition.
88894         (vsnprintf): Fix bug when generated string was too long for the buffer.
88895         Test here whether the string length is > INT_MAX.
88897 2006-08-28  Bruno Haible  <bruno@clisp.org>
88899         * lib/inttypes_.h (SCNX*): Remove definitions.
88900         Reported by Eric Blake.
88902 2006-08-28  Bruno Haible  <bruno@clisp.org>
88904         * lib/c-strstr.h: New file, from GNU gettext.
88905         * lib/c-strstr.c: New file, from GNU gettext.
88907 2006-08-28  Bruno Haible  <bruno@clisp.org>
88909         * gnulib-tool: Reorder some statements.
88911 2006-08-28  Bruno Haible  <bruno@clisp.org>
88913         * gnulib-tool: New option --makefile-name.
88914         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
88915         $makefile_name.
88916         (func_import): Write $makefile_name to the cache file, and read it from
88917         there unless explicitly specified. Use $makefile_name as file name
88918         instead of Makefile.am. Adjust the recommendations accordingly.
88920 2006-08-28  Bruno Haible  <bruno@clisp.org>
88922         * gnulib-tool (func_verify_module): Check against misapplying patch.
88924 2006-08-28  Bruno Haible  <bruno@clisp.org>
88926         * gnulib-tool (func_relativize, func_relconcat): New functions.
88927         Give an error if --local-dir is given with --update.
88928         Remove trailing slashes from $local_gnulib_dir.
88929         (func_import): Store the relativized $local_gnulib_dir in
88930         gnulib-cache.m4, and read it from there if not specified explicitly.
88932 2006-08-28  Bruno Haible  <bruno@clisp.org>
88934         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
88935         is the current directory. Respect also $local_gnulib_dir.
88937 2006-08-28  Bruno Haible  <bruno@clisp.org>
88938             Simon Josefsson  <jas@extundo.com>
88940         BeOS portability.
88941         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
88943 2006-08-27  Jim Meyering  <jim@meyering.net>
88945         * doc/visibility.texi: Remove duplicate word: "pointer".
88947 2006-08-26  Bruno Haible  <bruno@clisp.org>
88949         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
88950         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
88951         (Makefile.am): Create inttypes.h from inttypes_.h.
88952         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
88954         * modules/imaxabs: New file.
88956         * modules/imaxdiv: New file.
88958 2006-08-26  Bruno Haible  <bruno@clisp.org>
88960         * m4/inttypes.m4: New file.
88961         * m4/_inttypes_h.m4: Remove file.
88962         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
88963         PRI_MACROS_BROKEN.
88964         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
88966         * m4/imaxabs.m4: New file.
88968         * m4/imaxdiv.m4: New file.
88970 2006-08-26  Bruno Haible  <bruno@clisp.org>
88972         * lib/inttypes_.h: New file.
88973         * lib/inttypes.h: Remove file.
88974         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
88976         * lib/imaxabs.c: New file.
88978         * lib/imaxdiv.c: New file.
88980 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
88982         New config-h module, so that "make" output needn't be cluttered
88983         by -DHAVE_CONFIG_H.
88984         * MODULES.html.sh (Support for building libraries and executables):
88985         Add config-h.
88986         * modules/config-h: New file.
88987         * gnulib-tool (nl, sed_transform_lib_file): New vars.
88988         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
88989         the config-h module is used.
88991         New configmake module, so that "make" output needn't be cluttered
88992         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
88993         * MODULES.html.sh (Support for building libraries and executables):
88994         Add configmake.
88995         * modules/configmake: New file.
88997 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
88999         * m4/config-h.m4: New file.
89001 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
89003         * config/srclist.txt: Add elisp-comp.
89005 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
89007         * MODULES.html.sh (Support for building libraries and executables):
89008         Add elisp-comp.
89009         * build-aux/elisp-comp: New file.
89010         * modules/elisp-comp: New file.
89012 2006-08-24  Bruno Haible  <bruno@clisp.org>
89014         * gnulib-tool (func_create_testdir): Use non-default values of
89015         sourcebase and m4base.
89017 2006-08-24  Bruno Haible  <bruno@clisp.org>
89019         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
89020         HTML structure.
89022 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
89024         * modules/openat (Depends-on): Add lchown.
89026 2006-08-23  Bruno Haible  <bruno@clisp.org>
89028         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
89029         of gl_LOCK_EARLY instead of gl_LOCK.
89031 2006-08-23  Bruno Haible  <bruno@clisp.org>
89033         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
89034         on OSF/1 to no.
89035         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
89037 2006-08-23  Bruno Haible  <bruno@clisp.org>
89039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
89040         as unusable.
89042         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
89043         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
89044         (gl_LOCK): New macro.
89046 2006-08-22  Simon Josefsson  <jas@extundo.com>
89048         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
89049         to md5 module.
89051 2006-08-22  Simon Josefsson  <jas@extundo.com>
89053         * MODULES.html.sh: Add "Support for maintaining and release
89054         projects".
89056         * build-aux/gnupload: New file, from coreutils.
89058 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
89060         Avoid the need for AC_LIBSOURCES in m4 macros.
89061         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
89062         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
89063         * modules/check-version (EXTRA_DIST): Add check-version.h.
89064         * modules/crc (EXTRA_DIST): Add crc.h.
89065         * modules/des (EXTRA_DIST): Add des.h.
89066         * modules/gc (EXTRA_DIST): Add gc.h.
89067         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
89068         * modules/getline (EXTRA_DIST): Add getline.h.
89069         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
89070         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
89071         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
89072         * modules/md2 (EXTRA_DIST): Add md2.h.
89073         * modules/md4 (EXTRA_DIST): Add md4.h.
89074         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
89075         * modules/read-file (EXTRA_DIST): Add read-file.h.
89076         * modules/readline (EXTRA_DIST): Add readline.h.
89077         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
89078         rijndael-api-fst.h.
89080 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
89082         * m4/rijndael.m4 (gl_ARCFOUR):
89083         * m4/arctwo.m4 (gl_ARCTWO):
89084         * m4/check-version.m4 (gl_CHECK_VERSION):
89085         * m4/crc.m4 (gl_CRC):
89086         * m4/des.m4 (gl_DES):
89087         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
89088         * m4/gc.m4 (gl_GC):
89089         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
89090         * m4/getline.m4 (gl_FUNC_GETLINE):
89091         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
89092         * m4/hmac-md5.m4 (gl_HMAC_MD5):
89093         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
89094         * m4/md2.m4 (gl_MD2):
89095         * m4/md4.m4 (gl_MD4):
89096         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
89097         * m4/read-file.m4 (gl_FUNC_READ_FILE):
89098         * m4/readline.m4 (gl_FUNC_READLINE):
89099         * m4/rijndael.m4 (gl_RIJNDAEL):
89100         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
89101         to get the necessary .h files and whatnot.
89103 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
89105         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
89106         gnulib rather than the other way around.
89107         * config/srclistvars.sh (COREUTILS): Remove.
89109 2006-08-22  Jim Meyering  <jim@meyering.net>
89111         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
89113         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
89115 2006-08-22  Eric Blake  <ebb9@byu.net>
89117         * modules/regexprops-generic: New file.
89118         * MODULES.html.sh (Support for building documentation): List it.
89120 2006-08-22  Eric Blake  <ebb9@byu.net>
89122         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
89123         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
89124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
89125         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
89127 2006-08-22  Bruno Haible  <bruno@clisp.org>
89129         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
89130         and lib_LTLIBRARIES like the other lib_* variables.
89132 2006-08-22  Bruno Haible  <bruno@clisp.org>
89134         * build-aux/x-to-1.in: New file, from GNU gettext.
89136 2006-08-22  Bruno Haible  <bruno@clisp.org>
89138         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
89139         <utmpx.h> exists.
89141 2006-08-22  Bruno Haible  <bruno@clisp.org>
89143         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
89144         <utmpx.h> exists.
89146 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
89148         BeOS portability.
89149         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
89150         exist.
89151         Problem reported by Bruno Haible.
89153 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
89155         Avoid the need for AC_LIBSOURCES in m4 macros.
89156         * modules/acl (EXTRA_DIST): Add acl.h.
89157         * modules/argmatch (Files): Add m4/argmatch.m4.
89158         (configure.ac): Add gl_ARGMATCH.
89159         (EXTRA_DIST): Renamed from lib_SOURCES, for
89160         consistency with the other modules.  Remove argmatch.c.
89161         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
89162         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
89163         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
89164         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
89165         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
89166         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
89167         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
89168         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
89169         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
89170         * modules/closeout (EXTRA_DIST): Add closeout.h.
89171         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
89172         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
89173         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
89174         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
89175         dirname.h; remove basename.c and stripslash.c.
89176         * modules/exclude (EXTRA_DIST): Add exclude.h.
89177         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
89178         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
89179         * modules/file-type (EXTRA_DIST): Add file-type.h.
89180         * modules/filemode (EXTRA_DIST): Add filemode.h.
89181         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
89182         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
89183         * modules/fpending (EXTRA_DIST): Add __fpending.h.
89184         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
89185         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
89186         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
89187         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
89188         * modules/getdate (EXTRA_DIST): Add getdate.c.
89189         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
89190         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
89191         * modules/getpass (EXTRA_DIST): Add getpass.h.
89192         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
89193         * modules/group-member (EXTRA_DIST): Add group-member.h.
89194         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
89195         * modules/hash (EXTRA_DIST): Add hash.h.
89196         * modules/human (EXTRA_DIST): Add human.h.
89197         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
89198         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
89199         * modules/lchown (EXTRA_DIST): Add lchown.h.
89200         * modules/long-options (EXTRA_DIST): Add long-options.h.
89201         * modules/lstat (EXTRA_DIST): Add lstat.h.
89202         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
89203         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
89204         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
89205         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
89206         * modules/memxor (EXTRA_DIST): Add memxor.h.
89207         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
89208         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
89209         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
89210         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
89211         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
89212         * modules/physmem (EXTRA_DIST): Add physmem.h.
89213         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
89214         * modules/posixver (EXTRA_DIST): Add posixver.h.
89215         * modules/quote (EXTRA_DIST): Add quote.h.
89216         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
89217         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
89218         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
89219         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
89220         regex_internal.h regexec.c.
89221         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
89222         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
89223         * modules/same (EXTRA_DIST): Add same.h.
89224         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
89225         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
89226         * modules/savedir (EXTRA_DIST): Add savedir.h.
89227         * modules/sha1 (EXTRA_DIST): Add sha1.h.
89228         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
89229         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
89230         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
89231         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
89232         * modules/strdup (EXTRA_DIST): Add strdup.h.
89233         * modules/strftime (EXTRA_DIST): Add strftime.h.
89234         * modules/strndup (EXTRA_DIST): Add strndup.h.
89235         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
89236         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
89237         * modules/time_r (EXTRA_DIST): Add time_r.h.
89238         * modules/timespec (EXTRA_DIST): Add timespec.h.
89239         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
89240         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
89241         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
89242         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
89243         * modules/userspec (EXTRA_DIST): Add userspec.h.
89244         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
89245         * modules/utimens (EXTRA_DIST): Add utimens.h.
89246         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
89247         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
89248         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
89249         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
89250         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
89251         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
89252         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
89253         * modules/yesno (EXTRA_DIST): Add yesno.h.
89255 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
89257         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
89259         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
89260         * m4/dev-ino.m4, same-inode.m4: Remove.
89262         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
89263         * m4/acl.m4 (AC_FUNC_ACL):
89264         * m4/backupfile.m4 (gl_BACKUPFILE):
89265         * m4/c-strtod.m4 (gl_C99_STRTOLD):
89266         * m4/canon-host.m4 (gl_CANON_HOST):
89267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
89268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
89269         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
89270         * m4/cloexec.m4 (gl_CLOEXEC):
89271         * m4/close-stream.m4 (gl_CLOSE_STREAM):
89272         * m4/closeout.m4 (gl_CLOSEOUT):
89273         * m4/dirfd.m4 (gl_FUNC_DIRFD):
89274         * m4/dirname.m4 (gl_DIRNAME):
89275         * m4/exclude.m4 (gl_EXCLUDE):
89276         * m4/exitfail.m4 (gl_EXITFAIL):
89277         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
89278         * m4/file-type.m4 (gl_FILE_TYPE):
89279         * m4/filemode.m4 (gl_FILEMODE):
89280         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
89281         * m4/fpending.m4 (gl_FUNC_FPENDING):
89282         * m4/fprintftime.m4 (gl_FPRINTFTIME):
89283         * m4/fts.m4 (gl_FUNC_FTS):
89284         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
89285         * m4/getdate.m4 (gl_GETDATE):
89286         * m4/gethrxtime.m4 (gl_GETHRXTIME):
89287         * m4/getpagesize.m4 (gl_GETPAGESIZE):
89288         * m4/getpass.m4 (gl_FUNC_GETPASS):
89289         * m4/gettime.m4 (gl_GETTIME):
89290         * m4/getugroups.m4 (gl_GETUGROUPS):
89291         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
89292         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
89293         * m4/hard-locale.m4 (gl_HARD_LOCALE):
89294         * m4/hash.m4 (gl_HASH):
89295         * m4/idcache.m4 (gl_IDCACHE):
89296         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
89297         * m4/lchown.m4 (gl_FUNC_LCHOWN):
89298         * m4/long-options.m4 (gl_LONG_OPTIONS):
89299         * m4/lstat.m4 (gl_FUNC_LSTAT):
89300         * m4/md5.m4 (gl_MD5):
89301         * m4/memcasecmp.m4 (gl_MEMCASECMP):
89302         * m4/memcoll.m4 (gl_MEMCOLL):
89303         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
89304         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
89305         * m4/memxor.m4 (gl_MEMXOR):
89306         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
89307         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
89308         * m4/modechange.m4 (gl_MODECHANGE):
89309         * m4/mountlist.m4 (gl_MOUNTLIST):
89310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89311         * m4/openat.m4 (gl_FUNC_OPENAT):
89312         * m4/pathmax.m4 (gl_PATHMAX):
89313         * m4/physmem.m4 (gl_PHYSMEM):
89314         * m4/posixtm.m4 (gl_POSIXTM):
89315         * m4/posixver.m4 (gl_POSIXVER):
89316         * m4/quote.m4 (gl_QUOTE):
89317         * m4/quotearg.m4 (gl_QUOTEARG):
89318         * m4/readtokens.m4 (gl_READTOKENS):
89319         * m4/readutmp.m4 (gl_READUTMP):
89320         * m4/regex.m4 (gl_REGEX):
89321         * m4/safe-read.m4 (gl_SAFE_READ):
89322         * m4/safe-write.m4 (gl_SAFE_WRITE):
89323         * m4/same.m4 (gl_SAME):
89324         * m4/save-cwd.m4 (gl_SAVE_CWD):
89325         * m4/savedir.m4 (gl_SAVEDIR):
89326         * m4/settime.m4 (gl_SETTIME):
89327         * m4/sha1.m4 (gl_SHA1):
89328         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
89329         * m4/stat-macros.m4 (gl_STAT_MACROS):
89330         * m4/stat-time.m4 (gl_STAT_TIME):
89331         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
89332         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
89333         * m4/strdup.m4 (gl_FUNC_STRDUP):
89334         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
89335         * m4/strndup.m4 (gl_FUNC_STRNDUP):
89336         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
89337         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
89338         * m4/time_r.m4 (gl_TIME_R):
89339         * m4/timespec.m4 (gl_TIMESPEC):
89340         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
89341         * m4/unlinkdir.m4 (gl_UNLINKDIR):
89342         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
89343         * m4/userspec.m4 (gl_USERSPEC):
89344         * m4/utimecmp.m4 (gl_UTIMECMP):
89345         * m4/utimens.m4 (gl_UTIMENS):
89346         * m4/xalloc.m4 (gl_XALLOC):
89347         * m4/xgetcwd.m4 (gl_XGETCWD):
89348         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
89349         * m4/xreadlink.m4 (gl_XREADLINK):
89350         * m4/xstrtod.m4 (gl_XSTRTOD):
89351         * m4/yesno.m4 (gl_YESNO):
89352         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
89353         to get the necessary .h files and whatnot.
89355 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
89356             Bruno Haible  <bruno@clisp.org>
89358         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
89359         /bin/sh understanding of '!' conditional negation.
89361 2006-08-21  Jim Meyering  <jim@meyering.net>
89363         * modules/openat (Depends-on): Really alphabetize.
89365         * modules/acl (Depends-on): Add error and quote.
89367         * check-module (find_included_lib_files): Add at-func.c to the
89368         ok-to-include-more-than-once white list.
89370         * modules/openat (Depends-on): Add lstat.  Alphabetize.
89372 2006-08-21  Bruno Haible  <bruno@clisp.org>
89374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89375         Emit a pkgdata_DATA variable only if some snippets add contents to it.
89376         Reported by Martin Lambers <marlam@marlam.de>.
89378 2006-08-21  Bruno Haible  <bruno@clisp.org>
89380         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
89381         specify an installation location, don't emit a noinst_LIBRARIES or
89382         noinst_LTLIBRARIES assignment.
89384 2006-08-21  Bruno Haible  <bruno@clisp.org>
89386         BeOS portability.
89387         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
89388         BeOS has mbrtowc() but no <wctype.h>.
89390 2006-08-21  Bruno Haible  <bruno@clisp.org>
89392         BeOS portability.
89393         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
89394         exist.
89396 2006-08-21  Bruno Haible  <bruno@clisp.org>
89398         BeOS portability.
89399         * lib/mbchar.h: Include <wctype.h> only if it exists.
89401 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
89403         Remove files that are no longer needed by their respective modules.
89404         * m4/obstack.m4: Remove.
89405         * m4/strerror_r.m4: Remove.
89406         * m4/uint32_t.m4: Remove.
89407         * m4/uintptr_t.m4: Remove.
89408         * m4/ullong_max.m4: Remove.
89409         * m4/xstrtoimax.m4: Remove.
89410         * m4/xstrtoumax.m4: Remove.
89412         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
89413         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
89414         dependencies now capture this.
89416         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
89417         Do not use AC_LIBSOURCES, since gnulib modules now do this.
89418         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
89419         * m4/human.m4 (gl_HUMAN): Likewise.
89420         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
89421         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
89423         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
89425         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
89426         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
89427         stdint.
89428         * m4/human.m4 (gl_HUMAN): Likewise.
89429         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
89430         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
89431         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
89432         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
89433         * m4/xstrtol (gl_XSTRTOL): Likewise.
89435         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
89436         AC_TYPE_LONG_LONG_INT.
89437         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
89438         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
89439         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
89440         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
89442         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
89443         on stdbool.
89445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
89446         (gl_PREREQ_XSTRTOUL): Remove.
89448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
89450         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
89451         mode.
89453 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
89455         Add and change modules to make it easier for coreutils to use
89456         gnulib-tool.
89457         * modules/backupfile (Files): Remove m4/d-ino.m4.
89458         (Depends-on): Add d-ino.
89459         * modules/cycle-check (Depends-on): Add stdint.
89460         (lib_SOURCES): Add cycle-check.h.
89461         * modules/d-ino: New module.
89462         * modules/d-type: New module.
89463         * modules/error (Files): Remove m4/strerror_r.m4.
89464         * modules/filemode (Files): Add m4/st_dm_mode.m4.
89465         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
89466         m4/inttypes_h.m4, m4/uintmax_t.m4.
89467         (Depends-on): Add stdint.
89468         (lib_SOURCES): Add fsusage.h.
89469         * modules/getcwd (Files): Remove d-ino.m4.
89470         (Depends-on): Add d-ino.
89471         * modules/getndelim2 (Depends-on): Add stdint.
89472         * modules/glob (Files): Remove m4/d-type.m4.
89473         (Depends-on): Add d-type.
89474         * modules/host-os: New module.
89475         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
89476         m4/inttypes_h.m4, m4/uintmax_t.m4.
89477         * Depends-on: Add stdint.
89478         (lib_SOURCES): Add human.h.
89479         * modules/inttostr (Files): Remove m4/intmax_t.m4,
89480         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
89481         m4/uintmax_t.m4, m4/ulonglong.m4.
89482         (Depends-on): Add stdint.
89483         (EXTRA_DIST): Add inttostr.h.
89484         * modules/lchmod: New module.
89485         * modules/link-follow: New module.
89486         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
89487         (Depends-on): Add lchmod.
89488         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
89489         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
89490         (Depends-on): Add stdint.
89491         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
89492         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
89493         (Depends-on): Add stdint.
89494         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
89495         * modules/perl: New module.
89496         * modules/regex (Depends-on): Add stdint.
89497         * modules/rmdir-errno: New module.
89498         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
89499         m4/intmax_t.m4.
89500         (Depends-on): Add stdint.
89501         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
89502         m4/uintmax_t.m4.
89503         (Depends-on): Add stdint.
89504         * modules/unlink-busy: New module.
89505         * modules/utimecmp (Depends-on): Add stdint.
89506         * modules/uptime: New module.
89507         * modules/winsz-ioctl: New module.
89508         * modules/winsz-termios: New module.
89509         * modules/xnanosleep (Depends-on): Add nanosleep.
89510         * modules/ullong_max: Remove.
89511         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
89512         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
89513         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
89514         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
89515         (Depends-on): Add inttypes.
89516         (lib_SOURCES): Add xstrtol.h.
89517         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
89518         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
89519         * MODULES.html.sh: Move 'assert' into the assert section.
89520         Move 'dummy' into the linking section.
89521         Remove ullong_max.
89522         Add section for compatibility checks for POSIX:2001 functions,
89523         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
89524         winsz-ioctl, and winsz-termios into it.
89525         Add lchmod.
89526         Add top-level Misc section and put host-os, perl, and uptime
89527         into it.
89529 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
89531         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
89532         now assume the stdint module.  Do not include inttypes.h.
89533         * lib/fsusage.h: Likewise.
89534         * lib/getndelim2.c: Likewise.
89535         * lib/human.h: Likewise.
89536         * lib/inttostr.h: Likewise.
89537         * lib/obstack.c: Likewise.
89538         * lib/regex_internal.h: Likewise.
89539         * lib/tempname.c: Likewise.
89540         * lib/utimecmp.c: Likewise.
89541         * lib/xstrtol.h: Likewise.
89543         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
89545         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
89546         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
89547         * lib/xtime.h: Likewise.
89549 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89551         * modules/openat (Files): Add lib/fchmodat.c.
89552         Fixes problem reported by Jay Youngman.
89554 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89556         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
89557         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
89559 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
89560             Bruno Haible  <bruno@clisp.org>
89562         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
89563         and is a script that invokes bison. Tighten the code. Add comments.
89565 2006-08-18  Jim Meyering  <jim@meyering.net>
89567         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
89568         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
89569         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
89570         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
89572 2006-08-18  Bruno Haible  <bruno@clisp.org>
89574         * modules/bison-i18n: New file.
89575         * MODULES.html.sh (Internationalization functions): Add it.
89577 2006-08-18  Bruno Haible  <bruno@clisp.org>
89579         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
89580         sys/statvfs.h. When getmntinfo was found, check its declaration and
89581         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
89583 2006-08-18  Bruno Haible  <bruno@clisp.org>
89585         * m4/bison-i18n.m4: New file, from bison.
89587 2006-08-18  Bruno Haible  <bruno@clisp.org>
89589         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
89590         (ME_DUMMY): Treat "kernfs" as a dummy.
89591         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
89593 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89595         Update from coreutils.
89597         2006-08-15  Jim Meyering  <jim@meyering.net>
89599         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
89601         2006-01-17  Jim Meyering  <jim@meyering.net>
89603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
89605         2006-01-11  Jim Meyering  <jim@meyering.net>
89607         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
89608         Check for the lchmod function.
89610 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89612         Update from coreutils.
89614         * lib/__fpending.h: Add copyright notice.
89615         * lib/fprintftime.h: Likewise.
89616         * lib/savedir.c: Use (C) in copyright notice.
89617         * lib/savedir.h: Likewise.
89619         2006-08-15  Jim Meyering  <jim@meyering.net>
89621         * lib/at-func.c: New file, with the logic of all emulated at-functions.
89622         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
89623         in support of the EXPECTED_ERRNO macro.
89624         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
89625         definitions.  Instead, define the appropriate symbols and include
89626         "at-func.c".
89627         * lib/mkdirat.c (mkdirat): Likewise.
89628         * lib/fchmodat.c (fchmodat): Likewise.
89629         (ENOSYS): Remove definition.
89630         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
89631         it.  Don't include "unistd--.h" -- it wasn't ever used.
89633         2006-01-17  Jim Meyering  <jim@meyering.net>
89635         Rewrite fts.c not to change the current working directory,
89636         by using openat, fstatat, fdopendir, etc..
89638         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
89639         (HAVE_OPENAT_SUPPORT): Define.
89640         [_LIBC] (fchdir): Don't undef or define; no longer used.
89641         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
89642         Now, this `function' always succeeds, and consumes its file descriptor
89643         parameter -- so callers must not close such FDs.  Update callers.
89644         (diropen_fd, opendirat, cwd_advance_fd): New functions.
89645         (diropen): Add parameter, SP.  Adjust all callers.
89646         Implement using diropen_fd, rather than open.
89647         (fts_open): Initialize new member, fts_cwd_fd.
89648         Remove fts_rft-setting code.
89649         (fts_close): Close fts_cwd_fd, if necessary.
89650         (__opendir2): Define in terms of opendir or opendirat,
89651         depending on whether the FST_NOCHDIR flag is set.
89652         (fts_build): Since fts_safe_changedir consumes its FD, and since
89653         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
89654         and close the dup'd file descriptor upon failure.
89655         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
89656         (fts_safe_changedir): Tweak semantics to reflect that this function
89657         now calls cwd_advance_fd and hence consumes its FD argument.
89658         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
89659         [struct FTS] (fts_rft): Remove now-unused member.
89660         [struct FTS] (fts_cycle.state): Improve comment.
89662         * lib/openat.c (openat_needs_fchdir): New function.
89663         * lib/openat.h (openat_needs_fchdir): Declare it.
89665 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
89667         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
89668         Problem and fix reported by Pádraig Brady in
89669         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
89671 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
89673         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
89675 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
89677         * lib/memcoll.c (memcoll): Optimize for the common case where the
89678         arguments are bytewise equal.
89680 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
89682         * doc/regexprops-generic.texi: Add a copyright notice.
89684 2006-08-15  Bruno Haible  <bruno@clisp.org>
89686         * modules/tmpdir (License): Change to LGPL.
89688 2006-08-15  Bruno Haible  <bruno@clisp.org>
89690         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
89691         module.
89693 2006-08-14  Simon Josefsson  <jas@extundo.com>
89695         * config/srclist.txt: Add gnupload.
89697 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89699         Change copyright notice from LGPL 2 to GPL 2, since that's the
89700         standard form used in the gnulib repository.
89701         * tests/test-lock.c: Likewise.
89702         * tests/test-stdint.c: Likewise.
89703         * tests/test-tls.c: Likewise.
89705         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
89706         prelude-manager.  User shorter URLs for GNU projects, without '?'.
89707         Add copyright notice.
89709         * check-module: Add copyright notice.  Output a copyright
89710         notice if "--version" is specified.
89711         * modules/COPYING: New file.
89712         * tests/test-getaddrinfo.c: Add copyright notice.
89713         * tests/test-verify.c: Likewise.
89715 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89717         Change copyright notice from LGPL 2 to GPL 2, since that's the
89718         standard form used in the gnulib repository.
89719         * lib/lock.c: LGPL -> GPL.
89720         * lib/lock.h: Likewise.
89721         * lib/strnlen1.c: Likewise.
89722         * lib/strnlen1.h: Likewise.
89723         * lib/tls.c: Likewise.
89724         * lib/tls.h: Likewise.
89725         * lib/tmpdir.c: Likewise.
89727         * lib/TODO: Remove; this belongs only in coreutils.
89729 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89731         Add copyright notices to long-enough files that lack them, since
89732         otherwise the files aren't clearly free.  Use the same notice that
89733         getdate.texi already uses.
89734         * doc/alloca-opt.texi: Add copyright notice.
89735         * doc/alloca.texi: Likewise.
89736         * doc/ctime.texi: Likewise.
89737         * doc/functions.texi: Likewise.
89738         * doc/gcd.texi: Likewise.
89739         * doc/gnulib-tool.texi: Likewise.
89740         * doc/inet_ntoa.texi: Likewise.
89741         * doc/visibility.texi: Likewise.
89743         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
89744         * doc/quote.texi: Add copyright notice.
89746         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
89747         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
89748         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
89749         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
89750         is now obsolete, and give a pointer to the Sun list.
89751         Add copyright notice.
89753 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89755         * config/srclistvars.sh: Add copyright notice.
89757 2006-08-14  Eric Blake  <ebb9@byu.net>
89759         Import the following change from libc:
89761         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
89763         Upstream bug 2997.
89764         * lib/misc/error.c: Add space between program name and message if file
89765         name is missing.
89767 2006-08-12  Karl Berry  <karl@gnu.org>
89769         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
89770         remove, these originate in gnulib now.
89772 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89774         * doc/Makefile (standards.info standards.html standards.dvi):
89775         Also depend on make-stds.texi.
89777 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89779         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
89780         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
89782         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
89783         in wchar_t.  Problem reported by Eric Blake.
89785         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
89786         LEN is smaller than SIZE.  Suggested by Bruno Haible.
89787         Also, help the compiler to keep LEN in a register.
89789 2006-08-11  Eric Blake  <ebb9@byu.net>
89791         * users.txt: Sort.  Add tar.
89793 2006-08-11  Bruno Haible  <bruno@clisp.org>
89795         * users.txt: New file.
89797 2006-08-11  Bruno Haible  <bruno@clisp.org>
89799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
89800         before <wchar.h>. Needed for OSF/1 and BSD/OS.
89802 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
89804         * modules/snprintf (Depends-on): Remove minmax.
89805         (Maintainer): Add self and Bruno.
89807 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
89809         * lib/.cppi-disable: Add snprintf.h, socket_.h.
89810         * lib/snprintf.c: Include <errno.h> and <limits.h>.
89811         (EOVERFLOW): Define if the system does not.
89812         Do not include "minmax.h"; it wasn't used.
89813         (snprintf): Don't assume size_t promotes to an unsigned type.
89814         Fix bug when generated string was too long for the buffer: the
89815         buffer's contents are supposed to be the initial prefix of the
89816         output.  Don't assume vasnprintf returns EOVERFLOW if the size
89817         exceeds INT_MAX; do the check ourselves.
89819         Import the following changes from libc:
89821         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
89823         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
89824         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
89825         set wc to the byte which couldn't be converted.
89826         (re_string_reconstruct): Don't clear valid_raw_len before calling
89827         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
89828         tip_context using re_string_context_at.
89830         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
89832         * lib/posix/regex.h: g++ still cannot handled [restrict].
89834         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
89836         * lib/posix/regex.h: Remove special handling for VMS.
89838 2006-08-10  Jim Meyering  <jim@meyering.net>
89840         * modules/same-inode: New module.
89841         * modules/dev-ino: New module.
89842         * modules/cycle-check: Depend on these modules, rather than simply
89843         including their .h files.
89844         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
89845         required via m4/cycle-check.m4.
89846         * modules/same: Depend on new same-inode module, rather than
89847         including same-inode.h.
89848         * modules/chdir-safer: New file.
89850         * modules/chown (Depends-on): Add stat-macros.
89852 2006-08-10  Jim Meyering  <jim@meyering.net>
89854         * m4/cycle-check.m4: New file.
89855         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
89856         * m4/dev-ino.m4, m4/same-inode.m4: New files.
89858 2006-08-10  Eric Blake  <ebb9@byu.net>
89860         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
89861         in from original proposal.
89863 2006-08-10  Eric Blake  <ebb9@byu.net>
89864         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
89866         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
89867         namespace.
89869 2006-08-10  Bruno Haible  <bruno@clisp.org>
89871         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
89872         as well.
89874 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89876         Sync from coreutils.
89878         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
89880         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
89881         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
89883 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89885         * modules/restrict: Remove; no longer needed now that we assume
89886         Autoconf 2.59 or later.
89887         * MODULES.html.sh: Remove 'restrict'.
89888         * modules/argp (Depends-on): Remove 'restrict'.
89889         * modules/base64 (Depends-on): Likewise.
89890         * modules/gc (Depends-on): Likewise.
89891         * modules/getaddrinfo (Depends-on): Likewise.
89892         * modules/glob (Depends-on): Likewise.
89893         * modules/inet_ntop (Depends-on): Likewise.
89894         * modules/inet_pton (Depends-on): Likewise.
89895         * modules/memxor (Depends-on): Likewise.
89896         * modules/regex (Depends-on): Likewise.
89897         * modules/strtok_r (Depends-on): Likewise.
89898         * modules/time_r (Depends-on): Likewise.
89900 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89902         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
89903         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
89904         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
89905         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
89906         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
89907         * m4/memxor.m4 (gl_MEMXOR): Likewise.
89908         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
89909         gl_C_RESTRICT replaced by AC_C_RESTRICT.
89911         Merge from coreutils.
89912         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
89913         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
89914         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
89915         * m4/time_r.m4 (gl_TIME_R): Likewise.
89917 2006-08-09  Karl Berry  <karl@gnu.org>
89919         * config/srclist.txt: no more gettext-tools, per Bruno.
89921 2006-08-08  Eric Blake  <ebb9@byu.net>
89923         * modules/verror: New module.
89924         * MODULES.html.sh: Document it.
89926 2006-08-08  Eric Blake  <ebb9@byu.net>
89928         * lib/verror.h, lib/verror.c: New files.
89930 2006-08-08  Eric Blake  <ebb9@byu.net>
89932         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
89933         verror_at_line output complies with GNU Coding Standards even when
89934         file is NULL.
89936 2006-08-07  Bruno Haible  <bruno@clisp.org>
89938         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
89939         versions of AIX.
89940         Reported by Ralf Wildenhues.
89942 2006-08-07  Bruno Haible  <bruno@clisp.org>
89944         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
89945         in an AC_DEFUN. Needed so that the autoconf snippets can use
89946         AC_REQUIRE.
89948 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89951         Initialize pkgdata_DATA.
89952         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
89953         overriding it.
89955 2006-08-06  Eric Blake  <ebb9@byu.net>
89957         * lib/error.h: Fold in some upstream changes from glibc.
89958         * lib/error.c: Likewise.
89960 2006-08-04  Bruno Haible  <bruno@clisp.org>
89962         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89963         Make the mostlyclean-local rule depend on mostlyclean-generic.
89964         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
89966 2006-07-31  Bruno Haible  <bruno@clisp.org>
89968         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
89969         <stdlib.h>, <string.h>.
89971 2006-07-30  Bruno Haible  <bruno@clisp.org>
89973         * modules/readlink (License): Change to LGPL.
89975 2006-07-30  Bruno Haible  <bruno@clisp.org>
89977         * modules/javaversion (Makefile.am): Distribute javaversion.java and
89978         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
89979         set PKGDATADIR to point to it.
89981 2006-07-30  Bruno Haible  <bruno@clisp.org>
89983         * modules/csharpexec (configure.ac): Comment out macro invocation.
89984         * modules/javaexec (configure.ac): Likewise.
89985         * modules/javacomp-script (configure.ac): Likewise.
89987         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
89989 2006-07-30  Bruno Haible  <bruno@clisp.org>
89991         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
89992         linked-list.
89994 2006-07-30  Bruno Haible  <bruno@clisp.org>
89996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
89998 2006-07-30  Bruno Haible  <bruno@clisp.org>
90000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90001         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
90002         get removed.
90004 2006-07-29  Bruno Haible  <bruno@clisp.org>
90006         Make it possible for gnulib-tool to work with locally modified or
90007         augmented gnulib repositories.
90008         * gnulib-tool (func_usage): Document --local-dir option.
90009         (local_gnulib_dir): New variable.
90010         Handle --local-dir option.
90011         (func_lookup_file): New function.
90012         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
90013         (func_get_description, func_get_filelist, func_get_description,
90014         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
90015         func_get_automake_snippet, func_get_include_directive,
90016         func_get_license, func_get_maintainer): Use func_lookup_file.
90017         (func_import, func_create_testdir): Use func_lookup_file.
90019 2006-07-29  Bruno Haible  <bruno@clisp.org>
90021         * modules/setenv (Depends-on): Add unistd.
90023 2006-07-29  Bruno Haible  <bruno@clisp.org>
90025         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
90027 2006-07-29  Bruno Haible  <bruno@clisp.org>
90029         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
90031 2006-07-29  Bruno Haible  <bruno@clisp.org>
90033         * gnulib-tool (import, update): If there is no Makefile.am, look at
90034         aclocal.m4, instead of bailing out.
90036 2006-07-29  Bruno Haible  <bruno@clisp.org>
90038         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
90039         Categorize the options by when they are useful.
90041 2006-07-29  Bruno Haible  <bruno@clisp.org>
90043         * gnulib-tool (func_usage): Document option --no-libtool.
90044         Handle option --no-libtool.
90045         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
90046         for changed semantics of $libtool variable.
90047         (func_import): Likewise. If libtool is not used, show this through
90048         an option --no-libtool.
90049         (func_create_testdir): Update.
90051 2006-07-29  Bruno Haible  <bruno@clisp.org>
90053         * gnulib-tool (func_import): Extend error message about missing
90054         --doc-base.
90056 2006-07-29  Bruno Haible  <bruno@clisp.org>
90058         * gnulib-tool (func_import): Don't create the $docbase directory if
90059         there is no file to store there.
90061 2006-07-29  Bruno Haible  <bruno@clisp.org>
90063         * gnulib-tool (autoconf_minversion): If a --dir option is given and
90064         relevant, look for configure.ac there, not in the current directory.
90065         Also use a simple search for AC_PREREQ, not "autoconf --trace".
90067 2006-07-29  Bruno Haible  <bruno@clisp.org>
90069         * gnulib-tool (SORT): New variable.
90070         (func_usage): Undocument --assume-autoconf option.
90071         Remove --assume-autoconf option handling.
90072         (autoconf_minversion): Determine from the contents of configure.ac.
90073         (func_import): Remove autoconf_minversion handling.
90074         Suggested by Eric Blake.
90076 2006-07-29  Bruno Haible  <bruno@clisp.org>
90078         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
90080 2006-07-29  Bruno Haible  <bruno@clisp.org>
90082         * config/srclist.txt (*setenv.[ch]): Remove rules.
90084 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90086         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
90088 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90090         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
90091         arpa/inet.h.
90093 2006-07-28  Simon Josefsson  <jas@extundo.com>
90095         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
90096         * modules/inet_pton (Depends-on): Likewise.
90098 2006-07-28  Simon Josefsson  <jas@extundo.com>
90100         * m4/netinet_in_h.m4: New file.
90102 2006-07-28  Simon Josefsson  <jas@extundo.com>
90104         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
90105         #include's.
90107 2006-07-28  Simon Josefsson  <jas@extundo.com>
90109         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
90110         #include's.
90112 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
90114         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
90115         setgid on directories only if they set these bits.
90116         * lib/modechange.h: Remove obsolete comment about masks.
90118 2006-07-28  Eric Blake  <ebb9@byu.net>
90120         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
90121         macro expansion.
90123 2006-07-28  Bruno Haible  <bruno@clisp.org>
90125         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
90127 2006-07-28  Bruno Haible  <bruno@clisp.org>
90129         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
90131 2006-07-28  Bruno Haible  <bruno@clisp.org>
90133         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
90134         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
90135         Define fallbacks.
90136         Avoids link error on FreeBSD 4.x.
90137         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90139         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
90140         encoding.
90141         * lib/mbswidth.c (iswcntrl): Likewise.
90143 2006-07-27  Bruno Haible  <bruno@clisp.org>
90145         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
90146         test.
90148 2006-07-27  Bruno Haible  <bruno@clisp.org>
90150         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
90151         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
90152         defined.
90154 2006-07-26  Eric Blake  <ebb9@byu.net>
90156         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
90158 2006-07-26  Eric Blake  <ebb9@byu.net>
90160         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
90161         like mingw that lack mkstemp.
90162         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
90163         avoid compilation warning on mingw.
90165 2006-07-26  Bruno Haible  <bruno@clisp.org>
90167         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
90168         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
90169         INT_FAST*_MIN, INTPTR_MIN.
90171 2006-07-25  Bruno Haible  <bruno@clisp.org>
90173         * modules/version-etc (Depends-on): Add stdarg.
90175 2006-07-25  Bruno Haible  <bruno@clisp.org>
90177         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
90178         complex commands.
90180 2006-07-25  Bruno Haible  <bruno@clisp.org>
90182         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
90183         defined in <stdarg.h> or config.h.
90185 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
90187         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
90188         (gl_STDIO_SAFER): Remove.
90190 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
90192         * MODULES.html.sh (File stream based Input/Output):
90193         Add fopen-safer, tmpfile-safer; remove stdio-safer.
90194         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
90195         * modules/fopen-safer, modules/tmpfile-safer: New files.
90196         * modules/stdio-safer: Remove.
90198 2006-07-24  Bruno Haible  <bruno@clisp.org>
90200         * modules/tmpdir: New file.
90201         * MODULES.html.sh (File system functions): Add it.
90203 2006-07-24  Bruno Haible  <bruno@clisp.org>
90205         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
90206         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
90208 2006-07-24  Bruno Haible  <bruno@clisp.org>
90210         * modules/clean-temp: New file.
90212 2006-07-24  Bruno Haible  <bruno@clisp.org>
90214         * m4/tmpdir.m4: New file, from GNU gettext.
90216 2006-07-24  Bruno Haible  <bruno@clisp.org>
90218         * lib/tmpdir.h: New file, from GNU gettext.
90219         * lib/tmpdir.c: New file, from GNU gettext.
90221 2006-07-24  Bruno Haible  <bruno@clisp.org>
90223         * lib/clean-temp.h: New file, from GNU gettext.
90224         * lib/clean-temp.c: New file, from GNU gettext.
90226 2006-07-23  Eric Blake  <ebb9@byu.net>
90228         * modules/stdio-safer (Files): Add tmpfile-safer.c.
90229         (Depends-on): Add binary-io.
90231 2006-07-23  Eric Blake  <ebb9@byu.net>
90233         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
90235 2006-07-23  Eric Blake  <ebb9@byu.net>
90237         * lib/tmpfile-safer.c: New file.
90238         * lib/stdio-safer.h (fopen_safer): Add prototype.
90239         * lib/stdio--.h (tmpfile): Make safer.
90241 2006-07-23  Bruno Haible  <bruno@clisp.org>
90243         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
90244         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
90245         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
90246         gl_linked_remove_at): Use it.
90248 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90249         and Simon Josefsson <jas@extundo.com>
90251         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
90253         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
90255 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
90257         * modules/close-stream: New file.
90258         * modules/closeout (Description): Make it clear that it exits
90259         with a diagnostic on error.
90260         (Depends-on): Add close-stream.  Remove fpending, stdbool.
90261         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
90263 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
90265         * m4/close-stream.m4: New file.
90267 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
90269         * lib/close-stream.c, lib/close-stream.h: New files.
90271 2006-07-22  Bruno Haible  <bruno@clisp.org>
90273         Merge from GNU gettext 0.15.
90275         2006-05-01  Bruno Haible  <bruno@clisp.org>
90277                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
90279         2006-07-22  Bruno Haible  <bruno@clisp.org>
90281                 * modules/javaversion: New file.
90282                 * MODULES.html.sh (Java): Add javaversion.
90284         2006-03-12  Bruno Haible  <bruno@clisp.org>
90286                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
90288         2005-12-04  Bruno Haible  <bruno@clisp.org>
90290                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
90291                 (untested).
90293         2006-06-21  Bruno Haible  <bruno@clisp.org>
90295                 Avoid warnings from recent versions of mcs.
90296                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
90297                 -o, -L, -r any more. Use options documented since mcs-1.0
90298                 instead. Similarly for -g.
90300         2005-12-04  Bruno Haible  <bruno@clisp.org>
90302                 * build-aux/csharpcomp.sh.in: Suffix for resources is
90303                 .resources, not .resource.
90305         2005-07-09  Bruno Haible  <bruno@clisp.org>
90307                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
90308                 add a .dll suffix.
90309                 Reported by Mark Junker <mjscod@gmx.de>.
90311         2006-07-22  Bruno Haible  <bruno@clisp.org>
90313                 * modules/gettext: Upgrade to gettext-0.15.
90314                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
90315                 m4/visibility.m4.
90316                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
90318 2006-07-22  Bruno Haible  <bruno@clisp.org>
90320         Merge from GNU gettext 0.15.
90322         2006-03-25  Bruno Haible  <bruno@clisp.org>
90324                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
90326         2006-07-21  Bruno Haible  <bruno@clisp.org>
90328                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
90329                 "1.1".
90331         2006-05-09  Bruno Haible  <bruno@clisp.org>
90333                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
90334                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
90335                 for the conftestver execution.
90337         2006-05-01  Bruno Haible  <bruno@clisp.org>
90339                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
90340                 optional target-version argument. Verify that the compiler
90341                 groks source of the specified source-version, or add -source
90342                 option as necessary. Verify that the compiler produces
90343                 bytecode in the specified target-version, or add -target and
90344                 -source options as necessary. Make the result of the test
90345                 available as variable CONF_JAVAC. Also log error output in
90346                 config.log.
90348         2006-03-11  Bruno Haible  <bruno@clisp.org>
90350                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
90352         2006-05-09  Bruno Haible  <bruno@clisp.org>
90354                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
90355                 CLASSPATH_SEPARATOR to a semicolon.
90357         2006-03-12  Bruno Haible  <bruno@clisp.org>
90359                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
90360                 available as variable CONF_JAVA, for subsequent autoconf
90361                 tests. Also log error output in config.log.
90363         2006-07-19  Bruno Haible  <bruno@clisp.org>
90365                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
90366                 that getline works on glibc2 systems. Needed to avoid trouble
90367                 in relocatable.c.
90368                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
90370         2005-12-04  Bruno Haible  <bruno@clisp.org>
90372                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
90373                 launcher (untested).
90375         2005-12-04  Bruno Haible  <bruno@clisp.org>
90377                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
90379         2006-07-22  Bruno Haible  <bruno@clisp.org>
90381                 * gettext.m4: Update from GNU gettext-0.15.
90382                 * nls.m4: Likewise.
90383                 * po.m4: Likewise.
90384                 * inttypes-pri.m4: Likewise.
90385                 * inttypes-h.m4: Renamed from inttypes.m4.
90386                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
90388 2006-07-22  Bruno Haible  <bruno@clisp.org>
90390         Merge from GNU gettext 0.15.
90392         2005-07-05  Bruno Haible  <bruno@clisp.org>
90394                 * printf-args.c (printf_fetchargs): Work around broken
90395                 definition of wint_t on mingw.
90397         2005-02-12  Bruno Haible  <bruno@clisp.org>
90399                 * xallocsa.h: Add extern "C" for C++.
90401         2006-05-17  Bruno Haible  <bruno@clisp.org>
90403                 Cygwin portability.
90404                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
90406         2006-04-30  Bruno Haible  <bruno@clisp.org>
90408                 * progreloc.c: Include <mach-o/dyld.h> if available.
90409                 (find_executable): Use _NSGetExecutablePath when possible.
90411         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
90413                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
90414                 function.
90416         2005-12-29  Bruno Haible  <bruno@clisp.org>
90418                 * progreloc.c (set_program_name_and_installdir): Fix
90419                 compilation error.
90421         2005-12-04  Bruno Haible  <bruno@clisp.org>
90423                 Cygwin portability.
90424                 * progreloc.c: Include <windows.h> also on Cygwin.
90425                 (find_executable): Add support for Cygwin.
90426                 (set_program_name_and_installdir): Handle also platforms with
90427                 nonempty EXEEXT.
90429         2006-07-11  Bruno Haible  <bruno@clisp.org>
90431                 * javacomp.c: Fix a comment.
90432                 Reported by Jim Meyering.
90434         2006-04-30  Bruno Haible  <bruno@clisp.org>
90436                 * javacomp.h (compile_java_class): Add source_version,
90437                 target_version arguments.
90438                 * javacomp.c: Rewritten to choose only a compiler that
90439                 respects the specified source_version and target_version.
90441         2006-06-27  Bruno Haible  <bruno@clisp.org>
90443                 Assume correct S_ISDIR macro.
90444                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
90446         2006-07-22  Bruno Haible  <bruno@clisp.org>
90448                 * javaversion.h: New file, from GNU gettext.
90449                 * javaversion.c: New file, from GNU gettext.
90450                 * javaversion.java: New file, from GNU gettext.
90451                 * javaversion.class: New file, from GNU gettext.
90453         2006-05-17  Bruno Haible  <bruno@clisp.org>
90455                 Cygwin portability.
90456                 * javaexec.c (execute_java_class): Test for jview program
90457                 also on Cygwin.
90459         2006-04-09  Bruno Haible  <bruno@clisp.org>
90461                 * fatal-signal.c: Don't include string.h.
90462                 (at_fatal_signal): Use a copying loop instead of memcpy.
90464         2005-12-04  Bruno Haible  <bruno@clisp.org>
90466                 * csharpexec.c: Add support for 'clix' launcher (untested).
90467                 (execute_csharp_using_sscli): New function.
90468                 (execute_csharp_program): Call it.
90470         2006-06-21  Bruno Haible  <bruno@clisp.org>
90472                 Avoid warnings from recent versions of mcs.
90473                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
90474                 -o, -L, -r any more. Use options documented since mcs-1.0
90475                 instead. Similarly for -g.
90477         2005-07-09  Bruno Haible  <bruno@clisp.org>
90479                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
90480                 add a .dll suffix.
90481                 Reported by Mark Junker <mjscod@gmx.de>.
90483         2006-06-17  Bruno Haible  <bruno@clisp.org>
90485                 * config.charset: Update for NetBSD 3.0.
90487         2006-05-17  Bruno Haible  <bruno@clisp.org>
90489                 Cygwin portability.
90490                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
90492         2006-05-16  Bruno Haible  <bruno@clisp.org>
90494                 * localcharset.c [CYGWIN]: Include <windows.h>.
90495                 (get_charset_aliases): For Cygwin, return the same CPxxx
90496                 aliases list as under WIN32.
90497                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
90498                 the environment variables. Fall back to GetACP().
90500         2006-04-05  Bruno Haible  <bruno@clisp.org>
90502                 * config.charset: Update Juan Manuel Guerrero's address.
90504         2005-02-12  Bruno Haible  <bruno@clisp.org>
90506                 * allocsa.h: Add extern "C" for C++.
90508         2005-02-10  Bruno Haible  <bruno@clisp.org>
90510                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
90511                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
90513         2006-07-22  Bruno Haible  <bruno@clisp.org>
90515                 * gettext.h: Update to GNU gettext-0.15.
90517 2006-07-22  Bruno Haible  <bruno@clisp.org>
90519         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
90520         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
90521         lib-prefix.m4, longdouble.m4, ssize_t.m4.
90523 2006-07-21  Eric Blake  <ebb9@byu.net>
90525         * modules/stdlib-safer: New file.
90526         * MODULES.html.sh (File stream based Input/Output): Add
90527         stdlib-safer.
90529 2006-07-21  Eric Blake  <ebb9@byu.net>
90531         * lib/stdlib-safer.h: New file from coreutils, required by
90532         stdlib--.h.
90534 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
90536         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
90538 2006-07-20  Bruno Haible  <bruno@clisp.org>
90540         * gnulib-tool: Recognize new option --assume-autoconf.
90541         (autoconf_minversion): New variable.
90542         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
90544 2006-07-20  Bruno Haible  <bruno@clisp.org>
90546         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
90548 2006-07-19  Derek R. Price  <derek@ximbiot.com>
90550         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
90551         Reindent and repaginate.
90553 2006-07-19  Derek Price  <derek@ximbiot.com>
90555         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
90556         Correct grammar.
90558 2006-07-17  Bruno Haible  <bruno@clisp.org>
90560         * modules/list: New file.
90561         * modules/array-list: New file.
90562         * modules/carray-list, modules/carray-list-tests: New files.
90563         * modules/linked-list, modules/linked-list-tests: New files.
90564         * modules/avltree-list, modules/avltree-list-tests: New files.
90565         * modules/rbtree-list, modules/rbtree-list-tests: New files.
90566         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
90567         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
90568         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
90569         * modules/oset: New file.
90570         * modules/array-oset: New file.
90571         * modules/avltree-oset, modules/avltree-oset-tests: New files.
90572         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
90573         * tests/test-carray_list.c: New file.
90574         * tests/test-linked_list.c: New file.
90575         * tests/test-avltree_list.c: New file.
90576         * tests/test-rbtree_list.c: New file.
90577         * tests/test-linkedhash_list.c: New file.
90578         * tests/test-avltreehash_list.c: New file.
90579         * tests/test-rbtreehash_list.c: New file.
90580         * tests/test-avltree_oset.c: New file.
90581         * tests/test-rbtree_oset.c: New file.
90582         * MODULES.html.sh (Container data structures): New section.
90584 2006-07-17  Bruno Haible  <bruno@clisp.org>
90586         * m4/gl_list.m4: New file.
90588 2006-07-17  Bruno Haible  <bruno@clisp.org>
90590         * lib/gl_list.h: New file.
90591         * lib/gl_list.c: New file.
90592         * lib/gl_array_list.h: New file.
90593         * lib/gl_array_list.c: New file.
90594         * lib/gl_carray_list.h: New file.
90595         * lib/gl_carray_list.c: New file.
90596         * lib/gl_linked_list.h: New file.
90597         * lib/gl_linked_list.c: New file.
90598         * lib/gl_anylinked_list1.h: New file.
90599         * lib/gl_anylinked_list2.h: New file.
90600         * lib/gl_avltree_list.h: New file.
90601         * lib/gl_avltree_list.c: New file.
90602         * lib/gl_anyavltree_list1.h: New file.
90603         * lib/gl_anyavltree_list2.h: New file.
90604         * lib/gl_rbtree_list.h: New file.
90605         * lib/gl_rbtree_list.c: New file.
90606         * lib/gl_anyrbtree_list1.h: New file.
90607         * lib/gl_anyrbtree_list2.h: New file.
90608         * lib/gl_anytree_list1.h: New file.
90609         * lib/gl_anytree_list2.h: New file.
90610         * lib/gl_linkedhash_list.h: New file.
90611         * lib/gl_linkedhash_list.c: New file.
90612         * lib/gl_anyhash_list1.h: New file.
90613         * lib/gl_anyhash_list2.h: New file.
90614         * lib/gl_avltreehash_list.h: New file.
90615         * lib/gl_avltreehash_list.c: New file.
90616         * lib/gl_rbtreehash_list.h: New file.
90617         * lib/gl_rbtreehash_list.c: New file.
90618         * lib/gl_anytreehash_list1.h: New file.
90619         * lib/gl_anytreehash_list2.h: New file.
90621         * lib/gl_oset.h: New file.
90622         * lib/gl_oset.c: New file.
90623         * lib/gl_array_oset.h: New file.
90624         * lib/gl_array_oset.c: New file.
90625         * lib/gl_avltree_oset.h: New file.
90626         * lib/gl_avltree_oset.c: New file.
90627         * lib/gl_rbtree_oset.h: New file.
90628         * lib/gl_rbtree_oset.c: New file.
90629         * lib/gl_anytree_oset.h: New file.
90631 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
90633         * m4/mkancesdirs.m4: New file.
90634         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
90635         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
90636         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
90637         it.
90639 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
90641         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
90642         * lib/mkancesdirs.h: New files.
90643         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
90644         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
90645         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
90646         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
90647         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
90648         callers changed.  Revamp internals significantly, by not
90649         attempting to create directories that are temporarily more
90650         permissive than the final results.  Do not attempt to use
90651         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
90652         This removes some race conditions, fixes some bugs, and simplifies
90653         things.  Use new dirchownmod function to do owner and mode changes.
90654         * lib/mkdir-p.h: Likewise.
90655         * lib/modechange.c (octal_to_mode): New function.
90656         (struct mode_change): New member mentioned.
90657         (make_node_op_equals): New arg mentioned.  All callers changed.
90658         (mode_compile): Keep track of which mode bits the user has explicitly
90659         mentioned.
90660         (mode_adjust): New arg DIR, so that we implement the X op correctly.
90661         New arg PMODE_BITS, to keep track of which mode bits the user
90662         mentioned; it treats S_ISUID and S_ISGID speciall.
90663         All callers changed.
90664         * lib/modechange.h: Likewise.
90666 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
90668         * MODULES.html.sh: Add mkancestors.
90669         * modules/mkancesdirs: New module.
90670         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
90671         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
90672         The chdir-safer and afs files are now orphans; I'll remove them
90673         unless someone speaks up.
90674         Add lib/dirchownmod.c, lib/dirchownmod.h.
90675         (Depends-on): Remove alloca, chown, save-cwd, dirname.
90676         Add lchown, mkancesdirs.
90677         (Maintainer): Add self.
90679 2006-07-15  Karl Berry  <karl@gnu.org>
90681         * gnulib-tool: help message wording/arrangement.
90683 2006-07-14  Simon Josefsson  <jas@extundo.com>
90685         * doc/gnulib.texi (Libtool and Windows): New section.
90687 2006-07-12  Simon Josefsson  <jas@extundo.com>
90689         * modules/gendocs (License): Fix license, approved by Karl.
90691 2006-07-12  Eric Blake  <ebb9@byu.net>
90693         * MODULES.html.sh: Add gendocs.
90695 2006-07-11  Eric Blake  <ebb9@byu.net>
90697         * modules/fdl: New module, to install doc/fdl.texi.
90698         * MODULES.html.sh: Add new section for documentation modules.
90699         * gnulib-tool: Avoid space-tab.
90700         (--doc-base): New option, to manage files from doc.
90702 2006-07-11  Eric Blake  <ebb9@byu.net>
90704         * m4/absolute-header.m4: Fix comments to match recent change.
90706 2006-07-11  Eric Blake  <ebb9@byu.net>
90708         * gnulib-tool: List --doc-base before --tests-base.
90710 2006-07-11  Derek R. Price  <derek@ximbiot.com>
90712         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
90714 2006-07-11  Bruno Haible  <bruno@clisp.org>
90716         * README: Mention where to put documentation.
90718 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90720         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
90722 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
90724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
90725         to stdint.m4.
90727 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
90729         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
90730         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
90731         "no/such/file/stdint.h" when there is no such file, so that
90732         the resulting C code can be parsed by dodgy compilers.
90733         Problems reported by Bob Proulx.
90735 2006-07-10  Derek R. Price  <derek@ximbiot.com>
90737         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
90738         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
90739         macros into the GNU _D_EXACT_NAMLEN.
90740         * lib/savedir.c:  Likewise.
90741         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
90743 2006-07-10  Derek R. Price  <derek@ximbiot.com>
90744         and Paul Eggert  <eggert@cs.ucla.edu>
90746         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
90747         * m4/savedir.m4:
90748         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
90749         macros into the GNU _D_EXACT_NAMLEN.
90751 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
90754         around the absolute name, to work around a problem with the HP-UX
90755         11.23 native C compiler, reported by Bob Proulx.
90757 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90759         * doc/maintain.texi, make-stds.texi: Sync from
90760         <http://savannah.gnu.org/projects/gnustandards>.
90762 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90764         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
90766 2006-07-09  Jim Meyering  <jim@meyering.net>
90768         * m4/glob.m4: Remove a doubled word in a comment.
90770 2006-07-09  Jim Meyering  <jim@meyering.net>
90772         * lib/argp-pv.c: Remove a doubled word in a comment.
90773         * lib/check-version.c (check_version): Likewise.
90774         * lib/javacomp.c (compile_java_class): Likewise.
90776 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
90778         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
90779         for the benefit of people using Autoconf 2.60.  If you want to
90780         support older Autoconf versions you can copy m4/onceonly_2_57.m4
90781         (or m4/onceonly.m4, if pre-2.57) manually.
90783 2006-07-08  Jim Meyering  <jim@meyering.net>
90785         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
90786         comment.
90787         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
90788         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
90789         comment.
90791 2006-07-08  Jim Meyering  <jim@meyering.net>
90793         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
90795 2006-07-07  Simon Josefsson  <jas@extundo.com>
90797         * tests/test-crc.c: Change expected crc value, the test vector
90798         were probably computed using the old broken crc.c?
90800 2006-07-06  Simon Josefsson  <jas@extundo.com>
90802         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
90803         now the canonical place for the M4 file).
90805         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
90806         from the sys_socket dependency now.
90808         * modules/inet_pton (Files): Ditto.
90810         * modules/inet_ntop (Files): Ditto.
90812 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
90814         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
90815         not gl_PREREQ_GETUSERSHELL.
90817 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90819         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
90820         with only one argument, for Autoconf 2.60.
90821         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
90822         expand to nothing, so add a shell command to avoid syntax error.
90823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
90825 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90827         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
90829 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
90831         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
90832         no longer needed.  Check for isblank decl.
90833         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
90834         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
90835         of existence.
90837 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
90839         * lib/getloadavg.c: Use __VMS, not VMS.
90840         * lib/getopt.c: Likewise.
90841         * lib/getpagesize.h: Likewise.
90842         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
90843         and probably does not work.
90845 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
90847         * lib/.cppi-disable: Add wcwidth.
90848         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
90849         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
90850         (ISGRAPH): Remove.  All uses changed to isgraph.
90851         (FOLD) [!defined _LIBC]: Remove special case.
90852         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
90853         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
90854         HAVE_ISBLANK.
90855         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
90856         case.
90858 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
90860         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
90861         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
90862         brackets.  Other minor changes to suppress some compiler
90863         warnings.
90865 2006-07-06  Derek R. Price  <derek@ximbiot.com>
90866         and Paul Eggert  <eggert@cs.ucla.edu>
90868         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
90869         of invoking obsolescent AC_HEADER_DIRENT macro.
90870         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
90871         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
90872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
90873         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
90874         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
90875         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
90876         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
90877         * m4/readdir.m4: Remove; no longer needed.
90879 2006-07-06  Derek R. Price  <derek@ximbiot.com>
90880         and Paul Eggert  <eggert@cs.ucla.edu>
90882         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
90883         Don't worry about this obsolete case any more.
90884         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
90885         directories.
90886         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
90887         worry about this obsolete case any more.
90888         * lib/fts.c: Likewise.
90889         * lib/getcwd.c: Likewise.
90890         * lib/glob.h: Likewise.
90891         * lib/savedir.c: Likewise.
90893 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
90895         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
90896         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
90897         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
90898         needed.
90899         All uses removed.
90900         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
90901         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
90902         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
90903         needed.
90904         * m4/getdate.m4 (gl_GETDATE): Likewise.
90905         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
90906         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
90907         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
90908         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
90909         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
90910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90911         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
90912         needed.
90914 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
90916         * lib/memcasecmp.c: Include <limits.h>.
90917         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
90918         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
90919         Don't assume isdigit succeeds only on '0' through '9'.
90921 2006-07-05  Eric Blake  <ebb9@byu.net>
90923         * modules/getaddrinfo (Depends-on): Add snprintf.
90925 2006-07-05  Eric Blake  <ebb9@byu.net>
90927         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
90928         to avoid 'header present but could not be compiled' on cygwin.
90930 2006-07-05  Eric Blake  <ebb9@byu.net>
90932         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
90933         missing from netdb.h.
90934         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
90936 2006-07-05  Derek R. Price  <derek@ximbiot.com>
90938         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
90939         no longer needed.
90940         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
90941         * m4/getdate.m4 (gl_GETDATE): Likewise.
90942         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
90943         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
90944         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
90945         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
90946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90948 2006-07-05  Derek R. Price  <derek@ximbiot.com>
90950         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
90951         All uses of is_space replaced by isspace.
90952         * lib/exit.h: Don't talk about STDC_HEADERS.
90953         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
90954         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
90955         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
90956         replaced by isprint etc.
90957         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
90958         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
90959         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
90960         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
90961         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
90962         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
90964 2006-07-05  Bruno Haible  <bruno@clisp.org>
90966         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
90967         the function exists, before testing against AIX.
90968         Reported by Martin Lambers <marlam@marlam.de>.
90970 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
90972         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
90973         From Mark D. Baushke.
90975 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
90977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
90978         to the absolute name, not just one, to bypass Sun C 5.8's
90979         "warning: #include of /usr/include/... may be non-portable".
90981 2006-07-04  Eric Blake  <ebb9@byu.net>
90983         * modules/dirname-tests: New test module.
90984         * tests/test-dirname.c: New file, replacing dirname.c
90985         TEST_DIRNAME section that was recently deleted.
90987 2006-07-04  Bruno Haible  <bruno@clisp.org>
90989         Assume ANSI C header files and <ctype.h> functions.
90990         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
90991         (mbsnwidth): Use isprint, iscntrl instead.
90993 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
90995         Merge from coreutils.
90996         * MODULES.html.sh: Add xstrtold.
90997         * modules/xstrtold: New file.
90998         * modules/cycle-check (Files): Add lib/same-inode.h.
90999         * modules/dirname (Files): Add m4/double-slash-root.m4.
91000         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
91001         * modules/mkdir-p (Files): Add lib/same-inode.h.
91002         * modules/same (Files): Add lib/same-inode.h.
91004 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
91006         * m4/absolute-header.m4: Renamed from full-header-path.m4.
91007         This is to keep the terminology clean; POSIX talks about
91008         "absolute pathnames", not "full pathnames", but the GNU
91009         Coding Standards say to use "path" for something else;
91010         so use "absolute" to keep both sides happy.
91011         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
91012         Set gl_absolute_header, not gl_full_header_path.
91013         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
91014         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
91015         All uses changed.
91017         Merge from coreutils.
91019         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
91021         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
91022         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
91023         want to require the building of c-strtod.o.
91024         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
91025         needs -lm directly.
91026         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
91028         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
91030         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
91031         --as-needed option if available.  Problem reported by Albert Chin in
91032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
91033         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
91034         cc merely issues a bunch of annoying warnings for --as-needed
91035         (this problem was reported by Bob Proulx).  Also, try linking with
91036         -lm to detect a bug in binutils 2.16 (this problem was reported
91037         by Ralf Wildenhues).
91039         2006-06-18  Jim Meyering  <jim@meyering.net>
91041         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
91042         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
91043         macro.
91044         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
91045         also check for glibc-2.4's abort-inducing bug.
91047         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
91048         Low-probability clean-up should be to use rmdir to get rid of
91049         the just-created directory, not unlink.
91051         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
91052         configure fail, and request a bug report to inform us about it.
91053         Add a comment that, barring reports to the contrary, in 2007 we'll
91054         assume ftruncate is universally available.
91056         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
91058         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
91060         2006-03-12  Jim Meyering  <jim@meyering.net>
91062         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
91063         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
91064         * m4/same.m4 (gl_SAME): Likewise.
91065         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
91067         2006-03-11  Eric Blake  <ebb9@byu.net>
91069         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
91070         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
91071         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
91072         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
91074 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
91076         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
91077         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
91078         reported by Mark D. Baushke, one in
91079         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
91081         Merge from coreutils.
91083         * lib/.cppi-disable: Add stdint_.h.
91084         * lib/.cvsignore: Add stdint.h.
91086         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
91088         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
91089         both double and long double versions.
91090         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
91091         * lib/xstrtold.c: New file.
91092         * lib/xstrtod.h (xstrtold): New decl.
91094         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
91096         * lib/filemode.c (setst): Remove.
91097         (strmode): Rewrite to avoid setst.  This makes the code shorter,
91098         (arguably) clearer, and the generated code is a bit smaller on my
91099         Debian GNU/Linux stable x86 host.
91101         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
91103         * lib/filemode.c: Include "filemode.h" first, to test the interface.
91104         Assume that filemode.h includes sys/types.h and sys/stat.h.
91105         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
91106         (ftypelet): Reorder to put common cases first, for efficiency.
91107         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
91108         to do 'M'.
91109         (strmode): Renamed from mode_string, and now stores 12 bytes instead
91110         of 10, for compatibility with FreeBSD.  All callers changed.
91111         (filemodestring): Now stores 12 bytes instead of 10, and sets file
91112         types that can't be deduced solely from st_mode.  First arg is now a
91113         const pointer.
91114         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
91115         (strmode): Renamed from mode_string.
91116         (filemodestring): New decl.
91117         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
91118         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
91119         needed.
91120         (S_ISPORT, S_ISWHT): New macros, if not already defined.
91122         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
91124         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
91125         fsusage.h now does that.  Include fsusage.h first, to test interface.
91126         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
91127         at most one method (the old code could have generated decls that
91128         didn't conform to C89, not that this was ever exercised).
91129         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
91131         2006-03-19  Jim Meyering  <jim@meyering.net>
91133         Work even in a chroot where d_ino values for entries in "/"
91134         don't match the stat.st_ino values for the same names.
91135         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
91136         number, iterate through all entries again, using lstat instead.
91137         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
91138         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
91140         * lib/getcwd.c (__getcwd): Clarify a comment.
91141         Use memcpy in place of a call to strcpy.
91143         2006-03-12  Jim Meyering  <jim@meyering.net>
91145         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
91146         matches that of the current directory (which we're about to chdir ".."
91147         out of), then save the dev-ino of the parent, instead.
91149         * lib/same-inode.h (SAME_INODE): New file/macro.
91150         * lib/chdir-safer.c (SAME_INODE): Remove definition.
91151         Include "same-inode.h", instead.
91152         * lib/same.c: Likewise.
91153         * lib/cycle-check.h: Include "same-inode.h".
91154         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
91155         * lib/cycle-check.c (SAME_INODE): Remove definition.
91156         * lib/root-dev-ino.h: Include "same-inode.h".
91158         2006-03-11  Eric Blake  <ebb9@byu.net>
91160         * lib/same.c (same_name): s/base_name/last_component/
91161         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
91162         * lib/filenamecat.c (file_name_concat): Likewise.
91164         2006-03-11  Eric Blake  <ebb9@byu.net>,
91165                     Paul Eggert  <eggert@cs.ucla.edu>
91167         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
91168         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
91169         drive prefix.
91170         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
91171         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
91172         (last_component): New method.
91173         * lib/dirname.c (dir_len): Determine when drive letters need a
91174         subsequent slash.  Preserve // when it is special.
91175         (dir_name): Don't append dot when drive letter is absolute.
91176         [TEST_DIRNAME]: Move into a full-blown gnulib test.
91177         * lib/basename.c (base_name): New semantics - malloc the result.
91178         Preserve // when it is special.  Preserve relative files that look
91179         like drive letters.
91180         (base_len): Preserve // when it is special.
91181         (last_component): New method, similar to old base_name semantics.
91182         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
91183         base_name.  Strip redundant slashes from ///.
91185 2006-07-03  Jim Meyering  <jim@meyering.net>
91187         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
91188         macro is used before the first cycle_check call.
91190 2006-07-03  Eric Blake  <ebb9@byu.net>
91192         * modules/dirname (Depends-on): Add xstrndup.
91194 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
91196         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
91197         test cases, so that config.log is a bit easier to follow.
91199 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
91201         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
91202         both are 64 bits, since this seems to be the tradition, and this
91203         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
91204         we ever run into a host that prefers long long to long in this
91205         case, we'll need another configure-time test.  Problem reported by
91206         Jim Meyering.
91208 2006-07-02  Eric Blake  <ebb9@byu.net>
91210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
91212 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
91214         * modules/inttypes (Depends-on): No longer depends on stdint.
91215         * modules/stdint (Description): Say more about assumptions.
91216         Say that the fast types might differ.  Say macros are used.
91217         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
91218         (Makefile.am): Revise list of substituted symbols to match
91219         new stdint.m4.
91220         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
91221         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
91222         * tests/test-stdint.c (verify_same_types)
91223         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
91224         the code conforms to C99/C89.
91225         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
91226         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
91228 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
91230         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
91231         but fix a bug, by requiring at least 64 bits.
91232         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
91233         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
91234         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
91235         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91237         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
91238         changes.  Make 2.59 a prerequisite.  Check and substitute for
91239         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
91240         inttypes.h.  Do not use special include files; just use the
91241         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
91242         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
91243         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
91244         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
91245         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
91246         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
91247         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
91248         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
91249         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
91250         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
91251         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
91252         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
91253         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
91254         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
91255         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
91256         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
91257         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
91258         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
91259         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
91260         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
91261         WINT_MAX.  Check for C99 conformance more strictly, by detecting
91262         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
91263         not check for things that C99 does not require, e.g., int8_t.  If
91264         a test isn't needed unless <stdint.h> isn't working, and is
91265         unlikely to be needed for any other reason, then don't do it
91266         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
91267         size_t, since we assume C89 freestanding at least.  Do not check
91268         for sig_atomic_t, wchar_t, or wint_t, since the code now does
91269         the right thing even if the types are not defined.  Instead use:
91270         (gl_STDINT_TYPE_PROPERTIES): New macro.
91271         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
91272         testing whether <sys/types.h> clashes, as Autoconf does this for
91273         us now.  All uses removed.
91274         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
91275         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
91276         (gl_CHECK_TYPE_SAME):
91277         Remove; no longer needed.
91278         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
91279         exists, since we'll return 0 anyway in that case.
91280         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
91282 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
91284         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
91285         possible collision with system files.
91286         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
91287         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
91288         WCHAR_MIN and WCHAR_MAX in this case.
91289         (<stddef.h>): Do not include; no longer needed.
91290         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
91291         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
91292         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
91293         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
91294         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
91295         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
91296         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
91297         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
91298         !defined(__c99))]: Include in this case too, since it's harmless
91299         now.
91300         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
91301         dangerous to do so.
91302         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
91303         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
91304         (_STDINT_MIN, _STDINT_MAX): New macros.
91305         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
91306         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
91307         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
91308         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
91309         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
91310         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
91311         macros, not typedefs; this simplifies things quite a bit.
91312         Use long int for all types narrower than int64_t.
91313         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
91314         Define in terms of long long int or int64_t or long int,
91315         not int64_t or int32_t.  This saves some compile-time testing.
91316         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
91317         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
91318         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
91319         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
91320         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
91321         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
91322         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
91323         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
91324         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
91325         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
91326         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
91327         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
91328         undef any previous version and define our own version, for
91329         simplicity and consistency with the new macros for types.
91330         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
91331         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
91332         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
91333         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
91334         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
91335         @WINT_T_SUFFIX@ to keep things simple here.
91336         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
91337         Simplify by assuming typical 8/16/32/64 host, since we're
91338         already doing that elsewhere anyway.
91339         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
91340         and assume long long int is 64 bits if available.  This
91341         speeds up 'configure'.
91343 2006-07-01  Eric Blake  <ebb9@byu.net>
91345         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
91346         Reported by Andreas Buening.
91348 2006-07-01  Eric Blake  <ebb9@byu.net>
91350         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
91352 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
91354         * lib/getaddrinfo.c: fixed typo
91356 2006-06-29  Jim Meyering  <jim@meyering.net>
91358         * modules/strftime (Maintainer): Add my name, since with the
91359         FPRINTFTIME changes strftime.c has forked from glibc.
91361 2006-06-29  Eric Blake  <ebb9@byu.net>
91363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
91365 2006-06-29  Eric Blake  <ebb9@byu.net>
91367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
91369 2006-06-29  Eric Blake  <ebb9@byu.net>
91371         * lib/stat_.h: New file.
91373 2006-06-29  Eric Blake  <ebb9@byu.net>
91375         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
91376         unused static function.
91378 2006-06-29  Eric Blake  <ebb9@byu.net>
91380         * doc/functions.texi (Function Portability): Document missing lstat
91381         on mingw.
91383 2006-06-29  Eric Blake  <ebb9@byu.net>
91385         * MODULES.html.sh: Add sys_stat.
91386         * modules/sys_stat: New module.
91387         * modules/mkstemp (Depends-on): Add sys_stat.
91389 2006-06-29  Derek R. Price  <derek@ximbiot.com>
91391         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
91393 2006-06-29  Derek R. Price  <derek@ximbiot.com>
91395         * m4/c-bs-a.m4: Removed.
91397 2006-06-29  Derek R. Price  <derek@ximbiot.com>
91399         * lib/strftime.c: Assume strftime() exists.
91401 2006-06-29  Derek Price  <derek@ximbiot.com>
91403         * modules/c-bs-a: Removed - \a is C89.
91404         * MODULES.html.sh: Remove c-bs-a.
91406 2006-06-29  Bruno Haible  <bruno@clisp.org>
91408         * modules/wcwidth (License): Change to LGPL.
91410 2006-06-28  Simon Josefsson  <jas@extundo.com>
91412         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
91413         on _WIN32.
91415         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
91416         getnameinfo.
91418 2006-06-28  Simon Josefsson  <jas@extundo.com>
91420         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
91422 2006-06-28  Simon Josefsson  <jas@extundo.com>
91424         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
91425         functions there.  It will succeed on Windows XP, but on Windows
91426         2000 and (presumably) earlier, it will fail, and use the internal
91427         re-implementation.
91428         (use_win32_p): New function.
91429         (getaddrinfo): Use strtoul on servname, to support numeric ports.
91430         Support AI_NUMERICSERV to disable getservbyname.
91431         (getnameinfo): New function, only supports
91432         NI_NUMERICHOST|NI_NUMERICSERV for now.
91434         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
91435         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
91436         getnameinfo.
91438 2006-06-28  Eric Blake  <ebb9@byu.net>
91440         * modules/wcwidth: New file.
91441         * modules/mbchar (Depends-on): Add wcwidth.
91442         * modules/mbswidth (Depends-on): Add wcwidth.
91443         * MODULES.html.sh: Add wcwidth.
91445 2006-06-28  Eric Blake  <ebb9@byu.net>
91447         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
91448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
91450 2006-06-28  Eric Blake  <ebb9@byu.net>
91452         * lib/xvasprintf.h: Fix comments.
91454 2006-06-28  Eric Blake  <ebb9@byu.net>
91456         * lib/mbchar.h (wcwidth): Include wcwidth.h.
91457         * lib/mbswidth.c (wcwidth): Move from here...
91458         * lib/wcwidth.h: ...to this new file.
91460 2006-06-28  Derek R. Price  <derek@ximbiot.com>
91462         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
91464         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
91465         it's obsolete.
91466         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
91468 2006-06-28  Derek R. Price  <derek@ximbiot.com>
91470         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
91471         Autoconf 2.60 says this stuff was obsolete.
91473 2006-06-28  Bruno Haible  <bruno@clisp.org>
91475         * modules/wcwidth (Files): Add m4/wchar_t.m4.
91477 2006-06-28  Bruno Haible  <bruno@clisp.org>
91479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
91480         gt_TYPE_WCHAR_T.
91482 2006-06-28  Bruno Haible  <bruno@clisp.org>
91484         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
91485         declaration for wcwidth.
91486         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
91488 2006-06-28  Bruno Haible  <bruno@clisp.org>
91490         * lib/mkdtemp.c [MINGW]: Include <io.h>.
91491         (mkdir): Define using _mkdir.
91493 2006-06-28  Bruno Haible  <bruno@clisp.org>
91495         * lib/getaddrinfo.h: Fix POSIX URL.
91496         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
91497         _WIN32.
91498         (use_win32_p): Make static.
91499         (getaddrinfo): Reject service name if it is empty or does not consist
91500         solely of decimal digits, or if its value is > 65535.
91501         (getnameinfo): Remove useless casts.
91503 2006-06-27  Simon Josefsson  <jas@extundo.com>
91505         * modules/sys_select: New file, suggested by Bruno Haible, Paul
91506         Eggert and Martin Lambers.
91508 2006-06-27  Simon Josefsson  <jas@extundo.com>
91510         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
91511         Eggert and Martin Lambers.
91513 2006-06-27  Bruno Haible  <bruno@clisp.org>
91515         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
91516         result to 0, not to empty.
91517         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
91519 2006-06-27  Bruno Haible  <bruno@clisp.org>
91521         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
91523 2006-06-26  Simon Josefsson  <jas@extundo.com>
91525         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
91526         present.
91528 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
91530         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
91531         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
91532         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
91534 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
91536         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
91538 2006-06-26  Bruno Haible  <bruno@clisp.org>
91540         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
91542 2006-06-26  Bruno Haible  <bruno@clisp.org>
91544         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
91546 2006-06-26  Bruno Haible  <bruno@clisp.org>
91548         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
91549         SGI C compiler in pre-C99 mode.
91550         Suggested by Mark D. Baushke and Larry Jones.
91552 2006-06-26  Bruno Haible  <bruno@clisp.org>
91554         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
91555         WCHAR_MAX.
91556         Reported by Mark D. Baushke and Larry Jones.
91558 2006-06-26  Bruno Haible  <bruno@clisp.org>
91560         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
91561         in pre-C99 mode.
91562         Suggested by Mark D. Baushke and Larry Jones.
91564 2006-06-23  Simon Josefsson  <jas@extundo.com>
91565             Bruno Haible  <bruno@clisp.org>
91567         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
91568         Emit mostlyclean-local rule.
91569         (func_emit_tests_Makefile_am): Likewise.
91570         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
91572 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
91574         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
91576 2006-06-23  Bruno Haible  <bruno@clisp.org>
91578         * tests/test-stdint.c: Update to match ISO C 99 Technical
91579         Corrigendum 1.
91581 2006-06-23  Bruno Haible  <bruno@clisp.org>
91583         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
91585 2006-06-23  Bruno Haible  <bruno@clisp.org>
91587         * lib/stdint_.h: Treat IRIX like OpenBSD.
91589 2006-06-23  Bruno Haible  <bruno@clisp.org>
91591         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
91592         ISO C 99 Technical Corrigendum 1.
91594 2006-06-22  Simon Josefsson  <jas@extundo.com>
91596         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
91597         MinGW.
91599 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91601         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
91602         needed.  Some compiler complained about some of them.  Problem reported
91603         by Larry Jones in
91604         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
91606 2006-06-21  Simon Josefsson  <jas@extundo.com>
91608         * tests/test-getaddrinfo.c: New file.
91610         * modules/getaddrinfo-tests: New file.
91612         * MODULES.html.sh: Add inet_pton.
91614         * modules/inet_pton: New file.
91616 2006-06-21  Simon Josefsson  <jas@extundo.com>
91618         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
91619         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
91620         of using the (limited) gnulib implementation on Windows XP.
91622         * m4/inet_pton.m4: New file.
91624 2006-06-21  Simon Josefsson  <jas@extundo.com>
91626         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
91627         variable.
91629         * lib/socket_.h: Don't define WINVER.
91631         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
91632         slightly modified to work in gnulib.
91634 2006-06-21  Simon Josefsson  <jas@extundo.com>
91636         * doc/gnulib.texi (Windows sockets): Add.
91638 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
91640         * lib/read-file.c (fread_file): Start with buffer allocation of
91641         0 bytes rather than 1 byte; this simplifies the code.
91642         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
91643         code to free buffer and save/restore errno.
91644         (internal_read_file): Remove unused local.
91646 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
91648         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
91649         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
91650         Problem reported by Denis Excoffier in
91651         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
91653 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91655         * modules/sys_socket, modules/socklen: Include sys/types since
91656         FreeBSD 4.x's sys/socket.h needs it.
91658 2006-06-19  Simon Josefsson  <jas@extundo.com>
91660         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
91662 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
91664         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
91666 2006-06-19  Bruno Haible  <bruno@clisp.org>
91668         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
91669         and FULL_PATH_INTTYPES_H in angle brackets.
91670         Reported by Mark D. Baushke <mdb@gnu.org>.
91672 2006-06-17  Eric Blake  <ebb9@byu.net>
91674         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
91675         errno.
91677 2006-06-17  Bruno Haible  <bruno@clisp.org>
91679         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
91680         <sys/inttypes.h>.
91682 2006-06-17  Bruno Haible  <bruno@clisp.org>
91684         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
91685         whether errno is declared. Assume <errno.h> declares errno.
91687 2006-06-17  Bruno Haible  <bruno@clisp.org>
91689         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
91691 2006-06-17  Bruno Haible  <bruno@clisp.org>
91693         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
91694         problem on Solaris 2.5.1.
91696 2006-06-16  Eric Blake  <ebb9@byu.net>
91698         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
91699         * lib/unicodeio.c [!defined errno]: Likewise.
91700         * lib/strtol.c [!defined errno]: Likewise.
91701         * lib/strtod.c [!defined errno]: Likewise.
91703 2006-06-15  Eric Blake  <ebb9@byu.net>
91705         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
91707 2006-06-15  Eric Blake  <ebb9@byu.net>
91709         * config/srclist.txt (ssize_t.m4): Lose sync.
91711 2006-06-15  Bruno Haible  <bruno@clisp.org>
91713         * modules/stdint (Files): Include m4/full-header-path.m4,
91714         m4/size_max.m4, m4/wchar_t.m4.
91715         (Makefile.am): Many more substitutions.
91716         * modules/stdint-tests: New file.
91717         * tests/test-stdint.c: New file.
91719 2006-06-15  Bruno Haible  <bruno@clisp.org>
91721         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
91722         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
91723         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
91724         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
91725         gl_CHECK_TYPE_SAME): New macros.
91727 2006-06-15  Bruno Haible  <bruno@clisp.org>
91729         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
91731 2006-06-15  Bruno Haible  <bruno@clisp.org>
91733         * lib/stdint_.h: Rewritten to be fully auto-configured.
91734         Fixes bug on HP-UX/IA64.
91736 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
91738         * lib/getdate.y (__attribute__): Don't define if already defined.
91739         Problem reported by Larry Jones.
91740         * lib/utimens.c (__attribute__): Likewise.
91742 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
91744         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
91745         reported by Andreas Schwab.
91747 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91748             Bruno Haible  <bruno@clisp.org>
91750         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
91751         check for the declaration of strnlen and a run test that exposes the
91752         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
91753         rpl_strndup.
91755 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91756             Bruno Haible  <bruno@clisp.org>
91758         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
91760 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91762         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
91763         compile test, for Tru64 4.0D.
91765 2006-05-28  Karl Berry  <karl@gnu.org>
91767         * config/srclist.txt (printf-args.c): lose sync.
91769 2006-05-26  Martin Lambers  <marlam@marlam.de>
91771         * lib/getpass.c: Updates the test for the native W32 API, and adds
91772         missing includes, thus fixing compilation warnings.
91774 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
91776         * lib/exclude.c (exclude_fnmatch): New function.
91777         (excluded_file_name): Call exclude_fnmatch.
91778         * lib/exclude.h (excluded_file_name): New prototype
91780 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
91782         * lib/tempname.c (small_open, large_open): New macros.
91783         (__open, __open64) [!_LIBC]: Remove.
91784         (__gen_tempname): Use small_open and large_open instead of __open
91785         and __open64.  This fixes a portability bug on HP-UX 11.11i
91786         reported by Simon Wing-Tang in
91787         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
91789 2006-05-24  Bruno Haible  <bruno@clisp.org>
91791         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
91792         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
91793         Reported by Thorsten Maerz <torte@netztorte.de> via
91794         Aaron Stone <aaron@serendipity.cx>.
91796 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
91799         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
91800         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
91801         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
91802         not really conditional on the cache.
91803         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
91805 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91807         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
91808         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
91809         (my_usleep): Don't mishandle maximum value.
91811 2006-05-19  Jim Meyering  <jim@meyering.net>
91813         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
91815 2006-05-17  Bruno Haible  <bruno@clisp.org>
91817         Cygwin portability.
91818         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
91820 2006-05-17  Bruno Haible  <bruno@clisp.org>
91822         * lib/stdint_.h: Fix recognition of Cygwin.
91824 2006-05-15  Bruno Haible  <bruno@clisp.org>
91826         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
91827         on libtool patch by Ralf Wildenhues.
91829 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
91831         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
91832         test for C99 conformance; (bool) 0.5 is an integer constant
91833         expression, but (bool) -0.5 is not.  Problem reported by Fedor
91834         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
91836 2006-05-11  Simon Josefsson  <jas@extundo.com>
91838         * m4/xvasprintf.m4: Fix obvious typo.
91840 2006-05-11  Jim Meyering  <jim@meyering.net>
91842         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
91843         James Lemley.
91845 2006-05-10  Simon Josefsson  <jas@extundo.com>
91847         * lib/md4.c: Typo fix, update copyright years.
91848         (K1, K2): Don't use L because it turn computations into 64-bit on
91849         64-bit platforms.
91851 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
91853         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
91854         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
91855         unwanted sign propagation, e.g., on hosts with 64-bit int.
91856         There still are some problems with reeelly weird theoretical hosts
91857         (e.g., 33-bit int) but it's not worth worrying about now.
91858         * lib/sha1.c (rol): Likewise.
91859         (K1, K2, K3, K4): Remove unnecessary L suffix.
91861 2006-05-10  Bruno Haible  <bruno@clisp.org>
91863         * lib/des.c: Cast to avoid warnings.
91865 2006-05-09  Bruno Haible  <bruno@clisp.org>
91867         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
91868         (Depends-on): Depend also on xsize, stdarg.
91869         (configure.ac): Add gl_XVASPRINTF.
91871 2006-05-09  Bruno Haible  <bruno@clisp.org>
91873         * m4/xvasprintf.m4: New file.
91875 2006-05-09  Bruno Haible  <bruno@clisp.org>
91877         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
91878         (EOVERFLOW): Define fallback value.
91879         (xstrcat): New function.
91880         (xvasprintf): Recognize the special case of a string concatenation.
91882 2006-05-08  Eric Blake  <ebb9@byu.net>
91884         * gnulib-tool (func_version): Base copyright year on CVS date.
91885         (func_emit_copyright_notice): New function.
91886         (func_emit_lib_Makefile_am): Use it.
91887         (func_emit_tests_Makefile_am): Likewise.
91888         (func_import): Likewise.
91890 2006-05-08  Bruno Haible  <bruno@clisp.org>
91892         * modules/stdarg: New file.
91893         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
91895 2006-05-08  Bruno Haible  <bruno@clisp.org>
91897         * m4/stdarg.m4: New file, from GNU gettext.
91899 2006-05-08  Bruno Haible  <bruno@clisp.org>
91901         * config/srclist.txt (build-aux/config.rpath): different from latest
91902         release.
91904 2006-05-08  Bruno Haible  <bruno@clisp.org>
91906         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
91908 2006-05-05  Jim Meyering  <jim@meyering.net>
91910         * m4/warning.m4: New file, derived from bison's file by the same name.
91912 2006-05-03  Bruno Haible  <bruno@clisp.org>
91914         * lib/stdint_.h: Shorter URL.
91915         * lib/inttypes.h: Likewise.
91917 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
91919         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
91921 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
91923         * lib/verify.h: Document the internals better.  Most of this change
91924         was written by Bruno Haible.
91926 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
91928         * doc/verify.texi: New file, partly based on a proposal by
91929         Bruno Haible.
91931 2006-05-02  Bruno Haible  <bruno@clisp.org>
91933         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
91934         test from here...
91935         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
91937 2006-04-29  Bruno Haible  <bruno@clisp.org>
91939         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
91940         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
91942 2006-04-29  Bruno Haible  <bruno@clisp.org>
91944         * gnulib-tool: Make --update option actually work.
91946 2006-04-29  Bruno Haible  <bruno@clisp.org>
91948         * doc/gcd.texi: New file.
91949         * doc/gnulib.texi: Include it.
91951 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
91953         * lib/getdate.y (get_date): When adding relative date, start with the
91954         initial time, not with the result of the first mktime call.
91956 2006-04-25  Bruno Haible  <bruno@clisp.org>
91958         * gnulib-tool (func_import): Output the include directives in three
91959         blocks, sorted separately.
91960         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91962 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
91964         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
91965         to define main with arguments, for C++.  Reported by Eric Blake.
91966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
91967         Prefer 'int main ()' to 'int main (void)', for C++.
91968         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
91969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
91970         for 'main', for C99 and C++.
91972 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
91974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
91975         Don't assume that exit status -1 is valid.
91976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
91977         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91978         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
91979         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
91980         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
91981         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
91982         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
91983         functions can be used without declaring them, or that you can
91984         exit with status -1.
91985         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
91987 2006-04-24  Karl Berry  <karl@gnu.org>
91989         * config/srclist.txt (longdouble.m4): sync lost.
91991 2006-04-24  Eric Blake  <ebb9@byu.net>
91993         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
91995 2006-04-24  Bruno Haible  <bruno@clisp.org>
91997         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
91998         poll() implementation in AIX.
91999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92001 2006-04-24  Bruno Haible  <bruno@clisp.org>
92003         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
92004         assigned exactly once.
92006 2006-04-23  Claudio Fontana  <claudio@gnu.org>
92007             Bruno Haible  <bruno@clisp.org>
92009         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
92010         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
92011         for AM_CPPFLAGS.
92013 2006-04-23  Bruno Haible  <bruno@clisp.org>
92015         * modules/copy-file: Depend on unistd.
92016         * modules/execute: Likewise.
92017         * modules/fatal-signal: Likewise.
92018         * modules/findprog: Likewise.
92019         * modules/mkdtemp : Likewise.
92020         * modules/pipe: Likewise.
92021         * modules/wait-process: Likewise.
92023 2006-04-23  Bruno Haible  <bruno@clisp.org>
92025         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
92026         condition was already detected.
92027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92029 2006-04-23  Bruno Haible  <bruno@clisp.org>
92031         * lib/copy-file.c: Include <unistd.h> unconditionally.
92032         * lib/execute.c: Likewise.
92033         * lib/fatal-signal.c: Likewise.
92034         * lib/findprog.c: Likewise.
92035         * lib/mkdtemp.c: Likewise.
92036         * lib/pipe.h: Likewise.
92037         * lib/pipe.c: Likewise.
92038         * lib/wait-process.h: Likewise.
92040 2006-04-23  Bruno Haible  <bruno@clisp.org>
92042         * gnulib-tool (func_usage): Fix --import description. Document
92043         --update.
92044         (func_import): Create temporary file in a temporary directory, if
92045         --dry-run is specified. Silence errors from 'grep' when there are no
92046         m4 files in $m4dir.
92047         (func_create_testdir): Silence errors from 'grep' when there are no
92048         m4 files in $m4dir.
92049         Reported by Karl Berry <karl@freefriends.org>.
92051 2006-04-20  Bruno Haible  <bruno@clisp.org>
92053         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
92054         one argument, so that the code will be portable to Autoconf 2.60.
92055         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
92056         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
92057         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
92059 2006-04-19  Derek Price  <derek@ximbiot.com>
92060             Eric Blake  <ebb9@byu.net>
92062         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
92063         rather than "/full/path.h".  Update comment to match.  Shorten &
92064         generalize m4_translit call via AS_TR_CPP.
92066 2006-04-19  Derek Price  <derek@ximbiot.com>
92067             Eric Blake  <ebb9@byu.net>
92069         * lib/inttypes.h: Correct grammar in comment.
92071 2006-04-18  Derek Price  <derek@ximbiot.com>
92072             Paul Eggert  <eggert@cs.ucla.edu>
92074         * modules/inttypes: New file.
92075         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
92077 2006-04-18  Derek Price  <derek@ximbiot.com>
92078             Paul Eggert  <eggert@cs.ucla.edu>
92080         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
92081         New files.
92083 2006-04-18  Derek Price  <derek@ximbiot.com>
92084             Paul Eggert  <eggert@cs.ucla.edu>
92086         * lib/inttypes.h: New file.
92087         * lib/strtoimax.c: Assume <inttypes.h>.
92089 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
92091         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
92092         isn't mounted.  Problem reported by Kir Kolyshkin.
92094 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
92096         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
92097         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
92098         Derek R. Price.
92099         * lib/regex.h (RE_DUP_MAX): Update comment to match current
92100         implementation.
92102 2006-04-12  Eric Blake  <ebb9@byu.net>
92104         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
92105         is now done automatically by the corresponding Autoconf macro.
92107 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
92109         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
92110         time_r.h.
92112 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
92114         Merge regex changes from libc, removing some of our
92115         POSIX-conformance changes that were rejected and redoing them in a
92116         less-intrusive way.
92118         * lib/regcomp.c (re_compile_internal, init_dfa):
92119         Length arg is now size_t, not Idx.  All uses changed.
92120         (peek_token): Forward decl now says internal_function.
92121         (__re_error_msgid, __re_error_msgid_idx):
92122         Now static rather than extern with attribute_hidden.
92123         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
92124         For some reason libc prefers K&R style defns for external functions.
92125         (regerror) [!defined _LIBC]: Likewise.
92126         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
92127         (seek_collating_symbol_entry, lookup_collation_sequence_value):
92128         (build_range_exp, build_collating_symbol):
92129         Use K&R-style defn.
92130         (re_compile_fastmap): Use '\0' to memset, not 0.
92131         (utf8_sb_map): Make the calculations more obvious.
92132         (init_dfa, parse_bracket_exp, build_charclass_op):
92133         Call calloc and cast result, as glibc does.
92134         (init_word_char, fetch_token, peek_token, peek_token_bracket):
92135         (build_range_exp, build_collating_symbol):
92136         Now internal functions.
92138         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
92140         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
92141         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
92142         Don't depend on VMS; depend on __VMS instead, for POSIX
92143         namespace cleanness.
92144         (regoff_t): Define to ssize_t, not long int.
92146         Remove the REG_ macros named below.  Instead, make the old names
92147         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
92148         __USE_GNU_REGEX.
92149         (REG_BACKSLASH_ESCAPE_IN_LISTS):
92150         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
92151         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
92152         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
92153         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
92154         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
92155         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
92156         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
92157         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
92158         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
92159         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
92160         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
92161         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
92162         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
92163         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
92164         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
92165         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
92166         (REG_NREGS):
92167         Remove.  All uses replaced by the old RE_* names.
92168         (RE_BACKSLASH_ESCAPE_IN_LISTS):
92169         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
92170         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
92171         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
92172         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
92173         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
92174         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
92175         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
92176         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
92177         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
92178         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
92179         Don't bother having these macros be independent of each others'
92180         values, since they no longer exist in the POSIX name space.
92182         Rename the following member names back to their old names,
92183         unless !__USE_GNU_REGEX.  All uses changed back.
92184         (buffer): Renamed from re_buffer.
92185         (allocated): Renamed from re_allocated.
92186         (used): Renamed from re_used.
92187         (syntax): Renamed from re_syntax.
92188         (fastmap): Renamed from re_fastmap.
92189         (translate): Renamed from re_translate.
92190         (can_be_null): Renamed from re_can_be_null.
92191         (regs_allocated): Renamed from re_regs_allocated.
92192         (fastmap_accurate): Renamed from re_fastmap_accurate.
92193         (no_sub): Renamed from re_no_sub.
92194         (not_bol): Renamed from re_not_bol.
92195         (not_eol): Renamed from re_not_eol.
92196         (newline_anchor): Renamed from re_newline_anchor.
92197         (num_regs): Renamed from rm_num_regs.
92198         (start): Renamed from rm_start.
92199         (end): Renamed from rm_end.
92201         (free_state): Move up a bit.
92203         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
92204         #define to be empty.
92205         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
92206         when that is what is intended.
92207         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
92208         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
92209         (MAX): New macro.
92210         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
92211         All uses changed back to re_malloc, etc.  It's now the caller's
92212         responsibility to check for overflow; all callers changed.
92213         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
92214         (re_x2nrealloc): Remove.
92215         (free_state): Remove decl.
92217         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
92218         (re_set_registers, re_exec):
92219         Use K&R-style defn.
92221         2006-01-31  Roland McGrath  <roland@redhat.com>
92223         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
92224         Reported by Mike Frysinger <vapier@gentoo.org>.
92226         2006-01-15  Andreas Jaeger  <aj@suse.de>
92228         [BZ #1950]
92229         * lib/regex_internal.c (re_string_reconstruct): Adjust for
92230         build_wcs_upper_buffer change.
92231         (build_wcs_upper_buffer): Change return type.
92233         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
92235         * lib/regex_internal.h: Include <stdint.h> if available.
92237         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
92239         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
92241         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
92243         * lib/regcomp.c: Adjust for changed secondary hash function.
92245         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
92247         * lib/regex.h: Pretty printing.
92248         Clean up namespace a bit.
92250         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
92252         * lib/regexec.c (update_cur_sifted_state, check_arrival,
92253         check_arrival_add_next_nodes): Avoid using uninitialized variable.
92255         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
92256                     Ulrich Drepper  <drepper@redhat.com>
92258         [BZ #1302]
92259         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
92260         changed.
92261         (bitset_word_t): Renamed from bitset_word.  All uses changed.
92263         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
92265         [BZ #281]
92266         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
92267         * lib/regcomp.c: Remove unnecessary uses of
92268         unsigned RE_TRANSLATE_TYPE.
92269         * lib/regex_internal.h: Likewise.
92270         * lib/regex_internal.c: Likewise.
92271         * lib/regexec.c: Likewise.
92272         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
92274         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
92276         * lib/regexec.c (find_recover_state): Remove unnecessary
92277         initialization.
92278         (transit_state_bkref): Make DFA a const pointer.
92279         (get_subexp): Likewise.
92280         (check_arrival): Likewise.
92281         (update_cur_sifted_state): Likewise.
92282         (re_search_internal): Likewise.
92283         (prune_impossible_nodes): Likewise.
92284         (acquire_init_state_context): Likewise.
92285         (proceed_next_node): Likewise.
92286         (set_regs): Likewise.
92287         (free_fail_stack_return): Likewise.
92288         (check_arrival_expand_ecl): Mark DFA parameter as const.
92289         (check_arrival_expand_ecl_sub): Likewise.
92290         (check_subexp_limits): Likewise.
92291         (sub_epsilon_src_nodes):  Likewise.
92292         (add_epsilon_src_nodes):  Likewise.
92293         (merge_state_array): Likewise.
92294         (update_regs): Likewise.
92295         (build_trtable): Likewise.
92296         (sift_states_backward): Mark MCTX parameter as const.
92297         (build_sifted_states): Likewise.
92298         (update_cur_sifted_state): Likewise.
92299         (sift_states_mkref): Likewise.
92300         (check_arrival_expand_ecl): Mark eclosure as const.
92301         (check_dst_limits_calc_pos_1): Likewise.
92302         * lib/regex_internal.h (re_match_context_t): Make dfa a const
92303         pointer.
92305         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
92307         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
92308         (transit_state_sb): Likewise.
92309         (transit_state_mb): Likewise.
92310         (sift_states_iter_mb): Likewise.
92311         (check_arrival_add_next_nodes): Likewise.
92312         (check_node_accept_bytes): Change first parameter to pointer-to-const.
92313         [_LIBC] (re_search_2_stub): Use mempcpy.
92315         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
92316         mbrtowc for very simple UTF-8 case.
92318         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
92319         a pointer-to-const.
92320         (re_acquire_state_context): Likewise.
92321         * lib/regex_internal.h: Adjust prototypes.
92323         * lib/regex.c: Prevent using C++ compilers.
92325         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
92326         (re_acquire_state_context): Likewise.
92328 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
92330         * modules/regex (Depends-on): Add ssize_t.
92332 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
92334         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
92335         translation table.
92337 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
92339         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
92341 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
92342             Bruno Haible  <bruno@clisp.org>
92344         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
92345         <sys/types.h> and <inttypes.h>.
92347 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92349         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
92350         `__error_t_defined', so argp.h will not typedef the former.
92352 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
92354         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
92355         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
92356         glibc names.  Even if glibc is changed to conform to POSIX, the
92357         traditional names will be available anyway, since regex depends on
92358         the extensions module.  Also, fix a longstanding typo in the
92359         implementation of Spencer ERE test #75 from grep 2.3.  Problems
92360         reported by Emanuele Giaquinta.  Also, change sense of cached
92361         variable, so that the message makes sense.
92363 2006-03-24  Simon Josefsson  <jas@extundo.com>
92365         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
92366         including some doc fixes.
92367         (base64_encode_alloc): Fix +1 bug on allocation failures.
92369 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92371         * lib/base64.c (base64_encode): Do not read past end of array with
92372         unsanitized input on systems with CHAR_BIT > 8.
92374 2006-03-24  Eric Blake  <ebb9@byu.net>
92376         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
92378 2006-03-22  Karl Berry  <karl@gnu.org>
92380         * config/srclist.txt (*setenv.[ch]): get from coreutils.
92381         * config/srclistvars.sh (COREUTILS): new var.
92383 2006-03-17  Jim Meyering  <jim@meyering.net>
92385         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
92386         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
92388 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
92390         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
92391         no longer needs it.  Instead, check that regoff_t is as least
92392         as wide as ptrdiff_t.
92394         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
92395         so that our regex.h stays compatible with the installed regex.
92396         This is helpful for installers who configure --without-included-regex.
92397         Problem reported by Emanuele Giaquinta.
92399 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
92401         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
92402         Typedef to long int, not to off_, as POSIX will likely change
92403         in that direction.
92405 2006-03-15  Eric Blake  <ebb9@byu.net>
92407         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
92409 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
92411         * lib/argp-help.c (validate_uparams): Fix typo
92412         * lib/argp-parse.c (argp_default_options): Consistently begin help
92413         messages with a lowercase letter.
92415 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
92417         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
92418         overrun buffers and shouldn't be used (much as gets shouldn't be
92419         used).
92420         * lib/time_r.c (asctime_r, ctime_r): Likewise.
92422 2006-03-08  Simon Josefsson  <jas@extundo.com>
92424         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
92425         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92427 2006-03-08  Simon Josefsson  <jas@extundo.com>
92429         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
92430         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92432 2006-03-08  Simon Josefsson  <jas@extundo.com>
92434         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
92435         signal that configure disabled the device.
92437 2006-03-08  Simon Josefsson  <jas@extundo.com>
92439         * build-aux/maint.mk: Fix refresh-po, to handle no translated
92440         languages.
92442 2006-03-07  Simon Josefsson  <jas@extundo.com>
92444         * modules/getopt (Depends-on): Add unistd.
92446         * modules/unistd: New file.
92448 2006-03-07  Simon Josefsson  <jas@extundo.com>
92450         * modules/gc-random: New file.
92452 2006-03-07  Simon Josefsson  <jas@extundo.com>
92454         * m4/unistd_h.m4: New file.
92456 2006-03-07  Simon Josefsson  <jas@extundo.com>
92458         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
92459         test to be side-effect free by storing the result in the cache
92460         variable gl_cv_lib_readline, and moving the assignment of
92461         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
92462         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92464 2006-03-07  Simon Josefsson  <jas@extundo.com>
92466         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
92467         error on missing devices (the functions will return an error).
92469         * m4/gc.m4: Move random stuff to gc-random.m4
92471 2006-03-07  Simon Josefsson  <jas@extundo.com>
92473         * lib/unistd_.h: New file.
92475 2006-03-07  Simon Josefsson  <jas@extundo.com>
92477         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
92479 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
92481         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
92482         Problem reported by Juan Manuel Guerrero.
92484 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
92486         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
92487         the unistd module.
92488         * lib/getlogin_r.c: Likewise.
92489         * lib/getlogin_r.h: Likewise.
92490         * lib/glob.c: Likewise.
92491         * lib/pagealign_alloc.c: Likewise.
92492         * lib/unistd_.h: Remove; no longer needed.
92494 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
92496         * MODULES.html.sh (Support for systems lacking POSIX:2001):
92497         Add unistd.
92498         * modules/c-stack (Depends-on): Add unistd.
92499         * modules/getlogin_r: Likewise.
92500         * modules/glob: Likewise.
92501         * modules/pagealign_alloc: Likewise.
92502         * modules/unistd (Files): Remove lib/unistd_.h.
92503         (EXTRA_DIST): Remove.
92504         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
92505         need unistd_.h.
92506         (MOSTLYCLEANFILES): Remove unistd.h-t.
92508 2006-03-03  Simon Josefsson  <jas@extundo.com>
92510         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
92512 2006-03-03  Simon Josefsson  <jas@extundo.com>
92514         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
92515         libidn and bison.
92517 2006-03-03  Simon Josefsson  <jas@extundo.com>
92519         * build-aux/maint.mk: Add indent target.
92521 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
92523         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
92524         our replacement poll.h in any case, to avoid a differing
92525         declaration from a system header.  Seen on AIX.
92527 2006-03-01  Simon Josefsson  <jas@extundo.com>
92529         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
92530         <kasal@ucw.cz>.
92532 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
92534         * modules/gettime (Depends-on): Add extensions module.
92535         * modules/nanosleep (Depends-on): Likewise.
92536         * modules/settime (Depends-on): Likewise.
92538 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
92540         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
92541         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
92542         pedantically.
92543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
92544         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
92546         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
92547         not "==".  Reported by Ralf Wildenhues.
92549 2006-03-01  Karl Berry  <karl@gnu.org>
92551         * doc/Copyright/request-*: new files, synced from gnuorg.
92553 2006-03-01  Karl Berry  <karl@gnu.org>
92555         * config/srclist.txt (Copyright/*): new entries.
92557 2006-02-28  Simon Josefsson  <jas@extundo.com>
92559         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
92561 2006-02-27  Simon Josefsson  <jas@extundo.com>
92563         * lib/base64.h: Indent #define's.  From Jim Meyering
92564         <jim@meyering.net>.
92566 2006-02-27  Jim Meyering  <jim@meyering.net>
92568         Revert the change of 2006-02-24, so these files can continue
92569         to be sync'd from gettext.
92570         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
92571         of `config.h'.
92573 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
92575         * modules/intprops: New file.
92576         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
92577         Add intprops.
92578         * modules/getloadavg (Files): Remove lib/intprops.h.
92579         (Depends-on): Add intprops.
92580         * modules/human: Likewise.
92581         * modules/inttostr: Likewise.
92582         * modules/openat: Likewise.
92583         * modules/sig2str: Likewise.
92584         * modules/userspec: Likewise.
92585         * modules/utimecmp: Likewise.
92586         * modules/xnanosleep: Likewise.
92587         * modules/xstrtol: Likewise.
92589 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
92591         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
92592         * modules/lock-tests (TESTS): Use $(EXEEXT).
92593         * modules/tls-tests: Likewise.
92594         * modules/argp-tests: Likewise.
92595         (check_PROGRAMS): New var, replacing...
92596         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
92598 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92600         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
92601         `config.h'.
92603 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
92605         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
92607 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92609         Sync from coreutils.
92610         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
92611         gl_CHDIR_SAFER.
92613 2006-02-22  Jim Meyering  <jim@meyering.net>
92615         Sync from coreutils.
92616         * m4/chdir-safer.m4: New file.
92618 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
92620         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
92621         AT_FDCWD exceeds INT_MAX.
92622         * lib/openat.h (AT_FDCWD): Likewise.
92624 2006-02-17  Eric Blake  <address@hidden>
92626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
92628 2006-02-16  Simon Josefsson  <jas@extundo.com>
92630         * modules/getaddrinfo (Depends-on): Add sys_socket.
92632 2006-02-15  Simon Josefsson  <jas@extundo.com>
92634         * build-aux/maint.mk: Add dsyntax-check rule.
92636 2006-02-15  Eric Blake  <ebb9@byu.net>
92638         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
92639         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
92640         'present but cannot compile' warnings on cygwin.
92641         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
92642         use ws2tcpip.h if sys/socket.h works.
92643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
92644         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
92646 2006-02-14  Simon Josefsson  <jas@extundo.com>
92648         * modules/maintainer-makefile (Files): Rename.
92650         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
92651         and (the local) Makefile.cfg to maint-cfg.mk.
92653         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
92654         to the latter.
92656         * modules/maintainer-makefile: New module.
92658         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
92659         severaly stripped to make it possible to build it up from scratch
92660         with reliable tests.
92662         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
92663         fixes to permit overriding the default actions when configure and
92664         makefile are not available.
92666 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92668         Sync from coreutils.
92669         * modules/lstat (Depends-on): Don't depend on xalloc.
92670         (License): Change from GPL to LGPL, since this is now simply a
92671         replacement for a libc function.
92673 2006-02-14  Jim Meyering  <jim@meyering.net>
92675         Sync from coreutils.
92677         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
92678         failure on deficient systems, and simplify gnulib lgpl dependencies.
92679         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
92680         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
92682         * lib/xalloc-die.c: Remove unused definition of N_.
92684 2006-02-14  Jim Meyering  <jim@meyering.net>
92686         Sync from coreutils.
92687         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
92688         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
92689         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
92690         double-quote uses of that variable, to accommodate the rare case in
92691         which getmntent is available in none of the libraries checked.  This
92692         happens at least on FreeBSD 5.0.
92694 2006-02-13  Simon Josefsson  <jas@extundo.com>
92696         * gnulib-tool (Usage): Fix --import, from
92697         karl@freefriends.org (Karl Berry).
92699 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
92701         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
92703 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
92705         * lib/argp-namefrob.h: Restore changes accidentally lost during the
92706         "autoupdate" on 2005-12-12.
92708 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
92710         * modules/closeout (Depends-on): Remove atexit.
92712 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
92714         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
92715         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
92717 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92719         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
92720         __EXTENSIONS__ if this causes compilation to fail.  Problem
92721         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
92722         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
92724 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
92726         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
92727         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
92728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
92729         All uses changed.
92731 2006-01-26  Simon Josefsson  <jas@extundo.com>
92733         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
92734         prototype is visible on mingw32.
92736         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
92737         for mingw32.
92739         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
92740         mingw32).
92742 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
92744         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
92745         attempt to open for write; this always fails, at least on POSIX
92746         hosts.  This reinstates the 2006-01-09 change, which was
92747         inadvertently removed.
92749 2006-01-26  Bruno Haible  <bruno@clisp.org>
92751         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
92752         Reported by Paul Eggert.
92754 2006-01-26  Bruno Haible  <bruno@clisp.org>
92755             Paul Eggert  <eggert@cs.ucla.edu>
92757         * lib/stdbool_.h (_Bool)
92758         [(! (defined __cplusplus || defined __BEOS__)
92759           && !defined __GNUC__
92760           && !(defined __HP_cc || defined __xlc__
92761                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
92762                || defined __sgi))]:
92763         #define to signed char in these cases too; this simplifies
92764         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
92765         etc., separately) and makes it more conservative.
92767 2006-01-25  Simon Josefsson  <jas@extundo.com>
92769         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
92770         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
92771         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
92773 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
92775         * lib/argp-namefrob.h: Bugfix. Remove stray #
92777 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
92779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
92780         so that we test the test.
92781         Check for yet another HP-UX cc bug involving *bool |= bool.
92783 2006-01-25  Karl Berry  <karl@gnu.org>
92785         * config/srclist.txt (vasnprintf.c): sync lost.
92787 2006-01-25  Jim Meyering  <jim@meyering.net>
92789         Sync from the stable (b5) branch of coreutils:
92791         * lib/fts.c (fts_children): Don't let close() clobber errno from
92792         failed fchdir().
92794         * lib/fts.c (fts_stat): When following a symlink-to-directory,
92795         don't necessarily interpret stat-fails+lstat-succeeds as indicating
92796         a dangling symlink.  That can also happen at least for ELOOP.
92797         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
92798         FYI, this bug predates the inclusion of fts.c in coreutils.
92800         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
92801         in their own block, so pre-c99 compilers don't object.
92803         Avoid the double-free (first in fts_read, second in fts_close) that
92804         would occur when an `active' directory is made inaccessible (e.g.,
92805         via chmod a-x) during a traversal.
92806         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
92807         before returning.  Reproduce this failure by
92808         mkdir -p a/b; cd a; chmod a-x . b
92809         Reported by Stavros Passas.
92811 2006-01-25  Jim Meyering  <jim@meyering.net>
92813         * lib/fileblocks.c: Remove more useless parentheses.
92814         * lib/readutmp.h: Likewise.
92816 2006-01-25  Bruno Haible  <bruno@clisp.org>
92818         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
92819         warnings.
92820         Reported by Paul Eggert.
92822 2006-01-25  Bruno Haible  <bruno@clisp.org>
92824         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
92825         rid of a trap command. For Solaris sh.
92826         Reported by Mark D. Baushke <mdb@gnu.org>.
92828 2006-01-24  Simon Josefsson  <jas@extundo.com>
92830         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
92831         Bruno.
92833 2006-01-24  Karl Berry  <karl@gnu.org>
92835         * config/srclist.txt (argp-namefrob.h): sync lost.
92837 2006-01-24  Jim Meyering  <jim@meyering.net>
92839         * modules/openat (Files): Add lib/intprops.h.
92840         From Mark D. Baushke.
92842 2006-01-24  Jim Meyering  <jim@meyering.net>
92844         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
92845         Reported by Mark D. Baushke.
92847 2006-01-24  Jim Meyering  <jim@meyering.net>
92849         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
92851 2006-01-24  Bruno Haible  <bruno@clisp.org>
92853         * modules/strnlen (Maintainer): Change from glibc to all.
92855 2006-01-24  Bruno Haible  <bruno@clisp.org>
92857         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
92858         Patch by Paul Eggert.
92860 2006-01-24  Bruno Haible  <bruno@clisp.org>
92862         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
92863         already has it.
92864         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
92865         2005-11-26.
92867         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
92868         'signed char' to avoid problems with the built-in _Bool type.
92869         Reported by Paul Eggert on 2005-11-26.
92871 2006-01-24  Bruno Haible  <bruno@clisp.org>
92873         * gnulib-tool (func_import): Avoid constructing complicated sed
92874         expressions inside backquote.
92875         Report and solution by Mark D. Baushke <mdb@gnu.org>.
92877 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
92879         These changes imported from libc.
92880         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
92881         test and two separate function calls.
92882         * lib/strndup.c (__strndup): Add libc_hidden_def.
92884 2006-01-23  Simon Josefsson  <jas@extundo.com>
92886         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
92887         Remove the test_*_SOURCES variable: automake infers it by default.
92888         * modules/tls-tests: Likewise.
92890 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92892         Work around porting bugs reported by Dieter in
92893         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
92894         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
92895         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
92896         Include "getopt.h" first, to check interface.
92897         (getenv): Declare only if defined HAVE_DECL_GETENV &&
92898         !HAVE_DECL_GETENV.
92899         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
92900         (__strndup): Revert to K&R-style function dfns, the glibc style.
92901         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
92902         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
92903         Include strnlen.h first, to get prototype properly.
92904         (strnlen): Renamed from __strnlen.
92905         Remove weak alias.
92907 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92909         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
92911 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92913         * config/srclist.txt: Adjust to reflect glibc reorganization.
92914         This affects only comments.
92916 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
92918          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
92919          Reported by Bruce Korb <bkorb@gnu.org>.
92921 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
92923         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
92924         to pacify gcc -Wswitch-default.
92926 2006-01-22  Bruno Haible  <bruno@clisp.org>
92928         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
92929         temporary buffer for sprintf, take into account the precision also
92930         for 'd', 'i', 'u', 'o', 'x', 'X'.
92932 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
92934         * modules/argp-tests: New module
92935         * tests/test-argp.c: New file
92936         * tests/test-argp-2.sh: New file
92938 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
92940         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
92941         (__argp_base_name): Removed
92942         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
92943         typo.
92944         (__argp_base_name): Provide macro definition or extern declaration
92945         depending on the configuration
92947 2006-01-20  Simon Josefsson  <jas@extundo.com>
92949         * modules/inet_ntop (Depends-on): Depend on sys_socket.
92951 2006-01-20  Simon Josefsson  <jas@extundo.com>
92953         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
92955 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
92957         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
92958         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
92959         Suggested by Bruno Haible.
92961 2006-01-20  Karl Berry  <karl@gnu.org>
92963         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
92964         until changes propagate, I guess.
92966 2006-01-19  Simon Josefsson  <jas@extundo.com>
92968         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
92970 2006-01-19  Simon Josefsson  <jas@extundo.com>
92972         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
92974 2006-01-19  Simon Josefsson  <jas@extundo.com>
92976         * gnulib-tool: Set check_PROGRAMS.
92978         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
92979         modules/des-tests, modules/gc-arcfour-tests,
92980         modules/gc-arctwo-tests, modules/gc-des-tests,
92981         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
92982         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
92983         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
92984         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
92985         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
92986         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
92987         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
92988         test_*_SOURCES.
92990 2006-01-18  Simon Josefsson  <jas@extundo.com>
92992         * modules/socklen (Depends-on): Depend on sys_socket.
92994 2006-01-18  Simon Josefsson  <jas@extundo.com>
92996         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
92997         modules/des-tests, modules/gc-arcfour-tests,
92998         modules/gc-arctwo-tests, modules/gc-des-tests,
92999         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
93000         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
93001         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
93002         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
93003         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
93004         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
93005         $(EXEEXT) to automake TESTS variable, for mingw32.
93007 2006-01-17  Simon Josefsson  <jas@extundo.com>
93009         * modules/socklen (Include): Need sys/socket.h.
93011 2006-01-17  Bruno Haible  <bruno@clisp.org>
93013         * modules/ssize_t (Include): Add <sys/types.h>.
93015 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
93017         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
93018         it's not portable and it doesn't work with cross-compiles.
93019         Problem reported by Bruno Haible.  Fix missing-$ typo in
93020         'test "gl_cv_ignore_unused_libraries" ...' that prevented
93021         -zignore from being used with Sun's C compiler.
93023 2006-01-12  Simon Josefsson  <jas@extundo.com>
93025         * lib/base64.c: Fix warning, reported by Bruno Haible
93026         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
93028 2006-01-12  Bruno Haible  <bruno@clisp.org>
93030         * modules/ldd: New file.
93031         * build-aux/ldd.sh.in: New file.
93032         * MODULES.html.sh (Support for building libraries and executables): Add
93033         ldd.
93035 2006-01-12  Bruno Haible  <bruno@clisp.org>
93037         * m4/ldd.m4: New file.
93039 2006-01-12  Bruno Haible  <bruno@clisp.org>
93041         * gnulib-tool (func_import, func_create_testdir): Don't go into an
93042         endless loop while replacing $auxdir with build-aux.
93044 2006-01-11  Simon Josefsson  <jas@extundo.com>
93046         * lib/stdint_.h (SIZE_MAX): Add missing (.
93048 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
93050         Sync from coreutils.
93051         * lib/md5.c: Fix commentary typos.
93052         (alignof, UNALIGNED_P): No need for a GCC-specific version.
93053         * lib/md5.h (__attribute__): Remove; unused.
93054         * lib/sha1.c: Fix commentary to match md5 better.
93055         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
93056         so that we don't need to worry about alignment.  All uses changed.
93057         This merges the 2005-10-28 md5 change into sha1.
93059 2006-01-11  Jim Meyering  <jim@meyering.net>
93061         Sync from coreutils.
93062         * lib/md5.c (OP): Fix spacing.
93064 2006-01-11  Bruno Haible  <bruno@clisp.org>
93066         Ensure automatic ordering between gl_LOCK and gl_ARGP.
93067         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
93068         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
93070 2006-01-11  Bruno Haible  <bruno@clisp.org>
93072         Ensure automatic ordering between gl_LOCK and gl_ARGP.
93073         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
93074         the "early" section as well.
93076 2006-01-11  Bruno Haible  <bruno@clisp.org>
93078         Avoid "ar: no archive members specified" error on MacOS X.
93079         * gnulib-tool (func_modules_add_dummy): New function.
93080         (func_import, func_create_testdir): Invoke it.
93082 2006-01-11  Bruno Haible  <bruno@clisp.org>
93084         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
93085         with $auxdir in AC_CONFIG_FILES statements.
93087 2006-01-11  Bruno Haible  <bruno@clisp.org>
93089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93090         Initialize also noinst_HEADERS to empty.
93092 2006-01-11  Bruno Haible  <bruno@clisp.org>
93094         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
93095         variables.
93096         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
93097         autoreconf.
93099 2006-01-11  Bruno Haible  <bruno@clisp.org>
93101         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
93102         overridable by the user.
93103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93105 2006-01-10  Simon Josefsson  <jas@extundo.com>
93107         * modules/sys_socket: New file.
93109 2006-01-10  Simon Josefsson  <jas@extundo.com>
93111         * m4/sys_socket_h.m4: New file.
93113 2006-01-10  Simon Josefsson  <jas@extundo.com>
93115         * lib/socket_.h: New file.
93117 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93119         * modules/readutmp (Maintainer): Add myself.
93121 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93123         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
93124         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
93125         People who are still concerned with buggy memcmp implementations
93126         can invoke gl_FUNC_MEMCMP themselves.
93128 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93130         * lib/regex_internal.h (BITSET_WORD_BITS):
93131         Work around a bug in 64-bit PGC (before version 6.1-2), where the
93132         preprocessor mishandles large unsigned values as if they were signed.
93133         Problem reported by Claudio Fontana in
93134         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
93136 2006-01-10  Jim Meyering  <jim@meyering.net>
93138         Avoid the double-free (first in fts_read, second in fts_close) that
93139         would occur when an `active' directory is made inaccessible (e.g.,
93140         via chmod a-x) during a traversal.
93141         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
93142         before returning.  Reproduce this failure by
93143         mkdir -p a/b; cd a; chmod a-x . b
93144         Reported by Stavros Passas.
93146         Sync from coreutils.
93147         * lib/sha1.c: Tweak grammar in a comment.
93149 2006-01-10  Jim Meyering  <jim@meyering.net>
93151         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
93152         Patch by Joerg Sonnenberger.
93154 2006-01-10  Bruno Haible  <bruno@clisp.org>
93156         * modules/readutmp: Depend on module free.
93157         * modules/strtok_r: Depend on module restrict.
93159 2006-01-10  Bruno Haible  <bruno@clisp.org>
93161         * modules/gettext (configure.ac): Add an invocation of
93162         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
93164 2006-01-10  Bruno Haible  <bruno@clisp.org>
93166         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
93167         Reported by Werner Lemberg <wl@gnu.org>.
93169 2006-01-10  Bruno Haible  <bruno@clisp.org>
93171         * lib/localcharset.c: Update from GNU gettext.
93173 2006-01-10  Bruno Haible  <bruno@clisp.org>
93175         * lib/argp.h (__const): Remove macro. Use const instead.
93176         * lib/argp-fmtstream.h (__const): Likewise.
93177         * lib/glob_.h (__const): Remove macro.
93178         * lib/glob-libc.h: Use const instead of __const.
93180 2006-01-10  Bruno Haible  <bruno@clisp.org>
93182         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
93183         variable.
93184         Needed to avoid an automake error regarding the 'gettext' module.
93186 2006-01-09  Simon Josefsson  <jas@extundo.com>
93188         * modules/inet_ntop (Depends-on): Add restrict.
93190 2006-01-09  Simon Josefsson  <jas@extundo.com>
93192         * modules/gc-rijndael-tests (License): Put under LGPL.
93194         * modules/gc-des-tests (License): Likewise.
93196         * modules/gc-arcfour-tests (License): Likewise.
93198         * modules/gc-arctwo-tests (License): Likewise.
93200         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
93202         * modules/gc-hmac-sha1-tests (Files): Likewise.
93204         * modules/gc-hmac-md5-tests (License): Likewise.
93206         * modules/gc-sha1-tests (License): Likewise.
93208         * modules/gc-md5-tests (License): Likewise.
93210         * modules/gc-md4-tests (License): Likewise.
93212         * modules/gc-md2-tests (License): Likewise.
93214         * modules/gc-tests (License): Likewise.
93216         * modules/des-tests (License): Likewise.
93218         * modules/md4-tests (License): Likewise.
93220         * modules/md2-tests (License): Likewise.
93222 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93224         Sync from coreutils:
93226         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
93227         * modules/lib-ignore: New file.
93228         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
93229         chdir-safer.m4, lchmod.m4.
93230         * modules/openat: Add mkdirat.c, openat-priv.h.
93232 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93234         Sync from coreutils.
93235         * m4/lib-ignore.m4: New file.
93236         * m4/lchmod.m4: New file.
93238 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93240         Sync from coreutils.
93241         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
93242         for write access: POSIX says that must fail.
93243         * lib/fts.c (diropen): Likewise.
93244         * lib/save-cwd.c (save_cwd): Likewise.
93245         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
93246         well, for minor improvements on hosts that lack O_DIRECTORY.
93247         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
93248         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
93249         Fall back on chown if open failed with EACCES.
93251         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
93252         Report an error at compile-time if only a 1-second nominal clock
93253         resolution is found.
93255         * lib/lchmod.h: New file.
93256         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
93257         (make_dir_parents): Use lchown rather than chown, and
93258         lchmod rather than chmod.
93260         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
93261         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
93262         "proc" reported by n0dalus.
93264         * lib/mountlist.c: Include <limits.h>.
93265         (dev_from_mount_options)
93266         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
93267         New function.  It no longer assumes "dev=" has the System V meaning
93268         on Linux (since it doesn't).  It also parses "dev=" more carefully.
93269         (read_file_system_list)
93270         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
93271         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
93272         dev= in that case.
93274         * lib/posixtm.h (PDS_PRE_2000): New macro.
93275         * lib/posixtm.c (year): Arg is now syntax_bits rather than
93276         allow_century.  All usages changed.  Reject dates outside the range
93277         1969-1999 if PDS_PRE_2000 is used.
93279 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93281         Sync from coreutils.
93282         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
93283         (Time of day items): Mention the possibility of leap seconds.
93284         Problem reported by Dr. David Alan Gilbert.
93286 2006-01-09  Jim Meyering  <jim@meyering.net>
93288         Sync from coreutils.
93290         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
93292         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
93294         * lib/modechange.c (mode_compile): Reject an invalid mode string
93295         that starts with an octal digit.  From Andreas Gruenbacher.
93297         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
93298         and dup to open_safer and dup_safer, respectively.
93299         (openat_permissive): Fix typo in comment.
93301         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
93302         "gettext.h"; either no longer needed or are guaranteed by openat.h.
93303         (_): Remove; no longer needed.
93304         (openat): Renamed from rpl_openat; no need for rpl_openat
93305         since openat.h renames openat for us.
93306         Replace most of the body with a call to openat_permissive,
93307         to avoid duplicate code.
93308         Port to (probably hypothetical) environments were mode_t is
93309         wider than int.
93310         (openat_permissive): Require mode arg, so that we can check
93311         types better.  Put it just after flags.  Change cwd failure
93312         indicator from pointer-to-bool to pointer-to-errno-value.
93313         All callers changed.
93314         Invoke openat_save_fail and/or openat_restore_fail if
93315         cwd_errno is null, so that openat can call us.
93316         (openat_permissive, fdopendir, fstatat, unlinkat):
93317         Simplify errno handling to avoid some duplicate code,
93318         as it's OK to set errno on success.
93319         * lib/openat.h: Revamp code so that function macros depend on
93320         __OPENAT_PREFIX only, not also on AT_FDCWD.
93321         (openat_ro): Remove.  Caller changed to use openat_permissive.
93322         (openat_permissive): Now a macro, if not a function.
93323         (openat_restore_fail, openat_save_fail): Now always functions,
93324         since mkdirat needs them even if __OPENAT_PREFIX is defined.
93326         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
93327         and openat.c.
93328         * lib/mkdirat.c: Include openat-priv.h.
93329         Remove definitions of macros defined therein.
93330         * lib/openat.c: Likewise.
93332         * lib/mkdirat.c (mkdirat): New file and function.
93333         * lib/openat.h (mkdirat): Declare.
93335         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
93337         * lib/openat.h (openat_permissive): Declare.
93338         (openat_ro): Define.
93340         * lib/openat.c (EXPECTED_ERRNO): New macro.
93341         (openat_permissive): New function -- used in remove.c rewrite.
93342         (all functions): Set errno just before returning, only if there
93343         was an actual failure.
93344         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
93346         Emulate openat-family functions using Linux's procfs, if possible.
93347         Idea and some code based on Ulrich Drepper's glibc changes.
93349         * lib/openat.c: (BUILD_PROC_NAME): New macro.
93350         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
93351         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
93352         before falling back on save_cwd and restore_cwd.
93353         (fdopendir, fstatat, unlinkat): Likewise.
93355         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
93356         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
93358         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
93359         as second argument to va_arg.  Otherwise, some versions of gcc
93360         warn that `if this code is reached, the program will abort'.
93362 2006-01-09  Jim Meyering  <jim@meyering.net>
93364         Sync from coreutils.
93365         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
93366         Require openat-priv.h.
93368 2006-01-09  Bruno Haible  <bruno@clisp.org>
93370         * modules/strnlen (Include): Use strnlen.h.
93372 2006-01-09  Bruno Haible  <bruno@clisp.org>
93374         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
93376 2006-01-09  Bruno Haible  <bruno@clisp.org>
93378         * lib/sysexit_.h (EX_OK): New macro.
93379         Suggested by Martin Lambers <marlam@marlam.de>.
93381 2006-01-09  Bruno Haible  <bruno@clisp.org>
93383         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
93384         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
93386 2006-01-09  Bruno Haible  <bruno@clisp.org>
93388         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
93389         numbers.
93391 2006-01-09  Bruno Haible  <bruno@clisp.org>
93393         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
93394         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
93395         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
93396         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
93398 2006-01-09  Bruno Haible  <bruno@clisp.org>
93400         * build-aux/javacomp.sh.in: New file, moved from lib/.
93401         * modules/javacomp-script (Files): Update.
93402         (configure.ac): Add AC_CONFIG_FILES invocation.
93403         (EXTRA_DIST): Remove variable.
93405         * build-aux/javaexec.sh.in: New file, moved from lib/.
93406         * modules/javaexec (Files): Update.
93407         (configure.ac): Add AC_CONFIG_FILES invocation.
93408         (EXTRA_DIST): Remove javaexec.sh.in.
93410         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
93411         * modules/csharpcomp-script (Files): Update.
93412         (configure.ac): Add AC_CONFIG_FILES invocation.
93413         (EXTRA_DIST): Remove variable.
93415         * build-aux/csharpexec.sh.in: New file, moved from lib/.
93416         * modules/csharpexec (Files): Update.
93417         (configure.ac): Add AC_CONFIG_FILES invocation.
93418         (EXTRA_DIST): Remove csharpexec.sh.in.
93420 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
93422         Sync from coreutils.
93424         Add POSIX ACL support
93425         * lib/acl.h (copy_acl, set_acl): Add declarations.
93426         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
93427         systems other than Linux.
93428         (chmod_or_fchmod): New function: use fchmod when possible,
93429         and chmod otherwise.
93430         (file_has_acl): Add a POSIX ACL implementation, with a
93431         Linux-specific subcase.
93432         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
93433         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
93434         acls are unsupported.
93435         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
93436         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
93437         are unsupported.
93439 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
93441         Sync from coreutils.
93442         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
93444 2006-01-07  Bruno Haible  <bruno@clisp.org>
93446         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
93447         gl_EARLY.
93449 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
93451         * lib/strftime.c (tzname): Don't declare if it is already #defined.
93452         Problem reported for Mingw by Mark Junker.
93454 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
93456         * README: Gnulib normally doesn't generate a tarball.
93458 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
93460         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
93461         long int, not int, for nanosecond counts, so that people who are
93462         used to POSIX struct timespec won't be surprised.  Reported by Jim
93463         Meyering.
93465 2005-12-28  Bruno Haible  <bruno@clisp.org>
93467         * build-aux/config.rpath: Update from GNU gettext.
93469 2005-12-16  Jim Meyering  <jim@meyering.net>
93471         * modules/fprintftime: New module.
93472         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
93474 2005-12-16  Jim Meyering  <jim@meyering.net>
93476         * m4/fprintftime.m4: New file.
93478 2005-12-16  Jim Meyering  <jim@meyering.net>
93480         * lib/fprintftime.c, lib/fprintftime.h: New files.
93482 2005-12-15  Simon Josefsson  <jas@extundo.com>
93484         * modules/socklen (configure.ac): Fix M4 macro name, to align with
93485         new m4/socklen.m4.
93487 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93489         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
93490         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
93492 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93494         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
93495         * lib/argp-help.c (fill_in_uparams): Check if the constructed
93496         struct uparams is valid. Fall back to the default values if it is
93497         not.
93499 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93501         * modules/argp (Files): Add argp-pin.c
93502         (Depends-on): dirname
93503         (lib_SOURCES): Add argp-pin.c
93505 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93507         * m4/argp.m4:  Check if program_invocation_name and
93508         program_invocation_short_name are declared and define appropriate
93509         macros if they are not.
93511 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93513         * lib/argp-help.c (__argp_base_name): New function
93514         (__argp_short_program_name): Rewrite using __argp_base_name
93515         * lib/argp-namefrob.h: Define program_invocation_name and
93516         program_invocation_short_name if requested
93517         (__argp_base_name): Add prototype
93518         * lib/argp-parse.c (argp_def): Use gettext wrappers
93519         (argp_default_parser): Use __argp_base_name
93520         * lib/argp-pin.c: New file. Defines program_invocation_name and
93521         program_invocation_short_name on systems that lack them.
93523 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
93525         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
93526         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
93527         porting problem reported by Georg Schwarz in
93528         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
93530 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
93532         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
93533         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
93534         porting problem reported by Georg Schwarz in
93535         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
93537 2005-12-05  Bruno Haible  <bruno@clisp.org>
93539         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
93540         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
93541         Reported by Mark Junker <mjscod@gmx.de>.
93543 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
93545         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
93546         Use implementation from Albert Chin, with some
93547         comments/corrections by Stepan Kasal and myself.
93549 2005-12-02  Bruno Haible  <bruno@clisp.org>
93551         * gnulib-tool (func_import): Accept GPLed build tool modules when
93552         --lgpl is given.
93553         * modules/csharpcomp-script: New file.
93554         * modules/csharpcomp: Depend on it.
93555         * modules/javacomp-script: New file.
93556         * modules/javacomp: Depend on it.
93557         Suggested by Simon Josefsson.
93559 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
93561         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
93562         statement, to work around an HP-UX 10.20 compiler bug reported by
93563         Peter O'Gorman.
93565 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
93567         * modules/savedir (Depends-on): Add openat.
93569 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
93571         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
93572         (uintmax_t) [defined uintmax_t]: Do not declare.
93573         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
93574         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
93575         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
93576         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
93577         sake of portability to weird hosts that C allows (though we don't
93578         know of any practical examples).
93580         * lib/savedir.h (fdsavedir): New decl.
93581         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
93582         contains most of the former guts of savedir.
93583         (savedir): Use savedirstream.
93584         Include "openat.h".
93586 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
93588         * modules/obstack (Files): Add m4/ulonglong.m4.
93589         Problem reported by Davide Angelocola.
93591 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
93593         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
93594         coreutils no longer futzes with rounding modes.
93596 2005-11-14  Jim Meyering  <jim@meyering.net>
93598         * lib/mkstemp-safer.c: Include <config.h>, required for possible
93599         replacement of mkstemp.
93601 2005-11-10  Simon Josefsson  <jas@extundo.com>
93603         * lib/readline.c: Remove EOL.
93605 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
93607         * modules/gethrxtime (Depends-on): Add gettime.
93609 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
93611         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
93612         or gettimeofday; no longer needed.
93614 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
93616         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
93617         time business.
93618         (gethrxtime) [! (HAVE_NANOUPTIME
93619         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
93620         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
93621         our own approximation.
93623 2005-11-08  Eric Blake  <ebb9@byu.net>
93625         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
93627 2005-11-08  Eric Blake  <ebb9@byu.net>
93629         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
93631 2005-11-04  Bruno Haible  <bruno@clisp.org>
93633         * gnulib-tool: Implement --update mode.
93635 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
93637         Fix porting problem reported by Theodoros V. Kalamatianos.
93638         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
93639         Don't assume that futimes failing means we must fail.
93641 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
93643         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
93644         variables to suggest the intended function of the PATH_MAX check.
93646 2005-10-30  Kean Johnston  <jkj@sco.com>
93648         Trivial changes to support SCO systems.
93649         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
93650         as PATH_MAX.
93651         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
93652         where __ptr is null when no I/O is pending.
93654 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
93656         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
93657         leave errno alone.  Problem reported by Dmitry V. Levin.
93659 2005-10-28  Simon Josefsson  <jas@extundo.com>
93661         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
93662         Test more.
93664         * tests/test-gc-md2.c, tests/test-md2.c: New files.
93666         * modules/md2, modules/md2-tests: New files.
93668 2005-10-28  Simon Josefsson  <jas@extundo.com>
93670         * m4/inet_ntop.m4: More tests.
93672         * m4/gc-md2.m4, md2.m4: New file.
93674 2005-10-28  Simon Josefsson  <jas@extundo.com>
93676         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
93677         "restrict" keywords, as per POSIX.  Protect the function
93678         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
93679         Don't use K&R prototypes.  Check the sprintf return values.
93680         Re-define EAFNOSUPPORT if not present.  Indent.
93682         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
93683         suggested by Bruno Haible <bruno@clisp.org>.
93685         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
93687         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
93689         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
93690         libgcrypt).
93692         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
93694         * lib/md2.h, lib/md2.c: New files.
93696 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
93698         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
93699         errno alone.  Problem reported by Frederic Jolliton.
93701 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
93703         * modules/verify (License): Change from GPL to LGPL.  This is a
93704         tiny module and there are apparently near-equivalents that are
93705         under the BSD license.
93707 2005-10-24  Simon Josefsson  <jas@extundo.com>
93709         * modules/sha1: Relicense to LGPL.
93711 2005-10-24  Simon Josefsson  <jas@extundo.com>
93713         * lib/md4.h: Shrink buffer size, now that we changed the type.
93715 2005-10-23  Simon Josefsson  <jas@extundo.com>
93717         * gnulib-tool (func_import): Fix --tests-base.
93719 2005-10-22  Simon Josefsson  <jas@extundo.com>
93721         * modules/arcfour (Depends-on): Need stdint.
93723 2005-10-22  Simon Josefsson  <jas@extundo.com>
93725         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
93726         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
93728 2005-10-22  Simon Josefsson  <jas@extundo.com>
93730         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
93731         suggested by Bruno Haible <bruno@clisp.org>.
93733 2005-10-22  Simon Josefsson  <jas@extundo.com>
93735         * lib/crc.h: Include stddef.h, for size_t.
93737 2005-10-22  Simon Josefsson  <jas@extundo.com>
93739         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
93740         arcfour_context struct (simplify test vector testing in GNU
93741         Shishi).
93743 2005-10-21  Simon Josefsson  <jas@extundo.com>
93745         * modules/des, modules/des-tests: New files.
93747         * modules/gc-des, modules/gc-des-tests: New files.
93749         * tests/test-des.c, tests/test-gc-des.c: New file.
93751 2005-10-21  Simon Josefsson  <jas@extundo.com>
93753         * modules/arctwo, modules/arctwo-tests: New files.
93755         * tests/test-arctwo.c: New file.
93757         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
93759         * tests/test-gc-arctwo.c: New file.
93761 2005-10-21  Simon Josefsson  <jas@extundo.com>
93763         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
93764         Bruno Haible <bruno@clisp.org>.
93766         * m4/gc-des.m4: New file.
93768 2005-10-21  Simon Josefsson  <jas@extundo.com>
93770         * m4/arctwo.m4: New file.
93772         * m4/gc-arctwo.m4: New file.
93774 2005-10-21  Simon Josefsson  <jas@extundo.com>
93776         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
93777         block.
93779 2005-10-21  Simon Josefsson  <jas@extundo.com>
93781         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
93782         <bruno@clisp.org>.
93784         * lib/hmac-sha1.c (hmac_sha1): Likewise.
93786         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
93787         Bruno Haible <bruno@clisp.org>.
93789         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
93790         <bruno@clisp.org>.
93792 2005-10-21  Simon Josefsson  <jas@extundo.com>
93794         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
93796 2005-10-21  Simon Josefsson  <jas@extundo.com>
93798         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
93800 2005-10-21  Simon Josefsson  <jas@extundo.com>
93802         * lib/des.h, lib/des.c: New files.
93804         * lib/gc-gnulib.c: Support DES.c
93806 2005-10-21  Simon Josefsson  <jas@extundo.com>
93808         * lib/arctwo.h, lib/arctwo.c: New files.
93810         * lib/gc-gnulib.c: Support ARCTWO.
93812 2005-10-21  Simon Josefsson  <jas@extundo.com>
93814         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
93815         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93817 2005-10-21  Simon Josefsson  <jas@extundo.com>
93819         * gnulib-tool (func_import, func_create_testdir): Define automake
93820         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
93821         Makefile.am snippet),
93822         suggested by Bruno Haible <bruno@clisp.org>.
93824         * modules/gc (Makefile.am): Use it.
93826 2005-10-21  Bruno Haible  <bruno@clisp.org>
93828         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
93829         patch.
93831 2005-10-19  Simon Josefsson  <jas@extundo.com>
93833         * tests/test-gc-rijndael.c: New file.
93835         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
93837 2005-10-19  Simon Josefsson  <jas@extundo.com>
93839         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
93840         interface too.
93842 2005-10-19  Simon Josefsson  <jas@extundo.com>
93844         * tests/test-gc-arcfour.c: New file.
93846         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
93848 2005-10-19  Simon Josefsson  <jas@extundo.com>
93850         * modules/gc-md4, modules/gc-md4-tests: New file.
93852         * tests/test-gc-md4.c: New file.
93854 2005-10-19  Simon Josefsson  <jas@extundo.com>
93856         * m4/gc-md4.m4: New file.
93858 2005-10-19  Simon Josefsson  <jas@extundo.com>
93860         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
93861         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
93862         <kasal@ucw.cz>.
93864 2005-10-19  Simon Josefsson  <jas@extundo.com>
93866         * m4/gc-arcfour.m4: New file.
93868         * m4/gc-rijndael.m4: New file.
93870 2005-10-19  Simon Josefsson  <jas@extundo.com>
93872         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
93874 2005-10-19  Simon Josefsson  <jas@extundo.com>
93876         * lib/gc-gnulib.c: Support ARCFOUR.
93878 2005-10-19  Simon Josefsson  <jas@extundo.com>
93880         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
93881         support.
93883         * lib/gc.h: Add ECB enum type.
93885         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
93887 2005-10-18  Simon Josefsson  <jas@extundo.com>
93889         * tests/test-md5.c: New file.
93891         * modules/md5-tests: New file.
93893 2005-10-18  Simon Josefsson  <jas@extundo.com>
93895         * tests/test-md4.c: New file.
93897         * modules/md4, modules/md4-tests: New files.
93899 2005-10-18  Simon Josefsson  <jas@extundo.com>
93901         * m4/md4.m4: New file.
93903 2005-10-18  Simon Josefsson  <jas@extundo.com>
93905         * lib/md4.h, lib/md4.c: New files, based on md5.?.
93907 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
93909         * gnulib-tool (func_create_testdir): Omit the second check whether
93910         BUILT_SOURCES in nonempty.
93912 2005-10-17  Simon Josefsson  <jas@extundo.com>
93914         * tests/test-rijndael.c: New file.
93916 2005-10-17  Simon Josefsson  <jas@extundo.com>
93918         * modules/sha1: Depend on stdint instead of md5.
93920         * modules/md5: Depend on stdint, remove uint32_t.
93922 2005-10-17  Simon Josefsson  <jas@extundo.com>
93924         * modules/gc-sha1-tests: New file.
93926         * tests/test-gc-sha1.c: New file.
93928 2005-10-17  Simon Josefsson  <jas@extundo.com>
93930         * m4/md5.m4: Remove call to uint32_t.m4.
93932 2005-10-17  Simon Josefsson  <jas@extundo.com>
93934         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
93936         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
93937         md5.h.
93939         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
93941         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
93943 2005-10-17  Simon Josefsson  <jas@extundo.com>
93945         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
93947 2005-10-17  Simon Josefsson  <jas@extundo.com>
93949         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
93951 2005-10-17  Simon Josefsson  <jas@extundo.com>
93953         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
93955         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
93957 2005-10-17  Bruno Haible  <bruno@clisp.org>
93959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
93960         that it can also be used in a test.
93962 2005-10-16  Bruno Haible  <bruno@clisp.org>
93964         * gnulib-tool (func_emit_tests_Makefile_am): Also define
93965         TESTS_ENVIRONMENT, so that individual tests can augment it.
93967         * gnulib-tool (func_create_testdir): Use an intermediate target for
93968         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
93969         macros, like $(ALLOCA_H), which cannot be passed through the command
93970         line.
93972 2005-10-15  Simon Josefsson  <jas@extundo.com>
93974         * modules/rijndael-tests: New file.
93976         * modules/rijndael: New file.
93978 2005-10-15  Simon Josefsson  <jas@extundo.com>
93980         * m4/rijndael.m4: New file.
93982 2005-10-15  Simon Josefsson  <jas@extundo.com>
93984         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
93986         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
93988 2005-10-14  Simon Josefsson  <jas@extundo.com>
93990         * tests/test-arcfour.c: New file.
93992         * modules/arcfour, modules/arcfour-tests: New files.
93994 2005-10-14  Simon Josefsson  <jas@extundo.com>
93996         * m4/arcfour.m4: New file.
93998 2005-10-14  Simon Josefsson  <jas@extundo.com>
94000         * lib/arcfour.h, lib/arcfour.c: New files.
94002 2005-10-14  Roland McGrath  <roland@redhat.com>
94004         Import from libc.  [BZ #1331]
94005         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
94006         macro argument.
94007         Reported by Matej Vela <vela@debian.org>.
94009 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
94011         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
94012         include <wchar.h>; no longer needed.
94014 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
94016         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
94018 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
94019         and  Ulrich Drepper  <drepper@redhat.com>
94021         Import from libc.
94022         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
94023         instead of inline stream orientation test and two separate
94024         function calls.  Pay no attention to USE_IN_LIBIO.
94026 2005-10-13  Simon Josefsson  <jas@extundo.com>
94028         * modules/gc-hmac-md5-tests: New file.
94030         * tests/test-gc-hmac-sha1.c: New file.
94032         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
94034         * modules/gc-hmac-md5-tests: New file.
94036         * tests/test-gc-md5.c: New file.
94038         * modules/gc-md5-tests: New file.
94040 2005-10-13  Simon Josefsson  <jas@extundo.com>
94042         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
94043         Move memory allocation outside of loop.
94045 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
94047         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
94048         intermediate directory is in a read-only file system.  Problem
94049         reported by Eric Blake.
94051 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
94053         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
94055 2005-10-12  Simon Josefsson  <jas@extundo.com>
94057         * tests/test-hmac-sha1.c: New file.
94059         * modules/hmac-sha1-tests: New file.
94061         * modules/hmac-sha1: New file.
94063 2005-10-12  Simon Josefsson  <jas@extundo.com>
94065         * modules/gc-sha1: New file.
94067 2005-10-12  Simon Josefsson  <jas@extundo.com>
94069         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
94071         * tests/test-gc-pbkdf2-sha1.c: New file.
94073 2005-10-12  Simon Josefsson  <jas@extundo.com>
94075         * modules/gc-md5, modules/gc-hmac-md5: New files.
94077         * modules/gc (Files): Remove md5, memxor and hmac files.
94079 2005-10-12  Simon Josefsson  <jas@extundo.com>
94081         * m4/gc-pbkdf2-sha1.m4: New file.
94083         * m4/gc-hmac-sha1.m4: New file.
94085         * m4/gc-sha1: New file.
94087         * m4/hmac-sha1.m4: New file.
94089 2005-10-12  Simon Josefsson  <jas@extundo.com>
94091         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
94093         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
94095 2005-10-12  Simon Josefsson  <jas@extundo.com>
94097         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
94098         suggested by Bruno Haible <bruno@clisp.org>.
94100 2005-10-12  Simon Josefsson  <jas@extundo.com>
94102         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
94104 2005-10-12  Simon Josefsson  <jas@extundo.com>
94106         * lib/gc-pbkdf2-sha1.c: New file.
94108         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
94110 2005-10-12  Simon Josefsson  <jas@extundo.com>
94112         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
94114         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
94116 2005-10-12  Simon Josefsson  <jas@extundo.com>
94118         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
94119         GC_USE_HMAC_MD5, respectively.
94121         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
94122         (gc_md5): Fix typo.
94124         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
94126         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
94128         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
94130 2005-10-12  Bruno Haible  <bruno@clisp.org>
94132         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
94133         Reported by Stepan Kasal <kasal@ucw.cz>.
94135 2005-10-11  Simon Josefsson  <jas@extundo.com>
94137         * tests/test-crc.c: New file.
94139         * modules/crc, modules/crc-tests: New files.
94141 2005-10-11  Simon Josefsson  <jas@extundo.com>
94143         * m4/crc.m4: New file.
94145 2005-10-11  Simon Josefsson  <jas@extundo.com>
94147         * lib/gc.h: Add gc_hash and gc_hash_buffer.
94149         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
94151         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
94153 2005-10-11  Simon Josefsson  <jas@extundo.com>
94155         * lib/crc.h, lib/crc.c: New files.
94157         * lib/gc.h (gc_hash_buffer): Add doc.
94159 2005-10-11  Bruno Haible  <bruno@clisp.org>
94161         * modules/c-strcasestr: New file.
94162         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
94164 2005-10-11  Bruno Haible  <bruno@clisp.org>
94166         * modules/c-strcase: New file.
94167         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
94169 2005-10-11  Bruno Haible  <bruno@clisp.org>
94171         * lib/strcasecmp.c: Include limits.h.
94172         (strcasecmp): Avoid integer overflow on exotic platforms.
94173         * lib/strncasecmp.c: Include limits.h.
94174         (strncasecmp): Avoid integer overflow on exotic platforms.
94175         Reported by Paul Eggert.
94177 2005-10-11  Bruno Haible  <bruno@clisp.org>
94179         * lib/c-strcasestr.h: New file, from GNU gettext.
94180         * lib/c-strcasestr.c: New file, from GNU gettext.
94182 2005-10-11  Bruno Haible  <bruno@clisp.org>
94184         * lib/c-strcase.h: New file, from GNU gettext.
94185         * lib/c-strcasecmp.c: New file, from GNU gettext.
94186         * lib/c-strncasecmp.c: New file, from GNU gettext.
94188 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
94190         * modules/mempcpy (License): GPL -> LGPL.
94191         * modules/strchrnul (License): Likewise.
94192         * modules/sysexits (License): Likewise.
94194 2005-10-08  Simon Josefsson  <jas@extundo.com>
94196         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
94198 2005-10-07  Simon Josefsson  <jas@extundo.com>
94200         * m4/memxor.m4: Remove gl_C_RESTRICT call.
94202 2005-10-06  Simon Josefsson  <jas@extundo.com>
94204         * tests/test-hmac-md5.c: New file.
94206         * modules/hmac-md5-tests: New file.
94208         * modules/hmac-md5: New file.
94210 2005-10-06  Simon Josefsson  <jas@extundo.com>
94212         * m4/hmac-md5.m4: New file.
94214         * m4/memxor.m4: Require gl_C_RESTRICT.
94216 2005-10-06  Simon Josefsson  <jas@extundo.com>
94218         * lib/memxor.c (memxor): Avoid casts and warnings.
94220 2005-10-06  Simon Josefsson  <jas@extundo.com>
94222         * lib/hmac-md5.c: New file.
94224         * lib/hmac.h: New file.
94226 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
94228         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
94229         promotes to int, not unsigned int, to catch the AIX 5.3
94230         compiler bug.
94232 2005-10-05  Simon Josefsson  <jas@extundo.com>
94234         * modules/memxor: New file.
94236         * modules/iconv (Files): Move config.rpath to havelib, it is used
94237         there.
94239         * modules/havelib (Files): Add config.rpath.
94241 2005-10-05  Simon Josefsson  <jas@extundo.com>
94243         * m4/memxor.m4: New file.
94245 2005-10-05  Simon Josefsson  <jas@extundo.com>
94247         * lib/memxor.c (memxor): Fix compiler error.
94249         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
94250         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
94252         * lib/memxor.h, lib/memxor.c: New files.
94254         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
94255         we assume all systems have it, suggested by Jim Meyering
94256         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
94257         any systems lack sys/socket.h; mingw32 is known to lack it, but we
94258         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
94259         same reasons.
94261 2005-10-05  Simon Josefsson  <jas@extundo.com>
94263         * config/srclist.txt: Add glibc bug 1423 for md5.h.
94265 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
94267         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
94268         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
94269         needed, since the source code now assumes these .h files.
94271 2005-10-05  Derek Price  <derek@ximbiot.com>
94273         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
94275 2005-10-05  Bruno Haible  <bruno@clisp.org>
94277         * modules/stdint (License): Change to LGPL.
94279 2005-10-04  Simon Josefsson  <jas@extundo.com>
94281         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
94282         D. Baushke" <mdb@gnu.org>.
94284 2005-10-04  Bruno Haible  <bruno@clisp.org>
94286         * lib/verify.h (verify_true): Provide alternative definition for C++.
94288 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
94290         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
94291         (SSIZE_MAX): New macro, if not already defined.
94292         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
94293         than 2 GiB.
94295 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
94297         Sync from coreutils.
94298         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
94299         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
94300         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
94301         ULLONG_MAX doesn't work with 2.7.2.1.
94303 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
94305         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
94306         From Ben Pfaff.
94308         * modules/exclude (Depends-on): Depend on verify.
94309         * modules/strtoimax (Depends-on): Likewise.
94310         * modules/utimecmp (Depends-on): Likewise.
94312 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
94314         * lib/exclude.c: Include verify.h.
94315         (verify): Remove.  All callers changed to use verify.h's version.
94316         * lib/strtoimax.c: Likewise.
94317         * lib/utimecmp.c: Likewis.e
94319         Sync from coreutils.
94320         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
94321         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
94322         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
94323         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
94324         bother returning ENOSYS if settimeofday or stime fails; just let
94325         them return whatever errno they want to return.
94326         * lib/utimens.c: Include unistd.h, for dup2.
94327         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
94328         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
94330 2005-10-02  Jim Meyering  <jim@meyering.net>
94332         Sync from coreutils.
94333         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
94334         from glibc-2.2.5 that fails for read-only files.
94336 2005-10-02  Jim Meyering  <jim@meyering.net>
94338         Sync from coreutils.
94339         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
94340         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
94341         `#if HAVE_CONFIG_H'.
94342         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
94343         Remove AT_FDCWD test.
94344         Do not consume the fd unless successful.
94345         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
94346         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
94347         block, so that we don't even try to compile it if settimeofday is
94348         available.  This works around a compilation failure on OSF1 V5.1,
94349         due to stime requiring a `long int*' while tv_sec is `int'.
94351 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
94353         Sync from coreutils.
94354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
94355         against `yes', rather than just testing for nonempty.
94357 2005-10-01  Simon Josefsson  <jas@extundo.com>
94359         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
94360         and Darwin.
94362         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
94363         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
94364         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
94365         freeaddrinfo and gai_strerror are declared by the POSIX headers.
94366         Check if struct addrinfo is declared.
94368 2005-10-01  Simon Josefsson  <jas@extundo.com>
94370         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
94371         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
94372         AI_* and EAI_* definitions.  Protect function declarations.
94374 2005-10-01  Jim Meyering  <jim@meyering.net>
94376         Sync from coreutils.
94378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
94379         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
94380         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
94381         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
94382         in the inet and nsl libraries.  Required on Solaris 5.7.
94384 2005-10-01  Jim Meyering  <jim@meyering.net>
94386         Sync from coreutils.
94387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
94388         in the inet and nsl libraries.  Required on Solaris 5.7.
94390 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
94392         * lib/getdelim.c (getdelim): Remove unused variables.
94394 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
94396         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
94397         so that the code works even with ancient cpp.  Portability problem
94398         with GCC 2.7.2.1 reported by Thomas M.Ott.
94400 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
94402         * modules/regex (Depends-on): Add strcase.
94404         * modules/gethostname (Licence): Change from GPL to LGPL, since
94405         gethostname.c is a trivial implementation of a standard library
94406         function.
94407         * modules/poll (License): Change from GPL to LGPL, since it's
94408         derived from LGPL code.
94410 2005-09-27  Jim Meyering  <jim@meyering.net>
94412         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
94413         HAVE_CONFIG_H.
94415         * lib/intprops.h (signed_type_or_expr__): Define.
94416         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
94417         for unsigned types.
94419 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
94421         * lib/verify.h (verify_expr): Remove, replacing with:
94422         (verify_true): New macro that returns true instead of void.
94423         (verify_type__): Remove.
94424         (verify): Use verify_true rather than verify_type__.
94426 2005-09-26  Bruno Haible  <bruno@clisp.org>
94428         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
94429         is necessary.
94430         (lib_SOURCES): Remove mbchar.c.
94431         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
94432         (Files): Add m4/mbrtowc.m4.
94433         * modules/mbiter: Likewise.
94434         * modules/mbuiter: Likewise.
94436 2005-09-26  Bruno Haible  <bruno@clisp.org>
94438         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
94439         compile mbchar.c if they are not both present.
94440         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
94441         * m4/mbiter.m4 (gl_MBITER): Likewise.
94442         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
94443         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
94444         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
94446 2005-09-25  Jim Meyering  <jim@meyering.net>
94448         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
94449         also uses socklen_t.
94451 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
94453         * lib/utimens.c (ENOSYS): Define if not already defined.
94454         (futimens): Support having a null PATH if the file descriptor
94455         is nonnegative.
94457         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
94458         Remove.
94459         (__attribute): Define to empty unless GCC 3.1 or later.
94460         This works around a core dump on OpenBSD 3.4, which has GCC
94461         2.95.3, which dumps core when given __attribute__(()).  It also
94462         simplifies other tests, since we really don't want to bother with
94463         worrying about which ancient version of GCC supported what.
94464         Original problem reported by Yoann Vandoorselaere, with part of
94465         the fix suggested by Derek Price.
94467 2005-09-24  Jim Meyering  <jim@meyering.net>
94469         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
94470         so we can once again use a positive bitfield width of 1 -- now we
94471         don't have to explain why we were using a bitfield width of 2.
94473 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
94475         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
94476         and similarly for the other external symbols.  Problem reported
94477         by James Gallager.
94479         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
94480         bug reported by Jim Meyering.
94482         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
94483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
94484         not needed, since socklen is a prerequisite module.
94486 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
94488         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
94489         Problem reported by Eric Blake.
94490         (getaddrinfo): Initialize se so that it's not garbage.
94491         Redo internal storage allocation so that it doesn't make unportable
94492         assumptions about alignment.
94493         Fix a memory leak.
94495         * lib/utimens.c (futimens): Use futimesat if available.
94496         Prefer it to futimes since it doesn't have the futimes bug.
94498         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
94499         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
94500         Instead, declare a function that returns a pointer to an array,
94501         and use verify_type__ to declare the size of the array.
94502         Problem and germ of a solution reported by Bruno Haible.
94503         (verify_type__): Use 2, not 1, for bitfield size, to avoid
94504         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
94506 2005-09-23  Jim Meyering  <jim@meyering.net>
94508         Sync from coreutils.
94509         Correct build failure (socklen_t not defined) on at least
94510         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
94511         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
94513 2005-09-23  Jim Meyering  <jim@meyering.net>
94515         * modules/getaddrinfo (Depends-on): Add socklen.
94517 2005-09-23  Bruno Haible  <bruno@clisp.org>
94519         * tests/test-verify.c: New file.
94521 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94523         Sync from coreutils.
94525         * modules/argmatch (Depends-on): Add verify.
94526         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
94527         unistd-safer.
94528         * modules/save-cwd (Depends-on): Likewise.
94530         * modules/openat (Files): Add lib/openat-die.c.
94531         (Depends-on): Remove error, exitfail.
94532         Add dirname.
94534         * modules/verify: New file.
94535         * MODULES.html.sh (Diagnostics <assert.h>): New section,
94536         with "verify" module.
94538 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94540         Sync from coreutils.
94542         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
94543         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
94544         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
94545         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
94546         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
94547         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
94548         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
94549         Don't bother checking for string.h, stdlib.h, unistd.h.
94550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
94551         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
94552         module's job.
94553         * m4/jm-macros.m4 (gl_MACROS): Likewise.
94554         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
94556         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
94557         (gl_GETDATE): Use it.
94559         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
94561 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94563         Sync from coreutils.
94565         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
94566         stat-time.h.
94567         * lib/argmatch.h: Include verify.h
94568         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
94569         (ARGMATCH_ASSERT): Remove; unused.
94570         * lib/canonicalize.c: Assume STDC_HEADERS.
94571         * lib/exclude.c: Include "strcase.h".
94572         * lib/regex_internal.h [!defined _LIBC]: Likewise.
94573         * lib/getusershell.c: Include stdio--.h rather than stdio.h
94574         and stdio-safer.h.
94575         (getusershell): Call fopen, not fopen_safer.
94576         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
94577         Do not include unistd-safer.h.
94578         (save_cwd): Don't call fd_safer; no longer needed
94579         now that we include fcntl--.h.
94581         * lib/getdate.y (relative_time): New type.
94582         (RELATIVE_TIME_0): New constant.
94583         (parser_control): Use relative_time instead of doing it ourselves.
94584         (%union): Add new relative_time rel member.
94585         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
94586         Now typeless.
94587         (relunit, relunit_snumber): Now of type rel.
94588         (zone, rel, relunit, get_date): Adjust to above changes.
94590         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
94591         Do not include unistd-safer.h.
94592         (getloadavg): Don't call fd_safer; no longer needed
94593         now that we include fcntl--.h.
94595         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
94596         (make_dir_parents): Treat ENOSYS like EEXIST.
94598         Improve quality of diagnostics on restore_cwd failure.
94599         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
94600         (make_dir_parents): Last arg is now int * (for errno), not bool *.
94601         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
94602         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
94603         each time through the loop.  Do not diagnose restore_cwd failure;
94604         that is the caller's job (and perhaps the caller does not care).
94606         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
94607         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
94608         If the file already exists but is not a directory, don't bother
94609         to try to make its parents.
94610         Close potential file descriptor leak if we can't chdir("/") (!).
94611         Don't always return true if chdir($PWD) fails; return true only
94612         if the requested action was done successfully (except for the
94613         chdir($PWD)).
94614         Don't log final directory unless we actually made it.
94615         Refactor to avoid duplicate code to fix up permissions.
94616         Don't attempt to fix up parent permissions if chdir($PWD) fails.
94618         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
94619         to make it a bit faster and (I hope) clearer.
94620         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
94621         Fix bug in formats like %2N.
94623         * lib/verify.h: New file.
94625 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94627         Sync from coreutils.
94628         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
94630 2005-09-22  Jim Meyering  <jim@meyering.net>
94632         Sync from coreutils.
94634         * m4/lstat.m4 (gl_FUNC_LSTAT):
94635         Use AC_LIBSOURCES to require lstat.c and lstat.h.
94636         Remove obsolete comment.
94637         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
94638         * m4/xstrtod.m4: Likewise.
94640         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
94642 2005-09-22  Jim Meyering  <jim@meyering.net>
94644         Sync from coreutils.
94646         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
94648         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
94649         the .tm_year member, since otherwise gcc-4.0 would now warn about
94650         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
94652         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
94653         order to avoid an unsuppressible warning from gcc on 64-bit systems.
94655         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
94656         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
94657         when run in a time zone for which daylight savings time is in effect
94658         for the starting date.
94660         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
94661         stop us from restricting permissions of just-created absolute-named
94662         directories.
94663         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
94664         to restore initial working directory.
94665         * lib/mkdir-p.c (make_dir_parents): New parameter:
94666         different_working_dir, to tell caller if/when we change the working
94667         directory and are unable to return to the initial one.
94668         * lib/mkdir-p.h (make_dir_parents): Update prototype.
94669         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
94670         `return false'.  This fixes a bug introduced on 2004-07-30.
94672         * lib/openat.c (fdopendir): Be sure to close the supplied
94673         file descriptor before returning.  This makes our replacement
94674         implementation a little closer to Solaris's, where fdopendir
94675         ties the file descriptor to the returned DIR* pointer.
94676         * lib/openat.c (unlinkat): New function.
94677         * lib/openat.h (unlinkat): Add prototype.
94678         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
94679         (openat_restore_fail): Rename from openat_restore_die.
94680         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
94682         Provide an alternative to exiting immediately upon save_cwd or
94683         restore_cwd failure.  Now, an application can arrange e.g.,
94684         to perform a longjump in that case.
94685         * lib/openat.c: Include dirname.h.
94686         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
94687         (rpl_openat, fdopendir, fstatat): Call openat_save_die
94688         and openat_restore_die rather than calling error directly.
94689         Don't include "error.h" or "exitfail.h"; they're no longer needed.
94691         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
94692         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
94693         define.
94695         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
94696         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
94697                             int utc, int nanoseconds);
94698         Background:
94699         date should not have to allocate a megabyte of virtual memory to
94700         handle a format argument like +%1048575T.  When implemented with
94701         strftime, it must allocate such a buffer, use strftime to fill it
94702         in, print it, then free it.
94703         With fprintftime, it simply prints everything and exits.
94704         With no need for memory allocation, that's one fewer way to fail.
94705         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
94706         optional field width, not before, so we accept %9:z, not %:9z.
94707         (my_strftime): Be sure to use L_('x') for literals.
94709         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
94710         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
94711         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
94712         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
94713         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
94714         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
94715         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
94716         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
94717         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
94718         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
94719         * lib/xgethostname.c, lib/xreadlink.c:
94720         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
94722         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
94723         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
94724         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
94725         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
94726         and don't include <sys/file.h>).
94728 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
94730         Sync from coreutils.
94732         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
94733         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
94734         [!LDAV_DONE]: Avoid unused variable warning.
94736 2005-09-21  Bruno Haible  <bruno@clisp.org>
94738         * lib/unicodeio.h (unicode_to_mb): New declaration.
94740 2005-09-20  Derek Price  <derek@ximbiot.com>
94742         * lib/getaddrinfo.c: Don't include <netdb.h> included from
94743         getaddrinfo.h.
94745 2005-09-20  Bruno Haible  <bruno@clisp.org>
94747         * gnulib-tool: Remove trailing slashes from the values specified for
94748         --source-base, --m4-base, --tests-base, --aux-dir.
94749         Suggested by Simon Josefsson <jas@extundo.com>.
94751 2005-09-20  Bruno Haible  <bruno@clisp.org>
94753         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
94754         func_modules_to_filelist, func_import, func_create_testdir): Make all
94755         sorting results locale-independent, so that gnulib-cache.m4 doesn't
94756         change when gnulib-tool is invoked in a different locale.
94758 2005-09-19  Simon Josefsson  <jas@extundo.com>
94760         * m4/socklen.m4: Fix typo.
94762 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94764         Use a consistent style for including <config.h>.
94765         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
94766         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
94767         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
94768         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
94769         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
94770         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
94771         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
94772         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
94773         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
94774         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
94775         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
94776         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
94777         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
94778         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
94779         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
94780         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
94781         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
94782         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
94783         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
94784         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
94785         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
94786         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
94787         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
94788         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
94789         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
94790         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
94791         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
94792         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
94793         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
94794         lib/xstrtoumax.c, lib/yesno.c:
94795         Standardize inclusion of config.h.
94796         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
94797         lib/inttostr.h:  Removed inclusion of config.h from header files.
94798         * lib/inttostr.c:  Adjusted in-tree users.
94799         * lib/timespec.h: Remove superfluous warning to include config.h.
94800         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
94801         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
94802         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
94803         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
94804         config.h with HAVE_CONFIG_H.
94806 2005-09-19  Jim Meyering  <jim@meyering.net>
94808         * modules/pathmax (License): Change to LGPL.
94810 2005-09-19  Derek Price  <derek@ximbiot.com>
94812         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
94814 2005-09-19  Bruno Haible  <bruno@clisp.org>
94816         * gnulib-tool (import): Provide default for --tests-base.
94818 2005-09-19  Bruno Haible  <bruno@clisp.org>
94820         * doc/quote.texi: New file, extracted from gnulib.texi.
94821         * doc/ctime.texi: New file, extracted from gnulib.texi.
94822         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
94823         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
94824         * doc/gnulib.texi: Include them.
94826 2005-09-18  Bruno Haible  <bruno@clisp.org>
94828         Portability fix.
94829         * gnulib-tool (func_readlink): New function.
94830         (func_ln_if_changed): Use it.
94832 2005-09-18  Bruno Haible  <bruno@clisp.org>
94834         * gnulib-tool: Support --with-tests also with --import.
94835         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
94836         (func_import): Use variables $testsbase and $inctests. Emit a
94837         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
94838         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
94839         SUBDIRS += $testsdir.
94840         (func_create_testdir): Update.
94842 2005-09-18  Bruno Haible  <bruno@clisp.org>
94844         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
94845         instead of $dry_run.
94846         (func_cp_if_changed, func_mv_if_changed): Remove functions.
94847         (func_ln_if_changed): Don't handle dry-run here.
94848         (func_import): In dry-run mode, detect more precisely which actions
94849         would be performed, and don't use "...ing" verbs.
94851 2005-09-18  Bruno Haible  <bruno@clisp.org>
94853         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
94854         (func_import): Use join on two temporary files instead of three nested
94855         loops, in order to determine which files are new or old.
94857 2005-09-18  Bruno Haible  <bruno@clisp.org>
94859         * gnulib-tool (func_import): Comment out code that spits out the
94860         new files with --dry-run.
94862 2005-09-18  Bruno Haible  <bruno@clisp.org>
94864         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
94866 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
94868         * lib/stat-time.h: New file.
94869         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
94870         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
94871         in a different way.
94872         (timespec_cmp): New function.
94873         * lib/utimecmp.c: Include stat-time.h.
94874         (SYSCALL_RESOLUTION): Depend on whether various struct stat
94875         members exist, not on the obsolescent ST_MTIM_NSEC.
94876         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
94878 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
94880         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
94882 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
94884         * MODULES.html.sh (File system functions): Add stat-time.
94885         * modules/stat-time: New file.
94886         * modules/timespec (Files): Remove m4/st_mtim.m4; this
94887         is now done in a different way, by the stat-time module.
94888         * modules/utimecmp (Depends-on): Add stat-time.
94890 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94892         * m4/st_mtim.m4: Remove.  Superseded by...
94893         * m4/stat-time.m4: New file.
94894         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
94895         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
94897 2005-09-15  Derek Price  <derek@ximbiot.com>
94899         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
94901 2005-09-15  Derek Price  <derek@ximbiot.com>
94903         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
94904         * lib/regex_internal.c: Ditto, using this...
94905         (__GNUC_PREREQ): ...new macro.
94906         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
94907         using...
94908         (__GNUC_PREREQ): ...this new macro.
94910         * lib/strstr.h: Include string.h. Define strstr as a macro here.
94912 2005-09-15  Derek Price  <derek@ximbiot.com>
94913             Paul Eggert  <eggert@cs.ucla.edu>
94915         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
94916         changes, consolidating in...
94917         * lib/regex_internal.h: ...this file.
94919 2005-09-13  Jim Meyering  <jim@meyering.net>
94921         * lib/canon-host.c: Filter through gnu indent and reword comments
94922         slightly.
94923         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
94925 2005-09-13  Derek Price  <derek@ximbiot.com>
94927         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
94928         failure.
94929         Reported by Jim Meyering  <jim@meyering.net>.
94931 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
94933         * lib/base64.c: Typo.
94934         (base64_encode): Put b64str in initialized data section.
94936 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
94938         Merge glibc and coreutils changes into gnulib, plus a few
94939         extra fixes.
94940         * lib/md5.c: Use #error rather than a string.
94941         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
94942         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
94943         (__attribute__): Define to empty for non recent-GCC.
94944         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
94945         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
94946         Renamed from their non-__ counterparts, with new macros replacing
94947         them if not _LIBC.  Add __THROW attribute.
94948         (rol): Remove.
94949         (struct md5_ctx): Align buffer if using GCC.
94950         * lib/sha1.h (struct sha1_ctx): Likewise.
94951         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
94952         The old name was backwards.
94953         (NOTSWAP): Remove; not used.
94954         (rol): New macro, moved here from md5.h.
94955         (sha1_process_block): Remove a FIXME that doesn't make sense.
94957 2005-09-12  Derek Price  <derek@ximbiot.com>
94959         Return usable errors from canon-host.
94960         * lib/canon-host.h: New file.
94961         * lib/canon-host.c (canon_host): Wrap...
94962         (canon_host_r): ...this new function, which now relies exclusively on
94963         getaddrinfo.
94964         (ch_strerror): New function.
94965         (last_cherror): New global.
94966         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
94967         interface.
94968         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
94969         void *.
94970         (freeaddrinfo): Free ai->ai_canonname when set.
94972 2005-09-12  Derek Price  <derek@ximbiot.com>
94974         Make canon-host require getaddrinfo.
94975         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
94976         AC_LIBSOURCE canon-host.h.  Call...
94977         (gl_PREREQ_CANON_HOST): ...this new function, which requires
94978         gl_GETADDRINFO.
94979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
94981 2005-09-12  Derek Price  <derek@ximbiot.com>
94983         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
94984         LGPL.
94985         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
94987 2005-09-12  Derek Price  <derek@ximbiot.com>
94989         * lib/gai_strerror.c: Include config.h when available.  Include
94990         getaddrinfo.h before other headers to test interface.
94991         Reported by Larry Jones <lawrence.jones@ugs.com>.
94993 2005-09-12  Derek Price  <derek@ximbiot.com>
94994             Paul Eggert  <eggert@cs.ucla.edu>
94996         * modules/glob (Files): Add glob-libc.h.
94998 2005-09-12  Derek Price  <derek@ximbiot.com>
94999             Paul Eggert  <eggert@cs.ucla.edu>
95001         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
95002         glob_.h, glob-libc.h.
95003         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
95005 2005-09-12  Derek Price  <derek@ximbiot.com>
95006             Paul Eggert  <eggert@cs.ucla.edu>
95008         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
95009         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
95010         protecting things that should be done only in gnulib contexts.
95011         * lib/glob_.h: New file, containing only the glob things needed for
95012         gnulib.
95013         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
95014         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
95015         (glob, globfree, glob_pattern_p): Now defined simply in terms of
95016         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
95017         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
95018         and to respect the namespace rules better.
95020 2005-09-08  Simon Josefsson  <jas@extundo.com>
95022         * modules/socklen: New file.
95024 2005-09-08  Simon Josefsson  <jas@extundo.com>
95026         * m4/socklen.m4: New file.
95028 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95030         * modules/utimens (Files): Add m4/utimbuf.m4, since
95031         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
95032         Reported by Sergey Poznyakoff.
95034 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95036         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
95037         definitions, since that's the preferred style in glibc.
95038         Fix a minor spacing issue, and update copyright notice to match
95039         glibc's.
95041 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95043         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
95045 2005-09-06  Simon Josefsson  <jas@extundo.com>
95047         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
95048         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
95050 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
95052         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
95053         warning.
95055 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
95057         * config/srclist.txt: Add glibc bug 1302.
95059 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
95061         Change bitset word type from unsigned int to unsigned long int,
95062         as this has better performance on typical 64-bit hosts.
95063         Port bitset code to hosts with unusual word sizes.
95064         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
95065         (build_collating_symbol):
95066         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
95067         argument is a bitset.  This is merely a style issue, but it makes
95068         it clearer that an entire array is expected.
95069         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
95070         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
95071         Port to the case where bitset_word is not the same as unsigned int.
95072         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
95073         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
95074         Likewise.
95075         * lib/regexec.c (check_dst_limits_calc_pos_1,
95076         check_subexp_matching_top):
95077         (build_trtable, group_nodes_into_DFAstates):
95078         Likewise.
95079         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
95080         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
95081         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
95082         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
95083         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
95084         * lib/regcomp.c (optimize_subexps, lower_subexp):
95085         Work even if bitset_word has holes in its bitwise representation.
95086         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
95087         * lib/regexec.c (check_dst_limits_calc_pos_1,
95088         check_subexp_matching_top):
95089         Likewise.
95090         * lib/regex_internal.c (re_string_reconstruct):
95091         Don't assume UCHAR_MAX == 255.
95092         * lib/regex_internal.h (bitset_set_all): Likewise.
95093         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
95094         All uses changed.
95095         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
95096         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
95097         All uses changed.
95098         (BITSET_WORD_MAX): New macro.
95099         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
95100         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
95101         (bitset_empty, bitset_copy):
95102         Prefer sizeof (bitset) to multiplying it out ourselves.
95103         (bitset_not_merge): Remove; unused.
95104         (bitset_contain): Return bool, not unsigned int with one bit on.
95105         All callers changed.
95106         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
95107         alignment than re_node_set; do this by defining a new internal
95108         type struct dests_alloc and using it to allocate memory.
95110 2005-09-05  Bruno Haible  <bruno@clisp.org>
95112         * gnulib-tool (func_import): Fix comparison in handling of symbolic
95113         links.
95115 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
95117         * modules/size_max (Makefile.am): Add size_max.h
95119 2005-09-04  Derek Price  <derek@ximbiot.com>
95121         * gnulib-tool (func_import): Fix reversed $symbolic logic.
95123 2005-09-03  Simon Josefsson  <jas@extundo.com>
95125         * gnulib-tool: Fix typo.
95127 2005-09-03  Simon Josefsson  <jas@extundo.com>
95129         * config/srclist.txt: Add glibc bug 1293.
95131 2005-09-03  Derek Price  <derek@ximbiot.com>
95133         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
95134         From Larry Jones <lawrence.jones@ugs.com>.
95136 2005-09-02  Simon Josefsson  <jas@extundo.com>
95138         * modules/socklen: New file.
95140 2005-09-02  Simon Josefsson  <jas@extundo.com>
95142         * modules/havelib: New module.
95144         * modules/gettext, modules/iconv, modules/lock, modules/readline:
95145         Use havelib.
95147 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
95149         Check for arithmetic overflow when calculating sizes, to prevent
95150         some buffer-overflow issues.  These patches are conservative, in the
95151         sense that when I couldn't determine whether an overflow was possible,
95152         I inserted a run-time check.
95153         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
95154         macros.
95155         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
95156         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
95157         (re_xnrealloc, re_x2nrealloc): New inline functions.
95158         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
95159         parse_bracket_exp):
95160         (build_equiv_class, build_charclass): Check for arithmetic overflow
95161         in size expression calculations.
95162         * lib/regex_internal.c (re_string_realloc_buffers):
95163         (build_wcs_upper_buffer, re_node_set_add_intersect):
95164         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
95165         (re_dfa_add_node, register_state): Likewise.
95166         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
95167         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
95168         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
95169         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
95171 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
95173         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
95174         m4/ulonglong.m4.  Problem reported by Martin Lambers.
95176 2005-09-02  Bruno Haible  <bruno@clisp.org>
95178         Support for lib vs. lib64 distinction on biarch platforms.
95179         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
95180         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
95181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
95183 2005-09-02  Bruno Haible  <bruno@clisp.org>
95185         * gnulib-tool (import): In the other first-use case, provide defaults
95186         as well.
95188 2005-09-02  Bruno Haible  <bruno@clisp.org>
95190         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
95191         patches not yet found in the latest gettext release.
95193 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95195         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
95196         to avoid a collision with bits/local_lim.h in glibc.
95197         All uses changed.  Problem reported by Dmitry V. Levin in
95198         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
95200         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
95201         bugs in int versus size_t comparisons.
95202         (re_string_context_at): Fix bug where the code assumed that
95203         Idx is signed.
95205         Use bool where appropriate.
95206         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
95207         All callers changed.
95208         (calc_eclosure_iter): Likewise, for ROOT arg.
95209         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
95210         (build_charclass_op): Likewise, for NON_MATCH arg.
95211         * lib/regex_internal.c (re_string_allocate, re_string_construct):
95212         (re_string_construct_common): Likewise, for ICASE arg.
95213         * lib/regexec.c (re_search_2_stub, re_search_stub):
95214         Likewise, for RET_LEN arg.
95215         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
95216         (set_regs): Likewise, for FL_BACKTRACK arg.
95217         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
95218         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
95219         (calc_eclosure_iter, parse_bracket_exp):
95220         Use bool for internal variables that are booleans.
95221         * lib/regexec.c (re_search_internal, check_matching,
95222         proceed_next_node):
95223         (set_regs, build_sifted_states, sift_states_bkref):
95224         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
95225         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
95226         (find_collation_sequence_value):
95227         Likewise.
95228         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
95229         (re_node_set_compare):
95230         Return bool, not int. All callers changed.
95231         * lib/regexec.c (check_halt_node_context, check_dst_limits):
95232         (build_trtable, check_node_accept): Likewise.
95233         * lib/regex_internal.h: Include stdbool.h.
95235         Fix bugs uncovered when converting to bool.
95236         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
95237         failure instead of charging ahead blindly.
95238         * lib/regex_internal.c (register_state): Likewise.
95239         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
95240         for freeing internal storage.
95241         (group_nodes_into_DFA_states): Use unsigned int, not int, for
95242         bitset pieces used as boolean, to avoid undefined behavior
95243         on hosts that do int overflow checking.
95245 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95247         * config/srclist.txt: Add glibc bugs 1285-1287.
95249 2005-09-01  Jim Meyering  <jim@meyering.net>
95251         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
95252         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
95253         Require gl_STAT_MACROS, too.
95255 2005-09-01  Bruno Haible  <bruno@clisp.org>
95257         * gnulib-tool (import): In the first-use case, provide defaults.
95259 2005-09-01  Bruno Haible  <bruno@clisp.org>
95261         * gnulib-tool (func_import): Remove the .tmp files.
95263 2005-09-01  Bruno Haible  <bruno@clisp.org>
95265         * gnulib-tool (func_import): Fix handling of symbolic links.
95267 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95269         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
95270         old glibc regex code mishandles strings longer than 2**31 bytes.
95271         This patch fixes this when the regex code is used in gnulib
95272         (i.e., outside glibc).
95274         This patch should not affect the use of the regex code inside
95275         glibc.  No doubt this problem also needs to be handled for glibc
95276         as well, but the result will be an incompatible change to the
95277         glibc ABI, and the old ABI will have to be supported too.  That
95278         can be the the subject for another patch.
95280         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
95281         governing whether the rest of this patch is active.  By default,
95282         the macro is disabled and the patch has no effect.
95283         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
95284         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
95285         (struct re_pattern_buffer, re_search, re_search_2, re_match):
95286         (re_match_2, re_set_registers): Use the new types.
95287         * lib/regex_internal.h (Idx, re_hashval_t): New types.
95288         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
95289         New macros.
95290         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
95291         (re_string_context_at, bin_tree_t, re_dfastate_t):
95292         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
95293         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
95294         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
95295         (re_string_char_size_at, re_string_wchar_at):
95296         (re_string_elem_size_at):
95297         Use the new types and macros to port to 64-bit hosts.
95298         Use unsigned types for internal values, so that the code
95299         mostly works even for arrays larger than SSIZE_MAX.
95300         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
95301         (search_duplicated_node, calc_eclosure_iter, fetch_number):
95302         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
95303         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
95304         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
95305         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
95306         (calc_inveclosure, parse_dup_op, build_range_exp):
95307         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
95308         (fetch_number, create_token_tree, mark_opt_subexp):
95309         Likewise.
95310         * lib/regex_internal.c (re_string_construct_common,
95311         create_ci_newstate):
95312         (create_cd_newstate, re_string_allocate, re_string_construct):
95313         (re_string_realloc_buffers, build_wcs_upper_buffer):
95314         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
95315         (re_string_reconstruct, re_string_peek_byte_case):
95316         (re_string_fetch_byte_case, re_string_context_at):
95317         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
95318         (re_node_set_init_copy, re_node_set_add_intersect):
95319         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
95320         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
95321         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
95322         (re_acquire_state, re_acquire_state_context, register_state):
95323         Likewise.
95324         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
95325         search_cur_bkref_entry):
95326         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
95327         (re_search_internal, re_search_2_stub, re_search_stub)
95328         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
95329         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
95330         (update_cur_sifted_state, check_dst_limits):
95331         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
95332         (check_subexp_limits, sift_states_bkref, merge_state_array):
95333         (check_subexp_matching_top, get_subexp, get_subexp_sub):
95334         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
95335         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
95336         (expand_bkref_cache, check_node_accept_bytes):
95337         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
95338         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
95339         (acquire_init_state_context, check_halt_node_context):
95340         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
95341         (sift_states_backward, clean_state_log_if_needed):
95342         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
95343         (find_recover_state, transit_state_sb, transit_state_mb):
95344         (transit_state_bkref, build_trtable, match_ctx_clean):
95345         Likewise.
95346         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
95347         to work around an assumption that REG_MISSING is negative.
95349         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
95350         (seek_collating_symbol_entry) [defined _LIBC]:
95351         (lookup_collation_sequence_value) [defined _LIBC]:
95352         (build_range_exp, build_collating_symbol) [defined _LIBC]:
95353         Use prototypes rather than old-style function definitions.
95354         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
95355         (transit_state_sb) [0]:
95356         (find_collation_sequence_value) [defined _LIBC]: Likewise.
95358         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
95359         rm_eo.
95361         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
95362         (optimize_subexps, lower_subexp):
95363         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
95364         since the signed shift might overflow.  Use 1u<<31 instead.
95365         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
95366         Likewise.
95367         * lib/regexec.c (check_dst_limits_calc_pos_1,
95368         check_subexp_matching_top): Likewise.
95370         * lib/regcomp.c (optimize_subexps, lower_subexp):
95371         Use CHAR_BIT rather than 8, for clarity.
95372         * lib/regexec.c (check_dst_limits_calc_pos_1):
95373         (check_subexp_matching_top): Likewise.
95374         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
95375         have to worry about portability issues when shifting it left.
95376         Remove no-longer-needed test for table_size > 0.
95377         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
95378         in a word, as the resulting behavior is undefined.
95379         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
95380         in one case, a <= should have been an <, and in another case the
95381         whole test was missing.
95382         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
95383         the standard name CHAR_BIT.
95384         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
95385         this is not true on one's complement and signed-magnitude hosts.
95387         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
95388         next_last_offset.
95389         (struct re_dfa_t): Remove unused member states_alloc.
95390         * lib/regcomp.c (init_dfa): Don't initialize unused members.
95392 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95394         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
95395         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
95396         and large-file glibc and in 32-bit large-file Solaris.
95398 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95400         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
95401         lengths fit in regoff_t; this isn't true if regoff_t is the same
95402         width as size_t.
95403         * lib/regex.c (re_search_internal): 5th arg is LAST_START
95404         (= START + RANGE) instead of RANGE.  This avoids overflow
95405         problems when regoff_t is the same width as size_t.
95406         All callers changed.
95407         (re_search_2_stub): Check for overflow when adding the
95408         sizes of the two strings.
95409         (re_search_stub): Check for overflow when adding START
95410         to RANGE; if it occurs, substitute the extreme value.
95412 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95414         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
95416 2005-08-31  Jim Meyering  <jim@meyering.net>
95418         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
95419         a pointer-to-const.
95420         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
95421         (register_state): Likewise.
95422         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
95423         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
95424         (group_nodes_into_DFAstates): Likewise.
95426 2005-08-31  Jim Meyering  <jim@meyering.net>
95428         * check-module: Add a FIXME comment.
95430 2005-08-31  Eric Blake  <ebb9@byu.net>
95432         * modules/unistd-safer (Files): Add unistd--.h.
95433         * modules/stdio-safer (Files): Add stdio--.h.
95435 2005-08-31  Derek Price  <derek@ximbiot.com>
95437         * lib/getdelim.c (getdelim): Return EOF on EOF.
95438         Reported by Larry Jones <lawrence.jones@ugs.com>.
95440 2005-08-31  Bruno Haible  <bruno@clisp.org>
95442         Avoid unnecessary diffs in the generated lib/Makefile.am.
95443         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
95444         the generated files.
95445         (func_import): Don't set cmd.
95447 2005-08-31  Bruno Haible  <bruno@clisp.org>
95449         * lib/strstr.c: Include <stddef.h>, for NULL.
95450         * lib/strcasestr.c: Likewise.
95451         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95453 2005-08-31  Bruno Haible  <bruno@clisp.org>
95455         * gnulib-tool: New option --macro-prefix.
95456         (func_import): Use macro_prefix.
95457         (import): Handle option --macro-prefix.
95459 2005-08-31  Bruno Haible  <bruno@clisp.org>
95461         * gnulib-tool (import): Rename most ac_* variables to cached_*.
95462         Also use new variables cached_lgpl, cached_libtool.
95464 2005-08-31  Bruno Haible  <bruno@clisp.org>
95466         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
95467         always instantiating them.
95469 2005-08-31  Bruno Haible  <bruno@clisp.org>
95471         * gnulib-tool (func_import): Read the previous cached settings
95472         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
95473         earlier added by gnulib but are now dropped. Warn when a gnulib file
95474         overwrites a non-gnulib file.
95476 2005-08-31  Bruno Haible  <bruno@clisp.org>
95478         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
95479         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
95480         projects that don't keep autogenerated files in CVS. Put into
95481         actioncmd only the specified modules, not the transitive closure.
95483 2005-08-31  Bruno Haible  <bruno@clisp.org>
95485         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
95486         Create directories that shall be filled.
95487         (import): Don't look for gl_* macros in configure.ac. Recurse across
95488         all directories containing a gnulib-cache.m4 files, if meaningful.
95490 2005-08-31  Bruno Haible  <bruno@clisp.org>
95492         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
95493         (import): Set seen_libtool when we see gl_LIBTOOL.
95495 2005-08-31  Bruno Haible  <bruno@clisp.org>
95497         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
95498         declaration macro definitions from generated gnulib.m4.
95500 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
95502         * lib/iconvme.h: Add prototype for iconv_alloc.
95504 2005-08-29  Simon Josefsson  <jas@extundo.com>
95506         * lib/iconvme.c: Fix errno.
95508 2005-08-29  Bruno Haible  <bruno@clisp.org>
95510         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
95511         that it works when the directory contains spaces.
95513 2005-08-29  Bruno Haible  <bruno@clisp.org>
95515         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
95517 2005-08-29  Bruno Haible  <bruno@clisp.org>
95519         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
95520         Emit more advice.
95522 2005-08-29  Bruno Haible  <bruno@clisp.org>
95523         and Stepan Kasal  <kasal@ucw.cz>
95525         * check-module: If more parameters are given, check each of them
95526         separately; add more exceptions, as noted by Jim Meyering.
95527         (check_module): New procedure.
95528         (%exempt_header): Now contains all exceptions.
95530 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
95532         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
95534 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
95536         * lib/iconvme.c: Split iconv_string into iconv_alloc.
95538 2005-08-28  Bruno Haible  <bruno@clisp.org>
95540         * m4/gnulib-tool.m4: New file.
95542 2005-08-27  Jim Meyering  <jim@meyering.net>
95544         * modules/unistd-safer (Files): Add pipe-safer.c.
95545         * modules/fcntl-safer (Files): Add creat-safer.c.
95547 2005-08-27  Jim Meyering  <jim@meyering.net>
95549         * m4/stdlib-safer.m4: New file.  From coreutils.
95550         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
95551         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
95552         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
95553         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
95554         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
95556 2005-08-27  Jim Meyering  <jim@meyering.net>
95558         * lib/fopen-safer.c: Merge minor changes from coreutils.
95559         * lib/dup-safer.c: Likewise.
95560         * lib/fd-safer.c: Likewise.
95562         Merge from coreutils.
95563         * lib/stdio--.h: New file.
95564         * lib/stdlib--.h: New file.
95565         * lib/mkstemp-safer.c: New file.
95567         GNU tar needs these.
95568         * lib/pipe-safer.c: New file.
95569         * lib/creat-safer.c: New file.
95570         * lib/fcntl--.h (creat): Define to creat_safer.
95571         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
95572         * lib/unistd--.h (pipe): Define to pipe_safer.
95573         * lib/unistd-safer.h: Declare pipe_safer.
95575 2005-08-26  Simon Josefsson  <jas@extundo.com>
95577         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
95578         Haible <bruno@clisp.org>.
95580 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
95582         * lib/regex_internal.h: Remove all references to
95583         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
95584         or better.
95585         (bitset_not, bitset_merge, bitset_not_merge):
95586         (bitset_mask, re_string_allocate, re_string_construct):
95587         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
95588         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
95589         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
95590         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
95591         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
95592         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
95593         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
95594         (re_acquire_state_context):
95595         Remove unnecessary forward decls.
95596         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
95597         Put __attribute at function definition,
95598         now that the function decl has been removed.
95599         * lib/regex_internal.c (re_string_peek_byte_case):
95600         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
95601         Likewise.
95603 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
95605         * m4/regex.m4: Add AC_PREREQ(2.50).
95606         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
95608 2005-08-25  Simon Josefsson  <jas@extundo.com>
95610         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
95611         __fsetlocking.
95613 2005-08-25  Simon Josefsson  <jas@extundo.com>
95615         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
95616         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
95617         GLIBC specific code.
95619 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95621         Make regex safe for g++.  This fixes one real bug (an "err"
95622         that should have been "*err").  g++ problem reported by
95623         Sam Steingold.
95624         * lib/regex_internal.h (re_calloc): New macro, consistent with
95625         re_malloc etc.  All callers of calloc changed to use re_calloc.
95626         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
95627         not int.  All callers changed.
95628         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
95629         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
95630         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
95631         (find_recover_state): Change "err" to "*err"; this fixes what
95632         appears to be a real bug.
95633         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
95634         versus int.
95636 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95638         * modules/regex (Depends-on): Add malloc, since the code
95639         assumes that !malloc(0) means failure.
95641 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95643         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
95645         alloca modernization/simplification for regex.
95646         * lib/regex.c: Remove portability cruft for alloca.  This no longer
95647         needs to be at the start of the file, and can be moved into
95648         regex_internal.h and simplified.
95649         * lib/regex_internal.h: Include <alloca.h>.
95650         (__libc_use_alloca) [!defined _LIBC]: New macro.
95651         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
95652         now works outside glibc.
95654 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95656         * config/srclist.txt: Add glibc bugs 1241, 1245.
95658 2005-08-25  Jim Meyering  <jim@meyering.net>
95660         * lib/open-safer.c: Include <config.h>.
95661         Otherwise, we'd lose LARGEFILE support in any file using
95662         e.g. "fcntl--.h"
95664 2005-08-25  Bruno Haible  <bruno@clisp.org>
95666         * m4/minmax.m4: Require autoconf 2.52.
95667         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
95668         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
95669         alternatives of translit over the alphabet.
95670         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
95672 2005-08-24  Simon Josefsson  <jas@extundo.com>
95674         * tests/test-getpass.c: New file.
95676 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95678         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
95679         for GNU regex features.
95681 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95683         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
95684         * lib/regex.h (regerror): Likewise.
95686         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
95687         requires this.  (The code never needed it.)
95689         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
95690         All uses of recently-renamed identifiers changed to use the new,
95691         POSIX-compliant names.  The code will build and run just fine
95692         without these changes, but it's better to eat our own dog food
95693         and use the standard-conforming names.
95695         * lib/regex.h: Fix a multitude of POSIX name space violations.
95696         These changes have an effect only for programs that define
95697         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
95698         do not change anything for programs compiled in the normal way.
95699         Also, there is no effect on the ABI.
95701         (_REGEX_SOURCE): New macro.
95702         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
95703         defined and _GNU_SOURCE is not; this fixes a name space violation.
95705         Rename the following macros to obey POSIX requirements.
95706         The old names are still visible as macros if _REGEX_SOURCE is defined.
95707         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
95708         RE_BACKSLASH_ESCAPE_IN_LISTS.
95709         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
95710         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
95711         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
95712         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
95713         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
95714         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
95715         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
95716         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
95717         (REG_INTERVALS): renamed from RE_INTERVALS.
95718         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
95719         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
95720         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
95721         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
95722         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
95723         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
95724         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
95725         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
95726         RE_UNMATCHED_RIGHT_PAREN_ORD.
95727         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
95728         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
95729         (REG_DEBUG): renamed from RE_DEBUG.
95730         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
95731         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
95732         unusual, since we can't clash with the POSIX REG_ICASE.
95733         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
95734         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
95735         (REG_NO_SUB): renamed from RE_NO_SUB.
95736         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
95737         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
95738         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
95739         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
95740         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
95741         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
95742         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
95743         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
95744         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
95745         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
95746         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
95747         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
95748         RE_SYNTAX_POSIX_MINIMAL_BASIC.
95749         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
95750         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
95751         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
95752         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
95753         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
95754         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
95755         (REG_FIXED): Renamed from REGS_FIXED.
95756         (REG_NREGS): Renamed from RE_NREGS.
95758         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
95759         of other REG_* macros, since POSIX says the user is allowed to
95760         #undef these macros selectively.
95762         (reg_errcode_t): Update comment stating what other tables need
95763         to be consistent.
95765         Rename the following enum values to obey POSIX requirements.
95766         The old names are still visible as macros.
95767         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
95768         is not defined, since GNU is supposed to be a superset of POSIX as
95769         much as possible, and since we want reg_errcode_t to be a signed
95770         type for implementation consistency.
95771         (_REG_NOERROR): Renamed from REG_NOERROR.
95772         (_REG_NOMATCH): Renamed from REG_NOMATCH.
95773         (_REG_BADPAT): Renamed from REG_BADPAT.
95774         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
95775         (_REG_ECTYPE): Renamed from REG_ECTYPE.
95776         (_REG_EESCAPE): Renamed from REG_EESCAPE.
95777         (_REG_ESUBREG): Renamed from REG_ESUBREG.
95778         (_REG_EBRACK): Renamed from REG_EBRACK.
95779         (_REG_EPAREN): Renamed from REG_EPAREN.
95780         (_REG_EBRACE): Renamed from REG_EBRACE.
95781         (_REG_BADBR): Renamed from REG_BADBR.
95782         (_REG_ERANGE): Renamed from REG_ERANGE.
95783         (_REG_ESPACE): Renamed from REG_ESPACE.
95784         (_REG_BADRPT): Renamed from REG_BADRPT.
95785         (_REG_EEND): Renamed from REG_EEND.
95786         (_REG_ESIZE): Renamed from REG_ESIZE.
95787         (_REG_ERPAREN): Renamed from REG_ERPAREN.
95788         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
95789         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
95790         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
95791         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
95793         (_REG_RE_NAME, _REG_RM_NAME): New macros.
95794         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
95795         changed.  But support the old name if the new one is not defined
95796         and if _REGEX_SOURCE.
95798         Change the following member names in struct re_pattern_buffer.
95799         The old names are still supported if !_REGEX_SOURCE.
95800         The new names are always supported, regardless of _REGEX_SOURCE.
95801         (re_buffer): Renamed from buffer.
95802         (re_allocated): Renamed from allocated.
95803         (re_used): Renamed from used.
95804         (re_syntax): Renamed from syntax.
95805         (re_fastmap): Renamed from fastmap.
95806         (re_translate): Renamed from translate.
95807         (re_can_be_null): Renamed from can_be_null.
95808         (re_regs_allocated): Renamed from regs_allocated.
95809         (re_fastmap_accurate): Renamed from fastmap_accurate.
95810         (re_no_sub): Renamed from no_sub.
95811         (re_not_bol): Renamed from not_bol.
95812         (re_not_eol): Renamed from not_eol.
95813         (re_newline_anchor): Renamed from newline_anchor.
95815         Change the following member names in struct re_registers.
95816         The old names are still supported if !_REGEX_SOURCE.
95817         The new names are always supported, regardless of _REGEX_SOURCE.
95818         (rm_num_regs): Renamed from num_regs.
95819         (rm_start): Renamed from start.
95820         (rm_end): Renamed from end.
95822         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
95823         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
95824         Prepend __ to parameter names.
95826         Undo yesterday's changes.
95828 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95830         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
95831         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
95832         lib/regex.c.
95834 2005-08-24  Jim Meyering  <jim@meyering.net>
95836         Sync from coreutils.
95837         * m4/fcntl-safer.m4: New file.
95839         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
95840         and object files for this module.
95842 2005-08-24  Jim Meyering  <jim@meyering.net>
95844         Sync from coreutils.
95845         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
95847 2005-08-24  Jim Meyering  <jim@meyering.net>
95849         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
95850         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
95852 2005-08-24  Jim Meyering  <jim@meyering.net>
95854         * modules/fcntl-safer: New module.
95855         * modules/fts (Depends-on): Add fcntl-safer.
95856         * MODULES.html.sh (File descriptor based Input/Output):
95857         Add fcntl-safer.
95859 2005-08-24  Bruno Haible  <bruno@clisp.org>
95861         Support for unit test modules.
95862         * modules/README: Mention tests modules.
95863         * modules/TEMPLATE-TESTS: New file.
95864         * gnulib-tool: New options --extract-tests-module, --with-tests and
95865         --tests-base (unused for the moment).
95866         (testsbase, inctests): New variables.
95867         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
95868         (func_verify_module): Exclude TEMPLATE-TESTS.
95869         (func_verify_nontests_module, func_verify_tests_module): New functions.
95870         (func_get_dependencies): Add implicit dependency for tests modules.
95871         (func_get_tests_module): New function.
95872         (func_modules_transitive_closure): When --with-tests was specified,
95873         include the unit tests as well, unless explicitly avoided.
95874         (func_emit_lib_Makefile_am): Ignore the tests modules here.
95875         (func_emit_tests_Makefile_am): New function.
95876         (func_create_testdir): When --with-tests was specified, emit a
95877         tests/ directory.
95878         * MODULES.html.sh (Future developments): Update.
95880 2005-08-24  Bruno Haible  <bruno@clisp.org>
95882         * modules/tls-tests: New file.
95883         * tests/test-tls.c: New file, from GNU gettext.
95885 2005-08-24  Bruno Haible  <bruno@clisp.org>
95887         * modules/lock-tests: New file.
95888         * tests/test-lock.c: New file, from GNU gettext.
95890 2005-08-24  Bruno Haible  <bruno@clisp.org>
95892         * lib/lock.h: Add multiple inclusion guard.
95893         * lib/tls.h: Add multiple inclusion guard.
95895 2005-08-24  Bruno Haible  <bruno@clisp.org>
95897         * gnulib-tool: Add support for the --aux-dir option to
95898         --create-testdir, --create-megatestdir, --test, --megatest.
95899         (func_create_testdir, func_create_megatestdir): Optionally emit a
95900         AC_CONFIG_AUX_DIR directive.
95901         (create-testdir, create-megatestdir, test, megatest): Provide a
95902         default value for $auxdir.
95904 2005-08-24  Bruno Haible  <bruno@clisp.org>
95906         * gnulib-tool (import): Use compound statement instead of subshell
95907         where possible.
95909 2005-08-24  Bruno Haible  <bruno@clisp.org>
95911         * gnulib-tool (import): Change --aux-dir default to "build-aux".
95913 2005-08-24  Bruno Haible  <bruno@clisp.org>
95915         * gnulib-tool (func_version): Update.
95917 2005-08-24  Bruno Haible  <bruno@clisp.org>
95919         * gnulib-tool (func_import, func_create_testdir,
95920         func_create_megatestdir): Quote all autoconf macro arguments.
95922 2005-08-24  Bruno Haible  <bruno@clisp.org>
95924         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
95925         option --force, because --force causes the aclocal.m4 of each
95926         subdirectory to be newer than the corresponding config.h.in.
95928 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95930         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
95931         All contents moved to gl_REGEX.
95932         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
95933         assume that it does.
95935 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95937         * lib/regex.h (REG_NOSYS)
95938         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
95939         Define, since POSIX requires it as of 2001.
95940         (_REG_ENOSYS)
95941         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
95942         New private symbol, used to keep the enum signed in all cases.
95943         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
95944         Youngman in
95945         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
95947         * lib/regex_internal.c (re_string_skip_chars, register_state):
95948         (calc_state_hash):
95949         Remove forward decls; no longer needed now that we use prototypes.
95950         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
95951         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
95952         (clean_state_log_if_needed): Likewise.
95954 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95956         * config/srclist.txt: Add glibc bugs 1231-1233.
95958 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95960         Fix problems reported by Sam Steingold in
95961         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
95962         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
95963         assumed that reg_errcode_t is a signed type, which is not
95964         necessarily true if _XOPEN_SOURCE is not defined.
95965         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
95966         since some compilers warn about it otherwise.
95968 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95970         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
95971         (init_word_char, create_initial_state, duplicate_node_closure):
95972         (fetch_token, peek_token_bracket, build_range_exp):
95973         (build_collating_symbol): Remove forward decls; no longer needed
95974         now that we use prototypes.
95976         * lib/regcomp.c:
95977         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
95978         (re_compile_fastmap_iter, regcomp, regerror, regfree):
95979         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
95980         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
95981         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
95982         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
95983         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
95984         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
95985         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
95986         (build_range_exp, build_collating_symbol, parse_bracket_exp):
95987         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
95988         (build_charclass, build_charclass_op, fetch_number, create_tree):
95989         (create_token_tree, mark_opt_subexp, duplicate_tree):
95990         Use prototypes rather than old-style definitions.
95992         * lib/regex_internal.c:
95993         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
95994         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
95995         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
95996         (re_string_reconstruct, re_string_peek_byte_case):
95997         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
95998         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
95999         (re_node_set_init_copy, re_node_set_add_intersect):
96000         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
96001         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
96002         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
96003         (re_acquire_state, re_acquire_state_context, register_state):
96004         (create_ci_newstate, create_cd_newstate, free_state):
96005         Likewise.
96006         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
96007         re_search_2):
96008         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
96009         (re_search_internal, prune_impossible_nodes):
96010         (acquire_init_state_context, check_matching, static):
96011         (check_halt_node_context, check_halt_state_context, proceed_next_node):
96012         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
96013         (update_regs, sift_states_backward, build_sifted_states):
96014         (clean_state_log_if_needed, merge_state_array):
96015         (update_cur_sifted_state, add_epsilon_src_nodes):
96016         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
96017         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
96018         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
96019         (find_recover_state, check_subexp_matching_top, transit_state_mb):
96020         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
96021         (check_arrival, check_arrival_add_next_nodes):
96022         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
96023         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
96024         (check_node_accept_bytes, check_node_accept, extend_buffers):
96025         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
96026         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
96027         (sift_ctx_init):
96028         Likewise.
96030         * lib/regex_internal.h:
96031         (re_string_allocate, re_string_construct, re_string_reconstruct):
96032         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
96033         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
96034         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
96035         (re_string_context_at, re_string_peek_byte_case):
96036         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
96037         is defined, since we now use prototypes always.
96039         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
96040         C89 or better.  All uses removed.
96042 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96044         * config/srclist.txt: Add glibc bugs 1220-1227.
96046 2005-08-20  Jim Meyering  <jim@meyering.net>
96048         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
96049         of unused local, dfa.
96051 2005-08-20  Bruno Haible  <bruno@clisp.org>
96053         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
96055 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96057         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
96058         (re_node_set_insert_last, re_dfa_add_node):
96059         Rename local variables to avoid GCC shadowing warnings.
96061 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96063         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
96064         [defined lint]: Suppress bogus uninitialized-variable warnings.
96066         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
96067         and let the caller return REG_ESPACE if out of space.  This
96068         removes an uninitialied-variable warning with GCC 4.0.1, and also
96069         avoids taking the address of a local variable.  All callers
96070         changed.
96072 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96074         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
96075         $LIBCSRC/posix/regexec.c.
96076         Add glibc bug 1217 for regcomp.c.
96078 2005-08-19  Jim Meyering  <jim@meyering.net>
96080         * lib/regexec.c (proceed_next_node): Redo local variables to
96081         avoid GCC shadowing warnings.
96083 2005-08-18  Bruno Haible  <bruno@clisp.org>
96085         * lib/strstr.c (strstr): Fix return value in multibyte case.
96086         * lib/strcasestr.c (strcasestr): Likewise.
96088 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96090         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
96092 2005-08-17  Jim Meyering  <jim@meyering.net>
96094         Make the %s format (seconds since the epoch) work for a negative
96095         number and when used with a zero-padded field width, e.g. %015s.
96097         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
96098         label so that it precedes the code to set `digits'.  Otherwise,
96099         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
96100         print `00-22'.  Now, it prints `-0022', as it should.
96102 2005-08-17  Bruno Haible  <bruno@clisp.org>
96104         * modules/strstr (Files): Add m4/mbrtowc.m4.
96105         (Depends-on): Add mbuiter.
96107 2005-08-17  Bruno Haible  <bruno@clisp.org>
96109         * modules/strcasestr: New file.
96110         * MODULES.html.sh (String handling, based on ANSI C 89): Add
96111         strcasestr.
96113 2005-08-17  Bruno Haible  <bruno@clisp.org>
96115         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
96117 2005-08-17  Bruno Haible  <bruno@clisp.org>
96119         * modules/mbuiter: New file.
96120         * MODULES.html.sh (Extended multibyte and wide character utilities):
96121         Add mbuiter.
96123 2005-08-17  Bruno Haible  <bruno@clisp.org>
96125         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
96126         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
96128 2005-08-17  Bruno Haible  <bruno@clisp.org>
96130         * m4/strcasestr.m4: New file.
96132 2005-08-17  Bruno Haible  <bruno@clisp.org>
96134         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
96135         * lib/strstr.c: Completely rewritten, with multibyte locale support.
96137 2005-08-17  Bruno Haible  <bruno@clisp.org>
96139         * lib/strcasestr.h: New file.
96140         * lib/strcasestr.c: New file.
96142 2005-08-17  Bruno Haible  <bruno@clisp.org>
96144         * lib/strcasecmp.c: Use mbuiter.h.
96146 2005-08-17  Bruno Haible  <bruno@clisp.org>
96148         * lib/mbuiter.h: New file.
96150 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
96152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
96153         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
96154         and gl_GETOPT are both invoked via different paths (as happens
96155         with GNU tar CVS because it uses both argp and getopt), the former
96156         wins.
96158 2005-08-16  Bruno Haible  <bruno@clisp.org>
96160         * modules/tls: New file.
96161         * MODULES.html.sh (Multithreading): Add tls.
96163 2005-08-16  Bruno Haible  <bruno@clisp.org>
96165         * modules/strnlen1: New file.
96166         * MODULES.html.sh (String handling): Add strnlen1.
96168 2005-08-16  Bruno Haible  <bruno@clisp.org>
96170         * modules/strcase (Files): Add m4/mbrtowc.m4.
96171         (Depends-on): Add strnlen1, mbchar.
96173 2005-08-16  Bruno Haible  <bruno@clisp.org>
96175         * modules/mbiter: New file.
96176         * MODULES.html.sh (Extended multibyte and wide character utilities):
96177         Add mbiter.
96179 2005-08-16  Bruno Haible  <bruno@clisp.org>
96181         * modules/mbfile: New file.
96182         * MODULES.html.sh (Extended multibyte and wide character utilities):
96183         Add mbfile.
96185 2005-08-16  Bruno Haible  <bruno@clisp.org>
96187         * modules/mbchar: New file.
96188         * MODULES.html.sh (Extended multibyte and wide character utilities):
96189         New section.
96191 2005-08-16  Bruno Haible  <bruno@clisp.org>
96193         * m4/tls.m4: New file, from GNU gettext.
96195 2005-08-16  Bruno Haible  <bruno@clisp.org>
96197         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
96198         always.
96199         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
96201 2005-08-16  Bruno Haible  <bruno@clisp.org>
96203         * m4/mbiter.m4: New file.
96205 2005-08-16  Bruno Haible  <bruno@clisp.org>
96207         * m4/mbfile.m4: New file.
96209 2005-08-16  Bruno Haible  <bruno@clisp.org>
96211         * m4/mbchar.m4: New file.
96213 2005-08-16  Bruno Haible  <bruno@clisp.org>
96215         * lib/tls.h: New file, from GNU gettext.
96216         * lib/tls.c: New file, from GNU gettext.
96218 2005-08-16  Bruno Haible  <bruno@clisp.org>
96220         * lib/strnlen1.h: New file.
96221         * lib/strnlen1.c: New file.
96223 2005-08-16  Bruno Haible  <bruno@clisp.org>
96225         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
96226         (mbi_init): Update.
96227         (mbi_avail, mbi_advance): Let the iteration end before the terminating
96228         NUL byte, not after it.
96230 2005-08-16  Bruno Haible  <bruno@clisp.org>
96232         * lib/strcase.h (strcasecmp): Add note in comments.
96233         * lib/strncasecmp.c: Use code from strcasecmp.c.
96234         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
96235         (strcasecmp): Work correctly in multibyte locales.
96237 2005-08-16  Bruno Haible  <bruno@clisp.org>
96239         * lib/mbiter.h: New file.
96241 2005-08-16  Bruno Haible  <bruno@clisp.org>
96243         * lib/mbfile.h: New file.
96245 2005-08-16  Bruno Haible  <bruno@clisp.org>
96247         * lib/mbchar.h: New file.
96248         * lib/mbchar.c: New file.
96250 2005-08-16  Bruno Haible  <bruno@clisp.org>
96252         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
96253         the valid ones. Makes the comparison operations transitive:
96254         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
96255         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
96257 2005-08-15  Simon Josefsson  <jas@extundo.com>
96259         * modules/ssize_t (License): Change to 'unlimited'.
96261         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
96263 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96265         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
96266         Add comments for each pending glibc patch.
96268 2005-08-15  Bruno Haible  <bruno@clisp.org>
96270         * lib/regex.h (__restrict_arr): Don't define to __restrict if
96271         __cplusplus is defined.
96273 2005-08-14  Jim Meyering  <jim@meyering.net>
96275         Sync from coreutils.
96277         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
96278         Use the hash-table-based cycle-detection code not just when
96279         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
96280         Reported by James Youngman in
96281         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
96282         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
96283         FTS_TIGHT_CYCLE_CHECK.
96284         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
96285         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
96286         once again.
96287         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
96288         * lib/fts.c (fd_safer): Remove decl.
96289         Include fcntl--.h rather than unistd-safer.h
96290         (fts_safe_changedir): Don't call fd_safer; no longer needed
96291         now that we include fcntl--.h.
96293 2005-08-12  Simon Josefsson  <jas@extundo.com>
96295         * modules/getndelim2: Use ssize_t module.
96296         * modules/getnline: Likewise.
96297         * modules/safe-read: Likewise.
96298         * modules/xreadlink: Likewise.
96300         * modules/ssize_t: New file.
96302 2005-08-12  Simon Josefsson  <jas@extundo.com>
96304         * m4/readline.m4: Look for termcap, curses or ncurses if required.
96306 2005-08-12  Simon Josefsson  <jas@extundo.com>
96308         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
96309         ssize_t.
96311 2005-08-12  Simon Josefsson  <jas@extundo.com>
96313         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
96314         readline, getdelim and check_version.
96315         (Support for systems lacking ISO C 99: Sizes of integer types):
96316         Add size_max.
96318 2005-08-12  Bruno Haible  <bruno@clisp.org>
96320         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
96322 2005-08-11  Simon Josefsson  <jas@extundo.com>
96324         * modules/readline: New file.
96326         * modules/strnlen (Files): Add strnlen.h.
96328 2005-08-11  Simon Josefsson  <jas@extundo.com>
96330         * m4/readline.m4: New file.
96332 2005-08-11  Simon Josefsson  <jas@extundo.com>
96334         * lib/readline.h, readline.c: New file.
96336 2005-08-11  Simon Josefsson  <jas@extundo.com>
96338         * doc/gnulib.texi (Initial import, Finishing touches): Mention
96339         gl_AVOID.
96341 2005-08-11  Bruno Haible  <bruno@clisp.org>
96343         * lib/strnlen.h (strnlen): Change parameter name to match comment.
96345 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
96347         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
96349 2005-08-10  Simon Josefsson  <jas@extundo.com>
96351         * tests/test-iconvme.c: New file.
96353 2005-08-10  Simon Josefsson  <jas@extundo.com>
96355         * m4/strnlen.m4: New file.
96357         * m4/strndup.m4: Don't check for strnlen declaration, done in
96358         strnlen.m4.
96360 2005-08-10  Simon Josefsson  <jas@extundo.com>
96362         * lib/strndup.c: Use strnlen.h.
96364         * lib/strnlen.h: New file.
96366 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96368         * README: Typos.
96370 2005-08-02  Simon Josefsson  <jas@extundo.com>
96372         * modules/readline: New file.
96374 2005-08-02  Simon Josefsson  <jas@extundo.com>
96376         * modules/getdelim: New file.
96378         * modules/getline: Rewrite, don't use getndelim2.
96380 2005-08-02  Simon Josefsson  <jas@extundo.com>
96382         * m4/getline.m4: Separate out getdelim stuff into separate module.
96384         * m4/getdelim.m4: New file.
96386 2005-08-02  Simon Josefsson  <jas@extundo.com>
96388         * lib/getline.h, getline.c: Rewrite.
96390         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
96392 2005-07-31  Bruno Haible  <bruno@clisp.org>
96394         * lib/lock.h (gl_lock_initializer): New macro.
96395         (gl_lock_define_initialized): Use it.
96396         (gl_rwlock_initializer): New macro.
96397         (gl_rwlock_define_initialized): Use it.
96398         (gl_recursive_lock_initializer): New macro.
96399         (gl_recursive_lock_define_initialized): Use it.
96401 2005-07-30  Karl Berry  <karl@gnu.org>
96403         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
96404         Report from Ben Pfaff, regarding getopt.
96406 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
96408         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
96409         normal way.
96410         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
96411         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
96412         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
96413         (gl_GETOPT): Use the new macros.  Most of the implementation
96414         is moved to the new macros.  This is for programs like Emacs
96415         that don't want all the functionality of gl_GETOPT.
96417 2005-07-26  Bruno Haible  <bruno@clisp.org>
96419         * m4/lock.m4: Update from GNU gettext.
96421 2005-07-26  Bruno Haible  <bruno@clisp.org>
96423         * lib/lock.h: Update from GNU gettext.
96424         * lib/lock.c: Update from GNU gettext.
96426 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
96428         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
96429         obsolescent AC_TRY_RUN.  Include the default includes files, for
96430         'exit'.
96432 2005-07-24  Bruno Haible  <bruno@clisp.org>
96434         * modules/visibility: New file.
96435         * MODULES.html.sh (Misc): Add visibility.
96437 2005-07-24  Bruno Haible  <bruno@clisp.org>
96439         * m4/visibility.m4: New file.
96441 2005-07-24  Bruno Haible  <bruno@clisp.org>
96443         * doc/visibility.texi: New file.
96445 2005-07-22  Bruno Haible  <bruno@clisp.org>
96447         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
96448         $(ALLOCA_H), redundant through BUILT_SOURCES.
96449         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
96450         redundant through BUILT_SOURCES.
96451         * modules/byteswap (Makefile.am): Remove explicit dependency on
96452         $(BYTESWAP_H), redundant through BUILT_SOURCES.
96453         * modules/fnmatch (Makefile.am): Remove explicit dependency on
96454         $(FNMATCH_H), redundant through BUILT_SOURCES.
96455         * modules/getopt (Makefile.am): Remove explicit dependency on
96456         $(GETOPT_H), redundant through BUILT_SOURCES.
96457         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
96458         redundant through BUILT_SOURCES.
96459         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
96460         redundant through BUILT_SOURCES.
96461         * modules/stdbool (Makefile.am): Remove explicit dependency on
96462         $(STDBOOL_H), redundant through BUILT_SOURCES.
96463         * modules/stdint (Makefile.am): Remove explicit dependency on
96464         $(STDINT_H), redundant through BUILT_SOURCES.
96465         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
96466         Remove explicit dependency on $(SYSEXITS_H).
96467         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
96469 2005-07-18  Simon Josefsson  <jas@extundo.com>
96471         * lib/check-version.c (check_version): Accept identical versions too.
96473 2005-07-18  Bruno Haible  <bruno@clisp.org>
96475         * modules/lock: New file.
96476         * MODULES.html.sh (Multithreading): New section.
96478 2005-07-18  Bruno Haible  <bruno@clisp.org>
96480         * m4/lock.m4: New file, from GNU gettext.
96482 2005-07-18  Bruno Haible  <bruno@clisp.org>
96484         * lib/lock.h: New file, from GNU gettext.
96485         * lib/lock.c: New file, from GNU gettext.
96487 2005-07-18  Bruno Haible  <bruno@clisp.org>
96489         * lib/lock.h (gl_once_t): New type.
96490         (gl_once_define, gl_once): New macros.
96491         * lib/lock.c (fresh_once): New variable.
96492         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
96493         functions.
96495 2005-07-16  Simon Josefsson  <jas@extundo.com>
96497         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
96498         workaround, suggested by Bruno.
96500 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
96502         * modules/xalloc (Depends-on): Add xalloc-die.
96503         * modules/xvasprintf (Depends-on): Add xalloc-die.
96505 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
96507         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
96508         with a minor change.
96510 2005-07-15  Bruno Haible  <bruno@clisp.org>
96512         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
96513         When using lib/poll.c, define poll as rpl_poll.
96515 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
96517         * modules/argp (Depends-on): Remove unlocked-io.
96519 2005-07-14  Derek Price  <derek@ximbiot.com>
96521         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
96522         for glob symlink bug.
96524 2005-07-14  Bruno Haible  <bruno@clisp.org>
96526         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
96527         Instead, test for *_unlocked function declarations directly.
96529 2005-07-11  Simon Josefsson  <jas@extundo.com>
96531         * modules/size_max: New file.
96533         * modules/xsize: Depend on size_max module for size_max.m4.
96535 2005-07-11  Simon Josefsson  <jas@extundo.com>
96537         * lib/size_max.h: New file.
96539 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
96541         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
96542         copyright symbol and the year.
96543         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
96544         (version_etc_va): Use parameterized copyright notice.
96545         Reword to conform to the current GNU coding standards.
96547 2005-07-11  Karl Berry  <karl@gnu.org>
96549         * doc/gnulib.texi (Quoting): new node.
96550         (Initial import): more info, from Patrice.
96552 2005-07-11  Bruno Haible  <bruno@clisp.org>
96554         * gnulib-tool (func_usage): Document option --avoid.
96555         (Command line options): Handle --avoid.
96556         (func_acceptable): New function.
96557         (func_modules_transitive_closure): Use it.
96559 2005-07-11  Bruno Haible  <bruno@clisp.org>
96561         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
96562         Reported by Jim Meyering.
96564 2005-07-10  Bruno Haible  <bruno@clisp.org>
96566         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
96567         Needed when size_t is smaller than 'unsigned int'.
96568         Reported by Paul Eggert.
96570 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96572         * modules/argp (Depends-on): Add unlocked-io
96574 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96576         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
96577         block of defines.
96579 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
96581         * config/srclist.txt: Comment out regcomp.c, since we have a porting
96582         fix now.
96584 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
96585         and Paul Eggert  <eggert@cs.ucla.edu>
96587         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
96588         in wint_t, not wchar_t.  Remove now-unnecessary cast.
96590 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96592         * modules/regex (Files): Add lib/regex_internal.c,
96593         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
96594         (Depends-on): Add extensions.
96595         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
96597 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96599         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
96600         pathconf.
96601         * m4/same.m4 (gl_SAME): Likewise.
96602         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
96604         * m4/regex.m4: Adjust to new libc regex implementation.
96605         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
96606         all the .c and .h parts of (the new) regex.
96607         Quote the m4 stuff better.
96608         Check for RE_ICASE bug of old gnulib.
96609         Check for REG_STARTEND of recent libc.
96610         Rename local variables from jm_* to gl_*.
96611         Quote operand of "test -f".
96612         Say "recent enough" version of libc, not "version 2".
96613         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
96614         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
96615         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
96616         Remove check for btowc, isascii.
96617         Require AM_LANGINFO_CODESET.
96619 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96621         * lib/regex.c, regex.h: Sync from libc.
96622         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
96623         * lib/regexec.c:
96624         New files, synced from libc, except that regex_internal.h
96625         currently has a small porting fix.
96627 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96629         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
96630         regex_internal.c, regexec.c.
96631         Add regex_internal.h too, but as a comment, since the libc version
96632         is currently broken in gnulib mode.
96634 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96636         Support programs like Emacs that use gnulib but not gettext.
96637         * MODULES.html.sh (Internationalization functions): Add gettext-h.
96638         * modules/gettext-h: New file.
96639         * modules/gettext (Files): Remove lib/gettext.h.
96640         (Depends-on): Add gettext-h.
96641         (Makefile.am): Remove lib_SOURCES.
96642         * modules/argmatch, modules/c-stack, modules/closeout:
96643         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
96644         * modules/execute, modules/file-type, modules/getaddrinfo:
96645         * modules/getopt, modules/human, modules/javacomp:
96646         * modules/javaexec, modules/mkdir-p, modules/obstack:
96647         * modules/openat, modules/pagealign_alloc, modules/pipe:
96648         * modules/quotearg, modules/regex, modules/rpmatch:
96649         * modules/unicodeio, modules/userspec, modules/version-etc:
96650         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
96651         * modules/xsetenv:
96652         Depend on gettext-h, not gettext.
96654 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96656         * gnulib-tool (func_import): Add support for 'public domain' license.
96657         * modules/alloca, modules/atexit, modules/memmove:
96658         Now public domain, not GPL.
96659         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
96660         * modules/realloc, modules/strerror, modules/strtod:
96661         Now LGPL, not GPL.
96663 2005-07-05  Bruno Haible  <bruno@clisp.org>
96665         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
96666         autoconf CVS. Needed for mingw.
96668 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96670         Remove the dependency of the strftime module on the tzset module.
96671         * modules/strftime (Depends-on): Remove dependency on tzset.
96673 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96675         Remove the dependency of the strftime module on the tzset module.
96676         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
96677         gl_FUNC_TZSET_CLOBBER.
96679 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96681         Remove the dependency of the strftime module on the tzset module.
96682         * lib/strftime.c (my_strftime)
96683         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
96684         Copy the input structure, to work around some of the bug with
96685         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
96686         Solaris releases, you should also use the tzset module, but we won't
96687         require it as a dependency any more since we don't want LGPLed code
96688         to depend on GPLed code.
96690 2005-07-02  Jim Meyering  <jim@meyering.net>
96692         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
96693         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
96694         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
96695         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
96697 2005-07-02  Jim Meyering  <jim@meyering.net>
96699         * lib/backupfile.c (backup_args): Change a `0' to NULL.
96701 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96703         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
96704         declares only 'struct timespec;' (!).
96706 2005-07-01  Jim Meyering  <jim@meyering.net>
96708         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
96709         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
96710         * lib/save-cwd.c, tempname.c:
96711         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
96712         and don't include <sys/file.h>).
96714 2005-06-29  Jim Meyering  <jim@meyering.net>
96716         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
96717         type name.  Use the variable name instead.
96718         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
96719         Likewise.
96721 2005-06-28  Simon Josefsson  <jas@extundo.com>
96723         * modules/check-version (Files): Add check-version.m4.
96725 2005-06-28  Simon Josefsson  <jas@extundo.com>
96727         * m4/check-version.m4: New file, suggested by Jim Meyering
96728         <jim@meyering.net>.
96730 2005-06-28  Simon Josefsson  <jas@extundo.com>
96732         * lib/check-version.h, lib/check-version.c: New files.
96734 2005-06-28  Simon Josefsson  <jas@extundo.com>
96736         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
96737         collision with global variable.  Better indentation.  Don't
96738         increment buffer pointer beyond buffer end.  Based on comments
96739         from Paul Eggert <eggert@cs.ucla.edu>.
96741         * lib/base64.h: Indent.
96743 2005-06-28  Simon Josefsson  <jas@extundo.com>
96745         * doc/gnulib.texi (Library version handling): New section.
96747 2005-06-28  Jim Meyering  <jim@meyering.net>
96749         * check-module (find_included_lib_files): Hard-code another
96750         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
96751         but modules/fts-lgpl (correctly) does not list those files.
96753         * modules/canonicalize (Files): Add lib/pathmax.h.
96755 2005-06-25  Simon Josefsson  <jas@extundo.com>
96757         * modules/check-version: New file.
96759 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
96761         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
96762         initializer of struct addrinfo, as an indication that we don't
96763         care how many members the structure has.
96765 2005-06-24  Derek Price  <derek@ximbiot.com>
96766         and Bruno Haible  <bruno@clisp.org>
96768         Remove stat module & update lstat.
96769         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
96770         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96771         * m4/stat.m4: Remove this file.
96773 2005-06-24  Derek Price  <derek@ximbiot.com>
96774         and Bruno Haible  <bruno@clisp.org>
96776         Remove stat module & update lstat.
96777         * lib/stat.c: Remove this file...
96778         (slash_aware_lstat): ...moving this content and its support...
96779         * lib/lstat.c (rpl_lstat): ...into here.
96780         * lib/lstat.h: New file.
96782 2005-06-24  Derek Price  <derek@ximbiot.com>
96783         and Bruno Haible  <bruno@clisp.org>
96785         Remove stat module & update lstat.
96786         * config/srclist.txt (libc sources): Remove stat.
96788 2005-06-24  Derek Price  <derek@ximbiot.com>
96789         and Bruno Haible  <bruno@clisp.org>
96791         Remove stat module & update lstat.
96792         * MODULES.html.sh (stat): Remove.
96793         * MODULES.html: Regenerated.
96794         * modules/lstat (Description): Correct function name.
96795         (Files): Add "lstat.h".
96796         (Depends-on): Remove stat, add xalloc, stat-macros.
96797         * modules/stat: Remove this file.
96798         (Include): Add "lstat.h", remove <sys/stat.h>.
96800 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
96802         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
96803         (ranged_convert): Don't save conversion in a temporary struct.
96804         This causes a warning with GCC 4.0.0, and anyway in the typical
96805         case it's not worth the extra 100 bytes or so of code.
96806         (ranged_convert, __mktime_internal): When calling a function via a
96807         pointer P, use P () rather than (*P) (), as we now assume C89 or
96808         better.
96810 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
96812         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
96813         "who -r" failed to give output.  Problem reported by Tim Waugh.
96815         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
96816         (xcalloc): Use it to avoid needless tests.
96817         Problem reported by Jim Meyering.
96819 2005-06-20  Derek Price  <derek@ximbiot.com>
96821         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
96822         unnecessary for Autoconfs > 2.59c.
96824 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
96826         * lib/argp.h (__option_is_short): Check upper limit of
96827         __key. Isprint() requires its argument to have the value
96828         of an unsigned char or EOF.
96830 2005-06-16  Jim Meyering  <jim@meyering.net>
96832         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
96833         when either N or S is zero.
96835 2005-06-16  Derek Price  <derek@ximbiot.com>
96837         * m4/bison.m4: Declare YACC & YFLAGS precious.
96839 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
96841         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
96842         multibyte string or pattern, fall back on unibyte matching.
96843         Problem reported by James Youngman.
96845 2005-06-08  Bruno Haible  <bruno@clisp.org>
96847         * modules/csharpcomp: New file.
96848         * MODULES.html.sh (C#): Add csharpcomp.
96850 2005-06-08  Bruno Haible  <bruno@clisp.org>
96852         * m4/csharpcomp.m4: New file, from GNU gettext.
96854 2005-06-08  Bruno Haible  <bruno@clisp.org>
96856         * lib/csharpcomp.h: New file, from GNU gettext.
96857         * lib/csharpcomp.c: New file, from GNU gettext.
96858         * lib/csharpcomp.sh.in: New file, from GNU gettext.
96860 2005-06-08  Bruno Haible  <bruno@clisp.org>
96862         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
96863         warning on mingw.
96865 2005-06-07  Derek Price  <derek@ximbiot.com>
96867         Sync from CVS.
96868         * lib/glob_.h: Indent nested #ifdef.
96870 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
96872         Sync from coreutils.
96873         Use "file name" when talking about file names, instead of "filename"
96874         or "path", as per the GNU coding standards.
96875         * lib/mkdir-p.c: Renamed from makepath.c.
96876         (make_dir_parents): Renamed from make_path.  All callers changed.
96877         * lib/mkdir-p.h: Likewise.  All includers changed.
96878         * lib/filenamecat.c: Renamed from path-concat.c.
96879         (file_name_concat): Renamed from path_concat.  All callers changed.
96880         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
96881         * lib/filenamecat.h: Likewise.  All includers changed.
96882         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
96883         in comments or local variable names.
96884         * lib/basename.c: Likewise.
96885         * lib/canonicalize.c, canonicalize.h: Likewise.
96886         * lib/dirname.c, dirname.h: Likewise.
96887         * lib/euidaccess.c: Likewise.
96888         * lib/exclude.c: Likewise
96889         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
96890         * lib/fsusage.c, fsuage.h: Likewise.
96891         * lib/fts.c, fts_.h: Likewise.
96892         * lib/getcwd.c: Likewise.
96893         * lib/getloadavg.c: Likewise.
96894         * lib/mkstemp.c: Likewise.
96895         * lib/mountlist.c, mountlist.h: Likewise.
96896         * lib/openat.c, openat.h: Likewise.
96897         * lib/readlink-stub.c: Likewise.
96898         * lib/readutmp.c, readutmp.h: Likewise.
96899         * lib/rename.c: Likewise.
96900         * lib/rmdir.c: Likewise.
96901         * lib/same.c: Likewise.
96902         * lib/savedir.c: Likewise.
96903         * lib/stripslash.c: Likewise.
96904         * lib/tempname.c: Likewise.
96905         * lib/xreadlink.c: Likewise.
96906         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
96907         All uses changed.
96908         * lib/exclude.h: Likewise.
96910         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
96911         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
96912         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
96913         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
96914         * lib/pathmax.h: Include <limits.h> unconditionally, since other
96915         files have been getting away with it for years (MORE/BSD 4.3
96916         is extinct now).
96917         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
96918         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
96920         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
96921         Define to 256, not 255, as per modern POSIX.
96923 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
96925         Sync from coreutils.
96926         Use "file name" when talking about file names, instead of "filename"
96927         or "path", as per the GNU coding standards.
96928         * MODULES.html.sh: mkdir-p renamed from makepath.
96929         filenamecat renamed from path-concat.
96930         * modules/filenamecat: Renamed from modules/path-concat.
96931         (Files): filenamecat.h and filenamecat.c renamed from
96932         path-concat.h and path-concat.c.
96933         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
96934         (Include): filenamecat.h, not path-concat.h.
96935         * modules/mkdir-p: Renamed from modules/makepath.
96936         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
96937         makepath.c.
96938         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
96939         (Include): mkdir-p.h, not makepath.h.
96941 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
96943         Sync from coreutils.
96944         * m4/mkdir-p.m4: Renamed from makepath.m4.
96945         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
96946         Rename files from makepath.c to mkdir-p.c, and from
96947         makepath.h to mkdir-p.h.
96948         * m4/filenamecat.m4: Renamed from path-concat.m4.
96949         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
96950         Rename files from path-concat.c to filenamecat.c,
96951         and from path-concat.h to filenamecat.h.
96952         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
96953         "file name" in local variables or comments.
96954         * m4/rename.m4: Likewise.
96956 2005-06-01  Bruno Haible  <bruno@clisp.org>
96958         * modules/csharpexec: New file.
96959         * MODULES.html.sh (C#): New section.
96961 2005-06-01  Bruno Haible  <bruno@clisp.org>
96963         * m4/csharp.m4: New file, from GNU gettext.
96964         * m4/csharpexec.m4: New file, from GNU gettext.
96966 2005-06-01  Bruno Haible  <bruno@clisp.org>
96968         * lib/csharpexec.h: New file, from GNU gettext.
96969         * lib/csharpexec.c: New file, from GNU gettext.
96970         * lib/csharpexec.sh.in: New file, from GNU gettext.
96972 2005-05-31  Derek Price  <derek@ximbiot.com>
96973             Paul Eggert  <eggert@cs.ucla.edu>
96975         Sync from cvs.
96976         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
96978 2005-05-31  Derek Price  <derek@ximbiot.com>
96979             Paul Eggert  <eggert@cs.ucla.edu>
96981         Sync from cvs.
96982         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
96984 2005-05-29  Derek Price  <derek@ximbiot.com>
96986         * config/srclist.txt (glob_.h, glob.c): Add these files.
96988 2005-05-29  Derek Price  <derek@ximbiot.com>
96990         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
96991         * modules/glob: New file.
96992         * modules/getlogin_r: Add link to POSIX spec in description.
96994 2005-05-29  Derek Price  <derek@ximbiot.com>
96995             Paul Eggert  <eggert@cs.ucla.edu>
96997         * m4/glob.m4: New file.
96999 2005-05-29  Derek Price  <derek@ximbiot.com>
97000             Paul Eggert  <eggert@cs.ucla.edu>
97002         * lib/glob_.h, lib/glob.c: New files.
97004 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
97006         * modules/fts (Files): Remove m4/inttypes-pri.m4.
97007         * modules/fts-lgpl (Depends-on): Remove gettext.
97009 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
97011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
97012         and don't require gt_INTTYPES_PRI.
97014 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
97016         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
97018         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
97019         the configuration hassle isn't worth it.
97020         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
97021         (LONGEST_MODIFIER, PRIuMAX): Remove.
97023 2005-05-27  Bruno Haible  <bruno@clisp.org>
97025         * lib/getlogin_r.h: Remove second include of <stddef.h>.
97027 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
97029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
97030         _POSIX_PTHREAD_SEMANTICS for Solaris.
97032 2005-05-25  Derek Price  <derek@ximbiot.com>
97034         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
97036 2005-05-25  Derek Price  <derek@ximbiot.com>
97037             Paul Eggert  <eggert@cs.ucla.edu>
97039         * modules/getlogin_r, m4/getlogin_r.m4: New files.
97040         * lib/getlogin_r.c, getlogin_r.h: New files.
97042 2005-05-25  Bruno Haible  <bruno@clisp.org>
97043             Derek Price  <derek@ximbiot.com>
97045         * lib/getlogin_r.h: Simplify API documentation.
97047 2005-05-23  Derek Price  <derek@ximbiot.com>
97049         * modules/minmax (Files): Add m4/minmax.m4.
97050         (configure.ac): Add gl_MINMAX.
97052 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97054         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
97055         so that unistd-safer.h (GPL'ed code) need not be included.
97057 2005-05-22  Bruno Haible  <bruno@clisp.org>
97059         * m4/minmax.m4: New file.
97060         Based on a patch by Derek Price <derek@ximbiot.com>.
97062 2005-05-22  Bruno Haible  <bruno@clisp.org>
97064         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
97065         (INT64_MIN): Fix definition.
97066         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
97068         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
97069         NEED_SIGNED_INT_TYPES.
97071         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
97072         HAVE_SYSTEM_INTTYPES.
97074 2005-05-22  Bruno Haible  <bruno@clisp.org>
97076         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
97077         Also include <sys/param.h> if it defines MIN, MAX.
97078         Based on a patch by Derek Price <derek@ximbiot.com>.
97080 2005-05-21  Jim Meyering  <jim@meyering.net>
97082         * modules/fts (Files): Add m4/inttypes-pri.m4.
97083         (Depends-on): Add lstat and remove gettext.  Alphabetize.
97085 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
97087         New fts module.
97088         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
97089         (setup_dir, free_dir): New functions.
97090         (enter_dir, leave_dir): Define trivial
97091         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
97092         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
97093         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
97094         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
97095         Move to fts-cycle.c.
97096         (fts_open): Use setup_dir.
97097         (fts_close): Use free_dir.
97098         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
97099         This adds a label and some gotos, but the alternatives were messier.
97100         Check for memory allocation failure when entering a dir.
97101         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
97102         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
97103         (FTS): New member fts_cycle, that is a union that contains the
97104         old active_dir_ht and cycle_state.  All uses changed to mention
97105         fts_cycle.ht and fts_cycle.state.
97106         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
97107         fts.c, with the following changes:
97108         (setup_dir, free_dir): New functions.
97109         (enter_dir): Now returns bool.  Return true if successful, false
97110         if memory exhausted.  All callers changed.
97111         Do not bother partly cleaning up on
97112         memory allocation failure; that is free_dir's job.
97113         However, free ad if hash_insert fails, to avoid memory leak.
97114         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
97115         fts->fts_options to see which union member to use.
97117 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
97119         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
97120         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
97122 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
97124         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
97126 2005-05-20  Jim Meyering  <jim@meyering.net>
97128         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
97129         Now a macro, to pacify GCC.
97131 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
97133         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
97134         of -1.
97136 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
97138         * lib/chown.c (rpl_chown): Return -1 on failure.
97140 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
97142         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
97143         Don't check for stddef.h.
97144         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
97145         don't use its results.
97146         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
97147         since we include them unconditionally.  Don't require
97148         AM_STDBOOL_H, since stdbool is a prerequisite.
97149         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
97150         since we assume C89 or better.
97151         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
97152         as we don't use their results.
97153         Don't check for fchdir, memmove, memset, strrchr, as we use
97154         them unconditionally.
97155         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
97156         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
97158 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
97160         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
97161         Include <stddef.h> unconditionally, since we assume C89 now.
97162         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
97163         * lib/fts.c: Include fts_.h first, to check interface.
97164         Do not include intprops.h; no longer needed.
97165         Include cycle-check.h and hash.h, since fts_.h no longer does.
97166         Remove unnecessary casts of closedir to void.
97167         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
97168         decide whether to decrement nlinks.
97169         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
97170         (FTS): Use struct hash_table * instead of Hash_table, so that
97171         we no longer need to include hash.h here.
97173 2005-05-18  Jim Meyering  <jim@meyering.net>
97175         * modules/dirfd (License): Change to LGPL.  Most of the code
97176         is already in the public domain.
97178 2005-05-18  Jim Meyering  <jim@meyering.net>
97180         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
97181         Reported by Yoann Vandoorselaere.
97183 2005-05-17  Jim Meyering  <jim@meyering.net>
97185         * m4/fts.m4: New file, from coreutils.
97187 2005-05-17  Jim Meyering  <jim@meyering.net>
97189         * lib/fts.c, lib/fts_.h: New files, from coreutils.
97191 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
97193         Sync from coreutils.
97194         * m4/unlinkdir.m4: New file.
97196 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
97198         Sync from coreutils.
97199         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
97200         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
97201         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
97202         White space changes only.
97203         * lib/makepath.c (make_path): Port to hosts where leading "//" is
97204         special.
97205         * lib/yesno.c: Include getline.h, not ctype.h.
97206         (yesno): Don't remove leading white space; POSIX doesn't allow it.
97207         Use getline to remove arbitrary restriction on response length.
97209 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
97211         * config/srclist-update: Spell out "Street" in FSF postal
97212         mail address; this is the style the FSF seems to prefer.
97214         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
97215         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
97216         this updates FSF postal mail address.
97218         Sync from coreutils.
97219         * modules/unlinkdir: New file.
97220         * modules/yesno (Depends-on): Add getline.
97221         * MODULES.html.sh (File system functions): Add unlinkdir.
97223 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
97225         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
97226         lib/strsep.h:
97227         Change the initial comment to refer to GPL, not LGPL.
97228         gnulib-tool will change it to LGPL as needed.
97230         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
97231         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
97232         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
97233         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
97234         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
97235         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
97236         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
97237         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
97238         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
97239         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
97240         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
97241         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
97242         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
97243         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
97244         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
97245         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
97246         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
97247         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
97248         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
97249         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
97250         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
97251         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
97252         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
97253         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
97254         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
97255         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
97256         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
97257         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
97258         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
97259         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
97260         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
97261         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
97262         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
97263         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
97264         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
97265         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
97266         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
97267         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
97268         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
97269         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
97270         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
97271         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
97272         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
97273         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
97274         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
97275         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
97276         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
97277         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
97278         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
97279         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
97280         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
97281         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
97282         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
97283         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
97284         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
97285         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
97286         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
97287         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
97288         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
97289         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
97290         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
97291         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
97292         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
97293         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
97294         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
97295         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
97296         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
97297         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
97298         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
97299         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
97300         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
97301         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
97302         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
97303         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
97304         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
97305         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
97306         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
97307         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
97308         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
97309         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
97310         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
97311         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
97312         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
97313         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
97314         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
97315         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
97316         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
97317         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
97318         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
97319         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
97320         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
97321         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
97322         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
97323         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
97324         lib/yesno.c, lib/yesno.h:
97325         Update FSF postal mail address.
97327 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
97329         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
97330         tests/test-memmem.c, tests/test-stpncpy.c:
97331         Update FSF postal mail address.
97333 2005-05-13  Bruno Haible  <bruno@clisp.org>
97335         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
97336         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
97337         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
97338         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
97339         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
97340         Add support for 64-bit integers in the MSVC compiler.
97342 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
97344         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
97346 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
97348         * gnulib-tool (func_import): Sort and uniquify recommended includes.
97350 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
97352         * doc/getdate.texi (General date syntax): Don't say that date
97353         date --iso-8601=ns generates acceptable dates; it doesn't yet.
97354         Problem reported by Nic Ferrier.
97356 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97358         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
97359         specified in ai_socktype. Fix invalid ai_protocol
97360         check. ai_protocol is usually set to 0 or depending on
97361         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
97362         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
97363         ai_socktype / ai_protocol in the returned addrinfo structure.
97365 2005-05-10  Simon Josefsson  <jas@extundo.com>
97367         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
97368         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97370 2005-05-10  Karl Berry  <karl@gnu.org>
97372         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
97373         (from http://www.gnu.org/licenses).
97374         * doc/COPYING.LIB: also rename to COPYING.LESSER.
97375         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
97376         fdl.texi suffices.
97378 2005-05-10  Karl Berry  <karl@gnu.org>
97380         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
97381         (COPYING.DOC): remove.
97383         * config/srclist-update: new FSF address.
97385 2005-05-10  Derek Price  <derek@ximbiot.com>
97387         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
97388         possible.
97390 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97391             Bruno Haible  <bruno@clisp.org>
97393         * modules/inet_ntop: New file.
97394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
97395         inet_ntop.
97397 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97398             Bruno Haible  <bruno@clisp.org>
97400         * m4/inet_ntop.m4: New file.
97402 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97403             Bruno Haible  <bruno@clisp.org>
97405         * lib/inet_ntop.h: New file.
97406         * lib/inet_ntop.c: New file, from glibc with modifications.
97408 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
97410         * modules/time_r (License): Change to LGPL.
97411         * modules/extensions (License): Change to LGPL.  Actually,
97412         the license is more permissive than that, but currently gnulib-tool
97413         doesn't know how to handle more-permissive licenses.
97415         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
97416         Problem reported by Dave Love.
97418 2005-05-08  Jim Meyering  <jim@meyering.net>
97420         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
97421         blank.
97423 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
97425         * modules/argmatch (Depends-on): Add stdbool.
97426         * modules/backupfile (Depends-on): Likewise.
97427         * modules/chdir-long (Depends-on): Likewise.
97428         * modules/closeout (Depends-on): Likewise.
97429         * modules/cycle-check (Depends-on): Likewise.
97430         * modules/dirname (Depends-on): Likewise.
97431         * modules/fnmatch (Depends-on): Likewise.
97432         * modules/fsusage (Depends-on): Likewise.
97433         * modules/fwriteerror (Depends-on): Likewise.
97434         * modules/getcwd (Depends-on): Likewise.
97435         * modules/getloadavg (Depends-on): Likewise.
97436         * modules/hard-locale (Depends-on): Likewise.
97437         * modules/makepath (Depends-on): Likewise.
97438         * modules/mountlist (Depends-on): Likewise.
97439         * modules/nanosleep (Depends-on): Likewise.
97440         * modules/posixtm (Depends-on): Likewise.
97441         * modules/quotearg (Depends-on): Likewise.
97442         * modules/readtokens (Depends-on): Likewise.
97443         * modules/readtokens0 (Depends-on): Likewise.
97444         * modules/readutmp (Depends-on): Likewise.
97445         * modules/save-cwd (Depends-on): Likewise.
97446         * modules/strftime (Depends-on): Likewise.
97447         * modules/userspec (Depends-on): Likewise.
97448         * modules/utimecmp (Depends-on): Likewise.
97449         * modules/xgetcwd (Depends-on): Likewise.
97450         * modules/xnanosleep (Depends-on): Likewise.
97451         * modules/xstrtod (Depends-on): Likewise.
97452         * modules/yesno (Depends-on): Likewise.
97454 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
97456         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
97457         needless checks.
97459 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
97461         Merge from coreutils.  Among other things,
97462         add bulletproofing for cases where stdin, stdout, or stderr are closed.
97463         * lib/fd-safer.c: New file.
97464         * lib/fcntl-safer.h, open-safer.c: Remove.
97465         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
97466         * lib/dup-safer.c: Include unistd-safer.h first.
97467         Don't include errno.h.
97468         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
97469         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
97470         * lib/file-type.c: Rely on file-type.h change.
97471         * lib/getloadavg.c: Include unistd-safer.h.
97472         (getloadavg): Use safer open.
97473         * lib/getusershell.c: Include "stdio-safer.h".
97474         (getusershell): Use safer fopen.
97475         * lib/long-options.c (long_options): Use NULL rather than 0.
97476         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
97477         'free'.
97478         * lib/modechange.c: Likewise.
97479         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
97480         (MODE_DONE): New constant.
97481         (struct mode_change): Remove 'next' member.
97482         (make_node_op_equals): New function; like the old one of the
97483         same name, except it allocates an array.
97484         (mode_compile, mode_create_from_ref): Use it.
97485         (mode_compile): Allocate result as an array, not a linked list.
97486         Parse octal string ourself, so that we catch mistakes like "+0".
97487         (mode_adjust): Arg is an array, not a linked list.
97488         * lib/modechange.c: Include stat-macros.h, xalloc.h.
97489         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
97490         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
97491         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
97492         Remove.  This is now stat-macros.h's job.
97493         (talloc): Remove.  All callers replaced by xalloc, so that
97494         our invokers don't have to worry about reporting memory failures.
97495         (make_node_op_equals): Remove.
97496         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
97497         New constants.
97498         (struct mode_change): Moved here from modechange.h.
97499         (mode_append_entry): Remove.
97500         (mode_compile): Remove MASKED_OPS arg, since it encouraged
97501         apps to have incorrect behavior.  Use simpler algorithm for head
97502         and tail.  Don't futz with umask; that's now the job of mode_adjust.
97503         Detect more invalid usages rather than having somewhat-random behavior.
97504         Don't insert an "a=" action, as that leads to incorrect behavior.
97505         (mode_compile, mode_create_from_ref): Return NULL on error instead
97506         of an enum, since now there's only one way to have an error.  All
97507         callers changed.
97508         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
97509         at the correct time.  Simplify calculation of "+u" and its ilk.
97510         Don't mishandle "+X".
97511         (mode_free): Remove "register" and localize decls.
97512         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
97513         (struct mode_change): Move to modechange.c; callers don't
97514         need to see this stuff.
97515         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
97516         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
97517         (mode_change, mode_adjust): Reflect the new signatures noted above.
97518         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
97519         that might redefine system include files.
97520         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
97521         (my_usleep): Use NULL rather than (void *) 0.
97522         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
97523         Use siginterrupt to specify that system calls should be interrupted.
97524         (rpl_nanosleep): Move initialization of suspended closer to call of
97525         my_usleep.
97526         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
97527         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
97528         (desirable_utmp_entry): New function.
97529         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
97530         using x2nrealloc, to simplify logic.
97531         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
97532         size calculation.  Do not assume utmp file is a regular file.
97533         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
97534         (READ_UTMP_CHECK_PIDS): New constant.
97535         * lib/save-cwd.c: Include unistd-safer.h.
97536         (save_cwd): Use fd_safer.
97537         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
97538         [!_LIBC] Include "stat-macros.h" instead.
97539         * lib/unistd-safer.h (fd_safer): New decl.
97541 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
97543         * modules/getloadavg (Depends-on): Add unistd-safer.
97544         * modules/getusershell (Depends-on): Add stdio-safer.
97545         * modules/lstat (Depends-on): Remove xalloc.
97546         * modules/mkstemp (Depends-on): Add stat-macros.
97547         * modules/modechange (Depends-on): Remove xstrtol.
97548         Add stat-macros, xalloc.
97549         * modules/save-cwd (Depends-on): Add unistd-safer.
97550         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
97551         * modules/unistd-safer (Files): Add lib/fd-safer.c
97552         (Makefile.am): Remove lib_SOURCES.
97554         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
97555         Remove fcntl-safer; unistd-safer supersedes it.
97557 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
97559         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
97560         AC_HEADER_STAT.
97561         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
97562         (gl_PREREQ_CHOWN): Remove.
97563         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
97564         it.  Don't require AC_HEADER_STAT.
97565         (gl_PREREQ_LSTAT): Remove.
97566         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
97567         Don't require AC_HEADER_STAT.
97568         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
97569         (gl_PREREQ_RMDIR): Remove.
97570         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
97571         mention stat-macros.h or AC_HEADER_STAT, since we'll make
97572         the stat-macros module a prerequisite.
97573         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
97574         * m4/filemode.m4 (gl_FILEMODE): Likewise.
97575         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
97576         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
97577         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
97578         variable names.
97579         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
97580         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
97581         variable prefixes.
97582         * m4/fcntl-safer.m4: Remove.
97583         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
97584         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
97585         Invoke gl_PREREQ_FD_SAFER.
97586         (gl_PREREQ_FD_SAFER): New macro.
97587         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
97588         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
97589         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
97590         Remove duplicate call to AC_LIBOBJ(readutmp).
97591         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
97593         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
97594         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
97596 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
97598         * MODULES.html.sh (Misc): Add byteswap.
97600 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97602         * modules/getcwd (Depends-on): Add extensions.
97603         * modules/openat (Depends-on): Likewise.
97605 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97607         * modules/byteswap: New file.
97609 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97611         * m4/byteswap.m4: New file.
97613 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97615         * lib/byteswap_.h: New file.
97617 2005-04-25  Karl Berry  <karl@gnu.org>
97619         * m4/gettext.m4: Update from GNU gettext 0.14.4.
97621 2005-04-25  Albert Chin  <china@thewrittenword.com>
97623         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
97624         Toolkit C bug.
97626 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
97628         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
97629         (func_ln_if_changed): Remove forcibly for no error message
97630         in case file does not exist.
97632 2005-04-19  Simon Josefsson  <jas@extundo.com>
97634         * gnulib-tool (Options): Make --symlink mean --symbolic.
97636 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
97638         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
97640 2005-04-16  Simon Josefsson  <jas@extundo.com>
97642         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
97644 2005-04-15  Simon Josefsson  <jas@extundo.com>
97646         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
97648 2005-04-15  Simon Josefsson  <jas@extundo.com>
97650         * gnulib-tool: Rename --symlink to --symbolic.
97652 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
97654         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
97655         symbolic links to files instead of copying/moving.  Add --aux-dir,
97656         specifying directory relative --dir where auxiliary build tools
97657         are placed.
97659 2005-04-14  Bruno Haible  <bruno@clisp.org>
97661         * modules/allocsa (License): Change to LGPL.
97662         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
97664 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
97666         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
97667         that "UTC +1 second" continues to work.  Problem reported
97668         by Dmitry V. Levin.
97669         (relunit_snumber): New rule.
97670         (relunit): Use it.
97672 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97674         * lib/getdate.y (universal_time_zone_table): New constant.
97675         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
97676         universal_time_zone_table.
97677         (lookup_zone): Prefer universal_time_zone_table to
97678         local_time_zone_table, so that "GMT" time stamps are allowed in
97679         London during the summer.  Problem reported by Ian Abbott.
97681 2005-04-12  Jim Meyering  <jim@meyering.net>
97683         * lib/human.c (humblock): Set *options even when returning due to
97684         xstrtoumax conversion failure.  Thanks to a used-uninitialized
97685         warning from gcc-4.
97687 2005-04-09  Jim Meyering  <jim@meyering.net>
97689         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
97690         -Wuninitialized: initialize tm0.tm_year.
97692 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
97694         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
97695         count, since there's no maximum.  All uses changed.
97696         Add member dsts_seen.
97697         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
97698         not being INT_MAX.
97699         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
97700         Use pc_rels_seen to decide whether a date is absolute.
97702         * lib/getdate.y (number): Don't overwrite year.
97703         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
97704         check.
97706 2005-04-02  Simon Josefsson  <jas@extundo.com>
97708         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
97709         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
97711 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
97713         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
97714         where no absolute path name can be longer than PATH_MAX.
97716 2005-03-27  Jim Meyering  <jim@meyering.net>
97718         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
97720 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
97722         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
97723         "one's complement" -> "ones' complement" in comment, as per Knuth.
97724         "value of type" -> "type or expression" in comment.
97725         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
97727 2005-03-26  Jim Meyering  <jim@meyering.net>
97729         Comment nits.
97730         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
97731         Correct typos: s/or/of/.
97733 2005-03-26  Jim Meyering  <jim@meyering.net>
97735         * modules/check-include-files: Move to ../ and rename to...
97736         * check-module: ...this.
97738 2005-03-25  Jim Meyering  <jim@meyering.net>
97740         * modules/xvasprintf (Files): Add xalloc.h.
97742 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
97744         * modules/gettext (Files): config/config.rpath ->
97745         build-aux/config.rpath
97746         * modules/iconv (Files): Likewise.
97747         Problem reported by Oskar Liljeblad.
97749 2005-03-23  Jim Meyering  <jim@meyering.net>
97751         * modules/check-include-files: New script to check for
97752         missing dependencies, multiple includes, etc.
97754         * modules/c-strtold (Depends-on): Add xalloc.
97755         * modules/c-strtod (Depends-on): Add xalloc.
97756         * modules/hash (Depends-on): Add xalloc.
97757         (Files): Remove lib/xalloc.h.
97759         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
97760         * modules/userspec (Files): Add lib/inttostr.h.
97762 2005-03-23  Jim Meyering  <jim@meyering.net>
97764         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
97766 2005-03-22  Jim Meyering  <jim@meyering.net>
97768         * modules/stat-macros: New module.
97769         * modules/canonicalize, modules/euidaccess, modules/file-type,
97770         * modules/filemode, modules/lchown, modules/makepath,
97771         * modules/rmdir, modules/stat: Depend on new stat-macros module
97772         rather than listing lib/stat-macros.h manually.
97773         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
97775 2005-03-22  Jim Meyering  <jim@meyering.net>
97777         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
97779 2005-03-22  Bruno Haible  <bruno@clisp.org>
97781         * config/srclist.txt: Replace target directory 'config' with
97782         'build-aux'.
97783         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
97784         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
97785         ../build-aux/.
97787 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
97789         * modules/chdir-long (Depends-on): Add mempcpy.
97791         * modules/acl, modules/backupfile, modules/c-strtod,
97792         modules/c-strtold, modules/canon-host, modules/canonicalize,
97793         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
97794         modules/exclude, modules/exitfail, modules/file-type,
97795         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
97796         modules/getdate, modules/getline, modules/getpagesize,
97797         modules/getpass, modules/getugroups, modules/group-member,
97798         modules/hard-locale, modules/hash, modules/human, modules/idcache,
97799         modules/inttostr, modules/long-options, modules/makepath,
97800         modules/md5, modules/memcasecmp, modules/memcoll,
97801         modules/modechange, modules/mountlist, modules/path-concat,
97802         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
97803         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
97804         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
97805         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
97806         modules/strftime, modules/strndup, modules/strverscmp,
97807         modules/timespec, modules/unlocked-io, modules/userspec,
97808         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
97809         modules/yesno:
97810         Remove lib_SOURCES line from Makefile.am section, as this is now
97811         done automatically by the corresponding Autoconf macro.
97813 2005-03-21  Jim Meyering  <jim@meyering.net>
97815         Changes imported from coreutils.
97817         * lib/cycle-check.c: Don't include xalloc.h.
97819         * lib/path-concat.c: Don't include assert.h.
97820         (path_concat): Remove assertion that would have triggered
97821         for ABASE starting with more than one slash.
97822         Reported by Andreas Schwab.
97824         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
97825         properly when ABASE is an absolute file name.
97826         Correct the description of this function.
97827         Include <assert.h>.
97828         Add an assertion and a test driver.
97829         This fixes a bug introduced on 2004-07-02.
97830         Andreas Schwab reported the resulting failure of cp --parents:
97831         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
97833 2005-03-21  Jim Meyering  <jim@meyering.net>
97835         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
97836         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
97838 2005-03-21  Jim Meyering  <jim@meyering.net>
97839         and  Paul Eggert  <eggert@cs.ucla.edu>
97841         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
97842         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
97843         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
97844         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
97845         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
97846         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
97847         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
97848         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
97849         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
97850         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
97851         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
97852         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
97853         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
97854         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
97855         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
97856         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
97857         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
97858         for these modules.
97860 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
97862         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
97863         (which shouldn't happen), generate nothing instead of returning 0
97864         immediately, so that nstrftime (NULL, ...) doesn't return 0.
97866 2005-03-16  Bruno Haible  <bruno@clisp.org>
97868         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
97869         HAVE_LONGLONG_64BIT.
97871 2005-03-16  Bruno Haible  <bruno@clisp.org>
97873         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
97874         HAVE_LONGLONG_64BIT.
97876 2005-03-16  Bruno Haible  <bruno@clisp.org>
97878         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
97879         HAVE_LONGLONG_64BIT.
97881 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
97883         * lib/strftime.c (my_strftime): Prepend space to format so that we can
97884         reliably distinguish strftime failure from empty output on POSIX
97885         hosts.
97887 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
97889         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
97890         (iconv_string): Don't guess a size-zero buffer, as that might cause
97891         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
97892         result would be 'too large', where 'too large' is (heuristically)
97893         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
97894         overflow concerns.  This will prevent some unwanted malloc failures
97895         when the inputs are very large.
97897 2005-03-15  Karl Berry  <karl@gnu.org>
97899         * config/srclist.txt (config.rpath): from gettext.
97900         * config/config.rpath: update.
97902 2005-03-15  Bruno Haible  <bruno@clisp.org>
97904         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
97905         to 'negate'.
97907         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
97908         variable.
97910         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
97911         results.
97913 2005-03-14  Simon Josefsson  <jas@extundo.com>
97915         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
97916         <fx@gnu.org>.
97918 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
97920         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
97921         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
97922         intprops.h.
97923         * lib/strtol.c: Likewise.
97925 2005-03-14  Jim Meyering  <jim@meyering.net>
97927         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
97928         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
97929         to be nonzero so that we (and caller) can detect the difference
97930         between a valid zero-length expansion and an error return, even
97931         when the underlying strftime fails before writing anything into
97932         that location.
97934 2005-03-14  Bruno Haible  <bruno@clisp.org>
97936         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
97937         Update from GNU gettext 0.14.3.
97939 2005-03-10  Jim Meyering  <jim@meyering.net>
97941         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
97943 2005-03-10  Jim Meyering  <jim@meyering.net>
97945         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
97946         so that this module works on systems without fchdir.
97948 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
97950         Factor int-properties macros into a single file, except for
97951         glibc-related files.
97952         * lib/intprops.h: New file.
97953         * lib/getloadavg.c: Include it instead of limits.h.
97954         (INT_STRLEN_BOUND): Remove.
97955         * lib/human.c: Include intprops.h.
97956         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
97957         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
97958         302/1000.
97959         * lib/inttostr.h: Include intprops.h instead of limits.h.
97960         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
97961         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
97962         for consistency with intprops.h.
97963         (time_t_is_integer, twos_complement_arithmetic): Use them.
97964         * lib/sig2str.h: Include <signal.h>, intprops.h.
97965         (INT_STRLEN_BOUND): Remove.
97966         * lib/strftime.c (TYPE_SIGNED): Remove.
97967         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
97968         * lib/strtol.c: Adjust comments to match intprops.h.
97969         * lib/userspec.c: Include intprops.h.
97970         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
97971         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
97972         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
97973         instead of rolling our own expressions.
97974         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
97976         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
97977         instead of int.
97978         (my_strftime): Do not mishandle years close to INT_MAX, by doing
97979         the right thing even if adding 1900 would overflow.  Similarly
97980         for tm_mon + 1 and tm_yday + 1.
97981         Make %Y always equivalent to %C%y, and similarly for %G and %g.
97982         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
97983         (DO_SIGNED_NUMBER): New macro.
97984         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
97986 2005-03-07  Bruno Haible  <bruno@clisp.org>
97988         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
97990 2005-03-07  Bruno Haible  <bruno@clisp.org>
97992         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
97994 2005-03-04  Derek R. Price  <derek@ximbiot.com>
97996         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
97997         (func_import): Only replace files via --import when they have actually
97998         changed.
98000 2005-03-03  Derek R. Price  <derek@ximbiot.com>
98002         * m4/mmap-anon.m4: New file.
98003         * m4/pagealign_alloc.m4: New file.
98005 2005-03-03  Derek R. Price  <derek@ximbiot.com>
98006             Bruno Haible  <bruno@clisp.org>
98008         * modules/pagealign_alloc: New file.
98009         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
98011 2005-03-03  Derek R. Price  <derek@ximbiot.com>
98012             Bruno Haible  <bruno@clisp.org>
98014         * lib/pagealign_alloc.h: New file.
98015         * lib/pagealign_alloc.c: New file.
98017 2005-03-03  Bruno Haible  <bruno@clisp.org>
98019         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
98020         Use an all-permissive copyright notice, recommended by RMS.
98022 2005-03-02  Bruno Haible  <bruno@clisp.org>
98024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
98025         of AIX, the replacement has to be done only after <string.h> is
98026         included, therefore not in config.h. stpncpy.h does the replacement,
98027         and stpncpy.c uses it.
98029 2005-03-02  Bruno Haible  <bruno@clisp.org>
98031         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
98032         stpncpy.c uses it.
98034 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98036         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
98037         The workaround isn't strictly needed for POSIX conformance, and
98038         it's too much of a pain to configure and maintain.  We'll ask
98039         people to fix their kernels instead.
98040         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
98041         (NANOSLEEP_BUG_WORKAROUND): Remove.
98042         (xnanosleep): Remove the workaround.
98044 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98046         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
98047         Reported by Derek Price.
98048         (Include): Add "timespec.h".
98050         * modules/xnanosleep (Depends-on): Remove gethrxtime.
98052 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98054         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
98055         to detect nanosleep bug.
98057 2005-03-01  Bruno Haible  <bruno@clisp.org>
98059         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
98061 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
98063         * modules/gethrxtime: New file.
98064         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
98065         (Depends-on): Add gethrxtime.
98066         (configure.ac): Add gl_XNANOSLEEP.
98067         (Makefile.am): Remove lib_SOURCES line.
98069 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
98071         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
98072         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
98074 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
98076         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
98077         * lib/timespec.h (gettime): Return void, since it always
98078         succeeds now.  All uses changed.
98079         * lib/gettime.c (gettime): Likewise.
98080         [HAVE_NANOTIME]: Prefer nanotime.
98081         Assume gettimeofday succeeds, as POSIX requires.
98082         Assime time () succeeds, since other code already does.
98083         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
98084         (timespec_subtract): Remove.
98085         (NANOSLEEP_BUG_WORKAROUND): New constant.
98086         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
98087         things considerably.  Use it only on GNU/Linux hosts, since the
98088         workaround shouldn't be needed elsewhere.
98090 2005-02-24  Bruno Haible  <bruno@clisp.org>
98092         * modules/gettext (Files): Add m4/glibc2.m4.
98094 2005-02-24  Bruno Haible  <bruno@clisp.org>
98096         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
98097         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
98098         * m4/progtest.m4:
98099         Update from GNU gettext 0.14.2.
98100         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
98102 2005-02-24  Bruno Haible  <bruno@clisp.org>
98104         * lib/localcharset.c: Update from GNU gettext 0.14.2.
98105         * lib/config.charset: Update from GNU gettext 0.14.2.
98107 2005-02-24  Bruno Haible  <bruno@clisp.org>
98109         * lib/gettext.h: Update from GNU gettext 0.14.2.
98111 2005-02-23  Simon Josefsson  <jas@extundo.com>
98113         * m4/iconvme.m4: New file.
98115 2005-02-23  Jim Meyering  <jim@meyering.net>
98117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
98118         change.
98119         Thanks to Bruno Haible for catching it.
98121 2005-02-22  Simon Josefsson  <jas@extundo.com>
98123         * modules/iconvme: New file.
98125         * MODULES.html.sh: Add iconvme.
98127 2005-02-22  Simon Josefsson  <jas@extundo.com>
98129         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
98131 2005-02-22  Simon Josefsson  <jas@extundo.com>
98133         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
98135 2005-02-22  Jim Meyering  <jim@meyering.net>
98137         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
98138         s/ifndef/ifdef/.
98140 2005-02-20  Neil Conway  <neilc@samurai.com>
98142         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
98143         returned by OSX/Darwin if the specified buffer is not large
98144         enough for the hostname.
98146 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98148         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
98149         pass it to _help, otherwise the latter coredumps trying to
98150         dereference state.root_argp.
98152 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98154         * modules/chdir-long (Depends-on): Add memrchr.
98155         * modules/memrchr (Files): Add lib/memrchr.h.
98156         (Include): "memrchr.h".
98158 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98160         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
98162 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98164         * lib/memrchr.h: New file.
98165         * lib/chdir-long.c: Include it.
98166         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
98167         Don't bother including stddef.h.
98169 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
98171         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
98172         inclusion.
98173         Include <sys/types.h>, for dev_t.
98174         (ME_DUMMY, ME_REMOTE): Move from here....
98175         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
98176         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
98177         Dmitry V. Levin.
98178         Include mountlist.h first, to test the interface.
98180 2005-01-29  Bruno Haible  <bruno@clisp.org>
98182         * lib/progname.c (program_name): Initialize.
98183         Needed when linking statically on MacOS X.
98185 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
98187         Sync from coreutils.
98188         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
98189         (Depends-on): Add c-strtod.
98190         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
98192 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
98194         Sync from coreutils.
98195         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
98197         Remove files that are specific to coreutils.
98198         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
98200 2005-01-28  Bruno Haible  <bruno@clisp.org>
98202         * modules/javacomp: New file.
98203         * MODULES.html.sh (Java): Add javacomp.
98205 2005-01-28  Bruno Haible  <bruno@clisp.org>
98207         * m4/javacomp.m4: New file, from GNU gettext.
98209 2005-01-28  Bruno Haible  <bruno@clisp.org>
98211         * lib/javacomp.sh.in: New file, from GNU gettext.
98212         * lib/javacomp.h: New file, from GNU gettext.
98213         * lib/javacomp.c: New file, from GNU gettext.
98215 2005-01-26  Simon Josefsson  <jas@extundo.com>
98217         * lib/gai_strerror.c: Use GPL in header.
98219 2005-01-26  Bruno Haible  <bruno@clisp.org>
98221         * modules/javaexec: New file.
98222         * MODULES.html.sh (Java): Add javaexec.
98224 2005-01-26  Bruno Haible  <bruno@clisp.org>
98226         * m4/javaexec.m4: New file, from GNU gettext.
98228 2005-01-26  Bruno Haible  <bruno@clisp.org>
98230         * lib/javaexec.sh.in: New file, from GNU gettext.
98231         * lib/javaexec.h: New file, from GNU gettext.
98232         * lib/javaexec.c: New file, from GNU gettext.
98234 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98236         * modules/lchown (Depends-on): Remove lchown.h
98238 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98240         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
98241         must be defined if the header file was not found, in order
98242         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
98244 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98246         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
98247         initializers for struct pentry_state.
98248         (__argp_error): Check return value of __asprintf
98249         (__argp_failure): Translate error message
98251         * lib/argp-parse.c: Removed braces around the expansion of N_()
98253 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98255         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
98256         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
98257         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
98258         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
98259         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
98260         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
98261         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
98262         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
98263         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
98264         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
98265         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
98266         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
98267         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
98268         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
98269         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
98270         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
98271         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
98272         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
98273         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
98274         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
98275         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
98276         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
98277         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
98278         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
98279         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
98280         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
98281         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
98282         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
98283         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
98284         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
98285         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
98286         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
98287         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
98288         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
98289         xstrtol.m4, xstrtoumax.m4, yesno.m4:
98290         Use an all-permissive copyright notice, recommended by RMS.
98292 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
98294         * modules/chdir-long (Depends-on): Remove mempcpy.
98296 2005-01-21  Jim Meyering  <jim@meyering.net>
98298         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
98299         same value as for Solaris 9.
98301         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
98302         component length.  This included changing the parameter to be
98303         of type `char *' rather than `char const *'.
98304         * lib/chdir-long.h (chdir_long): Update prototype.
98306         * lib/openat.c (fdopendir, fstatat): New functions.
98307         * lib/openat.h: Include headers required for use of DIR and struct
98308         stat.
98309         [AT_SYMLINK_NOFOLLOW]: Define.
98310         (fdopendir, fstatat): Add prototypes.
98312 2005-01-21  Bruno Haible  <bruno@clisp.org>
98314         * modules/classpath: New file.
98315         * MODULES.html.sh (Java): Add classpath.
98317 2005-01-21  Bruno Haible  <bruno@clisp.org>
98319         * lib/classpath.h: New file, from GNU gettext.
98320         * lib/classpath.c: New file, from GNU gettext.
98322 2005-01-20  Simon Josefsson  <jas@extundo.com>
98324         * modules/version-etc-fsf: New file.
98326 2005-01-20  Simon Josefsson  <jas@extundo.com>
98328         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
98329         * lib/version-etc.c: Remove version_etc_copyright.
98330         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
98331         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
98333 2005-01-20  Simon Josefsson  <jas@extundo.com>
98335         * lib/base64.h (isbase64): Add.
98337         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
98338         using a unsigned prototype, don't inline.
98339         (base64_decode): Use it.
98341 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
98343         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
98344         it.
98346 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
98348         * lib/save-cwd.c (save_cwd): Remove code to support the case
98349         where fchdir is missing or flaky.
98351 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
98353         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
98355 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
98357         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
98358         AC_LIBSOURCES now does this.
98359         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
98360         with new ullong_max module.
98362 2005-01-19  Bruno Haible  <bruno@clisp.org>
98364         * modules/sh-quote: New file.
98365         * MODULES.html.sh (Executing programs): Add sh-quote.
98367 2005-01-19  Bruno Haible  <bruno@clisp.org>
98369         * lib/sh-quote.h: New file, from GNU gettext.
98370         * lib/sh-quote.c: New file, from GNU gettext.
98372 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
98374         Merge from coreutils.
98375         * m4/ullong_max.m4: New file.
98376         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
98377         (gl_MACROS): Assume localeconv exists.
98379 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
98381         Merge changes from coreutils, as described below in several
98382         changelogs dated today.
98384         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
98385         (O_DIRECTORY): Remove; not needed here, since "." must be
98386         a directory.  All uses removed.
98387         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
98388         universal on Suns, and we also need to test for IRIX.
98389         Revamp code to use 'if' rather than '#if'.
98390         Avoid unnecessary comparison of cwd->desc to 0.
98392         * lib/utimens.c (futimens): Robustify the previous patch, by checking
98393         for known valid error numbers rather than observed invalid ones.
98395 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
98397         * modules/ullong_max: New file.
98399         * modules/chdir-long, modules/openat: New files.
98400         * modules/save-cwd (Depends-on): Depend on chdir-long.
98401         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
98403 2005-01-18  Jim Meyering  <jim@meyering.net>
98405         Merge from coreutils.
98406         * m4/chdir-long.m4, m4/openat.m4: New files.
98407         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
98408         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
98409         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
98410         is sane and DOES follow symlinks.  Besides, testing 20 different
98411         systems found no broken chown implementations.
98412         Prompted by a change in rsync's copy of this macro.
98413         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
98415         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
98417         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
98418         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
98419         NULL-means-set-to-current-time semantics.
98420         Remove temporary file immediately, rather than waiting
98421         for configure's at-exit trap code to do it.
98423 2005-01-18  Jim Meyering  <jim@meyering.net>
98425         * lib/version-etc.c (version_etc_copyright): Update copyright date.
98427         * lib/utimens.c (futimens): Account for the fact that futimes
98428         can also fail with errno == ENOSYS or errno == ENOENT.
98429         Patch from Dmitry V. Levin.
98431         Change the name of the robust chdir function from chdir to chdir_long.
98432         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
98433         (restore_cwd): Use chdir_long, not chdir.
98434         * lib/chdir-long.c: Renamed from chdir.c.
98435         * lib/chdir-long.h: Renamed from chdir.h.
98436         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
98437         Hurd.
98439 2005-01-18  Bruno Haible  <bruno@clisp.org>
98441         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
98442         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
98443         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
98444         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
98445         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
98446         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
98447         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
98448         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
98449         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
98450         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
98451         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
98452         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
98453         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
98454         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
98455         Use an all-permissive copyright notice, recommended by RMS.
98457 2005-01-18  Bob Proulx  <bob@proulx.com>
98459         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
98460         simplify offsetof() macro construct to avoid compile failure with
98461         native HP-UX 11.0 ANSI C compiler.
98463 2005-01-17  Bruno Haible  <bruno@clisp.org>
98465         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
98466         redundant because stpncpy.m4 takes care of it.
98468 2005-01-17  Bruno Haible  <bruno@clisp.org>
98470         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
98472 2005-01-17  Bruno Haible  <bruno@clisp.org>
98474         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
98475         used.
98477 2005-01-17  Bruno Haible  <bruno@clisp.org>
98479         * lib/fwriteerror.h (fwriteerror): Change specification to include
98480         fclose.
98481         * lib/fwriteerror.c: Include <stdbool.h>.
98482         (fwriteerror): At the end, close the file stream. Record whether
98483         stdout was already closed.
98485 2005-01-17  Bruno Haible  <bruno@clisp.org>
98487         * lib/execute.c (environ): Declare if needed.
98488         * lib/pipe.c (environ): Likewise.
98489         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
98491 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98493         * modules/argp: Depend on vsnprintf
98495 2005-01-10  Jim Meyering  <jim@meyering.net>
98497         * modules/closeout (Depends-on): Add atexit.
98499 2005-01-06  Bruno Haible  <bruno@clisp.org>
98501         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
98503 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98505         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
98506         definitions to be after all include files, to avoid collisions.
98507         Problem reported by Bob Proulx.
98509 2005-01-04  Jim Meyering  <jim@meyering.net>
98511         Changes imported from coreutils.
98512         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
98513         as the mkstemp template, use a temporary directory and an
98514         8.3-friendly template to avoid trouble on systems like DJGPP.
98515         Reported by Juan M. Guerrero via Stepan Kasal.
98516         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
98517         close. Remove the temporary directory right away, rather than waiting
98518         for configure's at-exit trap code to do it.
98519         Suggestion from Stepan Kasal.
98521 2005-01-01  Simon Josefsson  <jas@extundo.com>
98523         * gnulib-tool: Print #include directives when --import'ing.
98525 2004-12-28  Simon Josefsson  <jas@extundo.com>
98527         * tests/test-base64.c: Include required header files.  Remove
98528         unused variables.
98530 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
98532         * modules/error (Depends-on): Remove gettext.
98534 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
98536         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
98537         not needed.  This removes a dependency on the gettext module.
98538         [defined _LIBC]: Do not include <libintl.h>; not needed.
98540 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
98542         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
98543         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
98545 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
98547         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
98548         HAVE_DECL_STRTOLD.
98550 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
98552         * modules/getdate (Depends-on): Remove alloca-opt.
98554 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
98556         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
98558 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
98560         * lib/argp-parse.c: Include <stddef.h>.
98561         (alignof, alignto): New macros.
98562         (parser_init): Don't assume that void * is aligned sufficiently
98563         for struct option.
98565         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
98566         need to extend the stack.
98567         (YYINITDEPTH): New macro, so that the initial stack isn't overly
98568         large.
98570 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98572         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
98574 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
98576         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
98577         (2004-10-24) change.  Apparently this was a false alarm.
98579         * modules/getdate: Depend on alloca-opt, not alloca.
98581 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
98583         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
98584         Remove now-obsolete comment about AIX.
98585         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
98586         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
98587         (YYMAXDEPTH): New macro.
98589 2004-12-18  Simon Josefsson  <jas@extundo.com>
98591         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
98593 2004-12-18  Bruno Haible  <bruno@clisp.org>
98595         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
98597 2004-12-18  Bruno Haible  <bruno@clisp.org>
98599         * lib/fatal-signal.c (fatal_signals): Make non-const.
98600         (init_fatal_signals): New function.
98601         (uninstall_handlers, install_handlers): Ignore signals that were set to
98602         SIG_IGN.
98603         (at_fatal_signal): Call init_fatal_signals.
98604         (init_fatal_signal_set): Likewise. Ignore signals that were set to
98605         SIG_IGN.
98606         Reported by Paul Eggert.
98608 2004-12-18  Bruno Haible  <bruno@clisp.org>
98610         * doc/alloca.texi: New file.
98611         * doc/alloca-opt.texi: New file.
98613 2004-12-17  Jim Meyering  <jim@meyering.net>
98615         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
98616         Otherwise, install-sh could exit with improper exit status when
98617         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
98619 2004-12-16  Simon Josefsson  <jas@extundo.com>
98621         * tests/test-base64.c: Add license.
98623 2004-12-15  Stepan Kasal  <address@hidden>
98625         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
98627 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
98629         * modules/getcwd (Files): Add m4/d-ino.m4.
98630         Suggested by Mark D. Baushke.
98632 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
98634         * lib/getdate.y (textint): New member "negative".
98635         (time_zone_hhmm): New function.
98636         Expect 14 shift-reduce conflicts, not 13.
98637         (o_colon_minutes): New rule.
98638         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
98639         (yylex): Set the "negative" member of signed numbers.
98641 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
98643         * doc/getdate.texi (Time of day items, Time zone items):
98644         Describe new formats +00:00, UTC+00:00.
98646 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98648         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
98649         spurious "-l"s.  Problem reported by Stepan Kasal.
98651 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
98653         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
98654         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
98656 2004-12-04  Simon Josefsson  <jas@extundo.com>
98658         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
98659         Vandoorselaere <yoann@prelude-ids.org>.
98661 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
98663         Changes imported from coreutils.
98664         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
98665         exist.
98666         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
98668 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
98670         Changes imported from coreutils.
98671         * lib/hard-locale.c: Assume <locale.h> exists.
98672         Include "strdup.h".
98673         (GLIBC_VERSION): New macro.
98674         (hard_locale): Assume setlocale exists.
98675         Rewrite to avoid #ifdef.
98676         Use strdup rather than malloc + strcpy.
98677         * lib/human.c: Assume <locale.h> exists.
98678         (human_readable): Assume localeconv exists.
98680 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
98682         * modules/hard-locale (Depends-on): Add strdup.
98684 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
98686         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
98687         convert T2, not T.  (Imported from libc.)
98689 2004-11-30  Simon Josefsson  <jas@extundo.com>
98691         * modules/restrict (License): Change to LGPL.
98693 2004-11-30  Simon Josefsson  <jas@extundo.com>
98695         * m4/restrict.m4: Add copyright and copying conditions.
98697 2004-11-30  Simon Josefsson  <jas@extundo.com>
98699         * m4/base64.m4: New file.
98701 2004-11-30  Simon Josefsson  <jas@extundo.com>
98703         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
98704         base64.
98706         * tests/test-base64.c: New file.
98708         * modules/base64: New file.
98710 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
98712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
98713         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
98715         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
98717 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
98719         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
98720         (__getcwd.c): Don't restore errno; glibc doesn't.
98721         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
98722         first, falling back to our code only if its results look suspicious.
98723         Ensure that the resulting buffer is only as large as necessary.
98725         * lib/readutmp.c: Include readutmp.h first.
98726         Include <errno.h>, since readutmp.h no longer does that.
98727         * lib/readutmp.h: Don't include <errno.h>,
98728         <sys/param.h>, <time.h>; not needed to establish interface.
98729         (errno): Remove decl.
98730         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
98731         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
98732         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
98734 2004-11-28  Simon Josefsson  <jas@extundo.com>
98736         * lib/base64.h, base64.c: New file.
98738 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
98740         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
98742 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
98744         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
98745         (Depends-on): Remove pathmax, same.  Add mempcpy.
98746         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
98747         (Makefile.am): Append getcwd.h to lib_SOURCES.
98748         (Include): Add getcwd.h.
98749         (Maintainer): Change from Jim Meyering to "all, glibc",
98750         since getdate now uses intended-for-glibc code.
98751         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
98752         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
98754 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98756         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
98757         HP's ANSI C compiler.
98758         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
98759         Declaring int functions causes warnings on some modern systems and
98760         shouldn't be needed to compile on ancient ones.
98761         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
98762         defined.
98764         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
98765         with the following changes.
98766         (__set_errno): Parenthesize properly.
98767         Include <stdbool.h>.
98768         (MIN, MAX, MATCHING_INO): New macros.
98769         (__getcwd): Define with prototype, not K&R form.
98770         Use heuristics to allocate default buffer on stack if possible.
98771         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
98772         behavior, and to avoid the PATH_MAX limit when computing
98773         ../../../../...
98774         Use MATCHING_INO to compare inode number to file.
98775         Check for arithmetic overflow in size calculations.
98776         Fix bug in reallocation of dot array that caused getcwd to fail
98777         on directories nested deeper than 75.
98778         Be more careful about saving errno on error.
98779         Do not use realloc; use only free+malloc, as this is a bit
98780         more flexible and avoids a needless copy operation.
98781         Do not inspect st_dev and st_ino for symbolic links; POSIX
98782         doesn't specify the latter.
98783         Check for closedir errors.
98784         Avoid needless casts.
98785         Use "#ifdef weak_alias" around weak_alias, to be like other
98786         glibc code.
98787         The following changes to getcwd.c have effect only when used in
98788         gnulib; they have no effect inside glibc proper.
98789         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
98790         as alloca isn't used.
98791         (alloca, __alloca): Likewise.
98792         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
98793         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
98794         unconditionally, as gnulib assumes C89 or better.
98795         Do not include <sys/param.h>.
98796         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
98797         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
98798         better.
98799         (NULL) [!defined NULL]: Remove; we assume C89 or better.
98800         Include <dirent.h> in a way that is compatible with modern Autoconf.
98801         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
98802         New macros, if not already defined.
98803         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
98804         Use "_LIBC", not "defined _LIBC", for consistency.
98805         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
98806         a mempcpy module.
98807         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
98808         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
98809         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
98810         credit only to Jim Meyering and adjust the copyright dates.
98811         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
98812         <stdlib.h>, <unistd.h>, "pathmax.h".
98813         Instead, include "xgetcwd.h" (first) and "getcwd.h".
98814         (INITIAL_BUFFER_SIZE): Remove.
98815         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
98817 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98819         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
98820         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
98821         Use the _ONCE methods, for efficiency.
98822         Check for fcntl.h.  In test program, include <errno.h>
98823         and <fcntl.h> if available.  Remove old K&R cruft from
98824         test program.  Check for common errors in GNU/Linux,
98825         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
98826         don't do AC_LIBOBJ, as that's getcwd.m4's job.
98827         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
98828         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
98829         name accordingly.
98830         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
98831         accommodate new getcwd.c.
98832         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
98833         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
98834         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
98835         that's all we need now.
98837 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98839         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
98840         argp-parse.c depends on getopt internals, that means we should
98841         always use our getopt, to be on the safe side.
98842         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
98843         order not to spoil the result of an eventual previous invocation
98844         of gl_GETOPT_SUBSTITUTE.
98846 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98848         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
98849         redefinition warnings. To avoid them, include the defines
98850         in `#if !defined __need_getopt ... #endif'. The only place
98851         where __getopt_argv_const is used is in definitions
98852         of getopt_long and getopt_long_only below, which are as well
98853         protected by `#ifndef __need_getopt'.
98854         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
98855         __need_getopt after including <stdio.h> and <unistd.h> These
98856         headers might have defined it.
98858 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
98860         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
98862 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
98864         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
98865         (futimens): New function, which uses futimes if available.
98866         (futimens, utimens): Support timespec==NULL, with same semantics
98867         as utime and utimens.
98868         * lib/utimens.h (futimens): New decl.
98870 2004-11-23  Jim Meyering  <jim@meyering.net>
98872         * lib/getopt_.h: Remove trailing blanks.
98874 2004-11-23  Jim Meyering  <jim@meyering.net>
98876         * lib/__fpending.c: Add comment.
98878 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
98880         * modules/canonicalize (Depends-on): Add xreadlink.
98881         Problem reported by James Youngman.
98883 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
98885         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
98886         New macros.
98887         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
98888         optopt): Use them instead of invoking ## directly; otherwise, the
98889         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
98891 2004-11-19  Bruno Haible  <bruno@clisp.org>
98893         * lib/strtok_r.c: Move comments from here...
98894         * lib/strtok_r.h: ... to here.
98896 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
98898         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
98899         implementations that mishandle size_t overflow.
98901 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
98903         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
98904         might fail.  Problem reported by Yoann Vandoorselaere.
98905         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
98906         implementations that mishandle size_t overflow.
98908 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98910         * modules/canon-host (Depends-on): Add strdup.
98912 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98914         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
98916 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98918         * lib/canon-host.c: Include "strdup.h".
98919         (canon_host): Use getaddrinfo if available, so that IPv6 works.
98920         Use strdup instead of malloc/strcpy to duplicate strings.
98922         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
98923         (human_space_before_unit): New constant.
98924         * lib/human.c (human_readable): Support it.
98926         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
98927         (xgetcwd): Set errno correctly when failing.
98928         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
98929         the failure is actually due to a PATH_MAX problem.
98931         Further getopt changes to make it more likely that glibc will
98932         buy the changes back.
98933         * lib/getopt.c (POSIXLY_CORRECT): New constant.
98934         (getopt): Use it, so to preserve glibc semantic
98935         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
98936         when compiling for libc.
98937         * lib/getopt_.h (__getopt_argv_const): Bring it back.
98938         (getopt_long, getopt_long_only): Use it.
98940         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
98941         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
98942         (getopt): Argv is now char * const *, as per standard.
98943         (_getopt_internal_r, _getopt_internal): Argv is now char **,
98944         not char *__getopt_argv_const *.
98945         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
98946         _getopt_long_only_r): Likewise.
98947         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
98948         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
98949         _getopt_long_r, _getopt_long_only_r): Likewise.
98950         * lib/getopt_.h (__getopt_argv_const): Remove.
98951         (getopt): Argv is now char * const *, as per standard.
98953         * lib/getdate.y (tORDINAL): New token.
98954         (day, relunit): Allow it for relative times.
98955         (relative_time_table): Use tORDINAL for ordinals.
98957 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98959         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
98960         Document that "second" isn't allowed as an ordinal number.
98962 2004-11-16  Jim Meyering  <jim@meyering.net>
98964         * modules/closeout (Depends-on): Add fpending.
98966 2004-11-15  Jim Meyering  <jim@meyering.net>
98968         * lib/closeout.c: Include "__fpending.h" once again.
98969         Include <stdbool.h>.
98970         (close_stdout): Don't fail just because stdout was closed initially,
98971         since some programs don't write to stdout in the normal course of
98972         operation (other than --version and --help), and we don't want this
98973         function to make e.g. `touch file >&-' fail.
98974         But do fail if it was closed and someone has tried to write to it.
98975         E.g., `printf foo >&-' must fail.
98977 2004-11-13  Jim Meyering  <jim@meyering.net>
98979         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
98981 2004-11-12  Simon Josefsson  <jas@extundo.com>
98983         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
98984         small doc fix is still pending.
98986 2004-11-11  Simon Josefsson  <jas@extundo.com>
98988         * modules/strtok_r: New file.
98990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98991         strtok_r.
98993 2004-11-11  Simon Josefsson  <jas@extundo.com>
98995         * m4/strtok_r.m4: New file.
98997         * m4/getopt.m4: Replace opterr.
98999 2004-11-11  Simon Josefsson  <jas@extundo.com>
99001         * lib/strtok_r.h, strtok_r.c: New file.
99003 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
99005         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
99006         of replacing opterr, getopt, etc.  This should handle the
99007         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
99009 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
99011         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
99012         we can stop lying to compilers about the constness of argv when we
99013         are compiled outside glibc.
99014         (getopt, getopt_long, getopt_long_only): Use it.
99015         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
99016         _getopt_internal, getopt): Likewise.
99017         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
99018         _getopt_long_only_r): Likewise.
99019         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
99020         _getopt_long_r, _getopt_long_only_r): Likewise.
99022         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
99023         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
99024         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
99025         the other external symbols.
99026         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
99027         declaration, since the above renaming now works around collisions.
99029 2004-11-11  Jim Meyering  <jim@meyering.net>
99031         * lib/linebreak.c: Remove trailing blanks.
99032         * lib/alloca_.h: Likewise.
99033         * lib/acosl.c: Likewise.
99034         * lib/euidaccess.c: Likewise.
99035         * lib/allocsa.h: Likewise.
99037 2004-11-10  Simon Josefsson  <jas@extundo.com>
99039         * m4/getaddrinfo.m4: New file.
99041 2004-11-10  Simon Josefsson  <jas@extundo.com>
99043         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
99045 2004-11-10  Simon Josefsson  <jas@extundo.com>
99047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99048         getaddrinfo.
99050         * modules/getaddrinfo: New file.
99052 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99054         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
99056 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99058         * lib/mktime.c (SHR): New macro, which is a portable
99059         substitute for >> that should work even on Crays.
99060         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
99061         Problem reported by Mark D. Baushke in
99062         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
99063         * lib/getdate.y (SHR): Likewise.
99064         (tm_diff): Use it.
99065         * lib/strftime.c (SHR): Likewise.
99066         (tm_diff): Use it.
99067         * lib/quotearg.c (struct quoting_options): Use unsigned int for
99068         quote_these_too, so that right shifts are well defined.  All uses
99069         changed.
99071 2004-11-10  Jim Meyering  <jim@meyering.net>
99073         Ensure that no close failure goes unreported.
99074         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
99075         return early when it seems there's nothing to flush.
99076         Don't include __fpending.h.
99078 2004-11-10  Jim Meyering  <jim@meyering.net>
99080         * modules/closeout (Depends-on): Remove fpending.
99082 2004-11-10  Jim Meyering  <jim@meyering.net>
99084         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
99086 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
99088         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
99089         gl_FUNC_STRFTIME.
99090         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
99091         and AC_REQUIRE when possible, to avoid duplicate checks.
99092         Check for <wchar.h>.
99094 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
99096         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
99098 2004-11-09  Bruno Haible  <bruno@clisp.org>
99100         * m4/sockpfaf.m4: New file.
99102 2004-11-05  Bruno Haible  <bruno@clisp.org>
99104         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
99105         Reported by Mark D. Baushke <mdb@cvshome.org>.
99107 2004-11-04  Bruno Haible  <bruno@clisp.org>
99109         2004-09-11  Bruno Haible  <bruno@clisp.org>
99110                 * allocsa.valgrind: New file.
99111         2004-02-06  Bruno Haible  <bruno@clisp.org>
99112                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
99113                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
99114                 Reported by Christopher Seip <chris.seip@hp.com>.
99116 2004-11-04  Bruno Haible  <bruno@clisp.org>
99118         * modules/allocsa (Files): Add lib/allocsa.valgrind.
99119         (Makefile.am): Distribute it.
99121 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
99123         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
99124         with errno == ERANGE if the buffer is too small.
99125         Problem reported by Mark D. Baushke.
99127 2004-11-03  Albert Chin  <china@thewrittenword.com>
99128             Paul Eggert  <eggert@cs.ucla.edu>
99130         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
99131         equivalent, substitute $ac_type for equivalent type rather than
99132         blindly using uint32_t *always* which won't work if uint32_t is not
99133         available.  Define _UINT32_T to work around typedef of uint32_t if
99134         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
99135         2.5.1.
99137 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
99139         * m4/jm-macros.m4: Sync from coreutils.
99140         (gl_MACROS): Check for mbrlen, for pathchk.
99141         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
99143 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
99145         * lib/xreadlink.c (MAXSIZE): New macro.
99146         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
99147         size does not exceed MAXSIZE.  Avoid cast.
99148         As suggested by Mark D. Baushke in
99149         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
99150         if readlink fails with buffer size just under MAXSIZE, try again
99151         with MAXSIZE.
99153 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
99155         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
99157 2004-11-02  Derek R. Price  <derek@ximbiot.com>
99158         and  Paul Eggert  <eggert@cs.ucla.edu>
99160         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
99161         (get_date): Overparenthesize to avoid GCC warning.
99163 2004-11-02  Bruno Haible  <bruno@clisp.org>
99165         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
99166         returns void.
99168 2004-11-02  Bruno Haible  <bruno@clisp.org>
99170         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
99171         function returns void.
99173 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99175         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
99176         fflush_unlocked, flockfile, funlockfile, funlockfile,
99177         fputs_unlocked, putc_unlocked.
99179 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99181         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
99182         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
99183         already declared.
99185 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99187         * modules/getdate (Files): Add doc/getdate.texi.
99188         (Depends-on): Add setenv, xalloc.
99190 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99192         * lib/getdate.y: Add support for TZ="foo" within a date string.
99193         Fix some bugs near time_t boundaries.  Reject dates with
99194         out-of-range components, e.g., "Sept 31".
99195         Include <stdlib.h>, "setenv.h", "xalloc.h".
99196         (ISDIGIT_LOCALE): Remove; unused.
99197         Note that the TZ and time functions used here are not reentrant.
99198         (mktime_ok, get_tz): New functions.
99199         (TZBUFSIZE): New constant.
99200         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
99201         This requires that we sometimes generate our own TZ="XXX..." setting.
99203 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99205         * doc/getdate.texi: New file, from coreutils with modifications for
99206         the new TZ parsing.
99208 2004-10-27  Derek R. Price  <derek@ximbiot.com>
99210         * lib/mktime.c (not_equal_tm): Remove redundant check.
99212 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99214         * modules/regex (lib_SOURCES): Add regex.c.
99215         Reported by James Youngman in
99216         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
99218 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99220         * lib/getdate.y: Use Bison 1.875 features, and some minor
99221         code cleanups.  This change does not affect semantics.
99222         Don't include <stdlib.h>; no longer needed.
99223         Don't include unlocked-io.h; only the "#if TEST" code uses
99224         stdio, and performance isn't crucial there.
99225         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
99226         Bison 1.875 features as described below.
99227         All uses of "PC." replaced by "pc->".
99228         (YYSTYPE): Add a forward declaration.
99229         (yylex, yyerror): Use full prototypes in forward decls.
99230         Use "%pure-parser" rather than obsolescent "%pure_parser".
99231         Use %parse-param and %lex-param instead of obsolescent
99232         YYPARSE_PARAM and YYLEX_PARAM.
99233         (meridian_table, month_and_day_table, time_units_table,
99234         relative_time_table, time_zone_table, military_table,
99235         lookup_zone, lookup_word, get_date):
99236         Use NULL instead of 0 where appropriate.
99237         (to_hour): Avoid abort (), to avoid a dependency on
99238         stdlib.h.
99239         (yyerror, yylex): Now accepts parser_control * arg.
99240         (main) [TEST]: Use '\0' rather than 0 for char.
99242 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99244         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
99246 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99248         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
99249         It's now the caller's responsibility to handle the case where
99250         !HAVE_GETPAGESIZE && !defined getpagesize.
99252         * lib/mktime.c (leapyear): Arg is long int, not int.
99254 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
99256         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
99258 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99260         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
99261         missing.  Problem reported by James Youngman.
99263 2004-10-16  Simon Josefsson  <jas@extundo.com>
99265         * gnulib-tool: Fix comments.  Fix parse problem.
99266         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
99268 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
99270         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
99271         implementation of getopt_long.  Problem reported by Alexander Taler in:
99272         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
99274 2004-10-15  Bruno Haible  <bruno@clisp.org>
99276         * gnulib-tool: Untabify. Initialize supplied_libname.
99277         (func_usage): More homogenous output.
99278         (func_modules_transitive_closure, func_modules_to_filelist,
99279         func_emit_lib_Makefile_am): New functions.
99280         (func_import): New function, extracted from big case statement. Use
99281         func_get_license, func_modules_transitive_closure,
99282         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
99283         opt_lgpl. Don't use test -a, as it's not portable.
99284         (func_create_testdir): Use func_modules_transitive_closure,
99285         func_modules_to_filelist, func_emit_lib_Makefile_am.
99287 2004-10-15  Bruno Haible  <bruno@clisp.org>
99289         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
99291 2004-10-15  Bruno Haible  <bruno@clisp.org>
99293         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
99294         the portions belonging to each module.
99295         Suggested by Derek Robert Price <derek@ximbiot.com>.
99297 2004-10-12  Simon Josefsson  <jas@extundo.com>
99299         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
99300         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
99301         to real functions.
99303 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
99305         * modules/vsnprintf: New file.
99307 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
99309         * m4/vsnprintf.m4: New file.
99311 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
99313         * lib/vsnprintf.h: New file.
99314         * lib/vsnprintf.c: New file.
99316 2004-10-11  Bruno Haible  <bruno@clisp.org>
99318         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
99319         vsnprintf.
99321 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
99323         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
99325 2004-10-07  Bruno Haible  <bruno@clisp.org>
99327         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
99328         fits into the provided buffer.
99330 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
99332         * lib/diacrit.c, diacrit.h: Add GPL notice.
99334         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
99335         notice.
99336         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
99337         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
99338         This avoids a potential constant-folding bug.
99340 2004-10-05  Bruno Haible  <bruno@clisp.org>
99342         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
99343         for the declaration of strsep.
99345 2004-10-05  Bruno Haible  <bruno@clisp.org>
99347         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
99349 2004-10-04  Simon Josefsson  <jas@extundo.com>
99351         * modules/memmem: New file.
99352         * tests/test-memmem.c: New file.
99353         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
99355 2004-10-04  Simon Josefsson  <jas@extundo.com>
99357         * m4/memmem.m4: New file.
99359 2004-10-04  Simon Josefsson  <jas@extundo.com>
99361         * lib/memmem.h: New file.
99362         * lib/memmem.c: New file, taken from glibc.
99364 2004-10-04  Simon Josefsson  <jas@extundo.com>
99366         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
99367         '#ifdef USE_UNLOCKED_IO'.
99369 2004-10-04  Simon Josefsson  <jas@extundo.com>
99371         * config/srclist.txt: Add memmem from glibc.
99373 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
99375         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
99377         * modules/argmatch, modules/argp, modules/closeout, modules/error,
99378         modules/exclude, modules/getdate, modules/getline,
99379         modules/getndelim2, modules/getpass, modules/getpass-gnu,
99380         modules/getusershell, modules/linebuffer, modules/md5,
99381         modules/mountlist, modules/posixtm, modules/readtokens,
99382         modules/readutmp, modules/regex, modules/sha1,
99383         modules/version-etc, modules/yesno:
99384         Remove dependency on unlocked-io.
99386 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
99388         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
99390         * m4/unlocked-io.m4: Add copyright notice.
99391         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
99393 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
99395         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
99396         * lib/xmalloc.c (xmemdup): Likewise.
99397         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
99398         XFREE): Remove these long-obsolescent macros.
99399         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
99400         * lib/xstrdup.c: Remove.
99402         * lib/regex.c (re_comp): Cast gettext return value to char *,
99403         Problem reported by Martin Neitzel via Mark D. Baushke.
99405 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
99407         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
99408         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
99409         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
99410         regex.c, sha1.c, version-etc.c, yesno.c:
99411         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
99412         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
99413         the includer's responsibility.
99415         Sync from coreutils.
99417         * lib/modechange.c (mode_compile): Don't decrement a pointer that
99418         points to the start of a string, as the C Standard says the
99419         resulting behavior is undefined.
99421         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
99422         simple -> simple_backups, numbered_existing ->
99423         numbered_existing_backups, numbered -> numbered_backups
99424         to avoid shadowing problems.  All uses changed.
99425         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
99426         * lib/backupfile.c (check_extension, numbered_backup):
99427         Rename locals to avoid shadowing 'basename'.
99428         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
99429         once.
99431         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
99432         * lib/.cvsignore: Add getopt.h.
99434 2004-10-04  Bruno Haible  <bruno@clisp.org>
99436         * modules/README: New file.
99437         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
99438         not a module.
99440 2004-10-02  Jim Meyering  <jim@meyering.net>
99442         * lib/dirfd.h, getpagesize.h: Add copyright notice.
99444 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
99446         * modules/strsep: New file.
99448 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
99450         * m4/strsep.m4: New file.
99452 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
99454         * lib/strsep.h: New file.
99455         * lib/strsep.c: New file.
99457 2004-10-01  Simon Josefsson  <jas@extundo.com>
99459         * lib/snprintf.c (snprintf): Handle size==0.
99461 2004-10-01  Simon Josefsson  <jas@extundo.com>
99462             Bruno Haible  <bruno@clisp.org>
99464         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
99465         (snprintf): Declare 'args'.
99467 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
99469         * lib/snprintf.c: Remove comments as to why each header is needed.
99471 2004-10-01  Bruno Haible  <bruno@clisp.org>
99473         * MODULES.html.sh: Add strsep.
99475 2004-09-30  Simon Josefsson  <jas@extundo.com>
99477         * modules/snprintf: New file.
99479 2004-09-30  Simon Josefsson  <jas@extundo.com>
99481         * m4/snprintf.m4: New file.
99483 2004-09-30  Simon Josefsson  <jas@extundo.com>
99485         * lib/snprintf.h, lib/snprintf.c: New files.
99487 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99489         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
99490         (hol_entry_help): Never translate an empty string.
99491         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
99492         * lib/argp.h (OPTION_NO_TRANS): New option.
99494 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
99496         * modules/argp (Maintainer): Replace Simon Josefsson
99497         by Sergey Poznyakoff.
99499 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
99501         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
99502         changes merged back into glibc.
99504 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
99506         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
99508 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
99510         * lib/xvasprintf.c: Include xalloc.h.
99511         (xvasprintf): Use xalloc_die, not xmalloc_die.
99513 2004-09-29  Bruno Haible  <bruno@clisp.org>
99515         * modules/alloca-opt: New file, derived from modules/alloca.
99516         * modules/allocsa: Depend on alloca-opt instead of alloca.
99517         * modules/setenv: Likewise.
99518         * modules/vasnprintf: Likewise.
99519         * MODULES.html.sh: Add alloca-opt.
99521 2004-09-28  Simon Josefsson  <jas@extundo.com>
99523         * gnulib-tool: New parameter --lgpl, to asseert that modules are
99524         LGPL, and to replace license template from GPL to LGPL.
99526 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
99528         * modules/dummy: Change license to LGPL.
99530 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
99532         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
99534 2004-09-24  Simon Josefsson  <jas@extundo.com>
99536         * modules/minmax (License): Change from GPL to LGPL.
99538 2004-09-23  Simon Josefsson  <jas@extundo.com>
99540         * gnulib-tool (--import): Typo.
99542 2004-09-23  Simon Josefsson  <jas@extundo.com>
99544         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
99546 2004-09-22  Bruno Haible  <bruno@clisp.org>
99548         * modules/*: Add 'License' field.
99549         * gnulib-tool: Accept --extract-license option.
99550         (func_get_license): New function.
99552 2004-09-21  Bruno Haible  <bruno@clisp.org>
99554         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
99555         Reported by Simon Josefsson.
99557 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
99559         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
99560         gl_AC_TYPE_LONG_LONG.
99562 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
99564         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
99566 2004-09-18  Simon Josefsson  <jas@extundo.com>
99567         and  Paul Eggert  <eggert@cs.ucla.edu>
99569         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
99570         calls with autoreconf.  Define GL_LIB.
99572 2004-09-14  Karl Berry  <karl@gnu.org>
99574         * config/srclist.txt: unsync setenv.c, sigh.
99576 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
99578         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
99579         Problem reported by Bruno Haible in:
99580         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
99582 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
99584         * config/srclist.txt: Comment out argp-pvh.c.
99586 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
99588         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
99589         in case some system header has #define'd it.  Problem reported by
99590         Soeren D. Schulze in
99591         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
99593 2004-09-09  Karl Berry  <karl@gnu.org>
99595         * regex.[ch]: delete from the root.  These were supposed to be
99596                 synced with emacs cvs, but this has not happened for about
99597                 a year, and anyway nothing else uses emacs regex.[ch].
99598                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
99599                 lib/regex[.ch] is untouched.
99601 2004-09-09  Bruno Haible  <bruno@clisp.org>
99603         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
99605 2004-09-09  Bruno Haible  <bruno@clisp.org>
99607         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
99608         modifications.
99609         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
99611 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
99613         * modules/xvasprintf: New file.
99614         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
99616 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
99618         * lib/xvasprintf.h: New file.
99619         * lib/xvasprintf.c: New file.
99620         * lib/xasprintf.c: New file.
99622 2004-09-08  Bruno Haible  <bruno@clisp.org>
99624         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
99626 2004-09-08  Bruno Haible  <bruno@clisp.org>
99628         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
99629         length is > INT_MAX.
99630         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
99631         more.
99633 2004-09-08  Bruno Haible  <bruno@clisp.org>
99635         * lib/stdint_.h: New file, taken from GNU clisp.
99637 2004-09-08  Bruno Haible  <bruno@clisp.org>
99638             Oskar Liljeblad  <oskar@osk.mine.nu>
99640         * modules/stdint: New file.
99641         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
99643 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99645         Import from coreutils.
99646         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
99647         strings on unbounded length.  alloca's performance benefits aren't
99648         that important here.
99649         (V_STRDUP): Remove.
99650         (parse_with_separator): New function, with most of the internals
99651         of the old parse_user_spec.  Allow user to omit both user and group,
99652         for compatibility with FreeBSD.
99653         Clone only the user name, not the entire spec.
99654         Do not set *uid, *gid unless entirely successful.
99655         Avoid memory leak in some failing cases.
99656         Fix regression for USER.GROUP reported by Dmitry V. Levin in
99657         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
99658         (parse_user_spec): Rewrite to use parse_with_separator.
99660 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99662         * modules/userspec: Don't depend on alloca.
99664 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99666         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
99668 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
99670         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
99671         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
99672         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
99674 2004-08-16  Simon Josefsson  <jas@extundo.com>
99676         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
99677         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
99678         Add --dry-run for --import.
99679         Let user provided command line parameters override configure.ac
99680         settings.
99682 2004-08-12  Simon Josefsson  <jas@extundo.com>
99684         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
99685         as discussed with Paul Eggert in threads rooted at
99686         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
99687         and
99688         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
99689         Before, the test was empty, and relied on ELIDE_CODE in source
99690         code.)
99691         (gl_PREREQ_GETOPT): New macro.
99692         (gl_GETOPT): Use them.
99694 2004-08-12  Simon Josefsson  <jas@extundo.com>
99696         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
99697         * lib/getopt_.h: Renamed from getopt.h.
99699 2004-08-12  Simon Josefsson  <jas@extundo.com>
99701         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
99702         Change default library name from libfoo to libgnu.
99703         Now, if you have a configure.ac that says:
99704                 gl_SOURCE_BASE(gl)
99705                 gl_M4_BASE(gl/m4)
99706                 gl_MODULES(error getopt etcetera)
99707                 gl_INIT
99708         you can import all you need by running:
99709                 ../gnulib/gnulib-tool --import
99711         * modules/getopt (Files): Rename getopt.h to getopt_.h.
99712         (Makefile.am): Rewrite, use logic from argz.
99713         (Include): Use <getopt.h> instead of "getopt.h".
99715 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99717         * modules/argp (Files): Add m4/unlocked-io.m4.
99718         (Depends-on): Add extensions.
99720 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99722         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
99723         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
99724         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
99725         Check for program_invocation_name, program_invocation_short_name,
99726         flockfile, funlockfile, features.h, _getopt_long_only_r.
99728 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99730         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
99731         its complicated substitute.
99732         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
99733         and program_invocation_name.
99734         (__argp_basename) [!_LIBC]: Remove; the only use was
99735         replaced by its body.
99736         (__argp_short_program_name): Change condition from
99737         !defined __argp_short_program_name to
99738         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
99739         to match argp-namefrob.h.
99740         (__argp_failure): Don't assume strerror_r returns char *.
99741         * lib/argp-parse.c (N_): Define unconditionally.
99742         (argp_default_options): Fill out initializers with 0 to avoid
99743         gcc warnings.
99745 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99747         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
99748         getopt1.c.
99750 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
99752         Merge from coreutils.
99754         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
99756         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
99757         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
99759 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
99761         Merge from coreutils.
99763         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
99764         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
99765         for Reliant Unix 5.43.
99767         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
99768         (union fooround): Use uintmax_t, not long int.
99769         The rest is a merge from libc:
99770         [defined _LIBC]: Include <shlib-compat.h>.
99771         (_obstack) [defined _LIBC]: Remove after 2.3.4.
99773         * lib/settime.c (settime): Recode to avoid warning with
99774         Sun Forte C 6U2.
99776         * lib/strverscmp.c: Convert to UTF-8.
99778 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
99780         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
99781         m4/uintmax_t.m4.
99783 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99785         * modules/xalloc-die: New file.
99786         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
99788         * modules/md5 (Files): Add m4/uint32_t.m4.
99789         * modules/sha1: Renamed from modules/sha.
99790         (Files):
99791         Rename lib/sha.h to lib/sha1.h.
99792         Rename lib/sha.c to lib/sha1.c.
99793         Rename m4/sha.m4 to m4/sha1.m4.
99794         (lib_SOURCES): Likewise.
99795         (configure.ac): Rename gl_SHA to gl_SHA1.
99796         (Include): sha.h -> sha1.h.
99798 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99800         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
99801         * m4/sha1.m4: Renamed from sha.m4.
99802         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
99804 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99806         * lib/obstack.h (obstack_empty_p):
99807         Don't assume that chunk->contents is suitably aligned.
99808         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
99809         Likewise. Problem reported by Benno in
99810         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
99812         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
99813         readable.  This could be improved further but it'd take some work.
99815 2004-08-08  Simon Josefsson  <jas@extundo.com>
99817         * modules/xgethostname (Depends-on): Remove exit and error (not
99818         used).
99820         * modules/getpass-gnu: Add getpass.h.
99821         (Depends-on): Add stdbool.
99822         * modules/getpass: Add getpass.h.
99824 2004-08-08  Simon Josefsson  <jas@extundo.com>
99826         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
99827         Check getpass declaration.
99829 2004-08-08  Simon Josefsson  <jas@extundo.com>
99831         * lib/xgethostname.c: Don't include error.h (not used).
99833         * lib/getpass.h: Add.
99834         * lib/getpass.c: Include getpass.h first.
99836 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
99838         * lib/xalloc-die.c: New file.
99839         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
99840         All uses removed.
99841         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
99842         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
99843         xalloc-die.c.
99844         (_, N_, xalloc_die): Move to xalloc-die.c.
99845         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
99846         so that we needn't mess with xalloc_msg_memory_exhausted.
99848         * lib/sha1.h: Renamed from sha.h.
99849         (SHA1_H): Renamed from _SHA_H.
99850         (sha1_ctx): Renamed from sha_ctx.
99851         (sha1_init_ctx): Renamed from sha_init_ctx.
99852         (sha1_process_block): Renamed from sha_process_block.
99853         (sha1_process_bytes): Renamed from sha_process_bytes.
99854         (sha1_finish_ctx): Renamed from sha_finish_ctx.
99855         (sha1_read_ctx): Renamed from sha_read_ctx.
99856         (sha1_stream): Renamed from sha_stream.
99857         (sha1_buffer): Renamed from sha_buffer.
99858         * lib/sha1.c: Likewise; renamed from sha.c.
99859         Do not include <sys/types.h>.
99860         Include <stddef.h> rather than <stdlib.h>.
99862 2004-08-08  Bruno Haible  <bruno@clisp.org>
99864         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
99865         FILESYSTEM_PREFIX_LEN.
99866         * lib/progreloc.c: Likewise.
99867         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
99869 2004-08-06  Simon Josefsson  <jas@extundo.com>
99871         * modules/progname (Depends-on): Don't depend on stdbool.
99873 2004-08-06  Simon Josefsson  <jas@extundo.com>
99875         * modules/getsubopt: New file.
99876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99877         getsubopt.
99879 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99881         More merge from coreutils.
99883         * m4/utimens.m4, m4/utimecmp.m4: New files.
99884         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
99885         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
99886         prereq.m4, sha.m4: Import changes from coreutils.
99888 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99890         More merge from coreutils.
99891         * modules/raise, modules/readtokens0, modules/utimens:
99892         * modules/utimecmp, module/xnanosleep: New files.
99893         * modules/strftime: Add lib/strftime.h.
99894         Change include from <time.h> to "strftime.h".
99895         * modules/yesno: Add lib/yesno.h.
99896         * modules/backupfile: Remove lib/addext.c.
99897         * modules/euidaccess: Add stat-macros.h.
99898         * modules/canonicalize, modules/euidaccess,
99899         modules/filemode, modules/lchown, modules/makepath,
99900         modules/rmdir, modules/stat: Likewise.
99902 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99904         Merge from tar.
99905         * lib/argp-help.c (make_hol, hol_append): Don't assume that
99906         SIZE_MAX is a valid preprocessor constant.
99907         (__argp_basename): Change from "#ifndef _LIBC"
99908         to "#ifndef __argp_short_program_name", so that
99909         we don't compile these functions for tar.
99911         More merges from coreutils.
99912         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
99913         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
99914         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
99915         * lib/addext.c: Remove; no longer needed.
99916         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
99917         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
99918         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
99919         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
99920         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
99921         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
99922         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
99923         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
99924         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
99925         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
99926         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
99927         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
99928         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
99929         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
99930         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
99931         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
99932         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
99933         Import changes from coreutils.
99935 2004-08-05  Simon Josefsson  <jas@extundo.com>
99937         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
99939 2004-08-05  Simon Josefsson  <jas@extundo.com>
99941         * m4/getsubopt.m4: New file.
99943 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
99945         Merge from coreutils.
99947         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
99948         * m4/getcwd-path-max.m4: New files.
99950         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
99951         FILESYSTEM_PREFIX_LEN ->
99952         FILE_SYSTEM_PREFIX_LEN.
99953         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
99954         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
99955         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
99956         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
99958         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
99959         prerequisite modules now handle the DOS stuff.
99960         Don't check for unistd.h.
99962 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
99964         Merge from coreutils.
99966         * lib/.gdb-history: Remove; this doesn't belong here.
99968         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
99969         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
99970         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
99971         * lib/getcwd.c: New files.
99973         * lib/dirname.h: Include <stdbool.h>.
99974         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
99975         for consistency with POSIX terminology.  All uses changed.
99976         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
99977         (strip_trailing_slashes): Use bool for booleans.
99978         * lib/stripslash.c (strip_trailing_slashes): Likewise.
99980         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
99981         sometimes returns a positive errno value even when it succeeds.
99982         (print_errno_message) [!LIBC]: Fall back on strerror if
99983         __strerror_r fails.
99985         * lib/path-concat.c (mempcpy): Don't define if a system header defines
99986         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
99987         (longest_relative_suffix): New function.
99988         (path_concat): Use it.  Assume first argument is not NULL.
99989         Port to DOS.  Omit redundant separators.
99990         Report an error instead of returning NULL.
99991         Use mempcpy instead of memcpy.
99992         (xpath_concat): Remove: not declared or used.
99994         * lib/same.h: Include <stdbool.h>
99995         (same_name): Return bool, not int.
99996         * lib/same.c (same_name): Likewise.
99997         (errno): Don't declare; we assume C89 or better now.
99999         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
100000         if not already defined.
100002         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
100003         * lib/dup-safer.c (errno): Likewise.
100005 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
100007         Merge from coreutils.
100008         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
100009         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
100010         * modules/path-concat: Don't depend on strdup.
100012 2004-08-03  Simon Josefsson  <jas@extundo.com>
100014         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
100015         * lib/progname.h: Don't include stdbool.h.
100017 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
100019         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
100020         * MODULES.html.sh (func_all_modules): Remove fatal.
100022 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
100024         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
100026 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
100028         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
100029         working.
100031 2004-08-02  Simon Josefsson  <jas@extundo.com>
100033         * lib/getsubopt.h: New file, with comments from Bruno Haible.
100034         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
100035         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
100037 2004-08-01  Simon Josefsson  <jas@extundo.com>
100039         * lib/xgetdomainname.c: Include stdlib.h, for free().
100041 2004-07-19  Bruno Haible  <bruno@clisp.org>
100043         * MODULES.html.sh (func_all_modules): Add dummy.
100045 2004-07-16  Simon Josefsson  <jas@extundo.com>
100047         * modules/dummy: New file.
100049 2004-07-16  Simon Josefsson  <jas@extundo.com>
100051         * lib/dummy.c: New file.
100053 2004-07-16  Bruno Haible  <bruno@clisp.org>
100055         * lib/backupfile.h: Add extern "C" for C++.
100056         * lib/closeout.h: Likewise.
100057         * lib/copy-file.h: Likewise.
100058         * lib/findprog.h: Likewise.
100059         * lib/full-write.h: Likewise.
100060         * lib/pathname.h: Likewise.
100061         * lib/progname.h: Likewise.
100062         * lib/stpcpy.h: Likewise.
100063         * lib/stpncpy.h: Likewise.
100064         * lib/strcase.h: Likewise.
100065         * lib/strstr.h: Likewise.
100066         * lib/xalloc.h: Likewise.
100068         * lib/mbswidth.h: Add extern "C" for C++.
100069         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
100071 2004-07-13  Robert Millan  <robertmh@gnu.org>
100073         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
100075 2004-07-09  Simon Josefsson  <jas@extundo.com>
100077         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
100078         failed without this.)
100080 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
100082         * modules/chown (Files): Add lib/fchown-stub.c, since
100083         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
100085 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
100087         * lib/fchown-stub.c: New file.
100089 2004-06-24  Jim Meyering  <jim@meyering.net>
100091         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
100093 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100095         * modules/argz: Omit "#include".
100097         * MODULES.html.sh (func_all_modules): Add calloc, to match
100098         2004-06-01 addition of calloc module.
100100 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100102         * m4/argz.m4: New file, which is autoupdated from libtool.
100104 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100106         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
100107         libtool.
100109 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100111         * config/srclist-update: Don't insist on "USA." before the
100112         close-comment, as libtool omits the period and puts the */ on a
100113         separate line.
100114         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
100115         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
100117 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
100119         * modules/argz: New file.
100120         * MODULES.html.sh (func_all_modules): Add argz.
100122 2004-06-12  Jim Meyering  <jim@meyering.net>
100123         and  Paul Eggert  <eggert@cs.ucla.edu>
100125         * modules/hash (Files): Add lib/xalloc.h.
100126         * modules/pipe (Depends-on): Add wait-process.
100127         * modules/stat (Depends-on): Add xalloc.
100128         * modules/userspec (Files): Add lib/userspec.h.
100129         * modules/xstrto
100131         Upgrade from gettext-0.13.
100132         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
100133         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
100134         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
100136 2004-06-10  Jim Meyering  <jim@meyering.net>
100138         * lib/calloc.c: New file.
100140 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100142         * lib/getdate.y (yylex): Allow space between sign and number.
100143         Problem reported by Dan Jacobson.
100145 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
100147         Merge from coreutils CVS.
100149         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
100150         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
100151         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
100152         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
100153         xstrtol.m4: Fix copyright date and/or serial number.
100155         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
100156         See if we need an fchown replacement.
100157         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
100158         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
100159         and use the replacement function if we detect either defect.
100161         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
100162         gl_UTIMECMP.
100164 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
100165         and  Jim Meyering  <jim@meyering.net>
100167         Merge from coreutils CVS.
100169         * lib/stat-macros.h: New file, with contents from file-type.h
100170         and coreutils' system.h.
100171         * lib/file-type.c: Include "stat-macros.h".
100172         * lib/file-type.h (file_type): Move all macro definitions to new file,
100173         stat-macros.h.
100175         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
100176         Wrap old code with this conditional.
100177         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
100178         function that does not dereference symlinks.
100179         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
100181         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
100182         dependency problems.
100183         (xreadlink): Accept new arg SIZE, for efficiency.
100184         All decls and uses changed.
100185         * lib/xreadlink.h: Include <stddef.h>, for size_t.
100187         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
100188         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
100190         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
100191         sysexits.h.
100193 2004-06-01  Jim Meyering  <jim@meyering.net>
100195         * m4/calloc.m4: New file.
100197 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
100199         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
100200         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
100201         Also, fix a typo in a diagnostic.
100203 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
100205         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
100206         or AC_FUNC_REALLOC.
100208 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
100210         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
100211         macros to be defined.
100212         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
100213         the allocator returns NULL because the requested size is zero.
100215 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100217         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
100218         var.  Add comment explaining why libc still defines it.  This
100219         merges the following patch from glibc:
100220         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
100222 2004-05-20  Andreas Schwab  <schwab@suse.de>
100224         * m4/free.m4: Replace free if it not known to work, not the other
100225         way round.
100227 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100229         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
100230         present in glibc since revision 1.1 of this file.
100231         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
100232         obstack_alignment_mask, obstack_alloc, obstack_base,
100233         obstack_blank, obstack_blank_fast, obstack_chunk_size,
100234         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
100235         obstack_grow0, obstack_init, obstack_int_grow,
100236         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
100237         obstack_next_free, obstack_object_size, obstack_ptr_grow,
100238         obstack_ptr_grow_fast, obstack_room): Remove declarations of
100239         nonexistent functions.
100241 2004-05-18  Karl Berry  <karl@gnu.org>
100243         * config/srclist.txt: break link for vasnprintf.c.
100245 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100247         Port obstack to the AS/400, where pointers are 16 bytes wide and
100248         you cannot cast an integer to a valid pointer.  This patch is
100249         currently waiting to be integrated into glibc; see
100250         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
100252         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
100253         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
100254         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
100255         (struct obstack): temp member is now a union of a pointer and
100256         an integer, instead of an integer.  All integer uses changed.
100257         This does not affect the physical layout of struct obstack,
100258         except on hosts (like the AS/400) where the size or alignment of
100259         void * is greater than that of ptrdiff_t.
100260         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
100261         __STDC__)]: Store temporary in pointer member of union, not
100262         integer member.
100263         * lib/obstack.c: Include <stddef.h>, for offsetof.
100264         (struct fooalign): Remove; it doesn't need a name.
100265         (union fooround): Change double to long double, and add void *.
100266         (DEFAULT_ALIGNMENT): Use offsetof to compute.
100267         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
100268         not a macro.  Hence the values are always int; so remove all
100269         casts-to-int in uses.
100271 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100273         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
100274         we can get this patch merged into glibc.
100276 2004-05-17  Derek R. Price  <derek@ximbiot.com>
100277             Paul Eggert  <eggert@cs.ucla.edu>
100279         * m4/argp: Depend on alloca.
100281 2004-05-17  Derek R. Price  <derek@ximbiot.com>
100282             Paul Eggert  <eggert@cs.ucla.edu>
100284         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
100285         freecoding.
100287 2004-05-17  Bruno Haible  <bruno@clisp.org>
100289         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
100290         precision that consists of a '.' followed by an empty digit string.
100291         Patch by Tor Lillqvist <tml@iki.fi>.
100293 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100295         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
100296         for backward compatibility with older code.  We need our own
100297         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
100298         it under some other name, and our alloca.h will define it.
100300 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100301             Derek Price  <derek@ximbiot.com>
100303         * lib/alloca.c: Include <alloca.h>, to get our interface.
100304         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
100305         include <alloca.h> first.  Use C89 prototype for alloca; this
100306         requires including <stddef.h> for size_t.  Use extern "C" if C++.
100307         Use #elif for simplicity, since we can assume C89 now.
100308         Don't try to source the system alloca.h since it will not be found
100309         and to prevent recursively including its replacement.
100310         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
100311         * lib/regex.c: Likewise.
100313 2004-05-16  Derek Price  <derek@ximbiot.com>
100314             Paul Eggert  <eggert@cs.ucla.edu>
100316         getline cleanup.  This changes the getndelim2 API: both order of
100317         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
100318         no delimiter).
100320         * lib/getline.c: Don't include stddef.h or stdio.h, since our
100321         interface does that.
100322         (getline): Always use getdelim, so that we don't have two
100323         copies of this code.
100324         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
100325         if available.
100326         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
100327         (GETNDELIM2_MAXIMUM): New macro.
100328         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
100329         instead of the old practice of delim2==0.  All callers changed.
100330         Return -1 on overflow, instead of returning junk.
100331         Do not set *linesize unless allocation succeeds.
100332         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
100333         that we include sys/types.h.
100334         * lib/getnline.h: Likewise.
100335         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
100336         (getndelim2): Reorder arguments.
100337         * lib/getnline.c (getnline, getndelim):
100338         Don't discard the NMAX argument.
100339         (getnline): Invoke getndelim, to avoid code duplication.
100340         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
100341         of (size_t) -1 by callers of the getnline family.
100343 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100345         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
100346         Check for gettimeofday.
100347         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
100348         Check for settimeofday, stime.
100350 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100352         * lib/nanosleep.c (suspended): Change its type from int to
100353         sig_atomic_t volatile.
100354         (first_call): Make it private to rpl_nanosleep, and have it
100355         be zero initially as that's a bit faster.
100356         (my_usleep): Round up fractional times instead of truncating them,
100357         as this is the usual meaning for 'sleep'.
100359         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
100360         doesn't work.
100361         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
100362         (ENOSYS): Define if not defined.
100363         (settime): Fall back on stime if it exists and settimeofday fails.
100364         But don't bother with fallbacks if a method fails with errno == EPERM.
100366 2004-05-11  Jim Meyering  <jim@meyering.net>
100368         Prior to this change, the save_cwd caller required read access to the
100369         current directory on most systems (ones with the fchdir function).
100371         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
100372         fails, try write-only, and finally, resort to using xgetcwd.
100374 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
100376         * lib/obstack.c, obstack.h: Import changes from libc.
100378 2004-04-28  Bruno Haible  <bruno@clisp.org>
100380         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
100381         also implicitly appends .exe to executables.
100382         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
100383         accepts Windows pathnames.
100384         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
100385         Treat Cygwin like Windows, since it now accepts Windows pathnames.
100386         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
100387         Treat Cygwin like Windows, since it now accepts Windows pathnames.
100388         Reported by Derek Robert Price <derek@ximbiot.com>.
100390 2004-04-21  Karl Berry  <karl@gnu.org>
100392         * config/srclist.txt (localcharset.c): break sync.
100394 2004-04-20  Paul Eggert  <eggert@twinsun.com>
100396         * m4/host-os.m4: Add a copyright notice.
100398 2004-04-20  Jim Meyering  <jim@meyering.net>
100400         Change UTILS_ to gl_ in AC_DEFINE'd names.
100401         Change utils_- and jm_-prefixed variables, too.
100402         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
100403         UTILS_FUNC_MKDIR_TRAILING_SLASH.
100404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
100406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
100407         Don't emit trailing blanks.
100408         Also rename jm_-prefixed variables to have gl_ prefix.
100410         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
100411         Also rename jm_-prefixed variables to have gl_ prefix.
100413         * m4/jm-macros.m4: Reflect the renamings.
100414         * m4/prereq.m4: Likewise.
100416 2004-04-20  Jim Meyering  <jim@meyering.net>
100418         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
100419         memory.
100421 2004-04-20  Jim Meyering  <jim@meyering.net>
100422             Bruno Haible  <bruno@clisp.org>
100424         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
100425         memory when realloc fails.
100427 2004-04-19  Jim Meyering  <jim@meyering.net>
100429         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
100430         now that readutmp.c may call `free (0)'.
100432 2004-04-19  Bruno Haible  <bruno@clisp.org>
100434         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
100435         * m4/inttypes_h.m4: Likewise.
100436         * m4/stdint_h.m4: Likewise.
100437         * m4/intmax_t.m4: Likewise.
100438         * m4/uintmax_t.m4: Likewise.
100440 2004-04-18  Jim Meyering  <jim@meyering.net>
100442         * m4/prereq.m4: Don't forbid jm_ prefix.
100444         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
100445         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
100446         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
100447         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
100448         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
100449         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
100450         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
100451         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
100452         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
100453         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
100454         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
100455         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
100456         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
100457         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
100458         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
100459         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
100460         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
100461         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
100462         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
100464 2004-04-18  Jim Meyering  <jim@meyering.net>
100466         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
100467         failure, don't leak memory and do call END_UTMP_ENT.
100469 2004-04-16  Jim Meyering  <jim@meyering.net>
100471         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
100472         coreutils' stat program.
100473         (gl_PREREQ): Don't require jm_PREREQ_STAT.
100475 2004-04-11  Paul Eggert  <eggert@twinsun.com>
100477         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
100478         C89.
100479         (CHAR_BIT): Remove, since we assume C89.
100480         Include <stdint.h> if available, as per current Autoconf CVS advice.
100482 2004-03-31  Jim Meyering  <jim@meyering.net>
100484         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
100485         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
100486         * m4/xalloc.m4: Likewise.
100488 2004-03-30  Paul Eggert  <eggert@twinsun.com>
100490         Merge from coreutils.
100492         * m4/inttostr.m4: New file.
100493         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
100494         Require AM_STDBOOL_H and gl_TIMESPEC instead.
100495         Require gl_CLOCK_TIME.
100496         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
100498 2004-03-30  Paul Eggert  <eggert@twinsun.com>
100500         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
100501         not bool, to be more consistent with Unix conventions.
100502         Suggested by Bruno Haible.
100504         Merge from coreutils.
100506         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
100507         * lib/umaxtostr.c: New files.
100509         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
100510         the usual <time.h> dance.
100511         (get_date): Change signature to support fractional time stamps.
100512         All callers changed.
100513         * lib/getdate.y: Include "getdate.h" first, as we can now
100514         assume C89 and don't need to worry about 'const'.
100515         Similarly, include "unlocked-io.h" near start, not in middle.
100516         Include <limits.h>.
100517         (textint.value): Use long int rather than int.
100518         (textint.digits): Use size_t rather than int.
100519         (BILLION, LOG10_BILLION): New constants.
100520         (parser_control): New member rel_ns.  Members day_ordinal,
100521         time_zone, month, day, hour, minutes, rel_year, rel_month,
100522         rel_day, rel_hour, rel_minutes, rel_seconds
100523         are now long int, not int.  Member seconds is now struct timespec,
100524         not int.  New member timespec_seen.  Members dates_seen, days_seen,
100525         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
100526         not int.
100527         (%union.intval): Now long int, not int.
100528         New member timespec.
100529         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
100530         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
100531         (spec): Now is a timespec or an item list.
100532         (timespec, items): New nonterminals.
100533         (time, rel, relunit, number, get_date):
100534         Add support for fractional seconds.
100535         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
100536         (gmtime, localtime, mktime): Remove decls; not needed with C89.
100537         (to_hour): First arg is now long int, not int.
100538         (to_year): Returns long int, not int.
100539         Don't treat year -70 like 70.
100540         (tm_diff): Returns long int, not int.
100541         (lookup_word): Use bool instead of int when appropriate.
100542         (yylex): Use size_t for count, not int.
100543         Detect overflow when parsing large integer constants.
100544         Add support for fractions.
100545         (get_date): Make pointers 'const' if possible.
100546         Use more-portable code to detect integer overflow.
100547         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
100548         Don't use ctime; it's not reliable if the year has >4 digits.
100550         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
100551         This is for compatibility with BSD.
100553         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
100554         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
100555         From coreutils' system.h.
100557         * lib/userspec.c: Don't include "posixver.h".
100558         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
100559         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
100560         compatible extension.  Simplify code by removing a boolean int
100561         that was always nonzero if a string was nonnull.
100563 2004-03-30  Jim Meyering  <jim@meyering.net>
100565         Merge from coreutils.
100567         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
100568         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
100569         on some systems one must include <grp.h> before it.
100570         Reported by Christian Krackowizer.
100572 2004-03-30  Jim Meyering  <jim@meyering.net>
100574         Merge from coreutils.
100576         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
100578         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
100579         an empty input stream.
100581         * lib/readtokens.c: Include <stdbool.h>.
100582         (readtoken): Use `size_t' rather than int/long.
100583         All callers adjusted.
100584         Use `bool' rather than `int' where appropriate.
100585         Use memset rather than an explicit loop.
100586         Use x2nrealloc rather than xrealloc.
100587         Allow the use of `\0' as a delimiter.
100588         (readtokens): Likewise.
100589         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
100591 2004-03-30  Jim Meyering  <jim@meyering.net>
100593         * m4/realloc.m4: Remove file, since now it does no more than
100594         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
100595         the `configure.ac' section of module/realloc.
100596         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
100598 2004-03-30  Bruno Haible  <bruno@clisp.org>
100600         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
100601         nonnull.
100603 2004-03-29  Paul Eggert  <eggert@twinsun.com>
100605         Merge changes to getloadavg.c from coreutils and Emacs.
100607         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
100608         Define to an expression, not to the empty string.
100609         Include cloexec.h and xalloc.h.
100610         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
100611         Use set_cloexec_flag rather than rolling our own.
100612         * lib/cloexec.c, lib/cloexec.h: New files.
100614 2004-03-29  Paul Eggert  <eggert@twinsun.com>
100616         * m4/cloexec.m4: New file.
100618 2004-03-18  Paul Eggert  <eggert@twinsun.com>
100620         * lib/getopt.h: Sync with libc CVS.
100622 2004-03-18  Paul Eggert  <eggert@twinsun.com>
100623             Bruno Haible  <bruno@clisp.org>
100625         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
100626         mbswidth.
100628 2004-03-18  Paul Eggert  <eggert@twinsun.com>
100629             Bruno Haible  <bruno@clisp.org>
100631         * lib/mbswidth.h: Include <wchar.h> only if
100632         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
100633         <wchar.h>.
100634         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
100636 2004-03-09  Paul Eggert  <eggert@twinsun.com>
100638         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
100639         Sync with libc CVS.
100640         * lib/getopt_int.h: New file, also synced from libc.
100642 2004-03-09  Paul Eggert  <eggert@twinsun.com>
100644         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
100645         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
100646         Bring back getopt.c, getopt.h, getopt1.c.
100648 2004-03-07  Paul Eggert  <eggert@twinsun.com>
100650         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
100651         All uses changed.  Check for sa_sigaction member; this fixes
100652         a bug first reported by Jason Andrade in
100653         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
100655 2004-03-07  Paul Eggert  <eggert@twinsun.com>
100657         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
100658         '#if' expressions.  Unlike the code it replaces, it does not
100659         depend on (defined _SC_PAGESIZE).  However, it does depend on
100660         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
100661         first reported by Jason Andrade in
100662         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
100664 2004-02-25  Simon Josefsson  <jas@extundo.com>
100666         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
100668 2004-02-25  Simon Josefsson  <jas@extundo.com>
100670         * lib/strdup.h: New file.
100671         * lib/strdup.c: Include it.
100672         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
100673         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
100675 2004-02-23  Karl Berry  <karl@gnu.org>
100677         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
100678         (from fencepost.gnu.org:/gd/gnuorg).
100680 2004-02-23  Karl Berry  <karl@gnu.org>
100682         * config/srclistvars.sh (GNUORG) [karl]: redefine.
100683         * config/srclist.txt: add maintain/standards documents.
100685 2004-02-18  Bruno Haible  <bruno@clisp.org>
100687         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
100688         Reported by Derek Robert Price <derek@ximbiot.com>.
100690 2004-02-16  Karl Berry  <karl@gnu.org>
100692         * config/mkinstalldirs, install-sh: update from automake.
100694 2004-02-06  Karl Berry  <karl@gnu.org>
100696         * m4/po.m4: update from gettext 0.14.1.
100698 2004-02-06  Karl Berry  <karl@gnu.org>
100700         * lib/config.charset: update from gettext 0.14.1.
100702 2004-02-05  Paul Eggert  <eggert@twinsun.com>
100704         Add comments and code, prompted by suggestions from Bruno Haible
100705         for sh-quote.
100706         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
100707         describing the enum quoting_style values.
100708         * lib/quotearg.c (quotearg_alloc): New function.
100709         (quotearg_buffer_restyled): Treat lone { and } as special.
100710         Treat = as special.  Work around bug with older shells
100711         that "see" a '\' that is really the 2nd byte of a multibyte char.
100712         Quote empty string with shell_quoting_style.
100714 2004-02-03  Bruno Haible  <bruno@clisp.org>
100716         * m4/pipe.m4: New file, from GNU gettext.
100718 2004-02-03  Bruno Haible  <bruno@clisp.org>
100720         * lib/pipe.h: New file, from GNU gettext.
100721         * lib/pipe.c: New file, from GNU gettext.
100723 2004-01-27  Bruno Haible  <bruno@clisp.org>
100725         * m4/execute.m4: New file, from GNU gettext.
100727 2004-01-27  Bruno Haible  <bruno@clisp.org>
100729         * lib/execute.h: New file, from GNU gettext.
100730         * lib/execute.c: New file, from GNU gettext.
100731         * lib/w32spawn.h: New file, from GNU gettext.
100733 2004-01-24  Paul Eggert  <eggert@twinsun.com>
100735         Merge from diffutils.
100737         * lib/file-type.c (file_type): Add typed memory objects.
100738         * lib/file-type.h (S_TYPEISTMO): New macro.
100740         * lib/c-stack.h (c_stack_action): Remove argv argument.
100741         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
100742         (die): Don't calculate message unless segv_action returns.
100743         (get_stack_location, min_address_from_argv, max_address_from_argv,
100744         volatile stack_base, volatile_stack_size): Remove.
100745         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
100746         that every segmentation violation is a stack overflow.  (Ouch!)
100747         See Debian bug 136249 (still outstanding) for more info about why
100748         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
100750 2004-01-24  Paul Eggert  <eggert@twinsun.com>
100752         Exit-status fix from coreutils.
100754         Use exit_failure consistently in place of EXIT_FAILURE,
100755         so that program exit statuses are consistent on failure.
100757         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
100758         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
100759         * lib/argmatch.h: Comment fix to match the above.
100760         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
100761         Now a macro referring to exit_failure, instead of a separate
100762         variable.  Include "exitfail.h" to get it.
100763         * lib/xstrtol.h: Include "exitfail.h".
100764         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
100766         * lib/long-options.c (parse_long_options): Use prototype
100767         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
100768         for clarity.
100770 2004-01-21  Jim Meyering  <jim@meyering.net>
100772         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
100773         so as not to conflict with a different-sized __mktime_internal
100774         function in GNU libc.
100775         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
100776         Problem building statically-linked `ls' reported by Michael Brunnbauer.
100778 2004-01-20  Karl Berry  <karl@gnu.org>
100780         * config/config.guess: update from config.
100782         * config/srclistvars.sh: GNUWWWLICENSES for karl.
100784 2004-01-20  Bruno Haible  <bruno@clisp.org>
100786         Safer stack allocation.
100787         * lib/setenv.c: Include allocsa.h.
100788         (alloca): Remove fallback definition.
100789         (freea): Remove macro.
100790         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
100791         instead of freea.
100793 2004-01-20  Bruno Haible  <bruno@clisp.org>
100795         * m4/eealloc.m4: New file, from GNU gettext.
100797 2004-01-20  Bruno Haible  <bruno@clisp.org>
100799         * m4/allocsa.m4: New file, from GNU gettext.
100801 2004-01-20  Bruno Haible  <bruno@clisp.org>
100803         * lib/xallocsa.h: New file, from GNU gettext.
100804         * lib/xallocsa.c: New file, from GNU gettext.
100806 2004-01-20  Bruno Haible  <bruno@clisp.org>
100808         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
100810 2004-01-20  Bruno Haible  <bruno@clisp.org>
100812         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
100813         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
100814         specially.
100816 2004-01-20  Bruno Haible  <bruno@clisp.org>
100818         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
100819         patch.
100821 2004-01-20  Bruno Haible  <bruno@clisp.org>
100823         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
100825 2004-01-20  Bruno Haible  <bruno@clisp.org>
100827         * lib/eealloc.h: New file.
100829 2004-01-20  Bruno Haible  <bruno@clisp.org>
100831         * lib/binary-io.h: Avoid warnings on Cygwin.
100833 2004-01-20  Bruno Haible  <bruno@clisp.org>
100835         * lib/allocsa.h: New file, from GNU gettext.
100836         * lib/allocsa.c: New file, from GNU gettext.
100838 2004-01-18  Karl Berry  <karl@gnu.org>
100840         * doc/gpl.texi, doc/lgpl.texi: new files.
100842 2004-01-18  Karl Berry  <karl@gnu.org>
100844         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
100845         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
100847 2004-01-15  Paul Eggert  <eggert@twinsun.com>
100849         Merge from coreutils.
100851         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
100852         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
100853         (gl_DEFAULT_POSIX2_VERSION): Move
100854         the documentation from 'configure' into 'config.hin',
100855         so that 'configure --help' isn't burdened by it and
100856         we don't have to worry about its formatting there.
100857         Reword the documentation so that it's more succinct
100858         and can be run together into a single paragraph.
100859         * m4/same.m4 (gl_SAME): Check for pathconf.
100861 2004-01-15  Paul Eggert  <eggert@twinsun.com>
100863         Merge from coreutils.
100865         * lib/posixver.c: Include posixver.h.
100867         * lib/same.c: Include <stdbool.h>, <limits.h>.
100868         (_POSIX_NAME_MAX): Define if not defined.
100869         (MIN): New macro.
100870         (same_name): If file names are silently truncated, report
100871         that the file names are the same if they are the same after
100872         the silent truncation.
100874         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
100875         conversion function.
100876         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
100877         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
100878         longer needed.
100880 2004-01-15  Jim Meyering  <jim@meyering.net>
100882         Merge from coreutils.
100884         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
100885         if no library is required.
100886         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
100887         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
100888         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
100889         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
100890         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
100891         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
100892         value, $ac_cv_search_crypt, if it's "none required".
100893         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
100894         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
100895         not gl_FUNC_GETLOADAVG.
100896         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
100897         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
100899 2004-01-15  Jim Meyering  <jim@meyering.net>
100901         Merge from coreutils.
100903         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
100904         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
100905         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
100907         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
100908         optional configure-time default.
100910         * lib/version-etc.c (version_etc_copyright): Update copyright date.
100912         * lib/xreadlink.c (xreadlink): Correct outdated comment.
100914 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
100916         Merge from coreutils.
100918         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
100919         value, $ac_cv_search_nanosleep, if it's "none required".
100921 2004-01-14  Paul Eggert  <eggert@twinsun.com>
100923         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
100924         with like-named macro in fnmatch.c.
100925         (EXT): Use an internal constant instead.
100927         Merge fnmatch patches from glibc.
100928         * lib/fnmatch.c (mbsinit): Remove define.
100929         Add libc_hidden_ver (__fnmatch, fnmatch).
100930         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
100931         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
100933 2004-01-14  Karl Berry  <karl@gnu.org>
100935         * config/install-sh: update from automake.
100937 2004-01-13  Karl Berry  <karl@gnu.org>
100939         * config/install-sh: update from automake.
100941 2004-01-09  Karl Berry  <karl@gnu.org>
100943         * config/install-sh: update from automake.
100945 2004-01-05  Karl Berry  <karl@gnu.org>
100947         * config/config.{sub,guess}: update from config.
100949 2003-12-31  Karl Berry  <karl@gnu.org>
100951         * config/depcomp: update from automake.
100953 2003-12-14  Karl Berry  <karl@gnu.org>
100955         * lib/config.charset: update from gettext-runtime.
100957 2003-12-03  Paul Eggert  <eggert@twinsun.com>
100959         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
100960         Bug reported by Alfred M. Szmidt.
100962 2003-12-03  Bruno Haible  <bruno@clisp.org>
100964         * m4/gettext.m4: Upgrade from gettext-0.13.
100965         * m4/po.m4: Upgrade from gettext-0.13.
100966         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
100967         * m4/intmax.m4: New file, from gettext-0.13.
100968         * m4/printf-posix.m4: New file, from gettext-0.13.
100970 2003-11-29  Karl Berry  <karl@gnu.org>
100972         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
100974 2003-11-25  Paul Eggert  <eggert@twinsun.com>
100975             Bruno Haible  <bruno@clisp.org>
100977         * lib/printf-parse.h: Don't include sys/types.h.
100978         (ARG_NONE): New macro.
100979         (char_directive): Change type of *arg_index fields to size_t.
100980         * lib/printf-parse.c: Don't include sys/types.h.
100981         (SSIZE_MAX): Remove macro.
100982         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
100983         Remove unnecessary overflow check.
100984         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
100985         fields.
100987 2003-11-25  Bruno Haible  <bruno@clisp.org>
100989         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
100991 2003-11-25  Bruno Haible  <bruno@clisp.org>
100993         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
100994         gt_TYPE_SSIZE_T.
100996 2003-11-24  Paul Eggert  <eggert@twinsun.com>
100998         * modules/alloca: Remove dependency on xalloc.
101000 2003-11-24  Paul Eggert  <eggert@twinsun.com>
101002         * lib/alloca.c: Remove dependency on xalloc module.
101003         (xalloc_die): Remove.
101004         (memory_full) [!defined emacs]: New macro.
101005         [!defined emacs]: Don't include xalloc.h.
101006         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
101007         address arithmetic overflows.  Change datatypes a bit to avoid
101008         unnecessary casts.
101010 2003-11-22  Jim Meyering  <jim@meyering.net>
101012         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
101013         s/size/size_t/.
101015 2003-11-21  Karl Berry  <karl@gnu.org>
101017         * config/config.{sub,guess}: update from config.
101019 2003-11-18  Karl Berry  <karl@gnu.org>
101021         * config/config.{sub,guess}: update from config.
101023         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
101025 2003-11-17  Paul Eggert  <eggert@twinsun.com>
101027         * README: Mention that S+T cannot overflow if S is the size of
101028         an existing object and T is sufficiently small.
101030 2003-11-17  Jim Meyering  <jim@meyering.net>
101032         On systems without utime and without a utimes function capable of
101033         dealing with a NULL struct utimbuf* argument, this utime replacement
101034         could -- in unusual circumstances -- leak a file descriptor.
101035         * lib/utime.c: Include <unistd.h> and <errno.h>.
101036         (utime_null): Be sure to close `fd' and to preserve errno.
101037         Reported by Geoff Collyer via Arnold Robbins.
101039 2003-11-17  Bruno Haible  <bruno@clisp.org>
101041         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
101042         (Depends-on): Add xsize.
101044 2003-11-17  Bruno Haible  <bruno@clisp.org>
101046         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
101048 2003-11-17  Bruno Haible  <bruno@clisp.org>
101050         * lib/vasnprintf.c (alloca): Remove fallback definition.
101051         (freea): Remove definition.
101052         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
101053         Reported by Paul Eggert.
101055 2003-11-16  Paul Eggert  <eggert@twinsun.com>
101056             Bruno Haible  <bruno@clisp.org>
101058         Protect against address arithmetic overflow.
101059         * lib/printf-args.h: Include stddef.h.
101060         (arguments): Change type of field 'count' to size_t.
101061         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
101062         'unsigned int' where appropriate.
101063         * lib/printf-parse.h: Include sys/types.h.
101064         (char_directive): Change type of *arg_index fields to ssize_t.
101065         (char_directives): Change type of fields 'count', max_*_length to
101066         size_t.
101067         * lib/printf-parse.c: Include sys/types.h and xsize.h.
101068         (SSIZE_MAX): Define fallback value.
101069         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
101070         instead of 'int' where appropriate. Check a_allocated, d_allocated
101071         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
101072         * lib/vasnprintf.c: Include xsize.h.
101073         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
101074         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
101075         overflow. Avoid wraparound when converting a width or precision from
101076         decimal to binary.
101078 2003-11-16  Bruno Haible  <bruno@clisp.org>
101080         Update from GNU gettext.
101081         * lib/printf-parse.c: Generalize to it can be compiled for wide
101082         strings.
101083         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
101084         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
101085         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
101086         SNPRINTF): New macros.
101087         Don't include <alloca.h> if the file is used inside libintl.
101088         (local_wcslen): New function, for Solaris 2.5.1.
101089         (VASNPRINTF): Use it instead of wcslen.
101091 2003-11-16  Bruno Haible  <bruno@clisp.org>
101093         * lib/xsize.h (xmax): New function.
101094         (xsum, xsum3, xsum4): Declare as "pure" functions.
101096 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101098         * modules/xalloc (Files): Undo latest change, since xalloc.h
101099         no longer needs SIZE_MAX or PTRDIFF_MAX.
101101 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101103         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
101104         gl_PTRDIFF_MAX.
101106 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101108         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
101109         "return", to pacify some unknown compiler.  Problem reported
101110         by Joerg Schilling.
101112 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101114         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
101115         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
101116         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
101117         heuristic is just as accurate as far as we know, and it removes a
101118         dependency on size_max.m4 and ptrdiff_max.m4.
101120 2003-11-11  Bruno Haible  <bruno@clisp.org>
101122         * modules/xsize (Files): Add m4/size_max.m4.
101123         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
101125 2003-11-11  Bruno Haible  <bruno@clisp.org>
101127         * m4/size_max.m4: New file.
101128         * m4/ptrdiff_max.m4: New file.
101129         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
101130         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
101131         (gl_XALLOC): Invoke it.
101133 2003-11-11  Bruno Haible  <bruno@clisp.org>
101135         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
101136         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
101137         defined.
101139 2003-11-10  Paul Eggert  <eggert@twinsun.com>
101141         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
101142         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
101143         rejected some allocations of exactly SIZE_MAX - 2 bytes.
101144         From Bruno Haible.
101145         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
101146         not (size_t) -1, since it's defined here.
101148 2003-11-09  Karl Berry  <karl@gnu.org>
101150         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
101152 2003-11-06  Paul Eggert  <eggert@twinsun.com>
101154         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
101155         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
101156         Reject sizes of exactly SIZE_MAX bytes.
101157         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
101158         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
101160 2003-11-05  Bruno Haible  <bruno@clisp.org>
101162         * lib/xsize.h: Include limits.h, to avoid a possible collision with
101163         SIZE_MAX defined in <limits.h> on Solaris.
101165 2003-11-04  Jim Meyering  <jim@meyering.net>
101167         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
101168         variable names, rather than @VAR@.
101169         * modules/poll: Likewise.
101171 2003-11-04  Bruno Haible  <bruno@clisp.org>
101173         * modules/xsize: New file.
101174         * modules/linebreak: Depend on xsize.
101175         * MODULES.html.sh (func_all_modules): Add xsize.
101177 2003-11-04  Bruno Haible  <bruno@clisp.org>
101179         * m4/xsize.m4: New file.
101181 2003-11-04  Bruno Haible  <bruno@clisp.org>
101183         * lib/xsize.h: New file.
101184         * lib/linebreak.c: Include xsize.h.
101185         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
101186         argument for overflow.
101187         Suggested by Paul Eggert.
101189 2003-11-03  Karl Berry  <karl@gnu.org>
101191         * config/config.{guess,sub}: update from config.
101193 2003-11-03  Jim Meyering  <jim@meyering.net>
101195         * modules/userspec (lib_SOURCES): Add userspec.h.
101196         (Include): Add "userspec.h".
101197         Improve description.
101199 2003-11-03  Jim Meyering  <jim@meyering.net>
101201         * lib/userspec.c: Include "userspec.h".
101202         * lib/userspec.h: New file.
101204 2003-11-03  Bruno Haible  <bruno@clisp.org>
101206         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
101208 2003-11-03  Bruno Haible  <bruno@clisp.org>
101210         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
101211         available, to avoid (extremely rare) race condition.
101212         Suggested by Paul Eggert.
101214 2003-11-02  Karl Berry  <karl@gnu.org>
101216         * config/srclist.txt (vasprintf.c): sync broken, sigh.
101218 2003-10-31  Paul Eggert  <eggert@twinsun.com>
101220         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
101221         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
101222         (read_filesystem_list): Set and use me_type_malloced.
101223         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
101224         whatever the type happens to be), for brevity and consistency.
101225         Check for size calculation overflow on Alphas running OSF/1.
101227 2003-10-31  Jim Meyering  <jim@meyering.net>
101229         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
101231         * lib/linebuffer.c: Include <string.h> for declaration of memset.
101233 2003-10-30  Paul Eggert  <eggert@twinsun.com>
101234             Bruno Haible  <bruno@clisp.org>
101236         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
101237         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
101239 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
101241         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
101242         netbsd*-gnu*.  Suggested by Robert Millan.
101244 2003-10-29  Paul Eggert  <eggert@twinsun.com>
101246         * modules/group-member: Depend on stdbool.
101248 2003-10-29  Paul Eggert  <eggert@twinsun.com>
101250         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
101252 2003-10-29  Paul Eggert  <eggert@twinsun.com>
101254         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
101255         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
101256         after the 'gnu' in these cases.  This fixes some bugs in the
101257         previous change, and is based on suggestions by Robert Millan.
101259 2003-10-29  Paul Eggert  <eggert@twinsun.com>
101261         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
101262         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
101263         no longer needed.
101264         * lib/quotearg.c (quotearg_n_options): Use it.
101265         * lib/group-member.c: Include <stdbool.h>.
101266         (free_group_info): Arg is now const *; don't free arg.
101267         (get_group_info): Now returns bool and accepts struct group_info *,
101268         rather than returning a malloc'ed struct group_info *.
101269         All uses changed.  Check for overflow in internal size calculation.
101271         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
101272         rather than xmalloc/xrealloc.
101273         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
101274         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
101275         conformance bug: the old code used a pointer after freeing the
101276         storage that it addressed.
101277         * lib/hash.c (hash_initialize): Simplify the code by using
101278         xalloc_oversized rather than doing it by hand.
101279         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
101280         the buffer preserved.  Use free and xmalloc instead.
101281         * lib/quotearg.c (quotearg_n_options): Likewise.
101282         Use a simpler test for size overflow.  Don't use xalloc_oversized
101283         because unsigned int might be wider than size_t (!); this suggests
101284         that we should switch from unsigned int to size_t for slot numbers.
101286 2003-10-28  Paul Eggert  <eggert@twinsun.com>
101288         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
101289         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
101290         NetBSD kernels.  Requested by Richard Stallman.
101292 2003-10-27  Paul Eggert  <eggert@twinsun.com>
101294         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
101295         to allocate the returned structure.  Do not allocate a subarray,
101296         as x2nrealloc will do that.
101297         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
101298         instead of xnrealloc.
101299         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
101301 2003-10-27  Bruno Haible  <bruno@clisp.org>
101303         * lib/stdbool_.h: Better support for BeOS.
101305 2003-10-26  Paul Eggert  <eggert@twinsun.com>
101307         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
101308         now uses inline.
101310 2003-10-26  Paul Eggert  <eggert@twinsun.com>
101312         * lib/xalloc.h (xalloc_oversized): New static inline function, for
101313         callers that want to do their own size-overflow checking.  Include
101314         <stdbool.h>, since xalloc_oversized returns bool.
101315         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
101316         to use xalloc_oversized.
101318         Add two functions x2realloc, x2nrealloc, for programs that grow
101319         arrays dynamically by doubling their sizes.
101320         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
101321         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
101322         New functions.
101324         Port to C99 semantics for 'inline' of external functions.
101325         Bug reported by Bruno Haible.
101326         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
101327         with the old contents of xnmalloc.
101328         (xnmalloc, xmalloc): Use it.
101329         (xnrealloc_inline): New static inline function,
101330         with the old contents of xnrealloc.
101331         (xnrealloc, xrealloc): Use it.
101333         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
101334         that.
101336 2003-10-26  Karl Berry  <karl@gnu.org>
101338         * config/srclist.txt (COPYING.DOC): no longer available from
101339         /gd/gnuorg; don't know where the ultimate source is.
101341 2003-10-25  Paul Eggert  <eggert@twinsun.com>
101343         Fix several address-calculation bugs in the hash modules,
101344         plus some minor code cleanup.
101346         * lib/hash.h: Include <stdbool.h>, for bool.
101347         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
101348         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
101349         hash_get_n_entries, hash_get_max_bucket_length,
101350         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
101351         hash_rehash): Use size_t rather than unsigned.
101352         * lib/hash.c (struct hash_table, hash_get_n_buckets,
101353         hash_get_n_buckets_used, hash_get_n_entries,
101354         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
101355         hash_get_entries, hash_do_for_each, hash_string, is_prime,
101356         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
101357         Likewise.
101358         (SIZE_MAX): Define if not defined.
101359         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
101360         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
101361         hash_print):
101362         Use const * when possible.
101363         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
101364         (check_tuning): Fix bug: if tuning parameters were very close to
101365         0 or 1, rounding errors could have caused subscript violations.
101366         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
101367         (hash_initialize): Add 'fail:' label
101368         to free table and return NULL, and use it to simplify code.
101369         Use calloc rather than clearing the storage ourself.
101370         (hash_initialize, hash_rehash): Check for arithmetic overflow in
101371         buffer size calculations.
101372         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
101373         Include <stddef.h>, for size_t.
101374         * lib/hash-pjw.c (hash_pjw): Likewise.
101375         Switch to method described by Bruno Haible.
101376         Include <limits.h>, for CHAR_BIT.
101377         (SIZE_BITS): New macro.
101379 2003-10-23  Paul Eggert  <eggert@twinsun.com>
101381         * m4/getline.m4 (AM_FUNC_GETLINE):
101382         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
101383         hosts.  Problem reported by Derek Robert Price in
101384         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
101385         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
101386         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
101388 2003-10-21  Paul Eggert  <eggert@twinsun.com>
101390         * lib/getndelim2.c (getndelim2): When size calculation overflows,
101391         ceiling the allocation at NMAX bytes rather than silently
101392         discarding input bytes before NMAX is reached.  This makes
101393         a difference only if NMAX exceeds SIZE_MAX / 2.
101395         * lib/obstack.c: Merge from glibc.
101396         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
101397         Add libc_hidden_def (_obstack_newchunk).
101398         (_obstack_free) [! defined _LIBC]: Remove.
101399         [defined _LIBC]: Make a strong alias from obstack_free, rather than
101400         a clone of the function body.
101401         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
101402         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
101404         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
101405         glibc.
101406         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
101407         arg to memcpy.
101409         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
101410         (obstack_ptr_grow_fast, obstack_int_grow_fast):
101411         Don't use lvalue casts, as GCC plans to remove support for them
101412         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
101413         was also present in the non-GCC version, indicating that this
101414         code had always been buggy and had never been widely used.
101415         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
101416         Use the fast variant of each macro, rather than copying the
101417         definiens of the fast variant; that way, we'll be more likely to
101418         catch future bugs in the fast variants.
101420 2003-10-20  Bruno Haible  <bruno@clisp.org>
101422         * modules/wait-process: New file.
101423         * MODULES.html.sh (func_all_modules): Add wait-process.
101425 2003-10-20  Bruno Haible  <bruno@clisp.org>
101427         * m4/wait-process.m4: New file.
101429 2003-10-20  Bruno Haible  <bruno@clisp.org>
101431         * lib/wait-process.h: New file, from GNU gettext.
101432         * lib/wait-process.c: New file, from GNU gettext.
101434 2003-10-19  Jim Meyering  <jim@meyering.net>
101436         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
101437         HPUX 10.20.
101439 2003-10-18  Karl Berry  <karl@gnu.org>
101441         * config/config.guess: update from config.
101443 2003-10-16  Paul Eggert  <eggert@twinsun.com>
101445         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
101446         (getgroups): First arg is int, not size_t.
101447         Don't let 'free' mangle errno.
101449 2003-10-16  Paul Eggert  <eggert@twinsun.com>
101451         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
101453 2003-10-16  Karl Berry  <karl@gnu.org>
101455         * config/config.{guess,sub}: update from config.
101457 2003-10-16  Jim Meyering  <jim@meyering.net>
101459         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
101460         memcpy.
101462 2003-10-15  Paul Eggert  <eggert@twinsun.com>
101464         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
101465         (SIZE_MAX): Remove.
101466         (new_exclude, add_exclude_file): Initial size no longer needs to
101467         be a power of 2.
101468         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
101469         our own address arithmetic overflow checking.
101471         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
101472         (fnmatch): Do not alloca more than 2000 wide characters;
101473         instead, use malloc for large buffers.
101474         Check for address arithmetic overflow, and return -1
101475         with errno set to ENOMEM in that case.
101476         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
101477         (NEW_PATTERN): Do not alloca more than 8000 bytes;
101478         instead, return -1.  Check for address arithmetic overflow.
101480 2003-10-14  Paul Eggert  <eggert@twinsun.com>
101482         Handle invalid suffixes and overflow independently, so that
101483         callers can treat them independently as needed.  Fix some bugs in
101484         suffix handling, e.g., "100k@" was not diagnosed as an invalid
101485         suffix for a human-readable blocksize.  The major caller-visible
101486         change is the addition of a new
101487         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
101488         that both overflow and suffix chars were found.
101490         * lib/human.c (humblock): Don't check separately for invalid suffix
101491         char; that is xstrtoumax's job (now that its bug is fixed).
101492         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
101493         INTMAX_MAX]: New macros.
101494         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
101495         TYPE_MAXIMUM): New macros.
101496         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
101497         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
101498         if overflow occurs, as it's what __strtol does and it's more useful
101499         in practice.
101500         (__xstrtol): If __strtol reports some error other than ERANGE,
101501         reflect it to the caller as LONGINT_INVALID.  If it reports
101502         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
101503         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
101504         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
101505         value.
101506         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
101507         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
101508         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
101509         [defined UINTMAX_MAX]: New macros.
101511 2003-10-14  Bruno Haible  <bruno@clisp.org>
101513         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
101515 2003-10-14  Bruno Haible  <bruno@clisp.org>
101517         * m4/sig_atomic_t: New file, from GNU gettext.
101518         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
101520 2003-10-14  Bruno Haible  <bruno@clisp.org>
101522         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
101523         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
101524         Also use volatile where needed.
101526 2003-10-12  Paul Eggert  <eggert@twinsun.com>
101528         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
101529         Change maintainer from Bruno Haible to 'all'.
101531 2003-10-12  Paul Eggert  <eggert@twinsun.com>
101533         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
101535 2003-10-12  Paul Eggert  <eggert@twinsun.com>
101537         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
101538         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
101539         and define in terms of the other primitives.
101540         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
101541         (SIZE_MAX): Define if not already defined.
101542         (array_size_overflow): New function.
101543         (xalloc_die): Abort instead of exiting if 'error' returns.
101544         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
101545         (xmalloc, xrealloc): Use them.
101546         (xcalloc): Check for address arithmetic overflow.
101547         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
101548         a bit faster than strcpy.
101550 2003-10-10  Simon Josefsson  <jas@extundo.com>
101552         * modules/argp (Depends-on): Add restrict and strcase.
101554 2003-10-10  Simon Josefsson  <jas@extundo.com>
101556         * m4/argp.m4: Add AC_C_INLINE.
101558 2003-10-08  Paul Eggert  <eggert@twinsun.com>
101560         Merge getpass from libc, plus a few fixes.
101562         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
101563         Include <stdbool.h>.
101564         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
101565         __fsetlocking to empty.
101566         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
101567         do include <bits/libc-lock.h>.
101568         Do not include <fcntl.h>; not needed.
101569         [_LIBC]: Include <wchar.h>.
101570         (NOTCANCEL_MODE): New macro.
101571         (flockfile, funlockfile) [_LIBC]: New macros.
101572         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
101573         [!_LIBC]: New macros.
101574         (call_fclose): New function.
101575         (getpass): Use it.  Save tty stream separately; this simplifies the
101576         code and makes it more reliable if stdin happens to equal stdout.
101577         Invoke __fsetlocking on tty.
101578         Handle thread cancellation if needed.
101579         Namespace cleanup (use __tcgetattr, __getline).
101580         Use bool for Booleans.
101581         [USE_IN_LIBIO]: Handle wide streams.
101582         [!_LIBC]: Unconditionally do the fseek, since we don't know what
101583         stream might go where.
101585         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
101586         doesn't have to include <stdio.h> before us.
101587         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
101588         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
101589         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
101590         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
101591         if not declared, so that we can use getpass.c code from libc without
101592         rewriting it.
101593         (flockfile, ftrylockfile, funlockfile): New macros.
101595 2003-10-08  Paul Eggert  <eggert@twinsun.com>
101597         * modules/getpass: Depend on stdbool.
101599 2003-10-08  Paul Eggert  <eggert@twinsun.com>
101601         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
101603 2003-10-07  Karl Berry  <karl@gnu.org>
101605         * config/config.{guess,sub}: update from config.
101607 2003-10-06  Jim Meyering  <jim@meyering.net>
101608             Bruno Haible  <bruno@clisp.org>
101610         This lets translators provide better translations for the
101611         "Written by ..." part of --version output.
101612         * lib/version-etc.h: Include stdarg.h.
101613         (version_etc_copyright): Declare as readonly.
101614         (version_etc): Make this function variadic with a NULL-terminated list
101615         of author name strings.
101616         (version_etc_va): New declaration.
101617         * lib/version-etc.c: Include stdarg.h, stdlib.h.
101618         (version_etc_copyright): Declare as readonly.
101619         (version_etc_va): New function. Provide a different translatable string
101620         for each possible number of authors < 10. Abbreviate when there are 10
101621         authors or more.
101622         (version_etc): Make this function variadic. Call version_etc_va.
101623         Suggestion from Gary V. Vaughan.
101625         * lib/long-options.h (parse_long_options): Change prototype: the
101626         authors string is moved to the end and becomes variadic.
101627         * lib/long-options.c: Include stdarg.h.
101628         (parse_long_options): Make this function variadic, too.
101629         Call version_etc_va, not version_etc.
101631 2003-10-06  Bruno Haible  <bruno@clisp.org>
101633         * modules/version-etc-2: Remove file.
101634         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
101636 2003-10-06  Bruno Haible  <bruno@clisp.org>
101638         * modules/fatal-signal: New file.
101639         * MODULES.html.sh (func_all_modules): Add fatal-signal.
101641 2003-10-06  Bruno Haible  <bruno@clisp.org>
101643         * m4/fatal-signal.m4: New file.
101644         * m4/signalblocking.m4: New file, from GNU gettext.
101646 2003-10-06  Bruno Haible  <bruno@clisp.org>
101648         * lib/version-etc-2.h: Remove file.
101649         * lib/version-etc-2.c: Remove file.
101651 2003-10-06  Bruno Haible  <bruno@clisp.org>
101653         * lib/fatal-signal.h: New file, from GNU gettext.
101654         * lib/fatal-signal.c: New file, from GNU gettext.
101656 2003-10-05  Paul Eggert  <eggert@twinsun.com>
101658         * README: Rework advice for preventing empty .o files.
101659         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
101660         not <sys/types.h>.
101662 2003-10-04  Karl Berry  <karl@gnu.org>
101664         * lib/argp*: update from libc.
101666 2003-10-04  Karl Berry  <karl@gnu.org>
101668         * config/config.{guess,sub}: update from config.
101670 2003-10-02  Bruno Haible  <bruno@clisp.org>
101672         * modules/lchown (Include): Add lchown.h.
101673         * modules/time_r (Include): Use "..." syntax.
101674         * modules/xgetdomainname (Include): Add xgetdomainname.h.
101676 2003-10-01  Simon Josefsson  <jas@extundo.com>
101678         * MODULES.html.sh (func_all_modules): Move gethostname from section
101679         'based on' to section 'lacking' POSIX:2001.
101681 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
101683         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
101684         to output mode on the same stream.
101686 2003-09-29  Paul Eggert  <eggert@twinsun.com>
101688         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
101689         Fix arg typo in previous patch.
101691 2003-09-28  Jim Meyering  <jim@meyering.net>
101693         * lib/error.c: Correct cpp indentation.
101695 2003-09-27  Paul Eggert  <eggert@twinsun.com>
101697         * modules/free: New file.
101699 2003-09-27  Paul Eggert  <eggert@twinsun.com>
101701         * m4/free.m4: New file.
101703 2003-09-27  Paul Eggert  <eggert@twinsun.com>
101705         * lib/minmax.h (MIN, MAX)
101706         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
101707         Omit the special code that used __typeof__, since we worry that
101708         it could be more trouble than it's worth.  See:
101709         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
101710         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
101712         * lib/free.c: New file.
101714 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
101716         Trivial fixes to Makefile.am parts of module listings.
101717         * modules/strstr: Append strstr.h to lib_SOURCES.
101718         * modules/strcase: Likewise, for strcase.h.
101720 2003-09-27  Karl Berry  <karl@gnu.org>
101722         * config/mkinstalldirs: update from automake.
101724 2003-09-26  Paul Eggert  <eggert@twinsun.com>
101726         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
101727         (error_tail): Do not loop, reallocating temporary buffer, since
101728         the output cannot contain more wide characters than the input
101729         contains bytes, the size must be big enough already.  This avoids
101730         one potential size overflow calculation.  Check for size overflow
101731         when calculating temporary buffer size.  Free temporary buffer
101732         when done, if it was allocated with malloc; this plugs a memory
101733         leak.  Remove casts from void * to pointers, that are no longer
101734         needed now that we're assuming C89 or better.
101736         Merge error changes from glibc.
101738         * lib/error.c, error.h: Update copyright notice header to match glibc.
101739         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
101740         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
101741         Disable cancellation while printing error.
101742         * lib/error.h: Prepend __ to parameter names.
101744 2003-09-26  Jim Meyering  <jim@meyering.net>
101746         * lib/error.c (error_tail): Move some declarations
101747         into inner scope where the local variables are used.
101749 2003-09-26  Bruno Haible  <bruno@clisp.org>
101751         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
101752         stpncpy().
101753         Don't define stpncpy through config.h; it's now done through stpncpy.h.
101755 2003-09-26  Bruno Haible  <bruno@clisp.org>
101757         * lib/stpncpy.h (gnu_stpncpy): New declaration.
101758         (stpncpy): Define as alias for gnu_stpncpy.
101759         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
101761 2003-09-25  Simon Josefsson  <jas@extundo.com>
101763         * lib/xgetdomainname.h: New file.
101764         * lib/xgetdomainname.c: New file.
101766 2003-09-25  Simon Josefsson  <jas@extundo.com>
101767             Bruno Haible  <bruno@clisp.org>
101769         * modules/getdomainname: New file.
101770         * modules/xgetdomainname: New file.
101771         * MODULES.html.sh (func_all_modules): Add getdomainname,
101772         xgetdomainname.
101774 2003-09-25  Simon Josefsson  <jas@extundo.com>
101775             Bruno Haible  <bruno@clisp.org>
101777         * m4/getdomainname.m4: New file.
101779 2003-09-25  Simon Josefsson  <jas@extundo.com>
101780             Bruno Haible  <bruno@clisp.org>
101782         * lib/getdomainname.h: New file.
101783         * lib/getdomainname.c: New file.
101785 2003-09-25  Karl Berry  <karl@gnu.org>
101787         * lib/argp-fmtstream.c, argp-help.c: update from libc.
101789 2003-09-25  Karl Berry  <karl@gnu.org>
101791         * config/install-sh: update from automake.
101793 2003-09-25  Bruno Haible  <bruno@clisp.org>
101795         * modules/version-etc-2: New file, from modules/version-etc with
101796         modifications.
101797         * MODULES.html.sh (func_all_modules): Add version-etc-2.
101799 2003-09-25  Bruno Haible  <bruno@clisp.org>
101801         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
101802         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
101804 2003-09-24  Simon Josefsson  <jas@extundo.com>
101806         * modules/xgethostname: Add xgethostname.h.
101808 2003-09-24  Paul Eggert  <eggert@twinsun.com>
101810         * lib/linebuffer.c (freebuffer): Don't free the argument, just
101811         the buffer associated with the argument.  Bug reported by
101812         Simon Josefsson.
101814 2003-09-24  Paul Eggert  <eggert@twinsun.com>
101816         * README: Document assumptions that 'int' is at least 32 bits
101817         wide, that integer arithmetic is 2's complement without overflow,
101818         that there are no holes in integer values, that adding sizes of
101819         two nonoverlapping objects can't overflow, and that all-bits-zero
101820         yields scalar zero.  Fix spelling and capitalization typos.
101822 2003-09-19  Karl Berry  <karl@gnu.org>
101824         * lib/argp.h: update from libc.
101826 2003-09-17  Paul Eggert  <eggert@twinsun.com>
101828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
101829         to avoid spurious warnings like "AC_RUN_IFELSE was called before
101830         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
101832 2003-09-17  Paul Eggert  <eggert@twinsun.com>
101834         * gnulib-tool: Use "test -h", not "test -L", for portability
101835         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
101836         (tags_regexp): Remove, since \| doesn't conform to POSIX.
101837         (sed_extract_prog): Issue s commands one-by-one, rather than
101838         using \| in one s command.
101840 2003-09-16  Paul Eggert  <eggert@twinsun.com>
101842         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
101843         input error, instead of returning NULL the next time we are called
101844         (and therefore losing track of errno).
101846 2003-09-16  Bruno Haible  <bruno@clisp.org>
101848         * gnulib-tool (func_create_testdir): Warn about duplicated
101849         dependencies.
101851 2003-09-15  Paul Eggert  <eggert@twinsun.com>
101853         * modules/argmatch, modules/fatal, modules/obstack,
101854         modules/xalloc, modules/xgethostname: Sort dependencies by
101855         importance, not alphabetically.
101857 2003-09-15  Paul Eggert  <eggert@twinsun.com>
101859         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
101860         fails, so that the caller gets the proper errno.
101862         * lib/readutmp.c (read_utmp): Likewise.
101863         Check for fstat error.  Close stream and free storage
101864         when failing.
101866 2003-09-14  Karl Berry  <karl@gnu.org>
101868         * config/srclist.txt (strdup.c): disable for c89 changes.
101870 2003-09-14  Jim Meyering  <jim@meyering.net>
101872         * lib/getloadavg.c: Correct cpp indentation.
101873         * lib/strdup.c: Likewise.
101874         * lib/vasnprintf.c: Likewise.
101876 2003-09-14  Bruno Haible  <bruno@clisp.org>
101878         * modules/fwriteerror: New file.
101879         * MODULES.html.sh (func_all_modules): Add fwriteerror.
101881 2003-09-14  Bruno Haible  <bruno@clisp.org>
101883         * lib/fwriteerror.h: New file.
101884         * lib/fwriteerror.c: New file.
101886 2003-09-12  Paul Eggert  <eggert@twinsun.com>
101888         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
101889         modules/xgethostname, modules/xalloc: Depend on exit.
101891 2003-09-12  Paul Eggert  <eggert@twinsun.com>
101893         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
101895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
101896         and AC_MINIX, too, so that their extensions are available.
101898         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
101899         This macro has been superseded by gl_BACKUPFILE.
101901         More patches to assume C89 or better.
101903         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
101905         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
101906         unconditionally.
101907         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
101908         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
101909         Include <string.h>, <stdlib.h> unconditionally.
101910         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
101911         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
101912         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
101913         headers or for string.h.
101914         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
101915         or strtoul.
101917         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
101918         headers.
101919         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
101920         * m4/userspec.m4 (gl_USERSPEC): Likewise.
101921         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
101922         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
101923         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
101924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
101925         memcpy, memset.
101926         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
101927         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
101928         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
101929         strtol.
101930         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
101931         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
101932         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
101933         strtoul.
101935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
101937         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
101938         * lib/obstack.c [!defined _LIBC]: Likewise.
101939         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
101940         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
101941         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
101943         More changes to assume C89 or better.
101945         * lib/error.c (error_tail): Assume vprintf.
101947         * lib/argmatch.c (getenv): Remove decl.
101948         * lib/progreloc.c (get_full_program_name): Define via prototype.
101949         * lib/setenv.c (clearenv): Likewise.
101950         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
101951         needed.
101952         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
101953         (malloc, memcpy): Remove decls.
101954         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
101955         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
101956         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
101957         (memcpy): Remove macro.
101958         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
101959         (__P): Remove.  All uses removed.
101960         (PTR): Remove.  All uses changed to void *.
101961         (CHAR_BIT, NULL): Remove.
101962         (spaces, zeros, memset_space, memset_zero)
101963         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
101964         Remove.
101965         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
101966         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
101967         Define with prototype.
101968         Remove now-unnecessary prototype decl.
101969         (extra_args_spec): Assume ANSI C.  All uses changed.
101970         (extra_args_spec_iso): Remove.
101971         (my_strftime, emacs_strftimeu): Define via prototype.
101972         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
101973         unconditionally.
101974         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
101975         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
101976         (strtoul, strtol): Remove decls.
101977         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
101978         LONG_MAX): Remove.
101979         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
101980         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
101981         (LOCALE_PARAM_PROTO): New macro.
101982         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
101983         (INTERNAL (strtol), strtol): Define with a prototype.
101984         (PARAMS): Remove.  All uses removed.
101985         * lib/tempname.c: Include <string.h> unconditionally.
101986         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
101987         * lib/xgethostname.c (main): Define with a prototype.
101988         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
101989         Include <stdlib.h> unconditionally.
101990         (calloc, malloc, realloc, free): Remove decls.
101991         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
101992         Include <stdlib.h> unconditionally.  Sort include file names.
101993         (strtod): Remove.
101994         (xstrtod): Define with a prototype.
101995         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
101996         (strtol, strtoul): Remove decls.
101998 2003-09-11  Paul Eggert  <eggert@twinsun.com>
102000         More patches to assume C89 or better.
102001         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
102002         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
102003         string.h, memchr, STDC_HEADERS.
102005 2003-09-11  Paul Eggert  <eggert@twinsun.com>
102007         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
102008         Include <stdlib.h>, <string.h> unconditionally.
102009         Remove now-unnecessary cast to char *.
102010         * lib/strnlen.c: Include <string.h> unconditionally.
102011         * lib/yesno.c (yesno): Define with a prototype.
102013 2003-09-11  Bruno Haible  <bruno@clisp.org>
102015         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
102017 2003-09-10  Jim Meyering  <jim@meyering.net>
102019         * lib/error.c: Correct indentation of cpp directives.
102021 2003-09-10  Bruno Haible  <bruno@clisp.org>
102023         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
102024         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
102025         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
102026         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
102027         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
102028         <stdlib.h> and <string.h> checks.
102029         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
102030         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
102032 2003-09-10  Bruno Haible  <bruno@clisp.org>
102034         * lib/strcspn.c: Include <string.h> unconditionally.
102035         * lib/strpbrk.c: Include <string.h> unconditionally.
102036         * lib/strstr.c: Include <string.h> unconditionally.
102037         * lib/unicodeio.c: Include <string.h> unconditionally.
102038         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
102039         * lib/unsetenv.c: Likewise.
102040         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
102041         * lib/yesno.c: Include <stdlib.h> unconditionally.
102042         (rpmatch): Add prototype.
102044 2003-09-09  Paul Eggert  <eggert@twinsun.com>
102046         More patches to assume C89 or better.
102047         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
102048         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
102049         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
102050         or for string.h.
102051         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
102052         stdlib.h.
102053         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
102054         C headers.
102055         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
102056         string.h.
102057         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
102058         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
102059         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
102060         or for string.h.
102061         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
102062         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
102063         C headers.
102064         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
102065         memcpy.
102066         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
102067         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
102068         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
102069         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
102070         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
102071         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
102072         string.h, free.
102073         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
102074         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
102075         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
102076         C headers, or for string.h.
102077         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
102078         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
102079         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
102080         headers, memory.h, stdlib.h, string.h, strings.h.
102081         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
102082         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
102083         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
102084         strchr.
102085         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
102086         headers, memory.h, string.h.
102087         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
102088         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
102089         free.
102090         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
102091         headers.
102092         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
102093         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
102094         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
102095         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
102096         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
102098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
102100         More K&R removal.
102102         * lib/acosl.c (main): Use a prototype.
102103         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
102104         tanl.c: Likewise.
102106         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
102108         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
102109         (getopt, etopt_long, getopt_long_only, _getopt_internal)
102110         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
102111         with a prototype.
102112         * lib/getopt.c (const): Remove macro.
102113         Include <string.h> unconditionally.
102114         (my_index): Remove; all uses changed to strchr.
102115         (strlen): Remove decl.
102116         (exchange): Remove forward decl; no longer needed.
102117         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
102118         Define with prototype.
102119         * lib/getopt1.c (const): Remove macro.
102120         (getopt_long, getopt_long_only, main): Define with prototype.
102122         * lib/getugroups.c: Include <string.h> unconditionally.
102124         * lib/getusershell.c: Include <stdlib.h> unconditionally.
102125         (getusershell, setusershell, endusershell, readname, main):
102126         Define with prototypes.
102128         * lib/group-member.c: Include group-member.h first.
102129         Include <stdlib.h> unconditionally.
102131         * lib/hard-locale.c: Include hard-locale.h first.
102132         Include <stdlib.h>, <string.h> unconditionally.
102134         * lib/hash.c (free, malloc): Remove decls.
102135         Include <stdlib.h> unconditionally.
102137         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
102138         (getenv): Do not declare.
102140         * lib/idcache.c: Include <string.h> unconditionally.
102142         * lib/long-options.c: Include long-options.h first, to test interface.
102143         Include <stdlib.h> unconditionally.
102145         * lib/makepath.c: Include makepath.h first, to test interface.
102146         Include <stdlib.h> and <string.h> unconditionally.
102148         * lib/linebuffer.c: Include <stdlib.h>.
102149         (free): Remove decl.
102151         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
102152         stddef.h. rpl_malloc returns void *, not char *.
102153         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
102154         prototype.
102156         * lib/md5.h: Include <limits.h> unconditionally.
102157         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
102158         (__P): Remove; all uses removed.
102159         * lib/md5.c: Include "md5.h" first.
102160         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
102161         md5_buffer, md5_process_bytes, md5_process_block):
102162         Define with prototypes.
102163         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
102164         * lib/sha.c: Include "sha.h" first.
102165         Include <stdlib.h>, <string.h> unconditionally.
102167         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
102168         * lib/memcmp.c (__ptr_t): Likewise.
102169         * lib/memrchr.c (__ptr_t): Likewise.
102170         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
102171         Include <string.h> unconditionally.
102172         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
102173         * lib/memchr.c: Include <stdlib.h> unconditionally.
102174         * lib/memchr.c (LONG_MAX): Remove.
102175         * lib/memrchr.c (LONG_MAX): Likewise.
102176         * lib/memchr.c (__memchr): Define via a prototype.
102177         * lib/memrchr.c (__memrchr): Likewise.
102178         * lib/memcmp.c (__P): Remove, and remove all uses.
102179         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
102180         Remove forward decls; no longer needed.
102181         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
102182         Use types required by C89 in prototype.
102184         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
102185         * lib/savedir.c: Likewise.
102186         * lib/mkdir.c (free): Remove decl.
102187         * lib/rmdir.c (rmdir): Define with a prototype.
102188         * lib/savedir.c: Include savedir.h first, to test interface.
102190         * lib/mktime.c (STDC_HEADERS): Remove.
102191         Include <stdlib.h>, <string.h> unconditionally.
102193         * lib/modechange.c: Include <stdlib.h> unconditionally.
102194         (malloc): Remove decl.
102196         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
102197         (free): Remove decl.
102199         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
102200         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
102201         (This type really should be intptr_t, but that's a C99ism.)
102202         (_obstack_memcpy): Remove: all uses changed to memcpy.
102203         Include <string.h> unconditionally.
102204         (struct obstack): Assume __STDC__ for types of members
102205         chunkfun, freefun, extra_arg.
102206         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
102207         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
102208         obstack_begin, obstack_specify_allocation,
102209         obstack_specify_allocation_with_arg, obstack_chunkfun,
102210         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
102211         Remove unprototyped decls and the macros that use them.
102212         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
102213         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
102214         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
102215         (defined __STDC__ && __STDC__)]:
102216         Remove nonprototyped code.
102217         Include <stdlib.h> unconditionally.
102218         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
102219         _obstack_allocated_p, _obstack_free, obstack_free,
102220         _obstack_memory_used, print_and_abort):
102221         Define using prototypes.
102222         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
102223         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
102224         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
102225         obstack_next_free, obstack_object_size, obstack_room) [0]:
102226         Remove unused, unprototyped code.
102228         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
102230         * lib/physmem.c (physmem_total, physmem_available, main): Define
102231         with prototypes.
102233         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
102234         (main): Define with a prototype.
102236         * lib/posixver.c (getenv): Remove decl.
102238         * lib/putenv.c (malloc): Returns void *, not char *.
102239         Include <string.h> unconditionally.
102240         (strchr, memcpy, NULL): Do not define.
102242         * lib/readtokens.c: Include readtokens.h first, to test interface.
102243         Include <stdlib.h>, <string.h> unconditionally.
102244         (init_tokenbuffer): Define with a prototype.
102246         * lib/regex.c (PARAMS): Remove.  All uses removed.
102247         All uses of _RE_ARGS removed, too.
102248         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
102249         unconditionally.
102250         (bzero): Assume memset exists.
102251         (memcmp, memcpy, NULL): Remove.
102252         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
102253         char, or assignments to local vars of type signed char.
102254         (init_syntax_once, PREFIX(extract_number_and_incr),
102255         PREFIX(print_partial_compiled_pattern),
102256         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
102257         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
102258         PREFIX(regex_grow_registers), PREFIX(regex_compile),
102259         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
102260         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
102261         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
102262         wcs_compile_range, byte_compile_range, truncate_wchar,
102263         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
102264         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
102265         count_mbs_length, wcs_re_match_2_internal,
102266         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
102267         PREFIX(alt_match_null_string_p),
102268         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
102269         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
102270         regfree, PREFIX(extract_number)): Define with prototype.  Remove
102271         now-unnecessary declaration, if any.
102272         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
102273         regcomp, regexec):
102274         Remove now-unnecessary casts among pointer types.
102275         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
102277         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
102278         (free): Remove decl.
102280         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
102282         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
102283         (free): Remove decl.
102285         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
102286         * lib/xgetcwd.c: Likewise.
102288         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
102289         (free): Remove decl.
102291         * lib/strchrnul.c (strchrnul): Define with a prototype.
102292         Fix bug: c_in was not converted to char before searching.
102294         The following changes are not K&R related:
102296         * lib/group-member.h: Include <sys/types.h>, so that this file is
102297         self-contained.
102298         * lib/makepath.h: Likewise.
102300         * lib/getusershell.c (readname, default_index, line_size, readname):
102301         Use size_t, not int, for sizes.
102302         (readname): If the size overflows, report an error instead of
102303         looping forever.
102305 2003-09-09  Paul Eggert  <eggert@twinsun.com>
102307         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
102308         libc.
102310 2003-09-09  Paul Eggert  <eggert@twinsun.com>
102312         * README: New section: portability guidelines.
102314 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
102316         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
102317         C89 spec.
102319 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
102321         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
102323 2003-09-08  Paul Eggert  <eggert@twinsun.com>
102325         Assume C89 or better; remove K&R cruft.
102326         A few of these changes were first proposed by Derek Robert Price
102327         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
102329         * lib/addext.c: Include <string.h> unconditionally.
102330         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
102331         Don't declare getenv or malloc.
102333         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
102334         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
102335         (NULL): Remove.
102336         (find_stack_direction, alloca): Use prototypes.
102338         * lib/atexit.c (atexit): Define using a prototype.
102340         * lib/basename.c, dirname.c, stripslash.c:
102341         Include <string.h> unconditionally.
102343         * lib/bcopy.c: Include <stddef.h>.
102344         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
102346         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
102348         * lib/error.h (error, error_at_line, error_print_progname)
102349         [! (defined (__STDC__) && __STDC__)]: Remove decls.
102350         * lib/error.c: Include error.h first, to check interface.
102351         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
102352         (VA_START): Remove; all uses changeed to va_start.
102353         (exit, strerror): Remove decls.
102354         (error_print_progname): Prototype uncondionally.
102355         Don't include <errno.h>; no longer needed.
102356         (private_strerror): Remove.
102357         (error_tail): Always define.
102358         (error, error_at_line): Assume C89 or better; always use prototypes.
102359         * lib/fatal.c: Include "fatal.h" first, to test interface.
102360         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
102361         (VA_START): Remove; all uses changed to va_start.
102362         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
102363         this case.
102364         (exit): Remove decl.
102365         (fatal): Prototype unconditionally.  Assume va_start works.
102366         Abort at end, to pacify gcc.
102368         * lib/euidaccess.c (main): Define with a prototype.
102370         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
102372         * lib/exitfail.c: Include <stdlib.h> unconditionally.
102374         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
102375         prototypes.
102376         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
102377         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
102378         (getenv): Remove decl.
102379         (fnmatch): Define using a prototype.
102380         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
102381         (FCT): Define using a prototype.
102383         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
102385         * lib/gethostname.c: Include <stddef.h>.
102386         (gethostname): Define with prototype.  Length is size_t, not int.
102388 2003-09-08  Paul Eggert  <eggert@twinsun.com>
102390         Assume C89 or better; remove K&R cruft.
102391         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
102392         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
102393         string.h, getenv, malloc.
102394         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
102395         headers.
102396         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
102397         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
102398         do not check for strerror.
102399         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
102400         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
102401         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
102402         do not check for doprnt or vprintf.
102403         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
102404         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
102406 2003-09-08  Paul Eggert  <eggert@twinsun.com>
102408         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
102409         getversion.c should have been removed then, but was accidentally
102410         preserved.
102412         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
102413         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
102415 2003-09-08  Karl Berry  <karl@gnu.org>
102417         * config/config.sub, config.guess, srclistvars.sh: update from savannah
102418                 config, forget about prep.
102420         * config/depcomp, missing: update from automake.
102422 2003-09-07  Paul Eggert  <eggert@twinsun.com>
102424         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
102425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
102427 2003-09-07  Paul Eggert  <eggert@twinsun.com>
102429         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
102430         copy_tm_result.  Bug reported by Simon Josefsson in
102431         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
102433 2003-09-06  Paul Eggert  <eggert@twinsun.com>
102435         * m4/time_r.m4: New file.
102436         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
102437         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
102438         is. Check for timegm declaration.
102439         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
102440         Do not check for gmtime_r.
102441         Replace mktime if __mktime_internal does not exist and if mktime
102442         hasn't been replaced already.
102444 2003-09-06  Paul Eggert  <eggert@twinsun.com>
102446         * lib/time_r.c, lib/time_r.h: New files.
102448         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
102449         __localtime_r.
102450         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
102451         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
102453         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
102454         __gmtime_r.
102455         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
102456         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
102457         Include <time_r.h>.
102459         * lib/timegm.c: Switch to glibc implementation, with the following
102460         changes:
102461         [defined HAVE_CONFIG_H]: Include <config.h>.
102462         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
102463         (__mktime_internal) [!defined _LIBC]: New decl.
102464         (__gmtime_r) [!defined _LIBC]: New macro and function.
102465         (timegm): Use a prototype, since gnulib assumes C89.
102466         Do not bother declaring tmp to be const, as it's not really usefu.
102467         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
102468         (timegm): Declare only if HAVE_DECL_TIMEGM.
102470 2003-09-06  Paul Eggert  <eggert@twinsun.com>
102472         * MODULES.html.sh (func_all_modules): Add time_r.
102473         * modules/time_r: New file.
102474         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
102475         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
102477 2003-09-03  Paul Eggert  <eggert@twinsun.com>
102479         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
102480         Bug reported by Lute Kamstra in
102481         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
102483         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
102484         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
102485         course with correspondingly smaller numbers for tomorrow and
102486         yesterday.  From Tadayoshi Funaba.  Originally installed into
102487         sh-utils on 1999-08-07, but the patch got lost (I guess during the
102488         coreutils merge?).
102490 2003-08-31  Simon Josefsson  <jas@extundo.com>
102492         * modules/timegm: New file.
102493         * MODULES.html.sh (func_all_modules): Add timegm.
102495 2003-08-31  Simon Josefsson  <jas@extundo.com>
102497         * m4/timegm.m4: New file.
102499 2003-08-31  Simon Josefsson  <jas@extundo.com>
102501         * lib/timegm.h: New file.
102502         * lib/timegm.c: New file.  Based on
102503         wget-1.8.2/src/http.c:mktime_from_utc.
102505 2003-08-31  Karl Berry  <karl@gnu.org>
102507         * lib/argp.h: update from libc.
102509 2003-08-28  Bruno Haible  <bruno@clisp.org>
102511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
102512         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
102513         followed by '#define fnmatch fnmatch_posix' gives an error.
102515 2003-08-28  Bruno Haible  <bruno@clisp.org>
102517         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
102518         warning on QNX, which defines O_BINARY to 000000.
102520 2003-08-27  Jim Meyering  <jim@meyering.net>
102522         * m4/mkstemp.m4: Require that the system mkstemp be able to create
102523         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
102524         would fail after 32.  Reported by Danny Levinson.  Details here:
102525         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
102527 2003-08-24  Bruno Haible  <bruno@clisp.org>
102529         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
102530         MSVC7 <stdio.h> is included later.
102532 2003-08-22  Simon Josefsson  <jas@extundo.com>
102534         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
102536 2003-08-20  Karl Berry  <karl@gnu.org>
102538         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
102540 2003-08-20  Bruno Haible  <bruno@clisp.org>
102542         * modules/progname: New file.
102543         * MODULES.html.sh (func_all_modules): Add progname.
102545 2003-08-20  Bruno Haible  <bruno@clisp.org>
102547         * lib/progname.h: New file, from GNU gettext.
102548         * lib/progname.c: New file, from GNU gettext.
102549         * lib/progreloc.c: New file, from GNU gettext.
102551 2003-08-19  Jim Meyering  <jim@meyering.net>
102553         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
102554         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
102556 2003-08-19  Bruno Haible  <bruno@clisp.org>
102558         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
102559         more.
102561 2003-08-19  Bruno Haible  <bruno@clisp.org>
102563         * lib/xstrdup.c: Assume <string.h> exists.
102565 2003-08-18  Paul Eggert  <eggert@twinsun.com>
102567         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
102568         in makefile rules.
102570 2003-08-18  Jim Meyering  <jim@meyering.net>
102572         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
102573         * m4/lib-ld.m4: Likewise.
102575 2003-08-18  Jim Meyering  <jim@meyering.net>
102577         * lib/setenv.h: Indent nested cpp directive.
102578         * lib/vasnprintf.c: Remove trailing blanks.
102580 2003-08-17  Simon Josefsson  <jas@extundo.com>
102582         * modules/xstrndup: New file.
102583         * MODULES.html.sh (func_all_modules): Add xstrndup.
102585 2003-08-17  Simon Josefsson  <jas@extundo.com>
102587         * modules/argp: Fix autoconf macro name. Add more dependencies.
102589 2003-08-17  Simon Josefsson  <jas@extundo.com>
102591         * m4/xstrndup.m4: New file.
102593 2003-08-17  Simon Josefsson  <jas@extundo.com>
102595         * m4/argp.m4: New file.
102597 2003-08-17  Simon Josefsson  <jas@extundo.com>
102598             Bruno Haible  <bruno@clisp.org>
102600         * lib/xstrndup.h: New file.
102601         * lib/xstrndup.c: New file.
102603 2003-08-17  Bruno Haible  <bruno@clisp.org>
102605         * modules/strndup (Files, Include): Add lib/strndup.h.
102607 2003-08-17  Bruno Haible  <bruno@clisp.org>
102609         * modules/euidaccess (Files): Add lib/euidaccess.h.
102611 2003-08-17  Bruno Haible  <bruno@clisp.org>
102613         * lib/strndup.h: New file.
102615 2003-08-17  Bruno Haible  <bruno@clisp.org>
102617         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
102618         like AC_GNU_SOURCE.
102619         * modules/extensions (configure.ac): Comment out the invocation of
102620         gl_USE_SYSTEM_EXTENSIONS.
102622 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102624         Merges from coreutils, etc.
102625         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
102626         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
102627         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
102628         fixing a typo.
102629         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
102630         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
102632 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102634         Document merge from coreutils.
102635         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
102636         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
102637         * modules/utime: Add m4/utimes-null.m4.
102639 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102641         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
102642         space, undoing this 2003-08-12 change:
102643         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
102645 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102647         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
102648         strtoul.c from libc, undoing this 2003-08-12 change:
102649         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
102651 2003-08-16  Jim Meyering  <jim@meyering.net>
102653         Merges from coreutils.
102654         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
102655         prefix.  Adjust cache variables similarly.  Create 500 rather than
102656         just 300 files, to exercise bug on Darwin6.5, too.
102657         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
102658         $missing_dir.
102659         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
102660         AM_SYS_POSIX_TERMIOS.
102661         Reported by mkc@mathdogs.com.
102662         Also change use of $am_cv_sys_posix_termios
102663         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
102664         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
102665         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
102666         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
102667         in /proc/mounts until it finds one with matching device number.  This
102668         is unnecessary when the FILE argument *is* a mount point.  No stat call
102669         is necessary in that case.  So, disable the statvfs-testing code on
102670         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
102671         as RedHat bug# 84846.
102672         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
102673         to 1MB, so as not to render systems with no stack size limit (e.g.,
102674         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
102675         Include <unistd.h>.  On some systems,
102676         it is required for the definition of _SC_PAGESIZE.
102678 2003-08-16  Jim Meyering  <jim@meyering.net>
102680         Merge from coreutils.
102681         * lib/xstrtoimax.c: #else #if -> #elif.
102682         * lib/xstrtoumax.c: Likewise.
102684 2003-08-16  Jim Meyering  <jim@meyering.net>
102686         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
102687         * m4/utimes.m4: Removed.
102688         * m4/utimes-null.m4: Renamed from utimes.m4.
102690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
102691         to 1MB, so as not to render systems with no stack size limit (e.g.,
102692         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
102693         Include <unistd.h>.  On some systems,
102694         it is required for the definition of _SC_PAGESIZE.
102696 2003-08-16  Jim Meyering  <jim@meyering.net>
102697         and Paul Eggert  <eggert@cs.ucla.edu>
102699         Merges from coreutils, etc.
102701         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
102702         using the latest version from cvs.  This avoids problems with #line
102703         directives using a vendor (Sun) compiler.
102704         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
102705         Don't set GETGROUPS_LIB here; now it's
102706         done via getgroups.m4's wrapper function.
102707         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
102708         rather than just in sh-util/configure.in, so that the
102709         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
102710         same.
102711         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
102712         AC_FUNC_GETLOADAVG where to find getloadavg.c.
102713         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
102714         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
102715         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
102716         Remove code that is now done by the newly-required macros.
102717         Append $(EXEEXT) to DF_PROG.
102718         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
102719         Do not invoke or require the following here,
102720         since prereq.m4 or some gnulib .m4 now does this for us:
102721         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
102722         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
102723         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
102724         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
102725         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
102726         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
102727         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
102728         AC_FUNC_OBSTACK.
102729         Do not replace the following functions, as this is now the job
102730         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
102731         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
102732         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
102733         atexit getpass, strdup, getpagesize.
102734         Replace 'raise'.
102735         Do not check for the following functions, as this is now the job
102736         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
102737         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
102738         setregid.
102739         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
102740         Check for sys/sysctl.h.
102741         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
102742         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
102743         of checking for ssize_t ourselves.
102745         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
102746         Require every macro that gnulib/modules/* suggests for us.
102747         (jm_PREREQ_ADDEXT): New macro.
102748         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
102749         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
102751         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
102752         (gl_PHYSMEM): Use it.
102753         Also check for `table' function.
102754         Check for new headers and functions.
102755         Add check for sys/sysmp.h.
102756         With suggestions from Kaveh Ghazi.
102757         Ignore headers that are present but cannot be compiled.  This
102758         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
102759         C 5.4.
102761 2003-08-15  Paul Eggert  <eggert@twinsun.com>
102763         Document merge from coreutils.
102764         * modules/userspec: Depend on posixver.
102765         * modules/strftime: Depend on tzset.
102767 2003-08-15  Paul Eggert  <eggert@twinsun.com>
102769         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
102770         rather than tab, after '#' in shell-script copyright notices.
102771         Suggested by Bruno Haible.
102773 2003-08-15  Paul Eggert  <eggert@twinsun.com>
102775         * config/srclist-update: Use three spaces, rather than tab, after '#'
102776         in shell-script copyright notices.  Suggested by Bruno Haible.
102777         Remove unnecessary parenthesization in regular expression.
102779 2003-08-15  Jim Meyering  <jim@meyering.net>
102781         Merge from coreutils.
102782         * lib/xgethostname.c: Include <stdlib.h>.
102783         (xghostname): Don't exit for anything other than memory-related
102784         failure; just return NULL.
102785         * lib/userspec.c: Include "posixver.h".
102786         (parse_user_spec): Accept `.' as a separator only
102787         in pre-POSIX-200112 mode.
102788         * lib/strtoimax.c: Use #elif rather than #else #if.
102789         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
102790         Remove function, now that we can rely on a working tzset function.
102791         [!_LIBC]: Ensure that the required autoconf test has been run.
102792         [!defined _NL_CURRENT && HAVE_STRFTIME]:
102793         Use underlying_strftime for %r.
102794         * lib/sha.c: Merge in some clean-up and optimization changes from
102795         glibc.
102796         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
102797         Ensure that it is a multiple of 64.
102798         Rearrange loop exit tests so as to avoid performing an
102799         additional fread after encountering an error or EOF.
102800         * lib/realloc.c: Update copyright date.
102802 2003-08-15  Jim Meyering  <jim@meyering.net>
102803         and Paul Eggert  <eggert@twinsun.com>
102805         Merge from coreutils.
102806         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
102807         member but strut utmpx does not.  Needed for AIX 4.3.3.
102808         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
102810 2003-08-15  Jim Meyering  <jim@meyering.net>
102811         and Paul Eggert  <eggert@cs.ucla.edu>
102813         Merges from coreutils, etc.
102814         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
102815         Require gl_FUNC_TZSET_CLOBBER.
102816         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
102817         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
102818         members.
102820 2003-08-14  Paul Eggert  <eggert@twinsun.com>
102822         Help the merge from coreutils.
102823         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
102824         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
102825         * m4/tzset.m4: Use it too.
102827 2003-08-14  Paul Eggert  <eggert@twinsun.com>
102829         * modules/tzset: New file.
102831 2003-08-14  Jim Meyering  <jim@meyering.net>
102833         Merges from coreutils.
102834         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
102835         variable names, rather than @FNMATCH_H@.
102836         * modules/alloca: Likewise for $(ALLOCA_H).
102838         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
102839         the three copies of the literal target, `fnmatch.h'.
102840         * modules/alloca (alloca.h): Likewise.
102842 2003-08-14  Jim Meyering  <jim@meyering.net>
102844         Merge from coreutils.
102845         * m4/tzset.m4: New file.
102846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
102847         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
102848         otherwise, AIX 5.1 systems would end up using the latter.
102849         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
102850         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
102851         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
102852         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
102854 2003-08-14  Jim Meyering  <jim@meyering.net>
102856         Merge from coreutils.
102857         * lib/obstack.h: Whitespace changes.
102858         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
102859         and xcalloc return values.
102860         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
102861         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
102862         hang on OSF/1 5.1 for DIR on both local and remote file systems.
102863         Reported by (and fix confirmed by) Nelson H. F. Beebe.
102864         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
102865         error from mntctl.
102866         Use mntctl's return value to drive the entry-processing loop, since
102867         we can't rely on the value of the vmt_length member in the last
102868         entry.  On some systems doing so could result in exhausting
102869         virtual memory.  Based in part on a patch from Mike Jetzer.
102871 2003-08-14  Jim Meyering  <jim@meyering.net>
102872         and Paul Eggert  <eggert@twinsun.com>
102874         Merges from coreutils, plus other fixes.
102875         * lib/physmem.c: Merge in portability changes from gcc/libiberty
102876         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
102877         for credits and details.  Thanks to Kaveh Ghazi for helping
102878         to keep these files in sync.
102879         (ARRAY_SIZE): Define it.
102880         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
102881         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
102882         (memcasecmp): Don't assume size_t fits in unsigned int.
102883         Remove casts and duplicate code.
102884         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
102885         (memcpy): Remove definition.
102886         Merge in some clean-up and optimization changes from glibc.
102887         [BLOCKSIZE]: Move definition to top of file.
102888         Ensure that it is a multiple of 64.
102889         Rearrange loop exit tests so as to avoid performing an
102890         additional fread after encountering an error or EOF.
102891         * lib/md5.h (md5_uintptr): Define.
102892         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
102893         return to the initial working directory.  Preserve errno
102894         for caller.
102895         * lib/idcache.c: Include "xalloc.h".
102896         (xmalloc, xrealloc): Remove decls.
102897         (getuser): Remove casts no longer required in C89.
102898         * lib/human.c: Include stdio.h, for sprintf.
102899         * lib/group-member.c: Include "xalloc.h".
102900         (xmalloc, xrealloc): Remove decls.
102901         (get_group_info): Remove casts no longer required in C89.
102902         * lib/getusershell.c (readname): Remove casts no longer required in
102903         C89.
102904         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
102905         * lib/getline.c: Whitespace fix, from coreutils.
102907 2003-08-13  Paul Eggert  <eggert@twinsun.com>
102909         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
102910         Check for isascii.
102912         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
102913         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
102914         Undo previous (whitespace-only) change.
102916 2003-08-13  Paul Eggert  <eggert@twinsun.com>
102918         * lib/exclude.c: Include <ctype.h>
102919         (IN_CTYPE_DOMAIN): New macro.
102920         (is_space): New fn.
102921         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
102922         and empty lines.
102924         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
102925         Undo previous (whitespace-only) change.
102927 2003-08-13  Paul Eggert  <eggert@twinsun.com>
102929         * config/srclist-update: Change update back to the old behavior,
102930         leaving whitespace alone.  Use one 'sed' command rather than a
102931         pipeline.
102932         (fixlicense): Now a variable, not a function.
102933         (remove_trailing_blanks): Remove.
102934         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
102935         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
102936         Undo previous (whitespace-only) change.
102938 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102940         Merge from coreutils.
102941         * modules/euidaccess: Add lib_SOURCES, include for new
102942         file euidaccess.h
102944 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102946         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
102947         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
102948         Normalize leading white space and remove trailing white space.
102950         Merge from coreutils
102951         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
102953         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
102954         0.12.1.  These files are now being upgraded automatically by
102955         ../config/srclist-update.
102957 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102959         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
102960         Normalize leading white space and remove trailing white space.
102961         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
102962         notice, as per ../config/srclist-update.
102964         Merge from coreutils.
102965         * lib/euidaccess.h: New file.
102966         * lib/euidaccess.c: Include it.
102967         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
102968         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
102969         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
102971 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102973         * config/srclist-update: Add copyright notice.
102974         (remove_id_lines, remove_trailing_blanks): New constants.
102975         (fixfile): Use them to normalize spacing a bit in copied files.
102976         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
102977         Normalize leading white space and remove trailing white space.
102979         * config/texinfo.tex: Sync with texinfo.
102981         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
102982         strtoul.c from libc, to merge coreutils whitespace changes.
102984         * config/srclist.txt: Get the following m4 files from gettext:
102985         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
102986         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
102987         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
102988         wint_t.m4.
102990 2003-08-12  Karl Berry  <karl@gnu.org>
102992         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
102993         been made.
102995 2003-08-11  Paul Eggert  <eggert@twinsun.com>
102997         * modules/gnu-source, m4/gnu-source.m4:
102998         Remove; we're assuming Autoconf 2.54 or later now.
102999         Suggested by Bruno Haible.
103000         * MODULES.html.sh (func_all_modules): Remove gnu-source.
103002 2003-08-11  Bruno Haible  <bruno@clisp.org>
103004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
103006 2003-08-11  Bruno Haible  <bruno@clisp.org>
103008         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
103009         (vasnprintf): Use it instead of wcslen.
103011 2003-08-11  Bruno Haible  <bruno@clisp.org>
103013         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
103014         value to ensure that _Bool promotes to int. Use #define for _Bool when
103015         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
103017 2003-08-10  Karl Berry  <karl@gnu.org>
103019         * lib/regex.h: update from libc (whitespace fix).
103021 2003-08-09  Paul Eggert  <eggert@twinsun.com>
103023         Merge some files from coreutils.  These changes were
103024         originally made by Jim Meyering.
103025         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
103026         many older Unixes require this.
103027         * lib/alloca.c (alloca): Remove cast to argument of free;
103028         no longer needed in C89.
103029         * lib/alloca_.h, regex.h: Fix white space to match
103030         what GNU indent does.
103032 2003-08-09  Paul Eggert  <eggert@twinsun.com>
103034         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
103035         apparently Emacs's Unicode mode got confused before my 2003-08-05
103036         checkin.
103038 2003-08-08  Paul Eggert  <eggert@twinsun.com>
103040         * m4/extensions.m4: New file.
103041         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
103042         Require gl_USE_SYSTEM_EXTENSIONS.
103043         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
103044         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
103046 2003-08-08  Paul Eggert  <eggert@twinsun.com>
103048         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
103049         * modules/extensions, modules/gnu-source: New files.
103050         * modules/timespec, modules/unlocked-io: Depend on extensions.
103052 2003-08-07  Paul Eggert  <eggert@twinsun.com>
103054         * modules/restrict: New file.
103055         * MODULES.html.sh (func_all_modules): Add restrict.
103056         * modules/regex: Depend on restrict.
103058 2003-08-07  Paul Eggert  <eggert@twinsun.com>
103060         * m4/restrict.m4: New file.
103061         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
103063 2003-08-07  Bruno Haible  <bruno@clisp.org>
103065         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
103066         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
103068 2003-08-07  Bruno Haible  <bruno@clisp.org>
103070         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
103071         makes the module 'getndelim2' compatible with the module 'getline'.
103073 2003-08-05  Paul Eggert  <eggert@twinsun.com>
103075         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
103076         byte with "\201" to avoid glitches when editing that source file
103077         with multi-gnome-terminal.
103079 2003-08-05  Paul Eggert  <eggert@twinsun.com>
103081         * lib/bumpalloc.h: Remove.
103083 2003-08-05  Paul Eggert  <eggert@twinsun.com>
103085         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
103086         * modules/bumpalloc: Remove.
103088 2003-08-04  Paul Eggert  <eggert@twinsun.com>
103090         * lib/getloadavg.c: Change copyright notice and spacing to conform to
103091         GNU coding style.
103093         Merge from coreutils.
103094         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
103095         1. From glibc.
103096         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
103097         from Karl Berry, implemented by Jim Meyering.
103098         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
103099         from Dmitry V. Levin.
103100         Remove anachronistic cast of xrealloc.
103101         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
103102         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
103103         type. Otherwise, it wouldn't compile with at least /bin/cc on
103104         ymp-cray-unicos9.0.2.X.
103105         Combine two mostly-identical uses of alloca into one.
103106         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
103108 2003-08-04  Dave Love  <d.love@dl.ac.uk>
103110         [From Emacs.]
103112         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
103113         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
103114         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
103115         obsolete NLIST_NAME_UNION.
103116         [__GNU__]: Undef BSD and FSCALE.
103117         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
103119 2003-08-03  Paul Eggert  <eggert@twinsun.com>
103121         * lib/stdbool_.h (_Bool): Make it signed char, instead of
103122         an enum type, so that it's guaranteed to promote to int.  See:
103123         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
103125 2003-08-03  Karl Berry  <karl@gnu.org>
103127         * config/depcomp: update from automake.
103129 2003-07-31  Paul Eggert  <eggert@twinsun.com>
103131         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
103132         (strerror): Don't assume that a printable int fits in 14 bytes.
103134 2003-07-31  Bruno Haible  <bruno@clisp.org>
103136         * modules/getpass-gnu: New file.
103137         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
103139 2003-07-31  Bruno Haible  <bruno@clisp.org>
103141         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
103143 2003-07-24  Karl Berry  <karl@gnu.org>
103145         * config/missing: update from automake.
103147 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
103148             Bruno Haible  <bruno@clisp.org>
103150         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
103151         * lib/getline.c (getline, getdelim): Likewise.
103152         Remove _GNU_SOURCE define; now it's defined in config.h through
103153         m4/getline.m4.
103155 2003-07-23  Karl Berry  <karl@gnu.org>
103157         * config/config.sub: update from prep.
103159 2003-07-22  Paul Eggert  <eggert@twinsun.com>
103161         * modules/xalloc (Depends-on): Add exitfail.
103162         * modules/xmemcoll: Likewise.
103164 2003-07-22  Paul Eggert  <eggert@twinsun.com>
103166         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
103167         over-parenthesization in macros.
103169         Sync with coreutils.
103171         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
103172         required by C99.
103174         Use `exit_failure' for xalloc and xmemcoll instead of their own
103175         private exit-failure variables.
103176         * lib/xalloc.h (xalloc_exit_failure): Remove.
103177         * lib/xmalloc.c: Likewise.  Include exitfail.h.
103178         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
103179         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
103180         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
103181         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
103183 2003-07-20  Jim Meyering  <jim@meyering.net>
103185         * modules/closeout (Depends-on): Add exitfail.
103186         Suggestion from Bruno Haible.
103188 2003-07-19  Karl Berry  <karl@gnu.org>
103190         * config/config.sub: update from prep.
103192 2003-07-18  Paul Eggert  <eggert@twinsun.com>
103194         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
103195         Remove.
103196         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
103197         to test that it can stand by itself.  Include "exitfail.h".
103198         Clients should set exit_failure instead.
103199         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
103201 2003-07-18  Bruno Haible  <bruno@clisp.org>
103203         * modules/getndelim2: New file.
103204         * modules/getline: Share files with module getndelim2.
103205         * modules/getnline: Depend on getndelim2 instead of sharing files with
103206         it. Add getnline.c to lib_SOURCES.
103207         * MODULES.html.sh (func_all_modules): Add getndelim2.
103209 2003-07-18  Bruno Haible  <bruno@clisp.org>
103211         * m4/getndelim2.m4: New file.
103212         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
103213         invoke gl_PREREQ_GETNDELIM2.
103214         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
103215         gl_PREREQ_GETNDELIM2.
103216         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
103217         gl_GETNDELIM2.
103219 2003-07-18  Bruno Haible  <bruno@clisp.org>
103221         * lib/getndelim2.h: New file.
103222         * lib/getndelim2.c: Make into a module of its own. Include config.h,
103223         getndelim2.h.
103224         (getndelim2): Make non-static. Change return type to ssize_t.
103225         * lib/getline.h: Change argument names.
103226         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
103227         * lib/getnline.c: Include getndelim2.h.
103229 2003-07-18  Andreas Schwab  <schwab@suse.de>
103231         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
103233 2003-07-17  Karl Berry  <karl@gnu.org>
103235         * config/config.sub: update from prep.
103237 2003-07-17  Bruno Haible  <bruno@clisp.org>
103239         * modules/getnline: New file.
103240         * modules/getline: Add lib/getndelim2.c to source file list.
103241         * MODULES.html.sh (func_all_modules): Add getnline.
103243 2003-07-17  Bruno Haible  <bruno@clisp.org>
103245         * m4/getnline.m4: New file.
103247 2003-07-17  Bruno Haible  <bruno@clisp.org>
103249         * m4/Makefile.am.in: Remove file.
103250         * m4/Makefile.am: Remove file.
103251         * m4/Makefile.in: Remove file.
103253 2003-07-17  Bruno Haible  <bruno@clisp.org>
103255         * lib/getnline.h: New file.
103256         * lib/getnline.c: New file.
103257         * lib/getndelim2.c: New file, extracted from getline.c.
103258         (getndelim2): Renamed from getdelim2, with added nmax argument.
103259         * lib/getline.c: Include getndelim2.c.
103260         (getdelim2): Moved out to getndelim2.c.
103261         (getline, getdelim): Update.
103263 2003-07-17  Bruno Haible  <bruno@clisp.org>
103265         * lib/Makefile.am: Remove file.
103266         * lib/Makefile.in: Remove file.
103268 2003-07-17  Bruno Haible  <bruno@clisp.org>
103270         * configure.in: Remove file.
103271         * Makefile.in: Remove file.
103273 2003-07-17  Bruno Haible  <bruno@clisp.org>
103275         * MODULES.html.sh: Put the </BODY> right before </HTML>.
103277 2003-07-16  Karl Berry  <karl@gnu.org>
103279         * config/srclist-update: was running fixlicense twice, which caused
103280                 texinfo.tex to be nullified for some reason.  Simplify,
103281                 $gplsrc is no longer needed as far as I can see?
103283 2003-07-16  Jim Meyering  <jim@meyering.net>
103285         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
103287 2003-07-15  Paul Eggert  <eggert@twinsun.com>
103289         * config/srclist.txt: Get the following files from gettext-runtime/intl
103290         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
103291         ref-del.sin.  From Bruno Haible.
103292         * config/srclist-update (fixfile): Change grep pattern again, since the
103293         previous fix didn't work (there was another trailing $).  Use
103294         '[$]' to escape the $s.
103296 2003-07-15  Karl Berry  <karl@gnu.org>
103298         * lib/vasnprintf.c: update from gettext.
103300 2003-07-15  Karl Berry  <karl@gnu.org>
103302         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
103303         gets expanded when surrounded by '$'.
103305 2003-07-15  Jim Meyering  <jim@meyering.net>
103307         * modules/save-cwd: Don't depend on error.  From Derek Price.
103309 2003-07-15  Jim Meyering  <jim@meyering.net>
103311         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
103313 2003-07-14  Simon Josefsson  <jas@extundo.com>
103315         * modules/mempcpy: New file.
103316         * MODULES.html.sh (func_all_modules): Add mempcpy.
103318 2003-07-14  Simon Josefsson  <jas@extundo.com>
103320         * m4/mempcpy.m4: New file.
103322 2003-07-14  Simon Josefsson  <jas@extundo.com>
103324         * lib/mempcpy.h: New file.
103325         * lib/mempcpy.c: New file.
103327 2003-07-14  Paul Eggert  <eggert@twinsun.com>
103329         * modules/getdate, modules/posixtm: Depend on mktime.
103331 2003-07-14  Paul Eggert  <eggert@twinsun.com>
103333         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
103334         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
103335         unicodeio.c, unicodeio.h, unlocked-io.h:
103336         Switch from LGPL to GPL.
103338 2003-07-14  Paul Eggert  <eggert@twinsun.com>
103340         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
103341         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
103342         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
103343         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
103344         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
103345         updated automatically by ../config/srclist-update.  This changes
103346         their license from LPGL to GPL.
103348 2003-07-14  Paul Eggert  <eggert@twinsun.com>
103350         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
103351         assumed to refer to the root of the most recent stable gettext version.
103352         * config/srclistvars.sh: Add defaults for eggert.
103353         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
103354         Match "This program" as well as "The program".  This is needed
103355         for gettext.
103357 2003-07-14  Jim Meyering  <jim@meyering.net>
103359         Don't emit diagnostics.  Let callers do that.
103360         * lib/save-cwd.c: Don't include "error.h".
103361         (save_cwd): Don't call error.  Ensure that errno is valid
103362         when returning nonzero.
103364         * lib/save-cwd.h (restore_cwd): Update prototype.
103365         * lib/save-cwd.c (restore_cwd): Remove two parameters.
103366         Simplify.  Don't call error upon failure.  Let callers do that.
103367         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
103368         when auditing is enabled.  But don't bother updating the #if.
103370 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
103372         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
103373         it breaks C++ compilation.
103374         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
103376 2003-07-10  Simon Josefsson  <jas@extundo.com>
103378         * modules/strchrnul (Makefile.am): Add strchrnul.h.
103380 2003-07-10  Jim Meyering  <jim@meyering.net>
103382         * m4/clock_time.m4: Remove trailing blank.
103383         * m4/intmax_t.m4: Likewise.
103385 2003-07-10  Jim Meyering  <jim@meyering.net>
103387         * lib/vasnprintf.c: Remove trailing blanks.
103388         Make cpp indentation consistent.
103390 2003-07-09  Paul Eggert  <eggert@twinsun.com>
103392         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
103393         posixver.c, strftime.c, strnlen.c, strverscmp.c:
103394         Switch from LGPL to GPL.
103396 2003-07-09  Paul Eggert  <eggert@twinsun.com>
103398         * config/srclist.txt: Sort sublists.  Add
103399         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
103400         that differ from gnulib for one reason or another; we'd like this list
103401         to be smaller but for now let's document what we have.
103403 2003-07-08  Paul Eggert  <eggert@twinsun.com>
103405         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
103406         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
103407         and sweeter "eval x=$x".
103408         * config/srclist.txt: Get lib/argp* from glibc.
103410 2003-07-07  Paul Eggert  <eggert@twinsun.com>
103412         * lib/mktime.c: Fix some boundary cases and remove need for floating
103413         point.
103415         Issue a compile-time diagnostic if time_t is floating point, or if
103416         two's complement arithmetic is not in effect, or if arithmetic
103417         right shift does not propagate the sign.  These assumptions were
103418         all in the original code but they weren't checked.
103420         (TIME_T_MIDPOINT, verify): New macros.
103421         (__isleap): Remove; it has integer overflow problems.
103422         (leapyear): New function, without those problems.
103423         (ydhms_tm_diff): Remove; splitting into two parts.
103424         (ydhms_diff): New function, containing the arithmetic part of
103425         the old ydhms_tm_diff function.  Issue a compile-time
103426         diagnostic if we are not using C99 integer division.
103427         Avoid casts when possible.
103428         (guess_time_tm): New function, containing the checking part of
103429         the old ydhms_tm_diff function.  Return the new value, rather than
103430         the difference between it and the old.  Accept a new argument T
103431         so that *T specifies the old value.  Check for overflow in the result.
103433         (__mktime_internal): Use a time_t offset, not a long int offset.
103434         This undoes the 2003-06-04 change, which is no longer needed now
103435         that we have better overflow checking.
103436         (localtime_offset): Likewise.
103438         (__mktime_internal): Avoid harmful overflow on hosts where time_t
103439         and long are 64-bit but int is only 32-bit.
103440         (ydhms_diff): Use long int to store year1 and yday1.
103441         Issue a compile-time diagnostic if long int is not wide enough.
103443         (__mktime_internal): Use long int to store adjusted year and yday.
103444         Use plain C rather than preprocessor commands, if that doesn't
103445         affect efficiency.
103446         Check for overflow (and try to repair) after each probe
103447         rather than checking only at the very end.  This avoids some bugs
103448         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
103449         does not equal GMT offset at maximum time).
103450         Use integer to check for overflow rather than floating point; this
103451         is more portable to non-IEEE hosts, and is a tad faster.
103452         When we detect that we are oscillating between two values,
103453         don't check whether tm_isdst has the requested value, since
103454         we already know the answer.  When tm_isdst has the wrong value,
103455         use a different heuristic to find the right one, based on the
103456         extreme values actually observed in practice in tz2003a,
103457         rather than the (overly optimistic) "previous 3 calendar quarters".
103459         (not_equal_tm, print_tm, check_result): Use "const T" rather than
103460         "T const" to accommodate glibc style.
103461         (check_result): Use less-confusing report format.  "long" -> "long int.
103462         (main): Likewise.
103463         Don't loop if the iteration overflows time_t.
103464         Allow a negative step in the iteration.
103466 2003-07-06  Karl Berry  <karl@gnu.org>
103468         * config/depcomp: update from automake.
103469         * config/config.sub: update from prep.
103471 2003-07-03  Karl Berry  <karl@gnu.org>
103473         * config/config.guess: update from prep.
103475 2003-07-01  Paul Eggert  <eggert@twinsun.com>
103477         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
103478         xreadlink.c now includes it unconditionally.
103480 2003-07-01  Paul Eggert  <eggert@twinsun.com>
103482         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
103483         having it depend on HAVE_SYS_TYPES_H.
103485 2003-07-01  Bruno Haible  <bruno@clisp.org>
103487         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
103488         <sys/types.h> should be sufficient.
103489         Reported by Paul Eggert.
103491 2003-06-26  Karl Berry  <karl@gnu.org>
103493         * config/depcomp: update from automake.
103495 2003-06-26  Bruno Haible  <bruno@clisp.org>
103497         * modules/human: Depend on module stdbool.
103499 2003-06-25  Bruno Haible  <bruno@clisp.org>
103501         * modules/readlink: New file.
103502         * modules/xreadlink: Depend on it.
103503         * MODULES.html.sh (func_all_modules): Add readlink.
103505 2003-06-25  Bruno Haible  <bruno@clisp.org>
103507         * m4/readlink.m4: New file.
103509 2003-06-25  Bruno Haible  <bruno@clisp.org>
103511         * lib/readlink.c: New file.
103513 2003-06-22  Karl Berry  <karl@gnu.org>
103515         * config/srclist.txt: update mkinstalldirs from automake.
103516         * config/mkinstalldirs: update.
103518 2003-06-22  Bruno Haible  <bruno@clisp.org>
103520         Portability to mingw32.
103521         * m4/ssize_t.m4: New file, from GNU gettext.
103522         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
103523         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
103525 2003-06-22  Bruno Haible  <bruno@clisp.org>
103527         * modules/safe-read: Add m4/ssize_t.m4.
103528         * modules/xreadlink: Add m4/ssize_t.m4.
103530 2003-06-20  Bruno Haible  <bruno@clisp.org>
103532         Assume C89, so PARAMS isn't needed.
103533         * lib/unicodeio.h (PARAMS): Remove.
103534         * lib/unicodeio.c: Don't use PARAMS.
103536 2003-06-18  Karl Berry  <karl@gnu.org>
103538         * config/config.{guess,sub}: update from prep.
103540 2003-06-18  Jim Meyering  <jim@meyering.net>
103542         Merge changes from coreutils.
103543         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
103544         Remove explicit declarations of xmalloc and realloc.
103545         Include xalloc.h.
103546         (read_utmp): Remove anachronistic cast of xmalloc.
103548 2003-06-17  Paul Eggert  <eggert@twinsun.com>
103550         Assume C89, so PARAMS isn't needed.
103551         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
103552         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
103553         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
103554         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
103555         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
103556         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
103557         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
103558         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
103559         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
103560         lib/xstrtod.h, lib/xstrtol.h: Likewise.
103561         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
103562         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
103563         no longer needed. Anyway, config.h should always be included before any
103564         other file.
103566 2003-06-11  Simon Josefsson  <jas@extundo.com>
103568         * modules/sysexits: New file.
103569         * MODULES.html.sh (func_all_modules): Add sysexits.
103571 2003-06-11  Simon Josefsson  <jas@extundo.com>
103573         * lib/sysexit_.h: New file.
103575 2003-06-11  Derek Price  <derek@ximbiot.com>
103577         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
103578         necessary.
103580 2003-06-11  Bruno Haible  <bruno@clisp.org>
103582         * m4/sysexits.m4: New file.
103584 2003-06-10  Simon Josefsson  <jas@extundo.com>
103586         * lib/argp.h: New file, from glibc.
103587         * lib/argp-ba.c: New file, from glibc.
103588         * lib/argp-eexst.c: New file, from glibc.
103589         * lib/argp-fmtstream.c: New file, from glibc.
103590         * lib/argp-fmtstream.h: New file, from glibc.
103591         * lib/argp-fs-xinl.c: New file, from glibc.
103592         * lib/argp-help.c: New file, from glibc.
103593         * lib/argp-namefrob.h: New file, from glibc.
103594         * lib/argp-parse.c: New file, from glibc.
103595         * lib/argp-pv.c: New file, from glibc.
103596         * lib/argp-pvh.c: New file, from glibc.
103597         * lib/argp-xinl.c: New file, from glibc.
103599 2003-06-10  Simon Josefsson  <jas@extundo.com>
103601         * modules/strchrnul: New file.
103603 2003-06-10  Simon Josefsson  <jas@extundo.com>
103605         * modules/argp: New file.
103607 2003-06-10  Simon Josefsson  <jas@extundo.com>
103609         * m4/strchrnul.m4: New file.
103611 2003-06-10  Simon Josefsson  <jas@extundo.com>
103613         * lib/strchrnul.h: New file.
103614         * lib/strchrnul.c: New file.
103616 2003-06-10  Bruno Haible  <bruno@clisp.org>
103618         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
103620 2003-06-07  Karl Berry  <karl@gnu.org>
103622         * config/config.{guess,sub}: update from prep.
103624 2003-06-07  Jim Meyering  <jim@meyering.net>
103626         * modules/strtod: Use $(...) notation, not @...@ for
103627         AC_REPLACE'd variables.
103628         * modules/localcharset: Likewise.
103630 2003-06-07  Jim Meyering  <jim@meyering.net>
103632         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
103633         in place of my name in the copyright comment.
103634         Remove definition and uses of __P.
103636         From coreutils.
103637         * lib/stat.c: Don't declare xmalloc explicitly.
103638         Instead, include "xalloc.h".
103639         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
103640         xrealloc, and xcalloc return values.
103641         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
103642         Improve comment.
103643         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
103645 2003-06-07  Bruno Haible  <bruno@clisp.org>
103647         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
103648         avoid AC_CONFIG_LINKS.
103649         * modules/fnmatch (Makefile.am): Use explicit creation rule for
103650         fnmatch.h, to avoid AC_CONFIG_LINKS.
103651         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
103653 2003-06-07  Bruno Haible  <bruno@clisp.org>
103655         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
103656         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
103657         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
103658         directory.
103659         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
103660         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
103661         directory.
103663 2003-06-06  Jim Meyering  <jim@meyering.net>
103665         Merge from coreutils.
103666         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
103667         Consolidate declarations and initializations of *_base* locals.
103669         Merge from coreutils.
103670         This avoids a core dump on systems without GNU putenv,
103671         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
103672         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
103673         (unsetenv): New static function, from GNU libc.
103674         (rpl_putenv): Use it.
103676         * lib/modechange.c: Remove trailing blanks.
103678         Merge from coreutils.
103679         * lib/fsusage.c: Remove declaration of statfs.
103680         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
103682         * lib/posixtm.c: Include <stdbool.h> unconditionally.
103684 2003-06-06  Jim Meyering  <jim@meyering.net>
103686         * lib/stdbool_.h: Renamed from stdbool.h.in.
103688 2003-06-06  Jim Meyering  <jim@meyering.net>
103689             Bruno Haible  <bruno@clisp.org>
103691         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
103692         Adjust Makefile.am snippet not to redirect directly to target.
103693         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
103695 2003-06-05  Paul Eggert  <eggert@twinsun.com>
103697         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
103698         mismatch, look in future quarters as well as past.  This fixes a
103699         bug when processing fall-backwards gaps immediately after a long
103700         period of daylight-saving time.
103702         * lib/mktime.c: Assume freestanding C89 or better.
103703         (HAVE_LIMITS_H): Remove.  Assume it's 1.
103704         (__P): Remove; not used.
103705         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
103706         (mktime, not_equal_tm, print_tm, check_result,
103707         main): Use prototypes.  Use const * where appropriate.
103708         (main): Fix typo in testing code that uncovered by above changes.
103709         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
103711 2003-06-04  Paul Eggert  <eggert@twinsun.com>
103713         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
103714         locale.h, localeconv.  This merges changes from coreutils.
103716         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
103717         It can be removed after the next Autoconf is released.
103718         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
103719         needed.
103721 2003-06-04  Paul Eggert  <eggert@twinsun.com>
103723         * lib/mktime.c: Fix Debian bug 177940
103724         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
103725         (localtime_offset): Now long int, not time_t, because we want it
103726         to be guaranteed to be signed.  All uses changed.
103727         (__mktime_internal): If overflow would occur when adding offset,
103728         don't add it.
103730         Merge 'human' changes from coreutils.  Rewrite to support
103731         locale-specific notations like thousands separators.
103732         * lib/human.c: Simplify authorship notice.
103733         Include human.h immediately after config.h.
103734         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
103735         <limits.h>: Do not include, since human.h does.
103736         (SIZE_MAX, UINTMAX_MAX): New macros.
103737         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
103738         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
103739         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
103740         (power_letter): Renamed from suffixes.
103741         (generate_suffix_backwards): Remove.
103742         (adjust_value): Now takes int style (because of human.h changes)
103743         and long double value (for greater precision on some platforms).
103744         (group_number): New function.
103745         (human_readable): Use it.  Use integer options, not enum.
103746         Put the options before the sizes in the arg list.
103747         Support all the new options.
103748         The old human_readable function has been removed;
103749         use inttostr.h instead.
103750         (human_readable, default_block_size, humblock):
103751         Use uintmax_t, not int, for block sizes.
103752         (human_readable_inexact, block_size_types): Remove.
103753         (block_size_opts): New constant.
103754         (human_options): Renamed from human_block_size, with new signature
103755         that allows block sizes up to UINTMAX_MAX.  All callers changed.
103756         * lib/human.h: Add copyright and authorship notice.
103757         Include <limits.h> and <stdbool.h> unconditionally.
103758         (PARAMS): Remove.  All uses removed.
103759         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
103760         (enum human_inexact_style): Remove tag; now a nameless enum.
103761         (human_floor, human_ceiling, human_round_to_even): Now have
103762         values 2, 0, 1 rather than -1, 1, 0.
103763         (human_group_digits, human_suppress_point_zero, human_autoscale,
103764         human_base_1024, human_SI, human_B): New constants.
103765         (human_readable_inexact, human_block_size): Remove.
103766         (human_readable): Size args are now uintmax_t, not int.
103767         (human_options): New decl.
103769         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
103770         unnecessary now that we assume C89 or better.  This change
103771         imported from coreutils.
103773         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
103774         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
103775         in the 2003-05-30 sync from glibc.
103777         .h files should stand alone, but we shouldn't include <sys/types.h>
103778         if we can get away with just <stddef.h>.
103780         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
103781         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
103782         rather than <sys/types.h>, as we merely need size_t.
103783         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
103784         to get size_t.
103785         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
103786         Include <stdio.h>, to get FILE.
103787         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
103788         memcasecmp.h has included <stddef.h> and all we need is size_t.
103789         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
103790         our interface, instead of including <sys/types.h>
103792 2003-06-04  Paul Eggert  <eggert@twinsun.com>
103794         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
103795         now, as glibc mktime is buggy on non-glibc systems.
103797 2003-06-03  Karl Berry  <karl@gnu.org>
103799         * config/config.sub: update from prep.
103801 2003-06-02  Paul Eggert  <eggert@twinsun.com>
103803         [from coreutils]
103804         Fix some minor time-related bugs with POSIX time arguments.
103805         Some valid time stamps were being rejected (notably -1, and
103806         time stamps before 1900 on 64-bit hosts).  And some invalid
103807         time stamps were being accepted, e.g. September 31.
103809         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
103810         that we can return (time_t) -1 successfully.
103811         * lib/posixtm.c: Likewise.
103812         [HAVE_STDBOOL_H]: Include <stdbool.h>.
103813         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
103814         (t): Remove static var.
103815         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
103816         of static var.  All uses changed.
103817         (year): Do not reject years before 1900; they can occur with
103818         64-bit time_t.
103819         (posix_time_parse): Do not check for out-of-range components;
103820         that is now the caller's responsibility, since our checks were
103821         only approximations.
103822         (posixtime): Use mktime to check for out-of-range components,
103823         since it knows them exactly.
103824         If mktime returns (time_t) -1, check whether an error actually occurred
103825         by invoking localtime on -1.
103826         (main) [TEST_POSIXTIME]: Check for input data errors, and report
103827         posixtime failures better.
103828         Improve the test data (in comments only).
103830 2003-06-02  Karl Berry  <karl@gnu.org>
103832         * config/mkinstalldirs (version): new variable.
103833         (--version): new option.
103834         (usage): improve message.
103836 2003-05-30  Karl Berry  <karl@gnu.org>
103838         * lib/mktime.c: update from libc.
103840 2003-05-30  Bruno Haible  <bruno@clisp.org>
103842         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
103843         * config/config.rpath: Upgrade to gettext-0.12.1.
103845 2003-05-30  Bruno Haible  <bruno@clisp.org>
103847         * m4/gettext.m4: Upgrade to gettext-0.12.1.
103848         * m4/nls.m4: New file, from gettext-0.12.1.
103849         * m4/po.m4: New file, from gettext-0.12.1.
103850         * m4/progtest.m4: Upgrade to gettext-0.12.1.
103852 2003-05-30  Bruno Haible  <bruno@clisp.org>
103854         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
103855         * lib/localcharset.h: Likewise.
103856         * lib/localcharset.c: Likewise.
103858 2003-05-29  Karl Berry  <karl@gnu.org>
103860         * config/config.rpath: update from gettext.
103862 2003-05-28  Paul Eggert  <eggert@twinsun.com>
103864         Assume the headers required for C89 freestanding compilers.
103865         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
103866         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
103867         * m4/human.m4 (gl_HUMAN): Likewise.
103868         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
103869         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
103870         * m4/userspec.m4 (gl_USERSPEC): Likewise.
103871         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
103872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
103873         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
103875 2003-05-28  Paul Eggert  <eggert@twinsun.com>
103877         Assume the headers required for C89 freestanding compilers.
103878         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
103879         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
103880         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
103881         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
103882         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
103883         define, since <limits.h> is guaranteed to do that.
103884         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
103885         * lib/exclude.c: Include <stdbool.h> unconditionally.
103886         * lib/tempname.c: Include <stddef.h> unconditionally.
103887         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
103888         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
103889         <stddef.h> does that.
103890         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
103891         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
103892         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
103893         needed.
103894         * lib/xstrtol.c: Likewise.
103895         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
103896         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
103898         * lib/addext.c (addext): Use assignment rather than cast, to avoid
103899         warnings on some platforms.
103901         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
103902         arbitrarily.
103904 2003-05-26  Jim Meyering  <jim@meyering.net>
103906         Merge in a change from coreutils:
103907         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
103908         that is guaranteed to be `no'.  Use `no_such_member' to indicate
103909         that condition, rather than `-1' which is slightly misleading.
103910         Change the name of the cache variable to have the gl_ prefix.
103911         Prompted by a patch from Richard Dawe for DJGPP.
103913 2003-05-24  Karl Berry  <karl@gnu.org>
103915         * config/config.guess: update from prep.
103917 2003-05-22  Karl Berry  <karl@gnu.org>
103919         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
103921 2003-05-20  Karl Berry  <karl@gnu.org>
103923         * config/config.guess: update from prep.
103925 2003-05-18  Karl Berry  <karl@gnu.org>
103927         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
103928         might actually be set by the user.
103930         * config/depcomp, install-sh, mdate-sh: update from automake.
103932 2003-05-17  Bruno Haible  <bruno@clisp.org>
103934         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
103935         invalid expansion for AC_EGREP_CPP.
103936         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
103937         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
103938         Suggested by Akim Demaille <akim@epita.fr> in
103939         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
103941 2003-05-12  Jim Meyering  <jim@meyering.net>
103943         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
103944         the space-padded-by-default conversion specifiers, %e, %k, %l.
103946 2003-05-12  Bruno Haible  <bruno@clisp.org>
103948         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
103949         the string is longer than 4 KB.
103951 2003-05-11  Karl Berry  <karl@gnu.org>
103953         * config/config.{guess,sub}: update from prep.
103955 2003-05-09  Bruno Haible  <bruno@clisp.org>
103957         * modules/error: Add m4/strerror_r.m4 to file list.
103959 2003-05-03  Bruno Haible  <bruno@clisp.org>
103961         Upgrade to Unicode-4.0.
103962         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
103963         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
103964         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
103965         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
103966         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
103967         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
103968         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
103969         Change width of U+E0100..U+E01EF from 1 to 0.
103971 2003-04-25  Jim Meyering  <jim@meyering.net>
103973         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
103974         of type size_t, not int.
103976 2003-04-25  Bruno Haible  <bruno@clisp.org>
103978         * lib/copy-file.c: Include <stddef.h>, for size_t.
103980 2003-04-21  Paul Eggert  <eggert@twinsun.com>
103982         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
103983         code which expansion is under static control.  Patch imported from
103984         Akim Demaille's patch to Bison; see
103985         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
103987 2003-04-14  Bruno Haible  <bruno@clisp.org>
103989         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
103991 2003-04-11  Jim Meyering  <jim@meyering.net>
103993         Merge changes from Coreutils.
103995         2003-03-22  Jim Meyering  <jim@meyering.net>
103997         * lib/strftime.c (widen): Cast alloca return value to proper type.
103999         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
104001         From GNU libc.
104002         * lib/strftime.c (my_strftime): Handle very large width
104003         specifications for numeric values correctly.  Improve checks for
104004         overflow.
104006         2003-01-19  Jim Meyering  <jim@meyering.net>
104008         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
104009         definitions.
104010         (nl_get_alt_digit) [! defined my_strftime]: Define.
104011         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
104012         _nl_get_alt_digit and _nl_get_walt_digit.
104014         * lib/strftime.c (my_strftime): Merge in locale-related changes from
104015         libc. These changes have no effect outside of _LIBC.
104017 2003-04-10  Bruno Haible  <bruno@clisp.org>
104019         * modules/findprog: New file.
104020         * MODULES.html.sh (func_all_modules): Add it.
104022 2003-04-10  Bruno Haible  <bruno@clisp.org>
104024         * m4/findprog.m4: New file.
104025         * m4/eaccess.m4: New file.
104027 2003-04-10  Bruno Haible  <bruno@clisp.org>
104029         * lib/findprog.h: New file, from GNU gettext.
104030         * lib/findprog.c: New file, from GNU gettext.
104032 2003-04-05  Jim Meyering  <jim@meyering.net>
104034         Merge changes from Coreutils.
104036         * lib/exclude.h (PARAMS): Remove definition and uses.
104037         * lib/exclude.c: Remove uses of `PARAMS'.
104039         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
104040         Add test-cases for DOS filenames. Declare program_name.
104041         (main): Set up program_name.  Patch by Rich Dawe.
104043         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
104044         error from mntctl.
104045         Use mntctl's return value to drive the entry-processing loop, since
104046         we can't rely on the value of the vmt_length member in the last
104047         entry.  On some systems doing so could result in exhausting
104048         virtual memory.  Based in part on a patch from Mike Jetzer.
104050 2003-04-04  Bruno Haible  <bruno@clisp.org>
104052         * modules/linebreak: New file.
104053         * MODULES.html.sh (func_all_modules): Add it.
104055 2003-04-04  Bruno Haible  <bruno@clisp.org>
104057         * m4/linebreak.m4: New file.
104059 2003-04-04  Bruno Haible  <bruno@clisp.org>
104061         * lib/linebreak.h: New file, from GNU gettext.
104062         * lib/linebreak.c: New file, from GNU gettext with slight
104063         modifications.
104064         * lib/lbrkprop.h: New file, from GNU gettext.
104066 2003-04-03  Bruno Haible  <bruno@clisp.org>
104068         * modules/utf8-ucs4: New file.
104069         * modules/utf16-ucs4: New file.
104070         * modules/ucs4-utf8: New file.
104071         * modules/ucs4-utf16: New file.
104072         * MODULES.html.sh (func_all_modules): Add them.
104074 2003-04-03  Bruno Haible  <bruno@clisp.org>
104076         * m4/utf-ucs4.m4: New file.
104077         * m4/ucs4-utf.m4: New file.
104079 2003-04-03  Bruno Haible  <bruno@clisp.org>
104081         * lib/utf8-ucs4.h: New file, from GNU gettext.
104082         * lib/utf16-ucs4.h: New file, from GNU gettext.
104083         * lib/ucs4-utf8.h: New file, from GNU gettext.
104084         * lib/ucs4-utf16.h: New file, from GNU gettext.
104086 2003-04-02  Bruno Haible  <bruno@clisp.org>
104088         * modules/binary-io: New file.
104089         * MODULES.html.sh (func_all_modules): Add it.
104091 2003-04-02  Bruno Haible  <bruno@clisp.org>
104093         * lib/binary-io.h: New file, from GNU gettext.
104095 2003-04-01  Bruno Haible  <bruno@clisp.org>
104097         * modules/pathname: New file.
104098         * MODULES.html.sh (func_all_modules): Add it.
104100 2003-04-01  Bruno Haible  <bruno@clisp.org>
104102         * lib/pathname.h: New file, from GNU gettext.
104103         * lib/concatpath.c: New file, from GNU gettext.
104105 2003-03-30  Bruno Haible  <bruno@clisp.org>
104107         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
104109 2003-03-30  Bruno Haible  <bruno@clisp.org>
104111         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
104112         function chown() doesn't exist.
104114 2003-03-28  Bruno Haible  <bruno@clisp.org>
104116         * modules/copy-file: New file.
104117         * MODULES.html.sh (func_all_modules): Add it.
104119 2003-03-28  Bruno Haible  <bruno@clisp.org>
104121         * m4/copy-file.m4: New file.
104123 2003-03-28  Bruno Haible  <bruno@clisp.org>
104125         * lib/copy-file.h: New file, from GNU gettext.
104126         * lib/copy-file.c: New file, from GNU gettext.
104128 2003-03-18  Jim Meyering  <jim@meyering.net>
104130         * lib/quote.c (quote_n): Fix typo in comment.
104132 2003-03-18  Bruno Haible  <bruno@clisp.org>
104134         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
104135         checking.
104136         * m4/onceonly_2_57.m4: Likewise.
104138 2003-03-17  Bruno Haible  <bruno@clisp.org>
104140         * m4/onceonly.m4: Require autoconf 2.54 or newer.
104141         (m4_quote): Remove macro.
104142         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
104144 2003-03-14  Jim Meyering  <jim@meyering.net>
104146         Merge changes from Coreutils.
104147         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
104148         to be const, in order to avoid warnings.
104149         (obstack_room): Likewise.
104150         (obstack_empty_p): Likewise.
104152 2003-03-14  Bruno Haible  <bruno@clisp.org>
104154         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
104155         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
104157 2003-03-13  Paul Eggert  <eggert@twinsun.com>
104159         Merge changes from Bison.
104160         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
104161         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
104162         when compiling Bison 1.875's `bitset bset = obstack_alloc
104163         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
104164         * lib/hash.c: Include <stdbool.h> unconditionally.
104166 2003-03-13  Paul Eggert  <eggert@twinsun.com>
104168         * m4/onceonly.m4 (m4_quote): New macro.
104169         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
104170         Quote AC_FOREACH variable-expansions properly.
104172 2003-03-13  Paul Eggert  <eggert@twinsun.com>
104174         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
104176 2003-03-09  Paul Eggert  <eggert@twinsun.com>
104178         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
104179         Reported by Bruce Becker; see:
104180         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
104182 2003-03-03  Paul Eggert  <eggert@twinsun.com>
104183             Bruno Haible  <bruno@clisp.org>
104185         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
104186         Reported by John Hughes, see
104187         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
104189 2003-02-20  Bruno Haible  <bruno@clisp.org>
104191         * MODULES.html.sh (func_all_modules): Add poll.
104193 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
104195         * modules/poll: New file.
104197 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
104199         * lib/poll_.h: New file.
104200         * lib/poll.c: New file.
104202 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
104204         * m4/poll.m4: New file.
104206 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
104208         * modules/mathl: New file.
104210 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
104212         * lib/mathl.h: New file.
104213         * lib/acosl.c: New file.
104214         * lib/asinl.c: New file.
104215         * lib/atanl.c: New file.
104216         * lib/ceill.c: New file.
104217         * lib/cosl.c: New file.
104218         * lib/expl.c: New file.
104219         * lib/floorl.c: New file.
104220         * lib/frexpl.c: New file.
104221         * lib/ldexpl.c: New file.
104222         * lib/logl.c: New file.
104223         * lib/sincosl.c: New file.
104224         * lib/sinl.c: New file.
104225         * lib/sqrtl.c: New file.
104226         * lib/tanl.c: New file.
104227         * lib/trigl.c: New file.
104228         * lib/trigl.h: New file.
104230 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
104232         * m4/mathl.m4: New file.
104234 2003-02-18  Bruno Haible  <bruno@clisp.org>
104236         * MODULES.html.sh (func_all_modules): Add mathl.
104238 2003-02-17  Bruno Haible  <bruno@clisp.org>
104240         * modules/mkdtemp: New module.
104241         * MODULES.html.sh (func_all_modules): Add it.
104243 2003-02-17  Bruno Haible  <bruno@clisp.org>
104245         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
104247 2003-02-17  Bruno Haible  <bruno@clisp.org>
104249         * lib/mkdtemp.h: New file, from GNU gettext.
104250         * lib/mkdtemp.c: New file, from GNU gettext.
104252 2003-02-02  Jim Meyering  <jim@meyering.net>
104254         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
104255         e.g. glibc-2.2.93.
104257 2003-01-31  Bruno Haible  <bruno@clisp.org>
104259         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
104260         'rpl_rename'.
104261         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
104262         'rpl_strnlen'.
104263         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
104264         'rpl_strtod'.
104265         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
104266         'rpl_utime'.
104268 2003-01-31  Bruno Haible  <bruno@clisp.org>
104270         * lib/rename.c: #undef rename before defining rpl_rename.
104271         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
104273 2003-01-30  Bruno Haible  <bruno@clisp.org>
104275         * modules/vasnprintf, modules/vasprintf: New modules.
104276         * MODULES.html.sh (func_all_modules): Add them.
104278 2003-01-30  Bruno Haible  <bruno@clisp.org>
104280         * m4/signed.m4: New file, from GNU gettext.
104281         * m4/longdouble.m4: New file, from GNU gettext.
104282         * m4/wchar_t.m4: New file, from GNU gettext.
104283         * m4/wint_t.m4: New file, from GNU gettext.
104284         * m4/vasnprintf.m4: New file.
104285         * m4/vasprintf.m4: New file.
104287 2003-01-30  Bruno Haible  <bruno@clisp.org>
104289         * lib/printf-args.h: New file, from GNU gettext.
104290         * lib/printf-args.c: New file, from GNU gettext.
104291         * lib/printf-parse.h: New file, from GNU gettext.
104292         * lib/printf-parse.c: New file, from GNU gettext.
104293         * lib/vasnprintf.h: New file, from GNU gettext.
104294         * lib/vasnprintf.c: New file, from GNU gettext.
104295         * lib/asnprintf.c: New file, from GNU gettext.
104296         * lib/vasprintf.h: New file, from GNU gettext with modifications.
104297         * lib/vasprintf.c: New file, from GNU gettext.
104298         * lib/asprintf.c: New file, from GNU gettext.
104300 2003-01-29  Bruno Haible  <bruno@clisp.org>
104302         * modules/stpncpy: New module.
104303         * MODULES.html.sh (func_all_modules): Add it.
104305 2003-01-29  Bruno Haible  <bruno@clisp.org>
104307         * m4/stpncpy.m4: New file.
104309 2003-01-29  Bruno Haible  <bruno@clisp.org>
104311         * lib/stpncpy.h: New file, from GNU gettext with modifications.
104312         * lib/stpncpy.c: New file, from GNU gettext with modifications.
104314 2003-01-28  Bruno Haible  <bruno@clisp.org>
104316         * modules/c-ctype: New module.
104317         * MODULES.html.sh (func_all_modules): Add it.
104319 2003-01-28  Bruno Haible  <bruno@clisp.org>
104321         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
104322         Paul Eggert.
104323         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
104324         Paul Eggert.
104326 2003-01-27  Bruno Haible  <bruno@clisp.org>
104328         * modules/xsetenv: New module.
104329         * MODULES.html.sh (func_all_modules): Add it.
104331 2003-01-27  Bruno Haible  <bruno@clisp.org>
104333         * lib/xsetenv.h: New file, from GNU gettext.
104334         * lib/xsetenv.c: New file, from GNU gettext.
104336 2003-01-23  Jim Meyering  <jim@meyering.net>
104338         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
104339         from working on systems without dirfd (at least Irix and OSF1/Tru64).
104341 2003-01-23  Bruno Haible  <bruno@clisp.org>
104343         * modules/minmax: New module.
104344         * MODULES.html.sh (func_all_modules): Add it.
104346 2003-01-23  Bruno Haible  <bruno@clisp.org>
104348         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
104349         Eggert.
104351 2003-01-22  Bruno Haible  <bruno@clisp.org>
104353         * modules/exit: New module.
104354         * MODULES.html.sh (func_all_modules): Add it.
104356 2003-01-22  Bruno Haible  <bruno@clisp.org>
104358         * lib/exit.h: New file, from GNU gettext.
104360 2003-01-19  Bruno Haible  <bruno@clisp.org>
104362         * gnulib-tool: Recognize option --extract-maintainer.
104363         (func_get_maintainer): New function.
104364         * modules/*: Add Maintainer entry.
104366 2003-01-16  Jim Meyering  <jim@meyering.net>
104368         * m4/regex.m4: The `regex' struct is both input and output.
104369         Initialize it before each use.  Patch by Tim Waugh.
104371 2003-01-16  Bruno Haible  <bruno@clisp.org>
104373         * MODULES.html.sh: Add a table of contents. Add the module name as
104374         leftmost column. Add hyperlinks.
104376 2003-01-15  Bruno Haible  <bruno@clisp.org>
104378         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
104380 2003-01-15  Bruno Haible  <bruno@clisp.org>
104382         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
104383         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
104384         suffix.
104386 2003-01-15  Bruno Haible  <bruno@clisp.org>
104388         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
104390 2003-01-15  Bruno Haible  <bruno@clisp.org>
104392         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
104393         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
104395 2003-01-14  Jim Meyering  <jim@meyering.net>
104397         * lib/same.c (same_name): Tweak a comment.
104399 2003-01-14  Bruno Haible  <bruno@clisp.org>
104401         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
104402         when a string comparison is sufficient.
104404 2003-01-14  Bruno Haible  <bruno@clisp.org>
104406         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
104407         'unsigned int'.
104409 2003-01-14  Bruno Haible  <bruno@clisp.org>
104411         * lib/hash-pjw.c: Add comment about low quality of this function.
104413 2003-01-13  Bruno Haible  <bruno@clisp.org>
104415         * modules/stpcpy: Distribute lib/stpcpy.h.
104416         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
104418 2003-01-13  Bruno Haible  <bruno@clisp.org>
104420         * modules/*: Add a description.
104421         * modules/strpbrk: Fix Makefile.am snippet.
104422         * modules/strtoimax: Fix dependencies.
104423         * modules/strtoumax: Likewise.
104425 2003-01-13  Bruno Haible  <bruno@clisp.org>
104427         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
104428         * modules/alloca (Makefile.am): All object files depend on alloca.h.
104429         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
104431 2003-01-13  Bruno Haible  <bruno@clisp.org>
104433         * gnulib-tool (func_create_testdir): Store config/* files in the main
104434         directory.
104435         * config.rpath: Move to ...
104436         * config/config.rpath: ... here.
104437         * modules/gettext: Contains config/config.rpath, not config.rpath.
104438         * modules/iconv: Likewise.
104440 2003-01-12  Paul Eggert  <eggert@twinsun.com>
104442         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
104443         to avoid collisions with libcurses and libreadline.
104445         * m4/getstr.m4: Remove.
104446         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
104448 2003-01-12  Paul Eggert  <eggert@twinsun.com>
104450         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
104451         to avoid collisions with libcurses and libreadline.
104453         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
104454         * lib/getstr.h, getstr.c: Remove.
104455         * lib/getline.c: Include "getline.h", to check interface.
104456         Move body of old getstr.c here: this defines MIN_CHUNK and
104457         declares getdelim2, which is renamed from getstr.
104458         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
104460         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
104461         All uses changed.
104462         * lib/linebuffer.h: Likewise.
104463         (readline): Remove backward-compatibility macro.
104465 2003-01-12  Paul Eggert  <eggert@twinsun.com>
104467         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
104468         to avoid collisions with libcurses and libreadline.
104469         * getstr: Remove.
104470         * MODULES.html.sh: Remove getstr.
104471         * modules/getline: Depend on unlocked-io, not getstr.
104473 2003-01-12  Jim Meyering  <jim@meyering.net>
104475         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
104477 2003-01-10  Bruno Haible  <bruno@clisp.org>
104479         * modules/alloca: Change Makefile.am requirements. Simplify Include
104480         requirements. Add lib/alloca_.h to file list.
104482 2003-01-10  Bruno Haible  <bruno@clisp.org>
104484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
104486 2003-01-10  Bruno Haible  <bruno@clisp.org>
104488         * lib/alloca_.h: New file.
104489         * lib/getdate.y: Unconditionally include alloca.h.
104490         * lib/makepath.c: Likewise.
104491         * lib/setenv.c: Likewise.
104492         * lib/userspec.c: Likewise.
104494 2003-01-09  Karl Berry  <karl@gnu.org>
104496         * MODULES.html.sh: include `dirname $0` in PATH, to find
104497         gnulib-tool.
104499 2003-01-09  Bruno Haible  <bruno@clisp.org>
104501         * modules/stdbool: Change configure.ac, Makefile.am requirements.
104502         Simplify Include requirements. Add lib/stdbool.h.in to file list.
104504 2003-01-09  Bruno Haible  <bruno@clisp.org>
104506         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
104508 2003-01-09  Bruno Haible  <bruno@clisp.org>
104510         * lib/stdbool.h.in: New file.
104512 2003-01-09  Bruno Haible  <bruno@clisp.org>
104514         * gnulib-tool (func_all_modules): Ignore files ending in ~.
104515         * MODULES.html.sh: Likewise.
104517 2003-01-08  Jim Meyering  <jim@meyering.net>
104519         * lib/full-write.c: Undefine and define-away `const' after inclusion
104520         of errno.h, not before.  Suggestion from Bruno Haible.
104522 2003-01-08  Bruno Haible  <bruno@clisp.org>
104524         * modules/full-read: Depend on full-write.
104526 2003-01-08  Bruno Haible  <bruno@clisp.org>
104528         * lib/safe-read.c: Include specification header first, to ensure its
104529         selfcontainedness.
104530         * lib/full-write.c: Likewise.
104532 2003-01-07  Jim Meyering  <jim@meyering.net>
104534         * lib/full-write.c: Rework so that it may serve to define full_read,
104535         too.
104536         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
104538 2003-01-07  Bruno Haible  <bruno@clisp.org>
104540         * lib/strtoimax.c: Include <stdint.h> as an alternative to
104541         <inttypes.h>.
104542         * lib/xstrtol.h: Likewise.
104543         * lib/xstrtoimax.c: Likewise.
104544         * lib/xstrtoumax.c: Likewise.
104545         * lib/human.h: Likewise.
104547         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
104548         on systems that have <inttypes.h> but not <stdint.h>.
104550 2003-01-07  Bruno Haible  <bruno@clisp.org>
104552         * MODULES.html.sh: Add copyright notice.
104553         (missed_files): Omit CVS directory entries.
104554         (func_module): Make it work with sed-3.02.
104555         * MODULES.txt: Remove file.
104557 2003-01-06  Jim Meyering  <jim@meyering.net>
104559         * lib/version-etc.c: Update year in translatable copyright string.
104561 2003-01-03  Karl Berry  <karl@gnu.org>
104563         * config/config.{guess,sub}: update from prep.
104565 2003-01-02  Karl Berry  <karl@gnu.org>
104567         * doc/COPYING.DOC: belatedly updated to 1.2.
104569 2003-01-01  Karl Berry  <karl@gnu.org>
104571         * gnulib-tool (func_verify_module): report module name $module in
104572         error message, not $1.
104573         * gnulib-tool (create-testdir): don't complain if destdir couldn't
104574         be created, only if it doesn't exist.
104575         * gnulib-tool (last_checkin_date): don't expand the $Date here.
104577 2002-12-31  Paul Eggert  <eggert@twinsun.com>
104579         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
104581 2002-12-31  Paul Eggert  <eggert@twinsun.com>
104583         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
104584         memcmp if strcoll doesn't work.
104586 2002-12-31  Bruno Haible  <bruno@clisp.org>
104588         * lib/utime.c (utime_null): No need to call ftruncate if the file was
104589         nonempty.
104591 2002-12-31  Bruno Haible  <bruno@clisp.org>
104593         * lib/memcoll.c (STRCOLL): New macro.
104594         (memcoll): Use it.
104596 2002-12-31  Bruno Haible  <bruno@clisp.org>
104598         * lib/localcharset.h: New file.
104599         * lib/localcharset.c: Include it.
104600         * lib/unicodeio.c: Likewise.
104602 2002-12-31  Bruno Haible  <bruno@clisp.org>
104604         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
104605         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
104607 2002-12-31  Bruno Haible  <bruno@clisp.org>
104609         * lib/getline.h: Include <stddef.h>, for size_t.
104611         * lib/unicodeio.h: Include <stddef.h>, for size_t.
104612         * lib/unicodeio.c: Don't include <stddef.h>.
104614 2002-12-31  Bruno Haible  <bruno@clisp.org>
104616         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
104617         HAVE_TM_ZONE.
104619 2002-12-24  Karl Berry  <karl@gnu.org>
104621         * config/config.guess: update from prep.
104623 2002-12-24  Bruno Haible  <bruno@clisp.org>
104625         General infrasructure.
104626         * m4/README: Rewritten.
104627         * m4/onceonly.m4: New file.
104628         * m4/onceonly_2_57.m4: New file.
104630         Module atexit.
104631         * m4/atexit.m4: New file.
104633         Module strtod.
104634         * m4/strtod.m4: New file.
104636         Module strtol.
104637         * m4/strtol.m4: New file.
104639         Module strtoul.
104640         * m4/strtoul.m4: New file.
104642         Module memchr.
104643         * m4/memchr.m4: New file.
104645         Module memcmp.
104646         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
104647         (jm_FUNC_MEMCMP): Invoke it.
104649         Module memcpy.
104650         * m4/memcpy.m4: New file.
104652         Module memmove.
104653         * m4/memmove.m4: New file.
104655         Module memset.
104656         * m4/memset.m4: New file.
104658         Module strcspn.
104659         * m4/strcspn.m4: New file.
104661         Module strpbrk.
104662         * m4/strpbrk.m4: New file.
104664         Module strstr.
104665         * m4/strstr.m4: New file.
104667         Module strerror.
104668         * m4/strerror.m4: New file.
104670         Module mktime.
104671         * m4/mktime.m4: Renamed from jm-mktime.m4.
104672         (gl_PREREQ_MKTIME): New macro.
104673         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
104675         Module malloc.
104676         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
104677         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
104678         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
104680         Module realloc.
104681         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
104682         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
104683         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
104685         Module strftime.
104686         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
104687         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
104688         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
104689         gl_TM_GMTOFF.
104690         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
104692         Module xalloc.
104693         * m4/xalloc.m4: New file.
104695         Module alloca.
104696         * m4/alloca.m4: New file.
104698         Module putenv.
104699         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
104700         (jm_FUNC_PUTENV): Invoke it.
104702         Module setenv.
104703         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
104704         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
104705         when invoked twice.
104706         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
104707         gt_FUNC_SETENV.
104709         Module memrchr.
104710         * m4/memrchr.m4: New file.
104712         Module stpcpy.
104713         * m4/stpcpy.m4: New file.
104715         Module strcase.
104716         * m4/strcase.m4: New file.
104718         Module strdup.
104719         * m4/strdup.m4: New file.
104721         Module strnlen.
104722         * m4/strnlen.m4: New file.
104724         Module strndup.
104725         * m4/strndup.m4: New file.
104727         Module xstrtod.
104728         * m4/xstrtod.m4: New file.
104730         Module xstrtol.
104731         * m4/xstrtol.m4: New file.
104733         Module getdate.
104734         * m4/getdate.m4: New file.
104736         Module unlocked-io.
104737         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
104738         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
104739         * m4/jm-glibc-io.m4n: Remove file.
104741         Module long-options.
104742         * m4/long-options.m4: New file.
104744         Module md5.
104745         * m4/md5.m4: New file.
104747         Module sha.
104748         * m4/sha.m4: New file.
104750         Module getstr.
104751         * m4/getstr.m4: New file.
104753         Module getline.
104754         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
104755         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
104756         <sys/types.h>, for size_t. Use the function name gnu_getline, not
104757         simply getline. Infoke gl_PREREQ_GETLINE.
104759         Module obstack.
104760         * m4/obstack.m4: New file.
104762         Module hash.
104763         * m4/hash.m4: New file.
104765         Module readtokens.
104766         * m4/readtokens.m4: New file.
104768         Module strverscmp.
104769         * m4/strverscmp.m4: New file.
104771         Module stdbool.
104772         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
104773         OSF/1.
104775         Module strtoll.
104776         * m4/strtoll.m4: New file.
104778         Module strtoull.
104779         * m4/strtoull.m4: New file.
104781         Module strtoimax.
104782         * m4/strtoimax.m4: New file.
104784         Module strtoumax.
104785         * m4/strtoumax.m4: New file.
104787         Module xstrtoimax.
104788         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
104789         jm_AC_PREREQ_XSTRTOIMAX.
104790         Moved the strtol prerequisites to strtol.m4.
104791         Moved the strtoll prerequisites to strtoll.m4.
104792         Moved the strtoimax prerequisites to strtoimax.m4.
104794         Module xstrtoumax.
104795         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
104796         jm_AC_PREREQ_XSTRTOUMAX.
104797         Moved the strtoul prerequisites to strtoul.m4.
104798         Moved the strtoull prerequisites to strtoull.m4.
104799         Moved the strtoumax prerequisites to strtoumax.m4.
104801         Module chown.
104802         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
104803         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
104805         Module dup2.
104806         * m4/dup2.m4: New file.
104808         Module ftruncate.
104809         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
104810         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
104812         Module getgroups.
104813         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
104814         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
104816         Module gettimeofday.
104817         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
104818         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
104819         gl_PREREQ_GETTIMEOFDAY.
104821         Module mkdir.
104822         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
104823         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
104825         Module mkstemp.
104826         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
104827         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
104828         jm_AC_TYPE_UINTMAX_T.
104829         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
104831         Module stat.
104832         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
104833         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
104835         Module lstat.
104836         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
104837         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
104839         Module timespec.
104840         * m4/timespec.m4 (gl_TIMESPEC): New macro.
104841         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
104842         * m4/st_mtim.m4: Indentation.
104844         Module nanosleep.
104845         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
104846         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
104847         gl_PREREQ_NANOSLEEP.
104849         Module regex.
104850         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
104851         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
104852         (gl_REGEX): New macro.
104854         Module rename.
104855         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
104856         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
104858         Module rmdir.
104859         * m4/rmdir.m4: New file.
104861         Module utime.
104862         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
104863         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
104864         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
104866         Module dirname.
104867         * m4/dirname.m4: New file.
104869         Module getopt.
104870         * m4/getopt.m4: New file.
104872         Module unistd-safer.
104873         * m4/unistd-safer.m4: New file.
104875         Module fnmatch.
104876         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
104877         declaration.
104878         (gl_PREREQ_FNMATCH_EXTRA): New macro.
104879         (gl_FUNC_FNMATCH_POSIX): New macro.
104880         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
104881         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
104882         simply fnmatch.
104884         Module exclude.
104885         * m4/exclude.m4: New file.
104887         Module human.
104888         * m4/human.m4: New file.
104890         Module acl.
104891         * m4/acl.m4: Nop.
104893         Module backupfile.
104894         * m4/backupfile.m4: New file.
104895         * m4/d-ino.m4: Indentation.
104897         Module fsusage.
104898         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
104899         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
104900         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
104902         Module dirfd.
104903         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
104904         requirements.
104906         Module euidaccess.
104907         * m4/euidaccess.m4: New file.
104909         Module file-type.
104910         * m4/file-type.m4: New file.
104912         Module fileblocks.
104913         * m4/fileblocks.m4: New file.
104915         Module filemode.
104916         * m4/filemode.m4: New file.
104918         Module isdir.
104919         * m4/isdir.m4: New file.
104921         Module lchown.
104922         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
104923         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
104925         Module makepath.
104926         * m4/makepath.m4: New file.
104928         Module modechange.
104929         * m4/modechange.m4: New file.
104931         Module mountlist.
104932         * m4/mountlist.m4: New file.
104933         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
104934         Indentation.
104936         Module path-concat.
104937         * m4/path-concat.m4: New file.
104939         Module pathmax.
104940         * m4/pathmax.m4: New file.
104942         Module same.
104943         * m4/same.m4: New file.
104945         Module save-cwd.
104946         * m4/save-cwd.m4: New file.
104948         Module savedir.
104949         * m4/savedir.m4: New file.
104951         Module xgetcwd.
104952         * m4/xgetcwd.m4: New file.
104953         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
104955         Module xreadlink.
104956         * m4/xreadlink.m4: New file.
104958         Module safe-read.
104959         * m4/safe-read.m4: New file.
104961         Module safe-write.
104962         * m4/safe-write.m4: New file.
104964         Module closeout.
104965         * m4/closeout.m4: New file.
104967         Module stdio-safer.
104968         * m4/stdio-safer.m4: New file.
104970         Module getpass.
104971         * m4/getpass.m4: New file.
104973         Module getugroups.
104974         * m4/getugroups.m4: New file.
104976         Module group-member.
104977         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
104978         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
104980         Module idcache.
104981         * m4/idcache.m4: New file.
104983         Module userspec.
104984         * m4/userspec.m4: New file.
104986         Module gettime.
104987         * m4/clock_time.m4: New file.
104988         * m4/gettime.m4: New file.
104990         Module settime.
104991         * m4/settime.m4: New file.
104993         Module posixtm.
104994         * m4/posixtm.m4: New file.
104996         Module gethostname.
104997         * m4/gethostname.m4: New file.
104999         Module canon-host.
105000         * m4/canon-host.m4: New file.
105002         Module gettext.
105003         * m4/codeset.m4: New file, from gettext-0.11.5.
105004         * m4/gettext.m4: New file, from gettext-0.11.5.
105005         * m4/glibc21.m4: New file, from gettext-0.11.5.
105006         * m4/iconv.m4: New file, from gettext-0.11.5.
105007         * m4/intdiv0.m4: New file, from gettext-0.11.5.
105008         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
105009         * m4/inttypes.m4: New file, from gettext-0.11.5.
105010         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
105011         * m4/isc-posix.m4: New file, from gettext-0.11.5.
105012         * m4/lcmessage.m4: New file, from gettext-0.11.5.
105013         * m4/lib-ld.m4: New file, from gettext-0.11.5.
105014         * m4/lib-link.m4: New file, from gettext-0.11.5.
105015         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
105016         * m4/progtest.m4: New file, from gettext-0.11.5.
105017         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
105018         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
105019         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
105021         Module localcharset.
105022         * m4/localcharset.m4: New file.
105024         Module hard-locale.
105025         * m4/hard-locale.m4: New file.
105027         Module mbswidth.
105028         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
105029         onceonly macros.
105030         * m4/mbrtowc.m4: Add comment.
105032         Module memcasecmp.
105033         * m4/memcasecmp.m4: New file.
105035         Module memcoll.
105036         * m4/memcoll.m4: New file.
105038         Module unicodeio.
105039         * m4/unicodeio.m4: New file.
105041         Module rpmatch.
105042         * m4/rpmatch.m4: New file.
105044         Module yesno.
105045         * m4/yesno.m4: New file.
105047         Module exitfail.
105048         * m4/exitfail.m4: New file.
105050         Module c-stack.
105051         * m4/c-stack.m4 (gl_C_STACK): New macro.
105052         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
105054         Module error.
105055         * m4/error.m4 (gl_ERROR): New macro.
105056         (jm_PREREQ_ERROR): Use onceonly macros.
105058         Module fatal.
105059         * m4/fatal.m4: New file.
105061         Module getloadavg.
105062         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
105063         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
105065         Module getpagesize.
105066         * m4/getpagesize.m4: New file.
105068         Module getusershell.
105069         * m4/getusershell.m4: New file.
105071         Module physmem.
105072         * m4/physmem.m4: New file.
105074         Module posixver.
105075         * m4/posixver.m4: New file.
105077         Module quotearg.
105078         * m4/quotearg.m4: New file.
105080         Module quote.
105081         * m4/quote.m4: New file.
105083         Module readutmp.
105084         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
105086         Module sig2str.
105087         * m4/sig2str.m4: New file.
105089         Other.
105090         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
105091         ulonglong.m4.
105092         * m4/intmax_t.m4: New file.
105093         * m4/d-type.m4: Indentation.
105094         * m4/jm-macros.m4: Update.
105095         * m4/prereq.m4 (jm_PREREQ): Update.
105096         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
105097         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
105098         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
105099         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
105100         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
105101         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
105102         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
105103         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
105104         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
105105         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
105106         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
105107         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
105108         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
105109         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
105110         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
105111         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
105112         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
105113         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
105114         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
105116 2002-12-24  Bruno Haible  <bruno@clisp.org>
105118         * MODULES.txt: Update according to m4/ changes.
105120         Module gettext.
105121         * config.rpath: New file, from gettext-0.11.5.
105123         * modules/*: New module descriptions.
105124         * gnulib-tool: New file.
105125         * MODULES.html.sh: New file.
105127 2002-12-21  Karl Berry  <karl@gnu.org>
105129         * doc/fdl.texi: update to version 1.2.
105131 2002-12-19  Karl Berry  <karl@gnu.org>
105133         * config/config.guess: update from prep.
105135 2002-12-18  Bruno Haible  <bruno@clisp.org>
105137         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
105138         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
105140 2002-12-17  Bruno Haible  <bruno@clisp.org>
105142         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
105143         stdlib.h, string.h.
105145 2002-12-17  Bruno Haible  <bruno@clisp.org>
105147         * lib/canon-host.c (strdup): Remove unused declaration.
105149         * lib/fsusage.c: Include full_read.h.
105150         (get_fs_usage): Use full_read instead of safe_read.
105152         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
105154 2002-12-12  Karl Berry  <karl@gnu.org>
105156         * config/config.guess: update from prep.
105158 2002-12-11  Bruno Haible  <bruno@clisp.org>
105160         * m4/setenv.m4: New file, from gettext-0.11.5.
105162 2002-12-11  Bruno Haible  <bruno@clisp.org>
105164         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
105165         not unsetenv().
105166         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
105167         modifications:
105169         2002-12-11  Bruno Haible  <bruno@clisp.org>
105171                 * setenv.c (alloca): Fall back to malloc.
105172                 (freea): New macro.
105173                 (setenv): Use freea() to free memory allocated with alloca().
105175         2002-11-13  Bruno Haible  <bruno@clisp.org>
105177                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
105178                 function declarations.
105179                 * unsetenv.c (unsetenv): Likewise.
105181         2002-03-04  Bruno Haible  <bruno@clisp.org>
105183                 Portability to AIX 4.3.3.
105184                 * unsetenv.c: New file, extracted from setenv.c.
105185                 * setenv.c: Move the unsetenv() function to unsetenv.c.
105187         2001-12-20  Bruno Haible  <bruno@clisp.org>
105189                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
105190                 use malloc instead. For SunOS 4.
105192         2001-12-11  Bruno Haible  <bruno@clisp.org>
105194                 * setenv.c: Declare alloca.
105195                 (compar_fn_t): New typedef.
105196                 (KNOWN_VALUE, STORE_VALUE): Use it.
105198         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
105199         setenv.h.
105201 2002-12-10  Paul Eggert  <eggert@twinsun.com>
105203         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
105204         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
105205         Choose values that are less likely to collide with system fnmatch
105206         options.
105207         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
105208         defined (e.g., a pure POSIX system).
105209         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
105210         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
105212 2002-12-06  Paul Eggert  <eggert@twinsun.com>
105214         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
105215         a pain in practice to deal with generated m4 files.  This change
105216         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
105218         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
105219         and jm-glibc-io.m4, as they are no longer a special case.
105220         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
105221         kludge and the auto-generation stuff.  Check only whether the
105222         functions are declared, not whether they exist, since older hosts
105223         that don't declare the functions can't use the optimization anyway.
105225 2002-12-06  Jim Meyering  <jim@meyering.net>
105227         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
105229         Merge in changes from libc's misc/error.c, in preparation
105230         for the merge of gnulib's changes back into libc.
105232         * lib/error.c (_): Define only if not already defined.
105233         Move definition to follow all #include directives.
105234         Include unlocked-io.h only if !_LIBC.
105235         [_LIBC]: Include <libio/libioP.h>.
105236         [USE_IN_LIBIO]: Include <libio/iolibio.h>
105237         (fflush): Tweak definition to use INTUSE.
105238         (putc): Define.
105240 2002-12-05  Paul Eggert  <eggert@twinsun.com>
105242         * lib/alloca.c [defined emacs]: Include "lisp.h".
105243         (xalloc_die) [defined emacs]: New macro.
105244         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
105245         [! defined emacs]: Include <xalloc.h>.
105246         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
105247         (pointer): Typedef to POINTER_TYPE *.
105248         (malloc): Remove decl; we now always use xmalloc.
105249         (alloca): Use old-style definition, since Emacs needs this.
105250         Check for arithmetic overflow when computing combined size.
105252 2002-12-04  Paul Eggert  <eggert@twinsun.com>
105254         Do not generate unlocked-io.h automatically, since it's easier to
105255         maintain it by hand.
105257         * lib/unlocked-io.h: New file, from GNU diffutils,
105258         but with proper copyright notice and attribution.
105259         * lib/gen-uio: Remove.
105260         * lib/Makefile.am: Add copyright notice.
105261         (libfetish_a_SOURCES): Add unlocked-io.h.
105262         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
105263         (DISTCLEANFILES, io_functions): Remove macros.
105264         (EXTRA_DIST): Remove gen_uio.
105265         (unlocked-io.h): Remove rule.
105267 2002-12-04  Jim Meyering  <jim@meyering.net>
105269         Reflect the fact that stat.c and lstat.c are no longer generated.
105270         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
105271         (DISTCLEANFILES): Likewise.
105272         (EXTRA_DIST): Likewise.
105273         (all_local): Don't depend on stat.c or lstat.c.
105274         (stat.c, lstat.c): Remove rules.
105275         (EXTRA_DIST): Remove xstat.in.
105277         * lib/xstat.in: Remove file.  Contents moved into stat.c.
105278         * lib/stat.c: New file.  Contents mostly from xstat.in.
105279         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
105280         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
105282         * lib/safe-read.c: Rework so that it may serve to define safe_write,
105283         too.
105284         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
105286 2002-12-03  Jim Meyering  <jim@meyering.net>
105288         * lib/safe-read.c, safe-write.c: Change variable names and comments,
105289         but not semantics, to minimize the differences between these two files.
105290         (safe_read): Change comment to mention SAFE_READ_ERROR.
105292         * lib/safe-read.c (IS_EINTR): Define.
105293         (safe_read): Use IS_EINTR in place of in-function cpp directives.
105295 2002-12-02  Jim Meyering  <jim@meyering.net>
105297         * lib/safe-read.c (EINTR): Define.
105298         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
105299         (INT_MAX): Provide fallback.
105300         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
105302         * lib/safe-read.h (SAFE_READ_ERROR): Define.
105304 2002-12-02  Bruno Haible  <bruno@clisp.org>
105306         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
105307         Define, taken from safe-read.c.
105308         (INT_MAX): Provide fallback.
105309         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
105310         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
105312         * lib/safe-read.c (EINTR): Remove definition.
105313         (safe_read): Don't use EINTR if it is absent.
105315 2002-12-01  Jim Meyering  <jim@meyering.net>
105317         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
105318         zero.
105319         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
105321 2002-11-27  Paul Eggert  <eggert@twinsun.com>
105323         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
105324         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
105325         with `if (! (value < limit)) abort ();', for readability.
105327 2002-11-26  Karl Berry  <karl@gnu.org>
105329         * lib/strdup.c: copy from libc again, with jim's ok.
105330         * lib/.cppi-disable: re-add strdup.c
105332 2002-11-25  Karl Berry  <karl@gnu.org>
105334         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
105335         instead of "strtol.c".
105337 2002-11-25  Karl Berry  <karl@gnu.org>
105339         * config/install-sh: update from automake for variable quoting, $0 in
105340         error msgs, etc.
105342         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
105343         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
105344         entry.
105346 2002-11-25  Jim Meyering  <jim@meyering.net>
105348         * lib/mktime.c: Sync from libc, now that it has the latest fix.
105350 2002-11-24  Karl Berry  <karl@gnu.org>
105352         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
105353         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
105355 2002-11-24  Jim Meyering  <jim@meyering.net>
105357         Update from coreutils:
105359         * lib/mktime.c: Merge in changes from libc.
105361         Avoid a link-time failure on some Linux systems.
105362         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
105363         (otherwise).
105364         (__mon_yday): Declare with the STATIC attribute.
105365         (__mktime_internal): Likewise.
105366         Based on a report from Greg Schafer.
105368 2002-11-23  Jim Meyering  <jim@meyering.net>
105370         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
105371         Use `unsigned', not `int', as type of index.
105373         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
105375         * lib/fsusage.c: Remove unneeded parentheses around operands of
105376         `defined'.
105378 2002-11-22  Paul Eggert  <eggert@twinsun.com>
105380         * lib/quotearg.h: Allow multiple inclusion by surrounding with
105381         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
105382         so that we can be included first.
105383         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
105384         * lib/quotearg.c: Include quotearg.h immediately after config.h.
105385         No need to include stddef.h or sys/types.h any more.
105386         Surround local include files with "", not "<>".
105387         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
105388         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
105389         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
105390         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
105391         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
105392         (ISPRINT): Remove; no longer needed now that we assume C89.
105394         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
105395         Preserve errno.
105397         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
105398         quotearg_char): Use SIZE_MAX rather than
105399         (size_t) -1 when we are talking about "infinity".
105401         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
105403 2002-11-22  Paul Eggert  <eggert@twinsun.com>
105405         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
105406         hint that one should use `if (! x) abort ();' rather than `assert
105407         (x);', and anyway it's one less thing to worry about configuring.
105408         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
105409         hash_rehash, hash_insert): Use abort rather than assert.
105411 2002-11-22  Bruno Haible  <bruno@clisp.org>
105413         * lib/safe-read.h: Assume C89. Add comments.
105414         (safe_read): Change return type to size_t.
105415         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
105416         byte counts > SSIZE_MAX correctly.
105417         * lib/safe-write.h: New file.
105418         * lib/safe-write.c: New file.
105419         * lib/full-read.h: New file.
105420         * lib/full-read.c: New file.
105421         * lib/full-write.h: Assume C89. Add comments.
105422         * lib/full-write.c: Include safe-write.h.
105423         (full_write): Rewritten to use safe_write.
105424         Suggested by Jim Meyering and Paul Eggert.
105426 2002-11-21  Jim Meyering  <jim@meyering.net>
105428         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
105430         Merge in changes from the coreutils.
105432         2002-09-25  Paul Eggert  <eggert@twinsun.com>
105433         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
105434         <stdint.h>.
105435         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
105436         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
105437         int.  Work more efficiently if X is the same width as uintmax_t.
105438         Do not compare X to -1, to avoid bogus compiler warning.
105439         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
105440         Don't assume that f_frsize and f_bsize are the same type.
105442         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
105443         warning on FreeBSD.
105445         * lib/makepath.c (make_path): Restore umask *before* creating the final
105446         component.
105447         (make_path): Minor reformatting.
105449         * lib/xmalloc.c: Adjust to work with new autoconf macros,
105450         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
105451         HAVE_MALLOC/HAVE_REALLOC.
105453         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
105454         dummy ones.  At least on GNU/Linux systems, `auto' means something
105455         else.
105456         From Michael Stone.
105458 2002-11-21  Bruno Haible  <bruno@clisp.org>
105460         Remove case insensitive option matching.
105461         * lib/argmatch.h (argcasematch): Remove declaration.
105462         (ARGCASEMATCH): Remove macro.
105463         (__xargmatch_internal): Remove case_sensitive argument.
105464         (XARGMATCH): Update.
105465         (XARGCASEMATCH): Remove macro.
105466         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
105467         case_sensitive argument.
105468         (argcasematch): Remove function.
105469         (__xargmatch_internal): Remove case_sensitive argument.
105470         (main): Use XARGMATCH instead of XARGCASEMATCH.
105472         * lib/xmalloc.c: Change compile-time error message. Add comment about
105473         required autoconf version.
105475 2002-11-20  Paul Eggert  <eggert@twinsun.com>
105477         Merge argmatch cleanups from Bison.  Assume C89.
105479         * lib/argmatch.c: Include config.h here, not in argmatch.h.
105480         Include stdlib.h, for EXIT_FAILURE.
105481         Always include <string.h>, since we assume C89.
105482         (EXIT_FAILURE): Remove pre-C89 bug workaround.
105483         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
105484         Include <stddef.h> instead, since it's all we need for size_t.
105485         (PARAMS): Remove.  All uses removed.
105486         (ARRAY_CARDINALITY): Do not bother to #undef.
105487         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
105488         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
105489         Remove unnecessary parentheses.
105490         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
105491         Insert necessary parentheses.
105492         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
105493         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
105495 2002-11-19  Bruno Haible  <bruno@clisp.org>
105497         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
105498         * lib/mbswidth.h: Include <stddef.h>, for size_t.
105500         * lib/mbswidth.h (PARAMS): Remove macro.
105501         (mbswidth, mbsnwidth): Use ANSI C function declarations.
105502         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
105504         * lib/gcd.h (PARAMS): Remove macro.
105505         (gcd): Use ANSI C function declarations.
105506         * lib/gcd.c (gcd): Likewise.
105508 2002-11-15  Bruno Haible  <bruno@clisp.org>
105510         * lib/strcspn.c: Include <stddef.h>.
105511         (strcspn): Use ANSI C function declaration. Change return type to
105512         size_t. Use NULL.
105513         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
105514         (strpbrk): Use NULL.
105515         * lib/strpbrk.h (PARAMS): Remove macro.
105516         (strpbrk): Use ANSI C function declaration.
105517         * lib/strstr.c: Don't include <sys/types.h>.
105518         * lib/strstr.h (PARAMS): Remove macro.
105519         (strstr): Use ANSI C function declarations.
105521 2002-11-14  Karl Berry  <karl@gnu.org>
105523         * config/mkinstalldirs: `do' on separate line, instead of
105524         `for var; do'.
105526 2002-11-06  Bruno Haible  <bruno@clisp.org>
105528         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
105529         * lib/gcd.c (gcd): Likewise.
105531 2002-11-05  Bruno Haible  <bruno@clisp.org>
105533         * lib/gcd.h: New file, from gettext-0.11.5.
105534         * lib/gcd.c: New file, from gettext-0.11.5.
105536 2002-11-05  Bruno Haible  <bruno@clisp.org>
105538         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105539         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105540         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105541         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105543         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
105544         <libintl.h>.
105545         * lib/makepath.c: Include gettext.h instead of <locale.h> and
105546         <libintl.h>.
105548         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
105549         * lib/human.c: Include gettext.h instead of <libintl.h>.
105550         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
105551         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
105552         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
105553         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
105554         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
105555         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
105556         (textdomain): Remove definition.
105557         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
105559         * lib/long-options.c: Remove include of <libintl.h> and definition of
105560         _.
105561         * lib/same.c: Remove include of <libintl.h> and definition of _.
105563 2002-11-04  Owen Taylor  <otaylor@redhat.com>
105565         * lib/config.charset: A few additions for Solaris.
105567 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
105569         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
105570         * lib/localcharset.c (locale_charset): Declare as extern "C".
105572 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
105574         * lib/config.charset: msdos in uk_UA uses CP1125.
105576 2002-11-04  Bruno Haible  <bruno@clisp.org>
105578         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
105579         * lib/strcase.h: New file, from GNU gettext-0.11.5.
105580         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
105581         * lib/strstr.h: New file, from GNU gettext-0.11.5.
105582         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
105584 2002-11-04  Bruno Haible  <bruno@clisp.org>
105586         * lib/localcharset.c (locale_charset): Don't return an empty string.
105588 2002-11-04  Bruno Haible  <bruno@clisp.org>
105590         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
105591         aliases.
105593 2002-11-04  Bruno Haible  <bruno@clisp.org>
105595         * lib/config.charset: Update for newest glibc. Add canonical names
105596         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
105598 2002-11-04  Bruno Haible  <bruno@clisp.org>
105600         * lib/config.charset: Add support for NetBSD.
105602 2002-11-04  Bruno Haible  <bruno@clisp.org>
105604         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
105606 2002-11-01  Bruno Haible  <bruno@clisp.org>
105608         * configure.in: Add AC_CONFIG_AUX_DIR call.
105609         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
105610         test/Makefile.
105611         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
105613 2002-09-28  Karl Berry  <karl@gnu.org>
105615         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
105616         installed automake until the next release, since changes have been
105617         made.
105619 2002-09-25  Karl Berry  <karl@gnu.org>
105621         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
105622         * lib/getopt*: copy from libc/posix.
105623         * lib/gettext.h: copy from gettext.
105624         * lib/.cppi-disable: add strdup.c, gettext.h.
105626 2002-09-25  Karl Berry  <karl@gnu.org>
105628         * config/srclist.txt: enable gettext.h check.
105629         * config/config.{guess,sub}: update from prep.
105630         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
105631                 from automake 1.6.3.
105632         See srclist*.
105634 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
105636         * regex.c (PATFETCH): Remove the translating fetch.
105637         (PATFETCH_RAW): Rename to PATFETCH.
105638         (set_image_of_range): New fun.
105639         (SET_RANGE_TABLE_WORK_AREA): Use it.
105640         (regex_compile): Don't translate the pattern chars so eagerly.
105641         Only do it when inserting an `exactn' bytecode or when handling
105642         a char-range.
105643         (mutually_exclusive_p): Avoid empty statement.
105645 2002-07-06  Jim Meyering  <meyering@lucent.com>
105647         * m4/README: Don't mention Makefile.am.in.
105648         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
105650 2002-07-01  Jim Meyering  <meyering@lucent.com>
105652         * lib/c-stack.c: Include sys/time.h.
105653         From Volker Borchert.
105655 2002-06-26  Paul Eggert  <eggert@twinsun.com>
105657         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
105659 2002-06-26  Paul Eggert  <eggert@twinsun.com>
105661         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
105662         New macro.  Use it uniformly instead of
105663         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
105664         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
105665         reported by Vin Shelton.
105667 2002-06-22  Paul Eggert  <eggert@twinsun.com>
105669         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
105670         Do not assume SA_SIGINFO behavior.
105671         Bug reported by Jim Meyering on NetBSD 1.5.2.
105673 2002-06-22  Jim Meyering  <meyering@lucent.com>
105675         * m4/c-stack.m4: New file, from diffutils-2.8.2.
105676         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
105678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
105679         now that configure.ac uses AC_GNU_SOURCE.
105680         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
105681         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
105683         Update to latest tools.  Suggestions from Paul Eggert.
105684         * m4/stdbool.m4: New file, from diffutils-2.8.2.
105685         * m4/gnu-source.m4: Update from diffutils-2.8.2.
105686         * m4/fnmatch.m4: Likewise.
105687         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
105688         to AC_HEADER_STDBOOL
105690 2002-06-22  Jim Meyering  <meyering@lucent.com>
105692         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
105693         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
105695 2002-06-22  Jim Meyering  <meyering@lucent.com>
105697         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
105699         * lib/exitfail.c, exitfail.h: Likewise.
105700         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
105702         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
105703         of fnmatch.h.
105704         (EXTRA_DIST): Add fnmatch_loop.c.
105705         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
105707         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
105708         * lib/fnmatch.c: Update from diffutils-2.8.2.
105709         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
105710         * lib/fnmatch.h: Remove file.
105712 2002-06-21  Jim Meyering  <meyering@lucent.com>
105714         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
105715         * m4/mbrtowc.m4: Likewise.
105717         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
105718         * m4/mbswidth.m4: Reflect name change:
105719         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
105720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
105722         * m4/lib-link.m4: Update from gettext-0.11.2.
105723         * m4/gettext.m4: Likewise.
105725         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
105726         From Alfred M. Szmidt.
105728 2002-06-18  Paul Eggert  <eggert@twinsun.com>
105730         * lib/file-type.h: Report an error if neither S_ISREG nor
105731         S_IFREG is defined, instead of using a test specific to glibc
105732         2.2.  This should be safe, since POSIX requires S_ISREG and
105733         Unix Version 7 had S_IFREG.  We don't need to check for
105734         <sys/types.h> since we don't use any symbols that it defines.
105736 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
105738         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
105739         $@-t, so that each temporary file name is unique and valid in the first
105740         8 characters, for operation under DOS.
105742 2002-06-15  Paul Eggert  <eggert@twinsun.com>
105744         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
105746 2002-06-15  Jim Meyering  <meyering@lucent.com>
105748         Work even with DJGPP 2.03, which lacks support for symlinks.
105749         From Richard Dawe.
105750         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
105751         is defined.
105752         * lib/lchown.c (S_ISLNK): Likewise.
105754 2002-06-15  Jim Meyering  <meyering@lucent.com>
105756         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
105757         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
105758         have been included before this file.
105760 2002-06-14  Jim Meyering  <meyering@lucent.com>
105762         * lib/file-type.h: Use the version from diffutils-2.8.2.
105763         * lib/file-type.c: Likewise.
105765 2002-06-07  Jim Meyering  <meyering@lucent.com>
105767         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
105768         They're needed at least for NetBSD 1.5.2.
105769         ($statxfs_includes): Include those same headers.
105770         ($statxfs_includes): Include sys/vfs.h if available.
105771         ($statxfs_includes): Likewise for sys/statvfs.h.
105772         Check for the following members in both structs statfs and statvfs:
105773         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
105775 2002-06-01  Jim Meyering  <meyering@lucent.com>
105777         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
105778         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
105780 2002-05-28  Jim Meyering  <meyering@lucent.com>
105782         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
105783         Reported by Volker Borchert.
105785 2002-05-27  Jim Meyering  <meyering@lucent.com>
105787         Fix a problem seen only on nonconforming systems whereby ls.c's
105788         use of localtime, and then of gettimeofday would cause trouble:
105789         the localtime call used to initialize rpl_gettimeofday's save
105790         mechanism would clobber ls's current local time information so
105791         that in any long listing the first file would always be listed
105792         with date 1970-01-01.  Analysis by Volker Borchert.
105794         * lib/gettimeofday.c (localtime): Undefine.
105795         (rpl_localtime): New function.
105797 2002-05-27  Jim Meyering  <meyering@lucent.com>
105799         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
105800         localtime.
105802         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
105803         use the replacement function; it wouldn't resolve at link time.
105804         Reported by Volker Borchert.
105806 2002-05-22  Jim Meyering  <meyering@lucent.com>
105808         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
105809         file-type.h.
105810         * lib/file-type.h: New file.
105811         * lib/file-type.c (file_type): New file/function.  Extracted from
105812         diffutils.
105814 2002-04-30  Jim Meyering  <meyering@lucent.com>
105816         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
105818 2002-04-29  Paul Eggert  <eggert@twinsun.com>
105820         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
105822 2002-04-29  Paul Eggert  <eggert@twinsun.com>
105824         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
105825         Do not check for alloca.h (no longer used) or stdbool.h (was never
105826         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
105828 2002-04-29  Paul Eggert  <eggert@twinsun.com>
105830         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
105832 2002-04-29  Jim Meyering  <meyering@lucent.com>
105834         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
105835         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
105836         Use AC_FUNC_STRNLEN here instead.
105838         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
105839         With autoconf-2.53a, it's part of AC_PROG_CC.
105841 2002-04-28  Paul Eggert  <eggert@twinsun.com>
105843         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
105844         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
105846 2002-04-28  Paul Eggert  <eggert@twinsun.com>
105848         * lib/sig2str.h, lib/sig2str.c: New files.
105849         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
105851 2002-04-28  Paul Eggert  <eggert@twinsun.com>
105853         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
105854         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
105855         of 127, since 64 is the largest conceivable number for ancient
105856         nonstandard hosts.
105857         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
105859 2002-04-28  Jim Meyering  <meyering@lucent.com>
105861         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
105863 2002-04-24  Jim Meyering  <meyering@lucent.com>
105865         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
105866         (jm_PREREQ): Use it.
105868         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
105869         mach/mach.h fcntl.h.
105870         Check for this function: setlocale.
105872 2002-04-24  Jim Meyering  <meyering@lucent.com>
105874         * lib/gettext.h: New file, from Gettext.
105875         * lib/Makefile.am (INCLUDES): Remove -I../intl.
105876         (libfetish_a_SOURCES): Add gettext.h.
105878 2002-04-16  Jim Meyering  <meyering@lucent.com>
105880         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
105881         ut_pid, ut_id, ut_exit.
105883 2002-04-16  Jim Meyering  <meyering@lucent.com>
105885         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
105886         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
105887         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
105889 2002-04-12  Jim Meyering  <meyering@lucent.com>
105891         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
105892         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
105893         existence of the getmntinfo function.  Needed for Darwin 5.3.
105895         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
105896         This is necessary at least on Darwin 5.3.
105898         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
105899         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
105900         strnlen.o in the library, and that makes some versions of ranlib
105901         object.
105903 2002-04-12  Jim Meyering  <meyering@lucent.com>
105905         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
105907 2002-04-09  Jim Meyering  <meyering@lucent.com>
105909         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
105910         to be more precise.  Rather than saying we're checking whether the
105911         function `works', say what we're testing.
105912         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
105913         Reported by Bruno Haible.
105915 2002-03-10  Jim Meyering  <meyering@lucent.com>
105917         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
105918         Suggestion from Santiago Vila.
105920 2002-03-08  Jim Meyering  <meyering@lucent.com>
105922         * lib/rename.c: Mention that this wrapper is needed also on
105923         mips-dec-ultrix4.4 systems.
105925 2002-03-02  Jim Meyering  <meyering@lucent.com>
105927         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
105928         not HAVE_CLOCK_SETTIME.
105930 2002-02-27  Paul Eggert  <eggert@twinsun.com>
105932         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
105933         Check for clock_settime.
105935 2002-02-27  Paul Eggert  <eggert@twinsun.com>
105937         * lib/nanosleep.h: Rename to....
105938         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
105940         * lib/gettime.c: New file.
105941         * lib/settime.c: New file.
105942         * lib/stime.c: Remove.
105944         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
105945         timespec.h.  Remove nanosleep.h.
105947 2002-02-25  Paul Eggert  <eggert@twinsun.com>
105949         * m4/acl.m4: New file.
105950         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
105951         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
105953 2002-02-25  Paul Eggert  <eggert@twinsun.com>
105955         * lib/acl.c, lib/acl.h: New files.
105956         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
105958 2002-02-24  Jim Meyering  <meyering@lucent.com>
105960         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
105961         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
105962         cause trouble.  Reported by Nelson Beebe.
105964 2002-02-23  Paul Eggert  <eggert@twinsun.com>
105966         * lib/path-concat.c (xpath_concat): Reorder code to pacify
105967         compilers that don't know that xalloc_die never returns.
105969 2002-02-20  Jim Meyering  <meyering@lucent.com>
105971         * lib/getdate.c: Regenerate using bison-1.33.
105973 2002-02-17  Jim Meyering  <meyering@lucent.com>
105975         * config/config.guess (main): Don't use `head -1'; it's no longer
105976         portable. Use `sed 1q' instead.
105978 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
105980         * m4/codeset.m4: Upgrade to gettext-0.11.
105981         * m4/gettext.m4: Upgrade to gettext-0.11.
105982         * m4/glibc21.m4: Upgrade to gettext-0.11.
105983         * m4/iconv.m4: Upgrade to gettext-0.11.
105984         * m4/isc-posix.m4: Upgrade to gettext-0.11.
105985         * m4/lcmessage.m4: Upgrade to gettext-0.11.
105986         * m4/lib-ld.m4: New file, from gettext-0.11.
105987         * m4/lib-link.m4: New file, from gettext-0.11.
105988         * m4/lib-prefix.m4: New file, from gettext-0.11.
105989         * m4/progtest.m4: Upgrade to gettext-0.11.
105991 2002-02-15  Paul Eggert  <eggert@twinsun.com>
105993         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
105994         (jm_PREREQ): Use it.
105996 2002-02-15  Paul Eggert  <eggert@twinsun.com>
105998         * lib/posixver.c, lib/posixver.h: New files.
105999         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
106001 2002-02-02  Paul Eggert  <eggert@twinsun.com>
106002             Bruno Haible  <bruno@clisp.org>
106004         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
106005         (fwrite_success_callback): New declaration.
106006         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
106007         print_unicode_char. Call failure callback instead of error.
106008         (fwrite_success_callback): New function.
106009         (exit_failure_callback): New function.
106010         (fallback_failure_callback): New function.
106011         (print_unicode_char): Call unicode_to_mb.
106013 2002-01-26  Jim Meyering  <meyering@lucent.com>
106015         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
106016         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
106018 2002-01-26  Jim Meyering  <meyering@lucent.com>
106020         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
106022 2002-01-22  Paul Eggert  <eggert@twinsun.com>
106024         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
106026 2002-01-22  Jim Meyering  <meyering@lucent.com>
106028         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
106029         Otherwise, some versions of automake would omit the rule that makes
106030         Makefile from Makefile.in.
106032 2002-01-21  Paul Eggert  <eggert@twinsun.com>
106034         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
106035         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
106036         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
106037         (memcoll): Set errno to zero if there is no error.
106039         * lib/quotearg.c (quotearg_buffer_restyled):
106040         Fix bug with quoting buffers containing NUL when backslashing escapes.
106041         This bug was exposed by the other changes in this patch.
106042         (quotearg_n_options): New arg ARGSIZE.
106043         All callers changed.
106044         (quoting_options_from_style): New function.
106045         (quotearg_n_style): Use it.
106046         (quotearg_n_style_mem): New function.
106048         * lib/quotearg.h (quotearg_n_style_mem): New function.
106050 2002-01-19  Jim Meyering  <meyering@lucent.com>
106052         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
106053         Remove useless quotes: DF_PROG="df".
106054         * m4/strnlen.m4: New file.
106056 2002-01-16  Paul Eggert  <eggert@twinsun.com>
106058         * lib/backupfile.c (ISDIGIT): Comment fix.
106059         * lib/getdate.y (ISDIGIT): Likewise.
106060         * lib/posixtm.c (ISDIGIT, year): Likewise.
106061         * lib/strverscmp.c (ISDIGIT): Likewise.
106062         * lib/userspec.c (ISDIGIT): Likewise.
106064 2002-01-16  Jim Meyering  <meyering@lucent.com>
106066         * lib/getdate.y: Add three semicolons, each just before a closing
106067         brace. Bison (as of version 1.31) no longer papers over that mistake.
106069 2002-01-05  Jim Meyering  <meyering@lucent.com>
106071         * lib/version-etc.c (version_etc_copyright): Update copyright year.
106073 2001-12-19  Paul Eggert  <eggert@twinsun.com>
106075         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
106076         not silently exit merely because the output buffer happens to
106077         have nothing pending.
106079 2001-12-18  Paul Eggert  <eggert@twinsun.com>
106081         See the big note in ../ChangeLog.
106082         * lib/human.c (suffixes): Prefer K to k for 1024.
106083         (generate_suffix_backwards): New function.
106084         (human_readable_inexact): Use it.
106085         * lib/xstrtol.c (__xstrtol): If there is no number but there
106086         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
106087         Accept 'K' as well as 'k'.
106089 2001-12-15  Jim Meyering  <meyering@lucent.com>
106091         * lib/regex.h (__restrict_arr): Update from libc.
106093         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
106094         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
106095         (STREQ): Define.
106097 2001-12-14  Jim Meyering  <meyering@lucent.com>
106099         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
106100         Suggestion from Bruno Haible.
106102 2001-12-10  Jim Meyering  <meyering@lucent.com>
106104         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
106105         xrealloc, Instead, include "xalloc.h".
106106         (initbuffer): Don't cast xmalloc return value to char*.
106107         (readline): Reword comment.
106108         Don't cast xrealloc return value to char*
106109         Return NULL, not 0.
106111 2001-12-09  Jim Meyering  <meyering@lucent.com>
106113         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
106114         about `signed and unsigned type in conditional expression'.
106115         * lib/posixtm.c (posix_time_parse): Likewise.
106117         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
106119         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
106120         to avoid a pedantic warning.
106122         * lib/getstr.c: Don't include assert.h.
106123         (getstr): Remove warning-evoking assertions.
106124         Return -1 if offset parameter is out of bounds.
106125         Change the type of a local from int to size_t.
106127         * lib/strftime.c (my_strftime_localtime_r): Include this function
106128         definition in the `#if ! HAVE_TM_GMTOFF' block.
106130         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
106131         Include xalloc.h instead.
106133 2001-12-02  Jim Meyering  <meyering@lucent.com>
106135         * lib/tempname.c: Don't declare getenv, thus reverting the change of
106136         2001-11-18.  It's no longer necessary, now that stdlib.h is always
106137         included.
106139         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
106140         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
106142 2001-11-30  Akim Demaille  <akim@epita.fr>
106144         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
106145         before being defined.
106147 2001-11-27  Paul Eggert  <eggert@twinsun.com>
106149         * lib/quotearg.h (quotearg_n, quotearg_n_style):
106150         First arg is int, not unsigned.
106151         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
106152         (SIZE_MAX, UINT_MAX): New macros.
106153         (quotearg_n_options): Abort if N is negative.
106154         Avoid overflow check on hosts where size_t is 64 bits and int
106155         is 32 bits, as overflow is impossible there.
106156         Fix off-by-one typo that caused unnecessary reallocation.
106158 2001-11-27  Jim Meyering  <meyering@lucent.com>
106160         * lib/tempname.c: Merge with version from libc.
106161         * lib/regex.c: Likewise.
106163         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
106164         systems for which STDC_HEADERS is 0, it was not included, resulting in
106165         a warning about an integer-to-pointer conversion problem with getenv.
106166         Reported by Volker Borchert.
106168 2001-11-26  Jim Meyering  <meyering@lucent.com>
106170         * lib/gtod.h: Remove file.
106171         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
106172         * lib/gettimeofday.c: Don't include gtod.h.
106173         (GTOD_init): Remove function.
106174         (rpl_gettimeofday): Do its job here instead, rather than aborting.
106175         Suggestion from Volker Borchert.
106177 2001-11-23  Jim Meyering  <meyering@lucent.com>
106179         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
106180         it.
106181         * lib/hash.c (struct hash_table): Define it here instead.
106183 2001-11-22  Jim Meyering  <meyering@lucent.com>
106185         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
106187 2001-11-20  Jim Meyering  <meyering@lucent.com>
106189         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
106190         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
106192 2001-11-19  Jim Meyering  <meyering@lucent.com>
106194         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
106195         directory.  Use "conftestXXXXXX" as the template.
106196         Suggestion from Paul Eggert.
106198         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
106199         immediately, so the test doesn't mistakenly hit the max-open-files
106200         limit.
106202 2001-11-18  Paul Eggert  <eggert@twinsun.com>
106204         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
106205         (TEMPORARIES): New macro.
106206         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
106207         removes an artificial limitation (e.g. HP-UX 10.20, where
106208         TMP_MAX is 17576).
106210 2001-11-18  Jim Meyering  <meyering@lucent.com>
106212         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
106214 2001-11-18  Jim Meyering  <meyering@lucent.com>
106216         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
106217         on SunOS 4.
106219         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
106220         files will be created before anything else.
106222 2001-11-17  Paul Eggert  <eggert@twinsun.com>
106224         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
106225         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
106227 2001-11-17  Jim Meyering  <meyering@lucent.com>
106229         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
106230         Prompted by a report from Bob Proulx.
106232         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
106233         Instead, require UTILS_FUNC_MKSTEMP.
106235 2001-11-17  Jim Meyering  <meyering@lucent.com>
106237         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
106238         Now, that's done as part of AC_FUNC_STRTOD.
106240 2001-11-17  Jim Meyering  <meyering@lucent.com>
106242         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
106243         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
106244         rather than group writable.  Patch by Juan F. Codagnone.
106246         * lib/readtokens.c: Remove explicit declarations of xmalloc and
106247         xrealloc, Instead, include "xalloc.h".
106249         * lib/mountlist.c: Include unlocked-io.h after all system headers.
106250         Remove explicit declarations of xmalloc, xrealloc,
106251         and xstrdup.  Instead, include "xalloc.h".
106253         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
106254         unlocked-io.h.
106255         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
106256         Likewise.
106257         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
106259         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
106260         Reported by Padraig Brady.
106262         * lib/mkstemp.c: #undef mkstemp.
106263         Include config.h.
106264         (rpl_mkstemp): Rename from mkstemp.
106265         Protoize.
106267 2001-11-16  Jim Meyering  <meyering@lucent.com>
106269         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
106270         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
106271         determine the amount of total physical memory, use pstat_getstatic.
106272         HPUX-11 doesn't define _SC_PHYS_PAGES.
106273         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
106274         If sysconf couldn't be used to determine the amount of available
106275         physical memory, use both pstat_getstatic and pstat_getdynamic.
106276         Based on a patch from Bob Proulx.
106278 2001-11-10  Jim Meyering  <meyering@lucent.com>
106280         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
106281         (jm_PREREQ): Use it.
106283 2001-11-09  Jim Meyering  <meyering@lucent.com>
106285         * m4/jm-macros.m4: Require autoconf-2.52f.
106286         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
106287         Use these AC_-prefixed names, not the AM_-prefixed ones.
106289         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
106291 2001-11-05  Jim Meyering  <meyering@lucent.com>
106293         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
106295 2001-11-04  Jim Meyering  <meyering@lucent.com>
106297         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
106298         $DEFS.
106300 2001-11-03  Jim Meyering  <meyering@lucent.com>
106302         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
106303         of AC_DEFUN.
106305         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
106306         know the name of the variable in the macro definition.
106308 2001-11-03  Jim Meyering  <meyering@lucent.com>
106310         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
106311         in argmatch_to_argument call.
106313         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
106314         argument.
106316         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
106317         e.g., a fault due to an attempt to free a NULL pointer.
106319 2001-11-01  Jim Meyering  <meyering@lucent.com>
106321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
106322         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
106324 2001-11-01  Jim Meyering  <meyering@lucent.com>
106326         * lib/dirfd.c, lib/dirfd.h: New files.
106327         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
106329         * lib/hash.c (hash_print) [TESTING]: Clean up.
106331 2001-10-22  Paul Eggert  <eggert@twinsun.com>
106333         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
106334         to avoid a warning if -Wall.
106336 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
106338         * README: New file
106339         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
106340         (per RMS's instructions, this is now the canonical source)
106341         * lgpl/, gpl/: New directories.
106343 2001-10-21  Paul Eggert  <eggert@twinsun.com>
106345         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
106347 2001-10-21  Jim Meyering  <meyering@lucent.com>
106349         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
106350         this code would end up calling gettext even in packages built
106351         with --disable-nls.
106352         * lib/getopt.c (_): Likewise.
106353         * lib/regex.c (_): Likewise.
106355 2001-10-20  Paul Eggert  <eggert@twinsun.com>
106357         * m4/error.m4 (jm_PREREQ_ERROR):
106358         Do not invoke AC_CHECK_FUNCS with strerror_r, as
106359         AC_FUNC_STRERROR_R does that.
106360         Check for strerror declaration.
106362         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
106363         are supposed to have them these days.
106364         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
106365         Merge changes from latest Autoconf CVS.
106366         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
106367         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
106368         POSIX decided to standardize on the int flavor of strerror_r.
106370 2001-10-20  Paul Eggert  <eggert@twinsun.com>
106372         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
106373         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
106374         Use strerror_r that is only a macro, even if it is not a function.
106375         (strerror): Check for HAVE_DECL_STRERROR before declaring.
106376         (private_strerror): Use prototypes, not old-style function definition.
106377         (print_errno_message): New function.
106378         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
106379         char*-flavored one.
106380         (error_tail, error, error_at_line): Use it.
106382 2001-10-11  Jim Meyering  <meyering@lucent.com>
106384         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
106385         and quote_n (1, ... to avoid clobbering a buffer.
106387 2001-10-05  Jim Meyering  <meyering@lucent.com>
106389         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
106390         hash-pjw.h.
106391         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
106392         * lib/hash-pjw.h: New file.
106394 2001-09-30  Jim Meyering  <meyering@lucent.com>
106396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
106397         `struct fsstat' has the `f_fstypename' member.
106398         Use that to define FS_TYPE, which is now used to make
106399         the getfsstat link test tighter.
106401 2001-09-30  Jim Meyering  <meyering@lucent.com>
106403         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
106404         Include <sys/ucred.h>, for Apple Darwin.
106405         Include sys/mount.h and sys/fs_types.h only if available.
106406         (FS_TYPE): Define.
106407         (read_filesystem_list): Use FS_TYPE.
106409 2001-09-29  Paul Eggert  <eggert@twinsun.com>
106411         * lib/exclude.c (excluded_filename): 0 -> false, since it's
106412         a boolean context.
106414 2001-09-29  Jim Meyering  <meyering@lucent.com>
106416         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
106417         [one-argument getmntent function]): Include stdio.h before mntent.h.
106418         SunOS 4.1.x needs it for the declaration of `FILE'.
106419         Patch by Volker Borchert.
106421         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
106422         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
106423         sys/fs_types.h, and make the link-test for getfsstat guard #include
106424         directives with appropriate #if HAVE_*_H tests so that we can
106425         detect getfsstat on Apple Darwin1.3.7 systems.
106426         Reported by Nelson Beebe.
106427         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
106429 2001-09-28  Paul Eggert  <eggert@twinsun.com>
106431         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
106432         #defines strtoimax.  Also treat the other strto* functions
106433         like strtoimax.
106435         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
106436         Check for strtoul and strtoumax,
106437         as those declarations are made even in the signed case.
106438         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
106439         Likewise, for strtol and strtoimax.
106441 2001-09-28  Paul Eggert  <eggert@twinsun.com>
106443         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
106444         #defines strtoimax.  Also treat the other strto* functions
106445         like strtoimax.
106447         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
106448         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
106449         (strtoimax, strtoumax): Do not declare if already defined as a macro.
106451 2001-09-26  Jim Meyering  <meyering@lucent.com>
106453         Most macros in unlocked-io.h had the wrong number of arguments.
106454         * lib/gen-uio: New script.
106455         (USE_UNLOCKED_IO): Define to 1 if not already defined.
106456         * lib/unlocked-io.hin: Remove file.
106457         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
106458         rather than trying to embed it here.
106459         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
106460         Reported by Padraig Brady.
106462 2001-09-25  Volker Borchert  <bt@teknon.de>
106464         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
106465         `result'.
106467 2001-09-24  Jim Meyering  <meyering@lucent.com>
106469         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
106471 2001-09-23  Jim Meyering  <meyering@lucent.com>
106473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
106474         instead of the mere test for existence of mntent.h.  The latter
106475         would get a false-positive on AIX 3.4 systems.
106476         In the outer getmntent if-block, don't die if neither of the getmntent
106477         tests succeeds.  Instead, just fall through and continue with the
106478         remaining tests.
106480 2001-09-23  Jim Meyering  <meyering@lucent.com>
106482         * lib/mountlist.c: Remove useless parentheses in #if directives.
106483         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
106484         the deprecated MOUNTED symbol is no longer defined in mntent.h.
106486 2001-09-22  Jim Meyering  <meyering@lucent.com>
106488         * m4/gettext.m4: New file.  From gettext.
106489         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
106490         * m4/progtest.m4: Likewise
106491         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
106492         * m4/glibc21.m4: Likewise.
106494         * m4/libintl.m4: Remove.  No longer used.
106496 2001-09-22  Jim Meyering  <meyering@lucent.com>
106498         * lib/localcharset.c: Update from latest gettext.
106499         * lib/config.charset: Likewise.
106501 2001-09-20  Jim Meyering  <meyering@lucent.com>
106503         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
106504         strtoimax.
106505         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
106506         strtoumax.
106508 2001-09-20  Jim Meyering  <meyering@lucent.com>
106510         * lib/xstrtol.c (strtoimax): Guard declaration with
106511         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
106512         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
106513         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
106514         (strtoumax): Likewise, for completeness (it wasn't necessary).
106516 2001-09-17  Paul Eggert  <eggert@twinsun.com>
106518         * lib/strtoimax.c (HAVE_LONG_LONG):
106519         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
106520         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
106521         to work around bug in IBM C compiler.
106523 2001-09-17  Jim Meyering  <meyering@lucent.com>
106525         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
106526         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
106527         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
106528         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
106529         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
106530         whenever the right hand side need not be expanded by the shell.
106532 2001-09-16  Paul Eggert  <eggert@twinsun.com>
106534         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
106535         library.  It's not correct, as some older glibcs are buggy.
106536         fnmatch wasn't fixed until glibc 2.2.
106538         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
106539         special shell magic here.
106541 2001-09-16  Jim Meyering  <meyering@lucent.com>
106543         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
106544         * m4/jm-macros.m4: Require it.
106546 2001-09-16  Jim Meyering  <meyering@lucent.com>
106548         * lib/mkdir.c: New file.
106550 2001-09-15  Jim Meyering  <meyering@lucent.com>
106552         * m4/jm-macros.m4: Check for help2man.
106554 2001-09-11  Jim Meyering  <meyering@lucent.com>
106556         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
106557         The body, by Paul Eggert, was moved here from configure.in.
106558         * m4/jm-macros.m4: Require UTILS_HOST_OS.
106560 2001-09-04  Paul Eggert  <eggert@twinsun.com>
106562         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
106563         (jm_PREREQ): Use it.
106565 2001-09-04  Paul Eggert  <eggert@twinsun.com>
106567         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
106568         Use ssize_t, not int, to store result of readlink.
106569         Check for ssize_t overflow as well as size_t overflow,
106570         as POSIX says the result of readlink is implementation-defined
106571         when ssize_t overflows.
106572         Remove unnecessary cast to char*.
106573         Use free+malloc instead of realloc, as the storage doesn't need
106574         to be preserved and it's clearer and can be more efficient that way.
106575         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
106576         * lib/xreadlink.h (xreadlink): Update prototype.
106578 2001-09-04  Paul Eggert  <eggert@twinsun.com>
106580         * lib/xgetcwd.c: Revert some of the previous change; intead,
106581         fix the HAVE_GETCWD_NULL code to behave more like the
106582         !HAVE_GETCWD_NULL code used to.
106584         Include "xalloc.h".
106585         (xgetcwd): Do not return NULL when memory is exhausted; instead,
106586         invoke xalloc_die.
106588 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106590         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
106591         sys/param.h, as pathmax.h includes them.
106593 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106595         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
106596         (jm_PREREQ_XGETCWD): New macro.
106598         * m4/getcwd.m4: New file.
106600 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106602         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
106603         like the HAVE_GETCWD_NULL code.
106604         Include pathmax.h if not HAVE_GETCWD.
106605         Do not include xalloc.h.
106606         (INITIAL_BUFFER_SIZE): New symbol.
106607         Do not use xmalloc / xrealloc, since the caller is responsible for
106608         handling errors.  Preserve errno around `free' during failure.
106609         Do not overrun buffer when using getwd.
106611 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106613         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
106614         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
106615         getcwd (NULL, 0).
106617 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106619         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
106620         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
106621         spotted by Jim Meyering.
106623 2001-09-03  Jim Meyering  <meyering@lucent.com>
106625         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
106626         failure.
106628 2001-09-02  Jim Meyering  <meyering@lucent.com>
106630         * lib/error.c: Update from GNU libc.
106632 2001-09-01  Jim Meyering  <meyering@lucent.com>
106634         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
106635         Used by df.
106637 2001-09-01  Jim Meyering  <meyering@lucent.com>
106639         * lib/xreadlink.c: New file.
106640         * lib/xreadlink.h: New file.
106641         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
106642         xreadlink.h.
106644         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
106645         doesn't conflict with sparc Solaris 7's definition in
106646         /usr/include/sys/int_types.h.
106648         * lib/exclude.c: Use `""', not `<>' to #include non-system header
106649         files.
106650         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
106651         and strncasecmp as r-values.  Unixware didn't have declarations.
106653 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106655         * lib/xstrtol.h: Add copyright notice.
106656         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
106657         LONGINT_INVALID_SUFFIX_CHAR.
106659 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106661         * lib/xstrtol.c (strtoimax): New decl.
106663 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106665         * lib/xgetcwd.c: Don't include pathmax.h.
106666         Include stdlib.h and unistd.h if available.
106667         Include xalloc.h.
106668         (xmalloc, xstrdup, free): Remove decls.
106669         (xgetcwd): Don't assume sizes fit in unsigned.
106670         Check for overflow when computing sizes.
106671         Simplify reallocation code.
106673 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106675         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
106676         a directory's st_size can have an arbitrary value, so the old
106677         usage could waste an arbitrary amount of memory.  All uses
106678         changed.
106679         * lib/savedir.h: Update prototype.
106681 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106683         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
106685         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
106686         old strtoimax.c.
106688         Also, make the following further changes to make this file's
106689         configuration more similar to that of strtol.c:
106690         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
106691         (strtoumax, uintmax_t, strtoull, strtol): Remove.
106692         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
106693         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
106694         changed to signed values.
106696         And make the following changes as well:
106697         Fix copyright notice, as 1999 was missing.
106698         (verify): New macro.
106699         (strtoimax): Check sizes at compile-time, not run-time.
106700         Prefer strtol to strtoll if both work.
106701         (main): Remove; it was not that useful and was a pain to maintain.
106703         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
106705 2001-08-31  Jim Meyering  <meyering@lucent.com>
106707         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
106708         Use an initial, malloc'd, buffer of length 128 rather than
106709         a statically allocated one of length 1024.
106711 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106713         Simplify code, partly by assuming autoconf 2.52 semantics.
106715         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
106717         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
106718         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
106719         All uses removed.
106720         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
106721         Move AC_REQUIRE to next-to-top level, to avoid confusion.
106722         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
106723         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
106724         jm_AC_HEADER_INTTYPES_H.
106725         * m4/jm-macros.m4 (jm_MACROS): Likewise.
106727         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
106729         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
106730         Quote first arg of AC_DEFUN.
106731         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
106732         since they are needed to parse the include file even if we need
106733         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
106734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
106735         but with opposite signedness.
106737 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106739         Merge 'exclude' changes from tar 1.13.22.
106740         This fixes one or two unlikely storage allocation overflow bugs,
106741         but doesn't change user-visible behavior otherwise.
106743 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
106746         (jm_PREREQ_EXCLUDE): New macro.
106748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106750         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
106751         tm to be declared.
106753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106755         * lib/hash.c: Remove '2001' from copyright notice.
106757 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106759         * lib/full-write.h: New file.
106760         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
106761         * lib/full-write.c: Correct credits, as cccp.c no longer
106762         exists and anyway it was so heavily changed from the old cccp
106763         code as to be unrecognizable.  Include full-write.h.
106764         (full_write): Return size_t, with short writes meaning failure.
106765         All callers changed.  This fixes a bug with large buffers
106766         on 64-bit hosts.
106767         * lib/utime.c: Include full-write.h.
106769 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106771         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
106772         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
106773         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
106774         Include if available.
106775         (<xalloc.h>): Include
106776         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
106777         (verify): New macro.  Use it to verify that EXCLUDE macros do not
106778         collide with FNM macros.
106779         (struct patopts): New struct.
106780         (struct exclude): Use it, as exclude patterns now come with options.
106781         (new_exclude): Support above changes.
106782         (new_exclude, add_exclude_file):
106783         Initial size must now be a power of two to simplify overflow checking.
106784         (free_exclude, fnmatch_no_wildcards): New function.
106785         (excluded_filename): No longer requires options arg, as the options
106786         are determined by add_exclude.  Now returns bool, not int.
106787         (excluded_filename, add_exclude):
106788         Add support for the fancy new exclusion options.
106789         (add_exclude, add_exclude_file): Now takes int options arg.
106790         Check for arithmetic overflow when computing sizes.
106791         (add_exclude_file): xrealloc might modify errno, so don't
106792         realloc until after errno might be used.
106794         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
106795         New macros.
106796         (free_exclude): New decl.
106797         (add_exclude, add_exclude_file): Now takes int options arg.
106798         (excluded_filename): No longer requires options arg, as the options
106799         are determined by add_exclude.  Now returns bool, not int.
106801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106803         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
106805 2001-08-27  Jim Meyering  <meyering@lucent.com>
106807         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
106809         * lib/version-etc.c (N_): Remove definition.
106810         Revert most of last change.
106811         Instead, simply don't mark the `Copyright...' string for translation.
106812         Based on advice from Paul Eggert.
106814         * lib/strtoxmax.c: Tweak comment.
106816 2001-08-26  Jim Meyering  <meyering@lucent.com>
106818         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
106820         * m4/xstrtoimax.m4: New file.
106821         * m4/xstrtoumax.m4: Add comments explaining why we
106822         AC_REPLACE_FUNCS(strtol).
106824 2001-08-26  Jim Meyering  <meyering@lucent.com>
106826         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
106827         of copyright with `%s' so translators don't get an untranslated
106828         message in 2002.
106829         (COPYRIGHT_YEAR): Define.
106830         (version_etc): Use fprintf rather than fputs.
106831         Suggestion from Ulrich Drepper.
106833         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
106835         * lib/strtoll.c: New file, from GNU libc.
106836         * lib/xstrtoimax.c: New file.
106838         * lib/xstrtol.h: Add xstrtoimax.
106839         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
106840         * lib/strtoimax.c: New file.  Likewise, but first define
106841         STRTOUXMAX_SIGNED.
106843         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
106844         ...
106845         * lib/strtoxmax.c: ... then renamed to this.
106847 2001-08-18  Paul Eggert  <eggert@twinsun.com>
106849         * m4/inttypes.m4: Add AC_PREREQ(2.13).
106850         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
106851         (jm_AC_TYPE_INTMAX_T): New macro.
106852         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
106854         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
106856         * m4/longlong.m4: Renamed from ulonglong.m4.
106857         * m4/inttypes.m4: Renamed from inttypes_h.m4.
106858         * m4/uintmax_t.m4: Removed.
106860 2001-08-13  Paul Eggert  <eggert@twinsun.com>
106862         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
106863         Port to Solaris 8, where 'sed' requires a space after the 'r'
106864         command, and where sh dislikes "$/".  Clean up the spacing a bit.
106865         Redirect output to $tmp just once.
106867 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
106869         * lib/addext.c (<errno.h>): Include.
106870         (errno): Declare if not defined.
106871         (addext): Work correctly when pathconf returns -1 and leaves
106872         errno alone because there is no limit.  Also, work even if
106873         pathconf returns a value greater than SIZE_MAX.
106875 2001-08-12  Jim Meyering  <meyering@lucent.com>
106877         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
106878         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
106879         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
106880         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
106881         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
106882         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
106883         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
106884         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
106885         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
106886         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
106887         utime.m4, utimes.m4, xstrtoumax.m4:
106888         Quote the first argument in each use of AC_DEFUN.
106890 2001-08-12  Jim Meyering  <meyering@lucent.com>
106892         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
106893         Simply `return getcwd (NULL, 0);'.
106894         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
106895         Use 1300 as initial value for length, not PATH_MAX.
106897         * lib/pathmax.h: Clean up cpp syntax.
106899 2001-08-12  Jim Meyering  <meyering@lucent.com>
106901         * lib/gettimeofday.c: New file.
106902         * lib/gtod.h: New file.
106903         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
106905 2001-08-05  Jim Meyering  <meyering@lucent.com>
106907         * m4/jm-macros.m4: Require autoconf-2.52.
106909 2001-08-04  Jim Meyering  <meyering@lucent.com>
106911         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
106912         stmt, to get in sync with glibc.
106914 2001-08-03  Paul Eggert  <eggert@twinsun.com>
106916         The following changes are from gettext 0.10.39 as maintained by
106917         Bruno Haible.
106919         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
106920         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
106921         with inverted sense.  All uses changed.
106923         * lib/mbswidth.c: Don't include <limits.h>.
106924         Include <stdlib.h> and <string.h> unconditionally.
106925         (iswcntrl, mbsinit, ISCNTRL): New macros.
106926         (mbsnwidth): Use K&R style function declarations.
106927         Don't bother checking for MB_LEN_MAX == 1, since the compiler
106928         can optimize it when MB_CUR_MAX == 1.
106929         The width of control characters is zero, not 1.
106931 2001-08-03  Paul Eggert  <eggert@twinsun.com>
106933         The following changes are from gettext 0.10.39 as maintained by
106934         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
106936         * m4/codeset.m4: Upgrade to serial AM1.
106937         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
106938         all uses changed.  Quote first arg of AC_DEFUN.
106939         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
106941         * m4/iconv.m4: Upgrade to serial AM2.
106942         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
106943         Add --with-libconv-prefix.
106944         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
106945         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
106946         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
106947         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
106948         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
106950         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
106951         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
106952         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
106953         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
106954         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
106955         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
106956         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
106957         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
106958         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
106960         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
106961         string.h any more.
106963         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
106964         not the default value.
106966         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
106967         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
106968         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
106969         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
106970         Also check for iswcntrl, used for wcwidth fallback.
106971         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
106972         to Autoconf 2.13.
106974 2001-08-03  Jim Meyering  <meyering@lucent.com>
106976         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
106977         as it was in the original.  Reported by Paul Eggert.
106979 2001-07-16  Jim Meyering  <meyering@lucent.com>
106981         * m4/gettimeofday.m4: New file.
106982         Prompted by a report from Bernhard Baehr.
106984 2001-07-15  Jim Meyering  <meyering@lucent.com>
106986         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
106987         stuff. Now it's in ../Makefile.cfg.
106989 2001-07-15  Jim Meyering  <meyering@lucent.com>
106991         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
106992         (BUILT_SOURCES): Add unlocked-io.h.
106993         (io_functions): Define.
106994         (unlocked-io.h): New rule.
106995         (DISTCLEANFILES): Add unlocked-io.h.
106996         (all-local): Depend on unlocked-io.h, to ensure it is created.
106998         * lib/unlocked-io.hin: New file
107000         * lib/regex.c: Update from glibc.
107002 2001-07-05  Jim Meyering  <meyering@lucent.com>
107004         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
107005         recommendation.
107006         (libfetish_a_SOURCES): Put all .h files here instead.
107007         Remove a thus-exposed (better checks in automake) duplicate and
107008         two unnecessary .h files.
107010 2001-07-04  Jim Meyering  <meyering@lucent.com>
107012         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
107013         that generates jm-glibc-io.m4 so that it doesn't trigger any make
107014         distcheck failure.
107016 2001-07-02  Jim Meyering  <meyering@lucent.com>
107018         The following changes were prompted by suggestions from Bruno Haible.
107020         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
107021         is now generated.
107022         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
107023         definition of EXTRA_DIST.
107024         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
107025         ensure that the generated file is created/updated whenever the list
107026         of $(unlocked_functions) is changed.
107027         (jm-glibc-io.m4): New rule.
107028         (unlocked-io.h): New rule -- currently unused.
107030 2001-06-24  Jim Meyering  <meyering@lucent.com>
107032         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
107033         unmatched right bracket, rather than kludging it with an extra,
107034         falsely-matching quote in a comment.  Patch by Akim Demaille.
107036 2001-06-11  Jim Meyering  <meyering@lucent.com>
107038         * lib/regex.c: Update from GNU libc.
107040 2001-05-27  Jim Meyering  <meyering@lucent.com>
107042         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
107043         Check for ut_type in struct utmp.
107045 2001-05-27  Jim Meyering  <meyering@lucent.com>
107047         * lib/readutmp.h (UT_TYPE): Define.
107049 2001-05-24  Jim Meyering  <meyering@lucent.com>
107051         * lib/argmatch.c: Include "quote.h".
107052         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
107053         quote function.  Reported by Göran Uddeborg.
107055 2001-05-22  Jim Meyering  <meyering@lucent.com>
107057         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
107058         now that we use the package-supplied version unconditionally.
107059         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
107061 2001-05-21  Jim Meyering  <meyering@lucent.com>
107063         * m4/regex.m4: Change a couple backticks to single quotes to avoid
107064         shell syntax errors.
107066 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
107068         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
107070 2001-05-20  Paul Eggert  <eggert@twinsun.com>
107072         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
107073         Don't bother to check library strftime, since
107074         we'll be using our own my_strftime function anyway.
107075         Define my_strftime instead of strftime.
107077 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
107079         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
107080         which is not yet declared.
107082 2001-05-15  Jim Meyering  <meyering@lucent.com>
107084         * m4/regex.m4: Use proper quoting so brackets appear in the test
107085         program.
107086         Reported by, and with help from, Bruno Haible.
107088 2001-05-13  Jim Meyering  <meyering@lucent.com>
107090         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
107091         undefined.
107093 2001-05-11  Paul Eggert  <eggert@twinsun.com>
107095         dirname code cleanup.  base_name now behaves more compatibly
107096         with POSIX basename when given file names that have trailing
107097         slashes, and similarly for dir_name.  Add new primitives
107098         base_len and dir_len.  Put the directory-name-related decls
107099         into dirname.h.
107101         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
107102         * lib/backupfile.c (base_name): Likewise.
107103         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
107104         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
107105         * lib/makepath.c (strip_trailing_slashes): Likewise.
107106         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
107107         ISSLASH): Likewise.
107108         * lib/rename.c (strip_trailing_slashes): Likewise.
107109         * lib/same.c (base_name): Likewise.
107110         * lib/stripslash.c (ISSLASH): Likewise.
107112         * lib/addext.c: Include <dirname.h> after size_t is defined.
107113         * lib/backupfile.c: Likewise.
107115         * lib/addext.c (addext): Use base_len to trim redundant
107116         trailing slashes instead of doing it ourselves.
107117         But do not trim the last slash if it is not redundant.
107119         * lib/backupfile.c (find_backup_file_name,
107120         max_backup_version): Use base_len instead of rolling it ourselves.
107121         Handle the case of "" and (on DOS) "C:" correctly.
107123         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
107124         needed. Include <string.h>, <dirname.h>.
107125         (base_name): Allow file names ending in slashes, other than names
107126         that are all slashes.  In this case, return the basename followed
107127         by the slashes.  This is more general, and can be used in places
107128         where the original base_name purposely had an assertion failure.
107129         (base_len): New function.
107131         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
107132         Do not include <assert.h>; no longer needed.
107133         Include xalloc.h.
107134         (memrchr): Remove decl.
107135         (dir_name_r): Remove.
107136         (dir_len): Renamed from dirlen.  All callers changed.
107137         Rewrite in terms of base_name, for simplicity and consistency.
107138         (dir_name): Never return NULL.  All callers changed.
107139         Do not include <stdlib.h> in test program; no longer needed.
107140         return 0; is fine for test program.
107142         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
107143         New macros.
107144         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
107146         * lib/path-concat.c (path_concat): Use base_len to compute
107147         base length, not strlen; this means we cannot rely on memcpy
107148         to null-terminate.
107150         * lib/same.c (STREQ): Remove.
107151         (same_name): Handle the case where the basename ends in trailing '/'.
107153         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
107154         a slash was stripped.  Do not strip the last slash after a
107155         file system prefix.
107157 2001-05-11  Paul Eggert  <eggert@twinsun.com>
107159         * lib/Makefile.am (libfetish_a_SOURCES):
107160         Add strftime.c, since we now compile it on all hosts.
107162         * lib/strftime.c (my_strftime):
107163         Define to nstrftime if emacs, but only if my_strftime is not defined.
107164         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
107165         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
107166         Add one more extra argument: a nanoseconds value.
107167         All uses changed.
107168         (ns): New macro.
107169         (my_strftime function): Add %N format.
107170         (emacs_strftimeu): Renamed from emacs_strftime,
107171         with extra ut argument.
107173 2001-05-09  Paul Eggert  <eggert@twinsun.com>
107175         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
107177 2001-04-21  Jim Meyering  <meyering@lucent.com>
107179         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
107180         doesn't interfere.
107182 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
107184         * m4/ftruncate.m4: Check for chsize.
107185         Link with ftruncate.o unconditionally if ftruncate is missing.
107186         This was required when cross-compiling to i586-mingw32msvc.
107188 2001-04-08  Jim Meyering  <meyering@lucent.com>
107190         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
107191         recomputed; that's necessary when the offset spans a DST transition.
107192         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
107194 2001-04-02  Jim Meyering  <meyering@lucent.com>
107196         * lib/regex.h, regex.c: Update from GNU libc.
107198 2001-03-24  Jim Meyering  <meyering@lucent.com>
107200         * m4/jm-macros.m4: Require autoconf-2.49d.
107202 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
107204         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
107206 2001-03-19  Paul Eggert  <eggert@twinsun.com>
107208         * lib/version-etc.c (version_etc_copyright): Update to 2001.
107210 2001-03-17  Jim Meyering  <meyering@lucent.com>
107212         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
107213         now that the version in autoconf is equivalent.
107214         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
107216         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
107217         Suggestion from Akim Demaille.
107219         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
107220         (jm_PREREQ_TEMPNAME): New function.
107222 2001-03-16  Paul Eggert  <eggert@twinsun.com>
107224         * lib/tempname.c (uint64_t): Define to uintmax_t if
107225         not defined, and if UINT64_MAX is not defined.
107226         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
107227         Reported by John David Anglin.
107229 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
107231         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
107232         resolve alias if codeset is empty.
107233         * lib/config.charset (BeOS): Use wildcard syntax.
107235 2001-03-13  Jim Meyering  <meyering@lucent.com>
107237         * lib/path-concat.c (path_concat)
107238         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
107239         concatenating e.g., `C:' and `foo'.
107240         From Bruno Haible.
107242 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
107244         * lib/localcharset.c (locale_charset): Don't use
107245         setlocale(LC_CTYPE,NULL). Don't return NULL.
107246         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
107248 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
107250         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
107251         support for DOS/DJGPP.
107253 2001-03-01  Paul Eggert  <eggert@twinsun.com>
107255         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
107256         lacks mkstemp.  Compile our own tempname.c if we compile our own
107257         mkstemp.c, as mkstemp relies on tempname.
107259 2001-03-01  Jim Meyering  <meyering@lucent.com>
107261         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
107262         AH_VERBATIM really does output its argument verbatim.
107264 2001-02-28  Paul Eggert  <eggert@twinsun.com>
107266         * lib/Makefile.am (libfetish_a_SOURCES):
107267         Add dup-safer.c, fopen-safer.c.
107268         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
107270         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
107271         * lib/unistd-safer.h: New files.
107273 2001-02-25  Paul Eggert  <eggert@twinsun.com>
107275         The mkstemp replacement is taken from glibc 2.2.2, with some
107276         portability fixes for use outside glibc, as follows:
107278         * lib/tempname.c (struct_stat64): New macro.
107279         (direxists, __gen_tempname): Use it.
107280         This avoids a portability problem with Solaris 8.
107282         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
107283         (<stddef.h>, <stdint.h>, <string.h>):
107284         Include only if STDC_HEADERS || _LIBC.
107285         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
107286         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
107287         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
107288         (__set_errno): Define this macro if <errno.h> doesn't.
107289         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
107290         Define these macros if <stdio.h> doesn't.
107291         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
107292         Define these macros if <sys/stat.h>
107293         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
107294         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
107295         __xstat64): Define if not _LIBC.
107296         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
107297         (__gen_tempname): Invoke gettimeofday only if
107298         HAVE_GETTIMEOFDAY || _LIBC;
107299         otherwise, fall back on plain "time".
107300         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
107302         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
107304         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
107306 2001-02-18  Paul Eggert  <eggert@twinsun.com>
107308         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
107310 2001-02-17  Paul Eggert  <eggert@twinsun.com>
107312         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
107313         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
107314         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
107315         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
107317 2001-02-17  Paul Eggert  <eggert@twinsun.com>
107319         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
107320         Remove workaround macros for hosts that have mbrtowc but not
107321         mbstate_t, as we now insist on proper declarations for both
107322         before using mbrtowc.
107324 2001-02-17  Jim Meyering  <meyering@lucent.com>
107326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
107327         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
107328         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
107329         UnixWare 7.1.1.
107331         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
107332         rather than AC_CACHE_VAL.
107334 2001-02-17  Jim Meyering  <meyering@lucent.com>
107336         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
107337         around included file name.
107339         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
107341         * lib/strftime.c: Update from GNU libc (the only changes were to
107342         comments).
107344 2001-02-17  Jim Meyering  <meyering@lucent.com>
107346         * lib/regex.c: Update from libc.
107348 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
107350         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
107351         clash.
107353 2001-02-16  Paul Eggert  <eggert@twinsun.com>
107355         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
107356         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
107357         Reported by Mark Hounschell via Paul Eggert.
107359 2001-02-07  Jim Meyering  <meyering@lucent.com>
107361         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
107363 2001-02-05  Jim Meyering  <meyering@lucent.com>
107365         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
107366         it includes the patch required for `large file' support with at least
107367         HP-UX's 10.20 /bin/cc.
107369 2001-02-03  Jim Meyering  <meyering@lucent.com>
107371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
107372         AS_IF, now that it works once again (mysteriously).
107373         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
107375 2001-01-30  Jim Meyering  <meyering@lucent.com>
107377         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
107378         * m4/chown.m4: Rename conftestchown to conftest.chown.
107379         * m4/rename.m4: s/conftestdir/conftest.d1/ and
107380         s/conftestdir2/conftest.d2/.
107381         * m4/utimes.m4: s/conftestdata/conftest.data/
107382         Inspired by Pavel Roskin's change in autoconf.
107384 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
107386         * lib/config.charset: Update for FreeBSD 4.2.
107388 2001-01-27  Jim Meyering  <meyering@lucent.com>
107390         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
107391         a use of AS_IF.
107392         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
107394 2001-01-26  Jim Meyering  <meyering@lucent.com>
107396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
107397         quotearg.c includes it.
107399 2001-01-26  Jim Meyering  <meyering@lucent.com>
107401         * lib/quotearg.c: Include stddef.h.
107402         * lib/quote.c: Include stddef.h.
107403         Reported by Axel Kittenberger.
107405         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
107406         line in double quotes so that it evokes a better diagnostic.
107407         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
107408         Reported by Axel Kittenberger.
107410 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
107412         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
107413         as if it was a `charset'.
107415 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
107417         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
107418         has const.
107420 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
107422         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
107423         to avoid a warning.  Add back 'const' to inptr.
107425 2001-01-20  Jim Meyering  <meyering@lucent.com>
107427         Be sure that headers are checked before used in code compiled
107428         for the type checks.
107429         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
107430         In place of that, invoke jm_CHECK_ALL_TYPES.
107431         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
107432         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
107433         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
107434         The check for ssize_t was mistakenly run before the test for unistd.h.
107436         The configure-time check for stdbool.h was missing.
107437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
107438         (jm_PREREQ_HASH): New function.
107440 2001-01-17  Jim Meyering  <meyering@lucent.com>
107442         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
107443         for autoconf-2.49c.
107444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
107446 2001-01-16  Jim Meyering  <meyering@lucent.com>
107448         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
107449         From Bruno Haible.
107451 2001-01-14  Jim Meyering  <meyering@lucent.com>
107453         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
107454         foo and bar.  Create conftestdir/ in the script, not in the C code.
107455         Remove directories in the script, not in the C code.
107456         Remove conftestdir{,2} before trying to create the directory.
107457         Make the entire configure script fail if the mkdir fails.
107459 2001-01-14  Jim Meyering  <meyering@lucent.com>
107461         * lib/rename.c: New file.  From Volker Borchert.
107462         Include stdlib.h, string.h or strings.h, and xalloc.h.
107463         Use strip_trailing_slashes rather than open-coding it.
107465 2001-01-03  Paul Eggert  <eggert@twinsun.com>
107467         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
107469 2001-01-03  Jim Meyering  <meyering@lucent.com>
107471         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
107472         of local `inptr' to avoid warning with some system declarations of
107473         iconv.
107475 2001-01-02  Volker Borchert  <bt@teknon.de>
107477         * m4/rename.m4: New file.
107478         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
107480 2001-01-01  Jim Meyering  <meyering@lucent.com>
107482         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
107483         even on systems with utmpx.h.  It's necessary for the declaration of
107484         utmp's ut_user member.  Reported by Andreas Jaeger.
107486         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
107487         available. They are required for the declarations of getgrgid and
107488         getpwuid resp.
107489         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
107490         Reported by Andreas Jaeger.
107492 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
107494         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
107495         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
107496         so `make install' also works in VPATH builds.
107498 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
107500         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
107501         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
107502         can be used in subdirectories.
107504 2000-12-29  Paul Eggert  <eggert@twinsun.com>
107506         * lib/modechange.c: Do not assume that mode_t uses the
107507         traditional octal encoding.  E.g. "chmod 1 FOO" should set
107508         the other-execute bit of FOO even if S_IXOTH != 1.
107510         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
107511         WOTH, XOTH, ALLM): New macros.
107512         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
107513          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
107514         Use them.
107515         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
107516         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
107517         (mode_compile):
107518         No need to use uintmax_t; unsigned long is long enough.
107519         Don't bother to get suffix since we don't use it.
107521 2000-12-26  Jim Meyering  <meyering@lucent.com>
107523         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
107524         better with autoheader.
107526 2000-12-24  Jim Meyering  <meyering@lucent.com>
107528         * lib/hash.c (is_prime): Return explicit boolean values.
107529         (hash_get_first): Return NULL to appease Irix5.6's 89.
107530         Reported by Nelson Beebe.
107532 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
107534         * lib/localcharset.c (locale_charset): Add support for Win32.
107536 2000-12-18  Paul Eggert  <eggert@twinsun.com>
107538         * lib/physmem.h, lib/physmem.c: New files.
107540         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
107541         (noinst_HEADERS): Add physmem.h.
107543         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
107544         't' for compatibility with Solaris 8 sort.
107546 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
107548         * lib/config.charset: Add support for BeOS.
107550 2000-12-17  Jim Meyering  <meyering@lucent.com>
107552         * m4/dos.m4 (jm_AC_DOS): New file and macro.
107553         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
107555 2000-12-16  Jim Meyering  <meyering@lucent.com>
107557         This bug had a serious impact on chown: `chown N:M FILE' (for integer
107558         N and M) would have treated it like `chown N:N FILE'.
107560         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
107562 2000-12-16  Jim Meyering  <meyering@lucent.com>
107564         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
107565         SHELLS_FILE to a file name that's useful on djgpp systems.
107566         Include stdlib.h.
107567         (ADDITIONAL_DEFAULT_SHELLS): Define.
107568         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
107569         Based mostly on a patch from Prashant TR.
107571 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
107573         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
107574         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
107575         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
107577 2000-12-08  Andreas Schwab  <schwab@suse.de>
107579         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
107580         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
107582 2000-12-07  Jim Meyering  <meyering@lucent.com>
107584         * lib/stripslash.c (ISSLASH): Define.
107585         (strip_trailing_slashes): Use ISSLASH rather than comparing against
107586         `/'.
107587         From Prashant TR.
107589         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
107590         (dir_name_r): Declare this function as static.
107591         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
107592         manifest itself on a name containing a mix of slashes and
107593         backslashes.
107594         Make this function work with names starting with a DOS-style
107595         drive letter and colon prefix.
107596         (dir_name): Append `.' if necessary.
107597         Based mostly on patches from Prashant TR and Eli Zaretskii.
107599         * lib/dirname.h (dir_name_r): Remove prototype.
107601 2000-12-06  Paul Eggert  <eggert@twinsun.com>
107603         * m4/off_t-format.m4: Remove this file.
107604         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
107606 2000-12-06  Jim Meyering  <meyering@lucent.com>
107608         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
107609         replacement strtoull, we may well need the replacement strtoul, too.
107610         Check for declarations of strtoul and strtoull.
107611         Check for strtol.  Mainly as a cue to cause automake to include
107612         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
107613         Check for limits.h -- strtol.c needs it.
107615 2000-12-05  Jim Meyering  <meyering@lucent.com>
107617         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
107619 2000-12-04  Jim Meyering  <meyering@lucent.com>
107621         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
107622         Also include memory.h, stdlib.h, unistd.h if appropriate.
107623         Reported by Andreas Jaeger (conflicting declaration of malloc).
107625 2000-12-02  Jim Meyering  <meyering@lucent.com>
107627         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
107628         * m4/jm-macros.m4 (jm_MACROS): require it.
107630 2000-12-02  Jim Meyering  <meyering@lucent.com>
107632         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
107634 2000-12-01  Paul Eggert  <eggert@twinsun.com>
107636         * lib/memrchr.c: Include <config.h> before any system include file.
107638 2000-11-30  Jim Meyering  <meyering@lucent.com>
107640         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
107642 2000-11-30  Jim Meyering  <meyering@lucent.com>
107644         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
107646 2000-11-29  Paul Eggert  <eggert@twinsun.com>
107648         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
107650 2000-11-26  Jim Meyering  <meyering@lucent.com>
107652         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
107654 2000-11-22  Paul Eggert  <eggert@twinsun.com>
107656         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
107657         size of (size_t) -1; it's not portable.
107659 2000-11-17  Jim Meyering  <meyering@lucent.com>
107661         * lib/strstr.c: Update from GNU libc.
107663 2000-11-17  Akim Demaille  <akim@epita.fr>
107665         * lib/obstack.h: Formatting changes.
107666         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
107667         prevent type checking.
107668         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
107669         cast the value to (void *): assigning a `foo *' to a `void *'
107670         variable is valid.
107671         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
107673 2000-11-16  Jim Meyering  <meyering@lucent.com>
107675         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
107677 2000-11-11  Jim Meyering  <meyering@lucent.com>
107679         * lib/error.c: Add a couple #includes, merging from GNU libc version.
107681 2000-11-10  Jim Meyering  <meyering@lucent.com>
107683         * lib/obstack.h: Update from GNU libc.
107684         * lib/obstack.c: Likewise.
107686 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
107688         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
107690 2000-11-06  Paul Eggert  <eggert@twinsun.com>
107692         * lib/getusershell.c (setusershell): Use rewind rather than
107693         fseek/fseeko, to avoid configuration hassles with fseeko.
107694         Don't bother opening SHELLS_FILE if shellstream is NULL;
107695         it's not necessary.
107697 2000-11-05  Jim Meyering  <meyering@lucent.com>
107699         * lib/makepath.h (make_dir): Declare.
107700         * lib/makepath.c (make_dir): Remove `static' attribute.
107701         Tweak a comment.
107703 2000-11-04  Jim Meyering  <meyering@lucent.com>
107705         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
107707 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
107709         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
107710         last one in a bucket, advance to the next bucket.
107712 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
107714         * lib/fnmatch.c: Do not comment out all the code if we are using
107715         the GNU C library, because in some cases we are replacing buggy
107716         code in the GNU C library itself.
107718 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
107720         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
107721         (regex_compile): Catch bogus \(\1\).
107723 2000-10-30  Paul Eggert  <eggert@twinsun.com>
107725         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
107726         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
107727         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
107729 2000-10-30  Paul Eggert  <eggert@twinsun.com>
107731         * lib/error.h, getline.h, modechange.h:
107732         Remove "2000" from Copyright line, as the file hasn't been
107733         changed this year other than in the copyright notice.
107735         * lib/xalloc.h: Add "2000" to Copyright line, as this file
107736         was changed this year.
107738 2000-10-29  Jim Meyering  <meyering@lucent.com>
107740         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
107741         renaming.
107742         * m4/ls-mntd-fs.m4: Likewise
107744 2000-10-29  Jim Meyering  <meyering@lucent.com>
107746         * lib/xstat.in: Fix grammar in comment.
107748 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
107750         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
107751         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
107752         doesn't define __restrict_arr.
107754 2000-10-28  Jim Meyering  <meyering@lucent.com>
107756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
107757         (jm_PREREQ_MEMCHR): New function.
107759 2000-10-28  Jim Meyering  <meyering@lucent.com>
107761         * lib/memchr.c: Update from libc.
107762         Adjust for portability:
107763         [HAVE_STDLIB_H]: Include stdlib.h.
107764         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
107765         Undef __memchr, too.
107766         [!weak_alias]: Define __memchr to memchr.
107768         * lib/regex.c: Update from libc.
107769         * lib/regex.h: Likewise.
107770         * lib/getopt1.c: Likewise.
107771         * lib/memcmp.c: Likewise.
107773         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
107774         Avoid using fseek, when possible -- it's broken by design.
107775         Patch by Ulrich Drepper.
107777 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
107779         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
107780         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
107781         Giving in to popular pressure to shut up the compiler with casts.
107783 2000-10-26  Jim Meyering  <meyering@lucent.com>
107785         * lib/strftime.c: Update from libc.
107787 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
107789         * regex.c: More `unsigned char' -> `re_char' changes.
107790         Also change several `int' into `re_wchar_t'.
107791         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
107792         (PUSH_FAILURE_POINTER): Don't cast any more.
107793         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
107794         We want GCC to complain, since this piece of code makes
107795         re_match non-reentrant, which *should* be fixed.
107796         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
107797         (EXTEND_BUFFER): Use RETALLOC.
107798         (SET_LIST_BIT): Don't cast.
107799         (re_wchar_t): New type.
107800         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
107801         that those two functions will always properly return.
107802         (IMMEDIATE_QUIT_CHECK): Cast to void.
107803         (analyse_first): Use recursion rather than an explicit stack.
107804         (re_compile_fastmap): Can't fail anymore.
107805         (re_search_2): Don't check re_compile_fastmap for failure.
107806         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
107807         Now also sets the new value (passed in a new argument).
107808         (re_match_2_internal): Use it.
107809         Also, use a new var `reg' of type size_t when looping through regs
107810         rather than reuse the inappropriate `mcnt'.
107812 2000-10-25  Jim Meyering  <meyering@lucent.com>
107814         * lib/obstack.c: Update from libc.
107816 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
107818         * regex.c (regex_compile): Change the way of handling a range from
107819         a char less than 256 to a char not less than 256.
107821 2000-10-24  Andrew Innes  <andrewi@gnu.org>
107823         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
107824         NT-Emacs only.
107825         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
107826         so that re_search functions only quit when callers expect them to.
107828 2000-10-23  Jim Meyering  <meyering@lucent.com>
107830         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
107831         wrong.  That set_locale call must not have any side effects.
107832         From Paul Eggert.
107834 2000-10-22  Jim Meyering  <meyering@lucent.com>
107836         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
107837         [CYCLIC]: Remove now-unused definition.
107839         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
107840         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
107841         Suggestion from Ulrich Drepper.
107843 2000-10-21  Jim Meyering  <meyering@lucent.com>
107845         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
107846         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
107847         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
107849 2000-10-21  Jim Meyering  <meyering@lucent.com>
107851         * lib/dirname.c (memrchr): Declare if necessary.
107852         (dir_name): Remove the restriction that there be no
107853         trailing slashes.  Now, this code skips past them, effectively
107854         ignoring them.
107855         [TEST_DIRNAME] (main): New unit tests.
107857         * lib/memrchr.c: New file from GNU libc.
107858         Undef __memrchr, too.
107859         [!weak_alias]: Define __memrchr to memrchr.
107860         Guard weak_alias use with `#ifdef weak_alias'.
107862 2000-10-21  Jim Meyering  <meyering@lucent.com>
107864         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
107865         (dir_name): Use dir_name_r.
107866         * lib/dirname.h (dir_name_r): Declare it.
107868 2000-10-17  Jim Meyering  <meyering@lucent.com>
107870         * lib/quote.h (PARAMS): Define and use.
107871         Reported by Akim Demaille.
107873         * lib/getopt.c: Update from libc.
107875 2000-10-16  Jim Meyering  <meyering@lucent.com>
107877         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
107878         setlocale.
107879         From Jan Fedak.
107881 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
107883         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
107885 2000-09-25  Jim Meyering  <meyering@lucent.com>
107887         * lib/md5.h (rol): Define (from GnuPG).
107889         * lib/sha.c: Give credit (GnuPG) where due.
107890         (M): Use rol rather than open-coding it.
107891         Add a FIXME comment.
107893 2000-09-21  Jim Meyering  <meyering@lucent.com>
107895         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
107896         Reported by Michael Stone.
107898 2000-09-20  Jim Meyering  <meyering@lucent.com>
107900         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
107901         (noinst_HEADERS): Add sha.h.
107902         Based on code from Scott G. Miller and from GnuPG.
107904 2000-09-18  Jim Meyering  <meyering@lucent.com>
107906         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
107907         LIBS. Otherwise, everyone ends up linking with -lelf for some
107908         configurations.
107909         Reported by Mike Stone.
107911 2000-09-15  Jim Meyering  <meyering@lucent.com>
107913         * lib/regex.c: Update from libc.
107915 2000-09-10  Jim Meyering  <meyering@lucent.com>
107917         * lib/getopt.c (_getopt_internal): Update from glibc.
107919 2000-09-09  Jim Meyering  <meyering@lucent.com>
107921         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
107922         think it should be used as a general replacement for isascii.
107923         * lib/fnmatch.c: Likewise.
107924         * lib/mbswidth.c: Likewise
107925         * lib/regex.c: Likewise.
107927         Don't use atoi.
107928         * lib/userspec.c: Include sys/param.h and limits.h.
107929         Include xstrtol.h.
107930         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
107931         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
107932         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
107933         UID, GID.  Check range.
107935 2000-09-06  Jim Meyering  <meyering@lucent.com>
107937         * lib/getopt.c (_getopt_internal): Update from glibc.
107939 2000-08-30  Jim Meyering  <meyering@lucent.com>
107941         * lib/strftime.c: Merge in changes from GNU libc.
107943 2000-08-26  Jim Meyering  <meyering@lucent.com>
107945         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
107946         * m4/fpending.m4: New file.
107948 2000-08-26  Jim Meyering  <meyering@lucent.com>
107950         * lib/closeout.c: Include "__fpending.h".
107951         (close_stdout_status): Return right away if there's nothing to flush.
107953         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
107954         * lib/__fpending.c: New file.
107955         * lib/__fpending.h: New file.
107957 2000-08-20  Jim Meyering  <meyering@lucent.com>
107959         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
107960         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
107961         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
107963 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
107965         Improve fileutils installation on systems where running
107966         programs (like install) can't be unlinked.
107967         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
107968         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
107970 2000-08-07  Paul Eggert  <eggert@twinsun.com>
107972         Standardize on "memory exhausted" instead of "Memory exhausted"
107973         or "virtual memory exhausted".
107974         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
107975         "virtual memory exhausted".
107976         * lib/same.c (same_name): Invoke xalloc_die instead of printing
107977         our own message.
107978         * lib/userspec.c (parse_user_spec): Likewise.
107979         * lib/bumpalloc.h: comment fix
107980         * lib/same.c, userspec.c: Include xalloc.h.
107982         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
107983         not char *const and pointing to a constant array.
107984         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
107985         (xrealloc): Comment fix.
107987         * lib/userspec.c (parse_user_spec):
107988         Don't translate a message until just before returning,
107989         to avoid unnecessary translation.
107991 2000-08-07  Jim Meyering  <meyering@lucent.com>
107993         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
107994         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
107995         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
107996         getgroups.c, gethostname.c, getopt.h, group-member.c,
107997         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
107998         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
107999         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
108000         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
108001         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
108002         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
108003         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
108004         yesno.c: Back out Copyright date changes for each file with no change
108005         this year.  This eases coordination with other programs using the same
108006         source code modules.  From Paul Eggert.
108008 2000-08-06  Paul Eggert  <eggert@twinsun.com>
108010         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
108011         not char, for compatibility with glibc 2.1.3 strftime.c.
108013 2000-08-03  Greg McGary  <greg@mcgary.org>
108015         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
108016         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
108017         (EXTEND_BUFFER): Use them.
108019 2000-08-01  Jim Meyering  <meyering@lucent.com>
108021         * lib/dirname.c (ISSLASH): Define.
108022         (BACKSLASH_IS_PATH_SEPARATOR): Define.
108023         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
108024         both `\' and `/' may be use as path separators.
108025         Based on a patch from Prashant TR.
108027 2000-07-31  Paul Eggert  <eggert@twinsun.com>
108029         * lib/quotearg.c (quotearg_n_options): Don't make the initial
108030         slot vector a constant, since it might get modified.
108032 2000-07-31  Jim Meyering  <meyering@lucent.com>
108034         * lib/xmalloc.c: Use `virtual memory exhausted', not
108035         `Memory exhausted'.
108036         * lib/obstack.c (print_and_abort): Likewise.
108038 2000-07-30  Paul Eggert  <eggert@twinsun.com>
108040         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
108041         buffer, so that the caller can always quote one small
108042         component of a "memory exhausted" message in slot 0.
108043         From a suggestion by Jim Meyering.
108045 2000-07-30  Jim Meyering  <meyering@lucent.com>
108047         * lib/makepath.c (make_path): Quote the other instance, too.
108049         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
108050         (STATIC_BUF_SIZE): Define.
108051         (quotearg_n_options): Use only statically allocated storage when
108052         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
108053         than STATIC_BUF_SIZE.
108055 2000-07-29  Jim Meyering  <meyering@lucent.com>
108057         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
108058         * lib/dirname.c (dir_name): Likewise.
108060         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
108061         `/'.
108063         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
108064         (dir_name): Assert that there are no trailing slashes.
108066 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
108068         * lib/mbswidth.h (mbswidth): Add a flags argument.
108069         (mbswidth): New declaration.
108070         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
108071         * lib/mbswidth.c (mbswidth): Add a flags argument.
108072         (mbsnwidth): New function.
108074 2000-07-24  Jim Meyering  <meyering@lucent.com>
108076         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
108078 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
108082 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108084         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
108085         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
108086         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
108087         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
108088         invoke multibyte primitives.
108090 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108092         * lib/quotearg.c:
108093         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
108094         so that mbstate_t is always defined.
108096         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
108097         be 1 in at least one GCC installation, and this configuration
108098         error is likely to be common.  Ignoring MB_LEN_MAX hurts
108099         performance on hosts that have mbrtowc but have only unibyte
108100         locales, but I assume these hosts are rare.
108102 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108104         * lib/mbswidth.c (_XOPEN_SOURCE):
108105         Don't define; this causes problems on Solaris 7.
108106         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
108108 2000-07-23  Jim Meyering  <meyering@lucent.com>
108110         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
108111         too: getgrgid, getpwuid, getuid.
108113 2000-07-23  Jim Meyering  <meyering@lucent.com>
108115         * lib/basename.c (base_name): Add an assertion.
108117 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
108119         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
108120         shadow its mbsinit function.
108122 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
108124         * lib/mbswidth.h: New file.
108125         * lib/mbswidth.c: New file.
108126         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
108127         (noinst_HEADERS): Add mbswidth.h.
108129 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
108131         * lib/config.charset: Add support for FreeBSD. Improve support for
108132         HP-UX and IRIX 6.
108134 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
108136         * m4/mbswidth.m4: New file.
108137         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
108139 2000-07-15  Jim Meyering  <meyering@lucent.com>
108141         * lib/makepath.c: Include quote.h.
108142         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
108143         corresponding argument in a `quote (...)' call.
108144         Give better diagnostics.
108146         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
108147         (noinst_HEADERS): Add quote.h.
108149         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
108150         from tar's src/misc.c.
108151         * lib/quote.h: New file.  Prototypes for same.
108153 2000-07-14  Paul Eggert  <eggert@twinsun.com>
108155         From a suggestion by Bruno Haible.
108156         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
108157         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
108158         to decide whether to define the BeOS workaround macro;
108159         this adjusts to the change to AC_MBSTATE_T.
108161 2000-07-14  Jim Meyering  <meyering@lucent.com>
108163         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
108164         jm_AC_TYPE_UINTMAX_T.
108166 2000-07-13  Paul Eggert  <eggert@twinsun.com>
108168         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
108170         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
108171         quotearg_buffer_restyled): Add support for
108172         clocale_quoting_style.  Undo previous change to
108173         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
108174         and "{RIGHT QUOTATION MARK}" msgids.
108176 2000-07-10  Paul Eggert  <eggert@twinsun.com>
108178         From a suggestion by Bruno Haible.
108179         * m4/mbstate_t.m4 (AC_MBSTATE_T):
108180         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
108181         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
108182         and mbstate_t, to a single-part test that simply defines mbstate_t.
108183         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
108184         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
108186 2000-07-10  Jim Meyering  <meyering@lucent.com>
108188         * m4/strerror_r.m4: Mirror the correction made in autoconf.
108190         * m4/gnu-source.m4: Output to confdefs.h directly.
108191         Suggestion from Akim Demaille.
108193 2000-07-09  Paul Eggert  <eggert@twinsun.com>
108195         The old behavior of quoting `like this' doesn't look good with
108196         newer, ISO-style fonts.  See:
108197         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
108199         Instead, quote "like this" by default.  Let the translator
108200         tailor the locale-specific quoting behavior by providing
108201         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
108203         * lib/quotearg.c (N_): New macro.
108204         (gettext_default): New function.
108205         (quotearg_buffer_restyled): Use
108206         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
108207         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
108209 2000-07-09  Jim Meyering  <meyering@lucent.com>
108211         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
108212         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
108214         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
108215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
108217 2000-07-09  Jim Meyering  <meyering@lucent.com>
108219         * lib/Most files: Update copyright dates to include 2000.
108221 2000-07-08  Jim Meyering  <meyering@lucent.com>
108223         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
108224         if not defined.
108225         (xgethostname): Remove now-unnecessary #ifdef.
108226         Move declaration of `err' into loop where it's used.
108228 2000-07-05  Paul Eggert  <eggert@twinsun.com>
108229         and Bruno Haible  <haible@clisp.cons.org>
108231         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
108232         only if the test for an object-type mbstate_t fails.  This
108233         prevents us from mistakenly reporting that mbstate_t is a
108234         system object type after we "#define mbstate_t int" to work
108235         around its lack.
108237 2000-07-05  Paul Eggert  <eggert@twinsun.com>
108238         and Bruno Haible  <haible@clisp.cons.org>
108240         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
108242 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
108244         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
108245         to strerror_r.
108246         Include <ctype.h> for use of isalpha.
108248 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
108250         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
108251         by allocating a larger buffer. Test the gethostname return value for
108252         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
108253         returns an error and ENAMETOOLONG isn't defined.
108255 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
108257         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
108258         dimension.
108260 2000-07-04  Jim Meyering  <meyering@lucent.com>
108262         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
108263         of the deprecated AC_CHECKING.
108265 2000-07-04  Jim Meyering  <meyering@lucent.com>
108267         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
108268         Reported by Bruno Haible.
108270 2000-07-04  Jim Meyering  <meyering@lucent.com>
108272         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
108273         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
108274         lacks mbrtowc.
108276 2000-07-03  Paul Eggert  <eggert@twinsun.com>
108278         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
108279         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
108281 2000-07-03  Paul Eggert  <eggert@twinsun.com>
108282         and Bruno Haible  <haible@clisp.cons.org>
108284         * lib/quotearg.c (mbrtowc):
108285         Assign to *pwc, and return 1 only if result is nonzero.
108286         (iswprint): Use ISPRINT when substituting our own mbrtowc.
108288 2000-07-03  Jim Meyering  <meyering@lucent.com>
108290         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
108292 2000-07-03  Jim Meyering  <meyering@lucent.com>
108294         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
108295         This is necessary to get a definition of e.g., UTMP_FILE on
108296         HP-UX 10.20.
108297         From Bob Proulx.
108299 2000-07-02  Jim Meyering  <meyering@lucent.com>
108301         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
108303         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
108304         AC_LIBOBJ(function_name).
108305         * m4/chown.m4: Likewise.
108306         * m4/fnmatch.m4: Likewise.
108307         * m4/ftruncate.m4: Likewise.
108308         * m4/getgroups.m4: Likewise.
108309         * m4/getline.m4: Likewise.
108310         * m4/group-member.m4: Likewise.
108311         * m4/jm-macros.m4: Likewise.
108312         * m4/lstat.m4: Likewise.
108313         * m4/malloc.m4: Likewise.
108314         * m4/memcmp.m4: Likewise.
108315         * m4/nanosleep.m4: Likewise.
108316         * m4/putenv.m4: Likewise.
108317         * m4/realloc.m4: Likewise.
108318         * m4/regex.m4: Likewise.
108319         * m4/stat.m4: Likewise.
108320         * m4/strftime.m4: Likewise.
108322 2000-07-02  Jim Meyering  <meyering@lucent.com>
108324         * lib/quotearg.c (mbstate_t): Don't define here.
108326 2000-07-02  Jim Meyering  <meyering@lucent.com>
108328         * lib/nanosleep.c (SIGCONT): Define if not already defined.
108330 2000-07-01  Jim Meyering  <meyering@lucent.com>
108332         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
108334 2000-07-01  Jim Meyering  <meyering@lucent.com>
108336         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
108337         problem.
108339 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
108341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
108342         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
108344 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
108346         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
108347         per change in ../m4/ls-mntd-fs.m4.
108348         (read_filesystem_list): Ignore symbolic links.
108350 2000-06-29  Jim Meyering  <meyering@lucent.com>
108352         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
108353         for declaration of strcmp.
108355         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
108357         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
108358         Avoid warning by casting result to `char *' to remove `const'.
108360 2000-06-28  Jim Meyering  <meyering@lucent.com>
108362         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
108363         included by quotearg.c, for which we perform this test.  From
108364         Bruno Haible.
108366 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
108368         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
108369         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
108370         <utmpx.h> exists, put readutmp.o into LIBOBJS.
108372 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
108374         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
108376 2000-06-26  Paul Eggert  <eggert@twinsun.com>
108378         savedir now sets errno on failure and invokes xmalloc to get memory.
108379         Fix a couple of other minor bugs while we're at it.
108381         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
108382         (NAMLEN): Remove macro.
108383         (malloc, realloc): Remove decls.
108384         (stpcpy): Likewise.
108385         ("xalloc.h"): Include.
108386         (NAME_SIZE_DEFAULT): New macro.
108387         (savedir): Use xmalloc / xrealloc to allocate memory.
108388         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
108389         Skip "" directory entries.
108390         Use strlen to calculate directory entry length, since the old method
108391         is rarely used these days and isn't worth supporting.
108392         Don't use a pointer after freeing it.
108393         Check for integer overflow when calculating allocation size.
108394         Use memcpy to copy entries, instead of stpcpy.
108395         Set errno properly when returning NULL.
108396         Check for readdir error.
108398 2000-06-26  Jim Meyering  <meyering@lucent.com>
108400         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
108402 2000-06-25  Jim Meyering  <meyering@lucent.com>
108404         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
108405         Linux header bug when _XOPEN_SOURCE is defined to 500.
108407 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
108409         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
108410         deficiency.
108412 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
108414         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
108415         Include xalloc.h.
108416         Don't include <stdlib.h>.  Don't declare malloc, realloc.
108418 2000-06-24  Jim Meyering  <meyering@lucent.com>
108420         * m4/strerror_r.m4: Revive this file -- to try out an experimental
108421         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
108422         for which strerror does return char*, but which lacks a conveniently
108423         accessible declaration of the function.  If the compile-test says
108424         strerror_r doesn't work, then resort to a `run'-test that works on
108425         BeOS and segfaults on DEC Unix.
108427 2000-06-24  Jim Meyering  <meyering@lucent.com>
108429         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
108431 2000-06-23  Paul Eggert  <eggert@twinsun.com>
108433         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
108434         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
108436 2000-06-23  Paul Eggert  <eggert@twinsun.com>
108438         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
108439         (mbrtowc, mbstate_t): Define substitutes if
108440         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
108441         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
108442         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
108444 2000-06-23  Jim Meyering  <meyering@lucent.com>
108446         * m4/afs.m4: Add missing AC_MSG_RESULT.
108447         Reported by Bruno Haible.
108449         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
108450         Suggestion from Bruno Haible.
108452 2000-06-23  Jim Meyering  <meyering@lucent.com>
108454         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
108456 2000-06-21  Jim Meyering  <meyering@lucent.com>
108458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
108460 2000-06-21  Jim Meyering  <meyering@lucent.com>
108462         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
108463         (noinst_HEADERS): Add getstr.h.
108465         * lib/getline.c (getstr): Move into a separate file.
108466         * lib/getstr.c (getstr): New file, extracted from getline.c, with
108467         the following changes: new parameter, delim2; both delim[12]
108468         parameters have type `int', not `char'.  The latter would lose
108469         with 8-bit delimiters.
108470         * lib/getstr.h: New file.
108472 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
108474         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
108475         than 1024, return a memory chunk of least possible size, instead
108476         of size PATH_MAX + 2. In the loop, increment the size proportionally.
108477         Use free/xmalloc instead of xrealloc to avoid copying for very long
108478         paths.
108480 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
108482         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
108483         the empty string.
108485 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
108487         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
108488         address, not strdup.  Include <stdlib.h> and don't declare free().
108490 2000-06-19  Jim Meyering  <meyering@lucent.com>
108492         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
108494 2000-06-18  Jim Meyering  <meyering@lucent.com>
108496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
108498         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
108499         `checking whether...' message to be consistent with that of the
108500         lstat test.
108502 2000-06-18  Jim Meyering  <meyering@lucent.com>
108504         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
108505         Besides, these days every porting target provides a mkdir function.
108507         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
108508         needed. (this snippet comes from src/system.h).
108510 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
108512         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
108514 2000-06-15  Paul Eggert  <eggert@twinsun.com>
108516         * lib/human.c (adjust_value): New function.
108517         (human_readable_inexact): Apply rounding style even when
108518         printing approximate values.
108520 2000-06-14  Paul Eggert  <eggert@twinsun.com>
108522         * lib/human.c (human_readable_inexact): Allow an input block
108523         size that is not a multiple of the output block size, and vice versa.
108524         Reported by Piergiorgio Sartor.
108526 2000-06-14  Paul Eggert  <eggert@twinsun.com>
108528         * lib/getdate.y (get_date): Apply relative times after time
108529         zone indicator, not before.  Reported by Todd A. Jacobs.
108531 2000-06-13  Jim Meyering  <meyering@lucent.com>
108533         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
108535         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
108537 2000-06-12  Paul Eggert  <eggert@twinsun.com>
108539         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
108541 2000-06-12  Jim Meyering  <meyering@lucent.com>
108543         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
108544         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
108545         optional argument.
108546         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
108547         the optional argument, `lib'.
108549 2000-06-08  Jim Meyering  <meyering@lucent.com>
108551         * m4/largefile.m4: Remove file (now that it's part of autoconf).
108553 2000-06-04  Paul Eggert  <eggert@twinsun.com>
108555         Rewrite largefile configuration so that we don't need to run
108556         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
108557         AC_CANONICAL_HOST in configure.in -- jmm]
108559         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
108560         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
108561         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
108562         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
108563         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
108564         All uses changed.
108565         Instead of inspecting the output of getconf, try to compile the
108566         test program without and with the macro definition.
108567         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
108568         for getconf.  Instead, check for the needed flags by compiling
108569         test programs.
108571 2000-06-04  Paul Eggert  <eggert@twinsun.com>
108573         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
108575 2000-06-04  Jim Meyering  <meyering@lucent.com>
108577         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
108578         SunOS 4.1.4 for which gid_t is an unsigned type.
108580 2000-06-03  Jim Meyering  <meyering@lucent.com>
108582         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
108583         now that autoconf requires that.
108585         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
108586         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
108587         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
108589 2000-06-03  Jim Meyering  <meyering@lucent.com>
108591         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
108593 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
108595         * m4/glibc21.m4: New file.
108596         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
108598 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
108600         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
108601         newer, don't install charset.alias.
108602         * lib/config.charset: Change the Linux/glibc rules so they become empty
108603         on glibc-2.1 or newer.
108605 2000-06-02  Jim Meyering  <meyering@lucent.com>
108607         * lib/mountlist.c: Back out last change.  Instead, do this...
108608         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
108609         me_dummy member using the same `ignore'-testing code.
108610         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
108611         fs_type strings.
108612         From Mark D. Roth.
108614 2000-05-29  Jim Meyering  <meyering@lucent.com>
108616         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
108617         mounts with the `ignore' attribute.  Based on a patch from
108618         Mark D. Roth.
108620 2000-05-28  Jim Meyering  <meyering@lucent.com>
108622         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
108623         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108624         * m4/stat.m4: Likewise.
108625         * m4/lstat.m4: Likewise.
108626         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
108628         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
108629         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
108631 2000-05-26  Jim Meyering  <meyering@lucent.com>
108633         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
108635 2000-05-24  Jim Meyering  <meyering@lucent.com>
108637         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
108638         autoconf requires that.
108639         * m4/lib-check.m4: Likewise.
108640         * m4/jm-macros.m4: Likewise.
108641         * m4/strftime.m4: Likewise.
108643         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
108644         AC_CHECK_DECLS, now that autoconf requires that.
108646 2000-05-22  Jim Meyering  <meyering@lucent.com>
108648         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108649         * m4/lstat.m4: Likewise.
108651 2000-05-22  Jim Meyering  <meyering@lucent.com>
108653         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
108655 2000-05-20  Jim Meyering  <meyering@lucent.com>
108657         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
108658         (jm_PREREQ): Use it.
108660 2000-05-18  Jim Meyering  <meyering@lucent.com>
108662         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
108663         back, too, since it may have been modified by allocate_entry.
108664         (hash_delete): Rewrite to use neither the assignment operator
108665         nor the comma operator in an if-expression.
108667 2000-05-15  Paul Eggert  <eggert@twinsun.com>
108669         * lib/closeout.c:
108670         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
108671         Remove; no longer needed.
108672         "quotearg.h": Add include.
108673         (file_name): Do not bother to explicitly initialize to NULL; it's less
108674         efficient on some hosts.
108675         (close_stdout_status): Remove test as to whether stdout was already
108676         closed; it breaks for the case "echo x | sort >&-".
108677         Quote file name colons.
108678         Do not assume that _("write error") lacks format strings.
108680 2000-05-15  Jim Meyering  <meyering@lucent.com>
108682         * lib/version-etc.c (version_etc_copyright): Update the copyright
108683         string used in all --version output.
108685 2000-05-14  Jim Meyering  <meyering@lucent.com>
108687         * lib/closeout.c (close_stdout_set_file_name): New function.
108688         (close_stdout_status): Use new file-scoped global.
108689         Return right away if fstat says the stdout file descriptor is invalid.
108690         * lib/closeout.h (close_stdout_set_file_name): Declare.
108692 2000-05-10  Jim Meyering  <meyering@lucent.com>
108694         * lib/closeout.c [default_exit_status]: New file-scoped variable.
108695         (close_stdout_set_status): New function.
108696         * lib/closeout.h (close_stdout_set_status): Declare.
108698 2000-05-09  Jim Meyering  <meyering@lucent.com>
108700         * m4/gettext.m4: Rename this...
108701         * m4/libintl.m4: ...to this.
108703 2000-05-08  Jim Meyering  <meyering@lucent.com>
108705         * lib/long-options.c: Don't include closeout.h.
108706         (parse_long_options): Don't call close_stdout for --version.
108708 2000-05-06  Paul Eggert  <eggert@twinsun.com>
108710         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
108711         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
108712         2.1.3 bug.  This avoids a clash when files like regex.c define
108713         _GNU_SOURCE.
108715 2000-05-06  Jim Meyering  <meyering@lucent.com>
108717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
108718         (AC_REPLACE_FUNCS): Add strnlen.
108720         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
108721         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
108723         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
108724         AC_SEARCH_LIBS call for nanosleep.
108725         (LIB_NANOSLEEP): Set and AC_SUBST.
108727 2000-05-06  Jim Meyering  <meyering@lucent.com>
108729         * lib/strnlen.c: Undefine __strnlen and strnlen.
108730         [!weak_alias]: Define __strnlen to strnlen.
108732         * lib/atexit.c: New file, from libiberty.
108734 2000-05-06  Jim Meyering  <meyering@lucent.com>
108736         * lib/closeout.c (close_stdout_status): Also check for errors on the
108737         stderr stream.
108739 2000-05-05  Jim Meyering  <meyering@lucent.com>
108741         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
108742         AC_SEARCH_LIBS call for clock_gettime.
108743         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
108745         * m4/search-libs.m4: Update from autoconf.
108747         su doesn't work on Solaris 2.6.
108748         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
108749         <shadow.h>.  Reported by Dragos Harabor.
108751 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
108753         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
108754         memcpy instead of xmalloc, xrealloc, path_concat.
108755         (locale_charset): Treat empty environment variables as absent.
108756         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
108758 2000-05-04  Jim Meyering  <meyering@lucent.com>
108760         * lib/getopt.c: Update from glibc.
108761         * lib/obstack.c: Likewise.
108762         * lib/obstack.h: Likewise.
108763         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
108764         file
108766         * lib/regex.h: Likewise.
108767         * lib/strndup.c: Likewise.
108768         * lib/strnlen.c: New file, from glibc.
108770 2000-05-03  Jim Meyering  <meyering@lucent.com>
108772         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
108774 2000-05-02  Paul Eggert  <eggert@twinsun.com>
108776         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
108777         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
108778         compile-time test, rather than inspecting host and OS, to
108779         decide whether to define _LARGEFILE_SOURCE.
108781 2000-05-01  Jim Meyering  <meyering@lucent.com>
108783         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
108785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
108786         Based on a patch from Bruno Haible.
108788 2000-05-01  Jim Meyering  <meyering@lucent.com>
108790         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
108792 2000-04-29  Jim Meyering  <meyering@lucent.com>
108794         * lib/path-concat.c: Declare strdup only if it's not defined.
108795         * lib/canon-host.c: Likewise.
108797 2000-04-28  Jim Meyering  <meyering@lucent.com>
108799         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
108800         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
108801         is included first, then limits.h is included by locale.h by libintl.h.
108802         From John David Anglin.
108804 2000-04-25  Jim Meyering  <meyering@lucent.com>
108806         * lib/makepath.c (S_IRWXUGO): Define.
108807         (make_path): Always perform explicit chmod if MODE specifies any
108808         of the `special' permission bits.  Prompted by a bug report against
108809         install from Mate Wierdl and Joost van Baal.
108811 2000-04-18  Jim Meyering  <meyering@lucent.com>
108813         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
108814         (jm_PREREQ): Use it.
108816 2000-04-18  Jim Meyering  <meyering@lucent.com>
108818         * lib/README: New file.
108820         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
108821         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
108823 2000-04-17  Jim Meyering  <meyering@lucent.com>
108825         Get it right :-)
108826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
108827         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
108828         Suggestion from Akim Demaille.
108830 2000-04-17  Jim Meyering  <meyering@lucent.com>
108832         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
108833         the definition of it to rpl_strftime also defined-away the system's
108834         declaration.
108836 2000-04-15  Jim Meyering  <meyering@lucent.com>
108838         Use `C' to denote so-called `contiguous' files, the same way
108839         that tar does.
108840         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
108841         (ftypelet): Use S_ISCTG.
108842         From Michael Deutschmann.
108844 2000-04-14  Jim Meyering  <meyering@lucent.com>
108846         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
108847         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
108848         clobbered.
108850 2000-04-14  Jim Meyering  <meyering@lucent.com>
108852         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
108854 2000-04-13  Jim Meyering  <meyering@lucent.com>
108856         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
108857         AH_VERBATIM to insert required #ifndef into config.h.in.
108858         Suggestion from Akim Demaille.
108860 2000-04-12  Jim Meyering  <meyering@lucent.com>
108862         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
108863         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
108864         Christian Krackowizer.
108866         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
108867         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
108868         (AC_SYS_LARGEFILE): Require.
108869         (AM_C_PROTOTYPES): Require.
108871 2000-04-08  Jim Meyering  <meyering@lucent.com>
108873         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
108874         names don't conflict.  Reported by Eli Zaretskii.
108876 2000-04-07  Jim Meyering  <meyering@lucent.com>
108878         * lib/putenv.c: Move inclusion of errno.h so it follows that of
108879         sys/types.h, to work around system header problems on AIX 3.2.5.
108880         From Bruno Haible.
108882 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
108884         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
108885         bug.  Deal with the different error behavior of Irix iconv.
108887 2000-04-05  Paul Eggert  <eggert@twinsun.com>
108889         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
108890         IRIX if the installer said otherwise.
108892 2000-04-05  Jim Meyering  <meyering@lucent.com>
108894         Portability tweaks required for ultrix4.3.
108895         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
108896         (jm_CHECK_DECLS): Add getutent to the list of functions.
108897         (_jm_DECL_HEADERS): Add utmpx.h.
108898         From John David Anglin.
108900         * m4/strftime.m4: Back out the 2000-04-02 change.
108901         Instead of that change, simply undefine putenv in the test program.
108903 2000-04-05  Jim Meyering  <meyering@lucent.com>
108905         Portability tweaks required for ultrix4.3.
108906         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
108907         getutent.
108908         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
108909         * lib/canon-host.c: Declare strdup.
108910         * lib/path-concat.c: Likewise.
108911         From John David Anglin.
108913 2000-04-04  Jim Meyering  <meyering@lucent.com>
108915         Be more DOS 8.3-friendly.
108916         * lib/ref-add.sin: Renamed from ref-add.sed.in.
108917         * lib/ref-del.sin: Renamed from ref-del.sed.in.
108918         * lib/Makefile.am: Reflect renaming.
108919         Reported by Eli Zaretskii.
108921         Use a temporary file name that won't clash with `charset.alias'
108922         in the DOS 8.3 name space.
108923         * lib/Makefile.am (charset_tmp): Define.
108924         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
108925         (uninstall-local): Likewise.
108926         Reported by Eli Zaretskii.
108928 2000-04-03  Jim Meyering  <meyering@lucent.com>
108930         * m4/gettext.m4: Fix typo in comment.
108932         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
108933         textutils/configure.in).  Suggestion from Paul Eggert.
108934         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
108936 2000-04-02  Paul Eggert  <eggert@twinsun.com>
108938         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
108939         variable in the shell rather than using putenv, which isn't
108940         portable.  This avoids the configure-time inter-test dependency
108941         on the potentially-renamed putenv function.
108943 2000-03-30  Paul Eggert  <eggert@twinsun.com>
108945         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
108946         before checking struct stat.st_blksize, so that
108947         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
108949 2000-03-29  Paul Eggert  <eggert@twinsun.com>
108951         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
108952         since strftime.c uses HAVE_STRFTIME to decide whether to use
108953         the underlying strftime.
108955 2000-03-29  Paul Eggert  <eggert@twinsun.com>
108957         * lib/time/strftime.c (my_strftime): Make sure we call the system
108958         strftime, not ourselves, when invoking the underlying strftime.
108960 2000-03-24  Jim Meyering  <meyering@lucent.com>
108962         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
108963         (charset_alias): Define.
108964         (install-exec-local): Factor out common code.
108965         (uninstall-local): Split lines longer than 80.
108966         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
108967         (SUFFIXES): Define.
108968         (.sed.in.sed): New rule.  Don't redirect directly to $@.
108969         (CLEANFILES): Add ref-add.sed and ref-del.sed.
108971 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
108973         * lib/config.charset: Output a line containing "Packages using this
108974         file".
108975         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
108976         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
108977         ref-del.sed): New rules.
108979 2000-03-17  Jim Meyering  <meyering@lucent.com>
108981         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
108982         Otherwise, include <strings.h>
108984 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
108986         * lib/unicodeio.c (utf8_wctomb): New function.
108987         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
108988         format instead of in UCS-4 with platform dependent endianness.
108990 2000-03-10  Jim Meyering  <meyering@lucent.com>
108992         * m4/lib-check.m4: Look for getspnam in -lgen, too.
108993         From Marco Franzen.
108995 2000-03-07  Paul Eggert  <eggert@twinsun.com>
108997         * lib/savedir.c (savedir): Work even if directory size is
108998         negative; this can happen with some screwy NFS configurations.
109000 2000-03-06  Jim Meyering  <meyering@lucent.com>
109002         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
109003         if it's NULL (because we ran out of memory).  From Bruno Haible.
109005 2000-03-05  Jim Meyering  <meyering@lucent.com>
109007         * lib/localcharset.c ("path-concat.h"): Include.
109008         (get_charset_aliases): Use path_concat instead of ANSI string
109009         concatenation.
109011         * lib/unicodeio.h (PARAMS): Define.
109012         Use it to guard prototype.
109014 2000-03-04  Jim Meyering  <meyering@lucent.com>
109016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
109017         for lib/localcharset.c.
109019 2000-03-04  Jim Meyering  <meyering@lucent.com>
109021         * lib/Makefile.am (install-exec-local): Create $(libdir) before
109022         installing into it.
109023         (uninstall-local): Uncomment this rule so `make distcheck' works
109024         once again.
109026         * lib/unicodeio.c (<errno.h>): Include it.
109027         (errno): Declare if not defined.
109029         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
109031         * lib/config.charset: New version, incorporating remarks from a linux
109032         i18n mailing list.  From Bruno Haible.
109034 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
109036         * m4/codeset.m4: New file.
109037         * m4/iconv.m4: New file.
109038         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
109040 2000-03-03  Jim Meyering  <meyering@lucent.com>
109042         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
109044 2000-03-02  Jim Meyering  <meyering@lucent.com>
109046         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
109047         the messages come out on separate lines.
109049         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
109050         rather than jm_CHECK_DECLARATIONS.
109051         * m4/decl.m4: Remove now-unused file.
109053         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
109054         geteuid.
109056 2000-03-02  Jim Meyering  <meyering@lucent.com>
109058         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
109060 2000-03-01  Jim Meyering  <meyering@lucent.com>
109062         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
109063         * lib/unicodeio.c: Likewise.
109065 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
109067         * lib/config.charset: New file.
109068         * lib/localcharset.c: New file.
109069         * lib/unicodeio.h, lib/unicodeio.c: New files.
109070         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
109071         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
109072         (noinst_HEADERS): Add unicodeio.h.
109073         (all-local, install-exec-local, charset.alias): New targets.
109075 2000-02-28  Paul Eggert  <eggert@twinsun.com>
109077         * lib/quotearg.c (ALERT_CHAR): New macro.
109078         (quotearg_buffer_restyled): Use it.
109080 2000-02-27  Jim Meyering  <meyering@lucent.com>
109082         * m4/check-decl.m4: Add getenv to the list.
109084 2000-02-27  Jim Meyering  <meyering@lucent.com>
109086         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
109087         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
109089         * lib/backupfile.c: Guard inclusion of stdlib.h with
109090         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
109091         Declare malloc if needed.
109093         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
109094         `#ifndef HAVE_DECL..'
109095         now that autoconf always defines the HAVE_DECL_ symbols.
109096         * lib/human.c: Likewise.
109097         * lib/same.c: Likewise.
109098         * lib/strtoumax.c: Likewise.
109100         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
109101         declaration check was not run.
109102         * lib/hash.c: Likewise.
109103         * lib/human.c: Likewise.
109104         * lib/same.c: Likewise.
109105         * lib/strtoumax.c: Likewise.
109107         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
109108         `.', then first look up the entire `.'-containing string as a login
109109         name.
109111 2000-02-23  Jim Meyering  <meyering@lucent.com>
109113         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
109114         in place of my hack.
109116 2000-02-18  Paul Eggert  <eggert@twinsun.com>
109118         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
109119         (textint): New typedef.
109120         (parser_control): Member year changed from int to textint.
109121         All uses changed.
109122         (YYSTYPE): Removed; replaced by %union with int and textint members.
109123         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
109124         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
109125         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
109126         (tSNUMBER, tUNUMBER): Now of type <textintval>.
109127         (date, number, to_year): Use width of number in digits, not its value,
109128         to determine whether it's a 2-digit year, or a 2-digit time.
109129         (yylex): Store number of digits of numeric tokens.
109130         Reported by John Kendall.
109132         (parser_control): Changed from struct parser_control to typedef (for
109133         consistency).  All uses changed.
109135         (tID): Removed; not used.
109136         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
109138 2000-02-14  Paul Eggert  <eggert@twinsun.com>
109140         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
109141         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
109143 2000-02-12  Jim Meyering  <meyering@lucent.com>
109145         * lib/userspec.c (ISDIGIT): Define it.
109146         (isdigit): Remove definition.
109147         (is_number): Use ISDIGIT, not isdigit.
109148         <libintl.h>: Include.
109149         (_ and N_): Define.
109150         (parse_user_spec): Mark translatable strings.
109152 2000-02-10  Jim Meyering  <meyering@lucent.com>
109154         With these changes, nanosleep.[ch] are finally enough like the other
109155         lib/* replacement files to compile on a few more losing systems.
109157         * lib/nanosleep.h: Don't include config.h.
109158         Remove prototype from declaration of nanosleep.
109159         (PARAMS): Remove now-unneeded definition.
109160         * lib/nanosleep.c: #undef nanosleep.
109161         (rpl_nanosleep): Rename from nanosleep.
109163 2000-02-10  Jim Meyering  <meyering@lucent.com>
109165         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
109166         gnu_nanosleep to rpl_nanosleep.
109168 2000-02-09  Jim Meyering  <meyering@lucent.com>
109170         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
109171         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
109173 2000-02-08  Akim Demaille  <akim@epita.fr>
109175         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
109176         `[' and `]' and remove uses of `changequote'.
109177         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
109178         (AC_SYS_LARGEFILE): Likewise.
109179         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
109180         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
109181         of changequote.
109182         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
109183         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
109184         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
109185         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
109187 2000-02-05  Jim Meyering  <meyering@lucent.com>
109189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
109190         Remove explicit use of AC_HEADER_TIME.  It is required by
109191         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
109192         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
109193         in autoconf whereby the expansion of the latter ended up preceding
109194         the expansion of its prerequisite, AC_HEADER_TIME.
109195         Reported by Volker Borchert.
109197 2000-02-03  Jim Meyering  <meyering@lucent.com>
109199         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
109201 2000-02-03  Jim Meyering  <meyering@lucent.com>
109203         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
109204         rather than with `#if HAVE_UTMPNAME'.
109206 2000-02-02  Jim Meyering  <meyering@lucent.com>
109208         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
109209         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
109210         Reported by Eli Zaretskii.
109212 2000-02-01  Jim Meyering  <meyering@lucent.com>
109214         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
109216 2000-01-31  Jim Meyering  <meyering@lucent.com>
109218         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
109219         functions.  Add the time.h and sys/time.h headers along with the
109220         AC_REQUIRE'ment of AC_HEADER_TIME.
109222 2000-01-31  Jim Meyering  <meyering@lucent.com>
109224         * lib/nanosleep.h (nanosleep): Guard declaration with
109225         `#if ! HAVE_DECL_NANOSLEEP'.
109226         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
109227         the declaration in that vendor's sys/timers.h.
109228         Reported by Christian Krackowizer.
109230         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
109231         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
109232         (ISPRINT): Likewise.
109233         Reported by Tom Tromey.
109235 2000-01-30  Jim Meyering  <meyering@lucent.com>
109237         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
109239         * m4/prereq.m4 (utmp_includes): Define.
109240         Check for ut_user and ut_name members in both struct utmpx
109241         and struct utmp.
109243 2000-01-30  Jim Meyering  <meyering@lucent.com>
109245         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
109246         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
109247         header files where only utmpx.ut_user is declared.
109249         * lib/readutmp.h (UT_USER): Define.
109251 2000-01-29  Jim Meyering  <meyering@lucent.com>
109253         * m4/lib-check.m4: New file containing library-related checks from
109254         fileutils and sh-utils (textutils had none).
109256 2000-01-28  Jim Meyering  <meyering@lucent.com>
109258         * m4/perl.m4: Change format of warning message to look more like that
109259         from the missing script.  Suggestion from François Pinard.
109261 2000-01-25  Jim Meyering  <meyering@lucent.com>
109263         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
109264         well as time.h in the compile check.
109265         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
109266         Fix typo in cross-compiling case: s/yes/no/.
109268 2000-01-23  Jim Meyering  <meyering@lucent.com>
109270         * m4/jm-macros.m4: Move df-related tests here from
109271         fileutils/configure.in
109273         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
109274         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
109276         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
109277         s/space/ac_fsusage_space/.
109278         (jm_FILE_SYSTEM_USAGE): Take two parameters.
109280         * m4/ftruncate.m4: New file (derived from part of
109281         fileutils/configure.in).
109282         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
109283         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
109285         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
109286         AC_SUBST these here, rather than just in sh-util/configure.in, so
109287         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
109288         all the same.
109289         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
109290         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
109291         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
109292         (AC_SUBST(POW_LIBM)): Likewise.
109293         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
109295 2000-01-23  Jim Meyering  <meyering@lucent.com>
109297         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
109298         obstack.c.
109300 2000-01-22  Jim Meyering  <meyering@lucent.com>
109302         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
109304         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
109306         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
109307         configure.in
109308         (AC_CHECK_HEADERS): Likewise for sh-utils.
109309         (AC_CHECK_HEADERS): Likewise for textutils.
109310         Merge the three lists of headers.
109312         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
109313         from fileutils' configure.in.
109315         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
109316         code. Moved tests into their own function (_jm_DECL_HEADERS) in
109317         check-decl.m4.
109319         * m4/check-decl.m4: Use #if rather than #ifdef.
109320         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
109321         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
109322         (_jm_DECL_HEADERS): Define new function.
109323         (jm_CHECK_DECLARATIONS): Require it.
109325 2000-01-22  Jim Meyering  <meyering@lucent.com>
109327         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
109328         [! HAVE_DECL_STRTOULL]: Declare strtoull.
109329         Required for some AIX systems.  Reported by Christian Krackowizer.
109330         [TESTING] (main): New function.
109332         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
109333         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
109334         letters.
109336         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
109337         iswprint.
109339         * lib/strverscmp.c (ISDIGIT): Define.
109340         (strverscmp): Use ISDIGIT, not isdigit.
109342 2000-01-19  Jim Meyering  <meyering@lucent.com>
109344         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
109345         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
109346         defines `struct timespec' in <sys/time.h>
109348         * m4/c-bs-a.m4: Remove uses of changequote altogether.
109349         Thanks to Akim for explaining.
109351 2000-01-17  Paul Eggert  <eggert@twinsun.com>
109353         * lib/nanosleep.c (nanosleep):
109354         Don't use SA_INTERRUPT to decide whether to call sigaction, as
109355         POSIX.1 doesn't require SA_INTERRUPT and some systems
109356         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
109357         it's been part of POSIX.1 since day 1 (in 1988).
109359 2000-01-17  Jim Meyering  <meyering@lucent.com>
109361         * lib/interlock: Remove unused file.  Reported by François Pinard.
109363 2000-01-16  Paul Eggert  <eggert@twinsun.com>
109365         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
109366         alert, backslash, formfeed, and vertical tab unnecessarily in
109367         shell quoting style.
109369 2000-01-16  Jim Meyering  <meyering@lucent.com>
109371         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
109372         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
109373         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
109374         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
109376 2000-01-16  Jim Meyering  <meyering@lucent.com>
109378         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
109379         because the latter didn't work.
109381 2000-01-15  Jim Meyering  <meyering@lucent.com>
109383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
109384         (AC_REPLACE_FUNCS): Add memcpy and memset.
109385         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
109386         Add strpbrk.
109387         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
109389 2000-01-12  Jim Meyering  <meyering@lucent.com>
109391         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
109392         (jm_PREREQ): Use it.
109393         (jm_PREREQ_READUTMP): New macro.
109394         (jm_PREREQ): Use it.
109396 2000-01-11  Paul Eggert  <eggert@twinsun.com>
109398         Quote multibyte characters correctly.
109399         * m4/c-bs-a.m4: New file.
109400         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
109401         (jm_PREREQ): Use it.
109403 2000-01-11  Paul Eggert  <eggert@twinsun.com>
109405         * m4/uintmax_t.m4: Port to autoconf 2.13.
109407 2000-01-08  Jim Meyering  <meyering@ascend.com>
109409         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
109410         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
109412 2000-01-04  Jim Meyering  <meyering@ascend.com>
109414         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
109415         jm_STRUCT_DIRENT_D_TYPE.
109416         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
109417         jm_STRUCT_DIRENT_D_INO.
109418         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
109419         jm_STRUCT_UTIMBUF.
109420         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
109421         renamings.
109422         * m4/utime.m4: Likewise.
109424         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
109425         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
109427 2000-01-03  Paul Eggert  <eggert@twinsun.com>
109429         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
109430         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
109432 2000-01-02  Jim Meyering  <meyering@ascend.com>
109434         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
109435         remember if this is necessary.
109437 1999-12-26  Jim Meyering  <meyering@ascend.com>
109439         * m4/jm-macros.m4: Use it here.
109440         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
109442 1999-12-23  Jim Meyering  <meyering@ascend.com>
109444         * m4/jm-macros.m4: Check for clock_gettime (moved from
109445         fileutils/configure.in)
109446         Check for gettimeofday.
109448 1999-12-20  Jim Meyering  <meyering@ascend.com>
109450         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
109451         autoconf-2.14a-1999-12-20.
109453 1999-12-19  Jim Meyering  <meyering@ascend.com>
109455         * m4/lstat-slash.m4: New file.
109456         * m4/jm-macros.m4: Use the new macro:
109457         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109459 1999-12-07  Jim Meyering  <meyering@ascend.com>
109461         * m4/perl.m4: Require that File::Compare be available, too.
109462         Too many systems seem to lack it.
109464         * m4/strftime.m4: Add checks for most of the cpp macros tested in
109465         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
109467 1999-11-18  Paul Eggert  <eggert@twinsun.com>
109469         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
109470         problem with the QNX 4.25 shell, which doesn't propagate exit
109471         status of failed commands inside shell assignments.
109473 1999-11-17  Jim Meyering  <meyering@ascend.com>
109475         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
109477 1999-11-07  Jim Meyering  <meyering@ascend.com>
109479         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
109481 1999-11-06  Jim Meyering  <meyering@ascend.com>
109483         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
109484         * m4/jm-macros.m4 (jm_MACROS): Use it here.
109486 1999-11-05  Jim Meyering  <meyering@ascend.com>
109488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
109489         configure.in of textutils, fileutils, and sh-utils into this one
109490         (shared between those packages) file.
109491         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
109492         AC_STRUCT_ST_BLKSIZE.
109494 1999-11-03  Jim Meyering  <meyering@ascend.com>
109496         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
109497         of AC_CHECK_TYPE checks includes unistd.h.
109498         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
109499         Suggestion from Akim Demaille.
109501 1999-10-30  Jim Meyering  <meyering@ascend.com>
109503         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
109504         m4-quoted string.
109505         * m4/ls-mntd-fs.m4: Likewise.
109506         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
109507         * m4/jm-winsz1.m4: Likewise.
109509         * m4/const.m4: Remove file, since the fix made it into the experimental
109510         version of autoconf.
109511         * m4/mktime.m4: Likewise.
109513         * m4/check-type.m4: Remove file, now that the latest version of
109514         AC_CHECK_TYPE takes a third arg to specify additional #includes.
109516         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
109517         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
109518         AC_CHECK_TYPE.
109520 1999-10-04  Jim Meyering  <meyering@ascend.com>
109522         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
109524 1999-09-22  Paul Eggert  <eggert@twinsun.com>
109526         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
109527         2.95.1 bug with HP-UX 10.20.
109529 1999-09-17  Jim Meyering  <meyering@ascend.com>
109531         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
109532         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
109533         due to missing strdup (against sh-utils-2.0).
109535 1999-08-29  Jim Meyering  <meyering@ascend.com>
109537         * m4/jm-macros.m4: Require jm_BISON.
109538         * m4/bison.m4: New file.
109540 1999-08-17  Paul Eggert  <eggert@twinsun.com>
109542         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
109543         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
109545 1999-08-05  Jim Meyering  <meyering@ascend.com>
109547         * m4/getline.m4: Rename test file from conftestdata to conftest.data
109548         to avoid conflicts with `conftest' on 8+3 filesystems.
109549         Suggestion from Eli Zaretskii.
109551 1999-08-04  Jim Meyering  <meyering@ascend.com>
109553         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
109554         fileutils and sh-utils (textutils's getline test was inadequate).
109555         (AM_FUNC_GETLINE): Run this test.
109556         (AC_CHECK_FUNCS): Check for getdelim.
109557         Reported by Bob Proulx.
109559 1999-08-02  Jim Meyering  <meyering@ascend.com>
109561         * m4/jm-macros.m4: Add a comment.
109563 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109565         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
109566         <inttypes.h> defines strtoumax as a macro (and not as a
109567         function).
109569 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109571         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
109572         that we can shift, multiply and divide unsigned long long
109573         values; Ultrix cc can't do it.
109575 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109577         * m4/mktime.m4: New file, which is a preview of what should appear
109578         in the next public autoconf release.
109580 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109582         * m4/lfs.m4: Remove this file.
109583         * m4/largefile.m4: New file.  It contains the old contents of
109584         lfs.m4, except that all names with prefix AC_LFS have been
109585         changed to use the prefix AC_SYS_LARGEFILE instead, to be
109586         compatible with future autoconf versions.  Also, some minor m4
109587         quoting problems have been fixed.
109589 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109591         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
109592         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
109593         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
109594         and simplify the shell code.
109596 1999-08-01  Jim Meyering  <meyering@ascend.com>
109598         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
109599         m4.
109601 1999-07-20  Jim Meyering  <meyering@ascend.com>
109603         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
109605 1999-07-15  Jim Meyering  <meyering@ascend.com>
109607         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
109609 1999-05-22  Jim Meyering  <meyering@ascend.com>
109611         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
109613 1999-05-20  Jim Meyering  <meyering@ascend.com>
109615         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
109616         Add a colon after each `then' in case $4 is empty.
109618 1999-05-16  Jim Meyering  <meyering@ascend.com>
109620         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
109622 1999-05-10  Jim Meyering  <meyering@ascend.com>
109624         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
109626         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
109627         AC_FUNC_MKTIME.
109629 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
109631         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
109633 1999-05-04  Paul Eggert  <eggert@twinsun.com>
109635         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
109636         not CPPFLAGS, so that linking works correctly in IRIX.
109638 1999-04-30  Paul Eggert  <eggert@twinsun.com>
109640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
109642 1999-04-20  Paul Eggert  <eggert@twinsun.com>
109644         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
109645         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
109646         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
109647         jm_AC_TYPE_UNSIGNED_LONG_LONG.
109648         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
109650         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
109652 1999-04-20  Jim Meyering  <meyering@ascend.com>
109654         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
109655         AC_REPLACE xstroull if necessary.  From Paul Eggert.
109656         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
109658 1999-04-18  Jim Meyering  <meyering@ascend.com>
109660         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
109661         * m4/jm-macros.m4: Use it.
109663 1999-04-06  Jim Meyering  <meyering@ascend.com>
109665         * m4/strftime.m4: Remove test for %f.
109667 1999-03-29  Jim Meyering  <meyering@ascend.com>
109669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
109670         superset of the AC_TYPE_* checks in the textutils, fileutils,
109671         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
109672         AC_TYPE_PID_T.
109674 1999-03-28  Jim Meyering  <meyering@ascend.com>
109676         * m4/jm-macros.m4: Define GNU_PACKAGE here.
109677         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
109678         replaced e.g., in the *.sh files of the sh-utils.
109680 1999-03-20  Jim Meyering  <meyering@ascend.com>
109682         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
109683         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
109684         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
109686 1999-03-19  Jim Meyering  <meyering@ascend.com>
109688         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
109690 1999-03-12  Jim Meyering  <meyering@ascend.com>
109692         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
109694 1999-03-07  Jim Meyering  <meyering@ascend.com>
109696         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
109697         declared.
109699 1999-02-17  Jim Meyering  <meyering@ascend.com>
109701         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
109702         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
109704 1999-02-07  Jim Meyering  <meyering@ascend.com>
109706         * m4/group-member.m4: New file -- extracted from sh-utils'
109707         configure.in.
109709         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
109710         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
109712 1999-02-06  Jim Meyering  <meyering@ascend.com>
109714         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
109715         * m4/fnmatch.m4: Likewise.
109716         * m4/getgroups.m4: Likewise.
109717         * m4/lstat.m4: Likewise.
109718         * m4/malloc.m4: Likewise.
109719         * m4/putenv.m4: Likewise.
109720         * m4/realloc.m4: Likewise.
109721         * m4/regex.m4: Likewise.
109722         * m4/stat.m4: Likewise.
109723         * m4/strftime.m4: Likewise.
109724         Suggestion from Alain Magloire.
109726         * m4/chown.m4: Use `.$ac_objext', not `.o'.
109727         * m4/fnmatch.m4: Likewise.
109728         * m4/getgroups.m4: Likewise.
109729         * m4/getline.m4: Likewise.
109730         * m4/lstat.m4: Likewise.
109731         * m4/malloc.m4: Likewise.
109732         * m4/memcmp.m4: Likewise.
109733         * m4/putenv.m4: Likewise.
109734         * m4/realloc.m4: Likewise.
109735         * m4/regex.m4: Likewise.
109736         * m4/stat.m4: Likewise.
109737         * m4/strftime.m4: Likewise.
109738         Suggestion from Alain Magloire.
109740         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
109741         an argument.
109743         * m4/regex.m4: Add a run-time Test for proper operation of
109744         re_compile_pattern.
109746 1999-01-31  Jim Meyering  <meyering@ascend.com>
109748         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
109750 1999-01-30  Jim Meyering  <meyering@ascend.com>
109752         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
109754         * m4/jm-mktime.m4: Make this a wrapper around the official
109755         AM_FUNC_MKTIME rather than my private copy, now that the official one
109756         is up to date.
109757         * m4/mktime.m4: Remove file.
109759         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
109760         * m4/uptime.m4: Likewise.
109761         * m4/uintmax_t.m4: Likewise.
109763 1999-01-28  Jim Meyering  <meyering@ascend.com>
109765         * m4/jm-macros.m4: Use jm_AFS.
109766         * m4/afs.m4: New file (from fileutils' configure.in).
109768         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
109769         * m4/chown.m4: Likewise.
109770         * m4/d-ino.m4: Likewise.
109771         * m4/d-type.m4: Likewise.
109772         * m4/fnmatch.m4: Likewise.
109773         * m4/getgroups.m4: Likewise.
109774         * m4/gettext.m4: Likewise.
109775         * m4/jm-mktime.m4: Likewise.
109776         * m4/jm-winsz2.m4: Likewise.
109777         * m4/lcmessage.m4: Likewise.
109778         * m4/ls-mntd-fs.m4: Likewise.
109779         * m4/malloc.m4: Likewise.
109780         * m4/memcmp.m4: Likewise.
109781         * m4/putenv.m4: Likewise.
109782         * m4/realloc.m4: Likewise.
109783         * m4/st_mtim.m4: Likewise.
109784         * m4/strftime.m4: Likewise.
109786 1999-01-16  Jim Meyering  <meyering@ascend.com>
109788         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
109789         (ARGMATCH_DIE_DECL): Define.
109791 1999-01-12  Jim Meyering  <meyering@ascend.com>
109793         * m4/Makefile.am.in: Rewrite to avoid using fmt.
109794         Reported by Lars Hecking.
109796 1999-01-10  Jim Meyering  <meyering@ascend.com>
109798         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
109799         gross kludge.
109800         * m4/inttypes_h.m4: Likewise.
109801         * m4/lstat.m4: Likewise.
109802         * m4/malloc.m4: Likewise.
109803         * m4/readdir.m4: Likewise.
109804         * m4/realloc.m4: Likewise.
109805         * m4/st_dm_mode.m4: Likewise.
109806         * m4/stat.m4: Likewise.
109807         * m4/utimbuf.m4: Likewise.
109808         * m4/utimes.m4: Likewise.
109810         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
109811         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
109812         comments in config.h.in are meaningful.
109814         * m4/jm-macros.m4: Require autoconf-2.13 here.
109816         * m4/regex.m4: By default, don't use the included regex.c on systems
109817         with glibc 2.  Suggestion from Uli Drepper.
109819 1999-01-02  Jim Meyering  <meyering@ascend.com>
109821         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
109823 1998-12-18  Jim Meyering  <meyering@ascend.com>
109825         * m4/Makefile.am.in (Makefile.am): Simplify rule.
109826         Based on a suggestion from Lars Hecking.
109828 1998-11-16  Paul Eggert  <eggert@twinsun.com>
109830         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
109832 1998-11-16  Jim Meyering  <meyering@ascend.com>
109834         * m4/lfs.m4: Double-quote the `uname...` expression.
109836 1998-11-14  Jim Meyering  <meyering@ascend.com>
109838         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
109839         * m4/stat.m4: Likewise.
109841 1998-11-03  Jim Meyering  <meyering@ascend.com>
109843         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
109844         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
109846 1998-10-18  Jim Meyering  <meyering@ascend.com>
109848         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
109850 1998-10-17  Jim Meyering  <meyering@ascend.com>
109852         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
109853         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
109854         calls for those previously hard-coded headers.  Instead, take a new
109855         parameter.
109856         (jm_CHECK_DECLARATIONS): Reflect interface change.
109857         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
109858         (jm_CHECK_DECL_LOCALTIME_R): New macro.
109860         * m4/mktime.m4: Test for spring-forward gap before long-running test.
109862 1998-10-14  Jim Meyering  <meyering@ascend.com>
109864         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
109865         instead of "TZ=America/Vancouver".  From Paul Eggert.
109867 1998-10-11  Jim Meyering  <meyering@ascend.com>
109869         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
109870         This adds a test for a recently added compatibility fix for mktime.c.
109871         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
109873 1998-09-27  Jim Meyering  <meyering@ascend.com>
109875         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
109877         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
109878         ../configure.in, including a change from Gordon Matzigkeit to allow
109879         cross-compiling for the Hurd.
109881         * m4/glibc.m4: New file/macro to test for the GNU C Library
109882         versions 1 and 2.  From Gordon Matzigkeit.
109883         Indent.
109885 1998-09-21  Jim Meyering  <meyering@ascend.com>
109887         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
109889 1998-08-18  Paul Eggert  <eggert@twinsun.com>
109891         Port nanosecond-resolution times to UnixWare 2.1.2 and
109892         pedantic Solaris 2.6.
109894         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
109895         AC_STRUCT_ST_MTIM.
109896         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
109897         Generate name of ns member, instead of just 1 or undef.
109898         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
109900 1998-08-15  Jim Meyering  <meyering@ascend.com>
109902         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
109903         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
109904         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
109905         instead of jm_TYPE_SSIZE_T.
109907 1998-08-12  Jim Meyering  <meyering@ascend.com>
109909         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
109911 1998-08-02  Jim Meyering  <meyering@ascend.com>
109913         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
109914         in acconfig.h manually.
109916 1998-07-31  Paul Eggert  <eggert@twinsun.com>
109918         * m4/st_mtim.m4: New file.
109920 1998-07-28  Jim Meyering  <meyering@ascend.com>
109922         * m4/utimes.m4: Undef stat.
109924 1998-07-25  Jim Meyering  <meyering@ascend.com>
109926         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
109927         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
109929 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
109931         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
109932         uid and gid actually remain unchanged.
109934 1998-07-07  Jim Meyering  <meyering@ascend.com>
109936         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
109938 1998-07-04  Jim Meyering  <meyering@ascend.com>
109940         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
109941         to prove that this macro can be used in packages without regex.c.
109943 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
109945         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
109946         is to be used.
109948 1998-07-03  Jim Meyering  <meyering@ascend.com>
109950         * m4/gettext.m4: Add -lintl if it's found to be necessary.
109952         * m4/gettext.m4: New file -- from gettext-0.10.35.
109953         * m4/lcmessage.m4: Likewise.
109954         * m4/progtest.m4: Likewise.
109956         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
109957         * m4/jm-macros.m4: Require the new macro.
109959 1998-06-29  Jim Meyering  <meyering@ascend.com>
109961         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
109962         for the definition of NGROUPS (used in a system header included
109963         by sys/mount.h).
109965 1998-06-28  Jim Meyering  <meyering@ascend.com>
109967         * m4/ls-mntd-fs.m4: New file.
109968         * m4/fstypename.m4: New file.
109970         * m4/jm-macros.m4: Require the new macro.
109971         * m4/jm-glibc-io.m4: New file.
109973 1998-05-19  Jim Meyering  <meyering@ascend.com>
109975         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
109976         * m4/lchown.m4: New file.
109978         * m4/Makefile.am.in: New file.
109979         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
109981 1998-05-14  Jim Meyering  <meyering@ascend.com>
109983         * m4/Makefile.am (EXTRA_DIST): Add them.
109984         * m4/jm-macros.m4: New file.
109985         * m4/utimbuf.m4: New file.
109987 1998-05-12  Jim Meyering  <meyering@ascend.com>
109989         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
109991 1998-05-11  Jim Meyering  <meyering@ascend.com>
109993         * m4/isc-posix.m4: New file.
109995 1998-05-10  Jim Meyering  <meyering@ascend.com>
109997         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
109999 1998-05-09  Jim Meyering  <meyering@ascend.com>
110001         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
110002         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
110003         with automake.
110005         * m4/ssize_t.m4: New file.
110006         * m4/mktime.m4: Remove file -- the new automake has this now.
110008 1998-04-26  Jim Meyering  <meyering@ascend.com>
110010         * m4/assert.m4: New file.
110011         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
110013 1998-04-05  Jim Meyering  <meyering@ascend.com>
110015         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
110016         (jm_PREREQ): Use it here.
110018 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
110020         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
110021         in acconfig.h.
110023 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
110025         * m4/prereq.m4: New file.
110026         * m4/error.m4: New file.
110027         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
110029 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
110031         * m4/getline.m4: Don't set am_cv_func_working_getline before the
110032         cache-check for the same variable -- that defeated the purpose of
110033         the test; the test program was never run.  This was a problem only
110034         on systems with losing getline functions -- HP-UX 10.20 is one.
110035         Reported by Bjorn Helgaas.
110037 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
110039         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
110041 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
110043         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
110045         * m4/const.m4: New file.  Use an initializer in this declaration
110046         typedef int charset[2]; const charset x;
110047         Reported by Bob Glickstein.
110049 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
110051         * m4/chown.m4: Fix reversed types on -1 args to chown.
110052         From Kaveh Ghazi.
110054 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
110056         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
110057         Add lseek and memchr.
110059         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
110060         T.E.Dickey <dickey@clark.net> said that some older preprocessors
110061         have a 20-character limit on names.
110063 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
110065         * m4/inttypes_h.m4: New file.
110066         * m4/uintmax_t.m4: New file.
110067         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
110070         -----
110072         Local Variables:
110073         coding: utf-8
110074         End:
110076         Copyright (C) 1997-2017 Free Software Foundation, Inc.
110078         Copying and distribution of this file, with or without
110079         modification, are permitted provided the copyright notice
110080         and this notice are preserved.